This commit is contained in:
Zsolt Viczian
2022-02-27 20:56:13 +01:00
parent 196821371c
commit b944b348fc
8 changed files with 34 additions and 15 deletions

View File

@@ -1,3 +1,3 @@
{
"minify": false
"minify": true
}

View File

@@ -1,7 +1,7 @@
{
"id": "obsidian-excalidraw-plugin",
"name": "Excalidraw",
"version": "1.6.15",
"version": "1.6.16",
"minAppVersion": "0.12.16",
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
"author": "Zsolt Viczian",

View File

@@ -4,15 +4,19 @@ The Excalidraw Obsidian plugin is much more than "just" a drawing tool. To help
If you'd like to learn more, please subscribe to my YouTube channel: [Visual PKM](https://www.youtube.com/channel/UCC0gns4a9fhVkGkngvSumAQ) where I regularly share videos about Obsidian-Excalidraw and about tools and techniques for Visual Personal Knowledge Management.
Thank you & Enjoy!
<div class="excalidraw-videoWrapper"><div>
<iframe src="https://www.youtube.com/embed/sY4FoflGaiM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></div>
`;
export const RELEASE_NOTES: { [k: string]: string } = {
Intro: `I want to make it easier for you to keep up with all the updates.
Going forward, after installing each release, you'll be prompted with a message summarizing the key new features and fixes.
You can disable this in plugin-settings. The release change log is also avalable on [GitHub](https://github.com/zsviczian/obsidian-excalidraw-plugin/releases).
You can disable this in plugin-settings. The release change log is also available on [GitHub](https://github.com/zsviczian/obsidian-excalidraw-plugin/releases).
Since March 2021, I've spent most of my free time building this plugin. By now, this means well over 100 workdays worth of my time (assuming 8-hour days).
I am greatful to all of you who have already bought me a coffee. THANK YOU! This means a lot to me!
I am grateful to all of you who have already bought me a coffee. THANK YOU! This means a lot to me!
I still have many-many ideas for making Obsidian Excalidraw better.
I will continue to keep all the features of the plugin free. If, however, you'd like to contribute to the on-going development of the plugin, I am introducing a simple membership scheme, with Insider, Supporter and VIP tiers.
@@ -22,7 +26,7 @@ If you find this plugin valuable, please consider clicking the button below.
`,
"1.6.16": `
<div class="excalidraw-videoWrapper"><div>
<iframe src="https://www.youtube.com/embed/_c_0zpBJ4Xc?start=20" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<iframe src="https://www.youtube.com/embed/gMIKXyhS-dM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></div>
@@ -32,14 +36,21 @@ If you find this plugin valuable, please consider clicking the button below.
## New Features
- I added the Obsidian Tools Panel
- Click the Obsidian button to access the pannel.
- The tools panel contains key plugin commands and user / downloaded Obsidian scripts.
- Drag the pannel with the handle at the top. Single click on the top to collapse the pannel.
- Click the Obsidian button to access the panel.
- The tools panel contains key plugin commands and user / downloaded Excalidraw scripts.
- Drag the panel with the handle at the top. Single click on the top to collapse the panel.
- On Mobile press and hold the drag handle before dragging, to avoid activating the Obsidian slide in menus.
- On Mobile long touch individual buttons on the panel to access tooltips.
- Reinstall Excalidraw scripts to get the icons.
- If you hold down SHIFT while resizing a sticky note, the text size will scale instead of text wrapping. ([Excalidraw tweet](https://twitter.com/aakansha1216/status/1496116528890417155?s=20&t=taXjA6I9Nd0T-C0wYBsG5g))
- SVG export now includes links ([#4791](https://github.com/excalidraw/excalidraw/pull/4791))
- Added fullscreen mode for Obsidian Mobile
- Added full screen mode for Obsidian Mobile
- Release notes
- disable popup in settings
- access release notes via the command palette, or the button on the tools panel
[Release Notes on GitHub](https://github.com/zsviczian/obsidian-excalidraw-plugin/releases/tag/1.6.16)
[![support-membership](https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/images/support-tiers.jpg)](https://ko-fi.com/zsolt)
`,
};

View File

@@ -16,19 +16,22 @@ export class ReleaseNotes extends Modal {
onOpen(): void {
this.contentEl.classList.add("excalidraw-release");
this.containerEl.classList.add(".excalidraw-release");
this.titleEl.setText(`Welcome to Excalidraw ${this.version}`);
this.titleEl.setText(`Welcome to Excalidraw ${this.version??""}`);
this.createForm();
}
async onClose() {
this.contentEl.empty();
await this.plugin.loadSettings();
this.plugin.settings.previousRelease = this.version;
this.plugin.settings.previousRelease =
//@ts-ignore
this.app.plugins.manifests["obsidian-excalidraw-plugin"].version;
await this.plugin.saveSettings();
}
async createForm() {
const prevRelease = this.plugin.settings.previousRelease;
let prevRelease = this.plugin.settings.previousRelease;
prevRelease = (this.version===prevRelease) ? "0" : prevRelease;
const message = this.version
? Object.keys(RELEASE_NOTES)
.filter((key) => key > prevRelease)
@@ -43,6 +46,7 @@ export class ReleaseNotes extends Modal {
this.plugin,
);
this.contentEl.createEl("p", { text: "" }, (el) => {
//files manually follow one of two options:
el.style.textAlign = "right";

View File

@@ -3,7 +3,7 @@ import ExcalidrawPlugin from "./Main";
import { errorlog, log } from "./Utils";
const URL =
"https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/index-test.md";
"https://raw.githubusercontent.com/zsviczian/obsidian-excalidraw-plugin/master/ea-scripts/index-new.md";
export class ScriptInstallPrompt extends Modal {
constructor(private plugin: ExcalidrawPlugin) {

View File

@@ -287,7 +287,7 @@ export class ToolsPanel extends React.Component<PanelProps, PanelState> {
version,
).open();
}}
icon={ICONS.switchToMarkdown}
icon={ICONS.releaseNotes}
view={this.props.view}
/>
{this.state.isPreviewMode === null ? (

View File

@@ -201,3 +201,7 @@ li[data-testid] {
width: 50px;
display: inline-block;
}
.excalidraw-release p>a>img {
width: 100%
}

View File

@@ -1,4 +1,4 @@
{
"1.6.15": "0.12.16",
"1.6.16": "0.12.16",
"1.4.2": "0.11.13"
}