summaryrefslogtreecommitdiff
path: root/packages/frontend/src
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-02-17 14:38:15 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-02-17 14:38:15 +0900
commit34f8345bc8330e0e53ab9e043a4b6db7b150636f (patch)
tree2d4cfcddf8fe2e28d2169e7f91a9498236d6f5f0 /packages/frontend/src
parenttweak error log (diff)
downloadsharkey-34f8345bc8330e0e53ab9e043a4b6db7b150636f.tar.gz
sharkey-34f8345bc8330e0e53ab9e043a4b6db7b150636f.tar.bz2
sharkey-34f8345bc8330e0e53ab9e043a4b6db7b150636f.zip
clean up dev logs
Diffstat (limited to 'packages/frontend/src')
-rw-r--r--packages/frontend/src/components/global/MkA.vue2
-rw-r--r--packages/frontend/src/nirax.ts4
-rw-r--r--packages/frontend/src/pizzax.ts13
3 files changed, 6 insertions, 13 deletions
diff --git a/packages/frontend/src/components/global/MkA.vue b/packages/frontend/src/components/global/MkA.vue
index 87fa9c8252..8eacf16d6d 100644
--- a/packages/frontend/src/components/global/MkA.vue
+++ b/packages/frontend/src/components/global/MkA.vue
@@ -15,9 +15,9 @@ export type MkABehavior = 'window' | 'browser' | null;
<script lang="ts" setup>
import { computed, inject, shallowRef } from 'vue';
+import { url } from '@@/js/config.js';
import * as os from '@/os.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
-import { url } from '@@/js/config.js';
import { i18n } from '@/i18n.js';
import { useRouter } from '@/router/supplier.js';
diff --git a/packages/frontend/src/nirax.ts b/packages/frontend/src/nirax.ts
index 0374d03c48..ea3f1fb01a 100644
--- a/packages/frontend/src/nirax.ts
+++ b/packages/frontend/src/nirax.ts
@@ -6,8 +6,8 @@
// NIRAX --- A lightweight router
import { onMounted, shallowRef } from 'vue';
-import type { Component, ShallowRef } from 'vue';
import { EventEmitter } from 'eventemitter3';
+import type { Component, ShallowRef } from 'vue';
function safeURIDecode(str: string): string {
try {
@@ -242,8 +242,6 @@ export class Router extends EventEmitter<RouterEvent> implements IRouter {
hash,
};
- if (_DEV_) console.log('Routing: ', path, queryString);
-
function check(routes: RouteDef[], _parts: string[]): Resolved | null {
forEachRouteLoop:
for (const route of routes) {
diff --git a/packages/frontend/src/pizzax.ts b/packages/frontend/src/pizzax.ts
index e94210363a..918b81b204 100644
--- a/packages/frontend/src/pizzax.ts
+++ b/packages/frontend/src/pizzax.ts
@@ -6,8 +6,8 @@
// PIZZAX --- A lightweight store
import { onUnmounted, ref, watch } from 'vue';
-import type { Ref } from 'vue';
import { BroadcastChannel } from 'broadcast-channel';
+import type { Ref } from 'vue';
import { $i } from '@/account.js';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { get, set } from '@/scripts/idb-proxy.js';
@@ -113,7 +113,6 @@ export class Storage<T extends StateDef> {
this.reactiveState[k].value = this.state[k] = this.mergeState<T[keyof T]['default']>(deviceAccountState[k], v.default);
} else {
this.reactiveState[k].value = this.state[k] = v.default;
- if (_DEV_) console.log('Use default value', k, v.default);
}
}
@@ -180,12 +179,9 @@ export class Storage<T extends StateDef> {
// (JSON.parse(JSON.stringify(value))の代わり)
const rawValue = deepClone(value);
- if (_DEV_) console.log('set', key, rawValue, value);
-
this.reactiveState[key].value = this.state[key] = rawValue;
return this.addIdbSetJob(async () => {
- if (_DEV_) console.log(`set ${String(key)} start`);
switch (this.def[key].where) {
case 'device': {
this.pizzaxChannel.postMessage({
@@ -224,7 +220,6 @@ export class Storage<T extends StateDef> {
break;
}
}
- if (_DEV_) console.log(`set ${String(key)} complete`);
});
}
@@ -247,9 +242,9 @@ export class Storage<T extends StateDef> {
getter?: (v: T[K]['default']) => R,
setter?: (v: R) => T[K]['default'],
): {
- get: () => R;
- set: (value: R) => void;
- } {
+ get: () => R;
+ set: (value: R) => void;
+ } {
const valueRef = ref(this.state[key]);
const stop = watch(this.reactiveState[key], val => {