Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
2939ae6
👽️ refactor: 适配 pydantic v2 API 变更
ChenXu233 May 18, 2026
c719323
🔧 chore: 改进开发环境配置
ChenXu233 May 18, 2026
be93ba6
✨ feat: 添加自动生成默认配置功能
ChenXu233 May 18, 2026
a0be5e4
🔥 refactor(frontend): 移除手动开发模式,改用 Vite 环境变量自动检测
ChenXu233 May 18, 2026
82a3e9a
♻️ refactor(cli): 重构 CLI 命令并移除交互式配置向导
ChenXu233 May 18, 2026
23cbb90
🔧 chore: 添加 pdm.lock 到 .gitignore
ChenXu233 May 18, 2026
3cf50de
🐛 fix: 修复默认配置生成中 secret_key 的类型错误
ChenXu233 May 18, 2026
e36aa74
🔥 cleanup: 移除未使用的导入
ChenXu233 May 18, 2026
0d46511
:wrench: chore: 升级 pre-commit 钩子版本
ChenXu233 May 18, 2026
0232618
:art: style(frontend): 应用 prettier 格式化
ChenXu233 May 18, 2026
2170ac4
:art: style(backend): 应用 black 和 isort 格式化
ChenXu233 May 18, 2026
d511d6f
:sparkles: feat(cli): 增强 dev 命令,支持热重载和调试选项
ChenXu233 May 18, 2026
ba6cdc3
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] May 18, 2026
8ca0531
:sparkles: feat(cli): 添加 dev 命令开发环境目录检查
ChenXu233 May 18, 2026
c579aee
:bug: fix(auth): 将 token 过期时间转为字符串返回
ChenXu233 May 18, 2026
e59e5dc
:recycle: refactor(handlers): 提取 _parse_json_from_output 辅助函数
ChenXu233 May 18, 2026
43dc214
:recycle: refactor(handlers): 改进 traceback 格式化,过滤内部帧
ChenXu233 May 18, 2026
f0af3d8
:bug: fix(project): 修复项目创建逻辑,使用 Requirement 解析依赖
ChenXu233 May 18, 2026
12ad85a
:bug: fix(cli): 检查 pnpm 可用性后再启动前端开发服务器
ChenXu233 May 18, 2026
e14dc43
:recycle: refactor(server): 用 watchfiles 重写热重载逻辑
ChenXu233 May 18, 2026
df10179
:bug: fix(frontend): 修复 URL 生成、WebSocket 重连和组件加载问题
ChenXu233 May 18, 2026
724880b
:wrench: chore: 添加 testbot 忽略项,启用 vite WS 代理
ChenXu233 May 18, 2026
66357b8
:bug: fix(handlers): 修复插件 metadata 为空时的空指针问题
ChenXu233 May 18, 2026
f5c591b
:bug: fix(handlers): 无已加载插件时输出空字符串避免正则匹配失败
ChenXu233 May 18, 2026
c8b40e4
:bug: fix(server): 修复 Ctrl+C 无法正确退出热重载模式的问题
ChenXu233 May 18, 2026
7f9072e
:sparkles: feat(project): 添加项目目录去重检查,防止重复添加
ChenXu233 May 18, 2026
e691051
:bug: fix(project): 修复 driver_package 模板变量缺少引号的问题
ChenXu233 May 18, 2026
e0110a9
:sparkles: feat(frontend): 插件安装完成后提示重启实例
ChenXu233 May 18, 2026
e366c9e
:bug: fix(process): 修复进程启动阻塞和类型比较问题
ChenXu233 May 18, 2026
1b4e681
:sparkles: feat(frontend): 重构侧边栏布局和交互
ChenXu233 May 18, 2026
17da7e1
:bug: fix(frontend): 修复侧边栏菜单项定位偏移
ChenXu233 May 18, 2026
8862b32
:wrench: chore: 更新 devcontainer 配置和 VS Code 扩展
ChenXu233 May 19, 2026
d5cab58
:sparkles: feat(frontend): 添加移动端菜单按钮并重构侧边栏样式
ChenXu233 May 19, 2026
10bf2bc
:bug: fix: 移除 httpx.get 中多余的空 proxies 参数
ChenXu233 May 19, 2026
5c5fb80
:bug: fix(frontend): 修复 TabBar 左侧间距
ChenXu233 May 19, 2026
9160574
:recycle: refactor: 从 Poetry 迁移到 PDM (hatchling)
ChenXu233 May 19, 2026
f738ae3
:memo: docs: 更新 Python 版本徽章为 3.10+
ChenXu233 May 19, 2026
89572e1
:wrench: chore: 添加 pdm.lock 锁定文件
ChenXu233 May 19, 2026
e7f4ab5
:rotating_light: auto fix by pre-commit hooks
pre-commit-ci[bot] May 19, 2026
00c6012
:sparkles: feat(config): 添加环境变量配置支持
ChenXu233 May 19, 2026
b187149
:wrench: chore: 更新依赖版本范围
ChenXu233 May 19, 2026
3495807
:twisted_rightwards_arrows: Merge branch 'master' of https://github.c…
ChenXu233 May 19, 2026
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
8 changes: 3 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Default Linux Universal",
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:1": {}
"ghcr.io/devcontainers-extra/features/poetry:1": {}
},
"postCreateCommand": "poetry config virtualenvs.in-project true && poetry install && poetry run pre-commit install",
"customizations": {
Expand All @@ -11,9 +11,9 @@
"python.analysis.diagnosticMode": "workspace",
"python.analysis.typeCheckingMode": "basic",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.defaultFormatter": "ms-python.python",
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"[javascript]": {
Expand Down Expand Up @@ -45,8 +45,6 @@
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.black-formatter",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
]
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ ipython_config.py
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
.pdm-python

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
Expand Down Expand Up @@ -524,3 +525,7 @@ dist-ssr
*.sw?

openapi.json

.claude

testbot/
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ ci:
autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks"
repos:
- repo: https://github.com/hadialqattan/pycln
rev: v2.1.3
rev: v2.6.0
hooks:
- id: pycln
args: [--config, pyproject.toml]
stages: [commit]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 9.0.0a3
hooks:
- id: isort
stages: [commit]

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 26.5.0
hooks:
- id: black
stages: [commit]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
rev: v4.0.0-alpha.8
hooks:
- id: prettier
stages: [commit]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _✨ NoneBot2 命令行工具 前端可视化页面(WebUI) 插件 ✨_
<a href="https://pypi.python.org/pypi/nb-cli-plugin-webui">
<img src="https://img.shields.io/pypi/v/nb-cli-plugin-webui" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue" alt="python">
<img src="https://img.shields.io/badge/python-3.10+-blue" alt="python">
<a href="https://results.pre-commit.ci/latest/github/nonebot/nb-cli-plugin-webui/master">
<img src="https://results.pre-commit.ci/badge/github/nonebot/cli-plugin-webui/master.svg" alt="pre-commit" />
</a>
Expand Down
16 changes: 8 additions & 8 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
require("@rushstack/eslint-patch/modern-module-resolution");

module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript",
"@vue/eslint-config-prettier/skip-formatting",
],
parserOptions: {
ecmaVersion: 'latest'
}
}
ecmaVersion: "latest",
},
};
16 changes: 8 additions & 8 deletions frontend/openapi-ts.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from '@hey-api/openapi-ts'
import { defineConfig } from "@hey-api/openapi-ts";

export default defineConfig({
client: '@hey-api/client-fetch',
input: '../openapi.json',
client: "@hey-api/client-fetch",
input: "../openapi.json",
output: {
format: 'prettier',
path: './src/client/api'
format: "prettier",
path: "./src/client/api",
},
services: {
asClass: true
}
})
asClass: true,
},
});
10 changes: 5 additions & 5 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default {
plugins: {
'postcss-import': {},
'tailwindcss/nesting': 'postcss-nesting',
"postcss-import": {},
"tailwindcss/nesting": "postcss-nesting",
tailwindcss: {},
autoprefixer: {}
}
}
autoprefixer: {},
},
};
8 changes: 4 additions & 4 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script setup lang="ts">
import { RouterView } from 'vue-router'
import ToastItem from '@/components/ToastItem.vue'
import { useToastStore } from '@/stores'
import { RouterView } from "vue-router";
import ToastItem from "@/components/ToastItem.vue";
import { useToastStore } from "@/stores";

const store = useToastStore()
const store = useToastStore();
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/assets/main.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import 'material-symbols';
@import "material-symbols";

@tailwind base;
@tailwind components;
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/client/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is auto-generated by @hey-api/openapi-ts
export * from './schemas.gen'
export * from './services.gen'
export * from './types.gen'
export * from "./schemas.gen";
export * from "./services.gen";
export * from "./types.gen";
Loading