diff --git a/manifest.json b/manifest.json index 4a76614..34498f4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "pkmer", "name": "PKMer", - "version": "0.7.9", + "version": "0.8.0", "minAppVersion": "1.3.5", "description": "A marketplace of third-party plugins and themes developed by Obsidian enthusiasts in China to enhance the experience of using Obsidian in China.", "author": "PKMer(windily-cloud&cumany)", diff --git a/src/main.ts b/src/main.ts index 137f4a5..a7899ff 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,10 +2,10 @@ * @Author: cumany cuman@qq.com * @Date: 2023-07-26 16:57:16 * @LastEditors: cumany cuman@qq.com - * @LastEditTime: 2024-03-27 14:21:05 + * @LastEditTime: 2024-03-27 14:27:56 * @Description: */ -import { Notice, Plugin, View, debounce } from "obsidian" +import { Notice, Plugin, } from "obsidian" import { DEFAULT_VIEW_TYPE, PkmderDownloaderView } from "./views/PluginMarket" import { PkmerSettingTab } from "./settings" @@ -13,7 +13,7 @@ import PluginProcessor from "@/utils/downloader" import ThemeProcessor from "@/utils/tdownloader" import PluginStatistics from "@/utils/pluginstatistics" import ThemeStatistics from "@/utils/themestatistics" -import { filter } from "jszip" + export interface PkmerSettings { token: string } diff --git a/src/styles/custom.css b/src/styles/custom.css index beddb36..18bd722 100644 --- a/src/styles/custom.css +++ b/src/styles/custom.css @@ -1,4 +1,5 @@ .pkmer-statusbar:hover { + cursor:pointer; box-shadow: none; opacity: var(--icon-opacity-hover); color: var(--icon-color-hover); diff --git a/src/utils/pluginstatistics.ts b/src/utils/pluginstatistics.ts index 05ba444..bd57430 100644 --- a/src/utils/pluginstatistics.ts +++ b/src/utils/pluginstatistics.ts @@ -1,3 +1,10 @@ +/* + * @Author: cumany cuman@qq.com + * @Date: 2024-03-27 14:22:09 + * @LastEditors: cumany cuman@qq.com + * @LastEditTime: 2024-03-27 14:36:53 + * @Description: + */ import { PkmerSettings } from "@/main"; import { App } from "obsidian"; import { PkmerApi } from "@/api/api"; @@ -16,7 +23,7 @@ export default class PluginStatistics { private allPluginList: PluginInfo[]; constructor(private app: App, private settings: PkmerSettings) { - this.api = new PkmerApi(settings.token); + this.api = new PkmerApi(this.settings.token) this.isUserLogin = false; this.allPluginList = []; this.loadAllPlugins(); // 在构造函数中加载插件列表 diff --git a/src/utils/themestatistics.ts b/src/utils/themestatistics.ts index 5a1fef8..22c8bf5 100644 --- a/src/utils/themestatistics.ts +++ b/src/utils/themestatistics.ts @@ -2,7 +2,7 @@ * @Author: cumany cuman@qq.com * @Date: 2024-03-27 09:08:58 * @LastEditors: cumany cuman@qq.com - * @LastEditTime: 2024-03-27 09:37:07 + * @LastEditTime: 2024-03-27 14:37:08 * @Description: */ import { PkmerSettings } from "@/main"; @@ -18,12 +18,14 @@ interface ThemeInfo { } export default class PluginStatistics { + private api: PkmerApi; private isUserLogin: boolean; private allThemeList: ThemeInfo[]; constructor(private app: App, private settings: PkmerSettings) { - this.api = new PkmerApi(settings.token); + + this.api = new PkmerApi(this.settings.token) this.isUserLogin = false; this.allThemeList = []; this.loadAllThemes(); // 在构造函数中加载插件列表