Added storing logic
- Added custom images - Added app icon - Added dynamic version display
This commit is contained in:
parent
ac5f58407a
commit
9d20e8b207
@ -17,7 +17,8 @@
|
||||
"app.*",
|
||||
"os.*",
|
||||
"debug.log",
|
||||
"clipboard.*"
|
||||
"clipboard.*",
|
||||
"storage.*"
|
||||
],
|
||||
"globalVariables": {
|
||||
"TEST1": "Hello",
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 117 KiB |
Binary file not shown.
Before Width: | Height: | Size: 965 B After Width: | Height: | Size: 2.3 KiB |
@ -3,6 +3,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Cooperate Cleaner</title>
|
||||
<!-- Neutralino.js client. This file is gitignored,
|
||||
because `neu update` typically downloads it.
|
||||
Avoid copy-pasting it.
|
||||
-->
|
||||
<script src="js/neutralino.js"></script>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<link rel="stylesheet" href="lib/bootstrap.min.css">
|
||||
@ -16,9 +20,5 @@
|
||||
<div id="navbar"></div>
|
||||
<div id="content" class="vh-100"></div>
|
||||
<div id="footer"></div>
|
||||
<!-- Neutralino.js client. This file is gitignored,
|
||||
because `neu update` typically downloads it.
|
||||
Avoid copy-pasting it.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
|
15
src/index.js
15
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);
|
||||
}
|
||||
}
|
@ -10,8 +10,20 @@
|
||||
<h1 class="display-4">About <strong>Cooperate Cleaner</strong></h1>
|
||||
<p class="lead mb-5">Developed by Walzen665</p>
|
||||
|
||||
<h4>Used libraries/frameworks</h4>
|
||||
<p>Using Bootstrap</p>
|
||||
<p>Using jQuery</p>
|
||||
<p>Using animate.css</p>
|
||||
<p>Build with NeutralinoJS</p>
|
||||
|
||||
<h4 class="mt-5">MIT License</h4>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
|
||||
<p class="mt-5"><strong>v<span id="version-display"></span></strong></p>
|
||||
<p class="mt-5"><strong>Copyright 2024© Walzen665</strong></p>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,3 @@
|
||||
$(document).ready(async function() {
|
||||
$("#version-display").text(NL_APPVERSION);
|
||||
});
|
@ -6,3 +6,36 @@
|
||||
.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 */
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
<section class="py-5">
|
||||
<section class="py-5 content">
|
||||
<div class="container text-center">
|
||||
<h1 class="display-4">Welcome to <strong>Cooperate Cleaner</strong></h1>
|
||||
<p class="lead mb-5">Your advanced text filtering engine</p>
|
||||
@ -7,7 +7,7 @@
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6 mb-4">
|
||||
<div class="card app-card shadow-sm animate__animated animate__fadeIn" id="home-btn-cc">
|
||||
<img src="https://via.placeholder.com/300x200" alt="App 1" class="card-img-top">
|
||||
<img src="/icons/clean.webp" alt="App 1" class="card-img-top">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Cooperate clearer</h5>
|
||||
<p class="card-text">Clear your text from sensible data</p>
|
||||
@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 mb-4">
|
||||
<div class="card app-card shadow-sm animate__animated animate__fadeIn" id="home-btn-config">
|
||||
<img src="https://via.placeholder.com/300x200" alt="App 2" class="card-img-top">
|
||||
<img src="/icons/settings.webp" alt="App 2" class="card-img-top">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Configuration</h5>
|
||||
<p class="card-text">Manage configurations</p>
|
||||
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 mb-4">
|
||||
<div class="card app-card shadow-sm animate__animated animate__fadeIn" id="home-btn-about">
|
||||
<img src="https://via.placeholder.com/300x200" alt="App 3" class="card-img-top">
|
||||
<img src="/icons/about.webp" alt="App 3" class="card-img-top">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">About</h5>
|
||||
<p class="card-text">View license details</p>
|
||||
@ -36,3 +36,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="background-container">
|
||||
<div class="background"></div>
|
||||
<div class="overlay"></div>
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user