Skip to content

Commit 189d361

Browse files
committed
fix: update adminforth version in live-demo and add logo for icon only sidebar
1 parent 220b688 commit 189d361

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

live-demo/app/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const DEMO_EMAIL = 'demo@adminfoth.dev';
1717
const DEMO_PASSWORD = 'demo';
1818

1919

20-
export const admin = new AdminForth({
20+
export const admin =
21+
new AdminForth({
2122
baseUrl : ADMIN_BASE_URL,
2223
auth: {
2324
//loginBackgroundImage: '@@/adminforthloginimg.avif',
@@ -31,6 +32,9 @@ export const admin = new AdminForth({
3132
brandName: 'My Admin',
3233
datesFormat: 'D MMM YY',
3334
timeFormat: 'HH:mm:ss',
35+
iconOnlySidebar: {
36+
logo: '@/assets/logo.svg',
37+
},
3438
emptyFieldPlaceholder: '-',
3539
title: 'My App Admin', // used to set HTML meta title tag
3640
// brandLogo: '@@/logo.svg',

live-demo/app/package-lock.json

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

live-demo/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@adminforth/two-factors-auth": "^1.1.2",
3333
"@adminforth/upload": "2.2.1",
3434
"@prisma/client": "^6.6.0",
35-
"adminforth": "^2.4.0-next.193",
35+
"adminforth": "^2.4.0-next.201",
3636
"better-sqlite3": "^10.0.0",
3737
"express": "^4.19.2"
3838
},

0 commit comments

Comments
 (0)