forked from kingwrcy/moments
-
Notifications
You must be signed in to change notification settings - Fork 0
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
63 changed files
with
15,073 additions
and
7,710 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 |
---|---|---|
|
@@ -22,3 +22,5 @@ logs | |
.env | ||
.env.* | ||
!.env.example | ||
|
||
assets/upload |
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,5 +1,9 @@ | ||
<template> | ||
<NuxtLayout> | ||
<NuxtPage /> | ||
<NuxtPage /> | ||
</NuxtLayout> | ||
</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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
<template> | ||
<div class="flex flex-wrap gap-0.5 text-lg bg-white rounded border p-2 shadow-lg"> | ||
<div v-for="(item,index) in emoji" :key="index" class="cursor-pointer" @click="emit('emojiSelected',item)">{{ item }}</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
const emoji = ['🤔', '😐', '😑', '😶', '🙄', '😣', '😏', '😥', '😮', '🤐', '😪', '😯', '😫', '😴', '😌', '🤓', '😛', '😜', '😝', '🤤', '😒', '😓', '😔', '😕', '🙃', '🤑', '😲', '🤗', '🙂', '😚', '😙', '😗', '😘', '😍', '😎', '😋', '😊', '😉', '😆', '😅', '😄', '😃', '🤣', '😂', '😁', '😀', '😷', '🤒', '🤕', '🤢', '🤧', '😇', '🤠', '🤡', '🤥', '😈', '👿', '👹', '👺', '💀', '☠️', '👻', '👽', '💩'] | ||
const emit = defineEmits(['emojiSelected']) | ||
</script> | ||
|
||
<style scoped></style> |
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,41 @@ | ||
<script setup> | ||
import { Fancybox } from '@fancyapps/ui'; | ||
import '@fancyapps/ui/dist/fancybox/fancybox.css'; | ||
const props = defineProps({ | ||
options: Object, | ||
}); | ||
const container = ref(null); | ||
onMounted(() => { | ||
console.log(container.value.children) | ||
Array.from(container.value.children).map((el) => { | ||
el.setAttribute('data-fancybox', 'gallery'); | ||
}); | ||
Fancybox.bind(container.value, '[data-fancybox]', { | ||
...(props.options || {}), | ||
}); | ||
}); | ||
onUpdated(() => { | ||
Fancybox.unbind(container.value); | ||
Fancybox.close(); | ||
Fancybox.bind(container.value, '[data-fancybox]', { | ||
...(props.options || {}), | ||
}); | ||
}); | ||
onUnmounted(() => { | ||
Fancybox.destroy(); | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div ref="container"> | ||
<slot></slot> | ||
</div> | ||
</template> | ||
|
||
<style></style> |
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,18 @@ | ||
<template> | ||
<div class="p-4 flex justify-center items-center text-xs"> | ||
<div class="flex flex-row gap-1"> | ||
<NuxtLink to="https://github.com/kingwrcy/moments"> | ||
<img src="~/assets/img/github-mark.svg" class="w-4 h-4 inline-block mr-1" alt="github" /> | ||
<span>moments</span> | ||
</NuxtLink> | ||
|
||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
</script> | ||
|
||
<style scoped> | ||
</style> |
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
Oops, something went wrong.