chore(release): bump web to 1.0.8 and update docs

This commit is contained in:
clz
2026-01-18 21:30:17 +08:00
parent 65ea2fa477
commit 871da2454c
4 changed files with 36 additions and 25 deletions

View File

@@ -1,38 +1,34 @@
# sv
# BillAI Web
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
BillAI 的前端 Web 应用,基于 SvelteKit + Tailwind提供账单分析/复核/管理等界面。
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
## 开发
```sh
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
yarn install
yarn dev
```
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
常用命令:
```sh
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
yarn check
yarn lint
yarn format
```
## Building
To create a production version of your app:
## 构建
```sh
npm run build
yarn build
yarn preview
```
You can preview the production build with `npm run preview`.
## API 访问
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
- 开发环境下通过 SvelteKit/Vite 代理访问后端(统一使用相对路径,例如 `/api/...`
- Docker 部署时由 `docker-compose.yaml` 将前端容器与后端容器联通
## 说明
前端展示层使用统一账单模型 `UIBill`camelCase 字段 + `amount:number`),分析链路与详情编辑弹窗避免多种账单类型混用。

View File

@@ -1,7 +1,7 @@
{
"name": "web",
"private": true,
"version": "1.0.7",
"version": "1.0.8",
"type": "module",
"scripts": {
"dev": "vite dev",