Skip to content

Commit

Permalink
Merge pull request #295 from tc39/new-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Mar 19, 2024
2 parents 3171fa4 + 98a1256 commit 29eacc4
Show file tree
Hide file tree
Showing 18 changed files with 9,558 additions and 5,212 deletions.
Binary file added assets/IBMPlexMono-Bold-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexMono-BoldItalic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexMono-Italic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexMono-Regular-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSans-Bold-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSans-BoldItalic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSans-Italic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSans-Regular-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSerif-Bold-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSerif-BoldItalic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSerif-Italic-SlashedZero.woff2
Binary file not shown.
Binary file added assets/IBMPlexSerif-Regular-SlashedZero.woff2
Binary file not shown.
1,433 changes: 1,433 additions & 0 deletions assets/ecmarkup.css

Large diffs are not rendered by default.

1,553 changes: 1,553 additions & 0 deletions assets/ecmarkup.js

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions assets/expand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const state = {
__folded: true,
get folded() {
try {
const v = localStorage.getItem("folded");
return v === "true" || v === null;
} catch {
return this.__folded;
}
},
set folded(val) {
this.__folded = val;
try {
localStorage.setItem("folded", val);
} catch {}
document.body.classList.toggle("folded", val);
},
};
state.folded = state.folded;

const button = document.querySelector("#expand");
button.addEventListener("click", () => {
state.folded = !state.folded;
if (state.folded) {
const old = scrollY;
location.hash = "";
scrollTo(0, old);
}
});

function onHashChange(event) {
const target = document.getElementById(location.hash.slice(1));
if (!target) return;
if (!state.folded) return;
for (const el of document.querySelectorAll(".fold")) {
if (el.contains(target)) {
state.folded = false;
target.scrollIntoView(true);
setExpand(false);
}
}
}
window.addEventListener("hashchange", onHashChange);
window.addEventListener("DOMContentLoaded", onHashChange);
6,967 changes: 3,224 additions & 3,743 deletions index.html

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"private": true,
"name": "proposal-pattern-matching",
"description": "A repository for ECMAScript pattern matching proposals.",
"scripts": {
"start": "npm run build -- --watch",
"build": "SOURCE_DATE_EPOCH=$(git log -1 --pretty=\"format:%ct\" spec.emu) ecmarkup spec.emu index.html --load-biblio @tc39/ecma262-biblio --lint-spec"
},
"homepage": "https://github.com/tc39/proposal-pattern-matching#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tc39/proposal-pattern-matching.git"
},
"license": "MIT",
"devDependencies": {
"@tc39/ecma262-biblio": "^2.1.2631",
"ecmarkup": "^17.1.1"
}
"private": true,
"name": "proposal-pattern-matching",
"description": "A repository for ECMAScript pattern matching proposals.",
"scripts": {
"start": "npm run build -- --watch",
"build": "SOURCE_DATE_EPOCH=$(git log -1 --pretty=\"format:%ct\" spec.emu) ecmarkup spec.emu index.html --load-biblio @tc39/ecma262-biblio --lint-spec --assets-dir assets --mark-effects"
},
"homepage": "https://github.com/tc39/proposal-pattern-matching#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/tc39/proposal-pattern-matching.git"
},
"license": "MIT",
"devDependencies": {
"@tc39/ecma262-biblio": "^2.1.2653",
"ecmarkup": "^18.0.0"
}
}

0 comments on commit 29eacc4

Please sign in to comment.