Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Remove dead code surfaced by the automations removal sweep (#339)

Paulo Castellano3032866ea799
diff --git a/app/Concerns/PasswordValidationRules.php b/app/Concerns/PasswordValidationRules.php
deleted file mode 100644
index 900021773..000000000
--- a/app/Concerns/PasswordValidationRules.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace App\Concerns;
-
-use Illuminate\Contracts\Validation\Rule;
-use Illuminate\Validation\Rules\Password;
-
-trait PasswordValidationRules
-{
- /**
- * Get the validation rules used to validate passwords.
- *
- * @return array<int, Rule|array<mixed>|string>
- */
- protected function passwordRules(): array
- {
- return ['required', 'string', Password::default(), 'confirmed'];
- }
-
- /**
- * Get the validation rules used to validate the current password.
- *
- * @return array<int, Rule|array<mixed>|string>
- */
- protected function currentPasswordRules(): array
- {
- return ['required', 'string', 'current_password'];
- }
-}
diff --git a/app/Enums/Ai/Orientation.php b/app/Enums/Ai/Orientation.php
deleted file mode 100644
index 95e7d733d..000000000
--- a/app/Enums/Ai/Orientation.php
+++ /dev/null
@@ -1,41 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace App\Enums\Ai;
-
-enum Orientation: string
-{
- case Square = 'square';
- case Portrait = 'portrait';
- case Vertical = 'vertical';
- case Horizontal = 'horizontal';
-
- /**
- * Aspect ratio used in prompts to describe the desired framing to the model.
- */
- public function aspectRatio(): string
- {
- return match ($this) {
- self::Square => '1:1',
- self::Portrait => '4:5',
- self::Vertical => '9:16',
- self::Horizontal => '16:9',
- };
- }
-
- /**
- * Size string supported by the AI image SDK (1:1 / 2:3 / 3:2).
- *
- * OpenAI's image API only accepts these three ratios, so we map every
- * orientation to the closest supported one. Gemini accepts the same set.
- */
- public function imageApiSize(): string
- {
- return match ($this) {
- self::Square => '1:1',
- self::Portrait, self::Vertical => '2:3',
- self::Horizontal => '3:2',
- };
- }
-}
diff --git a/app/Exceptions/Ai/QuotaExhaustedException.php b/app/Exceptions/Ai/QuotaExhaustedException.php
deleted file mode 100644
index aefdfa53a..000000000
--- a/app/Exceptions/Ai/QuotaExhaustedException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace App\Exceptions\Ai;
-
-use App\Enums\Ai\UsageType;
-use RuntimeException;
-
-class QuotaExhaustedException extends RuntimeException
-{
- public function __construct(
- public readonly UsageType $type,
- public readonly int $used,
- public readonly int $limit,
- ) {
- parent::__construct(
- sprintf('%s quota exhausted this month (%d of %d used).', ucfirst($type->value), $used, $limit),
- );
- }
-}
diff --git a/package-lock.json b/package-lock.json
index 0df5a2b4f..b86ad083d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,7 +9,6 @@
"@tabler/icons-vue": "^3.36.1",
"@tailwindcss/typography": "^0.5.19",
"@vueuse/core": "^12.8.2",
- "axios": "^1.13.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.19",
@@ -17,7 +16,6 @@
"highlight.js": "^11.11.1",
"laravel-vite-plugin": "^3.1.0",
"laravel-vue-i18n": "^2.8.0",
- "maska": "^3.2.0",
"posthog-js": "^1.364.2",
"reka-ui": "^2.9.10",
"tailwind-merge": "^3.2.0",
@@ -2438,6 +2436,8 @@
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",
"integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"debug": "4"
},
@@ -2653,7 +2653,9 @@
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
- "license": "MIT"
+ "license": "MIT",
+ "optional": true,
+ "peer": true
},
"node_modules/available-typed-arrays": {
"version": "1.0.7",
@@ -2676,6 +2678,8 @@
"resolved": "https://registry.npmjs.org/axios/-/axios-1.16.1.tgz",
"integrity": "sha512-caYkukvroVPO8KrzuJEb50Hm07KwfBZPEC3VeFHTsqWHvKTsy54hjJz9BS/cdaypROE2rH6xvm9mHX4fgWkr3A==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"follow-redirects": "^1.16.0",
"form-data": "^4.0.5",
@@ -2743,6 +2747,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
@@ -2886,6 +2891,8 @@
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"delayed-stream": "~1.0.0"
},
@@ -3052,6 +3059,7 @@
"version": "4.4.3",
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
"integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"ms": "^2.1.3"
@@ -3119,6 +3127,8 @@
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"engines": {
"node": ">=0.4.0"
}
@@ -3158,6 +3168,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.1",
@@ -3328,6 +3339,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -3337,6 +3349,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -3346,6 +3359,7 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0"
@@ -3358,6 +3372,7 @@
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"es-errors": "^1.3.0",
@@ -4089,6 +4104,8 @@
}
],
"license": "MIT",
+ "optional": true,
+ "peer": true,
"engines": {
"node": ">=4.0"
},
@@ -4119,6 +4136,8 @@
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
"integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
@@ -4148,6 +4167,7 @@
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "devOptional": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
@@ -4221,6 +4241,7 @@
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"call-bind-apply-helpers": "^1.0.2",
@@ -4245,6 +4266,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"dunder-proto": "^1.0.1",
@@ -4332,6 +4354,7 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -4403,6 +4426,7 @@
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -4415,6 +4439,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"has-symbols": "^1.0.3"
@@ -4430,6 +4455,7 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "devOptional": true,
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
@@ -4462,6 +4488,8 @@
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",
"integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"agent-base": "6",
"debug": "4"
@@ -5379,16 +5407,11 @@
"@jridgewell/sourcemap-codec": "^1.5.5"
}
},
- "node_modules/maska": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/maska/-/maska-3.2.0.tgz",
- "integrity": "sha512-zSmSgs5/q9vMSmrdZT3rKOv9uLznNWR/niuuAdBZDTvB3SMKOX9vhMtDijFyExz+B4UClu2rvksylUh/ea1bLA==",
- "license": "MIT"
- },
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "devOptional": true,
"license": "MIT",
"engines": {
"node": ">= 0.4"
@@ -5423,6 +5446,8 @@
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"engines": {
"node": ">= 0.6"
}
@@ -5432,6 +5457,8 @@
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"dependencies": {
"mime-db": "1.52.0"
},
@@ -5469,6 +5496,7 @@
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "devOptional": true,
"license": "MIT"
},
"node_modules/muggle-string": {
@@ -6062,6 +6090,8 @@
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz",
"integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==",
"license": "MIT",
+ "optional": true,
+ "peer": true,
"engines": {
"node": ">=10"
}
diff --git a/package.json b/package.json
index e54d3f104..840cc7dec 100644
--- a/package.json
+++ b/package.json
@@ -41,7 +41,6 @@
"@tabler/icons-vue": "^3.36.1",
"@tailwindcss/typography": "^0.5.19",
"@vueuse/core": "^12.8.2",
- "axios": "^1.13.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dayjs": "^1.11.19",
@@ -49,7 +48,6 @@
"highlight.js": "^11.11.1",
"laravel-vite-plugin": "^3.1.0",
"laravel-vue-i18n": "^2.8.0",
- "maska": "^3.2.0",
"posthog-js": "^1.364.2",
"reka-ui": "^2.9.10",
"tailwind-merge": "^3.2.0",
diff --git a/resources/js/components/AlertError.vue b/resources/js/components/AlertError.vue
deleted file mode 100644
index 1acc5de38..000000000
--- a/resources/js/components/AlertError.vue
+++ /dev/null
@@ -1,31 +0,0 @@
-<script setup lang="ts">
-import { IconAlertCircle } from '@tabler/icons-vue';
-import { computed } from 'vue';
-
-import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
-
-interface Props {
- errors: string[];
- title?: string;
-}
-
-const props = withDefaults(defineProps<Props>(), {
- title: 'Something went wrong.',
-});
-
-const uniqueErrors = computed(() => Array.from(new Set(props.errors)));
-</script>
-
-<template>
- <Alert variant="destructive">
- <IconAlertCircle class="size-4" />
- <AlertTitle>{{ title }}</AlertTitle>
- <AlertDescription>
- <ul class="list-inside list-disc text-sm">
- <li v-for="(error, index) in uniqueErrors" :key="index">
- {{ error }}
- </li>
- </ul>
- </AlertDescription>
- </Alert>
-</template>
diff --git a/resources/js/components/AppContent.vue b/resources/js/components/AppContent.vue
deleted file mode 100644
index dbca1b5d0..000000000
--- a/resources/js/components/AppContent.vue
+++ /dev/null
@@ -1,26 +0,0 @@
-<script setup lang="ts">
-import { computed } from 'vue';
-
-import { SidebarInset } from '@/components/ui/sidebar';
-
-interface Props {
- variant?: 'header' | 'sidebar';
- class?: string;
-}
-
-const props = defineProps<Props>();
-const className = computed(() => props.class);
-</script>
-
-<template>
- <SidebarInset v-if="props.variant === 'sidebar'" :class="className">
- <slot />
- </SidebarInset>
- <main
- v-else
- class="mx-auto flex h-full w-full max-w-7xl flex-1 flex-col gap-4 rounded-xl"
- :class="className"
- >
- <slot />
- </main>
-</template>
diff --git a/resources/js/components/AppShell.vue b/resources/js/components/AppShell.vue
deleted file mode 100644
index 1088f4f1f..000000000
--- a/resources/js/components/AppShell.vue
+++ /dev/null
@@ -1,22 +0,0 @@
-<script setup lang="ts">
-import { usePage } from '@inertiajs/vue3';
-
-import { SidebarProvider } from '@/components/ui/sidebar';
-
-interface Props {
- variant?: 'header' | 'sidebar';
-}
-
-defineProps<Props>();
-
-const isOpen = usePage().props.sidebarOpen;
-</script>
-
-<template>
- <div v-if="variant === 'header'" class="flex min-h-screen w-full flex-col">
- <slot />
- </div>
- <SidebarProvider v-else :default-open="isOpen">
- <slot />
- </SidebarProvider>
-</template>
diff --git a/resources/js/components/Breadcrumbs.vue b/resources/js/components/Breadcrumbs.vue
deleted file mode 100644
index 60190204a..000000000
--- a/resources/js/components/Breadcrumbs.vue
+++ /dev/null
@@ -1,37 +0,0 @@
-<script setup lang="ts">
-import { Link } from '@inertiajs/vue3';
-
-import {
- Breadcrumb,
- BreadcrumbItem,
- BreadcrumbLink,
- BreadcrumbList,
- BreadcrumbPage,
- BreadcrumbSeparator,
-} from '@/components/ui/breadcrumb';
-import type { BreadcrumbItem as BreadcrumbItemType } from '@/types';
-
-defineProps<{
- breadcrumbs: BreadcrumbItemType[];
-}>();
-</script>
-
-<template>
- <Breadcrumb>
- <BreadcrumbList>
- <template v-for="(item, index) in breadcrumbs" :key="index">
- <BreadcrumbItem>
- <template v-if="index === breadcrumbs.length - 1">
- <BreadcrumbPage>{{ item.title }}</BreadcrumbPage>
- </template>
- <template v-else>
- <BreadcrumbLink as-child>
- <Link :href="item.href ?? '#'">{{ item.title }}</Link>
- </BreadcrumbLink>
- </template>
- </BreadcrumbItem>
- <BreadcrumbSeparator v-if="index !== breadcrumbs.length - 1" />
- </template>
- </BreadcrumbList>
- </Breadcrumb>
-</template>
diff --git a/resources/js/components/Heading.vue b/resources/js/components/Heading.vue
deleted file mode 100644
index f50187afd..000000000
--- a/resources/js/components/Heading.vue
+++ /dev/null
@@ -1,17 +0,0 @@
-<script setup lang="ts">
-interface Props {
- title: string;
- description?: string;
-}
-
-defineProps<Props>();
-</script>
-
-<template>
- <div class="mb-8 space-y-0.5">
- <h2 class="text-xl font-semibold tracking-tight">{{ title }}</h2>
- <p v-if="description" class="text-sm text-muted-foreground">
- {{ description }}
- </p>
- </div>
-</template>
diff --git a/resources/js/components/Icon.vue b/resources/js/components/Icon.vue
deleted file mode 100644
index e4ab86219..000000000
--- a/resources/js/components/Icon.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-<script setup lang="ts">
-import * as icons from '@tabler/icons-vue';
-import { computed } from 'vue';
-
-import { cn } from '@/lib/utils';
-
-interface Props {
- name: string;
- class?: string;
- size?: number | string;
- color?: string;
- strokeWidth?: number | string;
-}
-
-const props = withDefaults(defineProps<Props>(), {
- class: '',
- size: 16,
- strokeWidth: 2,
-});
-
-const className = computed(() => cn('h-4 w-4', props.class));
-
-const icon = computed(() => {
- // Tabler icons are prefixed with 'Icon', e.g., 'IconUser', 'IconSettings'
- const iconName = 'Icon' + props.name.charAt(0).toUpperCase() + props.name.slice(1);
- return (icons as Record<string, any>)[iconName];
-});
-</script>
-
-<template>
- <component
- :is="icon"
- :class="className"
- :size="size"
- :stroke-width="strokeWidth"
- :color="color"
- />
-</template>
diff --git a/resources/js/components/NavFooter.vue b/resources/js/components/NavFooter.vue
deleted file mode 100644
index 6ae1d5f24..000000000
--- a/resources/js/components/NavFooter.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-<script setup lang="ts">
-import {
- SidebarGroup,
- SidebarGroupContent,
- SidebarMenu,
- SidebarMenuButton,
- SidebarMenuItem,
-} from '@/components/ui/sidebar';
-import { toUrl } from '@/lib/utils';
-import { type NavItem } from '@/types';
-
-interface Props {
- items: NavItem[];
- class?: string;
-}
-
-defineProps<Props>();
-</script>
-
-<template>
- <SidebarGroup
- :class="`group-data-[collapsible=icon]:p-0 ${$props.class || ''}`"
- >
- <SidebarGroupContent>
- <SidebarMenu>
- <SidebarMenuItem v-for="item in items" :key="item.title">
- <SidebarMenuButton
- class="text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100"
- as-child
- >
- <a
- :href="toUrl(item.href)"
- target="_blank"
- rel="noopener noreferrer"
- >
- <component :is="item.icon" />
- <span>{{ item.title }}</span>
- </a>
- </SidebarMenuButton>
- </SidebarMenuItem>
- </SidebarMenu>
- </SidebarGroupContent>
- </SidebarGroup>
-</template>
diff --git a/resources/js/components/PlaceholderPattern.vue b/resources/js/components/PlaceholderPattern.vue
deleted file mode 100644
index 95556e3bf..000000000
--- a/resources/js/components/PlaceholderPattern.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-<script setup lang="ts">
-import { computed } from 'vue';
-
-const patternId = computed(
- () => `pattern-${Math.random().toString(36).substring(2, 9)}`,
-);
-</script>
-
-<template>
- <svg
- class="absolute inset-0 size-full stroke-neutral-900/20 dark:stroke-neutral-100/20"
- fill="none"
- >
- <defs>
- <pattern
- :id="patternId"
- x="0"
- y="0"
- width="8"
- height="8"
- patternUnits="userSpaceOnUse"
- >
- <path d="M-1 5L5 -1M3 9L8.5 3.5" stroke-width="0.5"></path>
- </pattern>
- </defs>
- <rect
- stroke="none"
- :fill="`url(#${patternId})`"
- width="100%"
- height="100%"
- ></rect>
- </svg>
-</template>
diff --git a/resources/js/components/UserInfo.vue b/resources/js/components/UserInfo.vue
deleted file mode 100644
index c015058c1..000000000
--- a/resources/js/components/UserInfo.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-<script setup lang="ts">
-import { Avatar } from '@/components/ui/avatar';
-import type { User } from '@/types';
-
-type Props = {
- user: User;
- showEmail?: boolean;
- avatarClass?: string;
- fallbackClass?: string;
-};
-
-withDefaults(defineProps<Props>(), {
- showEmail: false,
-});
-</script>
-
-<template>
- <Avatar
- :src="user.photo_url"
- :name="user.name"
- :class="['h-8 w-8 rounded-md border-2 border-foreground', avatarClass]"
- :fallback-class="
- fallbackClass ?? 'bg-violet-100 text-violet-700 font-bold'
- "
- />
-
- <div class="grid flex-1 text-left text-sm leading-tight">
- <span class="truncate font-bold text-foreground">{{ user.name }}</span>
- <span v-if="showEmail" class="truncate text-xs font-medium text-foreground/60">{{
- user.email
- }}</span>
- </div>
-</template>
diff --git a/resources/js/components/WorkspaceSwitcher.vue b/resources/js/components/WorkspaceSwitcher.vue
deleted file mode 100644
index 15c14ca1b..000000000
--- a/resources/js/components/WorkspaceSwitcher.vue
+++ /dev/null
@@ -1,66 +0,0 @@
-<script setup lang="ts">
-import { router, usePage } from '@inertiajs/vue3';
-import { IconCheck, IconPlus, IconSelector } from '@tabler/icons-vue';
-import { computed } from 'vue';
-
-import { Button } from '@/components/ui/button';
-import {
- DropdownMenu,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
- DropdownMenuTrigger,
-} from '@/components/ui/dropdown-menu';
-import { create as createWorkspaceRoute, switchMethod } from '@/routes/app/workspaces';
-
-interface Workspace {
- id: string;
- name: string;
-}
-
-const page = usePage();
-const currentWorkspace = computed<Workspace | null>(() => page.props.auth.currentWorkspace as Workspace | null);
-const workspaces = computed<Workspace[]>(() => page.props.auth.workspaces as Workspace[]);
-
-const switchWorkspace = (workspace: Workspace) => {
- router.post(switchMethod.url(workspace.id), {}, {
- preserveScroll: true,
- });
-};
-
-const createWorkspace = () => {
- router.visit(createWorkspaceRoute.url());
-};
-</script>
-
-<template>
- <DropdownMenu>
- <DropdownMenuTrigger :as-child="true">
- <Button variant="outline" class="w-full justify-between gap-2 px-3" :class="{ 'text-muted-foreground': !currentWorkspace }">
- <span class="truncate">{{ currentWorkspace?.name || 'Select workspace' }}</span>
- <IconSelector class="h-4 w-4 shrink-0 opacity-50" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="start" class="w-56">
- <DropdownMenuLabel>Workspaces</DropdownMenuLabel>
- <DropdownMenuSeparator />
- <DropdownMenuItem
- v-for="workspace in workspaces"
- :key="workspace.id"
- class="cursor-pointer"
- @click="switchWorkspace(workspace)"
- >
- <div class="flex w-full items-center justify-between">
- <span class="truncate">{{ workspace.name }}</span>
- <IconCheck v-if="currentWorkspace?.id === workspace.id" class="h-4 w-4 shrink-0" />
- </div>
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- <DropdownMenuItem class="cursor-pointer" @click="createWorkspace">
- <IconPlus class="mr-2 h-4 w-4" />
- Create workspace
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
-</template>
diff --git a/resources/js/components/ui/input/InputMask.vue b/resources/js/components/ui/input/InputMask.vue
deleted file mode 100644
index 0cc70bb59..000000000
--- a/resources/js/components/ui/input/InputMask.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-<script setup lang="ts">
-import type { HTMLAttributes } from 'vue';
-import { vMaska } from 'maska/vue';
-import { cn } from '@/lib/utils';
-
-const props = defineProps<{
- defaultValue?: string | number;
- modelValue?: string | number;
- class?: HTMLAttributes['class'];
- maskOptions?: Record<string, any>;
- emitMasked?: boolean;
-}>();
-
-const emits = defineEmits<{
- 'update:modelValue': [value: string | number];
-}>();
-
-function onMaska(event: { detail: { masked: string; unmasked: string; completed: boolean } }) {
- const value = props.emitMasked ? event.detail.masked : event.detail.unmasked;
- emits('update:modelValue', value || '');
-}
-</script>
-
-<template>
- <input
- v-maska
- v-bind="maskOptions"
- :value="modelValue"
- data-slot="input"
- :class="
- cn(
- 'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',
- 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]',
- 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive',
- props.class,
- )
- "
- @maska="onMaska"
- />
-</template>
diff --git a/resources/js/components/ui/input/index.ts b/resources/js/components/ui/input/index.ts
index 538c924ea..c5248c5c1 100644
--- a/resources/js/components/ui/input/index.ts
+++ b/resources/js/components/ui/input/index.ts
@@ -1,2 +1 @@
export { default as Input } from './Input.vue';
-export { default as InputMask } from './InputMask.vue';
diff --git a/resources/js/composables/useDateMaska.ts b/resources/js/composables/useDateMaska.ts
deleted file mode 100644
index 178a9d2d6..000000000
--- a/resources/js/composables/useDateMaska.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-export function useDateMaska() {
- const dateOptions = {
- 'data-maska': '##/##/####',
- 'data-maska-tokens': '#:[0-9]',
- };
-
- return {
- dateOptions,
- };
-}
diff --git a/resources/js/layouts/GuestLayout.vue b/resources/js/layouts/GuestLayout.vue
deleted file mode 100644
index 6dbc54e03..000000000
--- a/resources/js/layouts/GuestLayout.vue
+++ /dev/null
@@ -1,38 +0,0 @@
-<script setup lang="ts">
-import dayjs from '@/dayjs';
-
-defineProps<{
- title?: string;
-}>();
-
-const currentYear = dayjs().year();
-</script>
-
-<template>
- <div class="min-h-svh bg-background">
- <!-- Header -->
- <header class="border-b">
- <div class="mx-auto max-w-5xl px-6 py-4 flex items-center justify-between">
- <div class="flex items-center gap-2">
- <img src="/images/trypost/logo-light.png" alt="TryPost" class="dark:hidden h-7 w-auto" />
- <img src="/images/trypost/logo-dark.png" alt="TryPost" class="hidden dark:block h-7 w-auto" />
- </div>
- </div>
- </header>
-
- <!-- Main Content -->
- <main class="mx-auto max-w-5xl px-6 py-12">
- <h1 v-if="title" class="text-3xl font-bold mb-8">{{ title }}</h1>
- <slot />
- </main>
-
- <!-- Footer -->
- <footer class="border-t mt-auto">
- <div class="mx-auto max-w-5xl px-6 py-8">
- <p class="text-sm text-muted-foreground text-center">
- &copy; {{ currentYear }} TryPost. All rights reserved.
- </p>
- </div>
- </footer>
- </div>
-</template>
diff --git a/resources/js/layouts/auth/AuthCardLayout.vue b/resources/js/layouts/auth/AuthCardLayout.vue
deleted file mode 100644
index 21c2c4fa2..000000000
--- a/resources/js/layouts/auth/AuthCardLayout.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-<script setup lang="ts">
-import { Link } from '@inertiajs/vue3';
-
-import {
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
-} from '@/components/ui/card';
-import { home } from '@/routes/app';
-
-defineProps<{
- title?: string;
- description?: string;
-}>();
-</script>
-
-<template>
- <div class="flex min-h-svh flex-col items-center justify-center gap-6 bg-muted p-6 md:p-10">
- <div class="flex w-full max-w-md flex-col gap-6">
- <Link :href="home()" class="flex items-center gap-2 self-center font-medium">
- <div class="flex h-9 w-9 items-center justify-center">
- <img src="/images/trypost/logo-light.png" alt="TryPost" class="dark:hidden h-8 w-auto" />
- <img src="/images/trypost/logo-dark.png" alt="TryPost" class="hidden dark:block h-8 w-auto" />
- </div>
- </Link>
-
- <div class="flex flex-col gap-6">
- <Card class="rounded-xl">
- <CardHeader class="px-10 pt-8 pb-0 text-center">
- <CardTitle class="text-xl">{{ title }}</CardTitle>
- <CardDescription>
- {{ description }}
- </CardDescription>
- </CardHeader>
- <CardContent class="px-10 py-8">
- <slot />
- </CardContent>
- </Card>
- </div>
- </div>
- </div>
-</template>
\ No newline at end of file
diff --git a/resources/js/layouts/auth/AuthSimpleLayout.vue b/resources/js/layouts/auth/AuthSimpleLayout.vue
deleted file mode 100644
index fdf5921c0..000000000
--- a/resources/js/layouts/auth/AuthSimpleLayout.vue
+++ /dev/null
@@ -1,33 +0,0 @@
-<script setup lang="ts">
-import { Link } from '@inertiajs/vue3';
-
-import { home } from '@/routes/app';
-
-defineProps<{
- title?: string;
- description?: string;
-}>();
-</script>
-
-<template>
- <div class="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10">
- <div class="w-full max-w-sm">
- <div class="flex flex-col gap-8">
- <div class="flex flex-col items-center gap-4">
- <Link :href="home()" class="flex flex-col items-center gap-2 font-medium">
- <img src="/images/trypost/logo-light.png" alt="TryPost" class="dark:hidden h-8 w-auto" />
- <img src="/images/trypost/logo-dark.png" alt="TryPost" class="hidden dark:block h-8 w-auto" />
- <span class="sr-only">{{ title }}</span>
- </Link>
- <div class="space-y-2 text-center">
- <h1 class="text-xl font-medium">{{ title }}</h1>
- <p class="text-center text-sm text-muted-foreground">
- {{ description }}
- </p>
- </div>
- </div>
- <slot />
- </div>
- </div>
- </div>
-</template>
\ No newline at end of file