File tree Expand file tree Collapse file tree 4 files changed +30
-18
lines changed
Expand file tree Collapse file tree 4 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 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" ,
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 },
Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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 } ) ,
You can’t perform that action at this time.
0 commit comments