Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zwordi
funkwhale
Commits
83f104ce
Verified
Commit
83f104ce
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Fixed broken custom css path
parent
3b4543a0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/configuration.rst
+2
-2
2 additions, 2 deletions
docs/configuration.rst
front/public/settings.json
+3
-1
3 additions, 1 deletion
front/public/settings.json
front/src/store/instance.js
+1
-1
1 addition, 1 deletion
front/src/store/instance.js
with
6 additions
and
4 deletions
docs/configuration.rst
+
2
−
2
View file @
83f104ce
...
...
@@ -182,7 +182,7 @@ work. We will store the necessary files in the ``/srv/funkwhale/custom`` directo
mkdir custom
cat <<EOF > custom/settings.json
{
"additionalStylesheets": ["/custom/custom.css"]
"additionalStylesheets": ["/
front/
custom/custom.css"]
}
EOF
cat <<EOF > custom/custom.css
...
...
@@ -194,7 +194,7 @@ work. We will store the necessary files in the ``/srv/funkwhale/custom`` directo
By executing the previous commands, you will end up with two files in your ``/srv/funkwhale/custom``
directory:
- ``settings.json`` will tell the front-end what stylesheets you want to load (``/custom/custom.css`` in this example)
- ``settings.json`` will tell the front-end what stylesheets you want to load (``/
front/
custom/custom.css`` in this example)
- ``custom.css`` will hold your custom CSS
The last step to make this work is to ensure both files are served by the reverse proxy.
...
...
This diff is collapsed.
Click to expand it.
front/public/settings.json
+
3
−
1
View file @
83f104ce
{
"additionalStylesheets"
:
[
"/custom.css"
]
"additionalStylesheets"
:
[
"/front/custom.css"
]
}
This diff is collapsed.
Click to expand it.
front/src/store/instance.js
+
1
−
1
View file @
83f104ce
...
...
@@ -123,7 +123,7 @@ export default {
})
},
fetchFrontSettings
({
commit
})
{
return
axios
.
get
(
'
/settings.json
'
).
then
(
response
=>
{
return
axios
.
get
(
'
/
front/
settings.json
'
).
then
(
response
=>
{
commit
(
'
frontSettings
'
,
response
.
data
)
},
response
=>
{
logger
.
default
.
error
(
'
Error when fetching front-end configuration (or no customization available)
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment