Skip to content

Commit

Permalink
feat(frontend): Rename route for License Agreement
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii committed Oct 25, 2024
1 parent c766ba2 commit ba81945
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<script lang="ts">
import { Html } from '@dfinity/gix-components';
import { i18n } from '$lib/stores/i18n.store.js';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils.js';
let termsList: string[];
$: termsList = [
$i18n.license_agreement.text.paragraph_1,
$i18n.license_agreement.text.paragraph_2,
$i18n.license_agreement.text.paragraph_3,
$i18n.license_agreement.text.limited_license,
$i18n.license_agreement.text.restrictions,
$i18n.license_agreement.text.applicable_laws,
$i18n.license_agreement.text.reservation_rights,
$i18n.license_agreement.text.feedback,
$i18n.license_agreement.text.termination,
$i18n.license_agreement.text.warranty_liability,
$i18n.license_agreement.text.indemnity,
$i18n.license_agreement.text.governing_law,
$i18n.license_agreement.text.entire_agreement,
$i18n.license_agreement.text.assignment,
$i18n.license_agreement.text.no_waiver,
$i18n.license_agreement.text.english_version
];
</script>

<h1 class="text-5xl">{replaceOisyPlaceholders($i18n.license_agreement.text.title)}</h1>

<section class="mt-12">
{#each termsList as terms}
<p><Html text={replaceOisyPlaceholders(terms)} /></p>
{/each}
</section>

This file was deleted.

5 changes: 4 additions & 1 deletion src/frontend/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@
"indicator": "Jump to slide $index"
}
},
"terms_and_conditions": {
"license_agreement": {
"text": {
"title": "$oisy_name License Agreement (“License Agreement”)",
"paragraph_1": "Thank you for your interest in $oisy_name, a browser-based, self-custodial, and multi-chain wallet decentralized application hosted on the Internet Computer public blockchain network (“$oisy_short”). For more information about $oisy_short, its open-source code, and related licenses, please refer to the $oisy_short GitHub repository found here: $oisy_repo_url.",
Expand All @@ -752,6 +752,9 @@
"assignment": "<strong>11. Assignment.</strong> You may not assign this License Agreement without the prior written consent of DFINITY, whether expressly or by operation of law, including in connection with a merger or change of control, and any such attempted assignment shall be void and of no effect. DFINITY may assign this License Agreement without restriction and without any notice to you. Subject to the foregoing, this License Agreement shall be binding on the parties and their respective successors and permitted assigns.",
"no_waiver": "<strong>12. No Waiver.</strong> The failure to exercise, or delay in exercising, a right, power, or remedy provided in this License Agreement or by law shall not constitute a waiver of that right, power, or remedy. DFINITY’s waiver of any obligation or breach of this License Agreement shall not operate as a waiver of any other obligation or subsequent breach of the License Agreement.",
"english_version": "<strong>13. English Version.</strong> The English language version of this License Agreement shall be the official and controlling version of the agreement if any conflict should arise. All communications and notices made pursuant to this License Agreement must be in the English language."
},
"alt": {
"license_agreement": "The $oisy_name License Agreement"
}
}
}
5 changes: 3 additions & 2 deletions src/frontend/src/lib/types/i18n.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ interface I18nCarousel {
text: { next_slide: string; prev_slide: string; indicator: string };
}

interface I18nTerms_and_conditions {
interface I18nLicense_agreement {
text: {
title: string;
paragraph_1: string;
Expand All @@ -657,6 +657,7 @@ interface I18nTerms_and_conditions {
no_waiver: string;
english_version: string;
};
alt: { license_agreement: string };
}

interface I18n {
Expand Down Expand Up @@ -684,5 +685,5 @@ interface I18n {
about: I18nAbout;
signer: I18nSigner;
carousel: I18nCarousel;
terms_and_conditions: I18nTerms_and_conditions;
license_agreement: I18nLicense_agreement;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<script lang="ts">
import LicenseAgreement from '$lib/components/license-agreement/LicenseAgreement.svelte';
</script>

<LicenseAgreement />

This file was deleted.

0 comments on commit ba81945

Please sign in to comment.