This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface Ref<T> { | |
| get current(): T | |
| set current(value: T) | |
| } | |
| export function ref<T>(value: T): Ref<T> { | |
| let state = $state<T>(value) | |
| return { | |
| get current() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // itpipe.js | |
| /** | |
| * Creates a proxy that captures method calls for piping | |
| * @returns {Proxy} The 'it' proxy object | |
| */ | |
| const createItProxy = () => { | |
| return new Proxy({}, { | |
| get: (target, prop) => { | |
| if (typeof prop === 'symbol' || prop === 'inspect') { | |
| return () => {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function selectListing(name) { | |
| return document.querySelector(`h3[data-tag="${name}"]`); | |
| } | |
| const items = document.querySelectorAll(".opblock-tag-section > h3 > a > span"); | |
| let paths = []; | |
| for (const { textContent } of items) { | |
| paths.push(textContent); | |
| } |