Skip to content

Commit 500998b

Browse files
committed
feat: add config inspection to sites list 0xJacky#198
1 parent 867669c commit 500998b

File tree

10 files changed

+316
-7
lines changed

10 files changed

+316
-7
lines changed

.air.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ full_bin = "APP_ENV=dev APP_USER=air ./tmp/main"
1515
# Watch these filename extensions.
1616
include_ext = ["go", "tpl", "tmpl", "html", "toml"]
1717
# Ignore these filename extensions or directories.
18-
exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules", "upload", "docs", "resources", "frontend/src"]
18+
exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules", "upload", "docs", "resources", "frontend/src", ".idea"]
1919
# Watch these directories if you specified.
20-
include_dir = []
20+
include_dir = ["frontend/src/language"]
2121
# Exclude files.
2222
exclude_file = []
2323
# Exclude specific regular expressions.

frontend/auto-imports.d.ts

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
/* eslint-disable */
2+
/* prettier-ignore */
3+
// @ts-nocheck
4+
// noinspection JSUnusedGlobalSymbols
5+
// Generated by unplugin-auto-import
6+
export {}
7+
declare global {
8+
const EffectScope: typeof import('vue')['EffectScope']
9+
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
10+
const computed: typeof import('vue')['computed']
11+
const createApp: typeof import('vue')['createApp']
12+
const createPinia: typeof import('pinia')['createPinia']
13+
const customRef: typeof import('vue')['customRef']
14+
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
15+
const defineComponent: typeof import('vue')['defineComponent']
16+
const defineStore: typeof import('pinia')['defineStore']
17+
const effectScope: typeof import('vue')['effectScope']
18+
const getActivePinia: typeof import('pinia')['getActivePinia']
19+
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
20+
const getCurrentScope: typeof import('vue')['getCurrentScope']
21+
const h: typeof import('vue')['h']
22+
const inject: typeof import('vue')['inject']
23+
const isProxy: typeof import('vue')['isProxy']
24+
const isReactive: typeof import('vue')['isReactive']
25+
const isReadonly: typeof import('vue')['isReadonly']
26+
const isRef: typeof import('vue')['isRef']
27+
const mapActions: typeof import('pinia')['mapActions']
28+
const mapGetters: typeof import('pinia')['mapGetters']
29+
const mapState: typeof import('pinia')['mapState']
30+
const mapStores: typeof import('pinia')['mapStores']
31+
const mapWritableState: typeof import('pinia')['mapWritableState']
32+
const markRaw: typeof import('vue')['markRaw']
33+
const nextTick: typeof import('vue')['nextTick']
34+
const onActivated: typeof import('vue')['onActivated']
35+
const onBeforeMount: typeof import('vue')['onBeforeMount']
36+
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
37+
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
38+
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
39+
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
40+
const onDeactivated: typeof import('vue')['onDeactivated']
41+
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
42+
const onMounted: typeof import('vue')['onMounted']
43+
const onRenderTracked: typeof import('vue')['onRenderTracked']
44+
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
45+
const onScopeDispose: typeof import('vue')['onScopeDispose']
46+
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
47+
const onUnmounted: typeof import('vue')['onUnmounted']
48+
const onUpdated: typeof import('vue')['onUpdated']
49+
const provide: typeof import('vue')['provide']
50+
const reactive: typeof import('vue')['reactive']
51+
const readonly: typeof import('vue')['readonly']
52+
const ref: typeof import('vue')['ref']
53+
const resolveComponent: typeof import('vue')['resolveComponent']
54+
const setActivePinia: typeof import('pinia')['setActivePinia']
55+
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
56+
const shallowReactive: typeof import('vue')['shallowReactive']
57+
const shallowReadonly: typeof import('vue')['shallowReadonly']
58+
const shallowRef: typeof import('vue')['shallowRef']
59+
const storeToRefs: typeof import('pinia')['storeToRefs']
60+
const toRaw: typeof import('vue')['toRaw']
61+
const toRef: typeof import('vue')['toRef']
62+
const toRefs: typeof import('vue')['toRefs']
63+
const toValue: typeof import('vue')['toValue']
64+
const triggerRef: typeof import('vue')['triggerRef']
65+
const unref: typeof import('vue')['unref']
66+
const useAttrs: typeof import('vue')['useAttrs']
67+
const useCssModule: typeof import('vue')['useCssModule']
68+
const useCssVars: typeof import('vue')['useCssVars']
69+
const useLink: typeof import('vue-router')['useLink']
70+
const useRoute: typeof import('vue-router')['useRoute']
71+
const useRouter: typeof import('vue-router')['useRouter']
72+
const useSlots: typeof import('vue')['useSlots']
73+
const watch: typeof import('vue')['watch']
74+
const watchEffect: typeof import('vue')['watchEffect']
75+
const watchPostEffect: typeof import('vue')['watchPostEffect']
76+
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
77+
}
78+
// for type re-export
79+
declare global {
80+
// @ts-ignore
81+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
82+
import('vue')
83+
}
84+
// for vue template auto import
85+
import { UnwrapRef } from 'vue'
86+
declare module 'vue' {
87+
interface ComponentCustomProperties {
88+
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
89+
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
90+
readonly computed: UnwrapRef<typeof import('vue')['computed']>
91+
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
92+
readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
93+
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
94+
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
95+
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
96+
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
97+
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
98+
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
99+
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
100+
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
101+
readonly h: UnwrapRef<typeof import('vue')['h']>
102+
readonly inject: UnwrapRef<typeof import('vue')['inject']>
103+
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
104+
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
105+
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
106+
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
107+
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
108+
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
109+
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
110+
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
111+
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
112+
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
113+
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
114+
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
115+
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
116+
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
117+
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
118+
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
119+
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
120+
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
121+
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
122+
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
123+
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
124+
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
125+
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
126+
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
127+
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
128+
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
129+
readonly provide: UnwrapRef<typeof import('vue')['provide']>
130+
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
131+
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
132+
readonly ref: UnwrapRef<typeof import('vue')['ref']>
133+
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
134+
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
135+
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
136+
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
137+
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
138+
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
139+
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
140+
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
141+
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
142+
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
143+
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
144+
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
145+
readonly unref: UnwrapRef<typeof import('vue')['unref']>
146+
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
147+
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
148+
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
149+
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
150+
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
151+
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
152+
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
153+
readonly watch: UnwrapRef<typeof import('vue')['watch']>
154+
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
155+
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
156+
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
157+
}
158+
}
159+
declare module '@vue/runtime-core' {
160+
interface ComponentCustomProperties {
161+
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
162+
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
163+
readonly computed: UnwrapRef<typeof import('vue')['computed']>
164+
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
165+
readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
166+
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
167+
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
168+
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
169+
readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
170+
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
171+
readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
172+
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
173+
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
174+
readonly h: UnwrapRef<typeof import('vue')['h']>
175+
readonly inject: UnwrapRef<typeof import('vue')['inject']>
176+
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
177+
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
178+
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
179+
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
180+
readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
181+
readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
182+
readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
183+
readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
184+
readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
185+
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
186+
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
187+
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
188+
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
189+
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
190+
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
191+
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
192+
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
193+
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
194+
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
195+
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
196+
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
197+
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
198+
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
199+
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
200+
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
201+
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
202+
readonly provide: UnwrapRef<typeof import('vue')['provide']>
203+
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
204+
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
205+
readonly ref: UnwrapRef<typeof import('vue')['ref']>
206+
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
207+
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
208+
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
209+
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
210+
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
211+
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
212+
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
213+
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
214+
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
215+
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
216+
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
217+
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
218+
readonly unref: UnwrapRef<typeof import('vue')['unref']>
219+
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
220+
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
221+
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
222+
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
223+
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
224+
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
225+
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
226+
readonly watch: UnwrapRef<typeof import('vue')['watch']>
227+
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
228+
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
229+
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
230+
}
231+
}

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"ace-builds": "^1.31.2",
5050
"less": "^4.2.0",
5151
"typescript": "^5.3.2",
52+
"unplugin-auto-import": "^0.17.1",
5253
"unplugin-vue-components": "^0.25.2",
5354
"unplugin-vue-define-options": "^1.4.0",
5455
"vite": "^5.0.2",

frontend/pnpm-lock.yaml

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/src/version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"2.0.0-beta.4","build_id":41,"total_build":245}
1+
{"version":"2.0.0-beta.4","build_id":45,"total_build":249}

frontend/src/views/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const configColumns = [{
1616
const template: any = []
1717
const {text, column} = args
1818
if (text === true || text > 0) {
19-
template.push($gettext('Dir'))
19+
template.push($gettext('Directory'))
2020
} else {
2121
template.push($gettext('File'))
2222
}

0 commit comments

Comments
 (0)