Skip to content

Commit ad80762

Browse files
authored
Merge pull request #7 from WeDataSphere/1.1.2-ryanlei
Merge front code
2 parents a09ccee + 800465c commit ad80762

File tree

32 files changed

+2397
-26
lines changed

32 files changed

+2397
-26
lines changed

web/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ module.exports = {
7878
'vue/multiline-html-element-content-newline': 0,
7979
'vue/attributes-order': 0,
8080
'vue/html-self-closing': 0,
81+
"vue/valid-v-model": 0,
8182
'no-useless-constructor': 0,
8283
'no-mixed-operators': 0,
8384
'no-new-func': 0,

web/README-DEV.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
新增功能模块先确定涉及应用,按照上面目录结构维护代码同时建议遵守以下约束:
3232

3333
- 子应用可以配置自己的layout需要在应用router模块导出配置subAppRoutes
34-
- 子应用支持使用自己的header,需要在config.json里配置模块路径
3534
- 各应用需要使用iView作为UI库,并提供路由,国际化等配置写入config.json
3635
- 各应用间不要相互直接依赖,确有依赖通过lerna管理
3736
- 可复用组件,资源需要合理放置,packages/shared 共享组件方法,修改需要注意影响
@@ -43,9 +42,12 @@
4342

4443
### 如何新增一个子应用,如何扩展
4544

46-
1. config.json 新增应用配置
45+
1. config.json apps里新增应用配置(apps里配置的字应用模块会一起合并打包)
4746
2. packages 下新建应用目录或者插件目录进行应用开发
4847

48+
参考packages/demo:
49+
npm run serve --configfile=config.demo.json
50+
http://localhost:8080/#/demoHome
4951

5052
### 前端开发、构建打包
5153

web/config.demo.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"apps": {
3+
"demo": {
4+
"routes": "demo/router",
5+
"module": "demo/module",
6+
"i18n": {
7+
"en": "demo/i18n/en.json",
8+
"zh-CN": "demo/i18n/zh.json"
9+
}
10+
},
11+
"sparketl": {
12+
"routes": "sparketl/router/index",
13+
"i18n": {
14+
"en": "sparketl/utils/i18n/zh.json",
15+
"zh-CN": "sparketl/utils/i18n/zh.json"
16+
}
17+
}
18+
},
19+
"exts": {
20+
},
21+
"components": {
22+
},
23+
"conf": {
24+
"app_name": "DataSphere Studio",
25+
"app_logo": "dss/assets/images/dssLogo.png",
26+
"user_guide": "",
27+
"faq_link": "/_book/",
28+
"copy_project_enable": true,
29+
"error_report": true,
30+
"table_transfer": true,
31+
"watermark": {
32+
"show": true,
33+
"template": "${username} ${time}",
34+
"timeupdate": 60000
35+
},
36+
"update_chrome": "/_book/知识库/DSS常见问题/其他/DSS使用推荐的浏览器版本.html"
37+
},
38+
"version": "1.1.2"
39+
}

web/config.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@
6868
}
6969
},
7070
"components": {
71-
"WeEditorLsp": "editorLsp/index.js",
7271
"WeEditor": "editor/index.js"
7372
},
7473
"conf": {
@@ -82,10 +81,7 @@
8281
"template": "${username} ${time}",
8382
"timeupdate": 60000
8483
},
85-
"lsp_service": {
86-
"sql": "${protocol}//${host}/server",
87-
"py": "${protocol}//${host}/python"
88-
}
84+
"env": "opensource"
8985
},
9086
"version": "1.1.12"
9187
}

0 commit comments

Comments
 (0)