chore: change the readme for supporting viewing on gitea.

This commit is contained in:
Yufan Sheng 2024-09-05 17:53:41 +08:00
parent 9dd118bbdb
commit 69339858a5
No known key found for this signature in database
GPG Key ID: 980439DFE585D1D8
8 changed files with 2551 additions and 7 deletions

View File

@ -5,11 +5,11 @@ about: Create a report to help us improve
--- ---
<!-- <!--
Thank you for reporting a possible bug in bookhunter. Thank you for reporting a possible bug in bookstairs.
Please fill in as much of the template below as you can. Please fill in as much of the template below as you can.
Version: output of `bookhunter version` Version: output of `bookstairs version`
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)
If possible, please provide code that demonstrates the problem, keeping it as If possible, please provide code that demonstrates the problem, keeping it as

View File

@ -5,7 +5,7 @@ about: Suggest an idea for this project
--- ---
<!-- <!--
Thank you for suggesting an idea to make bookhunter better. Thank you for suggesting an idea to make bookstairs better.
Please fill in as much of the template below as you're able. Please fill in as much of the template below as you're able.
--> -->

View File

@ -1,5 +1,7 @@
![BookStairs Poster](docs/images/github-poster.png#gh-light-mode-only) <picture>
![BookStairs Poster](docs/images/github-poster-dark.png#gh-dark-mode-only) <source media="(prefers-color-scheme: dark)" srcset="docs/images/github-poster-dark.png">
<img alt="BookStairs Poster" src="docs/images/github-poster.png">
</picture>
[![LICENSE](https://img.shields.io/github/license/bookstairs/bookstairs)](https://github.com/bookstairs/bookstairs/blob/master/LICENSE) [![LICENSE](https://img.shields.io/github/license/bookstairs/bookstairs)](https://github.com/bookstairs/bookstairs/blob/master/LICENSE)
[![contribution](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](CONTRIBUTING.md) [![contribution](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](CONTRIBUTING.md)

2527
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,8 @@
"@biomejs/biome": "^1.8.3", "@biomejs/biome": "^1.8.3",
"@rsbuild/core": "1.0.1-rc.4", "@rsbuild/core": "1.0.1-rc.4",
"@rsbuild/plugin-react": "1.0.1-rc.4", "@rsbuild/plugin-react": "1.0.1-rc.4",
"@rsbuild/plugin-svgr": "^1.0.1-rc.4",
"@rsbuild/plugin-type-check": "^1.0.1-rc.4",
"@types/node": "^22.5.4", "@types/node": "^22.5.4",
"@types/react": "^18.3.5", "@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0", "@types/react-dom": "^18.3.0",

View File

@ -1,6 +1,8 @@
import { defineConfig } from '@rsbuild/core'; import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react'; import { pluginReact } from '@rsbuild/plugin-react';
import { pluginSvgr } from '@rsbuild/plugin-svgr';
import { pluginTypeCheck } from '@rsbuild/plugin-type-check';
export default defineConfig({ export default defineConfig({
plugins: [pluginReact()], plugins: [pluginReact(), pluginSvgr(), pluginTypeCheck()],
}); });

10
web/src/env.d.ts vendored
View File

@ -1 +1,11 @@
/// <reference types="@rsbuild/core/types" /> /// <reference types="@rsbuild/core/types" />
// Add types for svgr plugin.
declare module '*.svg' {
const content: string;
export default content;
}
declare module '*.svg?react' {
const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
export default ReactComponent;
}

View File

@ -13,5 +13,6 @@
"useDefineForClassFields": true, "useDefineForClassFields": true,
"allowImportingTsExtensions": true "allowImportingTsExtensions": true
}, },
"include": ["src"] "include": ["src"],
"exclude": ["**/node_modules"]
} }