Skip to content

Commit

Permalink
增加带UI的插件模板
Browse files Browse the repository at this point in the history
  • Loading branch information
shitiandmw committed Jan 9, 2024
1 parent a51dfb2 commit a263736
Show file tree
Hide file tree
Showing 74 changed files with 10,663 additions and 17 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 项目名称 wbrick-demo

项目的重大变化都将在此处记录。

## [1.0.0] - 2024-01-08

### 新特性

- 添加了用户注册和登录功能。
- 引入了用户配置文件页面。
- 实现了密码重置功能。

### 改进

- 更新了UI设计以提高用户体验。
- 优化了数据库查询性能。
- 改进了文档和注释。

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
wbrick-demo
=========================

这是一个wbrick的插件开发示例项目,wbrick插件源码地址[链接](https://github.com/shitiandmw/wbrick.git)
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"license": "ISC",
"dependencies": {
"koa": "^2.14.2",
"wbrick": "^0.0.17"
"lru-cache": "^10.1.0",
"wbrick": "^0.0.18"
},
"devDependencies": {
"cross-env": "^7.0.3"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions plugins/manager/backend/routes/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const Router = require('koa-router');
// const serve = require('koa-static');
// const mount = require('koa-mount');
// const path = require('path');

module.exports = (app) => {
const router = new Router();
// router.prefix('/api')
const { controller } = app;
// router.get('/', async (ctx, next) => {
// await mount('/manager', staticMiddleware)(ctx, next);
// });
router.get('/', controller.user.handle);
router.get('/test', controller.user.testService);
// 其他路由...
return router;
}
File renamed without changes.
24 changes: 24 additions & 0 deletions plugins/manager/frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
3 changes: 3 additions & 0 deletions plugins/manager/frontend/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
7 changes: 7 additions & 0 deletions plugins/manager/frontend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

## Recommended IDE Setup

- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
20 changes: 20 additions & 0 deletions plugins/manager/frontend/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
body,html {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<title>Vite + Vue</title>
</head>
<body>
<div id="app" class="h-full"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
Loading

0 comments on commit a263736

Please sign in to comment.