@@ -11,7 +11,6 @@ import usersResource from './resources/users.js';
11
11
// import gameResource from './resources/game.js';
12
12
// import gamesUsersResource from './resources/games_users.js';
13
13
// import gamesResource from './resources/games.js';
14
- // import groupTableResource from './resources/';
15
14
import translationsResource from './resources/translation.js' ;
16
15
import clinicsResource from './resources/clinics.js' ;
17
16
import providersResource from './resources/providers.js' ;
@@ -79,16 +78,7 @@ export const admin = new AdminForth({
79
78
loginBackgroundImage : 'https://images.unsplash.com/photo-1534239697798-120952b76f2b?q=80&w=3389&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D' ,
80
79
loginBackgroundPosition : '1/2' , // over, 3/4, 2/5, 3/5 (tailwind grid)
81
80
demoCredentials : "adminforth:adminforth" , // never use it for production
82
- loginPromptHTML : async ( ) => { return "Nya" } ,
83
- // loginPromptHTML:"Nya without function",
84
- // async () =>{
85
- // const adminForthUserExists = await admin.resource('users').count() > 0;
86
- // if (adminForthUserExists) {
87
- // return `<p>Welcome to <b>AdminForth</b> demo!</p>`
88
- // } else {
89
- // return `<p>Welcome to <b>AdminForth</b> demo!</p>`
90
- // }
91
- // },
81
+ loginPromptHTML : "Use email <b>adminforth</b> and password <b>adminforth</b> to login" ,
92
82
// loginBackgroundImage: '@@/pho.jpg',
93
83
rememberMeDays : 30 ,
94
84
beforeLoginConfirmation : [ async ( { adminUser, adminforth, extra} ) => {
@@ -200,7 +190,7 @@ export const admin = new AdminForth({
200
190
dataSources : [
201
191
{
202
192
id : 'maindb' ,
203
- url : process . env . DATABASE_URL as string ,
193
+ url : process . env . DATABASE_URL ,
204
194
} ,
205
195
{
206
196
id : 'pg' ,
@@ -212,7 +202,7 @@ export const admin = new AdminForth({
212
202
} ,
213
203
{
214
204
id : 'ch' ,
215
- url : 'clickhouse://demo:demo@localhost:8124 /demo' ,
205
+ url : 'clickhouse://demo:demo@localhost:8125 /demo' ,
216
206
} ,
217
207
{
218
208
id : 'mysql' ,
@@ -235,17 +225,10 @@ export const admin = new AdminForth({
235
225
translationsResource ,
236
226
] ,
237
227
menu : [
238
- {
239
- label : 'TablesGroup' ,
240
- path : '/overview' ,
241
- homepage : true ,
242
- icon : 'flowbite:chart-pie-solid' ,
243
- component : '@@/GroupTable.vue' ,
244
- } ,
245
228
{
246
229
label : 'Dashboard' ,
247
230
icon : 'flowbite:chart-pie-solid' ,
248
- component : '@@/GroupTable .vue' ,
231
+ component : '@@/Dash .vue' ,
249
232
path : '/dashboard' ,
250
233
// homepage: true,
251
234
isStaticRoute :false ,
@@ -353,7 +336,7 @@ export const admin = new AdminForth({
353
336
354
337
const app = express ( )
355
338
app . use ( express . json ( ) ) ;
356
- const port = process . env . PORT || 3001 ;
339
+ const port = process . env . PORT || 3000 ;
357
340
358
341
( async ( ) => {
359
342
console . log ( '🅿️ Bundling AdminForth...' ) ;
0 commit comments