Skip to content

Commit 77afd66

Browse files
committed
Added deprecation notices
1 parent c99c485 commit 77afd66

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "neo4j-graph-view",
33
"name": "Neo4j Graph View",
4-
"version": "0.2.5",
4+
"version": "0.2.6",
55
"minAppVersion": "0.9.16",
66
"description": "An Obsidian plugin for advanced graph visualization and querying using Neo4j.",
77
"author": "Emile",

neo4j-graph-view/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ export default class Neo4jViewPlugin extends Plugin {
3333
imgServer: Server;
3434

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

124127

125128
await this.initialize();
129+
130+
126131
}
127132

128133
public getFileFromAbsolutePath(abs_path: string): TAbstractFile {

neo4j-graph-view/settings.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class Neo4jViewSettingTab extends PluginSettingTab {
8989
containerEl.createEl('h3', {text: 'Neo4j Graph View'});
9090

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

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

101+
let juggl_link = document.createElement("a");
102+
juggl_link.href = "https://juggl.io/";
103+
juggl_link.target = '_blank';
104+
juggl_link.innerHTML = 'Juggl';
105+
101106
let introPar = document.createElement("p");
102-
introPar.innerHTML = "Check out " + doc_link.outerHTML + " for installation help and a getting started guide. <br>" +
107+
introPar.innerHTML = "WARNING: Neo4j Graph View is deprecated and will not receive any more updates. " +
108+
"It will be removed from the community plugins soon. It is replaced by " + juggl_link.outerHTML + ". <br> " +
109+
"Check out " + doc_link.outerHTML + " for installation help and a getting started guide. <br>" +
103110
"Join " + discord_link.outerHTML + " for nice discussion and additional help."
104111

105112
containerEl.appendChild(introPar);

neo4j-graph-view/visualization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class NeoVisView extends ItemView{
106106
});
107107
this.network.on("oncontext", (event) => {
108108
// Thanks Liam for sharing how to do context menus
109-
const fileMenu = new Menu(); // Creates empty file menu
109+
const fileMenu = new Menu(this.plugin.app); // Creates empty file menu
110110
let nodeId = this.network.getNodeAt(event.pointer.DOM);
111111

112112
if (!(nodeId === undefined)) {

0 commit comments

Comments
 (0)