diff --git a/site/package-lock.json b/site/package-lock.json index 03a6ee4350..1243cda92d 100644 --- a/site/package-lock.json +++ b/site/package-lock.json @@ -1140,9 +1140,9 @@ "integrity": "sha512-oZLYFEAzUKyi3SKnXvj32ZCEGH6RDnao7COuCVhDydMS9NrCSVXhM79VaKyP5+Zc33m0QXEd2DN3UkU7OsHcfw==" }, "@sveltejs/svelte-repl": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/@sveltejs/svelte-repl/-/svelte-repl-0.0.6.tgz", - "integrity": "sha512-TF4n1rDPANntU5TFYU5b0WhuUtXDKs/e2JRyGPlfzTOHa9oWWkZpqqkyAy/wCWenXT+0A6tSgbVbThDCzWFSzw==", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@sveltejs/svelte-repl/-/svelte-repl-0.0.7.tgz", + "integrity": "sha512-gA1UD7ZKbvdLoKsRUPg+yceHmn0vOB4HUBmhV8H0wWr8VyU0nqxM0dlBPvqZUMVVjC9cNyGF3bqHKtBiJHRyhA==", "dev": true, "requires": { "codemirror": "^5.45.0", diff --git a/site/package.json b/site/package.json index 33bceff9ce..cca51eea88 100644 --- a/site/package.json +++ b/site/package.json @@ -39,7 +39,7 @@ "@babel/plugin-transform-runtime": "^7.2.0", "@babel/preset-env": "^7.3.1", "@babel/runtime": "^7.3.1", - "@sveltejs/svelte-repl": "0.0.6", + "@sveltejs/svelte-repl": "0.0.7", "chokidar": "^2.1.2", "degit": "^2.1.3", "eslint-plugin-svelte3": "^0.4.4", diff --git a/site/scripts/update_template.js b/site/scripts/update_template.js index a05d64545c..42f7b63186 100644 --- a/site/scripts/update_template.js +++ b/site/scripts/update_template.js @@ -7,9 +7,6 @@ sh.cd(__dirname+'/../') sh.rm('-rf','scripts/svelte-app') sh.exec('npx degit sveltejs/template#v3 scripts/svelte-app') -// update repl-viewer.css based on template -sh.cp('scripts/svelte-app/public/global.css', 'static/repl-viewer.css') - // remove src (will be recreated client-side) and node_modules sh.rm('-rf', 'scripts/svelte-app/src') sh.rm('-rf', 'scripts/svelte-app/node_modules') @@ -19,8 +16,7 @@ const appPath = 'scripts/svelte-app' let files = [] for (const path of sh.find(appPath).filter(p => fs.lstatSync(p).isFile()) ) { - files.push({ path: path.slice(appPath.length + 1), data: fs.readFileSync(path).toString() }); + files.push({ path: path.slice(appPath.length + 1), data: fs.readFileSync(path).toString() }); } -fs.writeFileSync('static/svelte-app.json', JSON.stringify(files)); - +fs.writeFileSync('static/svelte-app.json', JSON.stringify(files)); \ No newline at end of file diff --git a/site/static/repl-viewer.css b/site/static/repl-viewer.css deleted file mode 100644 index f4520f5109..0000000000 --- a/site/static/repl-viewer.css +++ /dev/null @@ -1,61 +0,0 @@ -html, body { - position: relative; - width: 100%; - height: 100%; -} - -body { - color: #333; - margin: 0; - padding: 8px; - box-sizing: border-box; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; -} - -a { - color: rgb(0,100,200); - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -a:visited { - color: rgb(0,80,160); -} - -label { - display: block; -} - -input, button, select, textarea { - font-family: inherit; - font-size: inherit; - padding: 0.4em; - margin: 0 0.5em 0.5em 0; - box-sizing: border-box; - border: 1px solid #ccc; - border-radius: 2px; -} - -input:disabled { - color: #ccc; -} - -input[type="range"] { - height: 0; -} - -button { - background-color: #f4f4f4; - outline: none; -} - -button:active { - background-color: #ddd; -} - -button:focus { - border-color: #666; -} \ No newline at end of file