forked from XiaoMo/ChatGPT-Next-Web
fix: #1251 use google fonts mirror
This commit is contained in:
parent
ec655f5182
commit
4b9d753254
@ -35,10 +35,9 @@ export default function RootLayout({
|
|||||||
/>
|
/>
|
||||||
<meta name="version" content={buildConfig.commitId} />
|
<meta name="version" content={buildConfig.commitId} />
|
||||||
<link rel="manifest" href="/site.webmanifest"></link>
|
<link rel="manifest" href="/site.webmanifest"></link>
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com"></link>
|
<link rel="preconnect" href="https://fonts.proxy.ustclug.org"></link>
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com"></link>
|
|
||||||
<link
|
<link
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
|
href="https://fonts.proxy.ustclug.org/css2?family=Noto+Sans+SC:wght@300;400;700;900&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
></link>
|
></link>
|
||||||
<script src="/serviceWorkerRegister.js" defer></script>
|
<script src="/serviceWorkerRegister.js" defer></script>
|
||||||
|
@ -41,6 +41,8 @@ export const useAccessStore = create<AccessControlStore>()(
|
|||||||
set(() => ({ token }));
|
set(() => ({ token }));
|
||||||
},
|
},
|
||||||
isAuthorized() {
|
isAuthorized() {
|
||||||
|
get().fetch();
|
||||||
|
|
||||||
// has token or has code or disabled access control
|
// has token or has code or disabled access control
|
||||||
return (
|
return (
|
||||||
!!get().token || !!get().accessCode || !get().enabledAccessControl()
|
!!get().token || !!get().accessCode || !get().enabledAccessControl()
|
||||||
|
@ -88,6 +88,9 @@
|
|||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
height: var(--full-height);
|
height: var(--full-height);
|
||||||
|
|
||||||
|
font-family: "Noto Sans SC", "SF Pro SC", "SF Pro Text", "SF Pro Icons",
|
||||||
|
"PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@ -102,8 +105,6 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
touch-action: pan-x pan-y;
|
touch-action: pan-x pan-y;
|
||||||
font-family: "Noto Sans SC", "SF Pro SC", "SF Pro Text", "SF Pro Icons",
|
|
||||||
"PingFang SC", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
|
||||||
|
|
||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
background-color: var(--second);
|
background-color: var(--second);
|
||||||
|
@ -17,7 +17,7 @@ const nextConfig = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
afterFiles: ret,
|
beforeFiles: ret,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
webpack(config) {
|
webpack(config) {
|
||||||
|
Loading…
Reference in New Issue
Block a user