fix: auto beautify css injection in admin
This commit is contained in:
parent
d0706b376b
commit
95e79a7316
@ -1,7 +1,7 @@
|
|||||||
# ====================
|
# ====================
|
||||||
# --- Build Assets ---
|
# --- Build Assets ---
|
||||||
# ====================
|
# ====================
|
||||||
FROM node:12.13-alpine AS assets
|
FROM node:12.14-alpine AS assets
|
||||||
|
|
||||||
RUN apk add yarn g++ make python --no-cache
|
RUN apk add yarn g++ make python --no-cache
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ RUN yarn --production --frozen-lockfile --non-interactive
|
|||||||
# ===============
|
# ===============
|
||||||
# --- Release ---
|
# --- Release ---
|
||||||
# ===============
|
# ===============
|
||||||
FROM node:12.13-alpine
|
FROM node:12.14-alpine
|
||||||
LABEL maintainer="requarks.io"
|
LABEL maintainer="requarks.io"
|
||||||
|
|
||||||
RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
|
RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
|
||||||
|
@ -20,7 +20,14 @@ module.exports = {
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
async config(obj, args, context, info) {
|
async config(obj, args, context, info) {
|
||||||
return _.pick(WIKI.config.theming, ['theme', 'iconset', 'darkMode', 'injectCSS', 'injectHead', 'injectBody'])
|
return {
|
||||||
|
theme: WIKI.config.theming.theme,
|
||||||
|
iconset: WIKI.config.theming.iconset,
|
||||||
|
darkMode: WIKI.config.theming.darkMode,
|
||||||
|
injectCSS: new CleanCSS({ format: 'beautify' }).minify(WIKI.config.theming.injectCSS).styles,
|
||||||
|
injectHead: WIKI.config.theming.injectHead,
|
||||||
|
injectBody: WIKI.config.theming.injectBody
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ThemingMutation: {
|
ThemingMutation: {
|
||||||
|
Loading…
Reference in New Issue
Block a user