@edgedev/create-edge-app 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.dev +1 -0
- package/.vscode/settings.json +1 -1
- package/app.vue +72 -21
- package/assets/css/tailwind.css +78 -0
- package/bin/cli.js +1 -1
- package/components/subToolbar.vue +4 -13
- package/components/ui/accordion/Accordion.vue +19 -0
- package/components/ui/accordion/AccordionContent.vue +24 -0
- package/components/ui/accordion/AccordionItem.vue +24 -0
- package/components/ui/accordion/AccordionTrigger.vue +39 -0
- package/components/ui/accordion/index.js +4 -0
- package/components/ui/accordion/index.ts +4 -0
- package/components/ui/alert/Alert.vue +16 -0
- package/components/ui/alert/AlertDescription.vue +14 -0
- package/components/ui/alert/AlertTitle.vue +14 -0
- package/components/ui/alert/index.js +21 -0
- package/components/ui/alert/index.ts +23 -0
- package/components/ui/alert-dialog/AlertDialog.vue +14 -0
- package/components/ui/alert-dialog/AlertDialogAction.vue +20 -0
- package/components/ui/alert-dialog/AlertDialogCancel.vue +20 -0
- package/components/ui/alert-dialog/AlertDialogContent.vue +42 -0
- package/components/ui/alert-dialog/AlertDialogDescription.vue +25 -0
- package/components/ui/alert-dialog/AlertDialogFooter.vue +21 -0
- package/components/ui/alert-dialog/AlertDialogHeader.vue +16 -0
- package/components/ui/alert-dialog/AlertDialogTitle.vue +22 -0
- package/components/ui/alert-dialog/AlertDialogTrigger.vue +11 -0
- package/components/ui/alert-dialog/index.ts +9 -0
- package/components/ui/aspect-ratio/AspectRatio.vue +11 -0
- package/components/ui/aspect-ratio/index.ts +1 -0
- package/components/ui/auto-form/AutoForm.vue +105 -0
- package/components/ui/auto-form/AutoFormField.vue +45 -0
- package/components/ui/auto-form/AutoFormFieldArray.vue +110 -0
- package/components/ui/auto-form/AutoFormFieldBoolean.vue +41 -0
- package/components/ui/auto-form/AutoFormFieldDate.vue +57 -0
- package/components/ui/auto-form/AutoFormFieldEnum.vue +49 -0
- package/components/ui/auto-form/AutoFormFieldFile.vue +74 -0
- package/components/ui/auto-form/AutoFormFieldInput.vue +36 -0
- package/components/ui/auto-form/AutoFormFieldNumber.vue +32 -0
- package/components/ui/auto-form/AutoFormFieldObject.vue +78 -0
- package/components/ui/auto-form/AutoFormLabel.vue +14 -0
- package/components/ui/auto-form/constant.ts +39 -0
- package/components/ui/auto-form/dependencies.ts +92 -0
- package/components/ui/auto-form/index.ts +15 -0
- package/components/ui/auto-form/interface.ts +81 -0
- package/components/ui/auto-form/utils.ts +171 -0
- package/components/ui/avatar/Avatar.vue +21 -0
- package/components/ui/avatar/AvatarFallback.vue +11 -0
- package/components/ui/avatar/AvatarImage.vue +9 -0
- package/components/ui/avatar/index.ts +24 -0
- package/components/ui/badge/Badge.vue +16 -0
- package/components/ui/badge/index.ts +25 -0
- package/components/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/components/ui/breadcrumb/BreadcrumbEllipsis.vue +22 -0
- package/components/ui/breadcrumb/BreadcrumbItem.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbLink.vue +19 -0
- package/components/ui/breadcrumb/BreadcrumbList.vue +16 -0
- package/components/ui/breadcrumb/BreadcrumbPage.vue +19 -0
- package/components/ui/breadcrumb/BreadcrumbSeparator.vue +21 -0
- package/components/ui/breadcrumb/index.ts +7 -0
- package/components/ui/button/Button.vue +26 -0
- package/components/ui/button/index.js +33 -0
- package/components/ui/button/index.ts +35 -0
- package/components/ui/calendar/Calendar.vue +60 -0
- package/components/ui/calendar/CalendarCell.vue +24 -0
- package/components/ui/calendar/CalendarCellTrigger.vue +38 -0
- package/components/ui/calendar/CalendarGrid.vue +24 -0
- package/components/ui/calendar/CalendarGridBody.vue +11 -0
- package/components/ui/calendar/CalendarGridHead.vue +11 -0
- package/components/ui/calendar/CalendarGridRow.vue +21 -0
- package/components/ui/calendar/CalendarHeadCell.vue +21 -0
- package/components/ui/calendar/CalendarHeader.vue +21 -0
- package/components/ui/calendar/CalendarHeading.vue +27 -0
- package/components/ui/calendar/CalendarNextButton.vue +32 -0
- package/components/ui/calendar/CalendarPrevButton.vue +32 -0
- package/components/ui/calendar/index.ts +12 -0
- package/components/ui/card/Card.vue +21 -0
- package/components/ui/card/CardContent.vue +14 -0
- package/components/ui/card/CardDescription.vue +14 -0
- package/components/ui/card/CardFooter.vue +14 -0
- package/components/ui/card/CardHeader.vue +14 -0
- package/components/ui/card/CardTitle.vue +18 -0
- package/components/ui/card/index.js +6 -0
- package/components/ui/card/index.ts +6 -0
- package/components/ui/carousel/Carousel.vue +44 -0
- package/components/ui/carousel/CarouselContent.vue +29 -0
- package/components/ui/carousel/CarouselItem.vue +23 -0
- package/components/ui/carousel/CarouselNext.vue +30 -0
- package/components/ui/carousel/CarouselPrevious.vue +30 -0
- package/components/ui/carousel/index.ts +10 -0
- package/components/ui/carousel/interface.ts +20 -0
- package/components/ui/carousel/useCarousel.ts +59 -0
- package/components/ui/chart/ChartCrosshair.vue +44 -0
- package/components/ui/chart/ChartLegend.vue +50 -0
- package/components/ui/chart/ChartSingleTooltip.vue +63 -0
- package/components/ui/chart/ChartTooltip.vue +40 -0
- package/components/ui/chart/index.ts +18 -0
- package/components/ui/chart/interface.ts +64 -0
- package/components/ui/chart-area/AreaChart.vue +136 -0
- package/components/ui/chart-area/index.ts +66 -0
- package/components/ui/chart-bar/BarChart.vue +115 -0
- package/components/ui/chart-bar/index.ts +66 -0
- package/components/ui/chart-donut/DonutChart.vue +100 -0
- package/components/ui/chart-donut/index.ts +39 -0
- package/components/ui/chart-line/LineChart.vue +105 -0
- package/components/ui/chart-line/index.ts +66 -0
- package/components/ui/checkbox/Checkbox.vue +33 -0
- package/components/ui/checkbox/index.ts +1 -0
- package/components/ui/collapsible/Collapsible.vue +15 -0
- package/components/ui/collapsible/CollapsibleContent.vue +11 -0
- package/components/ui/collapsible/CollapsibleTrigger.vue +11 -0
- package/components/ui/collapsible/index.ts +3 -0
- package/components/ui/command/Command.vue +30 -0
- package/components/ui/command/CommandDialog.vue +21 -0
- package/components/ui/command/CommandEmpty.vue +20 -0
- package/components/ui/command/CommandGroup.vue +29 -0
- package/components/ui/command/CommandInput.vue +33 -0
- package/components/ui/command/CommandItem.vue +26 -0
- package/components/ui/command/CommandList.vue +27 -0
- package/components/ui/command/CommandSeparator.vue +23 -0
- package/components/ui/command/CommandShortcut.vue +14 -0
- package/components/ui/command/index.js +9 -0
- package/components/ui/command/index.ts +9 -0
- package/components/ui/context-menu/ContextMenu.vue +15 -0
- package/components/ui/context-menu/ContextMenuCheckboxItem.vue +40 -0
- package/components/ui/context-menu/ContextMenuContent.vue +36 -0
- package/components/ui/context-menu/ContextMenuGroup.vue +11 -0
- package/components/ui/context-menu/ContextMenuItem.vue +34 -0
- package/components/ui/context-menu/ContextMenuLabel.vue +25 -0
- package/components/ui/context-menu/ContextMenuPortal.vue +11 -0
- package/components/ui/context-menu/ContextMenuRadioGroup.vue +19 -0
- package/components/ui/context-menu/ContextMenuRadioItem.vue +40 -0
- package/components/ui/context-menu/ContextMenuSeparator.vue +20 -0
- package/components/ui/context-menu/ContextMenuShortcut.vue +14 -0
- package/components/ui/context-menu/ContextMenuSub.vue +19 -0
- package/components/ui/context-menu/ContextMenuSubContent.vue +35 -0
- package/components/ui/context-menu/ContextMenuSubTrigger.vue +34 -0
- package/components/ui/context-menu/ContextMenuTrigger.vue +13 -0
- package/components/ui/context-menu/index.ts +14 -0
- package/components/ui/dialog/Dialog.vue +14 -0
- package/components/ui/dialog/DialogClose.vue +11 -0
- package/components/ui/dialog/DialogContent.vue +50 -0
- package/components/ui/dialog/DialogDescription.vue +24 -0
- package/components/ui/dialog/DialogFooter.vue +19 -0
- package/components/ui/dialog/DialogHeader.vue +16 -0
- package/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/components/ui/dialog/DialogTitle.vue +29 -0
- package/components/ui/dialog/DialogTrigger.vue +11 -0
- package/components/ui/dialog/index.js +9 -0
- package/components/ui/dialog/index.ts +9 -0
- package/components/ui/drawer/Drawer.vue +19 -0
- package/components/ui/drawer/DrawerContent.vue +28 -0
- package/components/ui/drawer/DrawerDescription.vue +20 -0
- package/components/ui/drawer/DrawerFooter.vue +14 -0
- package/components/ui/drawer/DrawerHeader.vue +14 -0
- package/components/ui/drawer/DrawerOverlay.vue +18 -0
- package/components/ui/drawer/DrawerTitle.vue +20 -0
- package/components/ui/drawer/index.ts +8 -0
- package/components/ui/dropdown-menu/DropdownMenu.vue +14 -0
- package/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +40 -0
- package/components/ui/dropdown-menu/DropdownMenuContent.vue +38 -0
- package/components/ui/dropdown-menu/DropdownMenuGroup.vue +11 -0
- package/components/ui/dropdown-menu/DropdownMenuItem.vue +28 -0
- package/components/ui/dropdown-menu/DropdownMenuLabel.vue +24 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +19 -0
- package/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +41 -0
- package/components/ui/dropdown-menu/DropdownMenuSeparator.vue +22 -0
- package/components/ui/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
- package/components/ui/dropdown-menu/DropdownMenuSubContent.vue +30 -0
- package/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +33 -0
- package/components/ui/dropdown-menu/DropdownMenuTrigger.vue +13 -0
- package/components/ui/dropdown-menu/index.ts +16 -0
- package/components/ui/form/FormControl.vue +16 -0
- package/components/ui/form/FormDescription.vue +20 -0
- package/components/ui/form/FormItem.vue +19 -0
- package/components/ui/form/FormLabel.vue +23 -0
- package/components/ui/form/FormMessage.vue +16 -0
- package/components/ui/form/index.js +7 -0
- package/components/ui/form/index.ts +7 -0
- package/components/ui/form/injectionKeys.js +1 -0
- package/components/ui/form/injectionKeys.ts +4 -0
- package/components/ui/form/useFormField.js +36 -0
- package/components/ui/form/useFormField.ts +30 -0
- package/components/ui/hover-card/HoverCard.vue +14 -0
- package/components/ui/hover-card/HoverCardContent.vue +41 -0
- package/components/ui/hover-card/HoverCardTrigger.vue +11 -0
- package/components/ui/hover-card/index.ts +3 -0
- package/components/ui/input/Input.vue +24 -0
- package/components/ui/input/index.js +1 -0
- package/components/ui/input/index.ts +1 -0
- package/components/ui/label/Label.vue +27 -0
- package/components/ui/label/index.js +1 -0
- package/components/ui/label/index.ts +1 -0
- package/components/ui/menubar/Menubar.vue +35 -0
- package/components/ui/menubar/MenubarCheckboxItem.vue +40 -0
- package/components/ui/menubar/MenubarContent.vue +43 -0
- package/components/ui/menubar/MenubarGroup.vue +11 -0
- package/components/ui/menubar/MenubarItem.vue +35 -0
- package/components/ui/menubar/MenubarLabel.vue +13 -0
- package/components/ui/menubar/MenubarMenu.vue +11 -0
- package/components/ui/menubar/MenubarRadioGroup.vue +20 -0
- package/components/ui/menubar/MenubarRadioItem.vue +40 -0
- package/components/ui/menubar/MenubarSeparator.vue +19 -0
- package/components/ui/menubar/MenubarShortcut.vue +14 -0
- package/components/ui/menubar/MenubarSub.vue +19 -0
- package/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/components/ui/menubar/MenubarSubTrigger.vue +30 -0
- package/components/ui/menubar/MenubarTrigger.vue +29 -0
- package/components/ui/menubar/index.ts +15 -0
- package/components/ui/navigation-menu/NavigationMenu.vue +33 -0
- package/components/ui/navigation-menu/NavigationMenuContent.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuIndicator.vue +24 -0
- package/components/ui/navigation-menu/NavigationMenuItem.vue +11 -0
- package/components/ui/navigation-menu/NavigationMenuLink.vue +19 -0
- package/components/ui/navigation-menu/NavigationMenuList.vue +29 -0
- package/components/ui/navigation-menu/NavigationMenuTrigger.vue +34 -0
- package/components/ui/navigation-menu/NavigationMenuViewport.vue +33 -0
- package/components/ui/navigation-menu/index.ts +12 -0
- package/components/ui/number-field/NumberField.vue +23 -0
- package/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/components/ui/number-field/NumberFieldDecrement.vue +25 -0
- package/components/ui/number-field/NumberFieldIncrement.vue +25 -0
- package/components/ui/number-field/NumberFieldInput.vue +8 -0
- package/components/ui/number-field/index.ts +5 -0
- package/components/ui/pagination/PaginationEllipsis.vue +22 -0
- package/components/ui/pagination/PaginationFirst.vue +29 -0
- package/components/ui/pagination/PaginationLast.vue +29 -0
- package/components/ui/pagination/PaginationNext.vue +29 -0
- package/components/ui/pagination/PaginationPrev.vue +29 -0
- package/components/ui/pagination/index.ts +10 -0
- package/components/ui/pin-input/PinInput.vue +23 -0
- package/components/ui/pin-input/PinInputGroup.vue +18 -0
- package/components/ui/pin-input/PinInputInput.vue +18 -0
- package/components/ui/pin-input/PinInputSeparator.vue +15 -0
- package/components/ui/pin-input/index.ts +4 -0
- package/components/ui/popover/Popover.vue +15 -0
- package/components/ui/popover/PopoverContent.vue +48 -0
- package/components/ui/popover/PopoverTrigger.vue +11 -0
- package/components/ui/popover/index.js +3 -0
- package/components/ui/popover/index.ts +3 -0
- package/components/ui/progress/Progress.vue +39 -0
- package/components/ui/progress/index.js +1 -0
- package/components/ui/progress/index.ts +1 -0
- package/components/ui/radio-group/RadioGroup.vue +25 -0
- package/components/ui/radio-group/RadioGroupItem.vue +39 -0
- package/components/ui/radio-group/index.ts +2 -0
- package/components/ui/range-calendar/RangeCalendar.vue +60 -0
- package/components/ui/range-calendar/RangeCalendarCell.vue +24 -0
- package/components/ui/range-calendar/RangeCalendarCellTrigger.vue +40 -0
- package/components/ui/range-calendar/RangeCalendarGrid.vue +24 -0
- package/components/ui/range-calendar/RangeCalendarGridBody.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridHead.vue +11 -0
- package/components/ui/range-calendar/RangeCalendarGridRow.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarHeadCell.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarHeader.vue +21 -0
- package/components/ui/range-calendar/RangeCalendarHeading.vue +27 -0
- package/components/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
- package/components/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
- package/components/ui/range-calendar/index.ts +12 -0
- package/components/ui/resizable/ResizableHandle.vue +26 -0
- package/components/ui/resizable/ResizablePanelGroup.vue +21 -0
- package/components/ui/resizable/index.ts +3 -0
- package/components/ui/scroll-area/ScrollArea.vue +29 -0
- package/components/ui/scroll-area/ScrollBar.vue +30 -0
- package/components/ui/scroll-area/index.ts +2 -0
- package/components/ui/select/Select.vue +15 -0
- package/components/ui/select/SelectContent.vue +53 -0
- package/components/ui/select/SelectGroup.vue +19 -0
- package/components/ui/select/SelectItem.vue +44 -0
- package/components/ui/select/SelectItemText.vue +11 -0
- package/components/ui/select/SelectLabel.vue +13 -0
- package/components/ui/select/SelectScrollDownButton.vue +24 -0
- package/components/ui/select/SelectScrollUpButton.vue +24 -0
- package/components/ui/select/SelectSeparator.vue +17 -0
- package/components/ui/select/SelectTrigger.vue +31 -0
- package/components/ui/select/SelectValue.vue +11 -0
- package/components/ui/select/index.ts +11 -0
- package/components/ui/separator/Separator.vue +20 -0
- package/components/ui/separator/index.js +1 -0
- package/components/ui/separator/index.ts +1 -0
- package/components/ui/sheet/Sheet.vue +14 -0
- package/components/ui/sheet/SheetClose.vue +11 -0
- package/components/ui/sheet/SheetContent.vue +56 -0
- package/components/ui/sheet/SheetDescription.vue +22 -0
- package/components/ui/sheet/SheetFooter.vue +19 -0
- package/components/ui/sheet/SheetHeader.vue +16 -0
- package/components/ui/sheet/SheetTitle.vue +22 -0
- package/components/ui/sheet/SheetTrigger.vue +11 -0
- package/components/ui/sheet/index.ts +31 -0
- package/components/ui/skeleton/Skeleton.vue +14 -0
- package/components/ui/skeleton/index.ts +1 -0
- package/components/ui/slider/Slider.vue +36 -0
- package/components/ui/slider/index.ts +1 -0
- package/components/ui/sonner/Sonner.vue +22 -0
- package/components/ui/sonner/index.ts +1 -0
- package/components/ui/switch/Switch.vue +37 -0
- package/components/ui/switch/index.ts +1 -0
- package/components/ui/table/Table.vue +16 -0
- package/components/ui/table/TableBody.vue +14 -0
- package/components/ui/table/TableCaption.vue +14 -0
- package/components/ui/table/TableCell.vue +21 -0
- package/components/ui/table/TableEmpty.vue +37 -0
- package/components/ui/table/TableFooter.vue +14 -0
- package/components/ui/table/TableHead.vue +14 -0
- package/components/ui/table/TableHeader.vue +14 -0
- package/components/ui/table/TableRow.vue +14 -0
- package/components/ui/table/index.ts +8 -0
- package/components/ui/tabs/Tabs.vue +15 -0
- package/components/ui/tabs/TabsContent.vue +22 -0
- package/components/ui/tabs/TabsList.vue +25 -0
- package/components/ui/tabs/TabsTrigger.vue +27 -0
- package/components/ui/tabs/index.ts +4 -0
- package/components/ui/tags-input/TagsInput.vue +22 -0
- package/components/ui/tags-input/TagsInputInput.vue +19 -0
- package/components/ui/tags-input/TagsInputItem.vue +22 -0
- package/components/ui/tags-input/TagsInputItemDelete.vue +24 -0
- package/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/components/ui/tags-input/index.ts +5 -0
- package/components/ui/textarea/Textarea.vue +24 -0
- package/components/ui/textarea/index.ts +1 -0
- package/components/ui/toast/Toast.vue +28 -0
- package/components/ui/toast/ToastAction.vue +19 -0
- package/components/ui/toast/ToastClose.vue +22 -0
- package/components/ui/toast/ToastDescription.vue +19 -0
- package/components/ui/toast/ToastProvider.vue +11 -0
- package/components/ui/toast/ToastTitle.vue +19 -0
- package/components/ui/toast/ToastViewport.vue +17 -0
- package/components/ui/toast/Toaster.vue +30 -0
- package/components/ui/toast/index.ts +38 -0
- package/components/ui/toast/use-toast.ts +165 -0
- package/components/ui/toggle/Toggle.vue +35 -0
- package/components/ui/toggle/index.ts +27 -0
- package/components/ui/toggle-group/ToggleGroup.vue +34 -0
- package/components/ui/toggle-group/ToggleGroupItem.vue +35 -0
- package/components/ui/toggle-group/index.ts +2 -0
- package/components/ui/tooltip/Tooltip.vue +14 -0
- package/components/ui/tooltip/TooltipContent.vue +31 -0
- package/components/ui/tooltip/TooltipProvider.vue +11 -0
- package/components/ui/tooltip/TooltipTrigger.vue +11 -0
- package/components/ui/tooltip/index.ts +4 -0
- package/components/ui/v-calendar/Calendar.vue +331 -0
- package/components/ui/v-calendar/index.ts +22 -0
- package/components.json +17 -0
- package/edge-components-install.sh +1 -0
- package/jsconfig.json +9 -0
- package/lib/utils.ts +6 -0
- package/nuxt.config.ts +28 -11
- package/package.json +33 -14
- package/pages/app/account/[page].vue +71 -0
- package/pages/app/dashboard/[[collection]]/[[docId]].vue +181 -0
- package/pages/app/login.vue +9 -7
- package/pages/app/signup.vue +9 -7
- package/plugins/icons.ts +72 -0
- package/tailwind.config.js +85 -0
- package/components/.gitkeep +0 -0
- package/components/account.vue +0 -107
- package/components/billing.vue +0 -8
- package/components/bottomMenu.vue +0 -35
- package/components/dashboard.vue +0 -186
- package/components/editor.vue +0 -247
- package/components/topMenu.vue +0 -17
- package/components/userMenu.vue +0 -64
- package/composables/vuetify.ts +0 -10
- package/pages/app/[[page]]/[[collection]]/[[docId]].vue +0 -48
- package/plugins/edgeFirebaseFramework.ts +0 -5
- package/plugins/vuetify.ts +0 -14
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { toTypedSchema } from '@vee-validate/zod'
|
|
3
|
+
import * as z from 'zod'
|
|
4
|
+
const route = useRoute()
|
|
5
|
+
const router = useRouter()
|
|
6
|
+
// const edgeGlobal = inject('edgeGlobal')
|
|
7
|
+
|
|
8
|
+
const state = reactive({
|
|
9
|
+
filter: '',
|
|
10
|
+
newDocs: {
|
|
11
|
+
things: {
|
|
12
|
+
name: { bindings: { 'field-type': 'text', 'label': 'Name', 'helper': 'Name' }, cols: '12', value: '' },
|
|
13
|
+
description: { bindings: { 'field-type': 'text', 'label': 'Description', 'helper': 'Description' }, cols: '12', value: '' },
|
|
14
|
+
subthings: { bindings: { 'field-type': 'collection', 'label': 'Subthings', 'helper': 'Subthings', 'collection-path': 'subthings' }, cols: '12', value: '' },
|
|
15
|
+
},
|
|
16
|
+
subthings: {
|
|
17
|
+
name: { bindings: { 'field-type': 'text', 'label': 'Name', 'helper': 'Name' }, cols: '6', value: '' },
|
|
18
|
+
test: { bindings: { 'field-type': 'boolean', 'label': 'Description', 'helper': 'Test' }, cols: '6', value: '' },
|
|
19
|
+
selectTest: { bindings: { 'field-type': 'select', 'label': 'Select', 'helper': 'Select', 'items': ['test1', 'test2', 'test3'] }, cols: '12', value: '' },
|
|
20
|
+
testtextarea: { bindings: { 'field-type': 'textarea', 'label': 'Test Textarea', 'helper': 'Textarea' }, cols: '12', value: '' },
|
|
21
|
+
arrayThing: { bindings: { 'field-type': 'array', 'label': 'Array', 'helper': 'Array' }, cols: '12', value: [] },
|
|
22
|
+
objectThing: { bindings: { 'field-type': 'object', 'label': 'Object', 'helper': 'Obj' }, cols: '12', value: {} },
|
|
23
|
+
stringArray: { bindings: { 'field-type': 'stringArray', 'label': 'stringArray', 'helper': 'Obj' }, cols: '12', value: [] },
|
|
24
|
+
numberArray: { bindings: { 'field-type': 'numberArray', 'label': 'numberArray', 'helper': 'Obj' }, cols: '12', value: [] },
|
|
25
|
+
intArray: { bindings: { 'field-type': 'intArray', 'label': 'intArray', 'helper': 'Obj' }, cols: '12', value: [] },
|
|
26
|
+
usersThing: { bindings: { 'field-type': 'users', 'label': 'Users', 'helper': 'Users', 'hint': 'Choose a user' }, cols: '12', value: '' },
|
|
27
|
+
numberTest: { bindings: { 'field-type': 'number', 'label': 'Number', 'helper': 'Number' }, cols: '12', value: 0 },
|
|
28
|
+
intTest: { bindings: { 'field-type': 'integer', 'label': 'Int', 'helper': 'Int' }, cols: '12', value: 0 },
|
|
29
|
+
moneyTest: { bindings: { 'field-type': 'money', 'label': 'Money', 'helper': 'Money' }, cols: '12', value: 0 },
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
const schemas = {
|
|
35
|
+
things: toTypedSchema(z.object({
|
|
36
|
+
name: z.string({
|
|
37
|
+
required_error: 'Name is required',
|
|
38
|
+
}).min(1, { message: 'Name is required' }),
|
|
39
|
+
})),
|
|
40
|
+
subthings: toTypedSchema(z.object({
|
|
41
|
+
name: z.string({
|
|
42
|
+
required_error: 'Name is required',
|
|
43
|
+
}).min(1, { message: 'Name is required' }),
|
|
44
|
+
})),
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const collection = computed(() => {
|
|
48
|
+
if (route.params.collection) {
|
|
49
|
+
return route.params.collection
|
|
50
|
+
}
|
|
51
|
+
return 'things'
|
|
52
|
+
})
|
|
53
|
+
const docId = computed(() => {
|
|
54
|
+
if (route.params.docId) {
|
|
55
|
+
return route.params.docId
|
|
56
|
+
}
|
|
57
|
+
return ''
|
|
58
|
+
})
|
|
59
|
+
definePageMeta({
|
|
60
|
+
middleware: 'auth',
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
onMounted(() => {
|
|
64
|
+
if (!route.params.collection) {
|
|
65
|
+
// If making a static collection route, this onMounted should be removed
|
|
66
|
+
router.push('/app/dashboard/things')
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<template>
|
|
72
|
+
<div
|
|
73
|
+
v-if="edgeGlobal.edgeState.organizationDocPath"
|
|
74
|
+
class="p-3 w-full h-[calc(100vh-118px)] overflow-y-auto"
|
|
75
|
+
>
|
|
76
|
+
<edge-dashboard v-if="docId === ''" :filter="state.filter" :collection="collection">
|
|
77
|
+
<template #header-start>
|
|
78
|
+
<LayoutDashboard class="mr-2" />
|
|
79
|
+
<span class="capitalize">{{ collection }}</span>
|
|
80
|
+
</template>
|
|
81
|
+
<template #header-center>
|
|
82
|
+
<div class="w-full px-6">
|
|
83
|
+
<edge-shad-input
|
|
84
|
+
v-model="state.filter"
|
|
85
|
+
label=""
|
|
86
|
+
name="filter"
|
|
87
|
+
placeholder="Filter..."
|
|
88
|
+
/>
|
|
89
|
+
</div>
|
|
90
|
+
</template>
|
|
91
|
+
<template #header-end="slotProps">
|
|
92
|
+
<edge-shad-button class="uppercase bg-slate-600" :to="`/app/dashboard/${collection}/new`">
|
|
93
|
+
Add {{ slotProps.title }}
|
|
94
|
+
</edge-shad-button>
|
|
95
|
+
</template>
|
|
96
|
+
<template #list-item="slotProps">
|
|
97
|
+
<edge-shad-button variant="text" class="cursor-pointer w-full flex justify-between slotProps.items-center py-2 gap-3" :to="`/app/dashboard/${collection}/${slotProps.item.docId}`">
|
|
98
|
+
<div>
|
|
99
|
+
<Avatar class="cursor-pointer p-0 h-8 w-8 mr-2">
|
|
100
|
+
<FilePenLine class="h-5 w-5" />
|
|
101
|
+
</Avatar>
|
|
102
|
+
</div>
|
|
103
|
+
<div class="grow text-left">
|
|
104
|
+
<div class="text-lg">
|
|
105
|
+
{{ slotProps.item.name }}
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div>
|
|
109
|
+
<edge-shad-button
|
|
110
|
+
size="icon"
|
|
111
|
+
class="bg-slate-600 h-7 w-7"
|
|
112
|
+
@click.stop="slotProps.deleteItem(slotProps.item.docId)"
|
|
113
|
+
>
|
|
114
|
+
<Trash class="h-5 w-5" />
|
|
115
|
+
</edge-shad-button>
|
|
116
|
+
</div>
|
|
117
|
+
</edge-shad-button>
|
|
118
|
+
<Separator class="dark:bg-slate-600" />
|
|
119
|
+
</template>
|
|
120
|
+
</edge-dashboard>
|
|
121
|
+
<edge-editor
|
|
122
|
+
v-else
|
|
123
|
+
:collection="collection"
|
|
124
|
+
:doc-id="docId"
|
|
125
|
+
:schema="schemas[collection]"
|
|
126
|
+
:new-doc-schema="state.newDocs[collection]"
|
|
127
|
+
>
|
|
128
|
+
<template #header-start="slotProps">
|
|
129
|
+
<FilePenLine class="mr-2" />
|
|
130
|
+
{{ slotProps.title }}
|
|
131
|
+
</template>
|
|
132
|
+
<template #header-end="slotProps">
|
|
133
|
+
<edge-shad-button
|
|
134
|
+
v-if="!slotProps.unsavedChanges"
|
|
135
|
+
:to="`/app/dashboard/${collection}`"
|
|
136
|
+
class="bg-red-700 uppercase h-8 hover:bg-slate-400 w-20"
|
|
137
|
+
>
|
|
138
|
+
Close
|
|
139
|
+
</edge-shad-button>
|
|
140
|
+
<edge-shad-button
|
|
141
|
+
v-else
|
|
142
|
+
:to="`/app/dashboard/${collection}`"
|
|
143
|
+
class="bg-red-700 uppercase h-8 hover:bg-slate-400 w-20"
|
|
144
|
+
>
|
|
145
|
+
Cancel
|
|
146
|
+
</edge-shad-button>
|
|
147
|
+
<edge-shad-button
|
|
148
|
+
type="submit"
|
|
149
|
+
class="bg-slate-500 uppercase h-8 hover:bg-slate-400 w-20"
|
|
150
|
+
>
|
|
151
|
+
Save
|
|
152
|
+
</edge-shad-button>
|
|
153
|
+
</template>
|
|
154
|
+
<template #footer="slotProps">
|
|
155
|
+
<div class="flex w-full gap-1 items-center justify-end">
|
|
156
|
+
<edge-shad-button
|
|
157
|
+
v-if="!slotProps.unsavedChanges"
|
|
158
|
+
:to="`/app/dashboard/${collection}`"
|
|
159
|
+
class="bg-red-700 uppercase h-8 hover:bg-slate-400 w-20"
|
|
160
|
+
>
|
|
161
|
+
Close
|
|
162
|
+
</edge-shad-button>
|
|
163
|
+
<edge-shad-button
|
|
164
|
+
v-else
|
|
165
|
+
:to="`/app/dashboard/${collection}`"
|
|
166
|
+
class="bg-red-700 uppercase h-8 hover:bg-slate-400 w-20"
|
|
167
|
+
>
|
|
168
|
+
Cancel
|
|
169
|
+
</edge-shad-button>
|
|
170
|
+
|
|
171
|
+
<edge-shad-button
|
|
172
|
+
type="submit"
|
|
173
|
+
class="bg-slate-500 uppercase h-8 hover:bg-slate-400 w-20"
|
|
174
|
+
>
|
|
175
|
+
Save
|
|
176
|
+
</edge-shad-button>
|
|
177
|
+
</div>
|
|
178
|
+
</template>
|
|
179
|
+
</edge-editor>
|
|
180
|
+
</div>
|
|
181
|
+
</template>
|
package/pages/app/login.vue
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
4
|
<template>
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
<div class="flex w-full h-full align-center items-center overflow-y-auto">
|
|
6
|
+
<edge-auth type="login" class="p-8 mx-auto max-w-lg w-full">
|
|
7
|
+
<div class="grid gap-2 text-center">
|
|
8
|
+
<h1 class="text-2xl font-bold">
|
|
9
|
+
Login
|
|
10
|
+
</h1>
|
|
11
|
+
</div>
|
|
12
|
+
</edge-auth>
|
|
13
|
+
</div>
|
|
12
14
|
</template>
|
|
13
15
|
|
|
14
16
|
<style lang="scss" scoped>
|
package/pages/app/signup.vue
CHANGED
|
@@ -3,13 +3,15 @@ const config = useRuntimeConfig()
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<template>
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
<div class="flex w-full h-full align-center overflow-y-auto">
|
|
7
|
+
<edge-auth type="register" :registration-code="config.public.registrationCode" class="p-8 mx-auto max-w-lg w-full">
|
|
8
|
+
<div class="grid gap-2 text-center">
|
|
9
|
+
<h1 class="text-2xl font-bold">
|
|
10
|
+
Sign Up
|
|
11
|
+
</h1>
|
|
12
|
+
</div>
|
|
13
|
+
</edge-auth>
|
|
14
|
+
</div>
|
|
13
15
|
</template>
|
|
14
16
|
|
|
15
17
|
<style lang="scss" scoped>
|
package/plugins/icons.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ArrowLeft,
|
|
3
|
+
ArrowRight,
|
|
4
|
+
Box,
|
|
5
|
+
Braces,
|
|
6
|
+
Brackets,
|
|
7
|
+
CalendarIcon,
|
|
8
|
+
Check,
|
|
9
|
+
ChevronDown,
|
|
10
|
+
ChevronLeft,
|
|
11
|
+
ChevronRight,
|
|
12
|
+
ChevronsUpDown,
|
|
13
|
+
CircleUser,
|
|
14
|
+
Copy,
|
|
15
|
+
Eye,
|
|
16
|
+
EyeOff,
|
|
17
|
+
FilePenLine,
|
|
18
|
+
Grip,
|
|
19
|
+
Group,
|
|
20
|
+
Info,
|
|
21
|
+
LayoutDashboard,
|
|
22
|
+
List,
|
|
23
|
+
ListPlus,
|
|
24
|
+
Loader2,
|
|
25
|
+
LogOut, MoreHorizontal,
|
|
26
|
+
Package,
|
|
27
|
+
Pencil,
|
|
28
|
+
PlusIcon,
|
|
29
|
+
Settings,
|
|
30
|
+
Settings2,
|
|
31
|
+
Trash,
|
|
32
|
+
TrashIcon,
|
|
33
|
+
User,
|
|
34
|
+
Users,
|
|
35
|
+
} from 'lucide-vue-next'
|
|
36
|
+
|
|
37
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
38
|
+
nuxtApp.vueApp.component('Package', Package)
|
|
39
|
+
nuxtApp.vueApp.component('Braces', Braces)
|
|
40
|
+
nuxtApp.vueApp.component('Brackets', Brackets)
|
|
41
|
+
nuxtApp.vueApp.component('Grip', Grip)
|
|
42
|
+
nuxtApp.vueApp.component('ListPlus', ListPlus)
|
|
43
|
+
nuxtApp.vueApp.component('Pencil', Pencil)
|
|
44
|
+
nuxtApp.vueApp.component('Trash', Trash)
|
|
45
|
+
nuxtApp.vueApp.component('Check', Check)
|
|
46
|
+
nuxtApp.vueApp.component('Loader2', Loader2)
|
|
47
|
+
nuxtApp.vueApp.component('User', User)
|
|
48
|
+
nuxtApp.vueApp.component('ChevronsUpDown', ChevronsUpDown)
|
|
49
|
+
nuxtApp.vueApp.component('Eye', Eye)
|
|
50
|
+
nuxtApp.vueApp.component('EyeOff', EyeOff)
|
|
51
|
+
nuxtApp.vueApp.component('CircleUser', CircleUser)
|
|
52
|
+
nuxtApp.vueApp.component('Group', Group)
|
|
53
|
+
nuxtApp.vueApp.component('Settings', Settings)
|
|
54
|
+
nuxtApp.vueApp.component('Users', Users)
|
|
55
|
+
nuxtApp.vueApp.component('Settings2', Settings2)
|
|
56
|
+
nuxtApp.vueApp.component('ChevronDown', ChevronDown)
|
|
57
|
+
nuxtApp.vueApp.component('PlusIcon', PlusIcon)
|
|
58
|
+
nuxtApp.vueApp.component('TrashIcon', TrashIcon)
|
|
59
|
+
nuxtApp.vueApp.component('CalendarIcon', CalendarIcon)
|
|
60
|
+
nuxtApp.vueApp.component('MoreHorizontal', MoreHorizontal)
|
|
61
|
+
nuxtApp.vueApp.component('ChevronRight', ChevronRight)
|
|
62
|
+
nuxtApp.vueApp.component('ChevronLeft', ChevronLeft)
|
|
63
|
+
nuxtApp.vueApp.component('ArrowRight', ArrowRight)
|
|
64
|
+
nuxtApp.vueApp.component('ArrowLeft', ArrowLeft)
|
|
65
|
+
nuxtApp.vueApp.component('Box', Box)
|
|
66
|
+
nuxtApp.vueApp.component('LogOut', LogOut)
|
|
67
|
+
nuxtApp.vueApp.component('Info', Info)
|
|
68
|
+
nuxtApp.vueApp.component('FilePenLine', FilePenLine)
|
|
69
|
+
nuxtApp.vueApp.component('List', List)
|
|
70
|
+
nuxtApp.vueApp.component('Copy', Copy)
|
|
71
|
+
nuxtApp.vueApp.component('LayoutDashboard', LayoutDashboard)
|
|
72
|
+
})
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const animate = require('tailwindcss-animate')
|
|
2
|
+
|
|
3
|
+
/** @type {import('tailwindcss').Config} */
|
|
4
|
+
module.exports = {
|
|
5
|
+
darkMode: ['class'],
|
|
6
|
+
safelist: ['dark'],
|
|
7
|
+
prefix: '',
|
|
8
|
+
theme: {
|
|
9
|
+
container: {
|
|
10
|
+
center: true,
|
|
11
|
+
padding: '2rem',
|
|
12
|
+
screens: {
|
|
13
|
+
'2xl': '1400px',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
extend: {
|
|
17
|
+
colors: {
|
|
18
|
+
border: 'hsl(var(--border))',
|
|
19
|
+
input: 'hsl(var(--input))',
|
|
20
|
+
ring: 'hsl(var(--ring))',
|
|
21
|
+
background: 'hsl(var(--background))',
|
|
22
|
+
foreground: 'hsl(var(--foreground))',
|
|
23
|
+
primary: {
|
|
24
|
+
DEFAULT: 'hsl(var(--primary))',
|
|
25
|
+
foreground: 'hsl(var(--primary-foreground))',
|
|
26
|
+
},
|
|
27
|
+
secondary: {
|
|
28
|
+
DEFAULT: 'hsl(var(--secondary))',
|
|
29
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
|
30
|
+
},
|
|
31
|
+
destructive: {
|
|
32
|
+
DEFAULT: 'hsl(var(--destructive))',
|
|
33
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
|
34
|
+
},
|
|
35
|
+
muted: {
|
|
36
|
+
DEFAULT: 'hsl(var(--muted))',
|
|
37
|
+
foreground: 'hsl(var(--muted-foreground))',
|
|
38
|
+
},
|
|
39
|
+
accent: {
|
|
40
|
+
DEFAULT: 'hsl(var(--accent))',
|
|
41
|
+
foreground: 'hsl(var(--accent-foreground))',
|
|
42
|
+
},
|
|
43
|
+
popover: {
|
|
44
|
+
DEFAULT: 'hsl(var(--popover))',
|
|
45
|
+
foreground: 'hsl(var(--popover-foreground))',
|
|
46
|
+
},
|
|
47
|
+
card: {
|
|
48
|
+
DEFAULT: 'hsl(var(--card))',
|
|
49
|
+
foreground: 'hsl(var(--card-foreground))',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
borderRadius: {
|
|
53
|
+
xl: 'calc(var(--radius) + 4px)',
|
|
54
|
+
lg: 'var(--radius)',
|
|
55
|
+
md: 'calc(var(--radius) - 2px)',
|
|
56
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
57
|
+
},
|
|
58
|
+
keyframes: {
|
|
59
|
+
'accordion-down': {
|
|
60
|
+
from: { height: 0 },
|
|
61
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
|
62
|
+
},
|
|
63
|
+
'accordion-up': {
|
|
64
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
|
65
|
+
to: { height: 0 },
|
|
66
|
+
},
|
|
67
|
+
'collapsible-down': {
|
|
68
|
+
from: { height: 0 },
|
|
69
|
+
to: { height: 'var(--radix-collapsible-content-height)' },
|
|
70
|
+
},
|
|
71
|
+
'collapsible-up': {
|
|
72
|
+
from: { height: 'var(--radix-collapsible-content-height)' },
|
|
73
|
+
to: { height: 0 },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
animation: {
|
|
77
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
78
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
79
|
+
'collapsible-down': 'collapsible-down 0.2s ease-in-out',
|
|
80
|
+
'collapsible-up': 'collapsible-up 0.2s ease-in-out',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
plugins: [animate],
|
|
85
|
+
}
|
package/components/.gitkeep
DELETED
|
File without changes
|
package/components/account.vue
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useRoute, useRouter } from 'vue-router'
|
|
3
|
-
|
|
4
|
-
const route = useRoute()
|
|
5
|
-
const router = useRouter()
|
|
6
|
-
const edgeGlobal = inject('edgeGlobal')
|
|
7
|
-
const site = computed(() => {
|
|
8
|
-
return route.params.collection
|
|
9
|
-
})
|
|
10
|
-
const metaFields = [
|
|
11
|
-
{
|
|
12
|
-
field: 'name',
|
|
13
|
-
type: 'text',
|
|
14
|
-
label: 'Name',
|
|
15
|
-
hint: 'Your name, shown in the user interface.',
|
|
16
|
-
rules: [edgeGlobal.edgeRules.required],
|
|
17
|
-
},
|
|
18
|
-
]
|
|
19
|
-
const orgFields = [
|
|
20
|
-
{
|
|
21
|
-
field: 'name',
|
|
22
|
-
type: 'text',
|
|
23
|
-
label: 'Name',
|
|
24
|
-
hint: 'Your name, shown in the user interface.',
|
|
25
|
-
rules: [edgeGlobal.edgeRules.required],
|
|
26
|
-
},
|
|
27
|
-
]
|
|
28
|
-
|
|
29
|
-
const config = useRuntimeConfig()
|
|
30
|
-
</script>
|
|
31
|
-
|
|
32
|
-
<template>
|
|
33
|
-
<v-card :rounded="0">
|
|
34
|
-
<sub-toolbar>
|
|
35
|
-
<v-icon class="mx-4">
|
|
36
|
-
mdi-account
|
|
37
|
-
</v-icon>
|
|
38
|
-
Account Settings
|
|
39
|
-
</sub-toolbar>
|
|
40
|
-
<v-card-text>
|
|
41
|
-
<v-row>
|
|
42
|
-
<v-col cols="12" sm="3" class="d-none d-sm-block">
|
|
43
|
-
<!-- Desktop sidebar -->
|
|
44
|
-
<v-card>
|
|
45
|
-
<v-list :lines="false" density="compact" nav>
|
|
46
|
-
<v-list-subheader class="">
|
|
47
|
-
Organization
|
|
48
|
-
</v-list-subheader>
|
|
49
|
-
<v-list-item link to="/app/account/organization-settings">
|
|
50
|
-
<v-list-item-title>Settings</v-list-item-title>
|
|
51
|
-
</v-list-item>
|
|
52
|
-
|
|
53
|
-
<v-list-item link to="/app/account/organization-members">
|
|
54
|
-
<v-list-item-title>Members</v-list-item-title>
|
|
55
|
-
</v-list-item>
|
|
56
|
-
</v-list>
|
|
57
|
-
<v-divider />
|
|
58
|
-
<v-list :lines="false" density="compact" nav>
|
|
59
|
-
<v-list-subheader class="">
|
|
60
|
-
My Settings
|
|
61
|
-
</v-list-subheader>
|
|
62
|
-
<v-list-item link to="/app/account/my-profile">
|
|
63
|
-
<v-list-item-title>Profile</v-list-item-title>
|
|
64
|
-
</v-list-item>
|
|
65
|
-
|
|
66
|
-
<v-list-item link to="/app/account/my-account">
|
|
67
|
-
<v-list-item-title>Account</v-list-item-title>
|
|
68
|
-
</v-list-item>
|
|
69
|
-
<v-list-item link to="/app/account/my-organizations">
|
|
70
|
-
<v-list-item-title>Organizations</v-list-item-title>
|
|
71
|
-
</v-list-item>
|
|
72
|
-
</v-list>
|
|
73
|
-
|
|
74
|
-
<v-divider />
|
|
75
|
-
</v-card>
|
|
76
|
-
</v-col>
|
|
77
|
-
<v-col cols="12" sm="9">
|
|
78
|
-
<!-- Mobile tabs -->
|
|
79
|
-
<v-tabs v-model="site" center-active show-arrows class="d-sm-none">
|
|
80
|
-
<v-tab key="org-settings" value="org-settings" to="/app/account/organization-settings">
|
|
81
|
-
Org Settings
|
|
82
|
-
</v-tab>
|
|
83
|
-
<v-tab key="org-members" value="org-members" to="/app/account/organization-members">
|
|
84
|
-
Org Members
|
|
85
|
-
</v-tab>
|
|
86
|
-
<v-tab key="my-profile" value="my-profile" to="/app/account/my-profile">
|
|
87
|
-
Profile
|
|
88
|
-
</v-tab>
|
|
89
|
-
<v-tab key="my-account" value="my-account" to="/app/account/my-account">
|
|
90
|
-
Account
|
|
91
|
-
</v-tab>
|
|
92
|
-
<v-tab key="my-organizations" value="my-organizations" to="/app/account/my-organizations">
|
|
93
|
-
Organizations
|
|
94
|
-
</v-tab>
|
|
95
|
-
</v-tabs>
|
|
96
|
-
<!-- Content -->
|
|
97
|
-
<edge-organization-settings v-if="site === 'organization-settings'" :org-fields="orgFields" />
|
|
98
|
-
<edge-my-account v-if="site === 'my-account'" />
|
|
99
|
-
<edge-my-profile v-if="site === 'my-profile'" :meta-fields="metaFields" />
|
|
100
|
-
<edge-organization-members v-if="site === 'organization-members'" />
|
|
101
|
-
<edge-my-organizations v-if="site === 'my-organizations'" :registration-code="config.public.registrationCode" />
|
|
102
|
-
<billing v-if="site === 'subscription'" />
|
|
103
|
-
</v-col>
|
|
104
|
-
</v-row>
|
|
105
|
-
</v-card-text>
|
|
106
|
-
</v-card>
|
|
107
|
-
</template>
|
package/components/billing.vue
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
const edgeFirebase = inject('edgeFirebase')
|
|
3
|
-
const edgeGlobal = inject('edgeGlobal')
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<template>
|
|
7
|
-
<v-bottom-navigation>
|
|
8
|
-
<v-btn to="/app/dashboard">
|
|
9
|
-
<v-icon>mdi-view-dashboard</v-icon>
|
|
10
|
-
|
|
11
|
-
Dashboard
|
|
12
|
-
</v-btn>
|
|
13
|
-
<v-btn to="/app/dashboard/subthings">
|
|
14
|
-
<v-icon>mdi-cube</v-icon>
|
|
15
|
-
|
|
16
|
-
Sub Things
|
|
17
|
-
</v-btn>
|
|
18
|
-
|
|
19
|
-
<v-btn to="/app/account/organization-settings">
|
|
20
|
-
<v-icon>mdi-cog</v-icon>
|
|
21
|
-
|
|
22
|
-
Settings
|
|
23
|
-
</v-btn>
|
|
24
|
-
|
|
25
|
-
<v-btn @click="logOut(edgeFirebase, edgeGlobal)">
|
|
26
|
-
<v-icon>mdi-logout</v-icon>
|
|
27
|
-
|
|
28
|
-
Logout
|
|
29
|
-
</v-btn>
|
|
30
|
-
</v-bottom-navigation>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<style lang="scss" scoped>
|
|
34
|
-
|
|
35
|
-
</style>
|