Fix issue with update

This commit is contained in:
SebClem 2023-12-14 15:04:42 +01:00
parent 61204e2c19
commit da96cc1485
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
10 changed files with 54 additions and 65 deletions

View File

@ -38,13 +38,13 @@
:subtitle="'#' + discriminator" :subtitle="'#' + discriminator"
> >
<template v-slot:append> <template v-slot:append>
<v-list-item-avatar end> <v-avatar>
<v-btn <v-btn
icon="mdi-exit-to-app" icon="mdi-exit-to-app"
class="text-high-emphasis text-white" class="text-high-emphasis text-white"
v-on:click="logoutAndRedirect()" v-on:click="logoutAndRedirect()"
></v-btn> ></v-btn>
</v-list-item-avatar> </v-avatar>
</template> </template>
</v-list-item> </v-list-item>
</v-list> </v-list>

View File

@ -12,19 +12,20 @@
:data-guild-id="guild.id" :data-guild-id="guild.id"
@click="clickOnGuild(guild.id)" @click="clickOnGuild(guild.id)"
> >
<v-list-item-avatar <template v-slot:prepend>
start <v-avatar start :color="guild.iconUrl ? '' : 'grey-darken-3'">
:color="guild.iconUrl ? '' : 'grey-darken-3'"
>
<v-img v-if="guild.iconUrl" :src="guild.iconUrl"></v-img> <v-img v-if="guild.iconUrl" :src="guild.iconUrl"></v-img>
<template v-if="!guild.iconUrl">{{ guild.name[1] }}</template> <template v-if="!guild.iconUrl">{{ guild.name[1] }}</template>
</v-list-item-avatar> </v-avatar>
</template>
<v-list-item-title>{{ guild.name }}</v-list-item-title> <v-list-item-title>{{ guild.name }}</v-list-item-title>
</v-list-item> </v-list-item>
<v-list-item :href="inviteLink" target="_blank"> <v-list-item :href="inviteLink" target="_blank">
<v-list-item-avatar color="grey-darken-3" start> <template v-slot:prepend>
<v-avatar color="grey-darken-3" start>
<v-icon color="green">mdi-plus</v-icon> <v-icon color="green">mdi-plus</v-icon>
</v-list-item-avatar> </v-avatar>
</template>
<v-list-item-title> Invite Claptrap Bot ! </v-list-item-title> <v-list-item-title> Invite Claptrap Bot ! </v-list-item-title>
</v-list-item> </v-list-item>
</template> </template>
@ -86,7 +87,7 @@ function loadMutualGuilds() {
mutualGuildsStore.loaded = true; mutualGuildsStore.loaded = true;
if ( if (
!mutualGuildsStore.getGuild( !mutualGuildsStore.getGuild(
router.currentRoute.value.params?.guildId as string router.currentRoute.value.params?.guildId as string,
) )
) { ) {
router.push("/"); router.push("/");

View File

@ -48,7 +48,11 @@
</v-row> </v-row>
<v-row> <v-row>
<v-col> <v-col>
<v-btn :href="inviteLinkStore.inviteLink" color="primary"> <v-btn
:href="inviteLinkStore.inviteLink"
color="primary"
block
>
Invite me ! Invite me !
</v-btn> </v-btn>
</v-col> </v-col>
@ -68,6 +72,7 @@
to="/oauth2/redirect" to="/oauth2/redirect"
prepend-icon="mdi-discord" prepend-icon="mdi-discord"
color="primary" color="primary"
block
> >
Login with Discord Login with Discord
</v-btn> </v-btn>
@ -91,7 +96,7 @@
</v-avatar> </v-avatar>
</v-col> </v-col>
<v-col class="px-0 py-2" cols="10" sm="1" md="10" xl="11"> <v-col class="px-0 py-2" cols="10" sm="1" md="10" xl="11">
<v-row justify="left"> <v-row justify="start">
<v-col class="d-flex align-center"> <v-col class="d-flex align-center">
<p class="text-primary">Claptrap Bot</p> <p class="text-primary">Claptrap Bot</p>
<span class="text-disabled text-caption ml-2"> <span class="text-disabled text-caption ml-2">
@ -99,7 +104,7 @@
</span> </span>
</v-col> </v-col>
</v-row> </v-row>
<v-row justify="left" class="mb-2"> <v-row justify="start" class="mb-2">
<v-col <v-col
class="d-flex flex-column justify-start text-start pt-0 text-body-2 pb-0" class="d-flex flex-column justify-start text-start pt-0 text-body-2 pb-0"
cols="12" cols="12"

View File

@ -1,12 +0,0 @@
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}

View File

@ -1,18 +1,23 @@
{ {
"files": [], "compilerOptions": {
"references": [ "baseUrl": ".",
{ "target": "ESNext",
"path": "./tsconfig.vite-config.json" "useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"noEmit": true,
"paths": {
"@/*": ["src/*"]
}
}, },
{ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"path": "./tsconfig.app.json" "references": [{ "path": "./tsconfig.node.json" }],
}, "exclude": ["node_modules"]
{
"path": "./tsconfig.vitest.json"
}
,
{
"path": "./tsconfig.pinia-plugin-persist.json"
}
]
} }

9
tsconfig.node.json Normal file
View File

@ -0,0 +1,9 @@
{
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}

View File

@ -1,5 +0,0 @@
{
"compilerOptions": {
"types": ["pinia-plugin-persist"]
}
}

View File

@ -1,8 +0,0 @@
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["vite.config.*"],
"compilerOptions": {
"composite": true,
"types": ["node", "vitest"]
}
}

View File

@ -1,9 +0,0 @@
{
"extends": "./tsconfig.app.json",
"exclude": [],
"compilerOptions": {
"composite": true,
"lib": [],
"types": ["node", "jsdom"]
}
}

View File

@ -31,4 +31,7 @@ export default defineConfig({
] ]
}, },
*/ */
server: {
port: 3000,
},
}); });