-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
|
@@ -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(); // 在构造函数中加载插件列表 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"; | ||
|
@@ -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(); // 在构造函数中加载插件列表 | ||
|