Skip to content

Commit

Permalink
Merge pull request #2 from Ndaboom/backup-boostrap5
Browse files Browse the repository at this point in the history
Left sidebar navigation and modal forms inputs and buttons enhanced
  • Loading branch information
Ndaboom authored Jul 30, 2024
2 parents 10b57dc + 3b422c0 commit 989f824
Show file tree
Hide file tree
Showing 18 changed files with 3,060 additions and 1,181 deletions.
645 changes: 645 additions & 0 deletions config.json

Large diffs are not rendered by default.

384 changes: 384 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,20 @@
"@yetzt/nedb": "1.8.0",
"archiver": "7.0.0",
"body-parser": "1.20.2",
"bootstrap": "^5.3.3",
"cbor": "5.2.0",
"compression": "1.7.4",
"cookie-session": "2.0.0",
"express": "4.19.2",
"express-handlebars": "5.3.5",
"express-ws": "4.0.0",
"ipcheck": "0.1.0",
"meshcentral": "^1.1.24",
"minimist": "1.2.8",
"multiparty": "4.2.3",
"node-forge": "1.3.1",
"nodemon": "^3.1.4",
"otplib": "10.2.3",
"ua-parser-js": "1.0.37",
"ws": "8.17.1",
"yauzl": "2.10.0"
Expand Down
7 changes: 7 additions & 0 deletions public/scripts/bootstrap.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions public/scripts/fontawesome/all.min.js

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions public/scripts/sweetalert2.all.min.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions public/scripts/themes/theme-switcher.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
document.addEventListener('DOMContentLoaded', function () {

const themeSwitcher = document.getElementById('theme-switcher');
const themeStylesheet = document.getElementById('theme-stylesheet');

// Load saved theme from local storage
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
themeStylesheet.href = `styles/themes/${savedTheme}/bootstrap.min.css`;
themeSwitcher.value = savedTheme;
}

// Change theme on selection
themeSwitcher.addEventListener('change', function () {
const selectedTheme = themeSwitcher.value;
themeStylesheet.href = `styles/themes/${selectedTheme}/bootstrap.min.css`;
// Save selected theme to local storage
localStorage.setItem('theme', selectedTheme);
});
});
6 changes: 6 additions & 0 deletions public/styles/bootstrap.min.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions public/styles/fontawesome/all.min.css

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions public/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1531,10 +1531,12 @@ a {
opacity: 0.9;
}

.lbbuttonsel2 {
width: 82px;
nav .lbbuttonsel2 {
width: 100%;
border-radius: 5px 0px 0px 5px;
opacity: 1;
background-color: #ffffff;
color: #113962 !important;
}

/*groups all buttons repeated code into one block*/
Expand Down Expand Up @@ -3292,3 +3294,7 @@ a {
background-color: #AAA;
font-weight: bold;
}

.sidebar .nav-link {
font-size: xx-large;
}
1 change: 1 addition & 0 deletions public/styles/sweetalert2.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/cerulean/bootstrap.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/cosmo/bootstrap.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/cyborg/bootstrap.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/darkly/bootstrap.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/flatly/bootstrap.min.css

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions public/styles/themes/journal/bootstrap.min.css

Large diffs are not rendered by default.

3,071 changes: 1,892 additions & 1,179 deletions views/default.handlebars

Large diffs are not rendered by default.

0 comments on commit 989f824

Please sign in to comment.