mirror of https://github.com/certd/certd
chore: vip label translate
parent
2d1504a057
commit
3fb3cee423
|
@ -65,7 +65,6 @@ async function addItem() {
|
|||
return;
|
||||
}
|
||||
|
||||
debugger;
|
||||
if (emails.value.find(item => item.value === email)) {
|
||||
notification.warning({
|
||||
message: "此邮箱已存在",
|
||||
|
|
|
@ -287,7 +287,7 @@ function openUpgrade() {
|
|||
},
|
||||
maskClosable: true,
|
||||
okText: t("vip.activate"),
|
||||
width: 1000,
|
||||
width: 1100,
|
||||
content: () => {
|
||||
let activationCodeGetWay = (
|
||||
<span>
|
||||
|
@ -419,7 +419,7 @@ onMounted(() => {
|
|||
padding: 10px;
|
||||
border: 1px solid #eee;
|
||||
border-radius: 5px;
|
||||
height: 250px;
|
||||
height: 275px;
|
||||
|
||||
//background-color: rgba(250, 237, 167, 0.79);
|
||||
&.current {
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
export default {
|
||||
label: {
|
||||
comm: "Business Edition",
|
||||
plus: "Professional Edition",
|
||||
free: "Basic Edition",
|
||||
},
|
||||
comm: {
|
||||
name: "{vipLabel} Activated",
|
||||
title: "Expires on: {expire}",
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
export default {
|
||||
label: {
|
||||
comm: "商业版",
|
||||
plus: "专业版",
|
||||
free: "基础版",
|
||||
},
|
||||
comm: {
|
||||
name: "{vipLabel}已开通",
|
||||
title: "到期时间:{expire}",
|
||||
|
|
|
@ -10,7 +10,7 @@ import { updatePreferences } from "/@/vben/preferences";
|
|||
import { useTitle } from "@vueuse/core";
|
||||
import { utils } from "/@/utils";
|
||||
import { cloneDeep, merge } from "lodash-es";
|
||||
|
||||
import { useI18n } from "/src/locales";
|
||||
export interface SettingState {
|
||||
sysPublic?: SysPublicSetting;
|
||||
installInfo?: {
|
||||
|
@ -129,10 +129,11 @@ export const useSettingStore = defineStore({
|
|||
return this.isComm || this.isAgent;
|
||||
},
|
||||
vipLabel(): string {
|
||||
const { t } = useI18n();
|
||||
const vipLabelMap: any = {
|
||||
free: "基础版",
|
||||
plus: "专业版",
|
||||
comm: "商业版",
|
||||
free: t("vip.label.free"),
|
||||
plus: t("vip.label.plus"),
|
||||
comm: t("vip.label.comm"),
|
||||
};
|
||||
return vipLabelMap[this.plusInfo?.vipType || "free"];
|
||||
},
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
<template>
|
||||
<fs-page>
|
||||
<template #header>
|
||||
<div class="title">
|
||||
<div class="title flex items-center">
|
||||
流水线模版
|
||||
<span class="sub">可根据模版批量创建流水线</span>
|
||||
<span class="ml-10 sub flex items-center">
|
||||
<span>可根据模版批量创建流水线 </span>
|
||||
<vip-button class="ml-10" mode="button" />
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<fs-crud ref="crudRef" v-bind="crudBinding"> </fs-crud>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import {ALL, Body, Controller, Inject, Post, Provide, Query} from '@midwayjs/core';
|
||||
import {Constants, CrudController} from '@certd/lib-server';
|
||||
import { TemplateService } from '../../../modules/pipeline/service/template-service.js';
|
||||
import { checkPlus } from '@certd/plus-core';
|
||||
|
||||
/**
|
||||
* 流水线模版
|
||||
|
@ -42,6 +43,7 @@ export class TemplateController extends CrudController<TemplateService> {
|
|||
@Post('/add', { summary: Constants.per.authOnly })
|
||||
async add(@Body(ALL) bean) {
|
||||
bean.userId = this.getUserId();
|
||||
checkPlus()
|
||||
return super.add(bean);
|
||||
}
|
||||
|
||||
|
@ -77,6 +79,7 @@ export class TemplateController extends CrudController<TemplateService> {
|
|||
@Post('/createPipelineByTemplate', { summary: Constants.per.authOnly })
|
||||
async createPipelineByTemplate(@Body(ALL) body: any) {
|
||||
body.userId = this.getUserId();
|
||||
checkPlus()
|
||||
const res = await this.service.createPipelineByTemplate(body);
|
||||
return this.ok(res);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue