diff --git a/messages/en.json b/messages/en.json index 34283c4..88139f1 100644 --- a/messages/en.json +++ b/messages/en.json @@ -5,5 +5,9 @@ "Generate_QR": "Generate QR", "CREDENTIAL_DETAIL": "CREDENTIAL DETAIL", "VERIFIER": "VERIFIER", - "Developed_by_Forkbomb": "Developed by Forkbomb" + "Developed_by_Forkbomb": "Developed by Forkbomb", + "Badges": "Badges", + "No_activity_yet": "No activity yet", + "Get_alerts_on_new_activities_and_keep_your_account_uptodate_": "Get alerts on new activities and keep your account up-to-date.", + "NOTIFICATIONS_SETTINGS": "NOTIFICATIONS SETTINGS" } \ No newline at end of file diff --git a/src/lib/components/molecules/Header.svelte b/src/lib/components/molecules/Header.svelte deleted file mode 100644 index 45cc4cf..0000000 --- a/src/lib/components/molecules/Header.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - - - - {#if backButton} - - window.history.back()} - on:keydown={() => window.history.back()} - aria-hidden - > - - - - {/if} - - - - - - - - - - - - - - - Settings - - - Close - - - - - - - diff --git a/src/lib/components/molecules/Settings.svelte b/src/lib/components/molecules/Settings.svelte index 07b7eab..5dfc59c 100644 --- a/src/lib/components/molecules/Settings.svelte +++ b/src/lib/components/molecules/Settings.svelte @@ -1,17 +1,18 @@ +
-
+
Language { - await setLanguagePreference(e.detail.value); + await setLanguagePreference(e.detail.value); await goto(i18n.route($page.url.pathname), e.detail.value); }} > @@ -20,5 +21,6 @@
{/each}
-
+
+
diff --git a/src/lib/components/tabs/TabPage.svelte b/src/lib/components/tabs/TabPage.svelte index 2c10a4a..0489ca2 100644 --- a/src/lib/components/tabs/TabPage.svelte +++ b/src/lib/components/tabs/TabPage.svelte @@ -1,5 +1,4 @@ -
{title}
+ {title} diff --git a/src/lib/slangroom/verificationFlows.ts b/src/lib/slangroom/verificationFlows.ts index 7680fc2..824809e 100644 --- a/src/lib/slangroom/verificationFlows.ts +++ b/src/lib/slangroom/verificationFlows.ts @@ -69,7 +69,8 @@ export const getVerificationFlows = async (): Promise => { collection: 'verification_flows', expand: 'relying_party, organization', sort: '-updated', - type: 'all' + type: 'all', + requestKey: Math.random().toString(36).substring(7) } }; const res = await slangroom.execute(getPbList, { data }); diff --git a/src/lib/utils/index.ts b/src/lib/utils/index.ts new file mode 100644 index 0000000..e79aafe --- /dev/null +++ b/src/lib/utils/index.ts @@ -0,0 +1,3 @@ +import { goto } from "$lib/i18n"; + +export const back = () => goto('/'); diff --git a/src/routes/[[lang]]/(protected)/(tabs)/activity/+page.svelte b/src/routes/[[lang]]/(protected)/(tabs)/activity/+page.svelte index df4edff..6adac3e 100644 --- a/src/routes/[[lang]]/(protected)/(tabs)/activity/+page.svelte +++ b/src/routes/[[lang]]/(protected)/(tabs)/activity/+page.svelte @@ -1,35 +1,47 @@
{#if verifiedSids && verifiedSids.length > 0} {#each verifiedSids.reverse() as verifiedSid} -
-
- {verifiedSid.sid} - {verifiedSid.success ? 'verified' : 'failure'} -
-
- {dayjs().to(dayjs.unix(verifiedSid.at))} -
-
-
+ {/each} {:else} - + + + + {m.NOTIFICATIONS_SETTINGS()} + + {/if}
diff --git a/src/routes/[[lang]]/(protected)/(tabs)/profile/+page.svelte b/src/routes/[[lang]]/(protected)/(tabs)/profile/+page.svelte index 08c223b..11d206c 100644 --- a/src/routes/[[lang]]/(protected)/(tabs)/profile/+page.svelte +++ b/src/routes/[[lang]]/(protected)/(tabs)/profile/+page.svelte @@ -1,25 +1,26 @@ - -
- - {user?.name || user?.email} - {#if orgs.length > 0} - {'Badges'} -
- {#each orgs as org} - - {/each} -
- {/if} - Logout - + +
+
+ + {user?.name || user?.email} +
+ + {#each orgs as org} + + {/each} + +
+
+
diff --git a/src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte b/src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte index bd88b97..547e3d6 100644 --- a/src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte +++ b/src/routes/[[lang]]/(protected)/[id]/verify/+page.svelte @@ -3,7 +3,6 @@ import { Slangroom } from '@slangroom/core'; import { qrcode } from '@slangroom/qrcode'; import { helpers } from '@slangroom/helpers'; - import Header from '$lib/components/molecules/Header.svelte'; import { m } from '$lib/i18n'; import dayjs from 'dayjs'; import { Capacitor } from '@capacitor/core'; @@ -14,9 +13,9 @@ import cardToQrKeys from '$lib/mobile_zencode/verifier/card_to_qr.keys.json?raw'; import { backendUri } from '$lib/backendUri'; import { saveRuAndSid } from '$lib/preferences/sidRu'; - // import { jwsToId, jwsToIdSuccess } from './_lib/tools'; import { log } from '$lib/log'; import { onIncomingNotification } from './_lib/tools'; + import { back } from '$lib/utils'; export let data: any; @@ -91,7 +90,7 @@ } -
{m.VERIFICATION_QR()}
+{m.VERIFICATION_QR()}
Ask holders to scan this QR using their Wallet diff --git a/src/routes/[[lang]]/(protected)/[sid]/verified/+page.svelte b/src/routes/[[lang]]/(protected)/[sid]/verified/+page.svelte index 8e2fe93..000ae62 100644 --- a/src/routes/[[lang]]/(protected)/[sid]/verified/+page.svelte +++ b/src/routes/[[lang]]/(protected)/[sid]/verified/+page.svelte @@ -1,5 +1,5 @@ -
Verification
+Verification