Skip to content

Commit

Permalink
chore: cleanup further
Browse files Browse the repository at this point in the history
  • Loading branch information
vertis committed Jan 28, 2024
1 parent 24f5d69 commit becd6ca
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 420 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Build
id: build
Expand Down
22 changes: 0 additions & 22 deletions old/.gitignore

This file was deleted.

170 changes: 0 additions & 170 deletions old/src/main.ts

This file was deleted.

154 changes: 0 additions & 154 deletions old/styles.css

This file was deleted.

20 changes: 0 additions & 20 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Plugin } from "obsidian";
import { ExampleView, VIEW_TYPE_EXAMPLE } from "./views/ExampleView";
import "virtual:uno.css";
import {
addLegacyMarkdownProcessors as addLegacyImageLayoutMarkdownProcessors,
Expand Down Expand Up @@ -29,30 +28,11 @@ export default class ObsidianNoteConnections extends Plugin {
async onload() {
await this.loadSettings();

this.registerView(VIEW_TYPE_EXAMPLE, (leaf) => new ExampleView(leaf));

this.addRibbonIcon("dice", "Activate view", () => {
this.activateView();
});

addLegacyImageLayoutMarkdownProcessors(this);
addLegacyMasonryMarkdownProcessors(this);
}

onunload() {
console.log("unloading plugin");
}

async activateView() {
this.app.workspace.detachLeavesOfType(VIEW_TYPE_EXAMPLE);

await this.app.workspace.getRightLeaf(false).setViewState({
type: VIEW_TYPE_EXAMPLE,
active: true,
});

this.app.workspace.revealLeaf(
this.app.workspace.getLeavesOfType(VIEW_TYPE_EXAMPLE)[0]
);
}
}
Loading

0 comments on commit becd6ca

Please sign in to comment.