Skip to content

Commit

Permalink
Removes donation dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
hediet committed Jan 24, 2025
1 parent 6b6b52f commit 1809651
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 237 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Draw.io VS Code Integration

[![](https://img.shields.io/static/v1?style=social&label=Sponsor&message=%E2%9D%A4&logo=GitHub&color&link=%3Curl%3E)](https://github.com/sponsors/hediet)
[![](https://img.shields.io/static/v1?style=social&label=Donate&message=%E2%9D%A4&logo=Paypal&color&link=%3Curl%3E)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZP5F38L4C88UY&source=url)
[![](https://img.shields.io/twitter/follow/hediet_dev.svg?style=social)](https://twitter.com/intent/follow?screen_name=hediet_dev)

This unofficial extension integrates [Draw.io](https://app.diagrams.net/) (also known as [diagrams.net](diagrams.net)) into VS Code.
Expand All @@ -23,13 +21,6 @@ Mentioned in the official diagrams.net [blog](https://www.diagrams.net/blog/embe

![](./docs/demo.gif)

<br />
<br />

# Like it so far? You might also like my [open source](https://github.com/hediet/chrome-ext-github-monaco) [Chrome extension that enhances the Github markdown editor](https://chrome.google.com/webstore/detail/monaco-markdown-editor-fo/mmpbdjdnmhgkpligeniippcgfmkgkpnf)!

<br />
<br />

## Editing .drawio.svg/.drawio.png Files

Expand Down
110 changes: 0 additions & 110 deletions drawio-custom-plugins/src/donationDialog.ts

This file was deleted.

1 change: 0 additions & 1 deletion drawio-custom-plugins/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "./linkSelectedNodeWithData";
import "./liveshare";
import "./focus";
import "./menu-entries";
import "./donationDialog";

Draw.loadPlugin((ui) => {
(window as any).hediet_DbgUi = ui;
Expand Down
6 changes: 1 addition & 5 deletions drawio-custom-plugins/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.sponsor-dialog {
line-height: 1.3;
}

li {
padding: 3px 0;
}
}
4 changes: 2 additions & 2 deletions drawio-custom-plugins/src/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

declare type CustomDrawioAction = UpdateVerticesAction | AddVerticesAction | GetVerticesAction
| LinkSelectedNodeWithDataAction | NodeSelectionEnabledAction | UpdateLiveshareViewState | { action: "askForDonations" };
| LinkSelectedNodeWithDataAction | NodeSelectionEnabledAction | UpdateLiveshareViewState;
declare type CustomDrawioEvent = NodeSelectedEvent | GetVerticesResultEvent
| UpdateLocalStorage | PluginLoaded | CursorChangedEvent | SelectionChangedEvent | FocusChangedEvent | InvokeCommandEvent | SelectionRectangleChangedEvent;

declare interface InvokeCommandEvent {
event: "invokeCommand";
command: "export" | "save" | "convert" | "openDonationPage";
command: "export" | "save" | "convert";
}

declare interface FocusChangedEvent {
Expand Down
6 changes: 0 additions & 6 deletions src/DrawioClient/CustomizedDrawioClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,6 @@ export class CustomizedDrawioClient extends DrawioClient<
});
}

public askForDonations(): void {
this.sendCustomAction({
action: "askForDonations",
});
}

protected async handleEvent(evt: CustomDrawioEvent): Promise<void> {
if (evt.event === "nodeSelected") {
this.onNodeSelectedEmitter.emit({
Expand Down
4 changes: 0 additions & 4 deletions src/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { DrawioEditorService } from "./DrawioEditorService";
import { LinkCodeWithSelectedNodeService } from "./features/CodeLinkFeature";
import { EditDiagramAsTextFeature } from "./features/EditDiagramAsTextFeature";
import { LiveshareFeature } from "./features/LiveshareFeature";
import { ActivityTracking } from "./features/ActivtyTracking";
import { DrawioClientFactory } from "./DrawioClient";
import { registerFailableCommand } from "./utils/registerFailableCommand";

Expand Down Expand Up @@ -36,9 +35,6 @@ export class Extension {
private readonly liveshareFeature = this.dispose.track(
new LiveshareFeature(this.editorService, this.config)
);
private readonly insiderFeedbackFeature = this.dispose.track(
new ActivityTracking(this.editorService, this.config)
);

constructor(private readonly context: vscode.ExtensionContext) {
this.dispose.track(
Expand Down
96 changes: 0 additions & 96 deletions src/features/ActivtyTracking.ts

This file was deleted.

8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@
resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-7.5.2.tgz#5e2f1d120f07b9cda07e5dedd4f3bf8888fccdb9"
integrity sha512-T+m89VdXj/eidZyejvmoP9jivXgBDdkOSBVQjU9kF349NEx10QdPNGxHeZUaj1IlJ32/ewdyXJjnJxyxJroYwg==

"@types/vscode@1.46.0":
version "1.46.0"
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.46.0.tgz#53f2075986e901ed25cd1ec5f3ffa5db84a111b3"
integrity sha512-8m9wPEB2mcRqTWNKs9A9Eqs8DrQZt0qNFO8GkxBOnyW6xR//3s77SoMgb/nY1ctzACsZXwZj3YRTDsn4bAoaUw==
"@types/vscode@1.70.0":
version "1.70.0"
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.70.0.tgz#9cb14cdaac9f450a7005ae2db49ecee4a084c983"
integrity sha512-3/9Fz0F2eBgwciazc94Ien+9u1elnjFg9YAhvAb3qDy/WeFWD9VrOPU7CIytryOVUdbxus8uzL4VZYONA0gDtA==

"@types/xml-formatter@^1.1.0":
version "1.2.0"
Expand Down

0 comments on commit 1809651

Please sign in to comment.