Skip to content

Commit a37a845

Browse files
committed
Remove unused file 'undefined' from the live-demo application
1 parent 060d4d2 commit a37a845

8 files changed

Lines changed: 631 additions & 7944 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[![Ask AI](http://tluma.ai/badge)](http://tluma.ai/ask-ai/devforth/adminforth)
77

8-
* [Try live demo](https://demo.adminforth.dev/) (Read-only mode)
8+
* [Try live demo](https://demo.adminforth.dev/)
99

1010
* [Hello world in 5 minutes](https://adminforth.dev/docs/tutorial/gettingStarted) with AdminForth
1111

adminforth/types/Common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,11 @@ export interface AdminForthConfigMenuItem {
11791179
itemId?: string, // todo move to runtime type
11801180

11811181
url?: string
1182+
1183+
/**
1184+
* Open menu item link in a new browser tab.
1185+
*/
1186+
isOpenInNewTab?: boolean
11821187
}
11831188

11841189

live-demo/app/custom/GitHubButton.vue

Lines changed: 0 additions & 12 deletions
This file was deleted.

live-demo/app/index.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ new AdminForth({
5050
// title: 'Support us for free',
5151
}
5252
},
53-
globalInjections: {
54-
header: [
55-
{
56-
file: '@/custom/GitHubButton.vue',
57-
meta: { thinEnoughToShrinkHeader: true }
58-
}
59-
]
60-
}
6153
},
6254

6355
dataSources: [
@@ -120,6 +112,17 @@ new AdminForth({
120112
icon: 'flowbite:search-outline',
121113
resourceId: 'audit_logs',
122114
},
115+
{
116+
type: 'gap'
117+
},
118+
{
119+
type: 'divider'
120+
},
121+
{
122+
label: 'Demo source',
123+
icon: 'mdi:github',
124+
url: 'https://github.com/devforth/adminforth/tree/main/live-demo/app',
125+
},
123126
],
124127
});
125128

@@ -131,7 +134,7 @@ async function seedDatabase() {
131134
await admin.resource('aparts').create({
132135
id: randomUUID(),
133136
title: `Apartment ${i}`,
134-
square_meter: (Math.random() * 100).toFixed(1),
137+
square_meter: +(Math.random() * 100).toFixed(1),
135138
price: (Math.random() * 10000).toFixed(2),
136139
number_of_rooms: Math.floor(Math.random() * 4) + 1,
137140
description: 'Next gen apartments',

0 commit comments

Comments
 (0)