-
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
49 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<template> | ||
<a class="flex-grow flex-shrink-0 px-3 py-4 cursor-pointer" id="backButton" > | ||
<MiniIcon icon="chevron-left" fill='fill-neutral-400' class="my-0 w-4 h-4 mr-0 ml-0" /> | ||
</a> | ||
<a class="flex-grow flex-shrink-0 px-3 py-4 cursor-pointer" id="backButton"> | ||
<MiniIcon icon="chevron-left" fill="fill-neutral-400" class="my-0 w-4 h-4 mr-0 ml-0" /> | ||
</a> | ||
</template> | ||
<script setup lang="ts"></script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
<template> | ||
<a class="flex-shrink-0 px-3 py-4 cursor-pointer {{ props.class }}" id="backButton" > | ||
<a class="flex-shrink-0 px-3 py-4 cursor-pointer {{ props.class }}" id="backButton"> | ||
<MiniIcon :icon="props.icon" :fill="props.fill ?? 'fill-neutral-400'" class="my-0 w-4 h-4 mr-0 ml-0" /> | ||
</a> | ||
</template> | ||
<script setup lang="ts"> | ||
import MiniIcon from '@/components/icons/MiniIcon.vue'; | ||
import MiniIcon from "@/components/icons/MiniIcon.vue"; | ||
const props = defineProps<{ | ||
class?: string; | ||
fill?: string; | ||
icon: string; | ||
}>(); | ||
</script> | ||
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<template> | ||
<a class="absolute left-1/2 top-0 -translate-x-1/2 h-14 pointer-events-none | ||
flex justify-center items-center overflow-hidden | ||
w-full text-text-main-0 font-bold text-sm whitespace-nowrap text-ellipsis"> | ||
<slot/> | ||
</a> | ||
<a | ||
class="absolute left-1/2 top-0 -translate-x-1/2 h-14 pointer-events-none flex justify-center items-center overflow-hidden w-full text-text-main-0 font-bold text-sm whitespace-nowrap text-ellipsis" | ||
> | ||
<slot /> | ||
</a> | ||
</template> | ||
<script setup lang="ts"></script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
<template> | ||
|
||
</template> | ||
<template></template> | ||
<script setup lang="ts"> | ||
import { computed, ref } from "vue"; | ||
import { useRoute } from "vue-router"; | ||
const route = useRoute(); | ||
const path = computed(() => route.path) | ||
const path = computed(() => route.path); | ||
</script> |
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
|
||
<template> | ||
|
||
</template> | ||
<template></template> | ||
<script setup lang="ts"> | ||
import { watch } from 'vue' | ||
import { useRoute } from 'vue-router' | ||
import { watch } from "vue"; | ||
import { useRoute } from "vue-router"; | ||
const route = useRoute() | ||
const route = useRoute(); | ||
watch( | ||
() => route.params.id, | ||
(newId, oldId) => { | ||
// react to route changes... | ||
} | ||
)</script> | ||
() => route.params.id, | ||
(newId, oldId) => { | ||
// react to route changes... | ||
}, | ||
); | ||
</script> |
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