Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Features/fire cms (#45) #46

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ service cloud.firestore {
allow write: if true;
allow read: if true;
}

// Custom default security rules for FireCMS. Modifying this rule will the usage of the FireCMS.
match /{document=**} {
allow read, write: if request.auth.token.fireCMSUser;
}
}
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"test:unit": "vitest"
},
"devDependencies": {
"@googleapis/blogger": "^1.1.1",
"@sveltejs/vite-plugin-svelte": "^2.4.5",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/svelte": "^3.2.2",
Expand Down
175 changes: 0 additions & 175 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 13 additions & 11 deletions src/components/dialogs/ConfirmDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@
<slot name='title'></slot> {title}
</Titlebar>
<slot></slot>
<div class="row">
<button data-target={target}
on:click|stopPropagation={() => dispatch('closed', true)}>
{ $t('dialog.confirm') }
</button>
<button data-target={target}
on:click|stopPropagation={() => dispatch('closed', false)}>
{ $t('dialog.decline') }
</button>
</div>
<slot name='footer'>
<div class="row">
<button data-target={target}
on:click|stopPropagation={() => dispatch('closed', true)}>
{ $t('dialog.confirm') }
</button>
<button data-target={target}
on:click|stopPropagation={() => dispatch('closed', false)}>
{ $t('dialog.decline') }
</button>
</div>
</slot>
</div>
{#if size == 'auto'}
<div class='backdrop'></div>
Expand All @@ -46,13 +48,13 @@
width: auto;
height: auto;
z-index: 121;
background-color: var(--primback);
}

div.dialog {
min-width: 22.5em;
max-width: 100vw;
max-height: 100vh;
background-color: white;
}

div.full {
Expand Down
Loading
Loading