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:
ransurf 2021-10-12 19:48:33 -07:00
parent 0e6751f093
commit f77466b8a2
5 changed files with 45 additions and 12 deletions

View file

@ -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();
});
}