Skip to content

Commit e7295c4

Browse files
committed
Merge branch 'next' of github.com:devforth/adminforth into next
2 parents d7f1dd8 + e44fc55 commit e7295c4

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

adminforth/documentation/docs/tutorial/03-Customization/06-customPages.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ Now we have to define this endpoint in the backend to make our page work:
317317
318318
319319
320-
Open `index.ts` file and add the following code *BEFORE* `admin.express.serve(` !
320+
Open `api.ts` file and add the following code *BEFORE* `admin.express.authorize` !
321321
322-
```ts title="/index.ts"
322+
```ts title="/api.ts"
323323
324324
import type { IAdminUserExpressRequest } from 'adminforth';
325325
import express from 'express';
@@ -429,11 +429,6 @@ app.get(`${ADMIN_BASE_URL}/api/dashboard/`,
429429
)
430430
)
431431
);
432-
433-
// serve after you added all api
434-
admin.express.serve(app)
435-
admin.discoverDatabases();
436-
437432
```
438433
439434
Install and import Zod before using this pattern: `pnpm add zod` or `npm install zod`, then `import * as z from 'zod';`. `admin.express.withSchema(...)` will convert the Zod schema to OpenAPI for you.

adminforth/spa/src/views/CreateEditSkeleton.vue

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,7 @@
3535
</template>
3636

3737
<script setup lang="ts">
38-
import { computed, markRaw } from 'vue';
39-
import {
40-
IconLinkOutline, IconCodeOutline, IconRectangleListOutline,
41-
IconOrderedListOutline, IconLetterBoldOutline, IconLetterUnderlineOutline,
42-
IconLetterItalicOutline, IconTextSlashOutline
43-
} from '@iconify-prerendered/vue-flowbite';
44-
import { IconH116Solid, IconH216Solid, IconH316Solid } from '@iconify-prerendered/vue-heroicons';
38+
import { computed } from 'vue';
4539
import { Skeleton } from '@/afcl';
4640
4741
interface Props {
@@ -77,17 +71,4 @@ const getSkeletonInputClass = (column: any) => {
7771
return 'h-[42px] w-full';
7872
};
7973
80-
const skeletonButtons = [
81-
{ id: 'bold', icon: markRaw(IconLetterBoldOutline), sep: false },
82-
{ id: 'italic', icon: markRaw(IconLetterItalicOutline), sep: false },
83-
{ id: 'underline', icon: markRaw(IconLetterUnderlineOutline), sep: false },
84-
{ id: 'strike', icon: markRaw(IconTextSlashOutline), sep: true },
85-
{ id: 'h1', icon: markRaw(IconH116Solid), sep: false },
86-
{ id: 'h2', icon: markRaw(IconH216Solid), sep: false },
87-
{ id: 'h3', icon: markRaw(IconH316Solid), sep: true },
88-
{ id: 'ul', icon: markRaw(IconRectangleListOutline), sep: false },
89-
{ id: 'ol', icon: markRaw(IconOrderedListOutline), sep: false },
90-
{ id: 'link', icon: markRaw(IconLinkOutline), sep: false },
91-
{ id: 'codeBlock', icon: markRaw(IconCodeOutline), sep: false },
92-
];
9374
</script>

0 commit comments

Comments
 (0)