Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix playground #562

Merged
merged 5 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"type": "module",
"scripts": {
"dev": "sapper dev --ext '.svelte .svx'",
"build:site": "sapper build --legacy --ext '.svelte .svx'",
"export": "sapper export --legacy --ext '.svelte .svx'",
"build:site": "sapper build --ext '.svelte .svx'",
"export": "sapper export --ext '.svelte .svx'",
"start": "node __sapper__/build",
"cy:run": "cypress run",
"cy:open": "cypress open",
Expand Down Expand Up @@ -40,10 +40,10 @@
"rehype-slug": "^2.0.3",
"remark-syntax-highlight": "^0.1.3",
"rollup": "^2.58.0",
"rollup-plugin-svelte": "^7.1.0",
"rollup-plugin-svelte": "^7.1.6",
"rollup-plugin-terser": "^7.0.2",
"sapper": "^0.29.3",
"svelte": "^3.7.1",
"svelte": "^4.0.0",
"svelte-json-tree": "^0.0.7",
"typeface-catamaran": "^0.0.72",
"typeface-roboto": "^0.0.75",
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/components/Repl/CodeMirror.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[<script>
<script>
import './codemirror.css';
import { onMount, createEventDispatcher } from "svelte";
import Message from "./Message.svelte";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let handle_select;
export let funky;

const { components, selected, request_focus, rebundle } = getContext("REPL");
let { components, selected, request_focus, rebundle } = getContext("REPL");

let editing = null;

Expand Down
7 changes: 7 additions & 0 deletions packages/site/src/components/Repl/Output/Viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

const { bundle } = getContext("REPL");


export let error; // TODO should this be exposed as a prop?
let logs = [];

Expand Down Expand Up @@ -160,6 +161,12 @@
function clear_logs() {
logs = [];
}

onMount(() => {
if (iframe) {
ready = true;
}
});
</script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/components/Repl/Repl.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

export let workersUrl;
export let packagesUrl = "https://unpkg.com";
export let svelteUrl = `${packagesUrl}/svelte`;
export let svelteUrl = `${packagesUrl}/svelte@3.59.2`;
export let orientation = "columns";
export let relaxed = false;
export let fixed = false;
Expand Down
3 changes: 3 additions & 0 deletions packages/site/src/routes/_source.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export const code_2 = `

<div class="boingers">
{#each boingers.filter(v => !v.boinged) as {val} (val)}

<!-- svelte-ignore a11y-click-events-have-key-events -->
<div animate:flip
in:receive="{{key: val}}"
out:send="{{key: val}}"
Expand All @@ -108,6 +110,7 @@ export const code_2 = `

<div class="boingers">
{#each boingers.filter(v => v.boinged) as {val} (val)}
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div animate:flip
in:receive="{{key: val}}"
out:send="{{key: val}}"
Expand Down
72 changes: 29 additions & 43 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.