diff --git a/package.json b/package.json index c220822d..08ffc05c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hyperfye-frontend", - "version": "v5.13.0", + "version": "v5.13.1", "private": true, "scripts": { "serve": "vue-cli-service serve --mode production", diff --git a/src/assets/x-twitter.svg b/src/assets/x-twitter.svg new file mode 100644 index 00000000..f5feed78 --- /dev/null +++ b/src/assets/x-twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/admin/createProjectSlider/CreateProjectSlide.vue b/src/components/admin/createProjectSlider/CreateProjectSlide.vue index acb68e26..6bec24b8 100644 --- a/src/components/admin/createProjectSlider/CreateProjectSlide.vue +++ b/src/components/admin/createProjectSlider/CreateProjectSlide.vue @@ -624,8 +624,8 @@ export default { ], socialAction: [ { text: "Select Social Action type", value: null }, - { text: "Twitter Follow", value: "TWITTER_FOLLOW" }, - { text: "Twitter Retweet", value: "TWITTER_RETWEET" }, + { text: "X (Previously Twitter) Follow", value: "TWITTER_FOLLOW" }, + { text: "X (Previously Twitter) Repost", value: "TWITTER_RETWEET" }, { text: "Telegram Join", value: "TELEGRAM_JOIN" }, { text: "Discord Join", value: "DISCORD_JOIN" }, { text: "Github PR", value: "GITHUB_PR" }, diff --git a/src/components/admin/createProjectSlider/components/SocialEventActionConfig.vue b/src/components/admin/createProjectSlider/components/SocialEventActionConfig.vue index f84fedbb..5ec94d9a 100644 --- a/src/components/admin/createProjectSlider/components/SocialEventActionConfig.vue +++ b/src/components/admin/createProjectSlider/components/SocialEventActionConfig.vue @@ -20,11 +20,10 @@ style="min-width: 120px" > - + + + +
@@ -129,7 +128,7 @@ v-model="selected.value" type="text" :placeholder=" - selected.type === null ? '' : 'Please Enter Your Retweet URL' + selected.type === null ? '' : 'Please Enter Your Repost URL' " id="value" class="form-control w-100" @@ -514,6 +513,10 @@ export default { // Code to Add an Action let isvalid = this.handleEventActionValidation(); if (isvalid) { + if(this.selected.type === 'TWITTER_RETWEET' && this.selected.value.includes('x.com')){ + const modifiedUrl = this.selected.value.replace('x.com', "twitter.com"); + this.selected.value = modifiedUrl + } this.selected["id"] = this.eventActionType + "_" + this.eventActionList.length; this.eventActionList.push(this.selected); diff --git a/src/components/participant/ActionInputs/TwitterFollow.vue b/src/components/participant/ActionInputs/TwitterFollow.vue index 56c207e5..6cfde7fd 100644 --- a/src/components/participant/ActionInputs/TwitterFollow.vue +++ b/src/components/participant/ActionInputs/TwitterFollow.vue @@ -13,7 +13,7 @@ > - +
{{ data.title }}
@@ -48,7 +48,7 @@ " class="btn btn-outline-twitter text-black" > - + Follow @{{ twitter.sourceScreenName }}
diff --git a/src/components/participant/ActionInputs/TwitterRetweet.vue b/src/components/participant/ActionInputs/TwitterRetweet.vue index f9c4d6cd..8f275525 100644 --- a/src/components/participant/ActionInputs/TwitterRetweet.vue +++ b/src/components/participant/ActionInputs/TwitterRetweet.vue @@ -13,7 +13,7 @@ > - +
{{ data.title }}
@@ -46,12 +46,12 @@ " class="btn btn-outline-twitter text-black mb-2" > - - Retweet + + Repost