Commit Graph

36 Commits

Author SHA1 Message Date
canisminor1990
47c3f0eb63 ♻️ refactor: Simplify index page component and remove internationalization configuration
- Remove debugging and fallback language settings from `next-i18next.config.js`
- Conditionally set `localePath` based on the environment
- Simplify `index.page.tsx` by removing unused imports and consolidating code
- Update `getStaticProps` to pass translation props to the page component

These changes were made to improve code readability and remove unnecessary configuration settings related to internationalization.
2023-07-16 11:32:15 +08:00
arvinxx
85e5007e14 🐛 fix: lock zustand 2023-07-16 11:07:11 +08:00
canisminor1990
f1775d9d0b Merge branch 'master' of github.com:lobehub/lobe-chat 2023-07-16 00:32:57 +08:00
canisminor1990
23524b200a ♻️ refactor: Update configurations, remove unused files, and adjust components and selectors
The code changes involve updating configurations, removing unused files, and making adjustments to components and selectors. These changes are done to improve the overall structure and organization of the project.
2023-07-16 00:31:53 +08:00
arvinxx
31987533aa 🐛 fix: lock zustand 2023-07-15 23:48:27 +08:00
canisminor1990
cef01c0263 feat: Introduce new features and styles for chat application
The changes include importing new components, modifying existing styles, and introducing new components. The code snippets provided show changes made to various files in a chat application, including changes to ActionIcon components, header components, session item components, and the structure and styling of the chat session list component. The code changes also involve the addition of new files for CSS overrides and global styles, as well as modifications to index pages and chat session selectors.

The purpose of these changes is to enhance the functionality and user experience of the chat application by introducing new features and improving the overall styling.
2023-07-15 21:36:50 +08:00
canisminor1990
85e91ad977 🔧 chore: Update i18n configuration to include entry and output locales
This commit updates the "locales" property in the "i18n" object of
"next-i18next.config.js". It now includes the "entryLocale" and all
the "outputLocales" using the spread operator. Additionally, the
"localePath" property is set based on whether the code is running in
a browser or not.

The changes improve the i18n configuration by making it more flexible
and dynamic.
2023-07-15 19:31:03 +08:00
canisminor1990
32e0255387 feat: Add new import statement and update module.exports in .i18nrc.js
The import statement for "@lobehub/i18n-cli" is added in ".i18nrc.js" to enable its usage. Additionally, the module.exports is updated to use the defineConfig function for better configuration management.

feat: Add new peerDependencies and publishConfig fields in package.json

New peerDependencies and publishConfig fields are added in "package.json" to specify the required dependencies and publishing configuration respectively. This ensures proper functioning and compatibility of the project.
2023-07-15 19:22:16 +08:00
canisminor1990
53cd87c8ba feat(i18n): Add i18next and lobe-i18n internationalization configuration files and update dependencies
This commit introduces new configuration files for internationalization,
deletes one file, modifies existing files, and adds new files. The changes
also involve importing dependencies and updating app and document pages.
Additional libraries and modules are used in a React application. The Header
component is modified, the index page is updated for server-side translations,
and the tsconfig.json file is modified.

Description:
- Added configuration files for internationalization
- Deleted one file
- Modified existing files
- Added new files
- Imported dependencies
- Updated app and document pages
- Used additional libraries and modules in a React application
- Modified the Header component
- Updated the index page for server-side translations
- Modified the tsconfig.json file.
2023-07-15 18:22:47 +08:00
canisminor1990
4e522a6e2b 🔧 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.
2023-07-15 15:48:20 +08:00
arvinxx
30da537618 feat: ChatList 支持操作行为 2023-07-11 23:30:12 +08:00
Arvin Xu
3db700a3b0 sparkles: feat: Chat v0.1 (#7)
---------

Co-authored-by: canisminor1990 <i@canisminor.cc>
2023-07-11 19:46:11 +08:00
arvinxx
59d381e77a feat: add openai server api 2023-05-25 01:29:35 +08:00
arvinxx
f2e07f3b0f 🔨 chore: 更新 dev 脚本 2023-05-23 00:40:27 +08:00
github-actions
8caf1182cb 🤖 docs: Auto update contributors 2023-05-21 18:18:14 +00:00
CanisMinor
b377e5e2b1 Merge pull request #3 from lobehub/dependabot/npm_and_yarn/jsdom-22.0.0
build(deps-dev): bump jsdom from 21.1.2 to 22.0.0
2023-05-21 22:06:24 +05:30
CanisMinor
259ece86e9 Merge pull request #2 from lobehub/dependabot/npm_and_yarn/semantic-release-21.0.2
build(deps-dev): bump semantic-release from 20.1.3 to 21.0.2
2023-05-21 22:06:02 +05:30
CanisMinor
ac8adf31f3 Merge pull request #1 from lobehub/dependabot/npm_and_yarn/types/node-20.2.1
build(deps-dev): bump @types/node from 18.16.13 to 20.2.1
2023-05-21 22:05:52 +05:30
CanisMinor
87e6b584c5 🤯 chore: Update release.yml 2023-05-22 00:26:48 +08:00
dependabot[bot]
9f171e309f build(deps-dev): bump jsdom from 21.1.2 to 22.0.0
Bumps [jsdom](https://github.com/jsdom/jsdom) from 21.1.2 to 22.0.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/21.1.2...22.0.0)

---
updated-dependencies:
- dependency-name: jsdom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-21 16:25:44 +00:00
dependabot[bot]
063bdb8653 build(deps-dev): bump semantic-release from 20.1.3 to 21.0.2
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 20.1.3 to 21.0.2.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v20.1.3...v21.0.2)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-21 16:25:15 +00:00
CanisMinor
9d44ed98bb ⚒️ chore: rename branch master 2023-05-22 00:25:10 +08:00
CanisMinor
dcae2bb878 ⚒️ chore: rename branch master 2023-05-22 00:24:43 +08:00
github-actions
5c97a3154e 🤖 docs: Auto update contributors 2023-05-21 16:23:00 +00:00
CanisMinor
324ad67f10 ⚒️ chore: Update contributor-help.yml 2023-05-22 00:22:26 +08:00
dependabot[bot]
b154c1ee0e build(deps-dev): bump @types/node from 18.16.13 to 20.2.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.16.13 to 20.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-21 16:20:45 +00:00
CanisMinor
661b285ec7 ⚒️ chore: Update contributor-help.yml 2023-05-22 00:19:50 +08:00
canisminor1990
6c01ce7678 feat(issue-template): Add templates for Bug Report, Feature Request, and Help Wanted
This commit adds three templates for issue creation, specifically for bug reports, feature requests, and help wanted. The templates contain fields for the user to fill out relevant information such as system environment, browser, bug description, expected behavior, recurrence steps, proposed solution, and additional information. These templates aim to provide a standardized way of submitting issues and help ensure that necessary information is included in the issue report.
2023-05-22 00:16:22 +08:00
CanisMinor
ccf624c483 📝 docs: Update README.md 2023-05-22 00:00:45 +08:00
CanisMinor
3ed047dea6 📝 docs: Create README.md 2023-05-21 23:49:04 +08:00
CanisMinor
e82e2b1214 ⚒️ chore: reanme package name 2023-05-21 23:45:37 +08:00
arvinxx
0f64c0e38f 🔧 chore: 更新发布配置 2023-05-21 15:59:38 +08:00
arvinxx
bb535b4f2a 🔧 chore: update test config 2023-05-21 15:43:47 +08:00
arvinxx
250dda4499 🔧 chore: add project config 2023-05-21 15:42:20 +08:00
arvinxx
7861f97152 🎉 chore: 初始化项目配置 2023-05-21 15:34:04 +08:00
arvinxx
dfaccbe493 Initial commit
Created from https://vercel.com/new
2023-05-21 07:19:20 +00:00