fix: like button opening post view, remove tabler

This commit is contained in:
Mar0xy 2023-10-01 02:34:07 +02:00
parent 6a9e6a76c8
commit 3d8414e499
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
3 changed files with 38 additions and 34 deletions

View File

@ -24,7 +24,6 @@
"@rollup/plugin-replace": "5.0.2", "@rollup/plugin-replace": "5.0.2",
"@rollup/pluginutils": "5.0.4", "@rollup/pluginutils": "5.0.4",
"@syuilo/aiscript": "0.16.0", "@syuilo/aiscript": "0.16.0",
"@tabler/icons-webfont": "2.35.0",
"@vitejs/plugin-vue": "4.3.4", "@vitejs/plugin-vue": "4.3.4",
"@vue-macros/reactivity-transform": "0.3.23", "@vue-macros/reactivity-transform": "0.3.23",
"@vue/compiler-sfc": "3.3.4", "@vue/compiler-sfc": "3.3.4",

View File

@ -108,7 +108,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<button v-else :class="$style.footerButton" class="_button" disabled> <button v-else :class="$style.footerButton" class="_button" disabled>
<i class="ph-prohibit ph-bold ph-lg"></i> <i class="ph-prohibit ph-bold ph-lg"></i>
</button> </button>
<button v-if="appearNote.myReaction == null && appearNote.reactionAcceptance !== 'likeOnly'" ref="likeButton" :class="$style.footerButton" class="_button" @mousedown="like()"> <button v-if="appearNote.myReaction == null && appearNote.reactionAcceptance !== 'likeOnly'" ref="likeButton" :class="$style.footerButton" class="_button" v-on:click.stop @click="like()">
<i class="ph-heart ph-bold ph-lg"></i> <i class="ph-heart ph-bold ph-lg"></i>
</button> </button>
<button v-if="appearNote.myReaction == null" ref="reactButton" :class="$style.footerButton" class="_button" @mousedown="react()"> <button v-if="appearNote.myReaction == null" ref="reactButton" :class="$style.footerButton" class="_button" @mousedown="react()">

View File

@ -679,9 +679,6 @@ importers:
'@syuilo/aiscript': '@syuilo/aiscript':
specifier: 0.16.0 specifier: 0.16.0
version: 0.16.0 version: 0.16.0
'@tabler/icons-webfont':
specifier: 2.35.0
version: 2.35.0
'@vitejs/plugin-vue': '@vitejs/plugin-vue':
specifier: 4.3.4 specifier: 4.3.4
version: 4.3.4(vite@4.4.9)(vue@3.3.4) version: 4.3.4(vite@4.4.9)(vue@3.3.4)
@ -828,7 +825,7 @@ importers:
version: 1.8.1 version: 1.8.1
vite: vite:
specifier: 4.4.9 specifier: 4.4.9
version: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) version: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
vue: vue:
specifier: 3.3.4 specifier: 3.3.4
version: 3.3.4 version: 3.3.4
@ -1006,7 +1003,7 @@ importers:
version: 1.0.3 version: 1.0.3
vitest: vitest:
specifier: 0.34.5 specifier: 0.34.5
version: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)(terser@5.20.0) version: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)
vitest-fetch-mock: vitest-fetch-mock:
specifier: 0.2.2 specifier: 0.2.2
version: 0.2.2(vitest@0.34.5) version: 0.2.2(vitest@0.34.5)
@ -4331,7 +4328,7 @@ packages:
magic-string: 0.27.0 magic-string: 0.27.0
react-docgen-typescript: 2.2.2(typescript@5.2.2) react-docgen-typescript: 2.2.2(typescript@5.2.2)
typescript: 5.2.2 typescript: 5.2.2
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
dev: true dev: true
/@jridgewell/gen-mapping@0.3.2: /@jridgewell/gen-mapping@0.3.2:
@ -4355,6 +4352,7 @@ packages:
dependencies: dependencies:
'@jridgewell/gen-mapping': 0.3.2 '@jridgewell/gen-mapping': 0.3.2
'@jridgewell/trace-mapping': 0.3.18 '@jridgewell/trace-mapping': 0.3.18
dev: false
/@jridgewell/sourcemap-codec@1.4.14: /@jridgewell/sourcemap-codec@1.4.14:
resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
@ -6372,7 +6370,7 @@ packages:
remark-slug: 6.1.0 remark-slug: 6.1.0
rollup: 3.29.2 rollup: 3.29.2
typescript: 5.2.2 typescript: 5.2.2
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- encoding - encoding
- supports-color - supports-color
@ -6579,7 +6577,7 @@ packages:
util: 0.12.5 util: 0.12.5
util-deprecate: 1.0.2 util-deprecate: 1.0.2
watchpack: 2.4.0 watchpack: 2.4.0
ws: 8.14.2(bufferutil@4.0.7)(utf-8-validate@6.0.3) ws: 8.14.2
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
- encoding - encoding
@ -6761,7 +6759,7 @@ packages:
react: 18.2.0 react: 18.2.0
react-docgen: 6.0.0-alpha.3 react-docgen: 6.0.0-alpha.3
react-dom: 18.2.0(react@18.2.0) react-dom: 18.2.0(react@18.2.0)
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- '@preact/preset-vite' - '@preact/preset-vite'
- encoding - encoding
@ -6901,7 +6899,7 @@ packages:
magic-string: 0.30.3 magic-string: 0.30.3
react: 18.2.0 react: 18.2.0
react-dom: 18.2.0(react@18.2.0) react-dom: 18.2.0(react@18.2.0)
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
vue-docgen-api: 4.64.1(vue@3.3.4) vue-docgen-api: 4.64.1(vue@3.3.4)
transitivePeerDependencies: transitivePeerDependencies:
- '@preact/preset-vite' - '@preact/preset-vite'
@ -7215,16 +7213,6 @@ packages:
dependencies: dependencies:
defer-to-connect: 2.0.1 defer-to-connect: 2.0.1
/@tabler/icons-webfont@2.35.0:
resolution: {integrity: sha512-U9Xg6ntMLplwKvUGCvqfj/lw2+dKlhunqzw/0XDFVX/TOJwPcnKs9JO+/sGeAZdWYyJpvhAKxOZtXvvy9SoYBQ==}
dependencies:
'@tabler/icons': 2.35.0
dev: false
/@tabler/icons@2.35.0:
resolution: {integrity: sha512-qW/itKdmFvfGw6mAQ+cZy+2MYTXb0XdGAVhO3obYLJEfsSPMwQRO0S9ckFk1xMQX/Tj7REC3TEmWUBWNi3/o3g==}
dev: false
/@tensorflow/tfjs-backend-cpu@4.4.0(@tensorflow/tfjs-core@4.4.0): /@tensorflow/tfjs-backend-cpu@4.4.0(@tensorflow/tfjs-core@4.4.0):
resolution: {integrity: sha512-d4eln500/qNym78z9IrUUzF0ITBoJGLrxV8xd92kLVoXhg35Mm+zqUXShjFcrH8joOHOFuST0qZ0TbDDqcPzPA==} resolution: {integrity: sha512-d4eln500/qNym78z9IrUUzF0ITBoJGLrxV8xd92kLVoXhg35Mm+zqUXShjFcrH8joOHOFuST0qZ0TbDDqcPzPA==}
engines: {yarn: '>= 1.3.2'} engines: {yarn: '>= 1.3.2'}
@ -7385,7 +7373,7 @@ packages:
dom-accessibility-api: 0.5.16 dom-accessibility-api: 0.5.16
lodash: 4.17.21 lodash: 4.17.21
redent: 3.0.0 redent: 3.0.0
vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)(terser@5.20.0) vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)
dev: true dev: true
/@testing-library/user-event@14.4.3(@testing-library/dom@9.2.0): /@testing-library/user-event@14.4.3(@testing-library/dom@9.2.0):
@ -8310,7 +8298,7 @@ packages:
'@babel/plugin-transform-react-jsx-source': 7.19.6(@babel/core@7.22.11) '@babel/plugin-transform-react-jsx-source': 7.19.6(@babel/core@7.22.11)
magic-string: 0.27.0 magic-string: 0.27.0
react-refresh: 0.14.0 react-refresh: 0.14.0
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -8322,7 +8310,7 @@ packages:
vite: ^4.0.0 vite: ^4.0.0
vue: ^3.2.25 vue: ^3.2.25
dependencies: dependencies:
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
vue: 3.3.4 vue: 3.3.4
/@vitest/coverage-v8@0.34.5(vitest@0.34.5): /@vitest/coverage-v8@0.34.5(vitest@0.34.5):
@ -8341,7 +8329,7 @@ packages:
std-env: 3.3.3 std-env: 3.3.3
test-exclude: 6.0.0 test-exclude: 6.0.0
v8-to-istanbul: 9.1.0 v8-to-istanbul: 9.1.0
vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)(terser@5.20.0) vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
@ -9509,6 +9497,7 @@ packages:
requiresBuild: true requiresBuild: true
dependencies: dependencies:
node-gyp-build: 4.6.0 node-gyp-build: 4.6.0
dev: false
/bullmq@4.11.4: /bullmq@4.11.4:
resolution: {integrity: sha512-LuCR3ILngYa3CLC5jyf8DU4Yokj9T12MWwBogP3S4IiJUtbJsQ9GTGFxho3imRxXfcd9DUfrABT/pSoqVigXiQ==} resolution: {integrity: sha512-LuCR3ILngYa3CLC5jyf8DU4Yokj9T12MWwBogP3S4IiJUtbJsQ9GTGFxho3imRxXfcd9DUfrABT/pSoqVigXiQ==}
@ -15242,6 +15231,7 @@ packages:
resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==} resolution: {integrity: sha512-NTZVKn9IylLwUzaKjkas1e4u2DLNcV4rdYagA4PWdPwW87Bi7z+BznyKSRwS/761tV/lzCGXplWsiaMjLqP2zQ==}
hasBin: true hasBin: true
requiresBuild: true requiresBuild: true
dev: false
/node-gyp@9.4.0: /node-gyp@9.4.0:
resolution: {integrity: sha512-dMXsYP6gc9rRbejLXmTbVRYjAHw7ppswsKyMxuxJxxOHzluIO1rGp9TOQgjFJ+2MCqcOcQTOPB/8Xwhr+7s4Eg==} resolution: {integrity: sha512-dMXsYP6gc9rRbejLXmTbVRYjAHw7ppswsKyMxuxJxxOHzluIO1rGp9TOQgjFJ+2MCqcOcQTOPB/8Xwhr+7s4Eg==}
@ -18531,6 +18521,7 @@ packages:
acorn: 8.10.0 acorn: 8.10.0
commander: 2.20.3 commander: 2.20.3
source-map-support: 0.5.21 source-map-support: 0.5.21
dev: false
/test-exclude@6.0.0: /test-exclude@6.0.0:
resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
@ -19297,6 +19288,7 @@ packages:
requiresBuild: true requiresBuild: true
dependencies: dependencies:
node-gyp-build: 4.6.0 node-gyp-build: 4.6.0
dev: false
/util-deprecate@1.0.2: /util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
@ -19383,7 +19375,7 @@ packages:
core-util-is: 1.0.2 core-util-is: 1.0.2
extsprintf: 1.3.0 extsprintf: 1.3.0
/vite-node@0.34.5(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0): /vite-node@0.34.5(@types/node@20.6.4)(sass@1.68.0):
resolution: {integrity: sha512-RNZ+DwbCvDoI5CbCSQSyRyzDTfFvFauvMs6Yq4ObJROKlIKuat1KgSX/Ako5rlDMfVCyMcpMRMTkJBxd6z8YRA==} resolution: {integrity: sha512-RNZ+DwbCvDoI5CbCSQSyRyzDTfFvFauvMs6Yq4ObJROKlIKuat1KgSX/Ako5rlDMfVCyMcpMRMTkJBxd6z8YRA==}
engines: {node: '>=v14.18.0'} engines: {node: '>=v14.18.0'}
hasBin: true hasBin: true
@ -19393,7 +19385,7 @@ packages:
mlly: 1.4.0 mlly: 1.4.0
pathe: 1.1.1 pathe: 1.1.1
picocolors: 1.0.0 picocolors: 1.0.0
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- '@types/node' - '@types/node'
- less - less
@ -19409,7 +19401,7 @@ packages:
resolution: {integrity: sha512-p4D8CFVhZS412SyQX125qxyzOgIFouwOcvjZWk6bQbNPR1wtaEzFT6jZxAjf1dejlGqa6fqHcuCvQea6EWUkUA==} resolution: {integrity: sha512-p4D8CFVhZS412SyQX125qxyzOgIFouwOcvjZWk6bQbNPR1wtaEzFT6jZxAjf1dejlGqa6fqHcuCvQea6EWUkUA==}
dev: true dev: true
/vite@4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0): /vite@4.4.9(@types/node@20.6.4)(sass@1.68.0):
resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==}
engines: {node: ^14.18.0 || >=16.0.0} engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true hasBin: true
@ -19442,7 +19434,6 @@ packages:
postcss: 8.4.30 postcss: 8.4.30
rollup: 3.29.2 rollup: 3.29.2
sass: 1.68.0 sass: 1.68.0
terser: 5.20.0
optionalDependencies: optionalDependencies:
fsevents: 2.3.2 fsevents: 2.3.2
@ -19453,12 +19444,12 @@ packages:
vitest: '>=0.16.0' vitest: '>=0.16.0'
dependencies: dependencies:
cross-fetch: 3.1.5 cross-fetch: 3.1.5
vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)(terser@5.20.0) vitest: 0.34.5(happy-dom@10.0.3)(sass@1.68.0)
transitivePeerDependencies: transitivePeerDependencies:
- encoding - encoding
dev: true dev: true
/vitest@0.34.5(happy-dom@10.0.3)(sass@1.68.0)(terser@5.20.0): /vitest@0.34.5(happy-dom@10.0.3)(sass@1.68.0):
resolution: {integrity: sha512-CPI68mmnr2DThSB3frSuE5RLm9wo5wU4fbDrDwWQQB1CWgq9jQVoQwnQSzYAjdoBOPoH2UtXpOgHVge/uScfZg==} resolution: {integrity: sha512-CPI68mmnr2DThSB3frSuE5RLm9wo5wU4fbDrDwWQQB1CWgq9jQVoQwnQSzYAjdoBOPoH2UtXpOgHVge/uScfZg==}
engines: {node: '>=v14.18.0'} engines: {node: '>=v14.18.0'}
hasBin: true hasBin: true
@ -19511,8 +19502,8 @@ packages:
strip-literal: 1.0.1 strip-literal: 1.0.1
tinybench: 2.5.0 tinybench: 2.5.0
tinypool: 0.7.0 tinypool: 0.7.0
vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite: 4.4.9(@types/node@20.6.4)(sass@1.68.0)
vite-node: 0.34.5(@types/node@20.6.4)(sass@1.68.0)(terser@5.20.0) vite-node: 0.34.5(@types/node@20.6.4)(sass@1.68.0)
why-is-node-running: 2.2.2 why-is-node-running: 2.2.2
transitivePeerDependencies: transitivePeerDependencies:
- less - less
@ -19896,6 +19887,19 @@ packages:
async-limiter: 1.0.1 async-limiter: 1.0.1
dev: true dev: true
/ws@8.14.2:
resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==}
engines: {node: '>=10.0.0'}
peerDependencies:
bufferutil: ^4.0.1
utf-8-validate: '>=5.0.2'
peerDependenciesMeta:
bufferutil:
optional: true
utf-8-validate:
optional: true
dev: true
/ws@8.14.2(bufferutil@4.0.7)(utf-8-validate@6.0.3): /ws@8.14.2(bufferutil@4.0.7)(utf-8-validate@6.0.3):
resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==} resolution: {integrity: sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==}
engines: {node: '>=10.0.0'} engines: {node: '>=10.0.0'}
@ -19910,6 +19914,7 @@ packages:
dependencies: dependencies:
bufferutil: 4.0.7 bufferutil: 4.0.7
utf-8-validate: 6.0.3 utf-8-validate: 6.0.3
dev: false
/xev@3.0.2: /xev@3.0.2:
resolution: {integrity: sha512-8kxuH95iMXzHZj+fwqfA4UrPcYOy6bGIgfWzo9Ji23JoEc30ge/Z++Ubkiuy8c0+M64nXmmxrmJ7C8wnuBhluw==} resolution: {integrity: sha512-8kxuH95iMXzHZj+fwqfA4UrPcYOy6bGIgfWzo9Ji23JoEc30ge/Z++Ubkiuy8c0+M64nXmmxrmJ7C8wnuBhluw==}