Skip to content

Commit b2e4c02

Browse files
committed
docs: add background jobs plugin and quick filters plugin to the landing page
1 parent 6691834 commit b2e4c02

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

adminforth/documentation/src/pages/index.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,18 @@ const images = [
112112
link: '/docs/tutorial/Plugins/bulk-ai-flow/',
113113
description: 'Use LLMs to fill records with generated data or images. For example, generate product descriptions based on product name and image or generate products images'
114114
},
115+
{
116+
original: require('@site/static/img/previews/quick-filters.png').default,
117+
title: 'Quick Filters Plugin - filter your data quickly',
118+
link: '/docs/tutorial/Plugins/quick-filters/',
119+
description: 'Use quick filters to filter your data efficiently. Create custom filters and apply them with a single click'
120+
},
121+
{
122+
original: require('@site/static/img/previews/background-jobs.png').default,
123+
title: 'Background Jobs Plugin - manage your background tasks',
124+
link: '/docs/tutorial/Plugins/background-jobs/',
125+
description: 'Use background jobs to handle long-running tasks efficiently. Schedule, monitor, and manage your background processes with ease even after server restarts'
126+
},
115127
];
116128

117129

149 KB
Loading
34.6 KB
Loading

dev-demo/resources/carsResourseTemplate.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -243,20 +243,17 @@ export default function carsResourseTemplate(resourceId: string, dataSource: str
243243
new QuickFiltersPlugin({
244244
filters: [
245245
{
246-
name: 'Listed',
246+
name: 'Price',
247247
enum: [
248-
{ label: 'Listed', filters: () => Filters.EQ('listed', true) },
249-
{ label: 'Not listed', filters: () => Filters.EQ('listed', false) },
248+
{ label: 'Budget-Friendly', filters: () => Filters.AND(Filters.GTE('price', '0'), Filters.LTE('price', '3500')) },
249+
{ label: 'Mid-Range', filters: () => Filters.AND(Filters.GTE('price', '3501'), Filters.LTE('price', '7000')) },
250+
{ label: 'Premium', filters: () => Filters.AND(Filters.GTE('price', '7001'), Filters.LTE('price', '10000')) },
250251
]
251252
},
252253
{
253254
name: 'Model',
254255
searchInput: (searchVal) => Filters.ILIKE('model', searchVal)
255256
},
256-
{
257-
name: 'Price',
258-
searchInput: (searchVal) => Filters.ILIKE('price', searchVal)
259-
},
260257
]
261258
}),
262259
/*********************************************************************************

0 commit comments

Comments
 (0)