mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-13 08:12:40 +10:00
chore: style
This commit is contained in:
@ -285,7 +285,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<UploadFileDialog
|
<UploadFileDialog
|
||||||
@ -708,8 +707,6 @@ async function uploadAfterImageUpload(result: Game) {
|
|||||||
game.value.mImageLibraryObjectIds = result.mImageLibraryObjectIds;
|
game.value.mImageLibraryObjectIds = result.mImageLibraryObjectIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function addImageToCarousel(id: string) {
|
function addImageToCarousel(id: string) {
|
||||||
showAddCarouselModal.value = false;
|
showAddCarouselModal.value = false;
|
||||||
game.value.mImageCarouselObjectIds.push(id);
|
game.value.mImageCarouselObjectIds.push(id);
|
||||||
|
|||||||
@ -20,7 +20,8 @@
|
|||||||
to="/admin/metadata/games"
|
to="/admin/metadata/games"
|
||||||
class="transition group aspect-[3/2] flex flex-col justify-center items-center rounded-lg bg-zinc-950 hover:bg-zinc-950/50 shadow"
|
class="transition group aspect-[3/2] flex flex-col justify-center items-center rounded-lg bg-zinc-950 hover:bg-zinc-950/50 shadow"
|
||||||
>
|
>
|
||||||
<span class="transition-all text-4xl font-bold text-zinc-400 group-hover:text-zinc-100 uppercase tracking-widest"
|
<span
|
||||||
|
class="transition-all text-4xl font-bold text-zinc-400 group-hover:text-zinc-100 uppercase tracking-widest"
|
||||||
>Games</span
|
>Games</span
|
||||||
>
|
>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
@ -28,7 +29,8 @@
|
|||||||
to="/admin/metadata/companies"
|
to="/admin/metadata/companies"
|
||||||
class="transition group aspect-[3/2] flex flex-col justify-center items-center rounded-lg bg-zinc-950 hover:bg-zinc-950/50 shadow"
|
class="transition group aspect-[3/2] flex flex-col justify-center items-center rounded-lg bg-zinc-950 hover:bg-zinc-950/50 shadow"
|
||||||
>
|
>
|
||||||
<span class="transition-all text-4xl font-bold text-zinc-400 group-hover:text-zinc-100 uppercase tracking-widest"
|
<span
|
||||||
|
class="transition-all text-4xl font-bold text-zinc-400 group-hover:text-zinc-100 uppercase tracking-widest"
|
||||||
>Companies</span
|
>Companies</span
|
||||||
>
|
>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|||||||
@ -55,7 +55,7 @@ export default defineClientEventHandler(
|
|||||||
title: `"${client.name}" can now access ${capability}`,
|
title: `"${client.name}" can now access ${capability}`,
|
||||||
description: `A device called "${client.name}" now has access to your ${capability}.`,
|
description: `A device called "${client.name}" now has access to your ${capability}.`,
|
||||||
actions: ["Review|/account/devices"],
|
actions: ["Review|/account/devices"],
|
||||||
acls: ["user:clients:read"]
|
acls: ["user:clients:read"],
|
||||||
});
|
});
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
|
|||||||
@ -70,7 +70,9 @@ const systemACLPrefix = "system:";
|
|||||||
|
|
||||||
export type SystemACL = Array<(typeof systemACLs)[number]>;
|
export type SystemACL = Array<(typeof systemACLs)[number]>;
|
||||||
|
|
||||||
export type GlobalACL = `${typeof systemACLPrefix}${(typeof systemACLs)[number]}` | `${typeof userACLPrefix}${(typeof userACLs)[number]}`;
|
export type GlobalACL =
|
||||||
|
| `${typeof systemACLPrefix}${(typeof systemACLs)[number]}`
|
||||||
|
| `${typeof userACLPrefix}${(typeof userACLs)[number]}`;
|
||||||
|
|
||||||
class ACLManager {
|
class ACLManager {
|
||||||
private getAuthorizationToken(request: MinimumRequestObject) {
|
private getAuthorizationToken(request: MinimumRequestObject) {
|
||||||
@ -176,7 +178,9 @@ class ACLManager {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
async fetchAllACLs(request: MinimumRequestObject): Promise<GlobalACL[] | undefined> {
|
async fetchAllACLs(
|
||||||
|
request: MinimumRequestObject,
|
||||||
|
): Promise<GlobalACL[] | undefined> {
|
||||||
const userSession = await sessionHandler.getSession(request);
|
const userSession = await sessionHandler.getSession(request);
|
||||||
if (!userSession) {
|
if (!userSession) {
|
||||||
const authorizationToken = this.getAuthorizationToken(request);
|
const authorizationToken = this.getAuthorizationToken(request);
|
||||||
|
|||||||
@ -305,7 +305,7 @@ class LibraryManager {
|
|||||||
title: `'${game.mName}' ('${versionName}') finished importing.`,
|
title: `'${game.mName}' ('${versionName}') finished importing.`,
|
||||||
description: `Drop finished importing version ${versionName} for ${game.mName}.`,
|
description: `Drop finished importing version ${versionName} for ${game.mName}.`,
|
||||||
actions: [`View|/admin/library/${gameId}`],
|
actions: [`View|/admin/library/${gameId}`],
|
||||||
acls: ["system:import:version:read"]
|
acls: ["system:import:version:read"],
|
||||||
});
|
});
|
||||||
|
|
||||||
progress(100);
|
progress(100);
|
||||||
|
|||||||
Reference in New Issue
Block a user