From a04e338ce213a5ddb2e5834fd5c7a3e219bda958 Mon Sep 17 00:00:00 2001 From: lexx Date: Fri, 16 Aug 2024 14:34:39 +0300 Subject: [PATCH] updated dependencies --- front/js/main.js | 1 - front/js/svelte/content/Index.svelte | 46 +- front/js/svelte/content/Table.svelte | 3 +- front/js/svelte/content/tools/Tools.svelte | 2 +- front/js/svelte/dialog/Dialog.svelte | 23 +- front/js/svelte/files/Preview.svelte | 4 +- front/js/svelte/files/Uploader.svelte | 17 +- front/js/svelte/libs/Tinymce.svelte | 4 +- front/js/svelte/records/Preview.js | 5 +- front/js/svelte/records/elements/File.svelte | 38 +- .../elements/ReferenceInlineButtons.svelte | 3 +- .../records/previews/PreviewFile.svelte | 38 +- front/package-lock.json | 1824 ++++++++++------- front/package.json | 33 +- front/sass/_button.scss | 16 + front/sass/{_modal.scss => _dialog.scss} | 22 +- front/sass/_dropdown.scss | 7 +- front/sass/_pagination.scss | 25 +- front/sass/_preview.scss | 2 + front/sass/app.scss | 2 +- 20 files changed, 1224 insertions(+), 891 deletions(-) rename front/sass/{_modal.scss => _dialog.scss} (68%) diff --git a/front/js/main.js b/front/js/main.js index 5b0e3c3..6ff816f 100644 --- a/front/js/main.js +++ b/front/js/main.js @@ -2,7 +2,6 @@ import {axiosInstance} from "./bootstrap"; import "../sass/app.scss"; import Account from "./svelte/Account.svelte"; import Channel from "./svelte/Channel.svelte"; -import * as bootstrap from "bootstrap"; import Mustache from "mustache"; import 'htmx.org'; diff --git a/front/js/svelte/content/Index.svelte b/front/js/svelte/content/Index.svelte index 121e501..bed46d8 100644 --- a/front/js/svelte/content/Index.svelte +++ b/front/js/svelte/content/Index.svelte @@ -4,7 +4,6 @@ import ActionsOnSelected from "./ActionsOnSelected.svelte"; import Table from "./Table.svelte"; import {getContext} from "svelte"; - import Grid from "./Grid.svelte"; const axios = getContext("axios"); export let schema; @@ -71,40 +70,19 @@ /> {/if} - {#if schema.type === "collection"} - - {:else} -
- - - - - - +
- {/if} schema.visible?.includes(c.name) ?? []) -
@@ -81,7 +80,7 @@ {/if} {#if record._file?.path} - + 0 ? "medium" : "tiny"}/> {/if} {/if} {:else } - diff --git a/front/js/svelte/files/Uploader.svelte b/front/js/svelte/files/Uploader.svelte index f34dd57..3cbdfc9 100644 --- a/front/js/svelte/files/Uploader.svelte +++ b/front/js/svelte/files/Uploader.svelte @@ -43,16 +43,15 @@ } -
-
{#if references.length > 0} - + {#each references as reference (reference.id)} -
- - -
+ {/each}
{/if} - diff --git a/front/js/svelte/records/elements/ReferenceInlineButtons.svelte b/front/js/svelte/records/elements/ReferenceInlineButtons.svelte index 77d1669..0b500af 100644 --- a/front/js/svelte/records/elements/ReferenceInlineButtons.svelte +++ b/front/js/svelte/records/elements/ReferenceInlineButtons.svelte @@ -3,6 +3,7 @@ import Icon from "../../common/Icon.svelte"; import InlineEdit from "../InlineEdit.svelte"; import BrowseModal from "./BrowseModal.svelte"; + import Dialog from "../../dialog/Dialog.svelte"; const dispatch = createEventDispatcher(); // export let field; @@ -120,7 +121,7 @@ /> {/if} - +