Skip to content

Commit

Permalink
Features/fire cms (#45)
Browse files Browse the repository at this point in the history
* replaced blogger with firestore blog (cms)

* moved post details to dialog
  • Loading branch information
ortwic authored Feb 11, 2024
1 parent 7ef56e2 commit f0dfcb0
Show file tree
Hide file tree
Showing 11 changed files with 176 additions and 376 deletions.
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

0 comments on commit f0dfcb0

Please sign in to comment.