π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refractor(paste):use-fontsource
Aswin Asok3315be2d4fc0
diff --git a/web/apps/paste/package.json b/web/apps/paste/package.jsonindex 0090217503..9a52b84a29 100644--- a/web/apps/paste/package.json+++ b/web/apps/paste/package.json@@ -6,6 +6,7 @@"build:post": "rm -f out/404.html"},"dependencies": {+ "@fontsource/gochi-hand": "^5.2.8","@hugeicons/core-free-icons": "^1.1.0","@hugeicons/react": "^1.1.4","ente-base": "*",diff --git a/web/apps/paste/public/fonts/gochi-hand-latin.woff2 b/web/apps/paste/public/fonts/gochi-hand-latin.woff2deleted file mode 100644index b929dadca9..0000000000Binary files a/web/apps/paste/public/fonts/gochi-hand-latin.woff2 and /dev/null differdiff --git a/web/apps/paste/src/app/styles/fonts.css b/web/apps/paste/src/app/styles/fonts.cssdeleted file mode 100644index 09d73f2083..0000000000--- a/web/apps/paste/src/app/styles/fonts.css+++ /dev/null@@ -1,11 +0,0 @@-@font-face {- font-family: "Gochi Hand";- font-style: normal;- font-display: swap;- font-weight: 400;- src: url("/fonts/gochi-hand-latin.woff2") format("woff2");- unicode-range:- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,- U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,- U+2212, U+2215, U+FEFF, U+FFFD;-}diff --git a/web/apps/paste/src/pages/_app.tsx b/web/apps/paste/src/pages/_app.tsxindex 2772d010d3..4a7550e789 100644--- a/web/apps/paste/src/pages/_app.tsx+++ b/web/apps/paste/src/pages/_app.tsx@@ -1,5 +1,5 @@import "@fontsource-variable/inter";-import "app/styles/fonts.css";+import "@fontsource/gochi-hand";import { CssBaseline } from "@mui/material";import { ThemeProvider } from "@mui/material/styles";import { CustomHead } from "ente-base/components/Head";@@ -13,15 +13,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {return (<ThemeProvider theme={shareTheme} defaultMode="dark">- <CustomHead title="Ente Paste">- <link- rel="preload"- href="/fonts/gochi-hand-latin.woff2"- as="font"- type="font/woff2"- crossOrigin="anonymous"- />- </CustomHead>+ <CustomHead title="Ente Paste" /><CssBaseline enableColorScheme /><Component {...pageProps} /></ThemeProvider>diff --git a/web/yarn.lock b/web/yarn.lockindex e0bfad88f8..9b4aac4284 100644--- a/web/yarn.lock+++ b/web/yarn.lock@@ -650,6 +650,11 @@resolved "https://registry.npmjs.org/@fontsource/cormorant-garamond/-/cormorant-garamond-5.2.11.tgz"integrity sha512-5JjpN023lhA5soijgVT0BdRGzmlijm402ppjccMd6h+vRE0mX2lJnE+41UPfnlidrkV9/rCo1mf58WZlHnB0CA==+"@fontsource/gochi-hand@^5.2.8":+ version "5.2.8"+ resolved "https://registry.yarnpkg.com/@fontsource/gochi-hand/-/gochi-hand-5.2.8.tgz#ca16a3da16c4036cf608e05f29191c405a584cde"+ integrity sha512-29XgI4temBWT9GE3hP4fgMtNv+s2pSLePmnxZEszS7RD/3BHL25om/4sxa6aA3fdSMImddi1PzLzbdqBP/DzLw==+"@fontsource/itim@^5.2.7":version "5.2.7"resolved "https://registry.yarnpkg.com/@fontsource/itim/-/itim-5.2.7.tgz#c966f5d12688057821599f8a2b9f6342bb661251"