diff --git a/CHANGELOG.MD b/CHANGELOG.MD
index b9f2b9c..63605db 100644
--- a/CHANGELOG.MD
+++ b/CHANGELOG.MD
@@ -1,5 +1,9 @@
# Change Log
+## [Version 1.1.6]
+
+- changed login and baseURL to use yup live because app.yup.live is not working with extension
+
## [Version 1.1.5]
- improved notification handling and display
diff --git a/manifest.json b/manifest.json
index a2f53ae..879f586 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"name": "yup live",
"description": "Light extension helper for yup social platform.",
- "version": "1.1.4",
+ "version": "1.1.6",
"manifest_version": 3,
"icons": {
"16": "src/assets/icons/yup_ext_16.png",
diff --git a/src/background/index.ts b/src/background/index.ts
index 2dcc7ff..6ef85a4 100644
--- a/src/background/index.ts
+++ b/src/background/index.ts
@@ -9,7 +9,7 @@ import { setBadge, extrenalNavigate } from '@/utils/chrome-misc'
import { closeTo } from '@/utils/time';
import { getActionUsage } from '@/utils/user';
import { executeVote, getVotePayload } from '@/utils/votes';
-import { YUP_APP_BASE } from '@/constants/config';
+import { YUP_LIVE_BASE } from '@/constants/config';
// Disable conflict with yup extension
const yupExtensionId = 'nhmeoaahigiljjdkoagafdccikgojjoi'
@@ -26,7 +26,7 @@ const buttons = {
const notificationActionListner = async (id: string) => {
try {
- const url = new URL(notificationUrl ?? `${YUP_APP_BASE}/notifications`)
+ const url = new URL(notificationUrl ?? `${YUP_LIVE_BASE}/notifications`)
extrenalNavigate(url.href)
chrome.notifications.clear(id)
} catch {
@@ -163,7 +163,7 @@ const alarmHandler = async () => {
const lastFollowNotif = await getSetting('lastfollowNotif') as number
const isNew = !lastFollowNotif || ( !closeTo(new Date(lastFollowNotif), new Date(followNotif.createdAt), 2e4))
if (followNotif && isNew) {
- notificationUrl = followNotif?.senders?.[0]._id ? `${YUP_APP_BASE}/account/${followNotif?.senders?.[0]._id}`: undefined
+ notificationUrl = followNotif?.senders?.[0]._id ? `${YUP_LIVE_BASE}/web3-profile/${followNotif?.senders?.[0]._id}`: undefined
await chrome.notifications.create({
type: 'basic',
iconUrl: chrome.runtime.getURL('src/assets/icons/yup_ext_128.png'),
@@ -178,7 +178,7 @@ const alarmHandler = async () => {
const lastCommentNotif = await getSetting('lastCommentNotif') as number
const isNew = !lastCommentNotif || ( !closeTo(new Date(lastCommentNotif), new Date(commentNotif.createdAt), 2e4))
if (commentNotif && isNew) {
- notificationUrl = commentNotif?.meta?.postid ? `${YUP_APP_BASE}/post/${commentNotif?.meta?.postid}`: undefined
+ notificationUrl = commentNotif?.meta?.postid ? `${YUP_LIVE_BASE}/post/${commentNotif?.meta?.postid}`: undefined
await chrome.notifications.create({
type: 'basic',
iconUrl: chrome.runtime.getURL('src/assets/icons/yup_ext_128.png'),
@@ -193,7 +193,7 @@ const alarmHandler = async () => {
const lastMentionNotif = await getSetting('lastMentionNotif') as number
const isNew = !lastMentionNotif || ( !closeTo(new Date(lastMentionNotif), new Date(mentionNotif.createdAt), 2e4))
if (mentionNotif && isNew) {
- notificationUrl = mentionNotif?.meta?.postid ? `${YUP_APP_BASE}/post/${mentionNotif?.meta?.postid}`: undefined
+ notificationUrl = mentionNotif?.meta?.postid ? `${YUP_LIVE_BASE}/post/${mentionNotif?.meta?.postid}`: undefined
await chrome.notifications.create({
type: 'basic',
iconUrl: chrome.runtime.getURL('src/assets/icons/yup_ext_128.png'),
diff --git a/src/components/Notification.svelte b/src/components/Notification.svelte
index 4c8b3d4..a8a237f 100644
--- a/src/components/Notification.svelte
+++ b/src/components/Notification.svelte
@@ -6,7 +6,7 @@
import { chromeUrl } from "@/utils/chrome-misc";
import { extrenalNavigate } from "@/utils/chrome-misc";
import LikeIcon from '@/components/LikeIcon.svelte';
- import { YUP_APP_BASE } from "@/constants/config";
+ import { YUP_LIVE_BASE } from "@/constants/config";
export let notif: Notification;
@@ -38,7 +38,7 @@
extrenalNavigate(`${YUP_APP_BASE}/post/${notif.meta.postid}`)}
+ on:click={() => extrenalNavigate(`${YUP_LIVE_BASE}/post/${notif.meta.postid}`)}
aria-hidden
class="text-blue-200 interactive-svg">view the post
@@ -110,7 +110,7 @@
extrenalNavigate(`${YUP_APP_BASE}/account/${sender?._id}`)}
+ on:click={() => extrenalNavigate(`${YUP_LIVE_BASE}/web3-profile/${sender?._id}`)}
>
{sender?.handle || `${sender?._id?.slice(0, 6)}...`}
followed you.
@@ -166,7 +166,7 @@
extrenalNavigate(`${YUP_APP_BASE}/post/${notif?.meta?.commentId}`)}
+ on:click={() => extrenalNavigate(`${YUP_LIVE_BASE}/post/${notif?.meta?.commentId}`)}
>
{sender?.handle || `${sender?._id?.slice(0, 6)}...`}
commented on yout post, click to view.
diff --git a/src/constants/config.ts b/src/constants/config.ts
index a63894f..f155067 100644
--- a/src/constants/config.ts
+++ b/src/constants/config.ts
@@ -1,2 +1,3 @@
export const API_BASE = 'https://api.yup.io'
-export const YUP_APP_BASE = 'https://app.yup.io'
\ No newline at end of file
+export const YUP_APP_BASE = 'https://app.yup.io'
+export const YUP_LIVE_BASE = 'https://yup-live.pages.dev'
\ No newline at end of file
diff --git a/src/pages/Entry.svelte b/src/pages/Entry.svelte
index 5e89ef8..6cecd1c 100644
--- a/src/pages/Entry.svelte
+++ b/src/pages/Entry.svelte
@@ -6,7 +6,7 @@
import { navigate } from '@/utils/router'
import { mainStore } from '@/utils/store'
// https://yup-live.pages.dev
- import { YUP_APP_BASE } from '@/constants/config'
+ import { YUP_LIVE_BASE } from '@/constants/config'
import Alert from '@/components/Alert.svelte'
import { alertStore } from '@/utils/store'
import PageLoader from "@/components/PageLoader.svelte";
@@ -45,7 +45,7 @@
-
+
YUP
diff --git a/src/pages/Login.svelte b/src/pages/Login.svelte
index e41c9e1..67bb022 100644
--- a/src/pages/Login.svelte
+++ b/src/pages/Login.svelte
@@ -1,20 +1,20 @@
- extrenalNavigate(`${YUP_APP_BASE}/login`)}>
+ extrenalNavigate(`${YUP_LIVE_BASE}/login`)}>
-
+
diff --git a/src/pages/Main.svelte b/src/pages/Main.svelte
index 55f37f8..b1619b2 100644
--- a/src/pages/Main.svelte
+++ b/src/pages/Main.svelte
@@ -2,7 +2,7 @@
import { extrenalNavigate } from "@/utils/chrome-misc";
import ImgLoader from "@/components/ImgLoader.svelte";
import { onMount } from "svelte";
- import { YUP_APP_BASE } from "@/constants/config";
+ import { YUP_LIVE_BASE } from "@/constants/config";
import RateWebsite from "@/components/RateWebsite.svelte";
import { mainStore } from "@/utils/store";
import { formatNumber, truncteEVMAddr } from "@/utils/misc";
@@ -40,7 +40,7 @@
>{$mainStore?.user?.profile?.yupScore?.toFixed(0)}
100
MAX
- extrenalNavigate(`${YUP_APP_BASE}/account/${$mainStore.user.auth.userId}`)} aria-hidden class="flex flex-col justify-center mb-1 w-16">
+
extrenalNavigate(`${YUP_LIVE_BASE}/profile/${$mainStore.user.auth.userId}`)} aria-hidden class="flex flex-col justify-center mb-1 w-16">