visuddhinanda 4 дней назад
Родитель
Сommit
5c592dc799

+ 8 - 0
dashboard-v6/src/api/channel.ts

@@ -27,6 +27,12 @@ export interface ChannelInfoProps {
   count?: number;
 }
 
+export type TChannelSourceType = "original" | "reprint" | "ai";
+export const SOURCE_TYPE_OPTIONS: TChannelSourceType[] = [
+  "original",
+  "reprint",
+  "ai",
+];
 /**
  * 句子完成情况
  * [句子字符数,是否完成]
@@ -43,6 +49,8 @@ export interface IApiResponseChannelData {
   status: number;
   is_system: boolean;
   progress?: number;
+  source_type?: TChannelSourceType | null;
+  source_id?: string | null;
   created_at: string;
   updated_at: string;
   role?: TRole;

+ 0 - 6
dashboard-v6/src/locales/en-US.ts

@@ -1,13 +1,10 @@
 import forms from "./en-US/forms";
 import buttons from "./en-US/buttons";
 import nut from "./en-US/nut";
-import channel from "./en-US/channel";
 import dict from "./en-US/dict";
 import term from "./en-US/term";
 import group from "./en-US/group";
-import article from "./en-US/article";
 import utilities from "./en-US/utilities";
-import blog from "./en-US/blog";
 import setting from "./en-US/setting";
 import auth from "./en-US/auth";
 import course from "./en-US/course";
@@ -54,13 +51,10 @@ const items = {
   ...buttons,
   ...forms,
   ...nut,
-  ...channel,
   ...dict,
   ...term,
   ...group,
-  ...article,
   ...utilities,
-  ...blog,
   ...setting,
   ...auth,
   ...course,

+ 0 - 6
dashboard-v6/src/locales/en-US/article/index.ts

@@ -1,6 +0,0 @@
-const items = {
-  "article.lable": "article",
-  "article.fields.article.count.label": "article count",
-};
-
-export default items;

+ 0 - 6
dashboard-v6/src/locales/en-US/blog/index.ts

@@ -1,6 +0,0 @@
-const items = {
-  "blog.overview": "overview",
-  "blog.palicanon": "palicanon",
-};
-
-export default items;

+ 0 - 19
dashboard-v6/src/locales/en-US/channel/index.ts

@@ -1,19 +0,0 @@
-const items = {
-  "channel.title": "channel",
-  "channel.type": "type",
-  "channel.name": "name",
-  "channel.create.message.noname": "请输入版本名称",
-  "channel.type.all.title": "all",
-  "channel.type.translation.label": "translation",
-  "channel.type.nissaya.label": "Nissaya",
-  "channel.type.commentary.label": "commentary",
-  "channel.type.original.label": "original",
-  "channel.type.message.required": "请输入版本类型",
-  "channel.lang": "language",
-  "channel.fields.lang.label": "语言",
-  "channel.fields.type.label": "类型",
-  "channel.fields.name.label": "名称",
-  "channel.type.similar.label": "Similar",
-};
-
-export default items;

+ 23 - 1
dashboard-v6/src/locales/en-US/label.ts

@@ -51,7 +51,7 @@ const items = {
   "labels.error.403": "没有权限",
   "labels.error.404": "没有找到指定的资源",
   "labels.error.429": "请求过于频繁",
-  "labels.error.500": "服务器内部错误",
+  "labels.error.500": "Server Internal Error",
   "labels.task": "task",
   "labels.task.hall": "task hall",
   "labels.task.mine": "my task",
@@ -97,6 +97,28 @@ const items = {
   "labels.shared": "Shared",
   "labels.community": "Community",
   "labels.task.prev.executors": "Prev Executors",
+  "channel.title": "channel",
+  "channel.type": "type",
+  "channel.name": "name",
+  "channel.create.message.noname": "name is request",
+  "channel.type.all.title": "all",
+  "channel.type.translation.label": "translation",
+  "channel.type.nissaya.label": "Nissaya",
+  "channel.type.commentary.label": "commentary",
+  "channel.type.original.label": "original",
+  "channel.type.message.required": "type is request",
+  "channel.lang": "language",
+  "channel.fields.lang.label": "language",
+  "channel.fields.type.label": "type",
+  "channel.fields.name.label": "name",
+  "channel.type.similar.label": "Similar",
+  "channel.source_type": "source type",
+  "channel.source_type.original": "original",
+  "channel.source_type.reprint": "reprint",
+  "channel.source_type.ai": "ai",
+  "channel.source_id": "Source ID",
+  "article.lable": "article",
+  "article.fields.article.count.label": "article count",
 };
 
 export default items;

+ 0 - 2
dashboard-v6/src/locales/zh-Hans.ts

@@ -1,7 +1,6 @@
 import forms from "./zh-Hans/forms";
 import buttons from "./zh-Hans/buttons";
 import nut from "./zh-Hans/nut";
-import channel from "./zh-Hans/channel";
 import dict from "./zh-Hans/dict";
 import term from "./zh-Hans/term";
 import group from "./zh-Hans/group";
@@ -54,7 +53,6 @@ const items = {
   ...buttons,
   ...forms,
   ...nut,
-  ...channel,
   ...dict,
   ...term,
   ...group,

+ 0 - 6
dashboard-v6/src/locales/zh-Hans/article/index.ts

@@ -1,6 +0,0 @@
-const items = {
-	"article.lable": "文章",
-	"article.fields.article.count.label": "文章数量",
-};
-
-export default items;

+ 0 - 6
dashboard-v6/src/locales/zh-Hans/blog/index.ts

@@ -1,6 +0,0 @@
-const items = {
-	"blog.overview": "概览",
-	"blog.palicanon": "译文",
-};
-
-export default items;

+ 0 - 19
dashboard-v6/src/locales/zh-Hans/channel/index.ts

@@ -1,19 +0,0 @@
-const items = {
-  "channel.title": "版本风格",
-  "channel.type": "类型",
-  "channel.name": "名称",
-  "channel.create.message.noname": "请输入版本名称",
-  "channel.type.all.title": "全部",
-  "channel.type.translation.label": "译文",
-  "channel.type.nissaya.label": "Nissaya",
-  "channel.type.commentary.label": "注疏",
-  "channel.type.original.label": "原文",
-  "channel.type.message.required": "请输入版本类型",
-  "channel.lang": "语言",
-  "channel.fields.lang.label": "语言",
-  "channel.fields.type.label": "类型",
-  "channel.fields.name.label": "名称",
-  "channel.type.similar.label": "相似句",
-};
-
-export default items;

+ 0 - 6
dashboard-v6/src/locales/zh-Hans/index.ts

@@ -1,13 +1,10 @@
 import forms from "./forms";
 import buttons from "./buttons";
 import nut from "./nut";
-import channel from "./channel";
 import dict from "./dict";
 import term from "./term";
 import group from "./group";
-import article from "./article";
 import utilities from "./utilities";
-import blog from "./blog";
 import setting from "./setting";
 import auth from "./auth";
 import course from "./course";
@@ -54,13 +51,10 @@ const items = {
   ...buttons,
   ...forms,
   ...nut,
-  ...channel,
   ...dict,
   ...term,
   ...group,
-  ...article,
   ...utilities,
-  ...blog,
   ...setting,
   ...auth,
   ...course,

+ 22 - 0
dashboard-v6/src/locales/zh-Hans/label.ts

@@ -105,6 +105,28 @@ const items = {
   "labels.shared": "共享",
   "labels.community": "社区",
   "labels.task.prev.executors": "前置执行者",
+  "channel.title": "版本风格",
+  "channel.type": "类型",
+  "channel.name": "名称",
+  "channel.create.message.noname": "请输入版本名称",
+  "channel.type.all.title": "全部",
+  "channel.type.translation.label": "译文",
+  "channel.type.nissaya.label": "Nissaya",
+  "channel.type.commentary.label": "注疏",
+  "channel.type.original.label": "原文",
+  "channel.type.message.required": "请输入版本类型",
+  "channel.lang": "语言",
+  "channel.fields.lang.label": "语言",
+  "channel.fields.type.label": "类型",
+  "channel.fields.name.label": "名称",
+  "channel.type.similar.label": "相似句",
+  "channel.source_type": "来源",
+  "channel.source_type.original": "原创",
+  "channel.source_type.reprint": "转载",
+  "channel.source_type.ai": "人工智能",
+  "channel.source_id": "来源ID",
+  "article.lable": "文章",
+  "article.fields.article.count.label": "文章数量",
 };
 
 export default items;