fix: improve media fetching on collection page, add pagination (#788)
This commit is contained in:
committed by
GitHub
parent
e78ebbe65e
commit
92cc4575f8
@ -1,13 +1,12 @@
|
||||
import AJV from 'ajv';
|
||||
import select from 'ajv-keywords/dist/keywords/select';
|
||||
import uniqueItemProperties from 'ajv-keywords/dist/keywords/uniqueItemProperties';
|
||||
import ajvErrors from 'ajv-errors';
|
||||
import instanceOf from 'ajv-keywords/dist/keywords/instanceof';
|
||||
import prohibited from 'ajv-keywords/dist/keywords/prohibited';
|
||||
import ajvErrors from 'ajv-errors';
|
||||
import select from 'ajv-keywords/dist/keywords/select';
|
||||
import uniqueItemProperties from 'ajv-keywords/dist/keywords/uniqueItemProperties';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
import { formatExtensions, frontmatterFormats, extensionFormatters } from '../formats/formats';
|
||||
import { getWidgets } from '../lib/registry';
|
||||
import { extensionFormatters, formatExtensions, frontmatterFormats } from '../formats/formats';
|
||||
import {
|
||||
I18N_FIELD_DUPLICATE,
|
||||
I18N_FIELD_NONE,
|
||||
@ -16,6 +15,7 @@ import {
|
||||
I18N_STRUCTURE_MULTIPLE_FOLDERS,
|
||||
I18N_STRUCTURE_SINGLE_FILE,
|
||||
} from '../lib/i18n';
|
||||
import { getWidgets } from '../lib/registry';
|
||||
|
||||
import type { ErrorObject } from 'ajv';
|
||||
import type { Config } from '../interface';
|
||||
|
@ -1,4 +1,4 @@
|
||||
export const VIEW_STYLE_LIST = 'VIEW_STYLE_LIST';
|
||||
export const VIEW_STYLE_GRID = 'VIEW_STYLE_GRID';
|
||||
export const VIEW_STYLE_TABLE = 'table';
|
||||
export const VIEW_STYLE_GRID = 'grid';
|
||||
|
||||
export type ViewStyle = typeof VIEW_STYLE_LIST | typeof VIEW_STYLE_GRID;
|
||||
export type ViewStyle = typeof VIEW_STYLE_TABLE | typeof VIEW_STYLE_GRID;
|
||||
|
Reference in New Issue
Block a user