From 3ca6c962d3379ecd44854deb9bd677ee063703a6 Mon Sep 17 00:00:00 2001 From: tobe Date: Tue, 16 Jan 2024 15:50:13 +0800 Subject: [PATCH] Refine frontend for 010 --- docker/Dockerfile | 4 ++-- frontend/src/components/Home.vue | 2 +- .../computedfeatures/ComputedFeaturesPage.vue | 2 +- .../src/components/feature/FeatureDetail.vue | 2 +- .../src/components/form/CreateFeatureForm.vue | 2 +- .../components/form/CreateFeatureServiceForm.vue | 2 +- frontend/src/locales/en.json | 1 + frontend/src/locales/zh.json | 16 ++++++++-------- pom.xml | 2 +- 9 files changed, 17 insertions(+), 16 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index cfb8ce6..e77bc71 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,9 +2,9 @@ FROM openjdk:17-oracle WORKDIR /app -ADD openmldb-feature-platform-0.8-SNAPSHOT.jar /app/ +ADD openmldb-feature-platform-0.1-SNAPSHOT.jar /app/ EXPOSE 8888 -CMD ["java", "-jar", "/app/openmldb-feature-platform-0.8-SNAPSHOT.jar"] +CMD ["java", "-jar", "/app/openmldb-feature-platform-0.1-SNAPSHOT.jar"] diff --git a/frontend/src/components/Home.vue b/frontend/src/components/Home.vue index 1646f2f..9c34a88 100644 --- a/frontend/src/components/Home.vue +++ b/frontend/src/components/Home.vue @@ -80,7 +80,7 @@
- OpenMLDB © 2021-2023 + OpenMLDB © 2021-2024
diff --git a/frontend/src/components/computedfeatures/ComputedFeaturesPage.vue b/frontend/src/components/computedfeatures/ComputedFeaturesPage.vue index 1c9d014..e643c23 100644 --- a/frontend/src/components/computedfeatures/ComputedFeaturesPage.vue +++ b/frontend/src/components/computedfeatures/ComputedFeaturesPage.vue @@ -29,7 +29,7 @@ - {{ $t('Display Sample Features') }} + {{ $t('Preview Sample Features') }}  {{ $t('Filter with Index') }}
diff --git a/frontend/src/components/feature/FeatureDetail.vue b/frontend/src/components/feature/FeatureDetail.vue index f44dccc..1a75f29 100644 --- a/frontend/src/components/feature/FeatureDetail.vue +++ b/frontend/src/components/feature/FeatureDetail.vue @@ -14,7 +14,7 @@

- {{ $t('Display Sample Features') }} + {{ $t('Preview Sample Features') }}
diff --git a/frontend/src/components/form/CreateFeatureForm.vue b/frontend/src/components/form/CreateFeatureForm.vue index c3dac86..5e64710 100644 --- a/frontend/src/components/form/CreateFeatureForm.vue +++ b/frontend/src/components/form/CreateFeatureForm.vue @@ -184,7 +184,7 @@ export default { }) .then(response => { notification["success"]({ - message: this.$t('Execute Fail'), + message: this.$t('Execute Success'), description: `${this.$t('Success to create feature view')}: ${this.formState.name}` }); diff --git a/frontend/src/components/form/CreateFeatureServiceForm.vue b/frontend/src/components/form/CreateFeatureServiceForm.vue index 52a038c..d2353ad 100644 --- a/frontend/src/components/form/CreateFeatureServiceForm.vue +++ b/frontend/src/components/form/CreateFeatureServiceForm.vue @@ -192,7 +192,7 @@ export default { }) .then(response => { notification["success"]({ - message: this.$t('Success Fail'), + message: this.$t('Execute Success'), description: `Success to add feature service ${this.formState.name} and version ${this.formState.version}` }); diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index c01d678..a26bb83 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -273,6 +273,7 @@ "Example": "Example", "Text of SQL Playground": "Users can execute any OpenMLDB SQL statement. In online mode, it will request the online database, allowing for the addition, deletion, modification, and querying of online data; in offline mode, it will submit SQL for distributed execution, enabling offline exploration or sample generation.", "Text of Computed Features": "Users can precompute feature values and directly store them in the OpenMLDB online table, and then access the online table data for reading and writing features. If more complex feature computation logic is needed, it can be implemented through the command line or SDK by writing OpenMLDB SQL.", + "Preview Sample Features": "Preview Sample Features", "Filter with Index": "Filter with Index" } \ No newline at end of file diff --git a/frontend/src/locales/zh.json b/frontend/src/locales/zh.json index f746789..c09ca7a 100644 --- a/frontend/src/locales/zh.json +++ b/frontend/src/locales/zh.json @@ -13,10 +13,10 @@ "Features": "特征", "Feature": "特征", "Feature List": "特征列表", - "Feature Views": "特征组", - "Feature View": "特征组", - "Feature View List": "特征组列表", - "Feature View Name": "特征组名", + "Feature Views": "特征视图", + "Feature View": "特征视图", + "Feature View List": "特征视图列表", + "Feature View Name": "特征视图名", "Feature Services": "特征服务", "Feature Service": "特征服务", "Feature Service List": "特征服务列表", @@ -97,7 +97,7 @@ "Map Hive Table": "映射Hive表", "Display Import SQL": "显示 SQL 导入", "Display All Versions": "显示所有版本", - "Related Feature Views": "关联特征组", + "Related Feature Views": "关联特征视图", "Related Feature Services": "关联特征服务", "Notice CLTV Text": "注意:网页版支持标准Hive数据引入,CLTV数据需要通过后台引入。", "Dag": "Dag", @@ -209,7 +209,7 @@ "Success to submit import data job": "成功提交导入数据任务", "Write Mode": "写入模式", "All Features": "所有特征", - "All Feature Views": "所有特征组", + "All Feature Views": "所有特征视图", "All Databases": "所有数据库", "All Tables": "所有数据表", "All Offline Jobs": "所有离线任务", @@ -231,7 +231,7 @@ "Offline Scenario": "离线场景", "Export Offline Sample": "导出离线样本", "Analyze": "分析", - "Success to create feature view": "成功创建特征组", + "Success to create feature view": "成功创建特征视图", "SQL Playground": "SQL实验室", "SQL Result": "SQL 结果", "Insert Single Row": "插入单行数据", @@ -275,7 +275,7 @@ "Example": "示例", "Text of SQL Playground": "用户可以执行任意的 OpenMLDB SQL 语句,在线模式下会请求在线数据库,可进行在线数据的增删改查;离线模式下会提交分布式执行的 SQL,可进行离线探索或样本生成。", "Text of Computed Features": "用户可以通过预计算把特征值直接存入 OpenMLDB 在线表中,然后访问在线表数据进行读写特征。如果需要实现更复杂的特征计算逻辑,可以通过命令行或SDK来编写 OpenMLDB SQL 实现。", - "Display Sample Features": "显示样本特征", + "Preview Sample Features": "预览样本特征", "Filter with Index": "通过索引过滤" diff --git a/pom.xml b/pom.xml index 0935dbb..81b309d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.4paradigm.openmldb openmldb-feature-platform jar - 0.8-SNAPSHOT + 0.1.0-SNAPSHOT openmldb-feature-platform-server http://maven.apache.org