Skip to content

Commit

Permalink
use cdns for components
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed Oct 18, 2024
1 parent c49e2a7 commit 8f65d96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions site/components/LU5Canvas.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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','"))',
Expand Down
2 changes: 1 addition & 1 deletion site/pages/Editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 8f65d96

Please sign in to comment.