Refactor
This commit is contained in:
parent
7d4b5eb33a
commit
4e2a7501f4
2 changed files with 3 additions and 3 deletions
|
|
@ -100,4 +100,4 @@ See https://github.com/obsidianmd/obsidian-api
|
||||||
|
|
||||||
|
|
||||||
npm install -g openapi-typescript
|
npm install -g openapi-typescript
|
||||||
openapi-typescript http://localhost:3000/api.json --output ./types.ts
|
openapi-typescript http://localhost:3000/api.json --output plugin/src/services/types.ts
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
WorkspaceLeaf,
|
WorkspaceLeaf,
|
||||||
} from "obsidian";
|
} from "obsidian";
|
||||||
|
|
||||||
import * as plugin from "../../backend/sync_lib/pkg/sync_lib.js";
|
import * as lib from "../../backend/sync_lib/pkg/sync_lib.js";
|
||||||
import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm";
|
import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm";
|
||||||
import { SyncSettingsTab } from "./views/settings-tab.js";
|
import { SyncSettingsTab } from "./views/settings-tab.js";
|
||||||
import { SyncView } from "./views/sync-view.js";
|
import { SyncView } from "./views/sync-view.js";
|
||||||
|
|
@ -24,7 +24,7 @@ export default class SyncPlugin extends Plugin {
|
||||||
async onload() {
|
async onload() {
|
||||||
Logger.getInstance().info('Starting plugin "Sample Plugin"');
|
Logger.getInstance().info('Starting plugin "Sample Plugin"');
|
||||||
|
|
||||||
await plugin.default(Promise.resolve((wasmBin as any).default));
|
await lib.default(Promise.resolve((wasmBin as any).default));
|
||||||
|
|
||||||
this.addCommand({
|
this.addCommand({
|
||||||
id: "sample-editor-command",
|
id: "sample-editor-command",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue