This commit is contained in:
sijinhui 2024-05-09 11:23:47 +08:00
parent 40aadf291f
commit b449d87252
6 changed files with 29 additions and 16 deletions

View File

@ -14,7 +14,8 @@ export function getEmojiUrl(unified: string, style: EmojiStyle) {
// Old CDN broken, so I had to switch to this one
// Author: https://github.com/H0llyW00dzZ
// return `https://fastly.jsdelivr.net/npm/emoji-datasource-apple/img/${style}/64/${unified}.png`;
return `https://cdn.bootcdn.net/ajax/libs/emoji-datasource-apple/15.1.2/img/${style}/64/${unified}.png`;
// return `https://cdn.bootcdn.net/ajax/libs/emoji-datasource-apple/15.1.2/img/${style}/64/${unified}.png`;
return `https://cdn.staticfile.net/emoji-datasource-apple/15.0.1/img/${style}/64/${unified}.png`;
}
export function AvatarPicker(props: {

View File

@ -27,7 +27,7 @@ export function RewardPage() {
style={{ position: "absolute", top: 0, left: 0, right: 0, bottom: 0 }}
>
<Image
src="https://cos.xiaosi.cc/img/zanshang.jpeg"
src="https://oss.xiaosi.cc/web_img/zanshang.jpeg!webp"
alt="打赏"
layout="fill"
objectFit="cover" // Optional: you can use this if you want the image to cover the entire area without stretching

View File

@ -39,8 +39,19 @@ export default function RootLayout({
<html lang="en">
<head>
<meta name="config" content={JSON.stringify(getClientConfig())} />
<link rel="manifest" href="/site.webmanifest"></link>
<script src="/serviceWorkerRegister.js" defer></script>
<link
rel="icon"
type="image/x-icon"
href="https://oss.xiaosi.cc/chat/public/favicon.ico"
/>
<link
rel="manifest"
href="https://oss.xiaosi.cc/chat/public/site.webmanifest"
></link>
<script
src="https://oss.xiaosi.cc/chat/public/serviceWorkerRegister.js"
defer
></script>
</head>
<body>
<Providers>{children}</Providers>

View File

@ -159,8 +159,9 @@ export const usePromptStore = createPersistStore(
onRehydrateStorage(state) {
// const PROMPT_URL = "https://cos.xiaosi.cc/next/public/prompts.json";
const PROMPT_URL = "./prompts.json";
const GPT_PROMPT_URL = "./prompt_library.json";
const PROMPT_URL = "https://oss.xiaosi.cc/chat/public/prompts.json";
const GPT_PROMPT_URL =
"https://oss.xiaosi.cc/chat/public/prompt_library.json";
type PromptList = Array<[string, string]>;

View File

@ -381,17 +381,17 @@ pre {
// url('//lib.baomitu.com/fonts/noto-sans/noto-sans-regular.svg#NotoSans') format('svg'); /* Legacy iOS */
//}
/* https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.svg */
/* https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.svg */
@font-face {
font-family: 'Noto Sans';
font-style: normal;
font-weight: normal; /* regular; */
src: url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.eot'); /* IE9 Compat Modes */
src: url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.eot'); /* IE9 Compat Modes */
src: local('Noto Sans'), local('NotoSans-Normal'),
url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.woff') format('woff'), /* Modern Browsers */
url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('https://cos.xiaosi.cc/fonts/noto-sans/noto-sans-regular.svg#NotoSans') format('svg'); /* Legacy iOS */
url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.woff2') format('woff2'), /* Super Modern Browsers */
url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.woff') format('woff'), /* Modern Browsers */
url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url('https://oss.xiaosi.cc/fonts/noto-sans/noto-sans-regular.svg#NotoSans') format('svg'); /* Legacy iOS */
}

View File

@ -3,12 +3,12 @@
"short_name": "NextChat",
"icons": [
{
"src": "https://cos.xiaosi.cc/next/public/android-chrome-192x192.png",
"src": "https://oss.xiaosi.cc/chat/public/android-chrome-192x192.png!webp",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "https://cos.xiaosi.cc/next/public/android-chrome-512x512.png",
"src": "https://oss.xiaosi.cc/chat/public/android-chrome-512x512.png!webp",
"sizes": "512x512",
"type": "image/png"
}
@ -17,4 +17,4 @@
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
}