diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index a2ef9fcb..023831df 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -20,7 +20,7 @@ jobs: node-version: [18.x] permissions: - contents: read + contents: write pages: write id-token: write diff --git a/README.md b/README.md index 906e399c..b8180567 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,8 @@ Then, create a ̀ src/lib/admin/Dashboard.ts` file, and start writing the necess // src/lib/admin/Dashboard.ts // Some fancy icons for a neat UI: -import { Book, Home } from 'carbon-icons-svelte'; +import Book from 'carbon-icons-svelte/lib/Book.svelte'; +import Home from 'carbon-icons-svelte/lib/Home.svelte'; // SvelteAdmin classes: import { DashboardDefinition, UrlAction } from '@orbitale/svelte-admin'; @@ -79,7 +80,8 @@ Then, create the `src/lib/admin/booksCrud.ts` file, it will host your "Books" Cr // src/lib/admin/booksCrud.ts // Again, some icons to pop your admin! -import { Pen, TrashCan } from 'carbon-icons-svelte'; +import Pen from 'carbon-icons-svelte/lib/Pen.svelte'; +import TrashCan from 'carbon-icons-svelte/lib/TrashCan.svelte'; // SvelteAdmin classes: import { diff --git a/src/lib/admin/Crud/CrudDelete.svelte b/src/lib/admin/Crud/CrudDelete.svelte index 804e69ca..3a4f9f27 100644 --- a/src/lib/admin/Crud/CrudDelete.svelte +++ b/src/lib/admin/Crud/CrudDelete.svelte @@ -1,6 +1,7 @@ -{#each field.fields as field} +{#each field.fields as tabbed_field} - + {/each} diff --git a/src/lib/admin/Crud/FieldComponents/TextField.svelte b/src/lib/admin/Crud/FieldComponents/TextField.svelte index 6c889ffe..5ce4420a 100644 --- a/src/lib/admin/Crud/FieldComponents/TextField.svelte +++ b/src/lib/admin/Crud/FieldComponents/TextField.svelte @@ -1,8 +1,8 @@ diff --git a/src/lib/admin/Crud/FieldComponents/TextareaField.svelte b/src/lib/admin/Crud/FieldComponents/TextareaField.svelte index c953528d..70186638 100644 --- a/src/lib/admin/Crud/FieldComponents/TextareaField.svelte +++ b/src/lib/admin/Crud/FieldComponents/TextareaField.svelte @@ -1,8 +1,8 @@ diff --git a/src/lib/admin/Crud/FieldComponents/ToggleField.svelte b/src/lib/admin/Crud/FieldComponents/ToggleField.svelte index 3d0a037a..1c708659 100644 --- a/src/lib/admin/Crud/FieldComponents/ToggleField.svelte +++ b/src/lib/admin/Crud/FieldComponents/ToggleField.svelte @@ -1,9 +1,9 @@