diff --git a/build/dev-server.js b/build/dev-server.js index 907efb5d..a517b6cc 100644 --- a/build/dev-server.js +++ b/build/dev-server.js @@ -1,9 +1,9 @@ require('./check-versions')() var config = require('../config') -Object.entries(config.dev.env).forEach(([key, value]) => { +Object.keys(config.dev.env).forEach((key) => { if (!process.env[key]) { - process.env[key] = JSON.parse(value); + process.env[key] = JSON.parse(config.dev.env[key]); } }); diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js index f72e9df5..2e78e351 100644 --- a/build/webpack.prod.conf.js +++ b/build/webpack.prod.conf.js @@ -99,7 +99,7 @@ var webpackConfig = merge(baseWebpackConfig, { events: true }, excludes: ['**/.*', '**/*.map', '**/index.html', '**/static/oauth2/callback.html', '**/icons-*/*.png', '**/static/fonts/KaTeX_*'], - externals: ['/app', '/oauth2/callback'] + externals: ['/', '/app', '/oauth2/callback'] }) ] }) diff --git a/build/webpack.style.conf.js b/build/webpack.style.conf.js index 06745ea2..fbccd20b 100644 --- a/build/webpack.style.conf.js +++ b/build/webpack.style.conf.js @@ -5,7 +5,6 @@ var utils = require('./utils') var config = require('../config') var vueLoaderConfig = require('./vue-loader.conf') var StylelintPlugin = require('stylelint-webpack-plugin') -var FaviconsWebpackPlugin = require('favicons-webpack-plugin') var ExtractTextPlugin = require('extract-text-webpack-plugin') var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') diff --git a/index.js b/index.js index 4ff493f3..f549108e 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,8 @@ const env = require('./config/prod.env'); -Object.entries(env).forEach(([key, value]) => { +Object.keys(env).forEach((key) => { if (!process.env[key]) { - process.env[key] = JSON.parse(value); + process.env[key] = JSON.parse(env[key]); } }); diff --git a/server/index.js b/server/index.js index 7e599f3f..6ea23175 100644 --- a/server/index.js +++ b/server/index.js @@ -44,6 +44,8 @@ module.exports = (app, serveV4) => { /* eslint-enable global-require, import/no-unresolved */ } + // Serve landing.html + app.get('/', (req, res) => res.sendFile(resolvePath('static/landing/index.html'))); // Serve callback.html app.get('/oauth2/callback', (req, res) => res.sendFile(resolvePath('static/oauth2/callback.html'))); // Google Drive action receiver @@ -53,8 +55,6 @@ module.exports = (app, serveV4) => { // Serve static resources if (process.env.NODE_ENV === 'production') { if (serveV4) { - // Serve landing.html in / - app.get('/', (req, res) => res.sendFile(resolvePath('stackedit_v4/views/landing.html'))); // Serve editor.html in /viewer app.get('/editor', (req, res) => res.sendFile(resolvePath('stackedit_v4/views/editor.html'))); // Serve viewer.html in /viewer diff --git a/src/components/menus/MainMenu.vue b/src/components/menus/MainMenu.vue index 6610900a..561b2212 100644 --- a/src/components/menus/MainMenu.vue +++ b/src/components/menus/MainMenu.vue @@ -36,12 +36,12 @@
Synchronize
- Open, save, collaborate in the Cloud. + Sync your files in the Cloud.
Publish
- Export your file to the web. + Export your files to the web.
diff --git a/src/components/modals/AboutModal.vue b/src/components/modals/AboutModal.vue index e81bea57..34046535 100644 --- a/src/components/modals/AboutModal.vue +++ b/src/components/modals/AboutModal.vue @@ -2,15 +2,18 @@