cleaned more date code, setup testing for stats, renamed plugin and info
cleaned more date code, setup testing for stats, renamed plugin and info
This commit is contained in:
parent
0e6751f093
commit
f77466b8a2
5 changed files with 45 additions and 12 deletions
4
main.ts
4
main.ts
|
|
@ -3,12 +3,10 @@ import { ExampleSettingsTab } from "./settings";
|
|||
import { ExampleView, VIEW_TYPE_EXAMPLE} from "./view"
|
||||
|
||||
interface ExamplePluginSettings {
|
||||
dateFormat: string
|
||||
userID: string
|
||||
apiToken: string
|
||||
}
|
||||
const DEFAULT_SETTINGS: Partial<ExamplePluginSettings> = {
|
||||
dateFormat: "YYYY-MM-DD",
|
||||
userID: "",
|
||||
apiToken: ""
|
||||
}
|
||||
|
|
@ -23,7 +21,7 @@ export default class ExamplePlugin extends Plugin {
|
|||
VIEW_TYPE_EXAMPLE,
|
||||
(leaf) => (this.view = new ExampleView(leaf, this))
|
||||
);
|
||||
this.addRibbonIcon("dice", "Activate view", () => { //activate view
|
||||
this.addRibbonIcon("dice", "Open Habitica Pane", () => { //activate view
|
||||
this.activateView();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue