Skip to content

Commit 068cf24

Browse files
committed
fix: update adminforth, inline-list and bulk-ai-flow plugins on live demo
1 parent 78a53d5 commit 068cf24

File tree

4 files changed

+30
-18
lines changed

4 files changed

+30
-18
lines changed

live-demo/app/package-lock.json

Lines changed: 25 additions & 13 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
"description": "",
1818
"dependencies": {
1919
"@adminforth/audit-log": "^1.2.0",
20-
"@adminforth/bulk-ai-flow": "^1.11.0",
20+
"@adminforth/bulk-ai-flow": "^1.13.0",
2121
"@adminforth/chat-gpt": "^1.0.20",
2222
"@adminforth/completion-adapter-open-ai-chat-gpt": "^1.0.2",
2323
"@adminforth/email-password-reset": "^1.1.0",
24-
"@adminforth/foreign-inline-list": "^1.3.1",
24+
"@adminforth/foreign-inline-list": "^1.6.2",
2525
"@adminforth/i18n": "^1.2.4",
2626
"@adminforth/image-generation-adapter-openai": "^1.0.4",
2727
"@adminforth/image-vision-adapter-openai": "^1.0.3",
@@ -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.122",
35+
"adminforth": "^2.4.0-next.124",
3636
"better-sqlite3": "^10.0.0",
3737
"express": "^4.19.2"
3838
},

live-demo/app/resources/apartments.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export default {
225225
},
226226
preview: {
227227
maxShowWidth: "480px",
228-
//previewUrl: ({s3Path}) => `https://demo-static.adminforth.dev/${s3Path}`,
228+
previewUrl: ({filePath}) => `https://demo-static.adminforth.dev/${filePath}`,
229229
}
230230
}),
231231
new UploadPlugin({
@@ -244,6 +244,7 @@ export default {
244244
// You can use next to change preview URLs (if it is image) in list and show views
245245
preview: {
246246
maxShowWidth: "480px",
247+
previewUrl: ({filePath}) => `https://demo-static.adminforth.dev/${filePath}`,
247248
}
248249
}),
249250
new BulkAiFlowPlugin({

live-demo/app/resources/users.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default {
2020
modifyTableResourceConfig: (resourceConfig: AdminForthResource) => {
2121
// hide column 'square_meter' from both 'list' and 'filter'
2222
const column = resourceConfig.columns.find((c: AdminForthResourceColumn) => c.name === 'square_meter')!.showIn = [];
23-
resourceConfig.options!.listPageSize = 1;
2423
// feel free to console.log and edit resourceConfig as you need
2524
},
2625
}),

0 commit comments

Comments
 (0)