style: Oxc 代码格式调整
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"$schema": "./node_modules/oxfmt/configuration_schema.json",
|
||||
"semi": false,
|
||||
"singleQuote": true
|
||||
"singleQuote": true,
|
||||
"bracketSpacing": true
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -36,6 +36,7 @@ declare module 'vue' {
|
||||
NDataTable: typeof import('naive-ui')['NDataTable']
|
||||
NDrawer: typeof import('naive-ui')['NDrawer']
|
||||
NDrawerContent: typeof import('naive-ui')['NDrawerContent']
|
||||
NDynamicTags: typeof import('naive-ui')['NDynamicTags']
|
||||
NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
NEmpty: typeof import('naive-ui')['NEmpty']
|
||||
NFlex: typeof import('naive-ui')['NFlex']
|
||||
@@ -106,6 +107,7 @@ declare global {
|
||||
const NDataTable: typeof import('naive-ui')['NDataTable']
|
||||
const NDrawer: typeof import('naive-ui')['NDrawer']
|
||||
const NDrawerContent: typeof import('naive-ui')['NDrawerContent']
|
||||
const NDynamicTags: typeof import('naive-ui')['NDynamicTags']
|
||||
const NEllipsis: typeof import('naive-ui')['NEllipsis']
|
||||
const NEmpty: typeof import('naive-ui')['NEmpty']
|
||||
const NFlex: typeof import('naive-ui')['NFlex']
|
||||
|
||||
@@ -15,7 +15,7 @@ import {useHead} from '@unhead/vue'
|
||||
|
||||
const pageHead = reactive({
|
||||
title: '正在加载聊天室...',
|
||||
titleTemplate: '%s | 聊天室 | NyaHome'
|
||||
titleTemplate: '%s | 聊天室 | NyaHome',
|
||||
})
|
||||
|
||||
useHead(pageHead)
|
||||
@@ -92,6 +92,7 @@ function chat() {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${localStorage.getItem('access-token')}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
message: inputMessage.value,
|
||||
@@ -310,7 +311,8 @@ div.page-container {
|
||||
border-radius: 5px;
|
||||
opacity: var(--opacity);
|
||||
|
||||
transition: background-color 0.8s,
|
||||
transition:
|
||||
background-color 0.8s,
|
||||
transform 0.5s,
|
||||
opacity 1s,
|
||||
height 0.5s,
|
||||
@@ -339,7 +341,8 @@ div.page-container {
|
||||
|
||||
position: relative;
|
||||
|
||||
transition: transform 1s,
|
||||
transition:
|
||||
transform 1s,
|
||||
opacity 1s,
|
||||
flex-basis 1s;
|
||||
transform: translateX(var(--transform-x));
|
||||
@@ -356,7 +359,8 @@ div.page-container {
|
||||
background: rgb(0 0 0 / 0.1);
|
||||
border-radius: 5px;
|
||||
|
||||
transition: background-color 0.8s,
|
||||
transition:
|
||||
background-color 0.8s,
|
||||
transform 0.5s,
|
||||
height 0.5s,
|
||||
width 0.5s,
|
||||
|
||||
@@ -6,10 +6,10 @@ import type {ChatroomPublic} from '@/types/chatroom.ts'
|
||||
import type { ReturnDto } from '@/types/response.ts'
|
||||
import ChatroomCreatorModal from '@/components/chatroom/ChatroomCreatorModal.vue'
|
||||
import { useNowUser } from '@/stores/now-user.ts'
|
||||
import {useHead} from "@unhead/vue";
|
||||
import { useHead } from '@unhead/vue'
|
||||
|
||||
useHead({
|
||||
title: "聊天室列表",
|
||||
title: '聊天室列表',
|
||||
})
|
||||
|
||||
const NOWUSER = useNowUser()
|
||||
|
||||
Reference in New Issue
Block a user