diff --git a/packages/frontend/assets/kawaii/LICENSE_MisskeyHQ b/packages/frontend/assets/kawaii/LICENSE_MisskeyHQ new file mode 100644 index 000000000000..8b7ee5a2f657 --- /dev/null +++ b/packages/frontend/assets/kawaii/LICENSE_MisskeyHQ @@ -0,0 +1,20 @@ +LICENSE +------- + +The following files: + +- misskey-io.png + +are owned by MisskeyHQ and are subject to copyright, with all rights reserved by MisskeyHQ. These files may not be redistributed, modified, or reused in any way without explicit permission from MisskeyHQ. + +Copyright (c) 2024 MisskeyHQ + +All rights reserved. + +This digital asset and related documentation are the property of MisskeyHQ. + +Permission is hereby granted to the user of this digital asset and related documentation to use, copy, and publish the asset for any purpose, provided that this notice and disclaimer of warranty appears in all copies. The user is expressly prohibited from distributing, sublicensing, selling, reselling, or transferring the asset for profit. Any form of modification or tampering with the asset is strictly prohibited. + +IN NO EVENT SHALL MISSKEYHQ BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING BUT NOT LIMITED TO DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, ARISING OUT OF THE USE, COPYING, PUBLISHING, OR MODIFICATION OF THIS ASSET. + +NO WARRANTIES OF ANY KIND ARE OFFERED FOR THIS ASSET. THIS ASSET IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. diff --git a/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI b/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI new file mode 100644 index 000000000000..0711c57dd83d --- /dev/null +++ b/packages/frontend/assets/kawaii/LICENSE_SAWARATSUKI @@ -0,0 +1,12 @@ +LICENSE +------- + +Copyright (c) by [さわらつき](https://github.com/SAWARATSUKI) + +The following files: + +- about-icon.png + +are licensed under a Creative Commons Attribution 4.0 International License. +These files SHOULD NOT be considered as a part of the this project that has licensed under AGPL-3.0-only +You should have received a copy of the license along with this work. If not, see . diff --git a/packages/frontend/assets/kawaii/about-icon.png b/packages/frontend/assets/kawaii/about-icon.png new file mode 100644 index 000000000000..e85cabba72cc 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 000000000000..2fca378c819b 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 d86ae18ffeac..c4f7a9a8dbfc 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,14 @@ export async function common(createVue: () => App) { } //#endregion + //#region kawaii + if (params.has('kawaii')) { + miLocalStorage.setItem('kawaii', 'true'); + } else { + miLocalStorage.removeItem('kawaii'); + } + //#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 54333cd4e9bf..6e653ea4cce1 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