diff --git a/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI_KawaiiLogos b/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI_KawaiiLogos new file mode 100644 index 000000000..d09912f27 --- /dev/null +++ b/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI_KawaiiLogos @@ -0,0 +1,18 @@ +LICENSE +------- + +Copyright (c) by [さわらつき](https://github.com/SAWARATSUKI) + +The following files: + +- misskey-io.png +- about-icon.png + +are licensed under proprietary license. To view a copy of this license, visit https://github.com/SAWARATSUKI/KawaiiLogos/blob/main/README_EN.md#license +AND SHOULD NOT be considered as part of this project, which is licensed under AGPL-3.0-only. + +The following files: + +- about-icon.png (uwl.png) + +were copied from [misskey-dev/misskey-hub-next](https://github.com/misskey-dev/misskey-hub-next/tree/221a89760e80d75a00600c4e37e22c0f226a6017/public/img/uwu) diff --git a/packages/frontend/assets/kawaii/about-icon.png b/packages/frontend/assets/kawaii/about-icon.png new file mode 100644 index 000000000..e85cabba7 Binary files /dev/null and b/packages/frontend/assets/kawaii/about-icon.png differ diff --git a/packages/frontend/assets/kawaii/misskey-io.png b/packages/frontend/assets/kawaii/misskey-io.png new file mode 100644 index 000000000..110c2d50b Binary files /dev/null and b/packages/frontend/assets/kawaii/misskey-io.png differ diff --git a/packages/frontend/src/boot/common.ts b/packages/frontend/src/boot/common.ts index d86ae18ff..1f459bb86 100644 --- a/packages/frontend/src/boot/common.ts +++ b/packages/frontend/src/boot/common.ts @@ -124,8 +124,8 @@ export async function common(createVue: () => App) { miLocalStorage.setItem('v', instance.version); }); - //#region loginId const params = new URLSearchParams(location.search); + //#region loginId const loginId = params.get('loginId'); if (loginId) { @@ -142,6 +142,17 @@ export async function common(createVue: () => App) { } //#endregion + //#region kawaii + if (params.has('kawaii') || params.has('uwu')) { + const v = params.get('kawaii') ?? params.get('uwu'); + if (v === 'false' || v === '0' || v === 'no' || v === 'off') { + miLocalStorage.removeItem('kawaii'); + } else { + miLocalStorage.setItem('kawaii', 'true'); + } + } + //#endregion + // NOTE: この処理は必ずクライアント更新チェック処理より後に来ること(テーマ再構築のため) watch(defaultStore.reactiveState.darkMode, (darkMode) => { applyTheme(darkMode ? ColdDeviceStorage.get('darkTheme') : ColdDeviceStorage.get('lightTheme')); diff --git a/packages/frontend/src/components/MkVisitorDashboard.vue b/packages/frontend/src/components/MkVisitorDashboard.vue index 54333cd4e..6e653ea4c 100644 --- a/packages/frontend/src/components/MkVisitorDashboard.vue +++ b/packages/frontend/src/components/MkVisitorDashboard.vue @@ -6,7 +6,8 @@ SPDX-License-Identifier: AGPL-3.0-only