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
docker run --name dozzle -d --volume=/var/run/docker.sock:/var/run/docker.sock -p 4040:8080 amir20/dozzle:latest |
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
/* istanbul ignore file */ | |
/* tslint:disable */ | |
/* eslint-disable */ | |
import { ApiError } from './ApiError'; | |
import type { ApiRequestOptions } from './ApiRequestOptions'; | |
import type { ApiResult } from './ApiResult'; | |
import { OpenAPI } from './OpenAPI'; | |
function isDefined<T>(value: T | null | undefined): value is Exclude<T, null | undefined> { | |
return value !== undefined && value !== null; |
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
// xx | |
const view = new BrowserView() | |
win.setBrowserView(view) | |
view.setBounds({ x: 0, y: 0, width: 300, height: 300 }) | |
view.webContents.loadURL('https://electronjs.org') |
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
{ | |
"editor.fontFamily": "FiraCode-Retina", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 18, | |
"editor.dragAndDrop": false, | |
"editor.minimap.renderCharacters": false, | |
"editor.roundedSelection": false, | |
"editor.quickSuggestions": { | |
"other": true, | |
"comments": true, |
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 logger = (name, ...args) => { | |
if (process.env.NODE_ENV === 'development') { | |
// eslint-disable-next-line | |
console.groupCollapsed(`logger --> ${name}`); | |
// eslint-disable-next-line | |
console.log(...args); | |
// eslint-disable-next-line | |
console.groupEnd(); | |
} | |
}; |
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
<section class="todoapp"> | |
<div> | |
<header class="header"> | |
<h1>todos</h1> | |
<input class="new-todo" placeholder="What needs to be done?" value="" /> | |
</header> | |
<section class="main"> | |
<input id="toggle-all" class="toggle-all" type="checkbox" /> | |
<label for="toggle-all"></label> | |
<ul class="todo-list"> |
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
class A extends React.PureComponent { | |
state = this.getInitialState(); | |
getInitialState() { | |
const { className } = this.props; | |
return { | |
className | |
}; | |
} |
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 deepEquals(a, b, ca = [], cb = []) { | |
// Partially extracted from node-deeper and adapted to exclude comparison | |
// checks for functions. | |
// https://github.com/othiym23/node-deeper | |
if (a === b) { | |
return true; | |
} else if (typeof a === "function" || typeof b === "function") { | |
// Assume all functions are equivalent | |
// see https://github.com/mozilla-services/react-jsonschema-form/issues/255 | |
return true; |
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
width: 120px; | |
flex: auto; | |
display: -webkit-box; | |
text-overflow: ellipsis; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 2; | |
overflow: hidden; |
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 PropTypes from 'prop-types'; | |
import React from 'react'; | |
import styles from './index.less'; | |
export default function Banner({ hasLogo }) { | |
const logo = hasLogo ? <div className={styles.logo} /> : null; | |
return <div className={styles.container}>{logo}</div>; | |
} |
NewerOlder