Skip to content

Commit

Permalink
fix(web): 🔥 remove unused page layout declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
McPizza0 committed Feb 7, 2024
1 parent 416c0e2 commit e67f237
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 78 deletions.
10 changes: 3 additions & 7 deletions apps/web-app/pages/[orgSlug]/convo/404.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
<script setup lang="ts">
definePageMeta({
layout: 'convos'
});
</script>
<script setup lang="ts"></script>
<template>
<div
class="flex flex-col gap-2 h-full max-h-full overflow-y-scroll w-full items-center align-middle justify-center">
<div class="flex flex-row gap-2 font-display text-xl">
class="h-full max-h-full w-full flex flex-col items-center justify-center gap-2 overflow-y-scroll align-middle">
<div class="flex flex-row gap-2 text-xl font-display">
Oops, we cant find that conversation
</div>
<div class="flex flex-row gap-2 text-lg">
Expand Down
3 changes: 0 additions & 3 deletions apps/web-app/pages/[orgSlug]/convo/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
import type { ConvoParticipantEntry } from '~/composables/types';
const { $trpc } = useNuxtApp();
definePageMeta({
layout: 'convos'
});
type AttachmentEntry = {
name: string;
Expand Down
3 changes: 0 additions & 3 deletions apps/web-app/pages/[orgSlug]/convo/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'convos'
});
const orgSlug = useRoute().params.orgSlug as string;
</script>
<template>
Expand Down
3 changes: 0 additions & 3 deletions apps/web-app/pages/[orgSlug]/convo/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
import { stringify } from 'superjson';
import { z } from 'zod';
const { $trpc } = useNuxtApp();
definePageMeta({
layout: 'convos'
});
const orgSlug = useRoute().params.orgSlug as string;
// TODO: handle if the domain is not valid/enabled. display the email address in the list but show it as disabled and show a tooltip on hover that says "this domain is not enabled for sending"
Expand Down
8 changes: 2 additions & 6 deletions apps/web-app/pages/[orgSlug]/settings/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
</script>
<script setup lang="ts"></script>
<template>
<div
class="flex-col flex justify-center gap-2 items-center w-full col-span-2 pl-4 h-full">
class="col-span-2 h-full w-full flex flex-col items-center justify-center gap-2 pl-4">
<div class="col-span-2 pl-4">Select a category from the left</div>
</div>
</template>
7 changes: 2 additions & 5 deletions apps/web-app/pages/[orgSlug]/settings/org/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useFileDialog } from '@vueuse/core';
const { $trpc, $i18n } = useNuxtApp();
Expand Down Expand Up @@ -69,11 +66,11 @@
'publicId',
initialOrgProfile.value?.orgProfile.publicId || ''
);
const response =await $fetch(`${storageUrl}/api/avatar`, {
const response = (await $fetch(`${storageUrl}/api/avatar`, {
method: 'post',
body: formData,
credentials: 'include'
}) as any;
})) as any;
if (response.avatarId) {
imageUrl.value = useUtils().generateAvatarUrl(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<script setup lang="ts">
import type { UiColor } from '@uninbox/types/ui';
definePageMeta({
layout: 'settings'
});
const { $trpc } = useNuxtApp();
const route = useRoute();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
const { $trpc, $i18n } = useNuxtApp();
const uploadLoading = ref(false);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useClipboard, useTimeAgo } from '@vueuse/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useClipboard } from '@vueuse/core';
const orgSlug = useRoute().params.orgSlug as string;
Expand Down
3 changes: 0 additions & 3 deletions apps/web-app/pages/[orgSlug]/settings/org/new.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useClipboard } from '@vueuse/core';
Expand Down
29 changes: 14 additions & 15 deletions apps/web-app/pages/[orgSlug]/settings/org/setup/billing.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings',
middleware: 'ee'
});
import { z } from 'zod';
Expand Down Expand Up @@ -85,13 +84,13 @@
v-if="!pending"
class="w-full flex flex-row gap-8">
<div class="flex flex-col">
<span class="text-sm font-medium text-base-11">Current Plan</span>
<span class="text-sm text-base-11 font-medium">Current Plan</span>
<span class="text-2xl font-display capitalize">{{
orgBillingOverview?.currentPlan
}}</span>
</div>
<div class="flex flex-col">
<span class="text-sm font-medium text-base-11">Users</span>
<span class="text-sm text-base-11 font-medium">Users</span>
<span class="text-2xl font-display">{{
orgBillingOverview?.totalUsers
}}</span>
Expand Down Expand Up @@ -138,36 +137,36 @@
<div class="flex flex-col justify-start gap-4">
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Multiple users
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
@uninbox.me email addresses
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Forwarding Address
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Private Notes
</span>
</div>
</div>
<div class="flex flex-row items-center gap-2">
<span class="text-4xl leading-none font-display">$0</span>
<div class="flex flex-col gap-0">
<span class="text-sm font-medium leading-none text-base-11"
<span class="text-sm text-base-11 font-medium leading-none"
>per user</span
>
<span class="text-sm font-medium leading-none text-base-11"
<span class="text-sm text-base-11 font-medium leading-none"
>per
{{
pricingTableBillingPeriod === 'yearly'
Expand All @@ -192,25 +191,25 @@
<div class="flex flex-col justify-start gap-4">
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
User Groups
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Custom Domains
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Catch-all Address
</span>
</div>
<div class="flex flex-row items-center gap-2">
<UnUiIcon name="i-ph-check-circle-fill" />
<span class="text-sm leading-none text-base-12">
<span class="text-sm text-base-12 leading-none">
Shared Notes
</span>
</div>
Expand All @@ -222,10 +221,10 @@
}}</span
>
<div class="flex flex-col gap-0">
<span class="text-sm font-medium leading-none text-base-11"
<span class="text-sm text-base-11 font-medium leading-none"
>per user</span
>
<span class="text-sm font-medium leading-none text-base-11"
<span class="text-sm text-base-11 font-medium leading-none"
>per
{{
pricingTableBillingPeriod === 'yearly'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useClipboard, useTimeAgo } from '@vueuse/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
const { $trpc, $i18n } = useNuxtApp();
const orgSlug = useRoute().params.orgSlug as string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useClipboard } from '@vueuse/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
const { $trpc, $i18n } = useNuxtApp();
const uploadLoading = ref(false);
Expand Down
3 changes: 0 additions & 3 deletions apps/web-app/pages/[orgSlug]/settings/user/addresses.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
const { $trpc, $i18n } = useNuxtApp();
Expand Down
7 changes: 2 additions & 5 deletions apps/web-app/pages/[orgSlug]/settings/user/profiles.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<script setup lang="ts">
definePageMeta({
layout: 'settings'
});
import { z } from 'zod';
import { useFileDialog } from '@vueuse/core';
const { $trpc, $i18n } = useNuxtApp();
Expand Down Expand Up @@ -87,11 +84,11 @@
'avatarId',
initialUserProfile.value?.profile.avatarId || ''
);
const response =await $fetch(`${storageUrl}/api/avatar`, {
const response = (await $fetch(`${storageUrl}/api/avatar`, {
method: 'post',
body: formData,
credentials: 'include'
}) as any;
})) as any;
if (response.avatarId) {
imageUrl.value = useUtils().generateAvatarUrl(
'user',
Expand Down

0 comments on commit e67f237

Please sign in to comment.