Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
95e79a73
Commit
95e79a73
authored
Jan 26, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: auto beautify css injection in admin
parent
d0706b37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
Dockerfile
dev/build/Dockerfile
+2
-2
theming.js
server/graph/resolvers/theming.js
+8
-1
No files found.
dev/build/Dockerfile
View file @
95e79a73
# ====================
# --- Build Assets ---
# ====================
FROM
node:12.1
3
-alpine AS assets
FROM
node:12.1
4
-alpine AS assets
RUN
apk add yarn g++ make python
--no-cache
...
...
@@ -23,7 +23,7 @@ RUN yarn --production --frozen-lockfile --non-interactive
# ===============
# --- Release ---
# ===============
FROM
node:12.1
3
-alpine
FROM
node:12.1
4
-alpine
LABEL
maintainer="requarks.io"
RUN
apk add bash curl git openssh gnupg sqlite
--no-cache
&&
\
...
...
server/graph/resolvers/theming.js
View file @
95e79a73
...
...
@@ -20,7 +20,14 @@ module.exports = {
}]
},
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
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment