optimize size

This commit is contained in:
AceDataCloud committed 2023-01-29 14:29:22 +08:00
1 parent 277ef9a325
commit 5f20de55e7
36 files changed
+386 -104

No files matched your search

-1
View File
@@ -8,7 +8,6 @@
import { defineComponent } from 'vue';
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
import { registerIcons } from './plugins/font-awesome';
export default defineComponent({
components: {
+1 -1
View File
@@ -31,7 +31,7 @@ body {
}
.el-input {
input {
.el-input__wrapper {
border-radius: 10px;
}
}
+3 -1
View File
@@ -35,6 +35,7 @@ import phpTemplate from '@/assets/templates/php.tpl';
import javaTemplate from '@/assets/templates/java.tpl';
import CodeSnippet from '../common/CodeSnippet.vue';
import queryString from 'query-string';
import { ElImage } from 'element-plus';
interface IOption {
name: ILang;
@@ -69,7 +70,8 @@ interface IRenderData {
export default defineComponent({
name: 'ApiCode',
components: {
CodeSnippet
CodeSnippet,
ElImage
},
props: {
api: {
+14 -2
View File
@@ -58,7 +58,12 @@
:allow-create="true"
:placeholder="$t('common.title.placeholderOfSelect')"
>
<el-option :label="appliedApplication?.api_key" :value="appliedApplication?.api_key" class="select-option">
<el-option
v-if="appliedApplication?.api_key"
:label="appliedApplication?.api_key"
:value="appliedApplication.api_key"
class="select-option"
>
<span class="select-option-main">{{ appliedApplication?.api_key }}</span>
<span class="select-option-description">{{ $t('application.message.yourApplication') }}</span>
</el-option>
@@ -86,6 +91,7 @@ import { ISchema } from '@/operators/api/models';
import { IService } from '@/operators/service/models';
import { IApplication } from '@/operators';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { ElPopover, ElInput, ElSelect, ElButton, ElTooltip, ElOption } from 'element-plus';
interface IData {
value: {
@@ -96,7 +102,13 @@ interface IData {
export default defineComponent({
name: 'ApiForm',
components: {
FontAwesomeIcon
FontAwesomeIcon,
ElPopover,
ElInput,
ElSelect,
ElButton,
ElTooltip,
ElOption
},
props: {
schema: {
+5 -1
View File
@@ -53,6 +53,7 @@
import { defineComponent } from 'vue';
import { IResponse } from '@/operators/api/models';
import CodeSnippet from '../common/CodeSnippet.vue';
import { ElCollapse, ElCollapseItem, ElTag } from 'element-plus';
interface IData {
value: {
@@ -63,7 +64,10 @@ interface IData {
export default defineComponent({
name: 'ApiResult',
components: {
CodeSnippet
CodeSnippet,
ElCollapse,
ElCollapseItem,
ElTag
},
props: {
responses: {
+4 -1
View File
@@ -21,11 +21,14 @@ import { defineComponent } from 'vue';
import axios, { Method } from 'axios';
import urlJoin from 'url-join';
import CodeSnippet from '../common/CodeSnippet.vue';
import { ElButton, ElSkeleton } from 'element-plus';
export default defineComponent({
name: 'ApiTry',
components: {
CodeSnippet
CodeSnippet,
ElButton,
ElSkeleton
},
props: {
api: {
+6 -2
View File
@@ -9,7 +9,7 @@
{{ api?.title }}
</div>
<div class="url">
<el-tag class="method" size="mini" type="primary" effect="dark">{{ api?.request?.method }}</el-tag>
<el-tag class="method" effect="dark">{{ api?.request?.method }}</el-tag>
<span v-if="api?.endpoint && api?.path" class="endpoint">{{ urlJoin(api?.endpoint, api?.path) }}</span>
</div>
<div class="introduction">
@@ -59,6 +59,7 @@ import ApiResult from './Result.vue';
import urlJoin from 'url-join';
import { applicationOperator } from '@/operators/application/operator';
import { IApplication, IApplicationListResponse } from '@/operators/application/models';
import { ElSkeleton, ElDivider, ElTag } from 'element-plus';
export interface IData {
formValue: IForm;
@@ -69,7 +70,10 @@ export default defineComponent({
name: 'ApiUsage',
components: {
ApiForm,
ApiResult
ApiResult,
ElSkeleton,
ElDivider,
ElTag
},
props: {
api: {
+6
View File
@@ -22,9 +22,15 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElContainer, ElRow, ElCol } from 'element-plus';
export default defineComponent({
name: 'BottomFooter',
components: {
ElContainer,
ElRow,
ElCol
},
data() {
return {};
},
+5
View File
@@ -8,9 +8,14 @@
</template>
<script lang="ts">
import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus';
import { defineComponent } from 'vue';
export default defineComponent({
components: {
ElBreadcrumb,
ElBreadcrumbItem
},
data() {
return {
items: this.$route.matched
+3 -1
View File
@@ -9,11 +9,13 @@
import { defineComponent } from 'vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import copy from 'copy-to-clipboard';
import { ElTooltip } from 'element-plus';
export default defineComponent({
name: 'CopyToClipboard',
components: {
FontAwesomeIcon
FontAwesomeIcon,
ElTooltip
},
props: {
content: {
+4 -1
View File
@@ -10,11 +10,14 @@
<script lang="ts">
import { defineComponent } from 'vue';
import VueMarkdown from './VueMarkdown.vue';
import { ElDivider, ElSkeleton } from 'element-plus';
export default defineComponent({
name: 'ApiCode',
components: {
VueMarkdown
VueMarkdown,
ElDivider,
ElSkeleton
},
props: {
content: {
+5 -1
View File
@@ -14,6 +14,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElPagination } from 'element-plus';
interface IData {
loaded: boolean;
@@ -21,6 +22,9 @@ interface IData {
export default defineComponent({
name: 'Pagination',
components: {
ElPagination
},
props: {
total: {
type: Number,
@@ -50,7 +54,7 @@ export default defineComponent({
}, 1000);
},
methods: {
onPageChange(val: number, oldVal: number): void {
onPageChange(val: number): void {
// if not finished loading, ignore the wrong emit event
if (!this.loaded) {
return;
+4
View File
@@ -5,9 +5,13 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElAlert } from 'element-plus';
export default defineComponent({
name: 'SuccessInfo',
components: {
ElAlert
},
props: {
show: {
type: Boolean,
+24 -1
View File
@@ -43,9 +43,32 @@ import { defineComponent } from 'vue';
import defaultAvatar from '@/assets/images/avatar.png';
import { getAuthBaseUrl } from '@/utils';
import { ROUTE_AUTH_LOGIN, ROUTE_CONSOLE_ROOT, ROUTE_INDEX } from '@/router';
import {
ElContainer,
ElAside,
ElMain,
ElCol,
ElRow,
ElDropdown,
ElMenu,
ElMenuItem,
ElDropdownItem,
ElButton
} from 'element-plus';
export default defineComponent({
name: 'TopHeader',
components: {
ElContainer,
ElAside,
ElMain,
ElCol,
ElRow,
ElDropdown,
ElMenu,
ElMenuItem,
ElDropdownItem,
ElButton
},
data() {
return {
defaultAvatar
+5 -1
View File
@@ -34,6 +34,7 @@
import { defineComponent } from 'vue';
import { Clock, User, Postcard } from '@element-plus/icons-vue';
import { ROUTE_CONSOLE_APPLICATION_LIST, ROUTE_CONSOLE_ORDER_LIST, ROUTE_INDEX } from '@/router';
import { ElRow, ElCol, ElIcon } from 'element-plus';
interface ILink {
key: string;
@@ -51,7 +52,10 @@ export default defineComponent({
components: {
Clock,
Postcard,
User
User,
ElRow,
ElCol,
ElIcon
},
data(): IData {
return {
+3 -1
View File
@@ -16,6 +16,7 @@ import { defineComponent } from 'vue';
import { IDocument, IDocumentListResponse } from '@/operators/document/models';
import DocumentListItem from './ListItem.vue';
import { documentOperator } from '@/operators/document';
import { ElSkeleton } from 'element-plus';
interface IData {
documents: IDocument[];
@@ -27,7 +28,8 @@ interface IData {
export default defineComponent({
name: 'DocumentList',
components: {
DocumentListItem
DocumentListItem,
ElSkeleton
},
data(): IData {
return {
+6 -1
View File
@@ -8,7 +8,7 @@
<el-link type="primary" class="link" :underline="false">
<span class="name">{{ document?.api?.title }}</span>
</el-link>
<el-tag v-if="document?.api?.request?.method" type="primary" class="method" effect="dark">
<el-tag v-if="document?.api?.request?.method" type="" class="method" effect="dark">
{{ document?.api?.request?.method }}
</el-tag>
</div>
@@ -18,9 +18,14 @@
import { defineComponent } from 'vue';
import { IDocument } from '@/operators/document/models';
import { ROUTE_DOCUMENT_DETAIL } from '@/router';
import { ElLink, ElTag } from 'element-plus';
export default defineComponent({
name: 'ApiListItem',
components: {
ElLink,
ElTag
},
props: {
document: {
type: Object as () => IDocument,
+27 -9
View File
@@ -5,11 +5,14 @@
{{ application?.service?.title }}
</el-form-item>
<el-form-item :label="$t('application.field.amount')">
<el-input-number v-model="form.amount" :min="1" :max="10" controls-position="right" />
<el-input-number v-model="form.amount" :min="1" :max="10000" controls-position="right" />
</el-form-item>
<el-form-item :label="$t('service.field.price')">
<service-price :price="application?.service?.price" />
</el-form-item>
<el-divider />
<el-form-item :label="$t('application.field.shouldPayPrice')">
<span class="price">¥{{ getPrice().toFixed(2) }}</span>
<span :class="{ price: true, unfree: price > 0 }">¥{{ price.toFixed(2) }}</span>
</el-form-item>
</el-form>
<template #footer>
@@ -28,9 +31,20 @@ import { IApplication, IOrderDetailResponse, orderOperator } from '@/operators';
import { defineComponent } from 'vue';
import { ElMessage } from 'element-plus';
import { ROUTE_CONSOLE_ORDER_DETAIL } from '@/router';
import { ElDialog, ElForm, ElFormItem, ElButton, ElInputNumber, ElDivider } from 'element-plus';
import ServicePrice from '@/components/service/Price.vue';
export default defineComponent({
name: 'CreateOrderDialog',
components: {
ElDialog,
ElForm,
ElFormItem,
ElButton,
ElInputNumber,
ElDivider,
ServicePrice
},
props: {
application: {
type: Object as () => IApplication,
@@ -46,12 +60,18 @@ export default defineComponent({
data() {
return {
form: {
amount: 1
amount: 1000
},
creating: false
};
},
mounted() {},
computed: {
price() {
if (this.application.service?.price && this.form.amount)
return this.form.amount * this.application.service?.price;
return 0;
}
},
methods: {
onCreateOrder() {
if (!this.application?.id) {
@@ -77,11 +97,6 @@ export default defineComponent({
ElMessage.error(this.$t('order.message.createFailed'));
this.creating = false;
});
},
getPrice() {
if (this.application.service?.price && this.form.amount)
return this.form.amount * this.application.service?.price;
return 0;
}
}
});
@@ -91,5 +106,8 @@ export default defineComponent({
.price {
font-size: 20px;
font-weight: bold;
.unfree {
color: #ff5441;
}
}
</style>
+45
View File
@@ -0,0 +1,45 @@
<template>
<div class="price-text">
<span v-if="price > 0" class="unfree">¥{{ price }} / {{ $t('service.unit.usage') }}</span>
<span v-else class="free">
{{ $t('service.message.free') }}
</span>
</div>
</template>
<script>
import { defineComponent } from 'vue';
export default defineComponent({
name: 'ServicePrice',
props: {
price: {
type: Number,
required: false,
default: 0
}
}
});
</script>
<style lang="scss" scoped>
.price-text {
display: inline-block;
margin: 0;
.unfree {
color: #ff5441;
.value {
font-weight: bold;
color: #ff5441;
font-size: 30px;
}
.unit {
color: #666;
}
}
.free {
color: #29c287;
}
}
</style>
+3
View File
@@ -0,0 +1,3 @@
export default {
price: '价格'
};
+3 -1
View File
@@ -1,9 +1,11 @@
import message from './message';
import unit from './unit';
import button from './button';
import field from './field';
export default {
message,
unit,
button
button,
field
};
+1 -1
View File
@@ -2,5 +2,5 @@ export default {
free: '免费',
appliedCount: '申请次数',
indexTitle: '方便易用的数字化解决方案',
indexSubtitle: '用一个个标准化服务,助力你的工作与生活的方方面面。'
indexSubtitle: '用一个个标准化服务,助力你工作与生活的方方面面。'
};
+6 -1
View File
@@ -6,9 +6,14 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { ElContainer, ElMain } from 'element-plus';
export default defineComponent({
name: 'LayoutAuth'
name: 'LayoutAuth',
components: {
ElContainer,
ElMain
}
});
</script>
+5 -1
View File
@@ -10,11 +10,15 @@
<script lang="ts">
import { defineComponent } from 'vue';
import Navigator from '@/components/console/Navigator.vue';
import { ElContainer, ElMain, ElAside } from 'element-plus';
export default defineComponent({
name: 'LayoutConsole',
components: {
Navigator
Navigator,
ElContainer,
ElMain,
ElAside
}
});
</script>
+8 -1
View File
@@ -23,13 +23,20 @@
import TopHeader from '@/components/common/TopHeader.vue';
import BottomFooter from '@/components/common/BottomFooter.vue';
import DocumentList from '@/components/document/List.vue';
import { ElContainer, ElMain, ElFooter, ElHeader, ElRow, ElCol } from 'element-plus';
export default {
name: 'LayoutCourse',
components: {
TopHeader,
BottomFooter,
DocumentList
DocumentList,
ElContainer,
ElMain,
ElFooter,
ElHeader,
ElRow,
ElCol
}
};
</script>
+6 -1
View File
@@ -13,12 +13,17 @@
<script lang="ts">
import TopHeader from '@/components/common/TopHeader.vue';
import BottomFooter from '@/components/common/BottomFooter.vue';
import { ElContainer, ElMain, ElFooter, ElHeader } from 'element-plus';
export default {
name: 'LayoutService',
components: {
TopHeader,
BottomFooter
BottomFooter,
ElContainer,
ElMain,
ElFooter,
ElHeader
}
};
</script>
+4 -3
View File
@@ -2,22 +2,23 @@ import { createApp } from 'vue';
import App from './App.vue';
import router from './router/index';
import store from './store/index';
import ElementPlus from 'element-plus';
import i18n from './i18n/index';
import './assets/scss/style.scss';
import './assets/css/tailwind.css';
import dayjs from './plugins/dayjs';
// import './plugins/font-awesome';
import './plugins/font-awesome';
import { vLoading } from 'element-plus';
console.debug('start to create app');
const app = createApp(App);
app.use(router);
app.use(store);
app.use(ElementPlus);
// app.use(ElementPlus);
app.use(i18n);
app.use(dayjs, {
formatString: 'YYYY-MM-DD HH:mm:ss'
});
app.directive('loading', vLoading);
app.mount('#app');
console.debug('app mounted');
+13 -9
View File
@@ -12,7 +12,7 @@
<el-table v-loading="loading" :data="applications" stripe>
<el-table-column :label="$t('application.field.service')" width="200px">
<template #default="scope">
<span>{{ scope.row.service?.title }}</span>
<span>{{ scope.row?.service?.title }}</span>
</template>
</el-table-column>
<el-table-column
@@ -29,19 +29,19 @@
/>
<el-table-column :label="$t('application.field.apiKey')" class-name="api-key" width="330px">
<template #default="scope">
<span class="key">{{ scope.row.api_key }}</span>
<span class="key">{{ scope?.row?.api_key }}</span>
<span class="copy">
<copy-to-clipboard :content="scope.row.api_key" />
<copy-to-clipboard :content="scope?.row?.api_key" />
</span>
</template>
</el-table-column>
<el-table-column>
<template #default="scope">
<div class="float-right">
<el-button v-if="false" @click="onGoDocument(scope.row)">
<el-button v-if="false" @click="onGoDocument(scope?.row)">
{{ $t('application.button.goDocument') }}
</el-button>
<el-button type="primary" @click="onBuyMore(scope.row)">
<el-button type="primary" @click="onBuyMore(scope?.row)">
{{ $t('application.button.buyMore') }}
</el-button>
</div>
@@ -66,10 +66,10 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { applicationOperator, IApplication, IApplicationListResponse, IService } from '@/operators';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import Pagination from '@/components/common/Pagination.vue';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import CreateOrder from '@/components/order/Create.vue';
import { ElTable, ElRow, ElCol, ElTableColumn, ElButton, ElCard } from 'element-plus';
interface IData {
applications: IApplication[];
@@ -89,10 +89,15 @@ interface IData {
export default defineComponent({
name: 'ConsoleApplicationList',
components: {
FontAwesomeIcon,
Pagination,
CopyToClipboard,
CreateOrder
CreateOrder,
ElTable,
ElRow,
ElCol,
ElTableColumn,
ElButton,
ElCard
},
data(): IData {
return {
@@ -180,7 +185,6 @@ export default defineComponent({
.api-key {
.copy {
cursor: pointer;
margin: 0 10px;
}
}
}
+10 -1
View File
@@ -87,6 +87,7 @@
import { defineComponent } from 'vue';
import { IOrder, IOrderDetailResponse, orderOperator, OrderState } from '@/operators/order';
import QrCode from 'qrcode.vue';
import { ElRow, ElCol, ElCard, ElSkeleton, ElDivider, ElAlert, ElDescriptions, ElDescriptionsItem } from 'element-plus';
enum PayWay {
WechatPay = 'WechatPay',
@@ -105,7 +106,15 @@ interface IData {
export default defineComponent({
name: 'ConsoleOrderDetail',
components: {
QrCode
QrCode,
ElRow,
ElCol,
ElCard,
ElSkeleton,
ElDivider,
ElAlert,
ElDescriptions,
ElDescriptionsItem
},
data(): IData {
return {
+9 -1
View File
@@ -102,6 +102,7 @@ import { defineComponent } from 'vue';
import { IOrder, IOrderListResponse, orderOperator, OrderState } from '@/operators/order';
import Pagination from '@/components/common/Pagination.vue';
import CopyToClipboard from '@/components/common/CopyToClipboard.vue';
import { ElRow, ElCol, ElTable, ElTableColumn, ElButton, ElTag, ElCard } from 'element-plus';
interface IData {
orders: IOrder[];
@@ -115,7 +116,14 @@ export default defineComponent({
name: 'ConsoleOrderList',
components: {
Pagination,
CopyToClipboard
CopyToClipboard,
ElRow,
ElCol,
ElTable,
ElTableColumn,
ElButton,
ElTag,
ElCard
},
data(): IData {
return {
+9 -2
View File
@@ -8,8 +8,13 @@
</div>
</div>
<div v-if="document?.type === 'API' && document?.api" class="right">
<api-code :form="form" :api="document?.api" />
<api-try :form="form" :api="document?.api" />
<div v-if="loading" class="p-5">
<el-skeleton />
</div>
<div v-else>
<api-code :form="form" :api="document?.api" />
<api-try :form="form" :api="document?.api" />
</div>
</div>
</template>
@@ -21,6 +26,7 @@ import ApiCode from '@/components/api/Code.vue';
import { documentOperator, IDocument, IDocumentDetailResponse } from '@/operators';
import { IForm } from '@/operators/api/models';
import MarkdownRenderer from '@/components/common/MarkdownRenderer.vue';
import { ElSkeleton } from 'element-plus';
export interface IData {
document: IDocument | undefined;
@@ -34,6 +40,7 @@ export default defineComponent({
ApiUsage,
ApiTry,
ApiCode,
ElSkeleton,
MarkdownRenderer
},
data(): IData {
+5
View File
@@ -11,12 +11,17 @@ import { IDocument, IDocumentListResponse } from '@/operators/document/models';
import { documentOperator } from '@/operators/document/operator';
import { ROUTE_DOCUMENT_DETAIL } from '@/router';
import { defineComponent } from 'vue';
import { ElSkeleton, ElDivider } from 'element-plus';
interface IData {
documents: IDocument[];
}
export default defineComponent({
name: 'DocumentIndex',
components: {
ElSkeleton,
ElDivider
},
data(): IData {
return {
documents: []
+9 -4
View File
@@ -11,7 +11,7 @@
{{ service.description }}
</p>
<div class="price">
<p v-if="service && service.price && service.price > 0" class="nonfree">
<p v-if="service && service.price && service.price > 0" class="unfree">
<span class="value">¥{{ service.price }}</span>
<span class="unit"> / {{ $t('service.unit.usage') }}</span>
</p>
@@ -60,6 +60,7 @@ import { apiOperator } from '@/operators/api/operator';
import { IApi, IApiListResponse } from '@/operators/api/models';
import MarkdownRenderer from '@/components/common/MarkdownRenderer.vue';
import { ROUTE_CONSOLE_APPLICATION_LIST } from '@/router';
import { ElCol, ElRow, ElButton, ElCard } from 'element-plus';
interface IData {
service: IService | undefined;
@@ -72,7 +73,11 @@ interface IData {
export default defineComponent({
name: 'ServiceDetail',
components: {
MarkdownRenderer
MarkdownRenderer,
ElCol,
ElRow,
ElButton,
ElCard
},
data(): IData {
return {
@@ -179,7 +184,7 @@ export default defineComponent({
.price {
margin: 0;
.nonfree {
.unfree {
.value {
font-weight: bold;
color: #ff5441;
@@ -291,7 +296,7 @@ export default defineComponent({
}
.price {
margin: 0;
.nonfree {
.unfree {
.value {
font-weight: bold;
color: #ff5441;
+22 -12
View File
@@ -9,14 +9,14 @@
{{ $t('service.message.indexSubtitle') }}
</h3>
<div class="operations">
<el-button type="danger" class="btn-apply">
<el-button type="danger" class="btn-apply" @click="onApply">
{{ $t('common.button.startForFree') }}
</el-button>
</div>
</div>
</el-col>
</el-row>
<el-row>
<el-row id="services">
<el-col :span="20" :offset="2">
<el-row v-if="loading" :gutter="15" class="services">
<el-col v-for="_ in 8" :key="_" :lg="6" :md="8" :sm="12" :xs="24">
@@ -45,12 +45,7 @@
<el-image class="thumb" :src="service?.thumbnail" />
<div class="title">{{ service.title }}</div>
<div class="price">
<p v-if="service && service.price && service.price > 0" class="nonfree">
¥{{ service.price }} / {{ $t('service.unit.usage') }}
</p>
<p v-else class="free">
{{ $t('service.message.free') }}
</p>
<service-price :price="service?.price" />
</div>
<div class="description">
<p>
@@ -75,8 +70,9 @@
<script lang="ts">
import { serviceOperator, IService, IServiceListResponse } from '@/operators';
import { defineComponent } from 'vue';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import Pagination from '@/components/common/Pagination.vue';
import { ElRow, ElCol, ElButton, ElCard, ElSkeleton, ElImage, ElSkeletonItem } from 'element-plus';
import ServicePrice from '@/components/service/Price.vue';
interface IData {
services: IService[];
@@ -87,8 +83,15 @@ interface IData {
export default defineComponent({
name: 'ServiceList',
components: {
FontAwesomeIcon,
Pagination
Pagination,
ElRow,
ElCol,
ElButton,
ElCard,
ElSkeleton,
ElImage,
ElSkeletonItem,
ServicePrice
},
data(): IData {
return {
@@ -114,6 +117,13 @@ export default defineComponent({
this.onFetchData();
},
methods: {
onApply() {
window.scrollTo({
top: document.getElementById('services')?.offsetTop,
left: 0,
behavior: 'smooth'
});
},
onPageChange(page: number) {
this.$router.push({
name: this.$route.name?.toString(),
@@ -280,7 +290,7 @@ $transition-duration: 0.5s;
font-weight: bold;
text-align: center;
margin: 0;
.nonfree {
.unfree {
color: #ff5441;
}
.free {