From a41d89f961ae72b4c0aefc944252814cba444e03 Mon Sep 17 00:00:00 2001 From: limepotato Date: Sun, 14 Jul 2024 12:33:50 +0200 Subject: [PATCH] revert 4773ef4502680d7b9b0a90207799581d5a8aaa52 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA --- locales/en-US.yml | 1 + packages/client/src/components/MkOneko.vue | 246 ++++++++++++++++++ .../client/src/pages/settings/general.vue | 4 + .../pages/settings/preferences-backups.vue | 1 + packages/client/src/store.ts | 4 + packages/client/src/ui/_common_/common.vue | 2 + 6 files changed, 258 insertions(+) create mode 100644 packages/client/src/components/MkOneko.vue diff --git a/locales/en-US.yml b/locales/en-US.yml index 927a21bf7..55fae79b3 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -181,6 +181,7 @@ loginFailed: "Failed to sign in" showOnRemote: "Open original page" general: "General" accountMoved: "Creature has moved to a new account:" +oneko: "Cat friend :3" wallpaper: "Wallpaper" setWallpaper: "Set wallpaper" removeWallpaper: "Remove wallpaper" diff --git a/packages/client/src/components/MkOneko.vue b/packages/client/src/components/MkOneko.vue new file mode 100644 index 000000000..cfe09f3df --- /dev/null +++ b/packages/client/src/components/MkOneko.vue @@ -0,0 +1,246 @@ + + + + + + + + \ No newline at end of file diff --git a/packages/client/src/pages/settings/general.vue b/packages/client/src/pages/settings/general.vue index 895c2dbbd..87a35fc9f 100644 --- a/packages/client/src/pages/settings/general.vue +++ b/packages/client/src/pages/settings/general.vue @@ -176,6 +176,9 @@ {{ i18n.ts.useSystemFont }} + {{ + i18n.ts.oneko + }} {{ i18n.ts.useOsNativeEmojis }}
@@ -322,6 +325,7 @@ const disableDrawer = computed(defaultStore.makeGetterSetter("disableDrawer")); const disableShowingAnimatedImages = computed( defaultStore.makeGetterSetter("disableShowingAnimatedImages"), ); +const oneko = computed(defaultStore.makeGetterSetter('oneko')); const loadRawImages = computed(defaultStore.makeGetterSetter("loadRawImages")); const imageNewTab = computed(defaultStore.makeGetterSetter("imageNewTab")); const nsfw = computed(defaultStore.makeGetterSetter("nsfw")); diff --git a/packages/client/src/pages/settings/preferences-backups.vue b/packages/client/src/pages/settings/preferences-backups.vue index 1652a1e13..3a213bc0b 100644 --- a/packages/client/src/pages/settings/preferences-backups.vue +++ b/packages/client/src/pages/settings/preferences-backups.vue @@ -107,6 +107,7 @@ const defaultStoreSaveKeys: (keyof (typeof defaultStore)["state"])[] = [ "reportError", "squareAvatars", "numberOfPageCache", + "oneko", "showUpdates", "swipeOnMobile", "swipeOnDesktop", diff --git a/packages/client/src/store.ts b/packages/client/src/store.ts index 82e57bad0..75471cec1 100644 --- a/packages/client/src/store.ts +++ b/packages/client/src/store.ts @@ -295,6 +295,10 @@ export const defaultStore = markRaw( where: "device", default: 5, }, + oneko: { + where: 'device', + default: false, + }, enterSendsMessage: { where: "device", default: true, diff --git a/packages/client/src/ui/_common_/common.vue b/packages/client/src/ui/_common_/common.vue index fdfdbdb31..a9d7bd21f 100644 --- a/packages/client/src/ui/_common_/common.vue +++ b/packages/client/src/ui/_common_/common.vue @@ -14,6 +14,7 @@
DEV BUILD
+