@silexlabs/silex-dashboard 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.silex.js +1 -2
- package/package.json +2 -2
package/.silex.js
CHANGED
|
@@ -14,7 +14,7 @@ const {FsStorage} = require('@silexlabs/silex/dist/server/server/connectors/FsSt
|
|
|
14
14
|
const {FsHosting} = require('@silexlabs/silex/dist/server/server/connectors/FsHosting')
|
|
15
15
|
|
|
16
16
|
module.exports = async function(config, options) {
|
|
17
|
-
console.log('> Silex dashboard plugin starting', {
|
|
17
|
+
console.log('> Silex dashboard plugin starting', {options})
|
|
18
18
|
|
|
19
19
|
// Defaults
|
|
20
20
|
const opts = {
|
|
@@ -69,7 +69,6 @@ module.exports = async function(config, options) {
|
|
|
69
69
|
|
|
70
70
|
// Serve the editor when the ?id param is present in the URL
|
|
71
71
|
const editorRouter = express.Router()
|
|
72
|
-
console.log('> Silex dashboard on route /', {opts})
|
|
73
72
|
editorRouter.use('/', (req, res, next) => {
|
|
74
73
|
if (req.path === '/' && !req.query.id) res.redirect(`/${req.locale}/`)
|
|
75
74
|
else next()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexlabs/silex-dashboard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Dashboard for Silex v3",
|
|
5
5
|
"main": ".silex.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"homepage": "https://github.com/silexlabs/silex-dashboard#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@11ty/eleventy": "^2.0.1",
|
|
27
|
-
"@silexlabs/silex": "^3.0.0-alpha.
|
|
27
|
+
"@silexlabs/silex": "^3.0.0-alpha.50"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"locale": "^0.1.0",
|