mirror of
https://github.com/coaidev/coai.git
synced 2025-06-06 05:40:25 +09:00
update cors and theme
This commit is contained in:
parent
a661b6c33c
commit
49cb43fc56
@ -105,6 +105,10 @@ button:focus-visible {
|
|||||||
white-space: break-spaces !important;
|
white-space: break-spaces !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: light) {
|
.grow {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unshrink {
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
17
app/src/assets/style/navbar.css
Normal file
17
app/src/assets/style/navbar.css
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
.navbar {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
width: 100%;
|
||||||
|
height: 44px;
|
||||||
|
background: var(--background-nav);
|
||||||
|
padding: 4px 12px;
|
||||||
|
gap: 4px;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar .chatnio {
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 6px;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
3
app/src/assets/style/theme.css
Normal file
3
app/src/assets/style/theme.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
:root {
|
||||||
|
--background-nav: #0E1525;
|
||||||
|
}
|
@ -9,7 +9,6 @@ const props = defineProps<{
|
|||||||
</svg>
|
</svg>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "/src/assets/style/anim.css";
|
|
||||||
.loading {
|
.loading {
|
||||||
animation: RotateAnimation 1s linear infinite;
|
animation: RotateAnimation 1s linear infinite;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue';
|
||||||
import './assets/style/base.css'
|
import './assets/style/base.css';
|
||||||
|
import './assets/style/anim.css';
|
||||||
|
import './assets/style/theme.css';
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from "../router";
|
import router from "../router";
|
||||||
import "./assets/script/conf"
|
import "./assets/script/conf";
|
||||||
|
|
||||||
createApp(App).use(router).mount('#app')
|
createApp(App)
|
||||||
|
.use(router)
|
||||||
|
.mount('#app');
|
||||||
|
@ -105,8 +105,6 @@ function login() {
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@import "../assets/style/anim.css";
|
|
||||||
|
|
||||||
.chat-wrapper {
|
.chat-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -10,6 +10,8 @@ var AllowedOrigins = []string{
|
|||||||
"https://fystart.cn",
|
"https://fystart.cn",
|
||||||
"https://www.fystart.cn",
|
"https://www.fystart.cn",
|
||||||
"https://nio.fystart.cn",
|
"https://nio.fystart.cn",
|
||||||
|
"https://chatnio.net",
|
||||||
|
"https://www.chatnio.net",
|
||||||
"http://localhost:5173",
|
"http://localhost:5173",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user