Bulmaswatch

This commit is contained in:
Wingy 2020-12-01 22:20:01 -05:00
parent c02510659c
commit f9c34f8de1
7 changed files with 12 additions and 3 deletions

View file

@ -85,6 +85,8 @@ SHORT_TITLE=Christmas
ROOT_PATH=/ ROOT_PATH=/
# Where to trust the X-Forwarded-For header from. Defaults to "loopback". Useful for proxying to docker. # Where to trust the X-Forwarded-For header from. Defaults to "loopback". Useful for proxying to docker.
TRUST_PROXY=loopback TRUST_PROXY=loopback
# Any theme from https://jenil.github.io/bulmaswatch
BULMASWATCH=default
## Wishlist Settings ## Wishlist Settings
# Set to true to not allow users to have their own lists. You may want this for a birthday or wedding. # Set to true to not allow users to have their own lists. You may want this for a birthday or wedding.

View file

@ -12,5 +12,6 @@ module.exports = {
shortTitle: process.env.SHORT_TITLE || 'Christmas', shortTitle: process.env.SHORT_TITLE || 'Christmas',
wishlist: require('./wishlist'), wishlist: require('./wishlist'),
base: (process.env.ROOT_PATH || '/').endsWith('/') ? (process.env.ROOT_PATH || '/') : `${process.env.ROOT_PATH}/`, base: (process.env.ROOT_PATH || '/').endsWith('/') ? (process.env.ROOT_PATH || '/') : `${process.env.ROOT_PATH}/`,
trustProxy: process.env.TRUST_PROXY === 'true' ? true : process.env.TRUST_PROXY || 'loopback' trustProxy: process.env.TRUST_PROXY === 'true' ? true : process.env.TRUST_PROXY || 'loopback',
bulmaswatch: (process.env.BULMASWATCH || 'default').toLowerCase()
} }

View file

@ -17,6 +17,7 @@
"dependencies": { "dependencies": {
"bcrypt-nodejs": "^0.0.3", "bcrypt-nodejs": "^0.0.3",
"body-parser": "^1.18.3", "body-parser": "^1.18.3",
"bulmaswatch": "^0.8.1",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"child-process-promise": "^2.2.1", "child-process-promise": "^2.2.1",
"connect-flash": "^0.1.1", "connect-flash": "^0.1.1",

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
../../node_modules/bulmaswatch

View file

@ -10,7 +10,7 @@ html(lang='en')
title #{config.siteTitle} - #{title} title #{config.siteTitle} - #{title}
else else
title #{config.siteTitle} title #{config.siteTitle}
link(rel='stylesheet', href=`${_CC.config.base}libraries/bulma.min.css`) link(rel='stylesheet', href=`${_CC.config.base}libraries/bulmaswatch/${_CC.config.bulmaswatch}/bulmaswatch.min.css`)
link(rel='stylesheet', href=`${_CC.config.base}libraries/fontawesome/css/all.css`) link(rel='stylesheet', href=`${_CC.config.base}libraries/fontawesome/css/all.css`)
link(rel='stylesheet', href=`${_CC.config.base}libraries/animate.min.css`) link(rel='stylesheet', href=`${_CC.config.base}libraries/animate.min.css`)
link(rel='stylesheet', href=`${_CC.config.base}css/main.css`) link(rel='stylesheet', href=`${_CC.config.base}css/main.css`)

View file

@ -405,6 +405,11 @@
"base64-js" "^1.3.1" "base64-js" "^1.3.1"
"ieee754" "^1.1.13" "ieee754" "^1.1.13"
"bulmaswatch@^0.8.1":
"integrity" "sha512-7HGm5v9If6gzxbTht4/oVS0dhySp6g/JyTrxmpSXHXgDQXivvxiuVmcJOZo3PFv9GAOn4om7SK36I2V8W81sgw=="
"resolved" "https://registry.npmjs.org/bulmaswatch/-/bulmaswatch-0.8.1.tgz"
"version" "0.8.1"
"bytes@3.0.0": "bytes@3.0.0":
"integrity" "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" "integrity" "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg="
"resolved" "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" "resolved" "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz"