-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
123 changed files
with
2,158 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
# moehub | ||
<!-- markdownlint-disable --> | ||
|
||
Your anime character collection gallery, easily build, freely share. | ||
<div align="center"> | ||
<img src="./packages/client/public/favicon.png" alt="logo"/> | ||
|
||
# MoeHub | ||
|
||
⚡ A modern and universal Meta-Framework to construct other frameworks. ⚡ | ||
|
||
</div> | ||
|
||
## Example | ||
|
||
> [👉 There](https://hotaru.icu/moehub.html) | ||
> [👉 There](https://m.hotaru.icu) | ||
## Usage | ||
|
||
## Stacks | ||
|
||
- Frontend: React, tailwind-css | ||
- Backend: Node.js, Koa.js, Prisma | ||
- Frontend: React, tailwind-css, @kotori-bot/i18n | ||
- Backend: Node.js, Koa.js, Prisma, @kotori-bot/core | ||
- Database: Mysql | ||
- CI/CD: Github Actions | ||
- Code Style: ESLint, Prettier | ||
- Code Style: BiomeJs | ||
- Version Control: Git, GitHub | ||
- Project Management: pnpm workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# TODO | ||
|
||
- [ ] Static webpage version | ||
- [ ] Supports character collections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,23 @@ | |
"license": "GPL-3.0", | ||
"author": "Romi <[email protected]>", | ||
"scripts": { | ||
"core": "pnpm --filter @moehub/core", | ||
"serve": "pnpm core serve", | ||
"core": "pnpm --filter moehub", | ||
"client": "pnpm --filter @moehub/client", | ||
"common": "pnpm --filter @moehub/common", | ||
"dev:core": "nodemon --watch", | ||
"dev:client": "pnpm --filter @moehub/client dev", | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0" | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", | ||
"release": "tsx scripts/release", | ||
"build": "pnpm -r build" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "^1.8.3", | ||
"@types/shelljs": "^0.8.15", | ||
"conventional-changelog-cli": "^4.1.0", | ||
"nodemon": "^3.1.3", | ||
"prettier": "^3.3.0", | ||
"tsup": "^8.1.0", | ||
"tsup": "^8.2.4", | ||
"tsx": "^4.11.2", | ||
"typescript": "5.5.3" | ||
}, | ||
|
@@ -27,8 +31,12 @@ | |
"node": ">=17.9.0" | ||
}, | ||
"nodemonConfig": { | ||
"exec": "pnpm common exec tsc --build && tsx packages/core/src", | ||
"exec": "pnpm common exec tsup && tsx packages/core/src", | ||
"ext": "ts", | ||
"ignore": ["packages/common", "packages/client"] | ||
}, | ||
"dependencies": { | ||
"@types/node": "^20.14.15", | ||
"shelljs": "^0.8.5" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1 @@ | ||
# React + TypeScript + Vite | ||
|
||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
|
||
Currently, two official plugins are available: | ||
|
||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
|
||
## Expanding the ESLint configuration | ||
|
||
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
|
||
- Configure the top-level `parserOptions` property like this: | ||
|
||
```js | ||
export default { | ||
// other rules... | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
project: ['./tsconfig.json', './tsconfig.node.json'], | ||
tsconfigRootDir: __dirname, | ||
}, | ||
} | ||
``` | ||
|
||
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` | ||
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` | ||
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { Result } from 'antd'; | ||
import { t } from '@/i18n' | ||
import { Result } from 'antd' | ||
|
||
const ErrorResult: React.FC = () => ( | ||
<Result status="error" title="获取数据失败" subTitle="请检查网络连接或接口地址是否配置正确" /> | ||
); | ||
<Result status="error" title={t`com.resultError.title`} subTitle={t`com.resultError.subTitle`} /> | ||
) | ||
|
||
export default ErrorResult; | ||
export default ErrorResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default { | ||
url: '/api' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.