diff --git a/composer.json b/composer.json index 920c8f8..caaab08 100644 --- a/composer.json +++ b/composer.json @@ -1,44 +1,42 @@ { - "name": "lexx27/lucent", - "type": "library", - "description": "Lucent cms", - "license": "MIT", - "require": { - "ext-xml": "*", - "ext-zip": "*", - "ext-sqlite3": "*", - "ext-imagick": "*", - "ext-pdo": "*", - "php": "^8.3", - "guzzlehttp/guzzle": "^7.2", - "intervention/image": "^2.7", - "phpoption/phpoption": "^1.9", - "spatie/image-optimizer": "^1.6", - "staudenmeir/laravel-cte": "^1.0", - "mustache/mustache": "^2.14" - + "name": "lexx27/lucent", + "type": "library", + "description": "Lucent cms", + "license": "MIT", + "require": { + "ext-xml": "*", + "ext-zip": "*", + "ext-sqlite3": "*", + "ext-imagick": "*", + "ext-pdo": "*", + "php": "^8.5", + "guzzlehttp/guzzle": "^7.2", + "intervention/image": "^2.7", + "phpoption/phpoption": "^1.9", + "spatie/image-optimizer": "^1.6", + "staudenmeir/laravel-cte": "^1.0", + "mustache/mustache": "^2.14" + }, + "require-dev": { + "phpstan/phpstan": "^1.8", + "laravel/framework": "^10.10" + }, + "autoload": { + "psr-4": { + "Lucent\\": "src/" }, - "require-dev": { - "phpstan/phpstan": "^1.8", - "laravel/framework": "^10.10" - }, - "autoload": { - "psr-4": { - "Lucent\\": "src/" - }, - "files": [ - "src/Response.php", - "src/macros.php" - ] - }, - "extra": { - "laravel": { - "providers": [ - "Lucent\\LucentServiceProvider" - ] - } - }, - "minimum-stability": "stable", - "prefer-stable": true - + "files": [ + "src/Response.php", + "src/macros.php" + ] + }, + "extra": { + "laravel": { + "providers": [ + "Lucent\\LucentServiceProvider" + ] + } + }, + "minimum-stability": "stable", + "prefer-stable": true } diff --git a/front/js/svelte/content/tools/Tools.svelte b/front/js/svelte/content/tools/Tools.svelte index b672267..dc69f0b 100644 --- a/front/js/svelte/content/tools/Tools.svelte +++ b/front/js/svelte/content/tools/Tools.svelte @@ -4,7 +4,7 @@ import Icon from "../../common/Icon.svelte"; import SortFields from "./SortFields.svelte"; import AppliedFilter from "./AppliedFilter.svelte"; - import {createEventDispatcher, getContext} from "svelte"; + import { createEventDispatcher, getContext } from "svelte"; import Dropdown from "../../common/Dropdown.svelte"; import AppliedFilterNotLinked from "./AppliedFilterNotLinked.svelte"; @@ -41,7 +41,6 @@ } else { window.location = url; } - } function uploadComplete(e) { @@ -51,110 +50,94 @@
- -
- +
- -
- {#if schema.type === "collection"} - {#if !inModal && isWritable} - - New Record - - {/if} - {:else } -
- -
+ {#if !inModal && isWritable} + + New Record + {/if} + {#if !inModal}
- +
{#if filter["status_in"] === "trashed"} {#if isWritable} Empty trash {/if} {:else} - + Export to CSV Export to CSVView trashed records View trashed records - View unlinked recordsView unlinked records {/if}
- {/if}
-
- {#if Object.entries(filter).length > 0} {#each Object.entries(filter) as [k, v]} {/each} {/if}
- - diff --git a/front/js/svelte/dialog/FileDialog.svelte b/front/js/svelte/dialog/FileDialog.svelte new file mode 100644 index 0000000..e0951b9 --- /dev/null +++ b/front/js/svelte/dialog/FileDialog.svelte @@ -0,0 +1,97 @@ + + + + {#if data.schema} +
+ + + {#if selectedRecords.length > 0} + + {selectedRecords.length} records selected + + {/if} + + +
+ +
+ +
+ {/if} +
diff --git a/front/js/svelte/files/Uploader.svelte b/front/js/svelte/files/Uploader.svelte index 3cbdfc9..6394e25 100644 --- a/front/js/svelte/files/Uploader.svelte +++ b/front/js/svelte/files/Uploader.svelte @@ -1,10 +1,10 @@ -
-