From 75b3a9c782eca8c8f6cfe54342fb590200a750f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 18:05:08 +0800 Subject: [PATCH] Remove unused myPiniaPlugin.ts with debug console.log calls Co-Authored-By: Claude Opus 4.6 --- src/plugins/myPiniaPlugin.ts | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/plugins/myPiniaPlugin.ts diff --git a/src/plugins/myPiniaPlugin.ts b/src/plugins/myPiniaPlugin.ts deleted file mode 100644 index c6674fb..0000000 --- a/src/plugins/myPiniaPlugin.ts +++ /dev/null @@ -1,27 +0,0 @@ -// The Lucia project. -// Copyright 2023-2026 DSP, inc. All rights reserved. -// Authors: -// chiayin.kuo@dsp.im (chiayin), 2023/1/31 -// imacat.yang@dsp.im (imacat), 2023/9/23 -// cindy.chang@dsp.im (Cindy Chang), 2024/5/30 -/** @module myPiniaPlugin Custom Pinia plugin for store debugging. */ - -import { PiniaPluginContext } from 'pinia'; - -/** - * A Pinia plugin that logs all store mutations and state changes - * to the console for debugging purposes. - * - * @param {PiniaPluginContext} context - The Pinia plugin context. - */ -const myPiniaPlugin = (context: PiniaPluginContext) => { - const { store } = context; - - // Add your plugin logic here, for example: - store.$subscribe((mutation, state) => { - console.log(`Store mutation:`, mutation); - console.log(`New state:`, state); - }); -}; - -export default myPiniaPlugin;