Skip to content

Commit 1e304c6

Browse files
committed
chore(ic_message_frontend): add Internet Identity v2 to deep-link Sign In
1 parent 4ed16fe commit 1e304c6

File tree

7 files changed

+55
-34
lines changed

7 files changed

+55
-34
lines changed

src/ic_message_frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@
8585
"test": "vitest run"
8686
},
8787
"type": "module",
88-
"version": "2.13.3"
88+
"version": "2.13.4"
8989
}

src/ic_message_frontend/src/lib/components/core/SignInModal.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<ModalCard {parent} cardClass="backdrop-blur-sm !bg-primary-900/80">
1919
<div class="!mt-0 text-center text-xl font-bold text-white">Sign In with</div>
20-
<div class="!mt-8 flex flex-col items-center space-y-8">
20+
<div class="!mt-8 flex flex-col items-center space-y-6">
2121
<button
2222
type="button"
2323
class="variant-filled-primary btn btn-lg w-80"

src/ic_message_frontend/src/lib/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const src = globalThis.location?.href || ''
22

3-
export const APP_VERSION = '2.13.3'
3+
export const APP_VERSION = '2.13.4'
44
export const IS_LOCAL = src.includes('localhost') || src.includes('127.0.0.1')
55
export const ENV = IS_LOCAL ? 'local' : 'ic'
66
export const APP_ORIGIN = IS_LOCAL

src/ic_message_frontend/src/routes/(app)/+page.svelte

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
bg?: string
2525
}
2626
27+
const year = new Date().getFullYear()
2728
const toastStore = getToastStore()
2829
const modalStore = getModalStore()
2930
const icpPrice = $derived(tokensPrice.get(ICPToken.canisterId))
@@ -413,7 +414,7 @@
413414
<footer id="page-footer" class="px-4 pb-24 pt-12 text-surface-400">
414415
<div class="flex h-16 flex-col items-center">
415416
<p class="flex flex-row items-center gap-1">
416-
<span class="text-sm">© 2024-2025</span>
417+
<span class="text-sm">© 2024-{year}</span>
417418
<a class="" href="https://panda.fans" target="_blank"
418419
><img
419420
class="w-28"
@@ -423,23 +424,18 @@
423424
>
424425
</p>
425426
<p class="mt-2 text-center text-sm antialiased">
426-
A technical panda fully running on the <a
427-
class="underline underline-offset-4"
428-
href="https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai"
429-
target="_blank"
430-
>
431-
Internet Computer
432-
</a>
433-
blockchain, building chain-native infrastructures,
427+
Breathing life into sovereign AI.<br />We are building the open-source
428+
stack for agents to remember, transact, and evolve as first-class
429+
citizens in Web3.<br />
434430
<a
435431
class="underline underline-offset-4"
436432
href="https://anda.ai"
437433
target="_blank">Anda.AI</a
438434
>
439-
and
435+
<span class="mx-1">|</span>
440436
<a class="underline underline-offset-4" href="https://dmsg.net"
441437
>dMsg.net</a
442-
>.
438+
>
443439
</p>
444440
</div>
445441
</footer>

src/ic_message_frontend/src/routes/(app)/[username]/+page.svelte

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import ProfileDetail from '$src/lib/components/messages/ProfileDetail.svelte'
99
import { onMount } from 'svelte'
1010
11+
const year = new Date().getFullYear()
1112
let myState: MyMessageState | undefined = $state()
1213
let isDark = $derived(document.documentElement.classList.contains('dark'))
1314
let username = $derived((page?.params || {})['username'] || '')
@@ -56,7 +57,7 @@
5657
>
5758
<div class="flex h-16 flex-col items-center">
5859
<p class="flex flex-row items-center gap-1">
59-
<span class="text-sm">© 2024</span>
60+
<span class="text-sm">© 2024-{year}</span>
6061
<a class="" href="https://panda.fans" target="_blank"
6162
><img
6263
class="w-28"
@@ -67,14 +68,19 @@
6768
/></a
6869
>
6970
</p>
70-
<p class="mt-2 text-center text-sm capitalize antialiased">
71-
A technical panda fully running on the <a
71+
<p class="mt-2 text-center text-sm antialiased">
72+
Breathing life into sovereign AI.<br />We are building the open-source
73+
stack for agents to remember, transact, and evolve as first-class
74+
citizens in Web3.<br />
75+
<a
7276
class="underline underline-offset-4"
73-
href="https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai"
74-
target="_blank"
77+
href="https://anda.ai"
78+
target="_blank">Anda.AI</a
79+
>
80+
<span class="mx-1">|</span>
81+
<a class="underline underline-offset-4" href="https://dmsg.net"
82+
>dMsg.net</a
7583
>
76-
Internet Computer
77-
</a> blockchain, building chain-native infras and practical Web3 apps.
7884
</p>
7985
</div>
8086
</footer>
Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
<script lang="ts">
22
let { children } = $props()
3+
const year = new Date().getFullYear()
4+
let isDark = $derived(document.documentElement.classList.contains('dark'))
35
</script>
46

57
{@render children()}
68
<footer id="page-footer" class="px-4 pb-24 pt-12 text-surface-400">
79
<div class="flex h-16 flex-col items-center">
810
<p class="flex flex-row items-center gap-1">
9-
<span class="text-sm">© 2024-2025</span>
11+
<span class="text-sm">© 2024-{year}</span>
1012
<a class="" href="https://panda.fans" target="_blank"
1113
><img
1214
class="w-28"
13-
src="/_assets/icpanda-dao-white.svg"
15+
src={isDark
16+
? '/_assets/icpanda-dao-white.svg'
17+
: '/_assets/icpanda-dao.svg'}
1418
alt="ICPanda DAO"
1519
/></a
1620
>
1721
</p>
18-
<p class="mt-2 text-center text-sm capitalize antialiased">
19-
A technical panda fully running on the <a
22+
<p class="mt-2 text-center text-sm antialiased">
23+
Breathing life into sovereign AI.<br />We are building the open-source
24+
stack for agents to remember, transact, and evolve as first-class citizens
25+
in Web3.<br />
26+
<a
2027
class="underline underline-offset-4"
21-
href="https://dashboard.internetcomputer.org/sns/d7wvo-iiaaa-aaaaq-aacsq-cai"
22-
target="_blank"
28+
href="https://anda.ai"
29+
target="_blank">Anda.AI</a
30+
>
31+
<span class="mx-1">|</span>
32+
<a class="underline underline-offset-4" href="https://dmsg.net"
33+
>dMsg.net</a
2334
>
24-
Internet Computer
25-
</a> blockchain, building chain-native infras and practical Web3 apps.
2635
</p>
2736
</div>
2837
</footer>

src/ic_message_frontend/src/routes/(app)/_/oauth/deeplink/+page.svelte

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,36 @@
9191
</div>
9292
{/if}
9393
{#if !identity.isAuthenticated || Date.now() >= identity.expiration - 1000 * 3600 * 24}
94-
<div class="!mt-8 flex flex-col items-center space-y-4">
94+
<div class="!mt-8 flex flex-col items-center space-y-6">
9595
<button
9696
type="button"
97-
class="variant-filled-primary btn w-80"
97+
class="variant-filled-primary btn btn-lg w-80"
98+
disabled={submitting}
99+
onclick={() => {
100+
authStore.signIn2('https://id.ai')
101+
}}
102+
>
103+
Internet Identity v2
104+
</button>
105+
<button
106+
type="button"
107+
class="variant-filled-primary btn btn-lg w-80"
98108
disabled={submitting}
99109
onclick={() => {
100110
authStore.signIn2()
101111
}}
102112
>
103-
Sign in with Internet Identity
113+
Internet Identity
104114
</button>
105115
<button
106116
type="button"
107-
class="variant-filled-secondary btn w-80"
117+
class="variant-filled-surface btn btn-lg w-80"
108118
disabled={submitting}
109119
onclick={() => {
110120
authStore.signIn()
111121
}}
112122
>
113-
Sign in with identity.ic0.app (legacy)
123+
identity.ic0.app (legacy)
114124
</button>
115125
</div>
116126
{/if}

0 commit comments

Comments
 (0)