@silexlabs/silex 3.0.0-alpha.39 → 3.0.0-alpha.40
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
CHANGED
|
@@ -39,7 +39,7 @@ var silex;(()=>{var t={357:function(t){var e;"undefined"!=typeof globalThis?glob
|
|
|
39
39
|
><span>${e.text}</span></div>
|
|
40
40
|
`))}
|
|
41
41
|
</header>
|
|
42
|
-
`,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")}()}))},de=document.createElement("div");let he;const ge="open-settings";let ve="v3";const me=f.plugins.add("settings-dialog",((t,e)=>{try{ve="3.0.0-alpha.
|
|
42
|
+
`,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")}()}))},de=document.createElement("div");let he;const ge="open-settings";let ve="v3";const me=f.plugins.add("settings-dialog",((t,e)=>{try{ve="3.0.0-alpha.40"}catch(t){}console.log("Silex version:",ve),t.Commands.add(ge,{run:(e,n,{page:r})=>{he=t.Modal.open({title:r?"Page settings":"Site Settings",content:"",attributes:{class:"settings-dialog"}}).onceClose((()=>{t.stopCommand(ge)})),function(t,e,n=t.getModel()){const r=n.get("settings")||{};n.set("settings",r),Pt(ft`
|
|
43
43
|
<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>
|
|
44
44
|
<form class="silex-form">
|
|
45
45
|
<h2>General settings</h2>
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ async function mkdirIfNotExists(path, options = null) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Paths
|
|
20
|
-
const FS_ROOT = process.env.FS_ROOT || join(
|
|
20
|
+
const FS_ROOT = process.env.FS_ROOT || join(__dirname, '../../', '.silex')
|
|
21
21
|
const ASSETS_PATH = 'assets'
|
|
22
22
|
const ASSETS_URL = 'assets'
|
|
23
23
|
const DATA_FILE_NAME = '/.silex.data.json'
|