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
38918167
Commit
38918167
authored
May 31, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: setup assets location + mysql migration 2.4.13
parent
d19bf6cc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
19 deletions
+29
-19
setup.vue
client/components/setup.vue
+2
-2
legacy.pug
dev/templates/legacy.pug
+7
-7
setup.pug
dev/templates/setup.pug
+7
-7
2.4.13.js
server/db/migrations/2.4.13.js
+12
-2
setup.js
server/setup.js
+1
-1
No files found.
client/components/setup.vue
View file @
38918167
...
...
@@ -10,7 +10,7 @@
.body-2.mt-3 Cloning the master branch directly from GitHub is #[strong NOT] the proper way to install Wiki.js!
.body-2 Read the #[a(href='https://docs.requarks.io/install', style='color: #FFF;') documentation] on correctly installing the latest stable version.
.text-center
img.setup-logo.animated.fadeInUp.wait-p2s(src='/svg/logo-wikijs-full.svg', alt='Wiki.js Logo')
img.setup-logo.animated.fadeInUp.wait-p2s(src='/
_assets/
svg/logo-wikijs-full.svg', alt='Wiki.js Logo')
v-alert(v-model='error', type='error', icon='mdi-alert', tile, dismissible)
{{
errorMessage
}}
v-alert(v-if='!error', tile, color='blue lighten-5', :value='true')
v-icon.mr-3(color='blue') mdi-package-variant
...
...
@@ -249,7 +249,7 @@ export default {
height
:
100vh
;
z-index
:
0
;
background-color
:
transparent
;
background-image
:
url(/svg/motif-grid.svg)
!
important
;
background-image
:
url(/
_assets/
svg/motif-grid.svg)
!
important
;
background-size
:
100px
;
background-repeat
:
repeat
;
animation
:
bg-anim
100s
linear
infinite
;
...
...
dev/templates/legacy.pug
View file @
38918167
...
...
@@ -6,7 +6,7 @@ html
meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5')
meta(name='theme-color', content='#1976d2')
meta(name='msapplication-TileColor', content='#1976d2')
meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png')
meta(name='msapplication-TileImage', content='/
_assets/
favicons/mstile-150x150.png')
title= pageMeta.title + ' | ' + config.title
...
...
@@ -20,12 +20,12 @@ html
meta(property='og:site_name', content=config.title)
//- Favicon
link(rel='apple-touch-icon', sizes='180x180', href='/favicons/apple-touch-icon.png')
link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-icon-192x192.png')
link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png')
link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png')
link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2')
link(rel='manifest', href='/manifest.json')
link(rel='apple-touch-icon', sizes='180x180', href='/
_assets/
favicons/apple-touch-icon.png')
link(rel='icon', type='image/png', sizes='192x192', href='/
_assets/
favicons/android-icon-192x192.png')
link(rel='icon', type='image/png', sizes='32x32', href='/
_assets/
favicons/favicon-32x32.png')
link(rel='icon', type='image/png', sizes='16x16', href='/
_assets/
favicons/favicon-16x16.png')
link(rel='mask-icon', href='/
_assets/
favicons/safari-pinned-tab.svg', color='#1976d2')
link(rel='manifest', href='/
_assets/
manifest.json')
//- Icon Set
if config.theming.iconset === 'fa'
...
...
dev/templates/setup.pug
View file @
38918167
...
...
@@ -6,16 +6,16 @@ html
meta(name='viewport', content='user-scalable=yes, width=device-width, initial-scale=1, maximum-scale=5')
meta(name='theme-color', content='#1976d2')
meta(name='msapplication-TileColor', content='#1976d2')
meta(name='msapplication-TileImage', content='/favicons/mstile-150x150.png')
meta(name='msapplication-TileImage', content='/
_assets/
favicons/mstile-150x150.png')
title Wiki.js Setup
//- Favicon
link(rel='apple-touch-icon', sizes='180x180', href='/favicons/apple-touch-icon.png')
link(rel='icon', type='image/png', sizes='192x192', href='/favicons/android-chrome-192x192.png')
link(rel='icon', type='image/png', sizes='32x32', href='/favicons/favicon-32x32.png')
link(rel='icon', type='image/png', sizes='16x16', href='/favicons/favicon-16x16.png')
link(rel='mask-icon', href='/favicons/safari-pinned-tab.svg', color='#1976d2')
link(rel='manifest', href='/manifest.json')
link(rel='apple-touch-icon', sizes='180x180', href='/
_assets/
favicons/apple-touch-icon.png')
link(rel='icon', type='image/png', sizes='192x192', href='/
_assets/
favicons/android-chrome-192x192.png')
link(rel='icon', type='image/png', sizes='32x32', href='/
_assets/
favicons/favicon-32x32.png')
link(rel='icon', type='image/png', sizes='16x16', href='/
_assets/
favicons/favicon-16x16.png')
link(rel='mask-icon', href='/
_assets/
favicons/safari-pinned-tab.svg', color='#1976d2')
link(rel='manifest', href='/
_assets/
manifest.json')
//- Site Lang
script.
...
...
server/db/migrations/2.4.13.js
View file @
38918167
/* global WIKI */
exports
.
up
=
knex
=>
{
return
knex
.
schema
.
alterTable
(
'pages'
,
table
=>
{
table
.
json
(
'extra'
).
notNullable
().
defaultTo
(
'{}'
)
if
(
WIKI
.
config
.
db
.
type
===
'mysql'
)
{
table
.
json
(
'extra'
)
}
else
{
table
.
json
(
'extra'
).
notNullable
().
defaultTo
(
'{}'
)
}
})
.
alterTable
(
'pageHistory'
,
table
=>
{
table
.
json
(
'extra'
).
notNullable
().
defaultTo
(
'{}'
)
if
(
WIKI
.
config
.
db
.
type
===
'mysql'
)
{
table
.
json
(
'extra'
)
}
else
{
table
.
json
(
'extra'
).
notNullable
().
defaultTo
(
'{}'
)
}
})
.
alterTable
(
'users'
,
table
=>
{
table
.
string
(
'dateFormat'
).
notNullable
().
defaultTo
(
''
)
...
...
server/setup.js
View file @
38918167
...
...
@@ -34,7 +34,7 @@ module.exports = () => {
// ----------------------------------------
app
.
use
(
favicon
(
path
.
join
(
WIKI
.
ROOTPATH
,
'assets'
,
'favicon.ico'
)))
app
.
use
(
express
.
static
(
path
.
join
(
WIKI
.
ROOTPATH
,
'assets'
)))
app
.
use
(
'/_assets'
,
express
.
static
(
path
.
join
(
WIKI
.
ROOTPATH
,
'assets'
)))
// ----------------------------------------
// View Engine Setup
...
...
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