Skip to content

Commit

Permalink
Added deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
HEmile committed Apr 19, 2021
1 parent c99c485 commit 77afd66
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "neo4j-graph-view",
"name": "Neo4j Graph View",
"version": "0.2.5",
"version": "0.2.6",
"minAppVersion": "0.9.16",
"description": "An Obsidian plugin for advanced graph visualization and querying using Neo4j.",
"author": "Emile",
Expand Down
5 changes: 5 additions & 0 deletions neo4j-graph-view/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export default class Neo4jViewPlugin extends Plugin {
imgServer: Server;

async onload() {
let noticeText = "WARNING: Neo4j Graph View is deprecated and replaced by the new Obsidian plugin Juggl."
new Notice(noticeText);
console.log(noticeText);
if (this.app.vault.adapter instanceof FileSystemAdapter) {
this.path = this.app.vault.adapter.getBasePath();
}
Expand Down Expand Up @@ -123,6 +126,8 @@ export default class Neo4jViewPlugin extends Plugin {


await this.initialize();


}

public getFileFromAbsolutePath(abs_path: string): TAbstractFile {
Expand Down
11 changes: 9 additions & 2 deletions neo4j-graph-view/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class Neo4jViewSettingTab extends PluginSettingTab {
containerEl.createEl('h3', {text: 'Neo4j Graph View'});

let doc_link = document.createElement("a");
doc_link.href = "https://publish.obsidian.md/semantic-obsidian/Neo4j+Graph+View+Plugin";
doc_link.href = "https://juggl.io/Neo4j+Graph+View/Neo4j+Graph+View+Plugin";
doc_link.target = '_blank';
doc_link.innerHTML = 'the documentation';

Expand All @@ -98,8 +98,15 @@ export class Neo4jViewSettingTab extends PluginSettingTab {
discord_link.target = '_blank';
discord_link.innerHTML = 'the Discord server';

let juggl_link = document.createElement("a");
juggl_link.href = "https://juggl.io/";
juggl_link.target = '_blank';
juggl_link.innerHTML = 'Juggl';

let introPar = document.createElement("p");
introPar.innerHTML = "Check out " + doc_link.outerHTML + " for installation help and a getting started guide. <br>" +
introPar.innerHTML = "WARNING: Neo4j Graph View is deprecated and will not receive any more updates. " +
"It will be removed from the community plugins soon. It is replaced by " + juggl_link.outerHTML + ". <br> " +
"Check out " + doc_link.outerHTML + " for installation help and a getting started guide. <br>" +
"Join " + discord_link.outerHTML + " for nice discussion and additional help."

containerEl.appendChild(introPar);
Expand Down
2 changes: 1 addition & 1 deletion neo4j-graph-view/visualization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class NeoVisView extends ItemView{
});
this.network.on("oncontext", (event) => {
// Thanks Liam for sharing how to do context menus
const fileMenu = new Menu(); // Creates empty file menu
const fileMenu = new Menu(this.plugin.app); // Creates empty file menu
let nodeId = this.network.getNodeAt(event.pointer.DOM);

if (!(nodeId === undefined)) {
Expand Down

0 comments on commit 77afd66

Please sign in to comment.