From b77700b8b81e2b9abe30ebdfa22d8518dbdeaf13 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Mon, 26 May 2025 19:21:13 +0200 Subject: [PATCH] feat: :sparkles: Render emoji reactions --- bun.lock | 4 +- components/notes/note.vue | 2 + components/notes/reactions/index.vue | 17 ++++++ components/notes/reactions/reaction.vue | 73 +++++++++++++++++++++++++ nix/package.nix | 2 +- package.json | 2 +- pnpm-lock.yaml | 10 ++-- 7 files changed, 101 insertions(+), 9 deletions(-) create mode 100644 components/notes/reactions/index.vue create mode 100644 components/notes/reactions/reaction.vue diff --git a/bun.lock b/bun.lock index 807e4a4..ddf37bf 100644 --- a/bun.lock +++ b/bun.lock @@ -24,7 +24,7 @@ "@tiptap/suggestion": "^2.12.0", "@tiptap/vue-3": "^2.12.0", "@vee-validate/zod": "^4.15.0", - "@versia/client": "0.2.0-alpha.2", + "@versia/client": "0.2.0-alpha.3", "@videojs-player/vue": "^1.0.0", "@vite-pwa/nuxt": "^1.0.1", "@vueuse/core": "^13.2.0", @@ -780,7 +780,7 @@ "@vercel/nft": ["@vercel/nft@0.29.3", "", { "dependencies": { "@mapbox/node-pre-gyp": "^2.0.0", "@rollup/pluginutils": "^5.1.3", "acorn": "^8.6.0", "acorn-import-attributes": "^1.9.5", "async-sema": "^3.1.1", "bindings": "^1.4.0", "estree-walker": "2.0.2", "glob": "^10.4.5", "graceful-fs": "^4.2.9", "node-gyp-build": "^4.2.2", "picomatch": "^4.0.2", "resolve-from": "^5.0.0" }, "bin": { "nft": "out/cli.js" } }, "sha512-aVV0E6vJpuvImiMwU1/5QKkw2N96BRFE7mBYGS7FhXUoS6V7SarQ+8tuj33o7ofECz8JtHpmQ9JW+oVzOoB7MA=="], - "@versia/client": ["@versia/client@0.2.0-alpha.2", "", { "dependencies": { "@badgateway/oauth2-client": "^3.0.0", "iso-639-1": "^3.1.5", "magic-regexp": "^0.10.0", "zod": "^3.24.2", "zod-openapi": "^4.2.4" } }, "sha512-/x1Z2tyJsfckCOLX8K8XDVs3rd3vX0wfCz20IMTc9uaGRkDTcL7MYzz20WCgOEW/WmnwL3iVf/jVgJm0NzoF4Q=="], + "@versia/client": ["@versia/client@0.2.0-alpha.3", "", { "dependencies": { "@badgateway/oauth2-client": "^3.0.0", "iso-639-1": "^3.1.5", "magic-regexp": "^0.10.0", "zod": "^3.24.2", "zod-openapi": "^4.2.4" } }, "sha512-osJ1+Y1GfnhyqZ+NRg8paAUfADa4d6uGEd87viruXtDAYkHWkDBS/cb353ArI9y4d2Mjenkqk0B1Zz4cm71fDQ=="], "@videojs-player/vue": ["@videojs-player/vue@1.0.0", "", { "peerDependencies": { "@types/video.js": "7.x", "video.js": "7.x", "vue": "3.x" } }, "sha512-WonTezRfKu3fYdQLt/ta+nuKH6gMZUv8l40Jke/j4Lae7IqeO/+lLAmBnh3ni88bwR+vkFXIlZ2Ci7VKInIYJg=="], diff --git a/components/notes/note.vue b/components/notes/note.vue index ba445ab..e831f7c 100644 --- a/components/notes/note.vue +++ b/components/notes/note.vue @@ -50,6 +50,7 @@ :sensitive="noteToUse.sensitive" :content-warning="noteToUse.spoiler_text" /> + = Omit & Partial>; diff --git a/components/notes/reactions/index.vue b/components/notes/reactions/index.vue new file mode 100644 index 0000000..3070180 --- /dev/null +++ b/components/notes/reactions/index.vue @@ -0,0 +1,17 @@ + + + diff --git a/components/notes/reactions/reaction.vue b/components/notes/reactions/reaction.vue new file mode 100644 index 0000000..3f58174 --- /dev/null +++ b/components/notes/reactions/reaction.vue @@ -0,0 +1,73 @@ + + + diff --git a/nix/package.nix b/nix/package.nix index f0c439f..9e63f46 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -17,7 +17,7 @@ in pnpmDeps = pnpm.fetchDeps { inherit (finalAttrs) pname version src; - hash = "sha256-ZR+YidKF+zGeMuPGVXLz7OAehqssCp9AfU1W9yul4HQ="; + hash = "sha256-oYouqCoLTyVemqURLW0j5MVKqupqRDxP5rkR3reMQvk="; }; nativeBuildInputs = [ diff --git a/package.json b/package.json index f963b62..f66a6c3 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@tiptap/suggestion": "^2.12.0", "@tiptap/vue-3": "^2.12.0", "@vee-validate/zod": "^4.15.0", - "@versia/client": "0.2.0-alpha.2", + "@versia/client": "0.2.0-alpha.3", "@videojs-player/vue": "^1.0.0", "@vite-pwa/nuxt": "^1.0.1", "@vueuse/core": "^13.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 16f796a..9d6351c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,8 +69,8 @@ importers: specifier: ^4.15.0 version: 4.15.0(vue@3.5.14(typescript@5.8.3))(zod@3.25.23) '@versia/client': - specifier: 0.2.0-alpha.2 - version: 0.2.0-alpha.2 + specifier: 0.2.0-alpha.3 + version: 0.2.0-alpha.3 '@videojs-player/vue': specifier: ^1.0.0 version: 1.0.0(@types/video.js@7.3.58)(video.js@7.21.7)(vue@3.5.14(typescript@5.8.3)) @@ -1993,8 +1993,8 @@ packages: engines: {node: '>=18'} hasBin: true - '@versia/client@0.2.0-alpha.2': - resolution: {integrity: sha512-/x1Z2tyJsfckCOLX8K8XDVs3rd3vX0wfCz20IMTc9uaGRkDTcL7MYzz20WCgOEW/WmnwL3iVf/jVgJm0NzoF4Q==} + '@versia/client@0.2.0-alpha.3': + resolution: {integrity: sha512-osJ1+Y1GfnhyqZ+NRg8paAUfADa4d6uGEd87viruXtDAYkHWkDBS/cb353ArI9y4d2Mjenkqk0B1Zz4cm71fDQ==} engines: {bun: '>=1.2.5'} '@videojs-player/vue@1.0.0': @@ -7857,7 +7857,7 @@ snapshots: - rollup - supports-color - '@versia/client@0.2.0-alpha.2': + '@versia/client@0.2.0-alpha.3': dependencies: '@badgateway/oauth2-client': 3.2.0 iso-639-1: 3.1.5