Skip to content

Commit fc639fb

Browse files
authored
Merge pull request #78 from apconw/dev
优化前端修复reade me 问题
2 parents a073ac3 + b7e6a51 commit fc639fb

88 files changed

Lines changed: 9017 additions & 7161 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ docker/dify/volumes/*
1919

2020
web/node_modules/
2121
web/dist/
22-
web/.vscode/
2322

2423
.DS_Store
2524
.idea/

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"vue.volar",
4+
"dbaeumer.vscode-eslint",
5+
"stylelint.vscode-stylelint"
6+
]
7+
}

.vscode/settings.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"eslint.workingDirectories": [
3+
{
4+
"directory": "web/*",
5+
"changeProcessCWD": true
6+
}
7+
],
8+
"editor.formatOnSave": false,
9+
10+
// Auto fix
11+
12+
"editor.codeActionsOnSave": {
13+
"source.fixAll.eslint": "explicit",
14+
"source.organizeImports": "never",
15+
"source.fixAll.stylelint": "explicit"
16+
},
17+
"eslint.run": "onType",
18+
"eslint.format.enable": true,
19+
"stylelint.validate": [
20+
"vue",
21+
"scss"
22+
],
23+
"css.validate": false,
24+
"less.validate": false,
25+
26+
"files.autoSaveDelay": 500,
27+
28+
// Enable eslint for all supported languages
29+
"eslint.validate": [
30+
"javascript",
31+
"javascriptreact",
32+
"typescript",
33+
"typescriptreact",
34+
"vue",
35+
"html",
36+
"markdown",
37+
"json",
38+
"jsonc",
39+
"yaml",
40+
"toml",
41+
"gql",
42+
"graphql"
43+
]
44+
}

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111

1212
作为轻量级的大模型应用开发项目,Sanic-Web 🛠️ 支持快速迭代与扩展,助力大模型项目快速落地。🚀
1313

14+
## 🐳 关于技术支持申明
15+
- **开源不易,本人精力和时间有限,如需一对一技术支持可以赞助一波^_^联系微信(备注 技术支持)**
16+
- **一对一技术支持 我将亲自远程帮您配置开发环境部署和启动、并讲解项目架构以及二开思路等**
17+
- **长期技术支持方式 拉你加入VIP群(一线算法架构群),为你提供技术指导,大模型项目解决方案等**
18+
- **如果有报告类、写作类等大模型业务场景的项目需求也可以联系我们**
19+
20+
| 微信 |
21+
|:--------------------------:|
22+
| ![image](./images/img.png) |
23+
24+
1425
## 架构方案
1526
![image](./images/app-01.png)
1627

@@ -197,7 +208,7 @@
197208
make web-build
198209
199210
# 构建后端镜像
200-
make server-build
211+
make service-build
201212
202213
203214
## 🌹 支持
@@ -207,10 +218,6 @@
207218
## ⭐ Star History
208219
[![Star History Chart](https://api.star-history.com/svg?repos=apconw/sanic-web&type=Date)](https://star-history.com/#apconw/sanic-web&Date)
209220
210-
## 🐳 关于技术支持申明
211-
- **开源不易,本人精力和时间有限,如需一对一技术支持可以赞助一波^_^联系微信(备注 技术支持)**
212-
- **一对一技术支持 我将亲自远程帮您配置开发环境部署和启动、并讲解项目架构以及二开思路等**
213-
- **长期技术支持方式 拉你加入群(一线算法、架构大佬群),为你提供技术指导,项目解决方案等**
214221
215222
## QA交流群
216223
- 大模型应用交流群欢迎大家, 欢迎加进群讨论分享经验

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
environment:
3131
- ENV=test
3232
- DIFY_SERVER_URL=http://host.docker.internal:18000
33-
- DIFY_DATABASE_QA_API_KEY=app-AXDUw8TtcY7N6TMGHkPaC4VF
33+
- DIFY_DATABASE_QA_API_KEY=app-wBZqS3Zf5trr453bvtZ7QF7F
3434
- MINIO_ENDPOINT=host.docker.internal:19000
3535
- MINIO_ACCESS_KEY=sIR5eeDkiwoo779yNJbw
3636
- MiNIO_SECRET_KEY=MreuQ3aC1ymHJeo3QfzSg7aPz7PqlxeOw39nZUdE

images/img.png

177 KB
Loading

web/.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

web/.eslintrc-auto-import.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"eagerComputed": true,
4949
"effectScope": true,
5050
"extendRef": true,
51+
"fetchConversationHistory": true,
5152
"getCurrentInstance": true,
5253
"getCurrentScope": true,
5354
"h": true,
@@ -281,6 +282,7 @@
281282
"useTransition": true,
282283
"useUrlSearchParams": true,
283284
"useUserMedia": true,
285+
"useUserStore": true,
284286
"useVModel": true,
285287
"useVModels": true,
286288
"useVibrate": true,
@@ -310,8 +312,15 @@
310312
"watchTriggerable": true,
311313
"watchWithFilter": true,
312314
"whenever": true,
313-
"useUserStore": true,
314-
"createStreamFromValue": true,
315-
"fetchConversationHistory": true
315+
"BusinessState": true,
316+
"DirectiveBinding": true,
317+
"MaybeRef": true,
318+
"MaybeRefOrGetter": true,
319+
"Slot": true,
320+
"Slots": true,
321+
"onWatcherCleanup": true,
322+
"useId": true,
323+
"useModel": true,
324+
"useTemplateRef": true
316325
}
317326
}

web/.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

web/.stylelintrc.cjs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
module.exports = {
2-
'extends': [
2+
extends: [
33
'stylelint-config-standard',
44
'stylelint-config-standard-scss',
55
'stylelint-config-recommended-vue',
6-
'stylelint-config-recommended-vue/scss'
6+
'stylelint-config-recommended-vue/scss',
77
],
8-
'plugins': ['@stylistic/stylelint-plugin'],
9-
'ignoreFiles': ['**/*.js', '**/*.ts'],
10-
'defaultSeverity': 'error',
11-
'rules': {
8+
plugins: ['@stylistic/stylelint-plugin'],
9+
ignoreFiles: ['**/*.js', '**/*.ts'],
10+
defaultSeverity: 'error',
11+
rules: {
1212
'unit-disallowed-list': [
1313
'rem',
14-
'pt'
14+
'pt',
1515
],
1616
'@stylistic/indentation': [
1717
2,
1818
{
19-
'baseIndentLevel': 0
20-
}
19+
baseIndentLevel: 0,
20+
},
2121
],
2222
'no-empty-source': null,
2323
'block-no-empty': null,
@@ -33,42 +33,42 @@ module.exports = {
3333
'selector-pseudo-class-no-unknown': [
3434
true,
3535
{
36-
'ignorePseudoClasses': [
36+
ignorePseudoClasses: [
3737
'export',
38-
'deep'
39-
]
40-
}
38+
'deep',
39+
],
40+
},
4141
],
4242
'color-function-notation': ['modern', {
43-
'ignore': ['with-var-inside']
43+
ignore: ['with-var-inside'],
4444
}],
4545
'property-no-unknown': null,
4646
'at-rule-empty-line-before': [
4747
'always',
4848
{
49-
'except': ['first-nested', 'blockless-after-same-name-blockless']
50-
}
49+
except: ['first-nested', 'blockless-after-same-name-blockless'],
50+
},
5151
],
5252
'custom-property-empty-line-before': [
5353
'always',
5454
{
55-
'except': ['after-custom-property', 'first-nested']
56-
}
55+
except: ['after-custom-property', 'first-nested'],
56+
},
5757
],
5858
'declaration-empty-line-before': [
5959
'always',
6060
{
61-
'except': ['after-declaration', 'first-nested']
62-
}
61+
except: ['after-declaration', 'first-nested'],
62+
},
6363
],
6464
'rule-empty-line-before': ['always-multi-line'],
6565

6666
// 忽视 -webkit-xxxx 等兼容写法
6767
'property-no-vendor-prefix': [
6868
true,
6969
{
70-
ignoreProperties: ['box-shadow']
71-
}
72-
]
73-
}
70+
ignoreProperties: ['box-shadow'],
71+
},
72+
],
73+
},
7474
}

0 commit comments

Comments
 (0)