Update environment variable access and add .gitignore

This commit is contained in:
Brian Joseph Petro 2025-02-03 10:21:49 -05:00
parent 408a80fb06
commit c6775888d4
3 changed files with 6 additions and 3 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
node_modules
.env
main.js

View file

@ -326,7 +326,7 @@ class ScGraphItemView extends ItemView {
return label.length > this.maxLabelCharacters ? label.slice(0, this.maxLabelCharacters) + '...' : label;
}
get env() { return window.SmartSearch?.main?.env; }
get env() { return window.smart_env; }
get smartNotes() { return window.SmartSearch?.main?.env?.smart_sources?.items; }

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "smart-connections-visualizer",
"version": "1.0.18",
"version": "1.0.19",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "smart-connections-visualizer",
"version": "1.0.18",
"version": "1.0.19",
"license": "MIT",
"dependencies": {
"bootstrap": "^5.3.3",