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
"use strict"; | |
const kerberos = require("kerberos"); | |
const express = require("express"); | |
const app = express(); | |
// Make sure kerberos keytab is at /etc/krb5.keytab | |
// See https://github.com/mongodb-js/kerberos/blob/master/test/scripts/travis.sh | |
// for an example setup of a full kerberos dummy environment including a keytab | |
// If kerberos service name is HTTP/www.example.com@AD.EXAMPLE.COM |
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
{ | |
"globals": { | |
"alwaysShowTabs": true, | |
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
"initialCols": 120, | |
"initialRows": 30, | |
"keybindings": [ | |
{ | |
"command": "closeTab", | |
"keys": ["ctrl+w"] |
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 { Error, ErrorType } from "./Error"; | |
import { Loading } from "./Loading"; | |
import React from "react"; | |
type LoaderProps = { | |
id: string; | |
error?: Object; | |
data: any; | |
isLoading: boolean; |
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
@media (min-width: 880px) { | |
.interior-centered { | |
margin: 0; | |
width: auto; | |
} | |
.interior-content { | |
width: auto; | |
} | |
.body-col1 { | |
display: none; |
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
function isObject(obj) { | |
if (!obj) return false; | |
if (typeof obj !== "object") return false; | |
if (Array.isArray(obj)) return false; | |
return true; | |
} | |
function* stringifyElement(element, indentLevel, depth = 0) { | |
const indent = | |
typeof indentLevel === "string" |
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
function isObject(obj) { | |
if (!obj) return false; | |
if (typeof obj !== "object") return false; | |
if (Array.isArray(obj)) return false; | |
return true; | |
} | |
class Element { | |
constructor(tagName, attributes, ...children) { | |
this.tagName = tagName; |
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
'use strict'; | |
const seen = new Set(); | |
const $KNOWS_TO_HIDE = Symbol('knowsToHide'); | |
exports.onWindow = window => { | |
if (window[$KNOWS_TO_HIDE]) return; | |
window[$KNOWS_TO_HIDE] = true; | |
window.rpc.on('hide', () => setTimeout(() => window.hide(), 0)); | |
}; | |
exports.middleware = store => next => action => { | |
switch (action.type) { |
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
'use strict'; | |
const $AUTO_HIDDEN = Symbol('autoHidden'); | |
if (process.env.HYPER_AUTOHIDE) { | |
exports.onApp = app => { | |
if (app[$AUTO_HIDDEN]) return; | |
app[$AUTO_HIDDEN] = true; | |
const windows = app.getWindows(); | |
for (const window of windows.values()) { | |
setTimeout(() => window.hide(), 500); | |
} |
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
export const replace = (arr, index, value) => [ | |
...arr.slice(0, index), | |
value, | |
...arr.slice(index + 1) | |
] | |
export const insert = (arr, index, value) => [ | |
...arr.slice(0, index), | |
value, | |
...arr.slice(index) |
NewerOlder