From b4c10ed21d0e6d02fa18c7070c0e31d83a468991 Mon Sep 17 00:00:00 2001 From: pqcqaq <905739777@qq.com> Date: Sat, 12 Oct 2024 22:23:46 +0800 Subject: [PATCH] issue fixed --- src/checkers/store.ts | 33 -------- src/configuration/attrUpdateMatrix.ts | 7 -- src/data/i18n.ts | 106 +++++++++++++++++++------- 3 files changed, 78 insertions(+), 68 deletions(-) delete mode 100644 src/checkers/store.ts diff --git a/src/checkers/store.ts b/src/checkers/store.ts deleted file mode 100644 index 1460666..0000000 --- a/src/checkers/store.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { EntityDict } from '@oak-app-domain'; -import { Checker } from 'oak-domain/lib/types'; -import { RuntimeCxt } from '../types/RuntimeCxt'; -import { checkAttributesNotNull } from 'oak-domain/lib/utils/validator'; -import { CreateOperationData as CreateStoreData } from '@oak-app-domain/Store/Schema'; - -export const checkers: Checker[] = [ - { - type: 'data', - action: 'create', - entity: 'store', - checker: (data, context) => { - if (data instanceof Array) { - data.forEach((ele) => { - checkAttributesNotNull('store', data, [ - 'coordinate', - 'name', - 'addrDetail', - 'areaId', - ]); - }); - } else { - checkAttributesNotNull('store', data, [ - 'coordinate', - 'name', - 'addrDetail', - 'areaId', - ]); - } - return 0; - }, - }, -]; diff --git a/src/configuration/attrUpdateMatrix.ts b/src/configuration/attrUpdateMatrix.ts index 1e6e4a5..c70facb 100644 --- a/src/configuration/attrUpdateMatrix.ts +++ b/src/configuration/attrUpdateMatrix.ts @@ -3,13 +3,6 @@ import { EntityDict } from '@project/oak-app-domain'; const attrUpdateMatrix: AttrUpdateMatrix = { - store: { - name: { - filter: { - iState: 'offline', - }, - }, - }, } export default attrUpdateMatrix; \ No newline at end of file diff --git a/src/data/i18n.ts b/src/data/i18n.ts index 902f85d..c9de49d 100644 --- a/src/data/i18n.ts +++ b/src/data/i18n.ts @@ -321,6 +321,22 @@ const i18ns: I18n[] = [ } } }, + { + id: "5cd7b813d2b4f185e6cf18fc0238c0f6", + namespace: "category", + language: "zh-CN", + module: "", + position: "oak-app-domain/Category", + data: { + "name": "文章分类", + "attr": { + "name": "分类名称", + "description": "描述", + "creator": "创建者", + "images": "图片" + } + } + }, { id: "a011989772d51a490ab920521cc8dec7", namespace: "changePasswordTemp", @@ -392,6 +408,52 @@ const i18ns: I18n[] = [ } } }, + { + id: "c930a8c71cf774a5d6560d479409ec39", + namespace: "essay", + language: "zh-CN", + module: "", + position: "oak-app-domain/Essay", + data: { + "name": "文章", + "attr": { + "title": "标题", + "summary": "摘要", + "content": "内容(Markdown 格式)", + "creator": "创建者", + "meta": "元数据", + "images": "图片", + "logs": "修改记录", + "category": "分类", + "iState": "状态" + }, + "action": { + "publish": "发布", + "withdraw": "撤回" + }, + "v": { + "iState": { + "unpublished": "未发布", + "published": "已发布", + "withdrawn": "已撤回" + } + } + } + }, + { + id: "125c3a1c53d096f40a52f11c2fdbb998", + namespace: "essayLabels", + language: "zh-CN", + module: "", + position: "oak-app-domain/EssayLabels", + data: { + "name": "文章标签", + "attr": { + "essay": "文章", + "label": "标签" + } + } + }, { id: "28eeac0e2afb8ad3e26d008e258f29fc", namespace: "extraFile", @@ -462,6 +524,22 @@ const i18ns: I18n[] = [ } } }, + { + id: "7fafae2579477593b99dded38a36611c", + namespace: "label", + language: "zh-CN", + module: "", + position: "oak-app-domain/Label", + data: { + "name": "文章标签", + "attr": { + "name": "标签名称", + "description": "描述", + "color": "颜色", + "creator": "创建者" + } + } + }, { id: "f3c966c0e1deb4ca4c10e10117143849", namespace: "livestream", @@ -1032,34 +1110,6 @@ const i18ns: I18n[] = [ } } }, - { - id: "1b59a26937dfe86d106b3d289518d825", - namespace: "store", - language: "zh-CN", - module: "", - position: "oak-app-domain/Store", - data: { - "name": "门店", - "attr": { - "coordinate": "位置", - "name": "名称", - "addrDetail": "地址详情", - "iState": "状态" - }, - "action": { - "online": "上线", - "offline": "下线", - "disable": "禁用" - }, - "v": { - "iState": { - "online": "已上线", - "offline": "已下线", - "disabled": "已禁用" - } - } - } - }, { id: "471a59445943904ed115e0e2eb5ffa6f", namespace: "subscription",