mirror of
https://github.com/coaidev/coai.git
synced 2025-05-21 05:50:14 +09:00
fix service worker and version
This commit is contained in:
parent
bc2baee922
commit
3182989ef4
@ -411,3 +411,10 @@
|
||||
max-height: 80vh;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.version {
|
||||
user-select: none;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: hsl(var(--text-secondary));
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ import {
|
||||
DialogTitle,
|
||||
} from "../ui/dialog.tsx";
|
||||
import { toggleEvent } from "../../events/model.ts";
|
||||
import {version} from "../../conf.ts";
|
||||
|
||||
function ChatSpace() {
|
||||
const [open, setOpen] = useState(false);
|
||||
@ -234,6 +235,9 @@ function ChatWrapper() {
|
||||
<div className={`input-options`}>
|
||||
<ModelSelector />
|
||||
</div>
|
||||
<div className={`version`}>
|
||||
chatnio v{version}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -31,7 +31,9 @@ export default defineConfig({
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: [
|
||||
// except for sw.js, which is precached by workbox itself
|
||||
'**/*.{js,css,html,png,svg,ico,webp}',
|
||||
'!sw.js',
|
||||
],
|
||||
globDirectory: 'dist',
|
||||
swDest: 'dist/sw.js',
|
||||
|
Loading…
Reference in New Issue
Block a user