use crm- components everywhere

This commit is contained in:
2025-11-21 13:21:59 +01:00
parent 34fa8d6a0d
commit c152842e87
27 changed files with 81 additions and 60 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
<script setup lang="ts">
import AppLayout from '@/layouts/AppLayout.vue';
import { crm } from '@/routes';
import { Head } from '@inertiajs/vue3';
</script>
@@ -8,6 +7,6 @@ import { Head } from '@inertiajs/vue3';
<Head title="Dashboard" />
<AppLayout>
<AppLayout title="Dashboard">
</AppLayout>
</template>
+1 -1
View File
@@ -7,7 +7,7 @@ import { Address, Customer } from '@/types'
import { newCustomer } from '@/types/index.d'
import { bgColorForString } from '@/lib/utils'
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
import { Input } from '@/components/ui/input'
import { Input } from '@/components/ui/crm-input'
import { Button } from '@/components/ui/crm-button'
import { ButtonGroup } from '@/components/ui/button-group'
import { Delete, Globe, House, LayoutGrid, Mail, Phone, Plus, Rows3, Search, Smartphone } from "lucide-vue-next"
+5 -16
View File
@@ -1,20 +1,9 @@
<script setup lang="ts">
import AppLayout from '@/layouts/AppLayout.vue';
import { dashboard } from '@/routes';
import { Head } from '@inertiajs/vue3';
import PlaceholderPattern from '../components/PlaceholderPattern.vue';
import { usePage } from '@inertiajs/vue3';
import { Trophy, ShieldCheck, Star, ArrowRight, UserCheck, UserCheck2 } from 'lucide-vue-next';
import { Trophy, ArrowRight, UserCheck2 } from 'lucide-vue-next';
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"
import {
Table,
TableBody,
TableCaption,
TableCell,
TableHead,
TableHeader,
TableRow,
} from '@/components/ui/table';
import { Table, TableCell, TableHead, TableRow, } from '@/components/ui/table';
const page = usePage();
const token = page.props.flash?.token;
@@ -65,7 +54,8 @@ if (token) {
</TableRow>
<TableRow>
<TableHead class="text-right px-4">Gestellt, nicht bezahlt</TableHead>
<TableCell class="text-right px-4 text-destructive font-bold tabular-nums">8.637,00 </TableCell>
<TableCell class="text-right px-4 text-destructive font-bold tabular-nums">8.637,00
</TableCell>
</TableRow>
<TableRow class="border-b-slate-600">
<TableHead class="text-right px-4">Noch nicht gestellt</TableHead>
@@ -77,8 +67,7 @@ if (token) {
</TableRow>
</table>
</div>
<div
class="relative flex-1 overflow-y-auto">
<div class="relative flex-1 overflow-y-auto">
Aktuelle Angebote
</div>
</div>
+2 -2
View File
@@ -5,12 +5,12 @@ import { type Invoice } from '@/types'
import { newInvoice } from '@/types/index.d'
import axios from 'axios'
import AppLayout from '@/layouts/AppLayout.vue'
import { Button } from '@/components/ui/crm-button'
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, } from '@/components/ui/select'
import { Button } from '@/components/ui/button'
import DocumentTable from '@/components/documents/DocumentTable.vue'
import { ChevronLeft, ChevronRight, Plus, Search, Delete } from "lucide-vue-next"
import Fuse from 'fuse.js';
import { Input } from '@/components/ui/input'
import { Input } from '@/components/ui/crm-input'
import SelectSeparator from '@/components/ui/select/SelectSeparator.vue'
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip'
import { Kbd, KbdGroup } from '@/components/ui/kbd'
+2 -2
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AuthLayout from '@/layouts/AuthLayout.vue';
import { store } from '@/routes/password/confirm';
+2 -2
View File
@@ -2,8 +2,8 @@
import PasswordResetLinkController from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AuthLayout from '@/layouts/AuthLayout.vue';
import { login } from '@/routes';
+2 -2
View File
@@ -2,9 +2,9 @@
import AuthenticatedSessionController from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
import { Button } from '@/components/ui/crm-button';
import { Checkbox } from '@/components/ui/checkbox';
import { Input } from '@/components/ui/input';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AuthBase from '@/layouts/AuthLayout.vue';
import { register } from '@/routes';
+2 -2
View File
@@ -2,8 +2,8 @@
import RegisteredUserController from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
import InputError from '@/components/InputError.vue';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AuthBase from '@/layouts/AuthLayout.vue';
import { login } from '@/routes';
+2 -2
View File
@@ -1,8 +1,8 @@
<script setup lang="ts">
import NewPasswordController from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AuthLayout from '@/layouts/AuthLayout.vue';
import { Form, Head } from '@inertiajs/vue3';
@@ -1,7 +1,7 @@
<script setup lang="ts">
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { PinInput, PinInputGroup, PinInputSlot } from '@/components/ui/pin-input';
import AuthLayout from '@/layouts/AuthLayout.vue';
import { store } from '@/routes/two-factor/login';
+1 -1
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import EmailVerificationNotificationController from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
import TextLink from '@/components/TextLink.vue';
import { Button } from '@/components/ui/button';
import { Button } from '@/components/ui/crm-button';
import AuthLayout from '@/layouts/AuthLayout.vue';
import { logout } from '@/routes';
import { Form, Head } from '@inertiajs/vue3';
+1 -1
View File
@@ -7,7 +7,7 @@ import SettingsLayout from '@/layouts/settings/Layout.vue';
</script>
<template>
<AppLayout>
<AppLayout title="Erscheinungsbild">
<Head title="Erscheinungsbild" />
<SettingsLayout>
+2 -2
View File
@@ -6,8 +6,8 @@ import SettingsLayout from '@/layouts/settings/Layout.vue';
import { Form, Head } from '@inertiajs/vue3';
import { ref } from 'vue';
import HeadingSmall from '@/components/HeadingSmall.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
const passwordInput = ref<HTMLInputElement | null>(null);
+2 -2
View File
@@ -6,8 +6,8 @@ import { Form, Link, usePage } from '@inertiajs/vue3';
import DeleteUser from '@/components/DeleteUser.vue';
import HeadingSmall from '@/components/HeadingSmall.vue';
import InputError from '@/components/InputError.vue';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/crm-button';
import { Input } from '@/components/ui/crm-input';
import { Label } from '@/components/ui/label';
import AppLayout from '@/layouts/AppLayout.vue';
import SettingsLayout from '@/layouts/settings/Layout.vue';
+1 -1
View File
@@ -3,7 +3,7 @@ import HeadingSmall from '@/components/HeadingSmall.vue';
import TwoFactorRecoveryCodes from '@/components/TwoFactorRecoveryCodes.vue';
import TwoFactorSetupModal from '@/components/TwoFactorSetupModal.vue';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Button } from '@/components/ui/crm-button';
import { useTwoFactorAuth } from '@/composables/useTwoFactorAuth';
import AppLayout from '@/layouts/AppLayout.vue';
import SettingsLayout from '@/layouts/settings/Layout.vue';