Skip to content

Commit

Permalink
## 0.14.0: 增加home,用于存放常用程序入口地址
Browse files Browse the repository at this point in the history
  • Loading branch information
glennliao committed Nov 17, 2023
1 parent 9287807 commit da34000
Show file tree
Hide file tree
Showing 33 changed files with 1,470 additions and 438 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@
- [x] markdown 编辑

## 截图
## bookmark
![](./screenshot/bookmark1.png)
![](./screenshot/bookmark2.png)
![](./screenshot/bookmark3.png)
## note
![](./screenshot/note1.png)

![](./screenshot/home.jpg)
![](./screenshot/bookmark.jpg)
![](./screenshot/note.jpg)


## 使用
Expand Down
2 changes: 2 additions & 0 deletions app/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ func AccessCondition(ctx context.Context, req config.ConditionReq, where *config
delete(req.NodeReq, "q")
}
}
case "AppList":
where.Add("user_id", user.UserId)

case "Config":
where.Add("for_id", user.UserId)
Expand Down
22 changes: 22 additions & 0 deletions app/inits/_access.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,28 @@
"rowKeyGen": "idgen",
"executor": "default"
},
{
"name": "app_list",
"alias": "AppList",
"get": ["LOGIN","OWNER","GroupUser","GroupAdmin"],
"head":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"gets":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"heads":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"post":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"put":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"delete":["LOGIN","OWNER","GroupUser","GroupAdmin"],
"rowKey": "app_id",
"fieldsGet": {
"default": {
"in": {},
"out": {

}
}
},
"rowKeyGen": "idgen",
"executor": "default"
},
{
"name": "tag",
"alias": "Tag",
Expand Down
28 changes: 28 additions & 0 deletions app/inits/_reuqest.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,34 @@
"Note": {}
},
"Executor": {}
},

{
"tag": "AppList",
"version": "1",
"method": "POST",
"structure": {
"AppList": {}
},
"Executor": {}
},
{
"tag": "AppList",
"version": "1",
"method": "PUT",
"structure": {
"AppList": {}
},
"Executor": {}
},
{
"tag": "AppList",
"version": "1",
"method": "DELETE",
"structure": {
"AppList": {}
},
"Executor": {}
}

]
19 changes: 19 additions & 0 deletions app/inits/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@ type (
}
)

type (
AppList struct {
tablesync.TableMeta `charset:"utf8mb4" comment:"应用"`
Id uint64 `ddl:"primaryKey"`
AppId string `ddl:"size:32;comment:appId"`
Title string `ddl:"size:128;comment:标题"`
Url string `ddl:"size:512;comment:书签地址"`
Icon string `ddl:"size:256;comment:图标地址"`
Remark string `ddl:"size:1024;comment:备注"`
From string `ddl:"size:32;comment:来源"`
UserId string `ddl:"size:128;comment:标题"`
Created
Updated
Deleted
}
)

type (
Tag struct {
tablesync.TableMeta `charset:"utf8mb4" comment:"标签"`
Expand Down Expand Up @@ -163,6 +180,8 @@ func Tables() []tablesync.Table {
Note{},
NoteHistory{},

AppList{},

Tag{},
Config{},
}
Expand Down
Binary file added screenshot/bookmark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot/bookmark1.png
Binary file not shown.
Binary file removed screenshot/bookmark2.png
Binary file not shown.
Binary file removed screenshot/bookmark3.png
Binary file not shown.
Binary file added screenshot/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/note.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot/note1.png
Binary file not shown.
82 changes: 82 additions & 0 deletions ui/auto-imports.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const createPinia: typeof import('pinia')['createPinia']
const customRef: typeof import('vue')['customRef']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const defineStore: typeof import('pinia')['defineStore']
const effectScope: typeof import('vue')['effectScope']
const getActivePinia: typeof import('pinia')['getActivePinia']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h']
const inject: typeof import('vue')['inject']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const mapActions: typeof import('pinia')['mapActions']
const mapGetters: typeof import('pinia')['mapGetters']
const mapState: typeof import('pinia')['mapState']
const mapStores: typeof import('pinia')['mapStores']
const mapWritableState: typeof import('pinia')['mapWritableState']
const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: typeof import('vue')['onMounted']
const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const setActivePinia: typeof import('pinia')['setActivePinia']
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const storeToRefs: typeof import('pinia')['storeToRefs']
const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const toValue: typeof import('vue')['toValue']
const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref']
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useLink: typeof import('vue-router')['useLink']
const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter']
const useSlots: typeof import('vue')['useSlots']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: typeof import('vue')['watchPostEffect']
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
}
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
}
37 changes: 37 additions & 0 deletions ui/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,43 @@ export {}

declare module 'vue' {
export interface GlobalComponents {
AAlert: typeof import('ant-design-vue/es')['Alert']
ABadge: typeof import('ant-design-vue/es')['Badge']
ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb']
ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem']
AButton: typeof import('ant-design-vue/es')['Button']
ACard: typeof import('ant-design-vue/es')['Card']
ACheckableTag: typeof import('ant-design-vue/es')['CheckableTag']
ACol: typeof import('ant-design-vue/es')['Col']
ADropdown: typeof import('ant-design-vue/es')['Dropdown']
ADropdownButton: typeof import('ant-design-vue/es')['DropdownButton']
AEmpty: typeof import('ant-design-vue/es')['Empty']
AFloatButton: typeof import('ant-design-vue/es')['FloatButton']
AFloatButtonGroup: typeof import('ant-design-vue/es')['FloatButtonGroup']
AForm: typeof import('ant-design-vue/es')['Form']
AFormItem: typeof import('ant-design-vue/es')['FormItem']
AInput: typeof import('ant-design-vue/es')['Input']
AInputSearch: typeof import('ant-design-vue/es')['InputSearch']
ALayout: typeof import('ant-design-vue/es')['Layout']
ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent']
ALayoutFooter: typeof import('ant-design-vue/es')['LayoutFooter']
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
AMenu: typeof import('ant-design-vue/es')['Menu']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AModal: typeof import('ant-design-vue/es')['Modal']
APagination: typeof import('ant-design-vue/es')['Pagination']
APopover: typeof import('ant-design-vue/es')['Popover']
ARow: typeof import('ant-design-vue/es')['Row']
ASegmented: typeof import('ant-design-vue/es')['Segmented']
ASelect: typeof import('ant-design-vue/es')['Select']
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']
ATextarea: typeof import('ant-design-vue/es')['Textarea']
ATree: typeof import('ant-design-vue/es')['Tree']
ATreeSelect: typeof import('ant-design-vue/es')['TreeSelect']
AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger']
GroupPanel: typeof import('./src/components/GroupPanel/index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down
22 changes: 10 additions & 12 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "pnpm run dev:dev",
"dev:dev": "vite --mode dev",
"dev:uat": "vite --mode uat",
"dev:prod": "vite --mode prod",
"build:dev": "vue-tsc --noEmit && vite build --mode dev",
"build:uat": "vue-tsc --noEmit && vite build --mode uat",
"dev": "vite",
"build:prod": "vite build --mode prod",
"build:prod2gf": "pnpm run build:prod && gf pack ./dist ../packed/dist.go",
"preview": "vite preview",
Expand All @@ -18,17 +13,20 @@
"dependencies": {
"@ant-design/icons-vue": "^6.1.0",
"@element-plus/icons-vue": "^2.1.0",
"@vueuse/core": "^10.6.0",
"ant-design-vue": "^4.0.6",
"@vueuse/components": "^10.6.1",
"@vueuse/core": "^10.6.1",
"ant-design-vue": "^4.0.7",
"clipboard": "^2.0.11",
"cssnano": "^6.0.1",
"dayjs": "^1.11.10",
"highlight.js": "^11.9.0",
"md-editor-v3": "^4.8.2",
"md-editor-v3": "^4.8.3",
"nprogress": "^0.2.0",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.0",
"sanitize-html": "^2.11.0",
"unocss": "^0.57.4",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vue": "^3.3.8",
"vue-router": "^4.2.5",
Expand All @@ -39,16 +37,16 @@
"@commitlint/config-conventional": "^17.8.1",
"@types/node": "^20.9.0",
"@types/nprogress": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-vue": "^4.4.1",
"@vitejs/plugin-vue-jsx": "^3.0.2",
"autoprefixer": "^10.4.16",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.53.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-vue": "^9.18.1",
"husky": "^8.0.3",
Expand Down
Loading

0 comments on commit da34000

Please sign in to comment.