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
import { | |
Component, | |
createEffect, | |
createResource, | |
createSignal, | |
getOwner, | |
runWithOwner, | |
} from "solid-js"; | |
type Deferred<T> = { |
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
/** | |
* Add this to site footer codeinjection | |
*/ | |
// <script> | |
window.onload = () => { | |
let observer; | |
const targetNode = document.getElementById('ghost-portal-root'); | |
observer = new MutationObserver((mutations) => { |
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
import characterEntities from 'character-entities-html4'; | |
export const entityCodePoints = new Proxy(characterEntities, { | |
// http://xahlee.info/js/js_unicode_code_point.html | |
get: function(target, prop) { | |
console.log(target, prop) | |
return String.fromCodePoint(target[prop].codePointAt(0)); | |
} | |
}); |
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
import fs from 'fs'; | |
import path from 'path'; | |
// rollup.config.js | |
import builtins from 'rollup-plugin-node-builtins'; | |
import globals from 'rollup-plugin-node-globals'; | |
import babel from 'rollup-plugin-babel'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import replace from 'rollup-plugin-replace'; | |
import uglify from 'rollup-plugin-uglify'; |