From 53b81ab59f47954d9799fa9baaa606c6885ae20e Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 29 Aug 2024 21:07:23 +0100 Subject: [PATCH] Last minute fixes --- .github/workflows/deploy-playground.yml | 2 +- src/playground/comparison/comparison_generator.mjs | 2 +- src/playground/main.js | 1 + src/playground/vite.config.js | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-playground.yml b/.github/workflows/deploy-playground.yml index 2f54a488..e711d2cc 100644 --- a/.github/workflows/deploy-playground.yml +++ b/.github/workflows/deploy-playground.yml @@ -1,4 +1,4 @@ -name: Publish playground to GitHub pages +name: Publish playground (and comparison) to GitHub pages on: workflow_dispatch diff --git a/src/playground/comparison/comparison_generator.mjs b/src/playground/comparison/comparison_generator.mjs index 7ed08c35..6d129dc9 100644 --- a/src/playground/comparison/comparison_generator.mjs +++ b/src/playground/comparison/comparison_generator.mjs @@ -85,7 +85,7 @@ async function renderDifferences(sections) { const tscPlaygroundLink = `https://www.typescriptlang.org/play?#code/${codeCompressed}`; acc += `
  • -

    ${title}

    +

    ${title}

    ${highlightedCode}
    diff --git a/src/playground/main.js b/src/playground/main.js index ad8e5c0d..9a7065b5 100644 --- a/src/playground/main.js +++ b/src/playground/main.js @@ -173,6 +173,7 @@ async function setup() { }).then(res => res.json()).then((result) => { if (result.id) { url.searchParams.set("id", result.id); + url.searchParams.delete("raw"); history.pushState({}, "", url); navigator.clipboard.writeText(url.toString()).then(() => { alert("Share URL copied to clipboard") diff --git a/src/playground/vite.config.js b/src/playground/vite.config.js index 5a935d01..951b62ca 100644 --- a/src/playground/vite.config.js +++ b/src/playground/vite.config.js @@ -1,4 +1,4 @@ -import { defineConfig, normalizePath } from 'vite' +import { defineConfig } from 'vite' export default defineConfig({ clearScreen: false, @@ -12,5 +12,4 @@ export default defineConfig({ server: { fs: { strict: false } }, - // assetsInclude: ["./node_modules/ezno/dist/shared/*.wasm"] }) \ No newline at end of file