Skip to content

Commit 4e522a6

Browse files
🔧 chore: Update setting
This commit introduces new components, modules, and features related to chat, sessions, and settings. It includes modifications to configuration files, updates to dependencies, adjustments to styles and layouts, and additions of new components and modules. The changes also involve updates to functions, interfaces, selectors, actions, and reducers. Additionally, there are modifications to TypeScript interfaces and types, as well as changes to parameters and functions in certain files.
1 parent 30da537 commit 4e522a6

Some content is hidden

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

72 files changed

+618
-434
lines changed

.changelogrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@lobehub/lint').changelog;

.commitlintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@lobehub/lint').commitlint;

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.eslintignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Eslintignore for LobeHub
2+
################################################################
3+
4+
# dependencies
5+
node_modules
6+
7+
# ci
8+
coverage
9+
.coverage
10+
11+
# test
12+
jest*
13+
_test_
14+
__test__
15+
*.test.ts
16+
17+
# umi
18+
.umi
19+
.umi-production
20+
.umi-test
21+
.dumi/tmp*
22+
!.dumirc.ts
23+
24+
# production
25+
dist
26+
es
27+
lib
28+
logs
29+
30+
# misc
31+
# add other ignore file below
32+
.next

.eslintrc.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,4 @@ const config = require('@lobehub/lint').eslint;
33
config.extends.push('plugin:@next/next/recommended');
44
//config.extends.push('plugin:@next/next/core-web-vitals');
55

6-
module.exports = {
7-
...config,
8-
rules: {
9-
...config.rules,
10-
'react/jsx-sort-props': 'off',
11-
'sort-keys-fix/sort-keys-fix': 'off',
12-
'typescript-sort-keys/interface': 'off',
13-
'unicorn/switch-case-braces': 'off',
14-
},
15-
};
6+
module.exports = config;
+10-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "🐛 反馈缺陷 Bug Report"
2-
description: "反馈一个问题缺陷 | Report an bug"
3-
title: "[Bug] "
4-
labels: "🐛 Bug"
1+
name: '🐛 反馈缺陷 Bug Report'
2+
description: '反馈一个问题缺陷 | Report an bug'
3+
title: '[Bug] '
4+
labels: '🐛 Bug'
55
body:
66
- type: dropdown
77
attributes:
8-
label: "💻 系统环境 | Operating System"
8+
label: '💻 系统环境 | Operating System'
99
options:
1010
- Windows
1111
- macOS
@@ -16,7 +16,7 @@ body:
1616
required: true
1717
- type: dropdown
1818
attributes:
19-
label: "🌐 浏览器 | Browser"
19+
label: '🌐 浏览器 | Browser'
2020
options:
2121
- Chrome
2222
- Edge
@@ -27,19 +27,19 @@ body:
2727
required: true
2828
- type: textarea
2929
attributes:
30-
label: "🐛 问题描述 | Bug Description"
30+
label: '🐛 问题描述 | Bug Description'
3131
description: A clear and concise description of the bug.
3232
validations:
3333
required: true
3434
- type: textarea
3535
attributes:
36-
label: "🚦 期望结果 | Expected Behavior"
36+
label: '🚦 期望结果 | Expected Behavior'
3737
description: A clear and concise description of what you expected to happen.
3838
- type: textarea
3939
attributes:
40-
label: "📷 复现步骤 | Recurrence Steps"
40+
label: '📷 复现步骤 | Recurrence Steps'
4141
description: A clear and concise description of how to recurrence.
4242
- type: textarea
4343
attributes:
44-
label: "📝 补充信息 | Additional Information"
44+
label: '📝 补充信息 | Additional Information'
4545
description: If your problem needs further explanation, or if the issue you're seeing cannot be reproduced in a gist, please add more information here.
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: "🌠 功能需求 Feature Request"
2-
description: "需求或建议 | Suggest an idea"
3-
title: "[Request] "
4-
labels: "🌠 Feature Request"
1+
name: '🌠 功能需求 Feature Request'
2+
description: '需求或建议 | Suggest an idea'
3+
title: '[Request] '
4+
labels: '🌠 Feature Request'
55
body:
66
- type: textarea
77
attributes:
8-
label: "🥰 需求描述 | Feature Description"
8+
label: '🥰 需求描述 | Feature Description'
99
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
1010
validations:
1111
required: true
1212
- type: textarea
1313
attributes:
14-
label: "🧐 解决方案 | Proposed Solution"
14+
label: '🧐 解决方案 | Proposed Solution'
1515
description: Describe the solution you'd like in a clear and concise manner.
1616
validations:
1717
required: true
1818
- type: textarea
1919
attributes:
20-
label: "📝 补充信息 | Additional Information"
20+
label: '📝 补充信息 | Additional Information'
2121
description: Add any other context about the problem here.

.github/ISSUE_TEMPLATE/3_question.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: "😇 疑问或帮助 Help Wanted"
2-
description: "疑问或需要帮助 | Need help"
3-
title: "[Question] "
4-
labels: "😇 Help Wanted"
1+
name: '😇 疑问或帮助 Help Wanted'
2+
description: '疑问或需要帮助 | Need help'
3+
title: '[Question] '
4+
labels: '😇 Help Wanted'
55
body:
66
- type: textarea
77
attributes:
8-
label: "🧐 问题描述 | Proposed Solution"
8+
label: '🧐 问题描述 | Proposed Solution'
99
description: A clear and concise description of the proplem.
1010
validations:
1111
required: true
1212
- type: textarea
1313
attributes:
14-
label: "📝 补充信息 | Additional Information"
14+
label: '📝 补充信息 | Additional Information'
1515
description: Add any other context about the problem here.

.github/dependabot.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
version: 2
22
updates:
33
- package-ecosystem: npm
4-
directory: "/"
4+
directory: '/'
55
schedule:
66
interval: weekly
7-
time: "19:00"
7+
time: '19:00'
88
timezone: 'Asia/Shanghai'
99
open-pull-requests-limit: 10
1010
versioning-strategy: increase
1111

12-
- package-ecosystem: "github-actions"
13-
directory: "/"
12+
- package-ecosystem: 'github-actions'
13+
directory: '/'
1414
schedule:
1515
interval: monthly
16-
time: "19:00"
16+
time: '19:00'
1717
timezone: 'Asia/Shanghai'

.github/workflows/contributor-help.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Contributor Helper
22

33
on:
44
# 🌏 Think about the planet! No need to update stats too frequently
5-
schedule: [{cron: "0 18 * * *"}]
5+
schedule: [{ cron: '0 18 * * *' }]
66
# 💡 The following line lets you run workflow manually from the action tab!
77
workflow_dispatch:
88
jobs:

.github/workflows/issue-check-inactive.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ name: Issue Check Inactive
22

33
on:
44
schedule:
5-
- cron: "0 0 */15 * *"
5+
- cron: '0 0 */15 * *'
66

77
permissions:
88
contents: read
99

1010
jobs:
1111
issue-check-inactive:
1212
permissions:
13-
issues: write # for actions-cool/issues-helper to update issues
14-
pull-requests: write # for actions-cool/issues-helper to update PRs
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: check-inactive
1818
uses: actions-cool/issues-helper@v3
1919
with:
2020
actions: 'check-inactive'
2121
inactive-label: 'Inactive'
22-
inactive-day: 30
22+
inactive-day: 30

.github/workflows/issue-close-require.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Issue Close Require
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: '0 0 * * *'
66

77
permissions:
88
contents: read
99

1010
jobs:
1111
issue-close-require:
1212
permissions:
13-
issues: write # for actions-cool/issues-helper to update issues
14-
pull-requests: write # for actions-cool/issues-helper to update PRs
13+
issues: write # for actions-cool/issues-helper to update issues
14+
pull-requests: write # for actions-cool/issues-helper to update PRs
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: need reproduce

.github/workflows/issue-remove-inactive.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ permissions:
1212
jobs:
1313
issue-remove-inactive:
1414
permissions:
15-
issues: write # for actions-cool/issues-helper to update issues
16-
pull-requests: write # for actions-cool/issues-helper to update PRs
15+
issues: write # for actions-cool/issues-helper to update issues
16+
pull-requests: write # for actions-cool/issues-helper to update PRs
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: remove inactive
@@ -22,4 +22,4 @@ jobs:
2222
with:
2323
actions: 'remove-labels'
2424
issue-number: ${{ github.event.issue.number }}
25-
labels: 'Inactive'
25+
labels: 'Inactive'

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ test-output
5353
*.tsbuildinfo
5454
next-env.d.ts
5555
.next
56-
.env

.gitpod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tasks:
2+
- init: pnpm install
3+
command: pnpm run start

.npmrc

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
lockfile=false
22
resolution-mode=highest
3+
public-hoist-pattern[]=*@umijs/lint*
4+
public-hoist-pattern[]=*changelog*
5+
public-hoist-pattern[]=*commitlint*
6+
public-hoist-pattern[]=*eslint*
7+
public-hoist-pattern[]=*postcss*
8+
public-hoist-pattern[]=*prettier*
9+
public-hoist-pattern[]=*remark*
10+
public-hoist-pattern[]=*semantic-release*
11+
public-hoist-pattern[]=*stylelint*

.prettierignore

+57-22
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,63 @@
1-
**/*.svg
2-
.umi
3-
.umi-production
4-
/dist
5-
.dockerignore
1+
# Prettierignore for LobeHub
2+
################################################################
3+
4+
# general
65
.DS_Store
7-
.eslintignore
8-
*.png
9-
*.jpg
10-
*.webp
11-
*.toml
12-
*.py
13-
docker
146
.editorconfig
15-
Dockerfile*
16-
.gitignore
17-
.prettierignore
18-
LICENSE
19-
.eslintcache
20-
*.lock
21-
yarn-error.log
227
.idea
8+
.vscode
9+
.history
10+
.temp
11+
.env.local
2312
.husky
2413
.npmrc
25-
.env.local
26-
.next
14+
.gitkeep
15+
venv
16+
temp
17+
tmp
18+
LICENSE
19+
20+
# dependencies
21+
node_modules
22+
*.log
23+
*.lock
24+
package-lock.json
25+
26+
# ci
27+
coverage
28+
.coverage
29+
.eslintcache
30+
.stylelintcache
31+
test-output
2732
__snapshots__
28-
.snap
33+
*.snap
34+
35+
# production
36+
dist
37+
es
38+
lib
39+
logs
40+
41+
# umi
42+
.umi
43+
.umi-production
44+
.umi-test
45+
.dumi/tmp*
46+
47+
# ignore files
48+
.*ignore
49+
50+
# docker
51+
docker
52+
Dockerfile*
53+
54+
# image
55+
*.webp
56+
*.gif
57+
*.png
58+
*.jpg
59+
*.svg
60+
61+
# misc
62+
# add other ignore file below
63+
.next

.prettierrc.js

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
module.exports = {
2-
printWidth: 120,
3-
singleQuote: true,
4-
trailingComma: 'all',
5-
proseWrap: 'never',
6-
endOfLine: 'lf',
7-
overrides: [{ files: '.prettierrc', options: { parser: 'json' } }],
8-
plugins: [require.resolve('prettier-plugin-packagejson'), require.resolve('prettier-plugin-organize-imports')],
9-
pluginSearchDirs: false,
10-
};
1+
module.exports = require('@lobehub/lint').prettier;

.releaserc.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
module.exports = {
2-
extends: ['semantic-release-config-gitmoji'],
3-
branches: ['master'],
4-
};
1+
module.exports = require('@lobehub/lint').semanticRelease;

.remarkrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@lobehub/lint').remarklint;

0 commit comments

Comments
 (0)