Skip to content

Commit

Permalink
发布管理面板
Browse files Browse the repository at this point in the history
  • Loading branch information
hulutech-web committed Dec 19, 2024
1 parent 5b93b17 commit 4ded002
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 320 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ func init() {
}

```
#### 发布资源
```bash
go run . artisan vendor:publish --package=./packages/goravel-crud -f
```

#### 访问面板
http://localhost:3000/panel

#### 常用功能,一键生成
- 模型
- 控制器
Expand Down
14 changes: 0 additions & 14 deletions panel.html

This file was deleted.

23 changes: 0 additions & 23 deletions panel/src/routes/auth.ts

This file was deleted.

3 changes: 1 addition & 2 deletions panel/src/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import auth from './auth'
import admin from './admin'
import error from './error'
import defaultRoute from './default'
export default [...admin, auth, error,defaultRoute]
export default [...admin, error,defaultRoute]
13 changes: 0 additions & 13 deletions panel/src/views/auth/forgot_password.vue

This file was deleted.

218 changes: 0 additions & 218 deletions panel/src/views/auth/login.vue

This file was deleted.

13 changes: 0 additions & 13 deletions panel/src/views/auth/register.vue

This file was deleted.

31 changes: 0 additions & 31 deletions panel/types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ declare module 'vue' {
ACard: typeof import('ant-design-vue/es')['Card']
ACol: typeof import('ant-design-vue/es')['Col']
AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
ADivider: typeof import('ant-design-vue/es')['Divider']
ADropdown: typeof import('ant-design-vue/es')['Dropdown']
AForm: typeof import('ant-design-vue/es')['Form']
AFormItem: typeof import('ant-design-vue/es')['FormItem']
Expand All @@ -26,8 +25,6 @@ declare module 'vue' {
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
AMenu: typeof import('ant-design-vue/es')['Menu']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
Appointgcalendar: typeof import('./../src/components/appointgcalendar/index.vue')['default']
Appointpcalendar: typeof import('./../src/components/appointpcalendar/index.vue')['default']
ARadioButton: typeof import('ant-design-vue/es')['RadioButton']
ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
AResult: typeof import('ant-design-vue/es')['Result']
Expand All @@ -39,44 +36,16 @@ declare module 'vue' {
ASubMenu: typeof import('ant-design-vue/es')['SubMenu']
ATabPane: typeof import('ant-design-vue/es')['TabPane']
ATabs: typeof import('ant-design-vue/es')['Tabs']
ATag: typeof import('ant-design-vue/es')['Tag']
Breadcrumb: typeof import('./../src/components/breadcrumb/index.vue')['default']
Camera: typeof import('./../src/components/camera/index.vue')['default']
Courseprice: typeof import('./../src/components/courseprice/index.vue')['default']
Cropper: typeof import('./../src/components/cropper/index.vue')['default']
Dynamicimage: typeof import('./../src/components/dynamicimage/index.vue')['default']
Dynamicvideo: typeof import('./../src/components/dynamicvideo/index.vue')['default']
Employeesel: typeof import('./../src/components/employeesel/index.vue')['default']
Fullscreen: typeof import('./../src/components/fullscreen/index.vue')['default']
Groupcourse: typeof import('./../src/components/groupcourse/index.vue')['default']
Groupcoursesection: typeof import('./../src/components/groupcoursesection/index.vue')['default']
Hlgfullcalendar: typeof import('./../src/components/hlgfullcalendar/index.vue')['default']
Hlgfullcalendarcancel: typeof import('./../src/components/hlgfullcalendarcancel/index.vue')['default']
Hlpfullcalendar: typeof import('./../src/components/hlpfullcalendar/index.vue')['default']
Hlpfullcalendarcancel: typeof import('./../src/components/hlpfullcalendarcancel/index.vue')['default']
HuluRules: typeof import('./../src/components/hulu-rules/index.vue')['default']
IconCommunity: typeof import('./../src/components/icons/IconCommunity.vue')['default']
IconDocumentation: typeof import('./../src/components/icons/IconDocumentation.vue')['default']
IconEcosystem: typeof import('./../src/components/icons/IconEcosystem.vue')['default']
IconSupport: typeof import('./../src/components/icons/IconSupport.vue')['default']
IconTooling: typeof import('./../src/components/icons/IconTooling.vue')['default']
Indexbackup: typeof import('./../src/components/employeesel/indexbackup.vue')['default']
Personalcourse: typeof import('./../src/components/personalcourse/index.vue')['default']
Personalcoursesection: typeof import('./../src/components/personalcoursesection/index.vue')['default']
Postergroup: typeof import('./../src/components/postergroup/index.vue')['default']
Posterpersonal: typeof import('./../src/components/posterpersonal/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Salesel: typeof import('./../src/components/salesel/index.vue')['default']
Signgcalendar: typeof import('./../src/components/signgcalendar/index.vue')['default']
Signpcalendar: typeof import('./../src/components/signpcalendar/index.vue')['default']
Tabs: typeof import('./../src/components/tabs/index.vue')['default']
Upload: typeof import('./../src/components/upload/index.vue')['default']
Uploadlist: typeof import('./../src/components/uploadlist/index.vue')['default']
Uploadvideo: typeof import('./../src/components/uploadvideo/index.vue')['default']
Userselect: typeof import('./../src/components/userselect/index.vue')['default']
Videoplayer: typeof import('./../src/components/videoplayer/index.vue')['default']
Vue3Lottie: typeof import('./../src/components/Vue3Lottie/index.vue')['default']
Wangeditor: typeof import('./../src/components/wangeditor/index.vue')['default']
}
}
2 changes: 1 addition & 1 deletion panel/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
const isBuild = command === "build";
console.log(VITE_BASE_URL, VITE_DROP_CONSOLE, VITE_BASE_API_URL);
return {
base: "/",
base: "/dist",
define: {
__APP_INFO__: JSON.stringify(__APP_INFO__),
},
Expand Down
4 changes: 2 additions & 2 deletions routes/crud.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ func CRUD(app foundation.Application) {
router := app.MakeRoute()

//操作面板面板静态资源路由
router.Static("/panel", "./public/panel")
router.Static("/dist", "./public/dist")

//操作面板
router.Get("/panel", func(ctx http.Context) http.Response {
return ctx.Response().View().Make("panel.html")
return ctx.Response().View().Make("index.html")
})

router.Prefix("/crud").Group(func(r route.Router) {
Expand Down
Loading

0 comments on commit 4ded002

Please sign in to comment.