diff --git a/package-lock.json b/package-lock.json index d71d8a3f..f7946250 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1250,9 +1250,9 @@ "integrity": "sha512-L28j2FcJfSZOnL1WBjDYp2vUHCeIFlyYI/53EwD/rKUBQ7MtUUfbQWiyKJGpcnv4/WgrhWsFKrcPstcAt/J0tQ==" }, "@types/react": { - "version": "16.14.25", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.25.tgz", - "integrity": "sha512-cXRVHd7vBT5v1is72mmvmsg9stZrbJO04DJqFeh3Yj2tVKO6vmxg5BI+ybI6Ls7ROXRG3aFbZj9x0WA3ZAoDQw==", + "version": "16.14.26", + "resolved": "https://registry.npmjs.org/@types/react/-/react-16.14.26.tgz", + "integrity": "sha512-c/5CYyciOO4XdFcNhZW1O2woVx86k4T+DO2RorHZL7EhitkNQgSD/SgpdZJAUJa/qjVgOmTM44gHkAdZSXeQuQ==", "requires": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -7875,8 +7875,8 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "san-webkit": { - "version": "git+https://github.com/santiment/san-webkit.git#dc162c60c1e6616d38dc885763ae26dcff38bdb7", - "from": "git+https://github.com/santiment/san-webkit.git#dc162c6", + "version": "git+https://github.com/santiment/san-webkit.git#4ab06fae5bb445d4470e3fa5453acc044945ae18", + "from": "git+https://github.com/santiment/san-webkit.git#4ab06fa", "requires": { "@types/gtag.js": "0.0.4", "@types/jest": "^26.0.23", @@ -8800,9 +8800,9 @@ } }, "svelte": { - "version": "3.46.3", - "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.46.3.tgz", - "integrity": "sha512-mTOXvv74CVQqJHqoIZDprVfRKVVmYNadXP0VKnOEA54223kLGCr1nMrifS4Zx29qMt/xRB38Eq1D7dDH/fM8fQ==", + "version": "3.48.0", + "resolved": "https://registry.npmjs.org/svelte/-/svelte-3.48.0.tgz", + "integrity": "sha512-fN2YRm/bGumvjUpu6yI3BpvZnpIm9I6A7HR4oUNYd7ggYyIwSA/BX7DJ+UXXffLp6XNcUijyLvttbPVCYa/3xQ==", "dev": true }, "svelte-dev-helper": { @@ -9399,9 +9399,9 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" }, "typescript": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", - "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==" + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==" }, "ua-parser-js": { "version": "0.7.31", diff --git a/package.json b/package.json index bb871e66..fe9507e6 100644 --- a/package.json +++ b/package.json @@ -28,15 +28,15 @@ "mobile-detect": "^1.4.5", "node-fetch": "^2.6.1", "polka": "next", - "san-webkit": "https://github.com/santiment/san-webkit#dc162c6", + "san-webkit": "https://github.com/santiment/san-webkit#4ab06fa", "sirv": "^1.0.0", "turndown": "^7.1.1", "medium-editor": "^5.23.3", "marked": "^4.0.12" }, "devDependencies": { - "@babel/plugin-proposal-optional-chaining": "^7.16.7", "@babel/core": "^7.17.9", + "@babel/plugin-proposal-optional-chaining": "^7.16.7", "babel-eslint": "^10.1.0", "copy-webpack-plugin": "5.1.2", "css-loader": "^5.1.4", @@ -58,7 +58,7 @@ "sass": "^1.49.7", "sass-loader": "^12.2.0", "style-loader": "^2.0.0", - "svelte": "^3.46.3", + "svelte": "^3.48.0", "svelte-loader": "^3.1.2", "svelte-preprocess": "^4.6.9", "svelte-preprocess-cssmodules": "https://github.com/DmitriVanGuard/svelte-preprocess-cssmodules#0fe6fa7", diff --git a/src/client.js b/src/client.js index 346a4a74..76204623 100644 --- a/src/client.js +++ b/src/client.js @@ -15,13 +15,22 @@ if (process.env.IS_PROD_MODE) { initGA('UA-100571693-11') } +const APP_LINK = 'https://insights.santiment.net' window.__onLinkClick = (e) => { const node = e.currentTarget + if (!node) return + const href = node.getAttribute('href') + if (!href) return + + e.preventDefault() if (href.startsWith('/profile/')) { - e.preventDefault() window.location.href = 'https://app.santiment.net' + href + } else if (href.startsWith(APP_LINK) || href.startsWith('/')) { + sapper.goto(href.replace(APP_LINK, '')) + } else { + window.location.href = href } } diff --git a/src/components/TagFilters.svelte b/src/components/TagFilters.svelte index a96b482d..650e3f56 100644 --- a/src/components/TagFilters.svelte +++ b/src/components/TagFilters.svelte @@ -5,7 +5,7 @@ const { page } = stores() const TAGS = [ - ['/', 'All'], + ['', 'All'], ['defi', 'DeFi'], ['btc', 'BTC'], ['eth,erc-20', 'ETH + ERC-20'], diff --git a/src/routes/read/_SuggestedInsights.svelte b/src/routes/read/_SuggestedInsights.svelte index 6d68b640..e276a194 100644 --- a/src/routes/read/_SuggestedInsights.svelte +++ b/src/routes/read/_SuggestedInsights.svelte @@ -42,7 +42,7 @@

Suggested insights

-
+
{#each insights as insight} {/each} @@ -71,10 +71,6 @@ height: calc(100% + 10px); width: 1143px; -ms-overflow-style: none; - scrollbar-width: none; - } - .scroll::-webkit-scrollbar { - display: none; } :global(body:not(.desktop) .scroll) {