1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 23:03:47 +01:00

Removes docs and src

This commit is contained in:
Amir Raminfar
2019-05-26 09:38:40 -07:00
parent 68f03b7790
commit 7523bae996
22 changed files with 0 additions and 13656 deletions

View File

@@ -1,2 +0,0 @@
> 1%
last 2 versions

3
docs-src/.gitignore vendored
View File

@@ -1,3 +0,0 @@
node_modules
.cache
dist

View File

@@ -1,5 +0,0 @@
{
"plugins": {
"autoprefixer": true
}
}

View File

@@ -1,90 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Dozzle - Log viewer for Docker</title>
<meta name="description" content="Dozzle is a free and small log viewer for docker containers." />
<meta name="keywords" content="docker, logs, dozzle, containers, logging, kibana, papertrail, loggly" />
<link href="https://fonts.googleapis.com/css?family=Roboto|Gafta&display=swap" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="style.scss" inline="inline" />
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
</head>
<body>
<section class="hero is-fullheight is-light">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column has-text-centered">
<h1 class="title is-1">
<span class="green-highlight">Dozzle</span>
<small class="subtitle is-2">
is a real-time log viewer for <span class="yellow-highlight">docker containers</span>.
</small>
</h1>
<div class="buttons is-centered">
<a class="button is-primary is-large is-rounded" href="https://github.com/amir20/dozzle">
<span class="icon">
<i class="fab fa-github"></i>
</span>
<span>GitHub</span>
</a>
<a class="button is-info is-large is-rounded" href="#more">Install</a>
</div>
<a href="https://hub.docker.com/r/amir20/dozzle/">
<img
alt="Docker Pulls"
src="https://img.shields.io/docker/pulls/amir20/dozzle.svg?logo=docker&style=popout-square"
/>
</a>
</div>
<div class="column is-8">
<div id="video">
<div class="browser">
<i class="circle red"></i>
<i class="circle yellow"></i>
<i class="circle green"></i>
</div>
<video muted loop autoplay preload playsinline poster="media/poster.jpg">
<source src="media/dozzle.webm" type="video/webm" />
<source src="media/dozzle.mp4" type="video/mp4" />
<img src="media/poster.png" alt="" />
</video>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-medium" id="more">
<div class="hero-body">
<div class="container">
<div class="columns is-vcentered">
<div class="column has-text-centered is-hidden-mobile">
<img src="media/docker.png" alt="Dozzle is easy to install with docker" />
</div>
<div class="column is-8 is-offset-1">
<h1 class="title is-2">
Installation
</h1>
<h6 class="subtitle is-6">Easy to install with docker and smaller than <b>5MB</b>.</h6>
<div>
<div class="has-text-right">
<button
class="button is-small copy"
data-clipboard-text="docker run --detach --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle"
>
Copy
</button>
</div>
<pre><code>docker run --detach --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle</code></pre>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="script.js" inline="inline"></script>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 KiB

File diff suppressed because it is too large Load Diff

View File

@@ -1,25 +0,0 @@
{
"name": "dozzle-web",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"bulma": "^0.7.4",
"clipboard": "^2.0.4",
"parcel-bundler": "^1.12.3",
"sass": "^1.20.1"
},
"devDependencies": {
"@babel/core": "^7.4.4",
"autoprefixer": "^9.5.1",
"del-cli": "^1.1.0",
"parcel-plugin-inline-source": "^1.0.0"
},
"scripts": {
"prebuild": "npx del -f '../docs/*' !'../docs/CNAME'",
"build": "npx parcel build -d ../docs --public-url . --no-source-maps index.html",
"dev": "npx parcel index.html"
},
"author": "",
"license": "ISC"
}

View File

@@ -1,2 +0,0 @@
import ClipboardJS from "clipboard";
new ClipboardJS(".copy");

View File

@@ -1,95 +0,0 @@
@charset "utf-8";
$purple: #8a4d76;
$pink: #fa7c91;
$beige-light: #d0d1cd;
$beige-lighter: #eff0eb;
$grey-light: $beige-light;
$primary: $purple;
$link: $pink;
$body-background-color: $beige-lighter;
@import "~bulma/sass/utilities/_all.sass";
@import "~bulma/sass/base/_all.sass";
@import "~bulma/sass/layout/hero.sass";
@import "~bulma/sass/grid/columns.sass";
@import "~bulma/sass/elements/title.sass";
@import "~bulma/sass/elements/button.sass";
body {
font-family: "Roboto", sans-serif;
}
h1.title {
font-family: Gafata, sans-serif;
font-weight: 500;
}
.green-highlight {
box-shadow: inset 0 -6px 0 rgba(53, 196, 84, 0.6);
}
.yellow-highlight {
box-shadow: inset 0 -6px 0 rgba(211, 196, 5, 0.8);
}
#video {
display: flex;
flex-direction: column;
box-shadow: 0 4px 12px 3px rgba(0, 0, 0, 0.45);
border-radius: 4px;
overflow: hidden;
border: 1px solid #777;
.browser {
position: relative;
display: block;
height: 38px;
width: 100%;
background: #222;
line-height: 42px;
padding-left: 15px;
.circle {
width: 15px;
height: 15px;
display: inline-block;
border-radius: 50%;
margin-right: 4px;
&.red {
background-color: rgb(255, 71, 71);
}
&.yellow {
background-color: rgb(211, 196, 55);
}
&.green {
background-color: rgb(53, 196, 84);
}
}
}
}
pre {
box-shadow: 0 0 0 2px #ffdd57;
border-radius: 3px;
}
.button.copy {
background: 0 0;
border: none;
color: #4a4a4a;
cursor: pointer;
font-size: 0.625rem;
outline: 0;
padding-bottom: 0;
padding-top: 0;
&:hover {
background-color: #ffdd57;
color: rgba(0, 0, 0, 0.7);
}
}

View File

@@ -1 +0,0 @@
dozzle.dev

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 440 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 742 KiB

View File

@@ -1,629 +0,0 @@
parcelRequire = (function(e, r, t, n) {
var i,
o = "function" == typeof parcelRequire && parcelRequire,
u = "function" == typeof require && require;
function f(t, n) {
if (!r[t]) {
if (!e[t]) {
var i = "function" == typeof parcelRequire && parcelRequire;
if (!n && i) return i(t, !0);
if (o) return o(t, !0);
if (u && "string" == typeof t) return u(t);
var c = new Error("Cannot find module '" + t + "'");
throw ((c.code = "MODULE_NOT_FOUND"), c);
}
(p.resolve = function(r) {
return e[t][1][r] || r;
}),
(p.cache = {});
var l = (r[t] = new f.Module(t));
e[t][0].call(l.exports, p, l, l.exports, this);
}
return r[t].exports;
function p(e) {
return f(p.resolve(e));
}
}
(f.isParcelRequire = !0),
(f.Module = function(e) {
(this.id = e), (this.bundle = f), (this.exports = {});
}),
(f.modules = e),
(f.cache = r),
(f.parent = o),
(f.register = function(r, t) {
e[r] = [
function(e, r) {
r.exports = t;
},
{}
];
});
for (var c = 0; c < t.length; c++)
try {
f(t[c]);
} catch (e) {
i || (i = e);
}
if (t.length) {
var l = f(t[t.length - 1]);
"object" == typeof exports && "undefined" != typeof module
? (module.exports = l)
: "function" == typeof define && define.amd
? define(function() {
return l;
})
: n && (this[n] = l);
}
if (((parcelRequire = f), i)) throw i;
return f;
})(
{
FvGE: [
function(require, module, exports) {
var define;
var t;
!(function(e, n) {
"object" == typeof exports && "object" == typeof module
? (module.exports = n())
: "function" == typeof t && t.amd
? t([], n)
: "object" == typeof exports
? (exports.ClipboardJS = n())
: (e.ClipboardJS = n());
})(this, function() {
return (function(t) {
var e = {};
function n(o) {
if (e[o]) return e[o].exports;
var r = (e[o] = { i: o, l: !1, exports: {} });
return t[o].call(r.exports, r, r.exports, n), (r.l = !0), r.exports;
}
return (
(n.m = t),
(n.c = e),
(n.d = function(t, e, o) {
n.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: o });
}),
(n.r = function(t) {
"undefined" != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
Object.defineProperty(t, "__esModule", { value: !0 });
}),
(n.t = function(t, e) {
if ((1 & e && (t = n(t)), 8 & e)) return t;
if (4 & e && "object" == typeof t && t && t.__esModule) return t;
var o = Object.create(null);
if (
(n.r(o),
Object.defineProperty(o, "default", { enumerable: !0, value: t }),
2 & e && "string" != typeof t)
)
for (var r in t)
n.d(
o,
r,
function(e) {
return t[e];
}.bind(null, r)
);
return o;
}),
(n.n = function(t) {
var e =
t && t.__esModule
? function() {
return t.default;
}
: function() {
return t;
};
return n.d(e, "a", e), e;
}),
(n.o = function(t, e) {
return Object.prototype.hasOwnProperty.call(t, e);
}),
(n.p = ""),
n((n.s = 0))
);
})([
function(t, e, n) {
"use strict";
var o =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function(t) {
return typeof t;
}
: function(t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype
? "symbol"
: typeof t;
},
r = (function() {
function t(t, e) {
for (var n = 0; n < e.length; n++) {
var o = e[n];
(o.enumerable = o.enumerable || !1),
(o.configurable = !0),
"value" in o && (o.writable = !0),
Object.defineProperty(t, o.key, o);
}
}
return function(e, n, o) {
return n && t(e.prototype, n), o && t(e, o), e;
};
})(),
i = u(n(1)),
a = u(n(3)),
c = u(n(4));
function u(t) {
return t && t.__esModule ? t : { default: t };
}
var l = (function(t) {
function e(t, n) {
!(function(t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
})(this, e);
var o = (function(t, e) {
if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return !e || ("object" != typeof e && "function" != typeof e) ? t : e;
})(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this));
return o.resolveOptions(n), o.listenClick(t), o;
}
return (
(function(t, e) {
if ("function" != typeof e && null !== e)
throw new TypeError("Super expression must either be null or a function, not " + typeof e);
(t.prototype = Object.create(e && e.prototype, {
constructor: { value: t, enumerable: !1, writable: !0, configurable: !0 }
})),
e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : (t.__proto__ = e));
})(e, a.default),
r(
e,
[
{
key: "resolveOptions",
value: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
(this.action = "function" == typeof t.action ? t.action : this.defaultAction),
(this.target = "function" == typeof t.target ? t.target : this.defaultTarget),
(this.text = "function" == typeof t.text ? t.text : this.defaultText),
(this.container = "object" === o(t.container) ? t.container : document.body);
}
},
{
key: "listenClick",
value: function(t) {
var e = this;
this.listener = (0, c.default)(t, "click", function(t) {
return e.onClick(t);
});
}
},
{
key: "onClick",
value: function(t) {
var e = t.delegateTarget || t.currentTarget;
this.clipboardAction && (this.clipboardAction = null),
(this.clipboardAction = new i.default({
action: this.action(e),
target: this.target(e),
text: this.text(e),
container: this.container,
trigger: e,
emitter: this
}));
}
},
{
key: "defaultAction",
value: function(t) {
return s("action", t);
}
},
{
key: "defaultTarget",
value: function(t) {
var e = s("target", t);
if (e) return document.querySelector(e);
}
},
{
key: "defaultText",
value: function(t) {
return s("text", t);
}
},
{
key: "destroy",
value: function() {
this.listener.destroy(),
this.clipboardAction && (this.clipboardAction.destroy(), (this.clipboardAction = null));
}
}
],
[
{
key: "isSupported",
value: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : ["copy", "cut"],
e = "string" == typeof t ? [t] : t,
n = !!document.queryCommandSupported;
return (
e.forEach(function(t) {
n = n && !!document.queryCommandSupported(t);
}),
n
);
}
}
]
),
e
);
})();
function s(t, e) {
var n = "data-clipboard-" + t;
if (e.hasAttribute(n)) return e.getAttribute(n);
}
t.exports = l;
},
function(t, e, n) {
"use strict";
var o,
r =
"function" == typeof Symbol && "symbol" == typeof Symbol.iterator
? function(t) {
return typeof t;
}
: function(t) {
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype
? "symbol"
: typeof t;
},
i = (function() {
function t(t, e) {
for (var n = 0; n < e.length; n++) {
var o = e[n];
(o.enumerable = o.enumerable || !1),
(o.configurable = !0),
"value" in o && (o.writable = !0),
Object.defineProperty(t, o.key, o);
}
}
return function(e, n, o) {
return n && t(e.prototype, n), o && t(e, o), e;
};
})(),
a = n(2),
c = (o = a) && o.__esModule ? o : { default: o };
var u = (function() {
function t(e) {
!(function(t, e) {
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
})(this, t),
this.resolveOptions(e),
this.initSelection();
}
return (
i(t, [
{
key: "resolveOptions",
value: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
(this.action = t.action),
(this.container = t.container),
(this.emitter = t.emitter),
(this.target = t.target),
(this.text = t.text),
(this.trigger = t.trigger),
(this.selectedText = "");
}
},
{
key: "initSelection",
value: function() {
this.text ? this.selectFake() : this.target && this.selectTarget();
}
},
{
key: "selectFake",
value: function() {
var t = this,
e = "rtl" == document.documentElement.getAttribute("dir");
this.removeFake(),
(this.fakeHandlerCallback = function() {
return t.removeFake();
}),
(this.fakeHandler = this.container.addEventListener("click", this.fakeHandlerCallback) || !0),
(this.fakeElem = document.createElement("textarea")),
(this.fakeElem.style.fontSize = "12pt"),
(this.fakeElem.style.border = "0"),
(this.fakeElem.style.padding = "0"),
(this.fakeElem.style.margin = "0"),
(this.fakeElem.style.position = "absolute"),
(this.fakeElem.style[e ? "right" : "left"] = "-9999px");
var n = window.pageYOffset || document.documentElement.scrollTop;
(this.fakeElem.style.top = n + "px"),
this.fakeElem.setAttribute("readonly", ""),
(this.fakeElem.value = this.text),
this.container.appendChild(this.fakeElem),
(this.selectedText = (0, c.default)(this.fakeElem)),
this.copyText();
}
},
{
key: "removeFake",
value: function() {
this.fakeHandler &&
(this.container.removeEventListener("click", this.fakeHandlerCallback),
(this.fakeHandler = null),
(this.fakeHandlerCallback = null)),
this.fakeElem && (this.container.removeChild(this.fakeElem), (this.fakeElem = null));
}
},
{
key: "selectTarget",
value: function() {
(this.selectedText = (0, c.default)(this.target)), this.copyText();
}
},
{
key: "copyText",
value: function() {
var t = void 0;
try {
t = document.execCommand(this.action);
} catch (e) {
t = !1;
}
this.handleResult(t);
}
},
{
key: "handleResult",
value: function(t) {
this.emitter.emit(t ? "success" : "error", {
action: this.action,
text: this.selectedText,
trigger: this.trigger,
clearSelection: this.clearSelection.bind(this)
});
}
},
{
key: "clearSelection",
value: function() {
this.trigger && this.trigger.focus(), window.getSelection().removeAllRanges();
}
},
{
key: "destroy",
value: function() {
this.removeFake();
}
},
{
key: "action",
set: function() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "copy";
if (((this._action = t), "copy" !== this._action && "cut" !== this._action))
throw new Error('Invalid "action" value, use either "copy" or "cut"');
},
get: function() {
return this._action;
}
},
{
key: "target",
set: function(t) {
if (void 0 !== t) {
if (!t || "object" !== (void 0 === t ? "undefined" : r(t)) || 1 !== t.nodeType)
throw new Error('Invalid "target" value, use a valid Element');
if ("copy" === this.action && t.hasAttribute("disabled"))
throw new Error(
'Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute'
);
if ("cut" === this.action && (t.hasAttribute("readonly") || t.hasAttribute("disabled")))
throw new Error(
'Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes'
);
this._target = t;
}
},
get: function() {
return this._target;
}
}
]),
t
);
})();
t.exports = u;
},
function(t, e) {
t.exports = function(t) {
var e;
if ("SELECT" === t.nodeName) t.focus(), (e = t.value);
else if ("INPUT" === t.nodeName || "TEXTAREA" === t.nodeName) {
var n = t.hasAttribute("readonly");
n || t.setAttribute("readonly", ""),
t.select(),
t.setSelectionRange(0, t.value.length),
n || t.removeAttribute("readonly"),
(e = t.value);
} else {
t.hasAttribute("contenteditable") && t.focus();
var o = window.getSelection(),
r = document.createRange();
r.selectNodeContents(t), o.removeAllRanges(), o.addRange(r), (e = o.toString());
}
return e;
};
},
function(t, e) {
function n() {}
(n.prototype = {
on: function(t, e, n) {
var o = this.e || (this.e = {});
return (o[t] || (o[t] = [])).push({ fn: e, ctx: n }), this;
},
once: function(t, e, n) {
var o = this;
function r() {
o.off(t, r), e.apply(n, arguments);
}
return (r._ = e), this.on(t, r, n);
},
emit: function(t) {
for (
var e = [].slice.call(arguments, 1),
n = ((this.e || (this.e = {}))[t] || []).slice(),
o = 0,
r = n.length;
o < r;
o++
)
n[o].fn.apply(n[o].ctx, e);
return this;
},
off: function(t, e) {
var n = this.e || (this.e = {}),
o = n[t],
r = [];
if (o && e)
for (var i = 0, a = o.length; i < a; i++) o[i].fn !== e && o[i].fn._ !== e && r.push(o[i]);
return r.length ? (n[t] = r) : delete n[t], this;
}
}),
(t.exports = n);
},
function(t, e, n) {
var o = n(5),
r = n(6);
t.exports = function(t, e, n) {
if (!t && !e && !n) throw new Error("Missing required arguments");
if (!o.string(e)) throw new TypeError("Second argument must be a String");
if (!o.fn(n)) throw new TypeError("Third argument must be a Function");
if (o.node(t))
return (function(t, e, n) {
return (
t.addEventListener(e, n),
{
destroy: function() {
t.removeEventListener(e, n);
}
}
);
})(t, e, n);
if (o.nodeList(t))
return (function(t, e, n) {
return (
Array.prototype.forEach.call(t, function(t) {
t.addEventListener(e, n);
}),
{
destroy: function() {
Array.prototype.forEach.call(t, function(t) {
t.removeEventListener(e, n);
});
}
}
);
})(t, e, n);
if (o.string(t))
return (function(t, e, n) {
return r(document.body, t, e, n);
})(t, e, n);
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
};
},
function(t, e) {
(e.node = function(t) {
return void 0 !== t && t instanceof HTMLElement && 1 === t.nodeType;
}),
(e.nodeList = function(t) {
var n = Object.prototype.toString.call(t);
return (
void 0 !== t &&
("[object NodeList]" === n || "[object HTMLCollection]" === n) &&
"length" in t &&
(0 === t.length || e.node(t[0]))
);
}),
(e.string = function(t) {
return "string" == typeof t || t instanceof String;
}),
(e.fn = function(t) {
return "[object Function]" === Object.prototype.toString.call(t);
});
},
function(t, e, n) {
var o = n(7);
function r(t, e, n, r, i) {
var a = function(t, e, n, r) {
return function(n) {
(n.delegateTarget = o(n.target, e)), n.delegateTarget && r.call(t, n);
};
}.apply(this, arguments);
return (
t.addEventListener(n, a, i),
{
destroy: function() {
t.removeEventListener(n, a, i);
}
}
);
}
t.exports = function(t, e, n, o, i) {
return "function" == typeof t.addEventListener
? r.apply(null, arguments)
: "function" == typeof n
? r.bind(null, document).apply(null, arguments)
: ("string" == typeof t && (t = document.querySelectorAll(t)),
Array.prototype.map.call(t, function(t) {
return r(t, e, n, o, i);
}));
};
},
function(t, e) {
var n = 9;
if ("undefined" != typeof Element && !Element.prototype.matches) {
var o = Element.prototype;
o.matches =
o.matchesSelector ||
o.mozMatchesSelector ||
o.msMatchesSelector ||
o.oMatchesSelector ||
o.webkitMatchesSelector;
}
t.exports = function(t, e) {
for (; t && t.nodeType !== n; ) {
if ("function" == typeof t.matches && t.matches(e)) return t;
t = t.parentNode;
}
};
}
]);
});
},
{}
],
mpVp: [
function(require, module, exports) {
"use strict";
var e = r(require("clipboard"));
function r(e) {
return e && e.__esModule ? e : { default: e };
}
new e.default(".copy");
},
{ clipboard: "FvGE" }
]
},
{},
["mpVp"],
null
);

File diff suppressed because it is too large Load Diff