feat(ckeditor5,board,ecommerce,page,core,admin_basic): 미참조 에디터 업로드 이미지 정리 신설 + 업로드 고아 동종 결함 7건 전수 해소
공개 (@Tuwasduliebst 제보) 대응. - ckeditor5: 미참조 이미지 정리 엔진 신설 — 참조 판정(hash + 파일명 2토큰, filter_reference_sources 훅으로 확장 콘텐츠 등록) + 정리 커맨드(기본 꺼짐 옵트인, 3중 게이트) + 업로드 관리 화면(권한 분리·참조 배지·개별/선택 삭제) + 기설치본 설정 백필 upgrade step - board: 임시 첨부 GC(상시) + 소프트삭제 첨부 영구 정리(옵트인) + 설정 UI, 저장 payload 누락(F4)·빈 temp 디렉토리 잔존(F5) 수정 - ecommerce: 임시 상품 이미지 GC + 카테고리 삭제 시 이미지 파일 미삭제(S4) 수정 - page: 임시 첨부 GC - 코어: 고아 첨부 정리 커맨드(옵트인, site_logo 보호) + 사이트 로고 교체 시 구 로고 재편입 차단(S6) + DB 백업 미구현 501 정직화(B3) + 플러그인 관리자 메뉴 설치·업데이트 자동 동기화(F1·F7) - 동반: 플러그인 설정 검증 오류 필드명 라벨화(F3), Toggle 노드 type 정정 수평 전개(marketing 1.0.2 bump·gdpr·ecommerce), ja 언어팩 4종, API 문서, hooks.md, 시나리오 매니페스트 8종, Playwright E2E 4종
This commit is contained in:
1 parent
1d895a6428
commit
cfc2caba1b
170 files changed
+11142
-209
No files matched your search
@@ -11,6 +11,7 @@
|
||||
- 환경설정 > 드라이버 > 파일 스토리지에 S3 호환 스토리지 설정이 추가되었습니다 — 엔드포인트 URL 입력칸과 Path-style 주소 토글로 Cloudflare R2, MinIO 등도 연결할 수 있습니다. (#99 @lyg-kaban 님께서 제보해주셨습니다.)
|
||||
- 환경설정 > 드라이버 탭에 「공개 자산 스토리지」 카드가 추가되었습니다. 완전 공개 자산(상품·카테고리·리뷰·에디터 이미지 등)을 직접 URL(CDN)로 서빙할 디스크를 고를 수 있으며, 기본값(사용 안 함)이면 종전 스트리밍 방식 그대로입니다. 파일 스토리지는 로컬로 두고 공개 자산만 S3 로 보내는 구성도 가능하며, 이 경우에도 S3 접속 정보 입력칸이 함께 표시되고 저장 전 연결 테스트를 요구합니다. (#100 @lyg-kaban 님께서 건의해주셨습니다.)
|
||||
- 공개 자산 스토리지를 외부 주소(CDN)로 설정하면 관리자 화면의 첨부·이미지 미리보기도 그 주소를 그대로 사용합니다 — 별도의 스토리지 CORS 설정 없이 표시됩니다.
|
||||
- 환경설정 > 업로드 탭에 「고아 첨부 정리」 카드가 추가되었습니다 — 폼을 저장하지 않고 나가서 남은 첨부파일의 자동 정리 여부와 보존기간을 지정할 수 있습니다(기본 꺼짐).
|
||||
- 회원 정보 수정 화면에서 상태를 '탈퇴'로 바꿔 저장하면 확인 창을 거칩니다 — 이메일·이름·닉네임 익명화 등 되돌릴 수 없는 처리가 함께 일어나므로 무엇이 처리되는지 먼저 알려 드립니다. 회원 등록 화면에서는 '탈퇴' 상태를 선택할 수 없습니다. (#112 @Tuwasduliebst 님께서 제보해주셨습니다.)
|
||||
|
||||
### Changed
|
||||
@@ -30,6 +31,7 @@
|
||||
- 회원 목록에서 여러 명을 골라 일괄 탈퇴할 때, 탈퇴할 수 없는 계정(관리자 등)이 섞여 있으면 아무 일도 일어나지 않았는데 "탈퇴 처리되었습니다" 로 안내되던 문제를 수정했습니다. 이제 처리된 인원과 처리하지 못한 인원, 그리고 그 사유를 함께 알려 드립니다.
|
||||
- 목록에서 항목을 선택하면 선택 건수가 `{1}개 선택됨` 처럼 중괄호가 남은 채 표시되던 문제를 수정했습니다.
|
||||
- 목록에서 항목을 선택한 뒤 검색하거나 페이지를 넘기면, 화면에서 사라진 항목이 선택된 채로 남아 일괄 처리 대상에 포함되던 문제를 수정했습니다. 확인 창은 건수만 알려 주므로 실행 전에 알아챌 방법이 없었습니다. 이제 일괄 처리 대상은 언제나 화면에 보이면서 체크된 항목뿐입니다. 회원 목록·활동 기록·알림 발송 기록·스케줄 목록에 적용됩니다.
|
||||
- 환경설정에서 사이트 로고를 목록에서 빼도 화면에 그대로 남아, 로고 교체가 저장되지 않던 문제를 수정했습니다.
|
||||
|
||||
## [1.0.4] - 2026-08-10
|
||||
|
||||
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
/**
|
||||
* @file admin-settings-logo-remove-expression.test.ts
|
||||
* @description 사이트 로고 제거 시 form 에서 실제로 빠지는지 — 레이아웃 표현식 자체를 평가한다.
|
||||
*
|
||||
* 배경(브라우저 실측): FileUploader 는 `onRemove` 에 **hash 우선**(`item.hash || item.id`)으로
|
||||
* 식별자를 넘긴다. 레이아웃이 `item.id !== $args[0]` 로만 걸러내면 저장된 첨부(항상 hash 보유)는
|
||||
* 어떤 항목도 제거되지 않아, 첨부는 서버에서 즉시 삭제됐는데 폼에는 그대로 남는다. 그 상태로
|
||||
* 저장하면 이미 없는 id 를 제출해 422 가 되고, 설정에는 삭제된 첨부 id 가 남는다.
|
||||
*
|
||||
* 기존 테스트는 레이아웃 액션을 파일 안에 복사해 두고 기대 결과를 손으로 넣어 트리거하므로
|
||||
* 표현식 자체는 한 번도 평가되지 않는다. 그래서 이 테스트는 **실제 레이아웃 파일**에서 식을
|
||||
* 꺼내 평가한다.
|
||||
*
|
||||
* @scenario protected=current_site_logo, age=past_retention
|
||||
*
|
||||
* @effects site_logo_replacement_drops_previous, site_logo_stale_submitted_id_filtered
|
||||
*/
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
/**
|
||||
* 템플릿 루트(template.json 기준)를 위로 훑어 찾는다.
|
||||
*
|
||||
* @returns 템플릿 루트 절대경로
|
||||
*/
|
||||
function templateRoot(): string {
|
||||
let current = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
for (let depth = 0; depth < 10; depth++) {
|
||||
if (fs.existsSync(path.join(current, 'template.json'))) {
|
||||
return current;
|
||||
}
|
||||
current = path.dirname(current);
|
||||
}
|
||||
|
||||
throw new Error('template.json 을 가진 템플릿 루트를 찾지 못했습니다.');
|
||||
}
|
||||
|
||||
/**
|
||||
* 레이아웃 트리에서 조건을 만족하는 첫 노드를 찾는다.
|
||||
*
|
||||
* @param node 탐색 시작 노드
|
||||
* @param predicate 노드 판정 함수
|
||||
* @returns 찾은 노드 또는 null
|
||||
*/
|
||||
function findNode(node: any, predicate: (n: any) => boolean): any {
|
||||
if (!node || typeof node !== 'object') return null;
|
||||
if (predicate(node)) return node;
|
||||
|
||||
for (const child of node.children ?? []) {
|
||||
const found = findNode(child, predicate);
|
||||
if (found) return found;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
const generalTab = JSON.parse(
|
||||
fs.readFileSync(
|
||||
path.join(templateRoot(), 'layouts/partials/admin_settings/_tab_general.json'),
|
||||
'utf-8',
|
||||
),
|
||||
);
|
||||
|
||||
const uploader = findNode(generalTab, (n: any) => n.id === 'site_logo_uploader');
|
||||
|
||||
const removeExpression: string = uploader.actions
|
||||
.filter((a: any) => a.event === 'onRemove')
|
||||
.map((a: any) => a.params?.['form.general.site_logo'])
|
||||
.find((v: unknown) => typeof v === 'string');
|
||||
|
||||
/**
|
||||
* `{{...}}` 바인딩 식을 주어진 컨텍스트로 평가한다.
|
||||
*
|
||||
* @param expression 레이아웃 바인딩 식
|
||||
* @param context 평가 컨텍스트 (_local, $args)
|
||||
* @returns 평가 결과
|
||||
*/
|
||||
function evaluateBinding(expression: string, context: { _local: any; $args: unknown[] }): unknown {
|
||||
const body = expression.trim().replace(/^\{\{/, '').replace(/\}\}$/, '');
|
||||
|
||||
return new Function('_local', '$args', `return (${body});`)(context._local, context.$args);
|
||||
}
|
||||
|
||||
const SAVED_LOGO = { id: 101, hash: 'abc123', original_filename: 'logo1.png' };
|
||||
const OTHER_LOGO = { id: 202, hash: 'def456', original_filename: 'logo2.png' };
|
||||
|
||||
describe('사이트 로고 제거 — 레이아웃 표현식 평가', () => {
|
||||
it('onRemove 식이 레이아웃에 선언되어 있다', () => {
|
||||
expect(typeof removeExpression).toBe('string');
|
||||
});
|
||||
|
||||
it('hash 로 통지된 항목이 form 에서 제거된다', () => {
|
||||
const result = evaluateBinding(removeExpression, {
|
||||
_local: { form: { general: { site_logo: [SAVED_LOGO, OTHER_LOGO] } } },
|
||||
$args: [SAVED_LOGO.hash],
|
||||
}) as any[];
|
||||
|
||||
expect(result.map((item) => item.id)).toEqual([OTHER_LOGO.id]);
|
||||
});
|
||||
|
||||
it('hash 가 없는 항목은 id 로도 제거된다', () => {
|
||||
const idOnly = { id: 303, original_filename: 'no-hash.png' };
|
||||
|
||||
const result = evaluateBinding(removeExpression, {
|
||||
_local: { form: { general: { site_logo: [idOnly, OTHER_LOGO] } } },
|
||||
$args: [idOnly.id],
|
||||
}) as any[];
|
||||
|
||||
expect(result.map((item) => item.id)).toEqual([OTHER_LOGO.id]);
|
||||
});
|
||||
|
||||
it('대상이 아닌 식별자면 아무것도 제거하지 않는다', () => {
|
||||
const result = evaluateBinding(removeExpression, {
|
||||
_local: { form: { general: { site_logo: [SAVED_LOGO, OTHER_LOGO] } } },
|
||||
$args: ['nonexistent-hash'],
|
||||
}) as any[];
|
||||
|
||||
expect(result).toHaveLength(2);
|
||||
});
|
||||
});
|
||||
+3
-1
@@ -88,7 +88,9 @@ const settingsLogoLayout = {
|
||||
params: {
|
||||
target: 'local',
|
||||
hasChanges: true,
|
||||
'form.general.site_logo': "{{(_local.form?.general?.site_logo ?? []).filter(item => item.id !== $args[0])}}",
|
||||
// 프로덕션 레이아웃과 동일 — FileUploader 는 hash 를 우선 통지한다.
|
||||
// 식 자체의 동작은 admin-settings-logo-remove-expression.test.ts 가 평가해 고정한다.
|
||||
'form.general.site_logo': "{{(_local.form?.general?.site_logo ?? []).filter(item => (item.hash || item.id) !== $args[0])}}",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
+149
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* 환경설정 업로드 탭 — 고아 첨부 정리 필드 계약 테스트 (공개 #115)
|
||||
*
|
||||
* @description
|
||||
* 고아 첨부 정리는 사용자 파일을 파기하므로 기본 꺼짐이다. 화면 바인딩 키가 코어
|
||||
* 기본값·서버 검증과 일치하는지 고정한다. 한 곳만 어긋나면 저장은 성공하는데 값이
|
||||
* 조용히 버려지고, 운영자는 켰다고 믿는 상태로 남는다.
|
||||
*
|
||||
* @effects core_settings_orphan_toggle_default_off, core_settings_orphan_keys_declared
|
||||
*/
|
||||
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { describe, expect, it } from 'vitest';
|
||||
|
||||
import uploadTab from '../../layouts/partials/admin_settings/_tab_upload.json';
|
||||
|
||||
/**
|
||||
* 저장소 루트(composer.json + artisan 기준)를 위로 훑어 찾는다.
|
||||
*
|
||||
* @returns 저장소 루트 절대경로
|
||||
*/
|
||||
function repoRoot(): string {
|
||||
let current = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
for (let depth = 0; depth < 10; depth++) {
|
||||
if (fs.existsSync(path.join(current, 'artisan'))) {
|
||||
return current;
|
||||
}
|
||||
current = path.dirname(current);
|
||||
}
|
||||
|
||||
throw new Error('artisan 을 가진 저장소 루트를 찾지 못했습니다.');
|
||||
}
|
||||
|
||||
/**
|
||||
* 레이아웃 트리에서 조건을 만족하는 첫 노드를 찾는다.
|
||||
*
|
||||
* @param node 탐색 시작 노드
|
||||
* @param predicate 노드 판정 함수
|
||||
* @returns 찾은 노드 또는 null
|
||||
*/
|
||||
function findNode(node: any, predicate: (n: any) => boolean): any {
|
||||
if (!node || typeof node !== 'object') return null;
|
||||
if (predicate(node)) return node;
|
||||
|
||||
for (const child of node.children ?? []) {
|
||||
const found = findNode(child, predicate);
|
||||
if (found) return found;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 템플릿 매니페스트가 선언한 컴포넌트 종류를 읽는다.
|
||||
*
|
||||
* 레이아웃 노드의 `type` 은 렌더러가 DOM 안전 필터링을 고르는 기준이라
|
||||
* 매니페스트 선언과 어긋나면 `editorAttrs` 가 제거된다(DynamicRenderer).
|
||||
*
|
||||
* @param name 컴포넌트 이름
|
||||
* @returns 매니페스트가 선언한 type
|
||||
*/
|
||||
function manifestType(name: string): string {
|
||||
const manifest = JSON.parse(
|
||||
fs.readFileSync(
|
||||
path.join(repoRoot(), 'templates/_bundled/sirsoft-admin_basic/components.json'),
|
||||
'utf-8',
|
||||
),
|
||||
);
|
||||
|
||||
for (const [kind, entries] of Object.entries<any>(manifest.components ?? {})) {
|
||||
if ((entries as any[]).some((entry) => entry.name === name)) {
|
||||
return kind;
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error(`매니페스트에 ${name} 선언이 없습니다.`);
|
||||
}
|
||||
|
||||
const card = findNode(uploadTab, (n) => n.id === 'card_orphan_cleanup');
|
||||
|
||||
describe('고아 첨부 정리 설정 — 계약', () => {
|
||||
it('업로드 탭에 고아 첨부 정리 카드가 있다', () => {
|
||||
expect(card).not.toBeNull();
|
||||
});
|
||||
|
||||
it('토글과 보존기간이 upload 카테고리 키를 바인딩한다', () => {
|
||||
const toggle = findNode(card, (n) => n.name === 'Toggle');
|
||||
const input = findNode(card, (n) => n.name === 'Input');
|
||||
|
||||
expect(toggle.props.name).toBe('upload.orphan_cleanup_enabled');
|
||||
expect(input.props.name).toBe('upload.orphan_retention_days');
|
||||
expect(input.props.min).toContain('upload_orphan_retention_days_min');
|
||||
expect(input.props.max).toContain('upload_orphan_retention_days_max');
|
||||
});
|
||||
|
||||
it('토글 노드의 type 이 매니페스트 선언과 같다', () => {
|
||||
const toggle = findNode(card, (n) => n.name === 'Toggle');
|
||||
|
||||
// 어긋나면 렌더러가 editorAttrs 를 떼어내 이 노드만 레이아웃 편집기에서 표식을 잃는다.
|
||||
expect(toggle.type).toBe(manifestType('Toggle'));
|
||||
});
|
||||
|
||||
it('읽기 전용 권한에서는 두 입력이 비활성화된다', () => {
|
||||
const toggle = findNode(card, (n) => n.name === 'Toggle');
|
||||
const input = findNode(card, (n) => n.name === 'Input');
|
||||
|
||||
expect(toggle.props.disabled).toBe('{{_computed.isReadOnly}}');
|
||||
expect(input.props.disabled).toBe('{{_computed.isReadOnly}}');
|
||||
});
|
||||
|
||||
it('기본값이 꺼짐이고 보존기간 기본이 30일이다 (코어 defaults.json)', () => {
|
||||
const defaults = JSON.parse(
|
||||
fs.readFileSync(path.join(repoRoot(), 'config/settings/defaults.json'), 'utf-8'),
|
||||
);
|
||||
|
||||
expect(defaults.defaults.upload.orphan_cleanup_enabled).toBe(false);
|
||||
expect(defaults.defaults.upload.orphan_retention_days).toBe(30);
|
||||
expect(defaults.frontend_schema.upload.fields.orphan_cleanup_enabled.expose).toBe(false);
|
||||
});
|
||||
|
||||
it('서버 검증이 같은 키를 받고 화면과 같은 한계값 출처를 쓴다', () => {
|
||||
const request = fs.readFileSync(
|
||||
path.join(repoRoot(), 'app/Http/Requests/Settings/SaveSettingsRequest.php'),
|
||||
'utf-8',
|
||||
);
|
||||
const coreConfig = fs.readFileSync(path.join(repoRoot(), 'config/core.php'), 'utf-8');
|
||||
|
||||
expect(request).toContain("'upload.orphan_cleanup_enabled' => ['nullable', 'boolean']");
|
||||
// 화면 입력과 저장 규칙이 같은 config 키를 읽어야 "화면이 허용한 값인데 422" 가 생기지 않는다.
|
||||
expect(request).toContain('core.settings_limits.upload_orphan_retention_days_min');
|
||||
expect(request).toContain('core.settings_limits.upload_orphan_retention_days_max');
|
||||
expect(coreConfig).toContain("'upload_orphan_retention_days_min' => 1");
|
||||
expect(coreConfig).toContain("'upload_orphan_retention_days_max' => 3650");
|
||||
});
|
||||
|
||||
it('스케줄이 등록되고 커맨드가 같은 설정을 false 폴백으로 재확인한다', () => {
|
||||
const console = fs.readFileSync(path.join(repoRoot(), 'routes/console.php'), 'utf-8');
|
||||
const command = fs.readFileSync(
|
||||
path.join(repoRoot(), 'app/Console/Commands/PruneOrphanAttachmentsCommand.php'),
|
||||
'utf-8',
|
||||
);
|
||||
|
||||
expect(console).toContain("attachments:prune-orphans --scheduled");
|
||||
expect(command).toContain("g7_core_settings('upload.orphan_cleanup_enabled', false)");
|
||||
});
|
||||
});
|
||||
@@ -1388,7 +1388,13 @@
|
||||
"image_max_width": "Max Width",
|
||||
"image_max_height": "Max Height",
|
||||
"image_quality": "Image Quality",
|
||||
"image_quality_hint": "Enter a value between 1-100. Higher values mean better quality."
|
||||
"image_quality_hint": "Enter a value between 1-100. Higher values mean better quality.",
|
||||
"orphan_cleanup": "Orphan Attachment Cleanup",
|
||||
"orphan_cleanup_desc": "Clean up attachments left without an owner because a form was abandoned before saving.",
|
||||
"orphan_cleanup_enabled": "Auto cleanup orphan attachments",
|
||||
"orphan_cleanup_enabled_hint": "Off by default — the operator must turn it on. When on, files and records of orphan attachments past the retention period are deleted daily. Attachments currently in use, such as the site logo, are never deleted.",
|
||||
"orphan_retention_days": "Orphan attachment retention (days)",
|
||||
"orphan_retention_days_hint": "Only orphan attachments older than this period are eligible for cleanup. Allow generous headroom for forms left open. (1 ~ 3650 days)"
|
||||
},
|
||||
"seo": {
|
||||
"meta_settings": "Meta Tag Settings",
|
||||
|
||||
@@ -1392,7 +1392,13 @@
|
||||
"image_max_width": "최대 너비",
|
||||
"image_max_height": "최대 높이",
|
||||
"image_quality": "이미지 품질",
|
||||
"image_quality_hint": "1~100 사이의 값을 입력하세요. 높을수록 품질이 좋습니다."
|
||||
"image_quality_hint": "1~100 사이의 값을 입력하세요. 높을수록 품질이 좋습니다.",
|
||||
"orphan_cleanup": "고아 첨부 정리",
|
||||
"orphan_cleanup_desc": "폼을 저장하지 않고 나가서 소유자 없이 남은 첨부파일을 정리합니다.",
|
||||
"orphan_cleanup_enabled": "고아 첨부 자동 정리",
|
||||
"orphan_cleanup_enabled_hint": "기본 꺼짐 — 운영자가 직접 켜야 동작합니다. 켜면 보존기간이 지난 고아 첨부의 파일과 기록을 매일 삭제합니다. 사이트 로고처럼 현재 사용 중인 첨부는 삭제하지 않습니다.",
|
||||
"orphan_retention_days": "고아 첨부 보존기간 (일)",
|
||||
"orphan_retention_days_hint": "업로드 후 이 기간이 지난 고아 첨부만 정리 대상이 됩니다. 폼 작성 중 이탈을 감안해 넉넉히 잡으세요. (1 ~ 3650 일)"
|
||||
},
|
||||
"seo": {
|
||||
"meta_settings": "메타 태그 설정",
|
||||
|
||||
+1
-1
@@ -307,7 +307,7 @@
|
||||
"params": {
|
||||
"target": "local",
|
||||
"hasChanges": true,
|
||||
"form.general.site_logo": "{{(_local.form?.general?.site_logo ?? []).filter(item => item.id !== $args[0])}}"
|
||||
"form.general.site_logo": "{{(_local.form?.general?.site_logo ?? []).filter(item => (item.hash || item.id) !== $args[0])}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+98
@@ -347,6 +347,104 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "card_orphan_cleanup",
|
||||
"type": "basic",
|
||||
"name": "Div",
|
||||
"props": {
|
||||
"className": "admin-card"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "H3",
|
||||
"props": {
|
||||
"className": "card-title"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_cleanup"
|
||||
},
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "Div",
|
||||
"props": {
|
||||
"className": "card-description"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_cleanup_desc"
|
||||
},
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "Div",
|
||||
"children": [
|
||||
{
|
||||
"id": "field_orphan_cleanup_enabled",
|
||||
"type": "basic",
|
||||
"name": "Div",
|
||||
"children": [
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "Label",
|
||||
"props": {
|
||||
"className": "form-label"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_cleanup_enabled"
|
||||
},
|
||||
{
|
||||
"type": "composite",
|
||||
"name": "Toggle",
|
||||
"props": {
|
||||
"name": "upload.orphan_cleanup_enabled",
|
||||
"disabled": "{{_computed.isReadOnly}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "P",
|
||||
"props": {
|
||||
"className": "form-hint"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_cleanup_enabled_hint"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "field_orphan_retention_days",
|
||||
"type": "basic",
|
||||
"name": "Div",
|
||||
"children": [
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "Label",
|
||||
"props": {
|
||||
"className": "form-label"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_retention_days"
|
||||
},
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "Input",
|
||||
"props": {
|
||||
"type": "number",
|
||||
"name": "upload.orphan_retention_days",
|
||||
"min": "{{_local?.form?._meta?.limits?.upload_orphan_retention_days_min ?? 1}}",
|
||||
"max": "{{_local?.form?._meta?.limits?.upload_orphan_retention_days_max ?? 3650}}",
|
||||
"disabled": "{{_computed.isReadOnly}}",
|
||||
"className": "input"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "basic",
|
||||
"name": "P",
|
||||
"props": {
|
||||
"className": "form-hint"
|
||||
},
|
||||
"text": "$t:admin.settings.upload.orphan_retention_days_hint"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"props": {}
|
||||
|
||||
Reference in new issue
Block a user