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
[ | |
{ | |
"value": "Etc/GMT+12", | |
"offset": -720, | |
"label": "(GMT-12:00) International Date Line West" | |
}, | |
{ | |
"value": "Pacific/Midway", | |
"offset": -660, | |
"label": "(GMT-11:00) Midway Island, Samoa" |
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 { exec } from 'child_process'; | |
class DiskService { | |
getAvailableSpace = () => { | |
/* | |
Filesystem 1024-blocks Used Available Capacity Mounted on | |
/dev/root 3745600 2808444 752184 79% / | |
devtmpfs 470116 0 470116 0% /dev | |
tmpfs 474724 0 474724 0% /dev/shm | |
tmpfs 474724 12228 462496 3% /run |
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 cn from 'classnames'; | |
import * as React from 'react'; | |
import './Icon.sass'; | |
type Props = { | |
name: string, | |
} | |
export const Icon = (props: Props) => { | |
const { name } = this.props; | |
const icon = require(`./${name}.svg`); | |
return ( |
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
.icon { | |
display: inline-block; | |
vertical-align: middle; | |
} | |
.icon svg { | |
display: block | |
} | |
.icon:not(.icon-raw) svg path, polygon, rect, circle { |