adminforth 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/auth.js +66 -0
  2. package/dataConnectors/mongo.js +187 -0
  3. package/dataConnectors/postgres.js +283 -0
  4. package/dataConnectors/sqlite.js +257 -0
  5. package/index.js +722 -0
  6. package/modules/codeInjector.js +313 -0
  7. package/modules/utils.js +12 -0
  8. package/package.json +23 -0
  9. package/servers/express.js +217 -0
  10. package/spa/.eslintrc.cjs +14 -0
  11. package/spa/.vscode/extensions.json +6 -0
  12. package/spa/README.md +39 -0
  13. package/spa/env.d.ts +1 -0
  14. package/spa/index.html +23 -0
  15. package/spa/package-lock.json +4152 -0
  16. package/spa/package.json +40 -0
  17. package/spa/postcss.config.js +6 -0
  18. package/spa/public/favicon.ico +0 -0
  19. package/spa/src/App.vue +172 -0
  20. package/spa/src/assets/base.css +0 -0
  21. package/spa/src/assets/logo.svg +1 -0
  22. package/spa/src/components/AcceptModal.vue +52 -0
  23. package/spa/src/components/Breadcrumbs.vue +40 -0
  24. package/spa/src/components/BreadcrumbsWithButtons.vue +26 -0
  25. package/spa/src/components/CustomDateRangePicker.vue +218 -0
  26. package/spa/src/components/Dropdown.vue +154 -0
  27. package/spa/src/components/Filters.vue +141 -0
  28. package/spa/src/components/HelloWorld.vue +17 -0
  29. package/spa/src/components/MenuLink.vue +25 -0
  30. package/spa/src/components/ResourceForm.vue +198 -0
  31. package/spa/src/components/SingleSkeletLoader.vue +13 -0
  32. package/spa/src/components/ValueRenderer.vue +44 -0
  33. package/spa/src/components/icons/IconCalendar.vue +5 -0
  34. package/spa/src/components/icons/IconCommunity.vue +7 -0
  35. package/spa/src/components/icons/IconDocumentation.vue +7 -0
  36. package/spa/src/components/icons/IconEcosystem.vue +7 -0
  37. package/spa/src/components/icons/IconSupport.vue +7 -0
  38. package/spa/src/components/icons/IconTime.vue +5 -0
  39. package/spa/src/components/icons/IconTooling.vue +19 -0
  40. package/spa/src/index.scss +26 -0
  41. package/spa/src/main.ts +18 -0
  42. package/spa/src/router/index.ts +53 -0
  43. package/spa/src/stores/core.ts +135 -0
  44. package/spa/src/stores/modal.ts +38 -0
  45. package/spa/src/utils.ts +44 -0
  46. package/spa/src/views/CreateView.vue +103 -0
  47. package/spa/src/views/EditView.vue +95 -0
  48. package/spa/src/views/HomeView.vue +8 -0
  49. package/spa/src/views/ListView.vue +466 -0
  50. package/spa/src/views/LoginView.vue +122 -0
  51. package/spa/src/views/ResourceParent.vue +18 -0
  52. package/spa/src/views/ShowView.vue +94 -0
  53. package/spa/tailwind.config.js +12 -0
  54. package/spa/tsconfig.app.json +14 -0
  55. package/spa/tsconfig.json +11 -0
  56. package/spa/tsconfig.node.json +19 -0
  57. package/spa/vite.config.ts +42 -0
  58. package/types.js +34 -0
@@ -0,0 +1,19 @@
1
+ <!-- This icon is from <https://github.com/Templarian/MaterialDesign>, distributed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0) license-->
2
+ <template>
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ xmlns:xlink="http://www.w3.org/1999/xlink"
6
+ aria-hidden="true"
7
+ role="img"
8
+ class="iconify iconify--mdi"
9
+ width="24"
10
+ height="24"
11
+ preserveAspectRatio="xMidYMid meet"
12
+ viewBox="0 0 24 24"
13
+ >
14
+ <path
15
+ d="M20 18v-4h-3v1h-2v-1H9v1H7v-1H4v4h16M6.33 8l-1.74 4H7v-1h2v1h6v-1h2v1h2.41l-1.74-4H6.33M9 5v1h6V5H9m12.84 7.61c.1.22.16.48.16.8V18c0 .53-.21 1-.6 1.41c-.4.4-.85.59-1.4.59H4c-.55 0-1-.19-1.4-.59C2.21 19 2 18.53 2 18v-4.59c0-.32.06-.58.16-.8L4.5 7.22C4.84 6.41 5.45 6 6.33 6H7V5c0-.55.18-1 .57-1.41C7.96 3.2 8.44 3 9 3h6c.56 0 1.04.2 1.43.59c.39.41.57.86.57 1.41v1h.67c.88 0 1.49.41 1.83 1.22l2.34 5.39z"
16
+ fill="currentColor"
17
+ ></path>
18
+ </svg>
19
+ </template>
@@ -0,0 +1,26 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+
6
+ // @layer base {
7
+ // /* width */
8
+ // ::-webkit-scrollbar {
9
+ // @apply w-2 p-2
10
+ // }
11
+
12
+ // /* Track */
13
+ // ::-webkit-scrollbar-track {
14
+ // @apply bg-inherit
15
+ // }
16
+
17
+ // /* Handle */
18
+ // ::-webkit-scrollbar-thumb {
19
+ // @apply bg-gray-200 dark:bg-gray-600 rounded-xl
20
+ // }
21
+
22
+ // /* Handle on hover */
23
+ // ::-webkit-scrollbar-thumb:hover {
24
+ // @apply bg-gray-700
25
+ // }
26
+ // }
@@ -0,0 +1,18 @@
1
+ import { createApp } from 'vue'
2
+ import { createPinia } from 'pinia'
3
+ /* IMPORTANT:ADMINFORTH IMPORTS */
4
+
5
+
6
+ import App from './App.vue'
7
+ import router from './router'
8
+
9
+ const app = createApp(App)
10
+ /* IMPORTANT:ADMINFORTH COMPONENT REGISTRATIONS */
11
+
12
+
13
+ app.use(createPinia())
14
+ app.use(router)
15
+
16
+ /* IMPORTANT:ADMINFORTH CUSTOM USES */
17
+
18
+ app.mount('#app')
@@ -0,0 +1,53 @@
1
+ import { createRouter, createWebHistory } from 'vue-router'
2
+ import HomeView from '../views/HomeView.vue'
3
+ import ResourceParent from '@/views/ResourceParent.vue'
4
+ import ListView from '@/views/ListView.vue'
5
+ import ShowView from '@/views/ShowView.vue'
6
+ import EditView from '@/views/EditView.vue'
7
+ import CreateView from '@/views/CreateView.vue'
8
+
9
+ const router = createRouter({
10
+ history: createWebHistory(import.meta.env.BASE_URL),
11
+ routes: [
12
+ {
13
+ path: '/',
14
+ name: 'home',
15
+ component: HomeView
16
+ },
17
+ {
18
+ path: '/login',
19
+ name: 'login',
20
+ component: () => import('@/views/LoginView.vue')
21
+ },
22
+ {
23
+ path: '/resource/:resourceId',
24
+ component: ResourceParent,
25
+ name: 'resource',
26
+ children: [
27
+ {
28
+ path: '',
29
+ component: ListView,
30
+ name: 'resource-list'
31
+ },
32
+ {
33
+ path: 'show/:primaryKey',
34
+ component: ShowView,
35
+ name: 'resource-show'
36
+ },
37
+ {
38
+ path: 'edit/:primaryKey',
39
+ component: EditView,
40
+ name: 'resource-edit'
41
+ },
42
+ {
43
+ path: 'create',
44
+ component: CreateView,
45
+ name: 'resource-create'
46
+ },
47
+ ]
48
+ },
49
+ /* IMPORTANT:ADMINFORTH ROUTES */
50
+ ]
51
+ })
52
+
53
+ export default router
@@ -0,0 +1,135 @@
1
+ import { ref, computed } from 'vue'
2
+ import { defineStore } from 'pinia'
3
+ import { callAdminForthApi } from '@/utils';
4
+ import router from '@/router';
5
+
6
+ async function findHomepage(menu) {
7
+ for (const item of menu) {
8
+ if (item.homepage) {
9
+ return item;
10
+ }
11
+ if (item.children) {
12
+ const res = findHomepage(item.children);
13
+ if (res) {
14
+ return res;
15
+ }
16
+ }
17
+ }
18
+ return null;
19
+ }
20
+
21
+ export const useCoreStore = defineStore('core', () => {
22
+ const resourceById = ref([]);
23
+ const menu = ref([]);
24
+ const config = ref({});
25
+ const record = ref({});
26
+ const resourceColumns = ref(null);
27
+ const resourceColumnsError = ref('');
28
+ const resourceColumnsId = ref(null);
29
+ const user = ref(null);
30
+
31
+ async function fetchMenuAndResource() {
32
+ const resp = await callAdminForthApi({
33
+ path: '/get_base_config',
34
+ method: 'GET',
35
+ });
36
+ menu.value = resp.menu;
37
+ resourceById.value = resp.resources.reduce((acc, resource) => {
38
+ acc[resource.resourceId] = resource;
39
+ return acc;
40
+ }, {});
41
+ config.value = resp.config;
42
+ user.value = resp.user;
43
+
44
+ // find homepage:true in menu recuresively
45
+ const homepage = await findHomepage(menu.value);
46
+ if (homepage) {
47
+ if (homepage.resourceId) {
48
+ // redirect to homepage
49
+ router.push({ name: 'resource-list', params: { resourceId: homepage.resourceId } });
50
+ } else {
51
+ // redirect to path
52
+ router.push(homepage.path);
53
+ }
54
+ }
55
+ }
56
+
57
+ async function fetchRecord({ resourceId, primaryKey }) {
58
+ record.value = null;
59
+
60
+ record.value = await callAdminForthApi({
61
+ path: '/get_record',
62
+ method: 'POST',
63
+ body: {
64
+ resourceId: resourceId,
65
+ primaryKey: primaryKey,
66
+ }
67
+ });
68
+ }
69
+
70
+ async function fetchColumns({ resourceId }) {
71
+ console.log('fetchColumns 1', resourceId, resourceColumnsId.value);
72
+ if (resourceColumnsId.value === resourceId && resourceColumns.value) {
73
+ // already fetched
74
+ return;
75
+ }
76
+ resourceColumnsId.value = resourceId;
77
+ resourceColumns.value = null;
78
+ resourceColumnsError.value = '';
79
+ const res = await callAdminForthApi({
80
+ path: '/get_resource_columns',
81
+ method: 'POST',
82
+ body: {
83
+ resourceId,
84
+ }
85
+ }
86
+ );
87
+ if (res.error) {
88
+ resourceColumnsError.value = res.error;
89
+ } else {
90
+ resourceColumns.value = res.resource.columns;
91
+ }
92
+ }
93
+
94
+ async function getPublicConfig() {
95
+ const res = await callAdminForthApi({
96
+ path: '/get_public_config',
97
+ method: 'GET',
98
+ });
99
+ config.value = {...config.value, ...res};
100
+ }
101
+
102
+ async function logout() {
103
+ await callAdminForthApi({
104
+ path: '/logout',
105
+ method: 'POST',
106
+ });
107
+ }
108
+
109
+ const username = computed(() => {
110
+ const usernameField = config.value.usernameField;
111
+ return user.value && user.value[usernameField];
112
+ });
113
+
114
+ const userFullname = computed(() => {
115
+ const userFullnameField = config.value.userFullnameField;
116
+ return user.value && user.value[userFullnameField];
117
+ })
118
+
119
+
120
+ return {
121
+ config,
122
+ resourceById,
123
+ menu,
124
+ username,
125
+ userFullname,
126
+ getPublicConfig,
127
+ fetchMenuAndResource,
128
+ fetchRecord,
129
+ record,
130
+ resourceColumns,
131
+ fetchColumns,
132
+ resourceColumnsError,
133
+ logout
134
+ }
135
+ })
@@ -0,0 +1,38 @@
1
+ import { ref } from 'vue'
2
+ import { defineStore } from 'pinia'
3
+ import { callAdminForthApi } from '@/utils';
4
+
5
+
6
+ export const useModalStore = defineStore('modal', () => {
7
+ const modalContent = ref({
8
+ title: 'title',
9
+ content: 'content',
10
+ acceptText: 'acceptText',
11
+ cancelText: 'cancelText',
12
+ });
13
+ const isOpened = ref(false);
14
+ const onAcceptFunction = ref(()=>{});
15
+ function togleModal() {
16
+ isOpened.value = !isOpened.value;
17
+ }
18
+ function setOnAcceptFunction(func) {
19
+ onAcceptFunction.value = func;
20
+ }
21
+ function setModalContent(content) {
22
+ modalContent.value = content;
23
+ }
24
+ function resetmodalState() {
25
+ isOpened.value = false;
26
+ modalContent.value = {
27
+ title: 'title',
28
+ content: 'content',
29
+ acceptText: 'acceptText',
30
+ cancelText: 'cancelText',
31
+ };
32
+ setOnAcceptFunction(()=>{});
33
+
34
+ }
35
+
36
+ return {isOpened, setModalContent, togleModal,modalContent, setOnAcceptFunction, onAcceptFunction,resetmodalState}
37
+
38
+ })
@@ -0,0 +1,44 @@
1
+ import { onMounted, ref, resolveComponent } from 'vue';
2
+
3
+ import router from "./router";
4
+
5
+ export async function callApi({path, method, body=undefined} ) {
6
+ const options = {
7
+ method,
8
+ headers: {
9
+ 'Content-Type': 'application/json',
10
+ },
11
+ body: JSON.stringify(body),
12
+ };
13
+ const fullPath = `${import.meta.env.VITE_ADMINFORTH_PUBLIC_PATH || ''}${path}`;
14
+ const r = await fetch(fullPath, options);
15
+ if (r.status == 401) {
16
+ console.log('router', router);
17
+ router.push({name: 'login'});
18
+ return null;
19
+ }
20
+ return await r.json();
21
+ }
22
+
23
+ export async function callAdminForthApi({ path, method, body=undefined }) {
24
+ try {
25
+ return callApi({path: `/adminapi/v1${path}`, method, body} );
26
+ } catch (e) {
27
+ console.error('error', e);
28
+ return { error: `Unexpected error: ${e}` };
29
+ }
30
+ }
31
+
32
+
33
+
34
+
35
+
36
+ export function getIcon(icon: string) {
37
+ // icon format is "feather:icon-name". We need to get IconName in pascal case
38
+ if (!icon.includes(':')) {
39
+ throw new Error('Icon name should be in format "icon-set:icon-name"');
40
+ }
41
+ const [iconSet, iconName] = icon.split(':');
42
+ const compName = 'Icon' + iconName.split('-').map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join('');
43
+ return resolveComponent(compName);
44
+ }
@@ -0,0 +1,103 @@
1
+ <template>
2
+ <div class="relative">
3
+
4
+ <BreadcrumbsWithButtons>
5
+ <!-- save and cancle -->
6
+ <button @click="$router.back()"
7
+ class="flex items-center py-1 px-3 me-2 mb-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
8
+ >
9
+ Cancel
10
+ </button>
11
+
12
+ <button @click="saveRecord"
13
+ class="flex items-center py-1 px-3 mb-2 text-sm font-medium text-red-600 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50"
14
+ :disabled="saving || (validating && !isValid)"
15
+ >
16
+ <svg v-if="saving" x
17
+ aria-hidden="true" class="w-4 h-4 mr-1 text-gray-200 animate-spin dark:text-gray-600 fill-red-600" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor"/><path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z" fill="currentFill"/></svg>
18
+
19
+ <IconFloppyDiskSolid v-else class="w-4 h-4 mr-1" />
20
+ Save
21
+ </button>
22
+
23
+ </BreadcrumbsWithButtons>
24
+
25
+ <SingleSkeletLoader v-if="loading"></SingleSkeletLoader>
26
+
27
+ <ResourceForm
28
+ v-else
29
+ :record="{}"
30
+ :resourceColumns="coreStore.resourceColumns"
31
+ @update:record="onUpdateRecord"
32
+ @update:isValid="isValid = $event"
33
+ :validating="validating"
34
+ >
35
+ </ResourceForm>
36
+
37
+ </div>
38
+ </template>
39
+
40
+
41
+ <script setup>
42
+
43
+ import { ref, computed, onMounted } from 'vue';
44
+ import { useRoute, useRouter } from 'vue-router';
45
+ import { useCoreStore } from '@/stores/core';
46
+ import { callAdminForthApi } from '@/utils';
47
+ import ResourceForm from '@/components/ResourceForm.vue';
48
+ import BreadcrumbsWithButtons from '@/components/BreadcrumbsWithButtons.vue';
49
+ import { IconFloppyDiskSolid } from '@iconify-prerendered/vue-flowbite';
50
+ import SingleSkeletLoader from '@/components/SingleSkeletLoader.vue';
51
+
52
+ const isValid = ref(false);
53
+ const validating = ref(false);
54
+
55
+ const loading = ref(false);
56
+ const saving = ref(false);
57
+
58
+ const route = useRoute();
59
+ const router = useRouter();
60
+
61
+ const record = ref({});
62
+
63
+ const coreStore = useCoreStore();
64
+
65
+ async function onUpdateRecord(newRecord) {
66
+ console.log('newRecord', newRecord);
67
+ record.value = newRecord;
68
+ }
69
+
70
+ onMounted(async () => {
71
+ loading.value = true;
72
+ coreStore.fetchColumns({
73
+ resourceId: route.params.resourceId
74
+ });
75
+ loading.value = false;
76
+ });
77
+
78
+ async function saveRecord() {
79
+ if (!isValid.value) {
80
+ validating.value = true;
81
+ return;
82
+ } else {
83
+ validating.value = false;
84
+ }
85
+ saving.value = true;
86
+ const response = await callAdminForthApi({
87
+ method: 'POST',
88
+ path: `/create_record`,
89
+ body: {
90
+ resourceId: route.params.resourceId,
91
+ record: record.value,
92
+ },
93
+ });
94
+ saving.value = false;
95
+ router.push({ name: 'resource-show', params: {
96
+ resourceId: route.params.resourceId,
97
+ primaryKey: response.newRecordId
98
+
99
+ } });
100
+ }
101
+
102
+
103
+ </script>
@@ -0,0 +1,95 @@
1
+ <template>
2
+ <div class="relative">
3
+
4
+ <BreadcrumbsWithButtons>
5
+ <!-- save and cancle -->
6
+ <button @click="$router.back()"
7
+ class="flex items-center py-1 px-3 me-2 mb-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
8
+ >
9
+ Cancel
10
+ </button>
11
+
12
+ <button @click="saveRecord"
13
+ class="flex items-center py-1 px-3 mb-2 text-sm font-medium text-red-600 focus:outline-none bg-white rounded border border-gray-300 hover:bg-gray-100 hover:text-red-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-red-500 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
14
+ :disabled="saving || (validating && !isValid)"
15
+ >
16
+ <IconFloppyDiskSolid class="w-4 h-4" />
17
+ Save
18
+ </button>
19
+
20
+ </BreadcrumbsWithButtons>
21
+
22
+ <SingleSkeletLoader v-if="loading"></SingleSkeletLoader>
23
+
24
+ <ResourceForm
25
+ v-else
26
+ :record="coreStore.record"
27
+ :resourceColumns="coreStore.resourceColumns"
28
+ @update:record="onUpdateRecord"
29
+ @update:isValid="isValid = $event"
30
+ :validating="validating"
31
+ >
32
+ </ResourceForm>
33
+ </div>
34
+ </template>
35
+
36
+
37
+ <script setup>
38
+
39
+ import { ref, computed, onMounted } from 'vue';
40
+ import { useRoute } from 'vue-router';
41
+ import { useCoreStore } from '@/stores/core';
42
+ import ResourceForm from '@/components/ResourceForm.vue';
43
+ import BreadcrumbsWithButtons from '@/components/BreadcrumbsWithButtons.vue';
44
+ import { IconFloppyDiskSolid } from '@iconify-prerendered/vue-flowbite';
45
+ import SingleSkeletLoader from '@/components/SingleSkeletLoader.vue';
46
+ import { callAdminForthApi } from '@/utils';
47
+
48
+ const coreStore = useCoreStore();
49
+
50
+ const isValid = ref(false);
51
+ const validating = ref(false);
52
+
53
+ const route = useRoute();
54
+
55
+ const loading = ref(false);
56
+
57
+ const saving = ref(false);
58
+
59
+ const record = ref({});
60
+
61
+ async function onUpdateRecord(newRecord) {
62
+ record.value = newRecord;
63
+ }
64
+
65
+
66
+ onMounted(async () => {
67
+ loading.value = true;
68
+
69
+ await coreStore.fetchColumns({
70
+ resourceId: route.params.resourceId
71
+ });
72
+ await coreStore.fetchRecord({
73
+ resourceId: route.params.resourceId,
74
+ primaryKey: route.params.primaryKey,
75
+ });
76
+
77
+ loading.value = false;
78
+ });
79
+
80
+ async function saveRecord() {
81
+ saving.value = true;
82
+ await callAdminForthApi({
83
+ method: 'POST',
84
+ path: `/update_record`,
85
+ body: {
86
+ resourceId: route.params.resourceId,
87
+ recordId: route.params.primaryKey,
88
+ record: record.value,
89
+ },
90
+ });
91
+ saving.value = false;
92
+ router.push({ name: 'resource.show', params: { resourceId: route.params.resourceId, primaryKey: coreStore.record[coreStore.primaryKey] } });
93
+ }
94
+
95
+ </script>
@@ -0,0 +1,8 @@
1
+ <script setup lang="ts">
2
+ </script>
3
+
4
+ <template>
5
+ <main>
6
+ 123
7
+ </main>
8
+ </template>