nodebb-theme-oxide
Advanced tools
Comparing version 4.0.26 to 5.0.0
@@ -23,2 +23,13 @@ (() => { | ||
const addButton = () => { | ||
if (ajaxify.data.loggedIn) { | ||
const toggleBtn = document.querySelector("#toggle-theme"); | ||
isDark ? toggleBtn.classList.add("on") : toggleBtn.classList.add("off"); | ||
toggleBtn.addEventListener("click", toggleTheme, false); | ||
} else { | ||
return null; | ||
} | ||
} | ||
const isDark = JSON.parse(localStorage.getItem("user:dark")); | ||
@@ -28,8 +39,3 @@ | ||
document.addEventListener("DOMContentLoaded", () => { | ||
const toggleBtn = document.querySelector("#toggle-theme"); | ||
isDark ? toggleBtn.classList.add("on") : toggleBtn.classList.add("off"); | ||
toggleBtn.addEventListener("click", toggleTheme, false); | ||
}, false); | ||
$(window).on("action:ajaxify.end", addButton); | ||
})() |
{ | ||
"name": "nodebb-theme-oxide", | ||
"description": "A theme that is based on the GitHub design.", | ||
"version": "4.0.26", | ||
"version": "5.0.0", | ||
"homepage": "https://github.com/youhosi/nodebb-theme-oxide", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -1,8 +0,29 @@ | ||
# Oxide theme for NodeBB | ||
### :tada: nodebb-theme-oxide | ||
--- | ||
NodeBB theme made to look similar to GitHub design. | ||
Theme itself is not fully done yet, there might still be some places where CSS styling is missing, in addition, some visual components might need to be changed depending on your taste. | ||
A theme that is based on the GitHub design. | ||
### :books: Installation | ||
--- | ||
> npm i nodebb-theme-oxide | ||
## Screenshot | ||
1. Installation is pretty simple, all you have to do is to log into your SSH, go into your main nodebb directory, then copy & paste the above command. It will install the theme for you automatically. | ||
2. After this step, you have to go into your ACP to enable it inside of Appearance > Themes section. | ||
3. Once you have selected the theme, it will ask you to Restart & Rebuild your NodeBB instance, do it. | ||
4. Enjoy this awesome theme! Wooo :ghost: | ||
![screenshot](https://raw.githubusercontent.com/youhosi/nodebb-theme-oxide/master/img/screenshot.png "Strona Główna Oxide Polska") | ||
![screenshot](https://raw.githubusercontent.com/youhosi/nodebb-theme-oxide/master/img/screenshot2.png "Widok tematów") | ||
### :page_facing_up: Contributing | ||
--- | ||
1. Fork it! | ||
2. Create your feature branch: git checkout -b my-new-feature | ||
3. Commit your changes: git commit -am 'Add some feature' | ||
4. Push to the branch: git push origin my-new-feature | ||
5. Create PR! | ||
### 🧐 Screenshots | ||
--- | ||
[Demo](https://umod.pl) | ||
![screenshot](https://raw.githubusercontent.com/youhosi/nodebb-theme-oxide/master/img/screenshot.png "Categories page") | ||
![screenshot](https://raw.githubusercontent.com/youhosi/nodebb-theme-oxide/master/img/screenshot2.png "Categories page") |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2522381
254
2905
29