diff --git a/components/composer/composer.vue b/components/composer/composer.vue index 1614de4..ece6bc8 100644 --- a/components/composer/composer.vue +++ b/components/composer/composer.vue @@ -1,47 +1,216 @@ - + - - - - - - - - - - - - - - - - - - {{ relation?.type === "edit" ? "Save" : "Send" }} - - + + + + + + + + + + + + Mention someone + + + + + + + state.contentType = i ? 'text/plain' : 'text/markdown'"> + + + + + Enable Markdown + + + + + + + + + + + + + + {{ v.name }} + {{ v.text }} + + + + + + + + + + + + + + + Insert emoji + + + + + + + + + + + + Attach a file + + + + + + + state.sensitive = i"> + + + + + Mark as sensitive + + + + + + {{ relation?.type === "edit" ? "Save" : "Send" }} + + \ No newline at end of file diff --git a/components/composer/dialog.vue b/components/composer/dialog.vue index 6018625..fb5f358 100644 --- a/components/composer/dialog.vue +++ b/components/composer/dialog.vue @@ -8,6 +8,10 @@ useListen("composer:open", () => { } }); +useListen("composer:close", () => { + open.value = false; +}); + const open = ref(false); diff --git a/components/notes/copyable-text.vue b/components/notes/copyable-text.vue index 4c59957..a82b432 100644 --- a/components/notes/copyable-text.vue +++ b/components/notes/copyable-text.vue @@ -27,8 +27,6 @@ const { text } = defineProps<{ const { copy } = useClipboard(); const copyText = () => { copy(text); - toast("Copied to clipboard", { - icon: , - }); + toast.success("Copied to clipboard"); }; \ No newline at end of file diff --git a/components/notes/menu.vue b/components/notes/menu.vue index d5fbcd8..e950184 100644 --- a/components/notes/menu.vue +++ b/components/notes/menu.vue @@ -34,17 +34,13 @@ const { copy } = useClipboard(); const copyText = (text: string) => { copy(text); - toast("Copied to clipboard", { - icon: , - }); + toast.success("Copied to clipboard"); }; const blockUser = async (id: string) => { await client.value.blockAccount(id); - toast("User blocked", { - icon: , - }); + toast.success("User blocked"); }; diff --git a/components/ui/select/Select.vue b/components/ui/select/Select.vue new file mode 100644 index 0000000..dd1fc56 --- /dev/null +++ b/components/ui/select/Select.vue @@ -0,0 +1,15 @@ + + + + + + + diff --git a/components/ui/select/SelectContent.vue b/components/ui/select/SelectContent.vue new file mode 100644 index 0000000..8c299dc --- /dev/null +++ b/components/ui/select/SelectContent.vue @@ -0,0 +1,53 @@ + + + + + + + + + + + + + diff --git a/components/ui/select/SelectGroup.vue b/components/ui/select/SelectGroup.vue new file mode 100644 index 0000000..2ffe8f4 --- /dev/null +++ b/components/ui/select/SelectGroup.vue @@ -0,0 +1,21 @@ + + + + + + + diff --git a/components/ui/select/SelectItem.vue b/components/ui/select/SelectItem.vue new file mode 100644 index 0000000..e94456b --- /dev/null +++ b/components/ui/select/SelectItem.vue @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + diff --git a/components/ui/select/SelectItemText.vue b/components/ui/select/SelectItemText.vue new file mode 100644 index 0000000..e2719b8 --- /dev/null +++ b/components/ui/select/SelectItemText.vue @@ -0,0 +1,11 @@ + + + + + + + diff --git a/components/ui/select/SelectLabel.vue b/components/ui/select/SelectLabel.vue new file mode 100644 index 0000000..ab4df03 --- /dev/null +++ b/components/ui/select/SelectLabel.vue @@ -0,0 +1,15 @@ + + + + + + + diff --git a/components/ui/select/SelectScrollDownButton.vue b/components/ui/select/SelectScrollDownButton.vue new file mode 100644 index 0000000..79a0903 --- /dev/null +++ b/components/ui/select/SelectScrollDownButton.vue @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/components/ui/select/SelectScrollUpButton.vue b/components/ui/select/SelectScrollUpButton.vue new file mode 100644 index 0000000..6e10c7d --- /dev/null +++ b/components/ui/select/SelectScrollUpButton.vue @@ -0,0 +1,30 @@ + + + + + + + + + diff --git a/components/ui/select/SelectSeparator.vue b/components/ui/select/SelectSeparator.vue new file mode 100644 index 0000000..81d657d --- /dev/null +++ b/components/ui/select/SelectSeparator.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/components/ui/select/SelectTrigger.vue b/components/ui/select/SelectTrigger.vue new file mode 100644 index 0000000..4ece093 --- /dev/null +++ b/components/ui/select/SelectTrigger.vue @@ -0,0 +1,38 @@ + + + + + + + + + + diff --git a/components/ui/select/SelectValue.vue b/components/ui/select/SelectValue.vue new file mode 100644 index 0000000..61bd93e --- /dev/null +++ b/components/ui/select/SelectValue.vue @@ -0,0 +1,11 @@ + + + + + + + diff --git a/components/ui/select/index.ts b/components/ui/select/index.ts new file mode 100644 index 0000000..d911c4e --- /dev/null +++ b/components/ui/select/index.ts @@ -0,0 +1,11 @@ +export { default as Select } from "./Select.vue"; +export { default as SelectContent } from "./SelectContent.vue"; +export { default as SelectGroup } from "./SelectGroup.vue"; +export { default as SelectItem } from "./SelectItem.vue"; +export { default as SelectItemText } from "./SelectItemText.vue"; +export { default as SelectLabel } from "./SelectLabel.vue"; +export { default as SelectScrollDownButton } from "./SelectScrollDownButton.vue"; +export { default as SelectScrollUpButton } from "./SelectScrollUpButton.vue"; +export { default as SelectSeparator } from "./SelectSeparator.vue"; +export { default as SelectTrigger } from "./SelectTrigger.vue"; +export { default as SelectValue } from "./SelectValue.vue"; diff --git a/components/ui/toggle/Toggle.vue b/components/ui/toggle/Toggle.vue new file mode 100644 index 0000000..b7e1602 --- /dev/null +++ b/components/ui/toggle/Toggle.vue @@ -0,0 +1,45 @@ + + + + + + + diff --git a/components/ui/toggle/index.ts b/components/ui/toggle/index.ts new file mode 100644 index 0000000..bfff238 --- /dev/null +++ b/components/ui/toggle/index.ts @@ -0,0 +1,27 @@ +import { type VariantProps, cva } from "class-variance-authority"; + +export { default as Toggle } from "./Toggle.vue"; + +export const toggleVariants = cva( + "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground", + { + variants: { + variant: { + default: "bg-transparent", + outline: + "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground", + }, + size: { + default: "h-10 px-3", + sm: "h-9 px-2.5", + lg: "h-11 px-5", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + }, +); + +export type ToggleVariants = VariantProps;
Mention someone
Enable Markdown
Insert emoji
Attach a file
Mark as sensitive