Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

Material Design overhaul #11

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
ee960a6
changed dashboard colors to more closely fit material design
M-Barrows Sep 11, 2019
0ef5406
updated network table and dashboard table colors
M-Barrows Sep 11, 2019
b1467bd
updated network table and dashboard table colors
M-Barrows Sep 11, 2019
8bc1a50
Merge branch 'master' of https://github.com/MBarrows20/pi-hole-midnight
M-Barrows Sep 11, 2019
f3bfb4b
updated settings page
M-Barrows Sep 11, 2019
fdd242c
updated help page
M-Barrows Sep 11, 2019
7fe8367
updated query log
M-Barrows Sep 11, 2019
da3d27a
updated query log
M-Barrows Sep 11, 2019
d11df6f
Merge branch 'master' of https://github.com/MBarrows20/pi-hole-midnight
M-Barrows Sep 11, 2019
449bf98
add new image and more table updates
M-Barrows Sep 11, 2019
5d67c77
test commit to change order of colors
M-Barrows Sep 11, 2019
dd9eedb
Update README.md
M-Barrows Sep 11, 2019
105c006
add min js file
M-Barrows Sep 11, 2019
da20557
Update README.md
M-Barrows Sep 11, 2019
9282038
groud work for an install script
Sep 11, 2019
0ec4efd
updated install instructions and file paths
Sep 11, 2019
eed4066
updated instal.sh file paths
Sep 11, 2019
0f7b4a7
reverting file paths in install script
M-Barrows Sep 11, 2019
d766667
updated README
M-Barrows Sep 11, 2019
018841d
Auto install option (#1)
M-Barrows Sep 11, 2019
50a28a8
updates to daterangepicker
M-Barrows Sep 11, 2019
600863d
changes to dropdowns in daterangepicker
M-Barrows Sep 11, 2019
274887c
Merge pull request #2 from MBarrows20/AutoInstall
M-Barrows Sep 11, 2019
105f1ce
new color scheme
M-Barrows Sep 11, 2019
45ebaaa
altered install script to use feature branch
M-Barrows Sep 11, 2019
ca8a33a
file structure changes and install update
M-Barrows Sep 11, 2019
d8d7e0f
removed under shading on queryovertimechart
M-Barrows Sep 11, 2019
8cefa21
changed queries over time colors slightly
M-Barrows Sep 11, 2019
4a182be
Feature graphic colors (#3)
M-Barrows Sep 11, 2019
23d0bcf
uploaded new dashboard photo
M-Barrows Sep 11, 2019
1b33dd7
updates to clients over time chart
M-Barrows Sep 13, 2019
aa2995b
added color to clietschart tooltip
M-Barrows Sep 13, 2019
79b5af2
added color to clietschart tooltip
M-Barrows Sep 13, 2019
54a5ef3
merge tooltip changes
M-Barrows Sep 13, 2019
fa2fc65
merge tooltip changes
M-Barrows Sep 13, 2019
5588f31
updated tooltip changes
M-Barrows Sep 13, 2019
c3e9941
updated install instructions and script
M-Barrows Sep 13, 2019
f705b00
Merge branch 'feature_graphicColors'
M-Barrows Sep 13, 2019
c4529e7
merge feature_graphicColors to master
M-Barrows Sep 13, 2019
dad7e34
updated dashboard image
M-Barrows Sep 13, 2019
37733a3
Update README.md
M-Barrows Sep 13, 2019
a461d8c
fixed 6th item in colors not having true hex code
M-Barrows Sep 14, 2019
58f7b0f
update table styles and dashboard card styles (#5)
M-Barrows Sep 14, 2019
fcc55bb
update dashboard image
M-Barrows Sep 14, 2019
ddec7e8
Update install_Material_Dark_Theme.sh
M-Barrows Sep 14, 2019
5710c84
Css hotfix (#6)
M-Barrows Sep 14, 2019
a23697e
Update skin-blue.css
M-Barrows Sep 14, 2019
21d4cd3
Update skin-blue.min.css
M-Barrows Sep 14, 2019
27aba56
Css hotfix (#7)
M-Barrows Sep 14, 2019
a3b4121
dark network table
M-Barrows Sep 15, 2019
d078f5d
updated wget link for install script
M-Barrows Sep 16, 2019
7217e7c
made plot grids more visible
M-Barrows Sep 17, 2019
f908aeb
converted forward destinations chart to bar chart
M-Barrows Sep 17, 2019
cfbf4f0
convert query type graphic to bar chart
M-Barrows Sep 17, 2019
2041b1c
Merge pull request #8 from MBarrows20/js-hotfix
M-Barrows Sep 17, 2019
d3d4090
Update README.md
M-Barrows Sep 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 26 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,43 @@
# pi-hole-midnight
# pi-hole-material-dark
Custom dark theme CSS for pi-hole to replace skin-blue AdminLTE theme.

Created for use with [pi-hole](https://github.com/pi-hole/pi-hole).

[![Screenshot](https://i.imgur.com/UrmgpyN.png)](https://i.imgur.com/UrmgpyN.png)

---
![Screenshot](dashboard.png)

----------
## Install
Type the following commands into SSH, line by line.

```
cd /var/www/html/admin/style/vendor/
sudo git clone https://github.com/jacobbates/pi-hole-midnight.git
sudo rm -f skin-blue.min.css
sudo cp pi-hole-midnight/skin-blue.min.css .
sudo rm -rf pi-hole-midnight
```
Don't forget the trailing " ." on the cp line (it means copy to current directory).
1. open a terminal (or SSH if you're remoting in) ( <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd> )
2. Type: `cd /var/www/html/`
3. Type: `sudo wget https://raw.githubusercontent.com/MBarrows20/pi-hole-material-dark/master/install_Material_Dark_Theme.sh`
4. Type: `sudo chmod +x install_Material_Dark_Theme.sh`
5. Type: `sudo ./install_Material_Dark_Theme.sh`
6. Follow the onscreen instructions!

If you get a 400 Bad Request after running step 3 above, it's likely that GitHub thinks your PiHole is a webcrawler. In such an event, run the following steps before continuing to step 4:

1. Type: `sudo git clone https://github.com/MBarrows20/pi-hole-material-dark.git`
2. Type: `sudo cp pi-hole-material-dark/install_Material_Dark_Theme.sh install_Material_Dark_Theme.sh`
3. Type: `sudo rm -rf pi-hole-material-dark`

---------
## Update

1. open a terminal (or SSH if you're remoting in) ( <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>T</kbd> )
2. Type: `cd /var/www/html/`
3. Type: `sudo ./install_Material_Dark_Theme.sh`
4. Follow the onscreen instructions!

----------
## Uninstall/Revert
Type the following commands into SSH, line by line.

```
cd /var/www/html/admin/style/vendor/
cd /var/www/html/admin
sudo git reset --hard
```

---

----------
### License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Binary file added dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions install_Material_Dark_Theme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
while true; do
read -p "Create a backup of the current files? (Y/n): " yn
case $yn in
[Yy]* )
cp -f admin/style/vendor/skin-blue.min.css admin/style/vendor/skin-blue.min.bkp.css # Backup Skin StyleSheet...
cp -f admin/style/vendor/daterangepicker.css admin/style/vendor/daterangepicker.bkp.css # Backup Calendar StyleSheet...
cp -f admin/scripts/vendor/app.min.js admin/scripts/vendor/app.min.bkp.js # Backup app.js
cp -f admin/scripts/pi-hole/js/index.js admin/scripts/pi-hole/js/index.bkp.js # Backup index.js
echo "Backup completed! Backup files contain the .bkp suffix before their extension."
break ;;
[Nn]* ) break;;
* ) echo "Please answer Yes (y) or No (n).";;
esac
done
while true; do
read -p "Install MBarrows20's Material Dark Theme now? (Y/n): " yn
case $yn in
[Yy]* )
git clone https://github.com/mbarrows20/pi-hole-material-dark.git temp
rm -f admin/style/vendor/skin-blue.min.css
rm -f admin/style/vendor/daterangepicker.css
rm -f admin/scripts/vendor/app.min.js
rm -f admin/scripts/pi-hole/js/index.js
cp temp/style/vendor/skin-blue.min.css admin/style/vendor/skin-blue.min.css
cp temp/style/vendor/daterangepicker.css admin/style/vendor/daterangepicker.css
cp temp/scripts/vendor/app.min.js admin/scripts/vendor/app.min.js
cp temp/scripts/pi-hole/js/index.js admin/scripts/pi-hole/js/index.js
rm -rf temp/
break;;
[Nn]* ) break;;
* ) echo "Please answer Yes (y) or No (n).";;
esac
done
echo "All done!"
Loading