update cors and theme

This commit is contained in:
Zhang Minghan 2023-09-02 21:59:40 +08:00
parent a661b6c33c
commit 49cb43fc56
7 changed files with 36 additions and 9 deletions

View File

@ -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;
} }

View 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;
}

View File

@ -0,0 +1,3 @@
:root {
--background-nav: #0E1525;
}

View File

@ -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;
} }

View File

@ -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');

View File

@ -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;

View File

@ -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",
} }