Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Jan 7, 2024
1 parent 33a95bf commit 38b7107
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 20 deletions.
14 changes: 9 additions & 5 deletions app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,15 @@ export default defineAppConfig({
},
},
},
avatar: {
default: {
},
rounded: 'rounded-button'
},
avatar: {
default: {},
rounded: 'rounded-button',
},
breadcrumb: {
default: {
divider: 'material-symbols:chevron-right',
},
},
pagination: {
rounded: 'first:rounded-l-button last:rounded-r-button',
default: {
Expand Down
2 changes: 1 addition & 1 deletion layers/portal/components/FileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ const possibleActions = (file: File) => {
.bg-checkerboard {
background: #eee
url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" fill-opacity=".10" >\<rect x="200" width="200" height="200" />\<rect y="200" width="200" height="200" />\</svg>');
background-size: 30px 30px;
background-size: 30px 30px;
}
</style>
4 changes: 2 additions & 2 deletions layers/portal/components/ProjectActivity.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ const groupedActivity = computed<GroupedActivity[]>(() => {
item.type === 'milestone'
? 'heroicons:flag'
: item.type === 'update'
? 'heroicons:document-text'
: 'heroicons:document'
? 'heroicons:document-text'
: 'heroicons:document'
"
class="w-5 h-5 text-white"
aria-hidden="true"
Expand Down
2 changes: 1 addition & 1 deletion layers/portal/components/TaskWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function openTask(id: string) {

<UTable :columns="columns" :rows="tasks">
<template #name-data="{ row }">
<UButton variant="link" class="max-w-[250px]" @click="openTask(row.id)" :padded="false">
<UButton variant="link" class="max-w-[250px]" :padded="false" @click="openTask(row.id)">
<span class="truncate">{{ row.name ?? 'Task with no name' }}</span>
</UButton>
</template>
Expand Down
10 changes: 2 additions & 8 deletions layers/portal/pages/portal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,9 @@ const mobileMenuOpen = ref(false);
<DarkModeToggle bg="dark" class="" />
<!-- Profile dropdown -->
<UDropdown class="relative" :items="userNavigation">
<button

>
<button>
<span class="sr-only">Open user menu</span>
<UAvatar
class="w-12 h-12 mx-auto"
:src="user.avatar"
:alt="userName(user)"
/>
<UAvatar class="w-12 h-12 mx-auto" :src="user.avatar" :alt="userName(user)" />
</button>
</UDropdown>
</div>
Expand Down
2 changes: 1 addition & 1 deletion layers/portal/pages/portal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const { user } = useDirectusAuth();
<template>
<PageContainer>
<img class="w-48 ml-auto mr-0" src="~/assets/illustrations/tokyo-luminous-table-lamp-on-boxes.svg" />
<TypographyTitle class="normal-case">{{ greetUser() }} {{ user?.first_name ?? 'friend' }},</TypographyTitle>
<TypographyTitle class="normal-case">{{ greetUser() }} {{ user?.first_name ?? 'friend' }},</TypographyTitle>
<TypographyHeadline :content="getTodaysMessage()" size="xl" />
<VDivider class="my-8" />
<div class="grid w-full grid-cols-1 gap-6 md:grid-cols-2">
Expand Down
2 changes: 1 addition & 1 deletion layers/proposals/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default defineNuxtConfig({
components: [{ path: './components/', prefix: 'Proposals' }],

routeRules: {
routeRules: {
'/proposals/**': { ssr: true },
},

Expand Down
2 changes: 1 addition & 1 deletion modules/directus/runtime/composables/useDirectusAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import jwtDecode from 'jwt-decode';
import { readMe, passwordRequest, passwordReset } from '@directus/sdk';
import type { RestClient, AuthenticationClient } from '@directus/sdk';
import type { Schema } from '~/types/schema';
import type { User } from '~/types'
import type { User } from '~/types';

import { useState, useRuntimeConfig, useRoute, navigateTo, clearNuxtData, useNuxtApp } from '#imports';

Expand Down

0 comments on commit 38b7107

Please sign in to comment.