From 8f65d969e4240409cf3b3f3090efc8e8cbde4ddf Mon Sep 17 00:00:00 2001 From: matiasvlevi Date: Fri, 18 Oct 2024 01:39:04 -0400 Subject: [PATCH] use cdns for components --- site/components/LU5Canvas.lua | 4 ++-- site/pages/Editor.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/components/LU5Canvas.lua b/site/components/LU5Canvas.lua index 8e20bf0..aa4eb7e 100644 --- a/site/components/LU5Canvas.lua +++ b/site/components/LU5Canvas.lua @@ -11,8 +11,8 @@ function LU5Canvas(props) }), }), luax('script', {type="module"}, { - 'import Console from "/docs/', Config.media.assets, '/lu5-console.min.js";', - 'import * as lu5 from "/docs/', Config.media.assets, '/lu5-wasm-lib.min.js";', + 'import Console from "https://unpkg.com/lu5-components@0.0.2/dist/lu5-console.min.js";', + 'import * as lu5 from "https://unpkg.com/lu5-wasm@0.0.9-b/dist/lu5-wasm.min.js";', 'const ',props.id..'_console',' = new Console(`',props.id..'_console','`);', 'lu5.init()', '.then(vm => vm.setCanvas("',props.id..'_canvas','"))', diff --git a/site/pages/Editor.lua b/site/pages/Editor.lua index d0ca940..746123b 100644 --- a/site/pages/Editor.lua +++ b/site/pages/Editor.lua @@ -9,7 +9,7 @@ function Editor(props) luax('main', {class="editor flex-col"}, { luax('header', {class="ide-top"}, { luax('div', {class="menu flex"}, { - luax('a', {class="logo-wrap", href=root == './' and props.meta.github_url or "../"}, { + luax('a', {class="logo-wrap", href="../"}, { luax('img', {class="logo", src='/'..Config.build.dest ..'/'.. props.media.assets..'/logo.svg'}), }), luax('button',{ class="menu-item"}, 'File'),