-
Notifications
You must be signed in to change notification settings - Fork 215
feat: appwrite dpa #693
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
Merged
Merged
feat: appwrite dpa #693
Changes from 4 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
dbe1107
feat: appwrite dpa
ArmanNik 2845b22
fix: add event
ArmanNik 6a8b1c6
feat: save download date in preferences
ArmanNik a0ec196
Merge branch 'main' of github.com:appwrite/console into feat-appwrite…
ArmanNik 2c12c2f
Added tracking to download dpa pdf
wess 7464a55
Linting
wess 01a9e16
Update src/routes/console/organization-[organization]/settings/downlo…
wess 28db2ba
Update src/routes/console/organization-[organization]/settings/downlo…
wess 7a6246d
Copy updates
wess 57c476c
Merge remote-tracking branch 'refs/remotes/origin/feat-appwrite-dpa' …
wess 8995415
fix: dpa button
TorstenDittmann 93790de
Merge branch 'feat-appwrite-dpa' of https://github.com/appwrite/conso…
TorstenDittmann bca4ee1
fix: merge conflict
TorstenDittmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
50 changes: 50 additions & 0 deletions
50
src/routes/console/organization-[organization]/settings/downloadDPA.svelte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| <script lang="ts"> | ||
| import { Box, CardGrid, Heading } from '$lib/components'; | ||
| import { Button } from '$lib/elements/forms'; | ||
| import { sdk } from '$lib/stores/sdk'; | ||
|
|
||
| async function downloadPdf() { | ||
| const today = new Date().toISOString(); | ||
| const prefs = await sdk.forConsole.account.getPrefs(); | ||
| const newPrefs = { ...prefs, DPA: today }; | ||
| sdk.forConsole.account.updatePrefs(newPrefs); | ||
|
|
||
| const baseUrl = window.location.origin; | ||
| const response = await fetch(`${baseUrl}/Appwrite_DPA.pdf`); | ||
| const blob = await response.blob(); | ||
| const url = URL.createObjectURL(blob); | ||
| const link = document.createElement('a'); | ||
| link.href = url; | ||
| link.download = 'Appwrite_DPA.pdf'; | ||
| link.click(); | ||
| } | ||
| </script> | ||
|
|
||
| <CardGrid> | ||
| <div> | ||
| <Heading tag="h6" size="7">Download DPA document</Heading> | ||
| </div> | ||
| <p class="text"> | ||
| After downloading, have the DPA signed by your organization's compliance authority (e.g., | ||
| CEO or Compliance Manager) and submit it to privacy@appwrite.io. | ||
| </p> | ||
| <svelte:fragment slot="aside"> | ||
| <Box> | ||
| <h6> | ||
| <b>DPA document (Data Processing Agreement)</b> | ||
wess marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </h6> | ||
| <p class="text u-margin-block-start-8"> | ||
| Legal document outlining the terms and conditions under which personal data is | ||
| processed. | ||
wess marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </p> | ||
| <Button | ||
| secondary | ||
| class="u-margin-block-start-16" | ||
| on:click={downloadPdf} | ||
| event="download_dpa"> | ||
| <span class="icon-download" aria-hidden="true" /> | ||
| <span class="text">Download</span> | ||
| </Button> | ||
| </Box> | ||
| </svelte:fragment> | ||
| </CardGrid> | ||
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.