Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
cdf3918
:wrench: chore: update tsconfig and add next.config.mjs
arvinxx May 27, 2023
f8efb61
:heavy_plus_sign: chore: update deps
arvinxx May 29, 2023
e334927
:truck: wip: move chatbot to lobe-chat
arvinxx Jun 5, 2023
f8cfb52
:truck: chore: 调整 layout 路径
arvinxx Jun 11, 2023
627bcc8
:recycle: refactor: 完成会话列表数据模型重构,实现添加对话功能
arvinxx Jun 11, 2023
0ec233d
:wrench: chore(test): remove esbuild jsxInject and setupFiles from vi…
arvinxx Jun 11, 2023
a5b027b
:heavy_plus_sign: feat: add deps
meganjohnson96 Jun 19, 2023
af71410
:recycle: refactor: 重构 session slice
meganjohnson96 Jun 19, 2023
f3debe8
:sparkles: feat: 初步完成 LobeHub 页面布局
meganjohnson96 Jun 19, 2023
385be52
:recycle: refactor: 重构 session slice
meganjohnson96 Jun 19, 2023
44b6864
:recycle: refactor: 重构 message slice
meganjohnson96 Jun 20, 2023
a9d93e4
:sparkles: feat: 初步实现发送会话消息
meganjohnson96 Jun 21, 2023
0ff628a
:recycle: refactor: 重构 chat Store 模块
meganjohnson96 Jun 21, 2023
7938d8b
:recycle: refactor: 优化 SessionList 实现
arvinxx Jul 3, 2023
e563ab3
:sparkles: feat: 基本实现初步的会话功能
arvinxx Jul 3, 2023
918f863
:lipstick: style: 优化会话布局
arvinxx Jul 3, 2023
e0a0121
👷 ci(lint): update lint config and add i18n base config
canisminor1990 Jul 5, 2023
d69c920
👷 ci(vitest): coverage provider has changed from "c8" to "v8"
canisminor1990 Jul 5, 2023
03822a4
📝 docs: Update README.md [skip ci]
canisminor1990 Jul 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .changelogrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@lobehub/lint').changelog;
1 change: 1 addition & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@lobehub/lint').commitlint;
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
32 changes: 32 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Eslintignore for LobeHub
################################################################

# dependencies
node_modules

# ci
coverage
.coverage

# test
jest*
_test_
__test__
*.test.ts

# umi
.umi
.umi-production
.umi-test
.dumi/tmp*
!.dumirc.ts

# production
dist
es
lib
logs

# misc
# add other ignore file below
.next
10 changes: 5 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = require('@umijs/lint/dist/config/eslint');
const config = require('@lobehub/lint').eslint;

module.exports = {
...config,
extends: ['plugin:@next/next/recommended'],
};
config.extends.push('plugin:@next/next/recommended');
//config.extends.push('plugin:@next/next/core-web-vitals');

module.exports = config;
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

20 changes: 10 additions & 10 deletions .github/ISSUE_TEMPLATE/1_bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "🐛 反馈缺陷 Bug Report"
description: "反馈一个问题缺陷 | Report an bug"
title: "[Bug] "
labels: "🐛 Bug"
name: '🐛 反馈缺陷 Bug Report'
description: '反馈一个问题缺陷 | Report an bug'
title: '[Bug] '
labels: '🐛 Bug'
body:
- type: dropdown
attributes:
label: "💻 系统环境 | Operating System"
label: '💻 系统环境 | Operating System'
options:
- Windows
- macOS
Expand All @@ -16,7 +16,7 @@ body:
required: true
- type: dropdown
attributes:
label: "🌐 浏览器 | Browser"
label: '🌐 浏览器 | Browser'
options:
- Chrome
- Edge
Expand All @@ -27,19 +27,19 @@ body:
required: true
- type: textarea
attributes:
label: "🐛 问题描述 | Bug Description"
label: '🐛 问题描述 | Bug Description'
description: A clear and concise description of the bug.
validations:
required: true
- type: textarea
attributes:
label: "🚦 期望结果 | Expected Behavior"
label: '🚦 期望结果 | Expected Behavior'
description: A clear and concise description of what you expected to happen.
- type: textarea
attributes:
label: "📷 复现步骤 | Recurrence Steps"
label: '📷 复现步骤 | Recurrence Steps'
description: A clear and concise description of how to recurrence.
- type: textarea
attributes:
label: "📝 补充信息 | Additional Information"
label: '📝 补充信息 | Additional Information'
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.
14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/2_feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: "🌠 功能需求 Feature Request"
description: "需求或建议 | Suggest an idea"
title: "[Request] "
labels: "🌠 Feature Request"
name: '🌠 功能需求 Feature Request'
description: '需求或建议 | Suggest an idea'
title: '[Request] '
labels: '🌠 Feature Request'
body:
- type: textarea
attributes:
label: "🥰 需求描述 | Feature Description"
label: '🥰 需求描述 | Feature Description'
description: Please add a clear and concise description of the problem you are seeking to solve with this feature request.
validations:
required: true
- type: textarea
attributes:
label: "🧐 解决方案 | Proposed Solution"
label: '🧐 解决方案 | Proposed Solution'
description: Describe the solution you'd like in a clear and concise manner.
validations:
required: true
- type: textarea
attributes:
label: "📝 补充信息 | Additional Information"
label: '📝 补充信息 | Additional Information'
description: Add any other context about the problem here.
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/3_question.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "😇 疑问或帮助 Help Wanted"
description: "疑问或需要帮助 | Need help"
title: "[Question] "
labels: "😇 Help Wanted"
name: '😇 疑问或帮助 Help Wanted'
description: '疑问或需要帮助 | Need help'
title: '[Question] '
labels: '😇 Help Wanted'
body:
- type: textarea
attributes:
label: "🧐 问题描述 | Proposed Solution"
label: '🧐 问题描述 | Proposed Solution'
description: A clear and concise description of the proplem.
validations:
required: true
- type: textarea
attributes:
label: "📝 补充信息 | Additional Information"
label: '📝 补充信息 | Additional Information'
description: Add any other context about the problem here.
10 changes: 5 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
directory: '/'
schedule:
interval: weekly
time: "19:00"
time: '19:00'
timezone: 'Asia/Shanghai'
open-pull-requests-limit: 10
versioning-strategy: increase

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: monthly
time: "19:00"
time: '19:00'
timezone: 'Asia/Shanghai'
2 changes: 1 addition & 1 deletion .github/workflows/contributor-help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Contributor Helper

on:
# 🌏 Think about the planet! No need to update stats too frequently
schedule: [{cron: "0 18 * * *"}]
schedule: [{ cron: '0 18 * * *' }]
# 💡 The following line lets you run workflow manually from the action tab!
workflow_dispatch:
jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/issue-check-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ name: Issue Check Inactive

on:
schedule:
- cron: "0 0 */15 * *"
- cron: '0 0 */15 * *'

permissions:
contents: read

jobs:
issue-check-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: check-inactive
uses: actions-cool/issues-helper@v3
with:
actions: 'check-inactive'
inactive-label: 'Inactive'
inactive-day: 30
inactive-day: 30
6 changes: 3 additions & 3 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Issue Close Require

on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'

permissions:
contents: read

jobs:
issue-close-require:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: need reproduce
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/issue-remove-inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ permissions:
jobs:
issue-remove-inactive:
permissions:
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
issues: write # for actions-cool/issues-helper to update issues
pull-requests: write # for actions-cool/issues-helper to update PRs
runs-on: ubuntu-latest
steps:
- name: remove inactive
Expand All @@ -22,4 +22,4 @@ jobs:
with:
actions: 'remove-labels'
issue-number: ${{ github.event.issue.number }}
labels: 'Inactive'
labels: 'Inactive'
57 changes: 38 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Gitignore for LobeHub
################################################################

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
# general
.DS_Store
.idea
.vscode
.history
.temp
.env.local
venv
temp
tmp

# dependencies
node_modules
*.log
*.lock
package-lock.json

# next.js
/.next/
/out/
# ci
coverage
.coverage
.eslintcache
.stylelintcache

# production
/build
dist
es
lib
logs
test-output

# misc
.DS_Store
*.pem
# umi
.umi
.umi-production
.umi-test
.dumi/tmp*

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# husky
.husky/prepare-commit-msg

# misc
# add other ignore file below

# local env files
.env*.local
Expand All @@ -34,3 +52,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.next
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tasks:
- init: pnpm install
command: pnpm run start
9 changes: 9 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
lockfile=false
resolution-mode=highest
public-hoist-pattern[]=*@umijs/lint*
public-hoist-pattern[]=*changelog*
public-hoist-pattern[]=*commitlint*
public-hoist-pattern[]=*eslint*
public-hoist-pattern[]=*postcss*
public-hoist-pattern[]=*prettier*
public-hoist-pattern[]=*remark*
public-hoist-pattern[]=*semantic-release*
public-hoist-pattern[]=*stylelint*
Loading