/
minimus
/
simple-view
Обзор
Документация
Войти
/
minimus
/
simple-view
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
js-src/admin/types.ts
95 строк
2 KB
minimus
feat: frontend galleries DataGrid
03 авг 2026, 18:54
03 авг 2026, 18:54
633f599
Код
Авторство
О чём код?
export type TLoadingState = 'idle' | 'loading' | 'error' | 'success'; export interface ISvBaseOptions { svRestBase: { root: string; restBase: string; nonce: string; }; pluginData: { root: string; }; } export interface ISvSettings { majorVersion: number; delOptions: boolean; galleriesPerPage: number; itemsPerPage: number; galleryDir: string; galleryURL: string; gCodeBefore: string; gCodeAfter: string; iCodeBefore: string; iCodeAfter: string; autoThumbnail: boolean; thumbBigSize: number; thumbSuffix: string; thumbPadding: number; thumbMargins: number; thumbBorderWidth: number; thumbBorderColor: string; } export interface ILocaleStrings { footer: { rights: string; }; header: { version: string; dbVersion: string; }; menu: { galleries: string; newGallery: string; settings: string; }; appHeader: { galleries: string; editor: string; items: string; settings: string; }; } export interface ISysInfo { version: string; dbVersion: string; phpVersion: string; sqlVersion: string; memoryLimit: string; wpMemoryLimit: string; wpMemoryLimitMax: string; locale: string; } export interface IBaseResponse<T> { success: boolean; data: T | null; } export interface IGallery { id: number; name: string; codeBefore: string; codeAfter: string; trash: boolean; } export interface IGalleryItem { id: number; gid: number; caption: string; caption2: string; sourceLink: string; sourceType: string; content: string; contentType: string; codeBefore: string; codeAfter: string; thumbPadding: number; thumbMargins: number; thumbBorderWidth: number; thumbBorderColor: string; trash: boolean; }