Skip to content

Commit

Permalink
Merge pull request #7 from WeDataSphere/1.1.2-ryanlei
Browse files Browse the repository at this point in the history
Merge front code
  • Loading branch information
zqburde committed Jul 25, 2023
2 parents 44d7936 + ccf7a01 commit addf94b
Show file tree
Hide file tree
Showing 32 changed files with 2,397 additions and 26 deletions.
1 change: 1 addition & 0 deletions web/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module.exports = {
'vue/multiline-html-element-content-newline': 0,
'vue/attributes-order': 0,
'vue/html-self-closing': 0,
"vue/valid-v-model": 0,
'no-useless-constructor': 0,
'no-mixed-operators': 0,
'no-new-func': 0,
Expand Down
6 changes: 4 additions & 2 deletions web/README-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
新增功能模块先确定涉及应用,按照上面目录结构维护代码同时建议遵守以下约束:

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

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

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

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

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

Expand Down
39 changes: 39 additions & 0 deletions web/config.demo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"apps": {
"demo": {
"routes": "demo/router",
"module": "demo/module",
"i18n": {
"en": "demo/i18n/en.json",
"zh-CN": "demo/i18n/zh.json"
}
},
"sparketl": {
"routes": "sparketl/router/index",
"i18n": {
"en": "sparketl/utils/i18n/zh.json",
"zh-CN": "sparketl/utils/i18n/zh.json"
}
}
},
"exts": {
},
"components": {
},
"conf": {
"app_name": "DataSphere Studio",
"app_logo": "dss/assets/images/dssLogo.png",
"user_guide": "",
"faq_link": "/_book/",
"copy_project_enable": true,
"error_report": true,
"table_transfer": true,
"watermark": {
"show": true,
"template": "${username} ${time}",
"timeupdate": 60000
},
"update_chrome": "/_book/知识库/DSS常见问题/其他/DSS使用推荐的浏览器版本.html"
},
"version": "1.1.2"
}
6 changes: 1 addition & 5 deletions web/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
}
},
"components": {
"WeEditorLsp": "editorLsp/index.js",
"WeEditor": "editor/index.js"
},
"conf": {
Expand All @@ -82,10 +81,7 @@
"template": "${username} ${time}",
"timeupdate": 60000
},
"lsp_service": {
"sql": "${protocol}//${host}/server",
"py": "${protocol}//${host}/python"
}
"env": "opensource"
},
"version": "1.1.12"
}
Loading

0 comments on commit addf94b

Please sign in to comment.