Skip to content

Commit a641a83

Browse files
authored
feat: remove tutorial videos (#107)
* feat: remove tutorial videos * feat: remove media-src * feat: bring back media-src
1 parent 80ac5cc commit a641a83

File tree

5 files changed

+15
-32
lines changed

5 files changed

+15
-32
lines changed

packages/desktop/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
connect-src 'self' https://*.iota.org https://*.iota.works https://*.iota.cafe https://raw.githubusercontent.com/iotaledger/firefly/main/packages/shared/lib/chrysalis.json https://raw.githubusercontent.com/iotaledger/participation-events/master/results/staking/ https://d36tzso9lqxl3c.cloudfront.net/results/staking/ https://iotatreasury.org/how-voting-works.html https://migrator-api.iota-alphanet.iotaledger.net;
1111
object-src 'none';
1212
style-src 'self' 'unsafe-inline';
13-
media-src 'self' https://d17lo1ro77zjnd.cloudfront.net/firefly/videos/ledger_integration_v12.mp4"
13+
media-src 'self'"
1414
/>
1515

1616
<link rel="icon" type="image/png" href="/favicon.png" />

packages/shared/components/OnboardingLayout.svelte

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="typescript">
2-
import { Icon, ProgressFlow, Text } from 'shared/components'
3-
import { ledgerMigrationProgresses, LEDGER_MIGRATION_VIDEO } from 'shared/lib/migration'
2+
import { Icon, ProgressFlow } from 'shared/components'
3+
import { ledgerMigrationProgresses } from 'shared/lib/migration'
44
import { openPopup } from 'shared/lib/popup'
55
import { Locale } from '@core/i18n'
66
@@ -12,13 +12,6 @@
1212
export let showLedgerVideoButton = false
1313
1414
export let onBackClick = (): void => {}
15-
16-
function handleWatchVideoClick() {
17-
openPopup({
18-
type: 'video',
19-
props: { video: LEDGER_MIGRATION_VIDEO, title: locale('views.setupLedger.videoGuide') },
20-
})
21-
}
2215
</script>
2316

2417
<!-- https://github.com/sveltejs/svelte/issues/4546 -->
@@ -61,15 +54,6 @@
6154
<ProgressFlow progress={$ledgerMigrationProgresses} />
6255
</div>
6356
{/if}
64-
{#if showLedgerVideoButton}
65-
<button
66-
on:click={handleWatchVideoClick}
67-
class="absolute top-6 right-6 px-8 py-2.5 text-blue-500 bg-transparent flex flex-row items-center justify-center border border-solid border-gray-300 dark:border-gray-700 rounded-xl"
68-
>
69-
<Icon icon="play" classes="text-blue-500 mr-2" />
70-
<Text smaller overrideColor classes="text-blue-500">{locale('views.setupLedger.watchVideo')}</Text>
71-
</button>
72-
{/if}
7357
</div>
7458
</div>
7559

packages/shared/lib/migration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ export const ledgerMigrationProgresses = derived(currentLedgerMigrationProgress,
9999
}))
100100
})
101101

102-
export const LEDGER_MIGRATION_VIDEO = 'https://d17lo1ro77zjnd.cloudfront.net/firefly/videos/ledger_integration_v12.mp4'
103-
104102
/*
105103
* Migration state
106104
*/

packages/shared/locales/en.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@
6060
"progress1": "Connect your Ledger",
6161
"progress2": "Generate address",
6262
"progress3": "Switch Ledger app",
63-
"progress4": "Transfer funds",
64-
"watchVideo": "Watch video guide",
65-
"videoGuide": "Ledger migration video guide"
63+
"progress4": "Transfer funds"
6664
},
6765
"ledgerInstallationGuide": {
6866
"title": "Have you installed the necessary Ledger apps?",
@@ -188,7 +186,7 @@
188186
},
189187
"legacyLedgerIntro": {
190188
"title": "Start your Ledger migration using IOTA Legacy Migration Tool",
191-
"body1": "IOTA Legacy Migration Tool will help you to transfer your tokens to the new Sturdust network.",
189+
"body1": "IOTA Legacy Migration Tool will help you to transfer your tokens to the new Stardust network.",
192190
"body2": "After the migration, you will be able to send and receive your tokens using your Ledger with Firefly."
193191
},
194192
"generateNewLedgerAddress": {

packages/shared/routes/setup/ledger/views/LegacyIntro.svelte

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="typescript">
2-
import { Button, OnboardingLayout, Text, Video } from 'shared/components'
3-
import { initialiseMigrationListeners, LEDGER_MIGRATION_VIDEO } from 'shared/lib/migration'
2+
import { Button, OnboardingLayout, Text, Animation, Illustration } from 'shared/components'
3+
import { initialiseMigrationListeners } from 'shared/lib/migration'
44
import { showAppNotification } from 'shared/lib/notifications'
55
import { api, isBackgroundSyncing } from 'shared/lib/wallet'
66
import { createEventDispatcher, onMount } from 'svelte'
@@ -47,10 +47,13 @@
4747
<div slot="leftpane__action">
4848
<Button classes="w-full" onClick={handleNextClick}>{locale('actions.continue')}</Button>
4949
</div>
50-
<div
51-
slot="rightpane"
52-
class="w-full h-full px-32 flex flex-col flex-wrap justify-center items-center bg-gray-50 dark:bg-gray-900"
53-
>
54-
<Video video={LEDGER_MIGRATION_VIDEO} />
50+
<!-- TODO: modify this temp animation -->
51+
<div slot="rightpane" class="w-full h-full flex justify-center items-center bg-gray-50 dark:bg-gray-900">
52+
<Animation
53+
width="100%"
54+
animation="ledger-bg-desktop"
55+
classes="absolute z-0 transform left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2"
56+
/>
57+
<Illustration width="100%" illustration="ledger-install-new-app-desktop" classes="z-0" />
5558
</div>
5659
</OnboardingLayout>

0 commit comments

Comments
 (0)