This file contains 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
<script> | |
window.customElements.define('get-import', class extends HTMLElement { | |
constructor() { | |
super(); | |
if (this.hasAttribute('url')) | |
window.fetch(this.attributes.url.value) | |
.then(res => res.text()) | |
.then(txt => this.outerHTML = txt); | |
} | |
}); |
This file contains 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 { RefObject, useState, useEffect } from "react"; | |
type DimensionsTuple = [number, number]; // width, height | |
export function useResponsiveDimensions( | |
ref: RefObject<HTMLDivElement> | |
): DimensionsTuple { | |
const [dimensions, setDimensions] = useState<DimensionsTuple>([500, 300]); | |
useEffect(() => { |
This file contains 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
diff --git a/package-lock.json b/package-lock.json | |
index 5fb6a76..674c6a6 100644 | |
--- a/package-lock.json | |
+++ b/package-lock.json | |
@@ -1,4325 +1,14 @@ | |
{ | |
"name": "edex-ui", | |
"version": "2.2.8", | |
- "lockfileVersion": 2, | |
+ "lockfileVersion": 1, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Remote terminal</title> | |
<link rel="stylesheet" href="xterm.css" /> | |
<script src="terminal.class.js"></script> | |
OlderNewer