diff --git a/.gitignore b/.gitignore index 86d6783..cac0874 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,22 @@ +.DS_Store + node_modules static/bundle.css static/bundle.js static/bundle.js.map static/alltopics.json + +# Developer tools' files +.lite_workspace.lua + +# Neutralinojs binaries and builds +/bin +/dist + +# Neutralinojs client (minified) +neutralino.js + +# Neutralinojs related files +.storage +*.log + diff --git a/neutralino.config.json b/neutralino.config.json new file mode 100644 index 0000000..69e34e5 --- /dev/null +++ b/neutralino.config.json @@ -0,0 +1,81 @@ +{ + "applicationId": "org.learnawesome.learndb", + "version": "1.0.0", + "defaultMode": "window", + "port": 0, + "documentRoot": "/static/", + "url": "/", + "enableServer": true, + "enableNativeAPI": true, + "tokenSecurity": "one-time", + "logging": { + "enabled": true, + "writeToLogFile": true + }, + "nativeAllowList": [ + "app.*", + "os.*", + "debug.log" + ], + "globalVariables": { + "TEST1": "Hello", + "TEST2": [ + 2, + 4, + 5 + ], + "TEST3": { + "value1": 10, + "value2": {} + } + }, + "modes": { + "window": { + "title": "LearnDB", + "width": 1200, + "height": 800, + "minWidth": 800, + "minHeight": 500, + "fullScreen": false, + "alwaysOnTop": false, + "icon": "/static/icons/appIcon.png", + "enableInspector": true, + "borderless": false, + "maximize": false, + "hidden": false, + "resizable": true, + "exitProcessOnClose": false + }, + "browser": { + "globalVariables": { + "TEST": "Test value browser" + }, + "nativeBlockList": [ + "filesystem.*" + ] + }, + "cloud": { + "url": "/resources/#cloud", + "nativeAllowList": [ + "app.*" + ] + }, + "chrome": { + "width": 1200, + "height": 800, + "args": "--user-agent=\"Neutralinojs chrome mode\"", + "nativeBlockList": [ + "filesystem.*", + "os.*" + ] + } + }, + "cli": { + "binaryName": "learndb", + "resourcesPath": "/static/", + "extensionsPath": "/extensions/", + "clientLibrary": "/static/neutralino.js", + "binaryVersion": "4.7.0", + "clientVersion": "3.6.0" + } + } \ No newline at end of file diff --git a/static/icons/appIcon.png b/static/icons/appIcon.png new file mode 100644 index 0000000..d708bc3 Binary files /dev/null and b/static/icons/appIcon.png differ diff --git a/static/icons/trayIcon.png b/static/icons/trayIcon.png new file mode 100644 index 0000000..bcfeb18 Binary files /dev/null and b/static/icons/trayIcon.png differ diff --git a/static/index.html b/static/index.html index 01065ed..90fe02f 100644 --- a/static/index.html +++ b/static/index.html @@ -71,6 +71,14 @@ + + + + +
diff --git a/static/neutra.js b/static/neutra.js new file mode 100644 index 0000000..1b7ddaf --- /dev/null +++ b/static/neutra.js @@ -0,0 +1,6 @@ +function onWindowClose() { + Neutralino.app.exit(); +} + +Neutralino.init(); +Neutralino.events.on("windowClose", onWindowClose);