@silexlabs/silex 3.0.0-alpha.22 → 3.0.0-alpha.24
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/dist/client/js/main.js +1 -1
- package/package.json +4 -2
- package/src/ts/server/cli.ts +3 -1
package/dist/client/js/main.js
CHANGED
|
@@ -89,7 +89,7 @@ var silex;(()=>{var t={357:function(t){var e;"undefined"!=typeof globalThis?glob
|
|
|
89
89
|
><span>${e.text}</span></div>
|
|
90
90
|
`))}
|
|
91
91
|
</header>
|
|
92
|
-
`,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},te=document.createElement("div");let ee;const ne="open-settings";let re="v3";const oe=f.plugins.add("settings-dialog",((t,e)=>{try{re="3.0.0-alpha.
|
|
92
|
+
`,r),document.body.appendChild(r),t.on("load",(()=>{n.view.el.appendChild(r)}))),t.Commands.add(e.command,{run(){e.link&&window.open(e.link),e.attributes.containerClassName&&(n.set("visible",!0),r.classList.remove("gjs-hidden"),t.Canvas.getFrameEl().classList.add("silex-squeeze-left"))},stop(){e.attributes.containerClassName&&(n.set("visible",!1),r.classList.add("gjs-hidden"),t.Canvas.getFrameEl().classList.remove("silex-squeeze-left"))}})})),t.on("load device:select page",(()=>{!function(){const e=n.view.el,r=t.Canvas.getFrameEl();r.classList.remove("enable-squeeze"),setTimeout((()=>{const t=r.getClientRects()[0]?.left,n=e.getClientRects()[0]?.right;t<n||!n?r.classList.add("enable-squeeze"):r.classList.remove("enable-squeeze")}),400),n.get("visible")?r.classList.add("silex-squeeze-left"):r.classList.remove("silex-squeeze-left")}()}))},te=document.createElement("div");let ee;const ne="open-settings";let re="v3";const oe=f.plugins.add("settings-dialog",((t,e)=>{try{re="3.0.0-alpha.24"}catch(t){}console.log("Silex version:",re),t.Commands.add(ne,{run:(e,n,{page:r})=>{ee=t.Modal.open({title:r?"Page settings":"Site Settings",content:"",attributes:{class:"settings-dialog"}}).onceClose((()=>{t.stopCommand(ne)})),function(t,e,n=t.getModel()){const r=n.get("settings")||{};n.set("settings",r),Ct(it`
|
|
93
93
|
<p>The page settings will override site settings, <a href="https://github.com/silexlabs/Silex/wiki/Settings" target="_blank">more info about settings here</a>.</p>
|
|
94
94
|
<form class="silex-form">
|
|
95
95
|
<h2>General settings</h2>
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexlabs/silex",
|
|
3
3
|
"description": "Free and easy website builder for everyone.",
|
|
4
|
-
"version": "3.0.0-alpha.
|
|
4
|
+
"version": "3.0.0-alpha.24",
|
|
5
5
|
"version:backwardcompat": "3.0.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Alex Hoyau",
|
|
8
8
|
"url": "https://lexoyo.me/"
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/server/index.js",
|
|
11
|
-
"bin":
|
|
11
|
+
"bin": {
|
|
12
|
+
"silex": "./dist/server/cli.js"
|
|
13
|
+
},
|
|
12
14
|
"license": "GPL-3.0",
|
|
13
15
|
"engines": {
|
|
14
16
|
"node": ">=12"
|
package/src/ts/server/cli.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#!/usr/bin/node
|
|
2
|
+
|
|
1
3
|
import { parse } from 'cli'
|
|
2
4
|
|
|
3
5
|
const options = parse({
|
|
@@ -20,4 +22,4 @@ if(options['ssl-certificate']) process.env.SILEX_SSL_CERTIFICATE = options['ssl-
|
|
|
20
22
|
if(options['force-https-trust-xfp-header']) process.env.SILEX_FORCE_HTTPS_TRUST_XFP_HEADER = options['force-https-trust-xfp-header']
|
|
21
23
|
if(options['session-secret']) process.env.SILEX_SESSION_SECRET = options['session-secret']
|
|
22
24
|
|
|
23
|
-
import
|
|
25
|
+
import './index'
|