mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-22 01:33:29 +01:00
2.4.3
This commit is contained in:
parent
f2c73ef189
commit
8db94a85f9
7 changed files with 28 additions and 24 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "obsidian-custom-frames",
|
"id": "obsidian-custom-frames",
|
||||||
"name": "Custom Frames",
|
"name": "Custom Frames",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"minAppVersion": "0.14.5",
|
"minAppVersion": "0.14.5",
|
||||||
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
||||||
"author": "Ellpeck",
|
"author": "Ellpeck",
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-custom-frames",
|
"name": "obsidian-custom-frames",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-custom-frames",
|
"name": "obsidian-custom-frames",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^16.11.6",
|
"@types/node": "^16.11.6",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-custom-frames",
|
"name": "obsidian-custom-frames",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"description": "An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
"description": "An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
20
src/view.ts
20
src/view.ts
|
@ -56,14 +56,16 @@ export class CustomFrameView extends ItemView {
|
||||||
this.contentEl.appendChild(this.frame.create());
|
this.contentEl.appendChild(this.frame.create());
|
||||||
}
|
}
|
||||||
|
|
||||||
onHeaderMenu(menu: Menu): void {
|
onPaneMenu(menu: Menu, source: string): void {
|
||||||
super.onHeaderMenu(menu);
|
super.onPaneMenu(menu, source);
|
||||||
for (let action of CustomFrameView.actions) {
|
if (source == "tab-header") {
|
||||||
menu.addItem(i => {
|
for (let action of CustomFrameView.actions) {
|
||||||
i.setTitle(action.name);
|
menu.addItem(i => {
|
||||||
i.setIcon(action.icon);
|
i.setTitle(action.name);
|
||||||
i.onClick(() => action.action(this));
|
i.setIcon(action.icon);
|
||||||
});
|
i.onClick(() => action.action(this));
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,4 +86,4 @@ interface Action {
|
||||||
name: string;
|
name: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
action: (view: CustomFrameView) => any;
|
action: (view: CustomFrameView) => any;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "obsidian-custom-frames",
|
"id": "obsidian-custom-frames",
|
||||||
"name": "Custom Frames",
|
"name": "Custom Frames",
|
||||||
"version": "2.4.2",
|
"version": "2.4.3",
|
||||||
"minAppVersion": "0.14.5",
|
"minAppVersion": "0.14.5",
|
||||||
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
"description": "A plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.",
|
||||||
"author": "Ellpeck",
|
"author": "Ellpeck",
|
||||||
|
|
|
@ -8,5 +8,6 @@
|
||||||
"2.3.0": "0.14.5",
|
"2.3.0": "0.14.5",
|
||||||
"2.4.0": "0.14.5",
|
"2.4.0": "0.14.5",
|
||||||
"2.4.1": "0.14.5",
|
"2.4.1": "0.14.5",
|
||||||
"2.4.2": "0.14.5"
|
"2.4.2": "0.14.5",
|
||||||
|
"2.4.3": "0.15.5"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue