From 5d10724519973962a95966aed3397584b6a5e336 Mon Sep 17 00:00:00 2001 From: Dominik Zborowski Date: Wed, 13 Nov 2024 11:25:14 +0100 Subject: [PATCH] feat: add Elfsight referral link + instructions (#543) --- domains/grid/components/AddWidgetBasic.vue | 14 ++++++++------ domains/grid/components/AddWidgetElfsight.vue | 14 ++++++++------ domains/grid/components/AddWidgetImages.vue | 12 +++++++----- domains/grid/components/AddWidgetText.vue | 12 +++++++----- translations/en_US.json | 8 ++++---- 5 files changed, 34 insertions(+), 26 deletions(-) diff --git a/domains/grid/components/AddWidgetBasic.vue b/domains/grid/components/AddWidgetBasic.vue index 95ae7d49..a7a4085e 100644 --- a/domains/grid/components/AddWidgetBasic.vue +++ b/domains/grid/components/AddWidgetBasic.vue @@ -129,11 +129,13 @@ const hasInstructions = computed(() => widgetInstructions.value !== '-')
- {{ - formatMessage( - `${isEdit ? 'edit' : 'add'}_widget_${widgetType.toLowerCase()}_description` - ) - }} +
@@ -162,7 +164,7 @@ const hasInstructions = computed(() => widgetInstructions.value !== '-') v-if="isInstructionsVisible" class="mt-4 animate-fade-in whitespace-pre-line font-600 break-word" > - {{ widgetInstructions }} +
diff --git a/domains/grid/components/AddWidgetElfsight.vue b/domains/grid/components/AddWidgetElfsight.vue index 71f1a0c6..a1e2e37a 100644 --- a/domains/grid/components/AddWidgetElfsight.vue +++ b/domains/grid/components/AddWidgetElfsight.vue @@ -100,11 +100,13 @@ const hasInstructions = computed(() => widgetInstructions.value !== '-')
- {{ - formatMessage( - `${isEdit ? 'edit' : 'add'}_widget_${widgetType.toLowerCase()}_description` - ) - }} +
@@ -133,7 +135,7 @@ const hasInstructions = computed(() => widgetInstructions.value !== '-') v-if="isInstructionsVisible" class="mt-4 animate-fade-in whitespace-pre-line font-600 break-word" > - {{ widgetInstructions }} +
diff --git a/domains/grid/components/AddWidgetImages.vue b/domains/grid/components/AddWidgetImages.vue index 06ee5521..bec21bb8 100644 --- a/domains/grid/components/AddWidgetImages.vue +++ b/domains/grid/components/AddWidgetImages.vue @@ -91,11 +91,13 @@ const handleBackToSelection = () => {
- {{ - formatMessage( - `${isEdit ? 'edit' : 'add'}_widget_${type.toLowerCase()}_description` - ) - }} +
diff --git a/domains/grid/components/AddWidgetText.vue b/domains/grid/components/AddWidgetText.vue index 0c55581f..d186e073 100644 --- a/domains/grid/components/AddWidgetText.vue +++ b/domains/grid/components/AddWidgetText.vue @@ -89,11 +89,13 @@ const handleBackToSelection = () => {
- {{ - formatMessage( - `${isEdit ? 'edit' : 'add'}_widget_${type.toLowerCase()}_description` - ) - }} +
diff --git a/translations/en_US.json b/translations/en_US.json index 65e5e80b..0c214a7a 100644 --- a/translations/en_US.json +++ b/translations/en_US.json @@ -180,7 +180,7 @@ "shuffle_title": "Profiles", "token_asset_type_video": "VIDEO", "beta_warning": "You are on LUKSO Testnet. Do not send real LYX to any profiles made on this network!
If you are looking for LUKSO Mainnet, please use the switch in the footer.", - "edit_widget_elfsight_description": "Use this widget to display Elfsight on your grid.", + "edit_widget_elfsight_description": "Here you can add custom widgets like an Instagram feed, or a calendar from Elfsight.com.", "add_widget_iframe_input_placeholder": "URL of the webpage", "add_widget_text_link_placeholder": "Link URL", "profile_card_follow_button": "Follow", @@ -277,8 +277,8 @@ "dapp_showcase_02_url": "https://universalswaps.io/", "token_collection_of": "Owns {count}", "add_widget_images_description": "Use this widget to display images from the web directly on your grid. Please note that uploading an image from your device is not available.", - "grid_mobile_limitations_message": "some editing features are not available on mobile right now", - "add_widget_elfsight_instructions": "-", + "grid_mobile_limitations_message": "Please note that some features may not be available on mobile at the moment.", + "add_widget_elfsight_instructions": "1. Select widget from Elfsight.com\n2. Customize and publish your widget\n3. Copy the entire embed code and paste it here\n\n⚠️ You need to create account on the Elfsight platform", "add_widget_text_title_placeholder": "Please add a title", "data_provider_rpc_description": "Loads data directly from the blockchain using an RPC provider. If a custom RPC provider (This feature will be added later) is used the read data can not be manipulated by us. \n\nWill result in slower loading times during the loading of assets and some app features might be limited.", "move_widget_description": "Please select to which Grid you want to move this widget.", @@ -298,7 +298,7 @@ "token_details_buy_lyx": "Buy LYX", "footer_terms_text": "Terms & Conditions", "followed_by_text": "Followed by {names} {othersCount, plural,\n =0 {you follow}\n =1 {and 1 other you follow}\n other {and # others you follow}\n }", - "add_widget_elfsight_description": "Use this widget to display Elfsight on your grid.", + "add_widget_elfsight_description": "Here you can add custom widgets like an Instagram feed, or a calendar from Elfsight.com.", "assets_empty_state_description": "To find out how to create your own assets such as Tokens and NFT’s on LUKSO head over to our documentation. ", "connect_or_install_button_coming_soon": "Coming soon...", "modal_delete_widget_confirm": "Delete",