diff --git a/neutralino.config.json b/neutralino.config.json index e92cf28..5f18858 100644 --- a/neutralino.config.json +++ b/neutralino.config.json @@ -17,7 +17,8 @@ "app.*", "os.*", "debug.log", - "clipboard.*" + "clipboard.*", + "storage.*" ], "globalVariables": { "TEST1": "Hello", diff --git a/src/icons/appIcon.png b/src/icons/appIcon.png index d708bc3..a44e17b 100644 Binary files a/src/icons/appIcon.png and b/src/icons/appIcon.png differ diff --git a/src/icons/trayIcon.png b/src/icons/trayIcon.png index bcfeb18..6eec6d7 100644 Binary files a/src/icons/trayIcon.png and b/src/icons/trayIcon.png differ diff --git a/src/index.html b/src/index.html index 3621578..45c1c34 100644 --- a/src/index.html +++ b/src/index.html @@ -3,6 +3,10 @@ Cooperate Cleaner + @@ -16,9 +20,5 @@
- diff --git a/src/index.js b/src/index.js index c6df363..e2c7ad9 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,4 @@ + Neutralino.init(); $(document).ready(async function() { // Load navbar @@ -18,10 +19,14 @@ $(document).ready(async function() { loadView(initialView); // Enable window close event - await Neutralino.events.on('windowClose', () => { + await Neutralino.events.on('windowClose', async () => { + console.log('Window close event received.') + let data = window.localStorage.getItem('config'); + await Neutralino.storage.setData('config', data); Neutralino.app.exit(); }); + await initStorage(); }); function loadView(view) { @@ -52,4 +57,10 @@ function loadView(view) { } - +async function initStorage() { + let data = await Neutralino.storage.getData('config'); + console.log("Data from storage: ", data); + if(data != null) { + window.localStorage.setItem('config', data); + } +} \ No newline at end of file diff --git a/src/views/about/about.html b/src/views/about/about.html index c2e1fa6..38b319c 100644 --- a/src/views/about/about.html +++ b/src/views/about/about.html @@ -10,8 +10,20 @@

About Cooperate Cleaner

Developed by Walzen665

+

Used libraries/frameworks

+

Using Bootstrap

+

Using jQuery

+

Using animate.css

+

Build with NeutralinoJS

+

MIT License

+

+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +

- +

v

+

Copyright 2024© Walzen665

\ No newline at end of file diff --git a/src/views/about/about.js b/src/views/about/about.js index e69de29..9047abf 100644 --- a/src/views/about/about.js +++ b/src/views/about/about.js @@ -0,0 +1,3 @@ +$(document).ready(async function() { + $("#version-display").text(NL_APPVERSION); +}); \ No newline at end of file diff --git a/src/views/home/home.css b/src/views/home/home.css index 1f14c1d..cb68638 100644 --- a/src/views/home/home.css +++ b/src/views/home/home.css @@ -5,4 +5,37 @@ } .app-card { transition: .2s; +} + +.content { + z-index: 1; +} + +.background-container { + z-index: -1; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; +} + +.background { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: url('../../icons/background.webp') no-repeat center center/cover; + filter: blur(10px); +} + +.overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.5); /* Adjust the alpha value for more or less darkness */ } \ No newline at end of file diff --git a/src/views/home/home.html b/src/views/home/home.html index 8847bab..e63af0d 100644 --- a/src/views/home/home.html +++ b/src/views/home/home.html @@ -1,4 +1,4 @@ -
+

Welcome to Cooperate Cleaner

Your advanced text filtering engine

@@ -7,7 +7,7 @@
- App 1 + App 1
Cooperate clearer

Clear your text from sensible data

@@ -16,7 +16,7 @@
- App 2 + App 2
Configuration

Manage configurations

@@ -25,7 +25,7 @@
- App 3 + App 3
About

View license details

@@ -35,4 +35,8 @@
-
\ No newline at end of file +
+
+
+
+
\ No newline at end of file