diff --git a/client/components/setup.vue b/client/components/setup.vue index 789e320c..12433d45 100644 --- a/client/components/setup.vue +++ b/client/components/setup.vue @@ -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; diff --git a/dev/templates/legacy.pug b/dev/templates/legacy.pug index eede8621..14f9d489 100644 --- a/dev/templates/legacy.pug +++ b/dev/templates/legacy.pug @@ -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' diff --git a/dev/templates/setup.pug b/dev/templates/setup.pug index 81949a21..e264901e 100644 --- a/dev/templates/setup.pug +++ b/dev/templates/setup.pug @@ -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. diff --git a/server/db/migrations/2.4.13.js b/server/db/migrations/2.4.13.js index 396a3d37..bc679ac8 100644 --- a/server/db/migrations/2.4.13.js +++ b/server/db/migrations/2.4.13.js @@ -1,10 +1,20 @@ +/* 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('') diff --git a/server/setup.js b/server/setup.js index 94bd8392..625be721 100644 --- a/server/setup.js +++ b/server/setup.js @@ -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