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
| { | |
| "type":"object", | |
| "require": true, | |
| "patternProperties":{ | |
| "[A-Za-z:0-9]":{ | |
| "type":"object", | |
| "additionalProperties":false, | |
| "required":[ | |
| "time", | |
| "timestamp", |
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
| // mock file | |
| function MockFile() { }; | |
| MockFile.prototype.create = function (name, size, mimeType) { | |
| name = name || "mock.txt"; | |
| size = size || 1024; | |
| mimeType = mimeType || 'plain/txt'; | |
| function range(count) { | |
| var output = ""; |
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 { useState, useEffect } from "react"; | |
| interface Dimensions { | |
| width: number | null; | |
| height: number | null; | |
| } | |
| export const useWindowDimensions = (): Dimensions => { | |
| const hasWindow = typeof window !== "undefined"; |
OlderNewer