From 75e97da41e8d76eb09c39cfdea35aad9916762fd Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 9 Jul 2026 16:13:16 +0900 Subject: [PATCH] wip --- ...lugin-unwind-css-module-class-name.test.ts | 2 - packages/frontend/package.json | 1 - packages/frontend/src/boot/common.ts | 5 - .../src/components/MkImageGallery.item.vue | 209 ++++++++++++++++++ .../src/components/MkImageGallery.vue | 84 +++++++ .../frontend/src/components/MkMediaList.vue | 147 ++---------- packages/frontend/src/utility/hotkey.ts | 1 - packages/frontend/vite.config.ts | 3 - pnpm-lock.yaml | 9 - 9 files changed, 308 insertions(+), 153 deletions(-) create mode 100644 packages/frontend/src/components/MkImageGallery.item.vue create mode 100644 packages/frontend/src/components/MkImageGallery.vue diff --git a/packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts b/packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts index 0a5000f46d..0b4ab93bde 100644 --- a/packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts +++ b/packages/frontend/lib/rollup-plugin-unwind-css-module-class-name.test.ts @@ -61,7 +61,6 @@ it('Composition API (standard)', () => { import { c as api, d as store, i as i18n, aD as notePage, bN as ImgWithBlurhash, bY as getStaticImageUrl, _ as _export_sfc } from './app-!~{001}~.js'; import { M as MkContainer } from './MkContainer-!~{03M}~.js'; import { b as defineComponent, a as ref, e as onMounted, z as resolveComponent, g as openBlock, h as createBlock, i as withCtx, K as createTextVNode, E as toDisplayString, u as unref, l as createBaseVNode, q as normalizeClass, B as createCommentVNode, k as createElementBlock, F as Fragment, C as renderList, A as createVNode } from './vue-!~{002}~.js'; -import './photoswipe-!~{003}~.js'; const _hoisted_1 = /* @__PURE__ */ createBaseVNode("i", { class: "ti ti-photo" }, null, -1); const _sfc_main = /* @__PURE__ */ defineComponent({ @@ -179,7 +178,6 @@ export { index_photos as default }; import { c as api, d as store, i as i18n, aD as notePage, bN as ImgWithBlurhash, bY as getStaticImageUrl, _ as _export_sfc } from './app-!~{001}~.js'; import { M as MkContainer } from './MkContainer-!~{03M}~.js'; import { b as defineComponent, a as ref, e as onMounted, z as resolveComponent, g as openBlock, h as createBlock, i as withCtx, K as createTextVNode, E as toDisplayString, u as unref, l as createBaseVNode, q as normalizeClass, B as createCommentVNode, k as createElementBlock, F as Fragment, C as renderList, A as createVNode } from './vue-!~{002}~.js'; -import './photoswipe-!~{003}~.js'; const _hoisted_1 = /* @__PURE__ */ createBaseVNode("i", { class: "ti ti-photo" }, null, -1); const index_photos = /* @__PURE__ */ defineComponent({ diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 3cf135bae1..a8ec73fd25 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -56,7 +56,6 @@ "misskey-bubble-game": "workspace:*", "misskey-js": "workspace:*", "misskey-reversi": "workspace:*", - "photoswipe": "5.4.4", "punycode.js": "2.3.1", "qr-code-styling": "1.9.2", "qr-scanner": "1.4.2", diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index 4c5e601dae..4c670a44f1 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -99,11 +99,6 @@ export async function common(createVue: () => Promise>) { // タッチデバイスでCSSの:hoverを機能させる window.document.addEventListener('touchend', () => {}, { passive: true }); - // URLに#pswpを含む場合は取り除く - if (window.location.hash === '#pswp') { - window.history.replaceState(null, '', window.location.href.replace('#pswp', '')); - } - // 一斉リロード reloadChannel.addEventListener('message', path => { if (path !== null) window.location.href = path; diff --git a/packages/frontend/src/components/MkImageGallery.item.vue b/packages/frontend/src/components/MkImageGallery.item.vue new file mode 100644 index 0000000000..ed16bb02d6 --- /dev/null +++ b/packages/frontend/src/components/MkImageGallery.item.vue @@ -0,0 +1,209 @@ + + + + + + + diff --git a/packages/frontend/src/components/MkImageGallery.vue b/packages/frontend/src/components/MkImageGallery.vue new file mode 100644 index 0000000000..586ad4c429 --- /dev/null +++ b/packages/frontend/src/components/MkImageGallery.vue @@ -0,0 +1,84 @@ + + + + + + + diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 9090e74bb6..64264d01e4 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only > @@ -31,9 +31,6 @@ SPDX-License-Identifier: AGPL-3.0-only