-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6a02dc
commit 6a0bf4b
Showing
7 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,20 @@ | |
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes" /> | ||
<title>Chat Nio</title> | ||
<meta name="keywords" content="ChatGPT, AI聊天, ChatNio, chatnio"> | ||
<meta name="description" content="👋 Chat Nio, lightweight Web ChatGPT chat site 👋 Chat Nio, 一个轻量级的联网版 AI 聊天网站"> | ||
<meta name="keywords" content="ChatGPT, ChatNio, chatnio"> | ||
<meta name="description" content="👋 Chat Nio, Your Next Powerful AI Chat Platform. Creating Possibilities in the World of AI Chat."> | ||
<meta name="author" content="Deeptrain Team"> | ||
<meta name="theme-color" content="#000000"> | ||
<meta itemprop="image" content="/favicon.ico"> | ||
<meta name="baidu-site-verification" content="codeva-TJkbi40ZBi" /> | ||
<link href="https://open.lightxi.com/fonts/Andika" rel="stylesheet"> | ||
<link href="https://open.lightxi.com/fonts/Jetbrains-Mono" rel="stylesheet"> | ||
<link href="https://open.lightxi.com/jsdelivr/npm/[email protected]/dist/katex.min.css" rel="stylesheet"> | ||
<script src="/workbox.js" defer></script> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<noscript>You need to enable JavaScript to run chatnio.</noscript> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
const SERVICE_NAME = "chatnio"; | ||
|
||
self.addEventListener('activate', function (event) { | ||
console.debug("[service] service worker activated"); | ||
}); | ||
|
||
self.addEventListener('install', function (event) { | ||
event.waitUntil( | ||
caches.open(SERVICE_NAME) | ||
.then(function (cache) { | ||
return cache.addAll([]); | ||
}) | ||
); | ||
}); | ||
|
||
self.addEventListener('fetch', function (event) { | ||
event.respondWith( | ||
caches.match(event.request) | ||
.then(function (response) { | ||
return response || fetch(event.request); | ||
}) | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
if ('serviceWorker' in navigator) { | ||
window.addEventListener('load', function () { | ||
navigator.serviceWorker.register('/service.js').then(function (registration) { | ||
console.debug(`[service] service worker registered with scope: ${registration.scope}`); | ||
}, function (err) { | ||
console.debug(`[service] service worker registration failed: ${err}`); | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters