-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat:dwa-starter-vue-app-hello-word * feat:dwa-starter-vue-app-hello-word * feat:dwa-starter-vue-app-hello-word * added tailwind css * added tailwind css * added tbd example json for ci integration * added tbd example json for ci integration * replaced npm with pnpm in ci/cd file * fix:pnpm build error in ci/cd * fix:pnpm build error in ci/cd * fix:pnpm build error in ci/cd * break the commands into seperate items * break the commands into seperate items * Setup routes for Home, About, Settings and 404 handling * Setup routes for Home, About, Settings and 404 handling * remove vite config timestamp file * remove vite config timestamp file * initial commit * initial commit * fix:layout * fix:layout * fix:layout * fix:layout * responsive nav menu * responsive nav menu * backdrop blur * remove unused navigation menu component
- Loading branch information
1 parent
8705626
commit 4262bbb
Showing
30 changed files
with
516 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
javascript/dwa-starter-vue/src/components/ui/dropdown-menu/DropdownMenu.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<script setup lang="ts"> | ||
import { DropdownMenuRoot, type DropdownMenuRootEmits, type DropdownMenuRootProps, useForwardPropsEmits } from 'radix-vue' | ||
const props = defineProps<DropdownMenuRootProps>() | ||
const emits = defineEmits<DropdownMenuRootEmits>() | ||
const forwarded = useForwardPropsEmits(props, emits) | ||
</script> | ||
|
||
<template> | ||
<DropdownMenuRoot v-bind="forwarded"> | ||
<slot /> | ||
</DropdownMenuRoot> | ||
</template> |
40 changes: 40 additions & 0 deletions
40
javascript/dwa-starter-vue/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<script setup lang="ts"> | ||
import { type HTMLAttributes, computed } from 'vue' | ||
import { | ||
DropdownMenuCheckboxItem, | ||
type DropdownMenuCheckboxItemEmits, | ||
type DropdownMenuCheckboxItemProps, | ||
DropdownMenuItemIndicator, | ||
useForwardPropsEmits, | ||
} from 'radix-vue' | ||
import { CheckIcon } from '@radix-icons/vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<DropdownMenuCheckboxItemProps & { class?: HTMLAttributes['class'] }>() | ||
const emits = defineEmits<DropdownMenuCheckboxItemEmits>() | ||
const delegatedProps = computed(() => { | ||
const { class: _, ...delegated } = props | ||
return delegated | ||
}) | ||
const forwarded = useForwardPropsEmits(delegatedProps, emits) | ||
</script> | ||
|
||
<template> | ||
<DropdownMenuCheckboxItem | ||
v-bind="forwarded" | ||
:class=" cn( | ||
'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50', | ||
props.class, | ||
)" | ||
> | ||
<span class="absolute left-2 flex h-3.5 w-3.5 items-center justify-center"> | ||
<DropdownMenuItemIndicator> | ||
<CheckIcon class="w-4 h-4" /> | ||
</DropdownMenuItemIndicator> | ||
</span> | ||
<slot /> | ||
</DropdownMenuCheckboxItem> | ||
</template> |
38 changes: 38 additions & 0 deletions
38
javascript/dwa-starter-vue/src/components/ui/dropdown-menu/DropdownMenuContent.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script setup lang="ts"> | ||
import { type HTMLAttributes, computed } from 'vue' | ||
import { | ||
DropdownMenuContent, | ||
type DropdownMenuContentEmits, | ||
type DropdownMenuContentProps, | ||
DropdownMenuPortal, | ||
useForwardPropsEmits, | ||
} from 'radix-vue' | ||
import { cn } from '@/lib/utils' | ||
const props = withDefaults( | ||
defineProps<DropdownMenuContentProps & { class?: HTMLAttributes['class'] }>(), | ||
{ | ||
sideOffset: 4, | ||
}, | ||
) | ||
const emits = defineEmits<DropdownMenuContentEmits>() | ||
const delegatedProps = computed(() => { | ||
const { class: _, ...delegated } = props | ||
return delegated | ||
}) | ||
const forwarded = useForwardPropsEmits(delegatedProps, emits) | ||
</script> | ||
|
||
<template> | ||
<DropdownMenuPortal> | ||
<DropdownMenuContent | ||
v-bind="forwarded" | ||
:class="cn('z-50 min-w-32 overflow-hidden rounded-md border border-slate-200 bg-white p-1 text-slate-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-slate-800 dark:bg-slate-950 dark:text-slate-50', props.class)" | ||
> | ||
<slot /> | ||
</DropdownMenuContent> | ||
</DropdownMenuPortal> | ||
</template> |
11 changes: 11 additions & 0 deletions
11
javascript/dwa-starter-vue/src/components/ui/dropdown-menu/DropdownMenuGroup.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts"> | ||
import { DropdownMenuGroup, type DropdownMenuGroupProps } from 'radix-vue' | ||
const props = defineProps<DropdownMenuGroupProps>() | ||
</script> | ||
|
||
<template> | ||
<DropdownMenuGroup v-bind="props"> | ||
<slot /> | ||
</DropdownMenuGroup> | ||
</template> |
28 changes: 28 additions & 0 deletions
28
javascript/dwa-starter-vue/src/components/ui/dropdown-menu/DropdownMenuItem.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script setup lang="ts"> | ||
import { type HTMLAttributes, computed } from 'vue' | ||
import { DropdownMenuItem, type DropdownMenuItemProps, useForwardProps } from 'radix-vue' | ||
import { cn } from '@/lib/utils' | ||
const props = defineProps<DropdownMenuItemProps & { class?: HTMLAttributes['class'], inset?: boolean }>() | ||
const delegatedProps = computed(() => { | ||
const { class: _, ...delegated } = props | ||
return delegated | ||
}) | ||
const forwardedProps = useForwardProps(delegatedProps) | ||
</script> | ||
|
||
<template> | ||
<DropdownMenuItem | ||
v-bind="forwardedProps" | ||
:class="cn( | ||
'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-slate-100 focus:text-slate-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-slate-800 dark:focus:text-slate-50', | ||
inset && 'pl-8', | ||
props.class, | ||
)" | ||
> | ||
<slot /> | ||
</DropdownMenuItem> | ||
</template> |
Oops, something went wrong.