Skip to content

Commit

Permalink
更新角标提示
Browse files Browse the repository at this point in the history
  • Loading branch information
cumany committed Mar 27, 2024
1 parent da5e9d6 commit 7da1559
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
* @Author: cumany [email protected]
* @Date: 2023-07-26 16:57:16
* @LastEditors: cumany [email protected]
* @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"
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
}
Expand Down
1 change: 1 addition & 0 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.pkmer-statusbar:hover {
cursor:pointer;
box-shadow: none;
opacity: var(--icon-opacity-hover);
color: var(--icon-color-hover);
Expand Down
9 changes: 8 additions & 1 deletion src/utils/pluginstatistics.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* @Author: cumany [email protected]
* @Date: 2024-03-27 14:22:09
* @LastEditors: cumany [email protected]
* @LastEditTime: 2024-03-27 14:36:53
* @Description:
*/
import { PkmerSettings } from "@/main";
import { App } from "obsidian";
import { PkmerApi } from "@/api/api";
Expand All @@ -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(); // 在构造函数中加载插件列表
Expand Down
6 changes: 4 additions & 2 deletions src/utils/themestatistics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: cumany [email protected]
* @Date: 2024-03-27 09:08:58
* @LastEditors: cumany [email protected]
* @LastEditTime: 2024-03-27 09:37:07
* @LastEditTime: 2024-03-27 14:37:08
* @Description:
*/
import { PkmerSettings } from "@/main";
Expand All @@ -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(); // 在构造函数中加载插件列表
Expand Down

0 comments on commit 7da1559

Please sign in to comment.