Remove old app data, rename project, update logo
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 25 KiB |
@ -1,9 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
|
||||
.app-icon {
|
||||
border: 1px solid grey;
|
||||
border-radius: 20%;
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/*
|
||||
A tiny bit of CSS to inject into apps even if injectcode = false.
|
||||
|
||||
This hides items in the app with the class mobile-app-hide.
|
||||
*/
|
||||
|
||||
.mobile-app-hide {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
@ -1,29 +0,0 @@
|
||||
/*
|
||||
Roboto font family
|
||||
Downloaded from Google Web Fonts
|
||||
Apache 2.0 License
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(../fonts/Roboto-Light.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(../fonts/Roboto-Regular.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(../fonts/Roboto-Medium.ttf) format('truetype');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/Roboto-Bold.ttf) format('truetype');
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
/*
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
@media screen and (max-width: 767px) {
|
||||
.navbar, .navbar-brand {
|
||||
min-height: 56px;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
font-size: 20px;
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
.navbar-toggle {
|
||||
border: 0px solid white;
|
||||
margin-top: 11px;
|
||||
margin-bottom: 11px;
|
||||
}
|
||||
|
||||
#navbar-collapse {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button.navbar-toggle[data-toggle="collapse"] {
|
||||
float: left;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.navbar-header .navbar-brand {
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
.navbar-header .navbar-brand img {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#swipe-nav ul {
|
||||
margin-bottom: 10px;
|
||||
padding-left: 2px;
|
||||
list-style-type: none;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#swipe-nav ul li {
|
||||
color: #424242;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#swipe-nav ul li a:focus,a:active {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
#swipe-nav ul li i.fa {
|
||||
font-size: 120%;
|
||||
margin-right: 10px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#swipe-nav ul li a {
|
||||
display: inline-block;
|
||||
color: #424242;
|
||||
font-size: 110%;
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
#swipe-nav ul li a:hover {
|
||||
text-decoration: none;
|
||||
}
|
@ -1,48 +0,0 @@
|
||||
/*
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
@media screen and (max-width: 767px) {
|
||||
#navbar-collapse {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 10px;
|
||||
padding-left: 0px;
|
||||
list-style-type: none;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list .nav-item {
|
||||
color: #424242;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list .nav-item a:focus,a:active {
|
||||
background-color: #e0e0e0;
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list .nav-item i.fa {
|
||||
font-size: 120%;
|
||||
margin-right: 10px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list .nav-item a {
|
||||
display: inline-block;
|
||||
color: #424242;
|
||||
font-size: 110%;
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
padding-top: 15px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
#swipe-nav .swipe-list .nav-item a:hover {
|
||||
text-decoration: none;
|
||||
}
|
@ -1,75 +0,0 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
.mobile-app-hide {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.mobile-app-show {
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.mobile-app-display {
|
||||
display: initial;
|
||||
}
|
||||
|
||||
#swipe-nav {
|
||||
display: none;
|
||||
visibility: visible;
|
||||
overflow-y: scroll;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 60%;
|
||||
z-index: 9999999;
|
||||
max-width: 300px;
|
||||
min-width: 200px;
|
||||
background-color: #fafafa;
|
||||
box-shadow: 5px 0px 15px 0px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
#swipe-nav #swipe-header {
|
||||
height: 150px;
|
||||
background-color: #eeeeee;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#swipe-nav #swipe-header #swipe-username {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
padding-left: 10px;
|
||||
padding-bottom: 10px;
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
#swipe-nav #swipe-header #swipe-appicon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
padding-left: 20px;
|
||||
padding-top: 20px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
#swipe-nav #swipe-header #swipe-username .fa {
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
#swipe-nav #swipe-pages {
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid #eeeeee;
|
||||
}
|
||||
|
||||
#swipe-shader {
|
||||
position: fixed;
|
||||
display: none;
|
||||
visibility: visible;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
z-index: 9999998;
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 199 B |
@ -1,57 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
fill="#000000"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
width="24"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="ic_arrow-back.svg">
|
||||
<metadata
|
||||
id="metadata12">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs10" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="640"
|
||||
inkscape:window-height="480"
|
||||
id="namedview8"
|
||||
showgrid="false"
|
||||
inkscape:zoom="10.125"
|
||||
inkscape:cx="-6.0246914"
|
||||
inkscape:cy="11.802469"
|
||||
inkscape:current-layer="svg2" />
|
||||
<path
|
||||
d="M0 0h24v24H0z"
|
||||
fill="none"
|
||||
id="path4" />
|
||||
<path
|
||||
d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"
|
||||
id="path6"
|
||||
style="fill:#ffffff;fill-opacity:1" />
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
@ -1,4 +0,0 @@
|
||||
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 274 B |
@ -1,4 +0,0 @@
|
||||
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 389 B |
@ -1,56 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
fill="#000000"
|
||||
height="24"
|
||||
viewBox="0 0 24 24"
|
||||
width="24"
|
||||
id="svg3421"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="ic_settings.svg">
|
||||
<metadata
|
||||
id="metadata3431">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs3429" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="640"
|
||||
inkscape:window-height="480"
|
||||
id="namedview3427"
|
||||
showgrid="false"
|
||||
inkscape:zoom="33.083333"
|
||||
inkscape:cx="11.969773"
|
||||
inkscape:cy="12"
|
||||
inkscape:current-layer="svg3421" />
|
||||
<path
|
||||
d="M0 0h24v24H0z"
|
||||
fill="none"
|
||||
id="path3423" />
|
||||
<path
|
||||
d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.23-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98s.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23.09.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z"
|
||||
id="path3425"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none" />
|
||||
</svg>
|
Before Width: | Height: | Size: 2.2 KiB |
@ -1,4 +0,0 @@
|
||||
<svg fill="#FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M0 0h24v24H0z" fill="none"/>
|
||||
<path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 320 B |
@ -1,108 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 512.00001 512.00001"
|
||||
id="svg2"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs4">
|
||||
<pattern
|
||||
height="8.15625"
|
||||
patternTransform="translate(201.25 133.47)"
|
||||
patternUnits="userSpaceOnUse"
|
||||
width="8.6875"
|
||||
id="pattern6179">
|
||||
<path
|
||||
d="m1.9375 0.5c-0.8781 0.7454-1.4375 1.8526-1.4375 3.0938 0 2.2424 1.82 4.0624 4.0625 4.0624 1.5819 0 2.9541-0.9292 3.625-2.25-0.7084 0.6014-1.6237 1-2.625 1-2.2425 0-4.0625-1.82-4.0625-4.0624 0-0.6607 0.1573-1.2922 0.4375-1.8438z"
|
||||
style="opacity:.32394;stroke-opacity:0;fill:#eeeeec"
|
||||
id="path6174" />
|
||||
</pattern>
|
||||
</defs>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
transform="translate(0,-540.36216)">
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
|
||||
id="rect4726"
|
||||
width="512"
|
||||
height="512"
|
||||
x="0"
|
||||
y="540.36218"
|
||||
rx="50"
|
||||
ry="50" />
|
||||
<g
|
||||
transform="translate(0,-2.2617187e-5)"
|
||||
id="layer1-9">
|
||||
<g
|
||||
transform="translate(0.61384869,9.1476514)"
|
||||
id="g4610">
|
||||
<g
|
||||
style="fill:#dcdcdc;fill-opacity:1"
|
||||
id="g4528">
|
||||
<rect
|
||||
y="726.60608"
|
||||
x="145.6884"
|
||||
height="296.34189"
|
||||
width="100.27342"
|
||||
id="rect4194-3"
|
||||
style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
|
||||
rx="15"
|
||||
ry="15" />
|
||||
<rect
|
||||
y="797.948"
|
||||
x="263.57608"
|
||||
height="225"
|
||||
width="100.27342"
|
||||
id="rect4194-6"
|
||||
style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
|
||||
rx="15"
|
||||
ry="15" />
|
||||
<rect
|
||||
y="858.0174"
|
||||
x="30.26951"
|
||||
height="164.93059"
|
||||
width="100.27342"
|
||||
id="rect4194-6-7"
|
||||
style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
|
||||
rx="15"
|
||||
ry="15" />
|
||||
<rect
|
||||
y="551.48108"
|
||||
x="380.22937"
|
||||
height="471.46692"
|
||||
width="100.27342"
|
||||
id="rect4194"
|
||||
style="fill:#dcdcdc;fill-opacity:1;stroke:none;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:5, 5;stroke-dashoffset:0;stroke-opacity:1"
|
||||
rx="15"
|
||||
ry="15" />
|
||||
</g>
|
||||
<g
|
||||
id="g4568">
|
||||
<path
|
||||
style="fill:#bce0fc;fill-opacity:1;stroke:#ffffff;stroke-width:7;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
d="m 195.89258,55.101562 a 24.748737,24.748737 0 0 0 -24.81641,24.681641 24.748737,24.748737 0 0 0 3.02344,11.867188 L 76.679688,335.07617 a 24.748737,24.748737 0 0 0 -21.021485,24.38281 24.748737,24.748737 0 0 0 24.679688,24.81641 24.748737,24.748737 0 0 0 24.816409,-24.68164 24.748737,24.748737 0 0 0 -5.242191,-15.28711 l 94.437501,-235.9707 100.24609,303.2539 a 24.748737,24.748737 0 0 0 -5.63086,15.625 24.748737,24.748737 0 0 0 24.67969,24.81641 24.748737,24.748737 0 0 0 24.81641,-24.67969 24.748737,24.748737 0 0 0 -7.86328,-18.11914 L 432.16602,180.64453 a 24.748737,24.748737 0 0 0 22.94921,-24.60937 24.748737,24.748737 0 0 0 -24.68164,-24.81641 24.748737,24.748737 0 0 0 -24.8164,24.67969 24.748737,24.748737 0 0 0 4.10547,13.68945 L 312.93359,387.41602 215.99609,94.166016 a 24.748737,24.748737 0 0 0 4.57813,-14.248047 24.748737,24.748737 0 0 0 -24.68164,-24.816407 z"
|
||||
transform="translate(0,540.36219)"
|
||||
id="circle4572" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.4 KiB |
@ -1,42 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
viewBox="0 0 403.11311 352.57208"
|
||||
height="352.57208"
|
||||
width="403.11313">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(-146.20776,-255.22513)"
|
||||
id="layer1">
|
||||
<path
|
||||
id="rect4361"
|
||||
d="m 347.66381,255.22727 c -2.39231,-0.0413 -4.73078,0.51333 -6.84028,1.73125 -0.17129,0.0989 -0.33632,0.20489 -0.50152,0.31068 -3.46803,1.83238 -6.64163,4.83846 -8.9265,8.79597 L 149.3802,581.32449 c -1.6698,2.89218 -2.66186,5.942 -3.01901,8.90436 -0.0972,0.63442 -0.15343,1.27896 -0.15343,1.93506 0,0.0717 0.006,0.14227 0.007,0.21374 -0.0963,5.80318 2.31129,11.01809 6.93341,13.68667 2.80598,1.62003 6.01719,2.06551 9.22115,1.49768 1.09798,0.15203 2.22613,0.23511 3.38007,0.23511 l 364.02986,0 c 1.15394,0 2.28208,-0.0831 3.38006,-0.23511 3.20397,0.56784 6.41517,0.12236 9.22115,-1.49768 4.62213,-2.66858 7.02968,-7.88349 6.93342,-13.68667 10e-4,-0.0715 0.007,-0.14204 0.007,-0.21374 0,-0.65241 -0.0551,-1.29339 -0.15114,-1.92438 -0.35605,-2.9657 -1.34949,-6.01938 -3.0213,-8.91504 L 364.13287,266.06517 c -2.28487,-3.95751 -5.45847,-6.96359 -8.9265,-8.79597 -0.1652,-0.10579 -0.33023,-0.21179 -0.50151,-0.31068 -2.13906,-1.23499 -4.51373,-1.78539 -6.94105,-1.72667 -0.0333,-8.1e-4 -0.0667,-0.004 -0.1,-0.005 z m 0.1,45.01872 159.51359,276.28473 -319.0264,0 159.51281,-276.28473 z"
|
||||
style="opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<g
|
||||
id="text4409"
|
||||
style="font-style:normal;font-weight:normal;font-size:278.96676636px;line-height:125%;font-family:sans-serif;letter-spacing:-54.46826553px;word-spacing:0px;opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
<path
|
||||
id="path4414"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:278.96676636px;line-height:125%;font-family:Ubuntu;-inkscape-font-specification:Ubuntu;letter-spacing:-54.46826553px;word-spacing:0px;opacity:0.5;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 360.21586,429.25521 q 0,20.10017 -1.49418,36.61102 -1.49418,16.27157 -3.73546,32.54313 l -14.4438,0 q -2.24128,-16.27156 -3.73546,-32.54313 -1.49419,-16.51085 -1.49419,-36.61102 l 0,-44.98609 24.90309,0 0,44.98609 z m 4.23352,107.91877 q 0,6.46077 -4.48255,11.24653 -4.48255,4.78575 -12.20252,4.78575 -7.71995,0 -12.20251,-4.78575 -4.48255,-4.78576 -4.48255,-11.24653 0,-6.46076 4.48255,-11.24652 4.48256,-4.78576 12.20251,-4.78576 7.71997,0 12.20252,4.78576 4.48255,4.78576 4.48255,11.24652 z" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB |
@ -1,78 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 512.00001 512.00001"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="logo.svg"
|
||||
inkscape:export-filename="/home/skylar/Documents/Projects/Sources/WebAppTemplate/static/img/logo.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="-493.3276 : 245.89848 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_z="464.45088 : 245.89848 : 1"
|
||||
inkscape:persp3d-origin="-14.438371 : 160.56515 : 1"
|
||||
id="perspective4236" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.49497475"
|
||||
inkscape:cx="-135.9681"
|
||||
inkscape:cy="352.66131"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-540.36216)">
|
||||
<rect
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:20;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.74509804"
|
||||
id="rect4726"
|
||||
width="512"
|
||||
height="512"
|
||||
x="0"
|
||||
y="540.36218"
|
||||
rx="50"
|
||||
ry="50" />
|
||||
<path
|
||||
id="path4348"
|
||||
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:9.87128067;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 132.93564,682.51771 213.96788,-43.14304 0,313.97496 -213.96788,-37.9643 z m 213.96788,-43.14304 0,313.97496 32.16084,-45.18373 0,-217.44396 z m -213.96788,43.14304 213.96788,-43.14304 32.16084,51.34727 -167.21823,22.47784 z m 78.91049,30.68207 167.21823,-22.47784 0,217.44396 -167.21823,-19.77968 z m -78.91049,-30.68207 0,232.86762 78.91049,-26.99911 0,-175.18644 z m 0,232.86762 213.96788,37.9643 32.16084,-45.18373 -167.21823,-19.77968 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.9 KiB |
@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
viewBox="0 0 403.11274 163.29169"
|
||||
height="163.29169"
|
||||
width="403.11276"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="noaccounts.svg">
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1440"
|
||||
inkscape:window-height="842"
|
||||
id="namedview4274"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.1913066"
|
||||
inkscape:cx="111.56795"
|
||||
inkscape:cy="18.120005"
|
||||
inkscape:window-x="1024"
|
||||
inkscape:window-y="156"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g4375"
|
||||
fit-margin-top="20"
|
||||
fit-margin-bottom="20"
|
||||
fit-margin-left="88.539"
|
||||
fit-margin-right="88.539" />
|
||||
<defs
|
||||
id="defs4" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
style="fill:#ffffff"
|
||||
id="g4375"
|
||||
transform="matrix(10.274307,0,0,10.274307,94.587448,-48.471738)">
|
||||
<path
|
||||
id="path4365"
|
||||
d="M 0,0 24,0 24,24 0,24 Z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:none" />
|
||||
<path
|
||||
id="path4467"
|
||||
d="m 7.9464545,12.664364 q -1.242192,0 -2.121099,-0.878908 -0.878907,-0.878908 -0.878907,-2.1210988 0,-1.24219 0.878907,-2.121099 0.878907,-0.878909 2.121099,-0.878909 1.242191,0 2.1210985,0.878909 0.878907,0.878909 0.878907,2.121099 0,1.2421908 -0.878907,2.1210988 -0.8789075,0.878908 -2.1210985,0.878908 z m 8.4140785,2.500007 1.945322,1.945316 q 0.07031,0.07032 0.07031,0.179689 0,0.101563 -0.07031,0.171875 l -1.062505,1.062503 q -0.07031,0.07032 -0.171874,0.07032 -0.109379,0 -0.179687,-0.07032 l -1.945322,-1.945317 -1.945313,1.945317 q -0.07031,0.07032 -0.179688,0.07032 -0.101566,0 -0.171874,-0.07032 l -1.062504,-1.062503 q -0.07031,-0.07032 -0.07031,-0.171875 0,-0.109375 0.07031,-0.179689 l 1.945314,-1.945316 -1.945314,-1.945318 q -0.07031,-0.07032 -0.07031,-0.179687 0,-0.101563 0.07031,-0.171876 l 1.062504,-1.062502 q 0.07031,-0.07032 0.171874,-0.07032 0.109372,0 0.179688,0.07032 l 1.945313,1.945316 1.945322,-1.945316 q 0.07031,-0.07032 0.179687,-0.07032 0.101559,0 0.171874,0.07032 l 1.062505,1.062502 q 0.07031,0.07032 0.07031,0.171876 0,0.109374 -0.07031,0.179687 z m -3.890628,0 -1.414073,1.414066 q -0.289059,0.289063 -0.289059,0.710939 0,0.414064 0.289059,0.703126 l 0.64844,0.64844 q -0.164061,0.02344 -0.343748,0.02344 l -6.8281395,0 q -0.94532,0 -1.515632,-0.539064 -0.570313,-0.539064 -0.570313,-1.484378 0,-0.414064 0.02737,-0.808596 0.02737,-0.394533 0.10938,-0.851565 0.08203,-0.457032 0.207028,-0.847658 0.125005,-0.390626 0.335943,-0.761721 0.210938,-0.371094 0.484372,-0.632814 0.27344,-0.261719 0.667968,-0.41797 0.394536,-0.15625 0.871102,-0.15625 0.148436,0 0.304685,0.132812 1.203127,0.953128 2.492196,0.953128 1.289061,0 2.4921955,-0.953128 0.156248,-0.132812 0.304684,-0.132812 0.218751,0 0.445315,0.04688 -0.218751,0.210937 -0.320317,0.390625 -0.101559,0.179688 -0.101559,0.437502 0,0.421876 0.289059,0.710938 z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="opacity:0.5;fill:#000000;fill-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.8 KiB |
@ -1,70 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="svg2"
|
||||
viewBox="0 0 403.11274 163.29169"
|
||||
height="163.29169"
|
||||
width="403.11276"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="nokeys.svg">
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1440"
|
||||
inkscape:window-height="842"
|
||||
id="namedview4274"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.6847619"
|
||||
inkscape:cx="193.17345"
|
||||
inkscape:cy="81.645645"
|
||||
inkscape:window-x="1024"
|
||||
inkscape:window-y="1024"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g4375"
|
||||
fit-margin-top="20"
|
||||
fit-margin-bottom="20"
|
||||
fit-margin-left="88.539"
|
||||
fit-margin-right="88.539" />
|
||||
<defs
|
||||
id="defs4" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
style="fill:#ffffff"
|
||||
id="g4375"
|
||||
transform="matrix(10.274307,0,0,10.274307,94.587448,-48.471738)">
|
||||
<path
|
||||
id="path4365"
|
||||
d="M 0,0 24,0 24,24 0,24 Z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:none" />
|
||||
<path
|
||||
id="path4367"
|
||||
d="m 11.061302,10.664366 c -0.82,-2.3300004 -3.0399999,-4.0000004 -5.6499999,-4.0000004 -3.31,0 -6,2.69 -6,6.0000004 0,3.31 2.69,6 6,6 2.61,0 4.8299999,-1.67 5.6499999,-4 l 4.35,0 0,4 4,0 0,-4 2,0 0,-4 -10.35,0 z m -5.6499999,4 c -1.1,0 -2,-0.9 -2,-2 0,-1.1 0.9,-2 2,-2 1.1,0 2,0.9 2,2 0,1.1 -0.9,2 -2,2 z"
|
||||
inkscape:connector-curvature="0"
|
||||
style="opacity:0.5;fill:#000000;fill-opacity:1" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.3 KiB |
@ -1,320 +0,0 @@
|
||||
/*
|
||||
Based on the file
|
||||
https://github.com/srekanui/google-material-color-palette-json/blob/master/lib/palette.json
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2016 Sravan Kumar Rekandar
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
_PALETTE = {
|
||||
"red": {
|
||||
"shade_50": "#ffebee",
|
||||
"shade_100": "#ffcdd2",
|
||||
"shade_200": "#ef9a9a",
|
||||
"shade_300": "#e57373",
|
||||
"shade_400": "#ef5350",
|
||||
"shade_500": "#f44336",
|
||||
"shade_600": "#e53935",
|
||||
"shade_700": "#d32f2f",
|
||||
"shade_800": "#c62828",
|
||||
"shade_900": "#b71c1c",
|
||||
"shade_A100": "#ff8a80",
|
||||
"shade_A200": "#ff5252",
|
||||
"shade_A400": "#ff1744",
|
||||
"shade_A700": "#d50000"
|
||||
},
|
||||
"pink": {
|
||||
"shade_50": "#fce4ec",
|
||||
"shade_100": "#f8bbd0",
|
||||
"shade_200": "#f48fb1",
|
||||
"shade_300": "#f06292",
|
||||
"shade_400": "#ec407a",
|
||||
"shade_500": "#e91e63",
|
||||
"shade_600": "#d81b60",
|
||||
"shade_700": "#c2185b",
|
||||
"shade_800": "#ad1457",
|
||||
"shade_900": "#880e4f",
|
||||
"shade_A100": "#ff80ab",
|
||||
"shade_A200": "#ff4081",
|
||||
"shade_A400": "#f50057",
|
||||
"shade_A700": "#c51162"
|
||||
},
|
||||
"purple": {
|
||||
"shade_50": "#f3e5f5",
|
||||
"shade_100": "#e1bee7",
|
||||
"shade_200": "#ce93d8",
|
||||
"shade_300": "#ba68c8",
|
||||
"shade_400": "#ab47bc",
|
||||
"shade_500": "#9c27b0",
|
||||
"shade_600": "#8e24aa",
|
||||
"shade_700": "#7b1fa2",
|
||||
"shade_800": "#6a1b9a",
|
||||
"shade_900": "#4a148c",
|
||||
"shade_A100": "#ea80fc",
|
||||
"shade_A200": "#e040fb",
|
||||
"shade_A400": "#d500f9",
|
||||
"shade_A700": "#aa00ff"
|
||||
},
|
||||
"deepPurple": {
|
||||
"shade_50": "#ede7f6",
|
||||
"shade_100": "#d1c4e9",
|
||||
"shade_200": "#b39ddb",
|
||||
"shade_300": "#9575cd",
|
||||
"shade_400": "#7e57c2",
|
||||
"shade_500": "#673ab7",
|
||||
"shade_600": "#5e35b1",
|
||||
"shade_700": "#512da8",
|
||||
"shade_800": "#4527a0",
|
||||
"shade_900": "#311b92",
|
||||
"shade_A100": "#b388ff",
|
||||
"shade_A200": "#7c4dff",
|
||||
"shade_A400": "#651fff",
|
||||
"shade_A700": "#6200ea"
|
||||
},
|
||||
"indigo": {
|
||||
"shade_50": "#e8eaf6",
|
||||
"shade_100": "#c5cae9",
|
||||
"shade_200": "#9fa8da",
|
||||
"shade_300": "#7986cb",
|
||||
"shade_400": "#5c6bc0",
|
||||
"shade_500": "#3f51b5",
|
||||
"shade_600": "#3949ab",
|
||||
"shade_700": "#303f9f",
|
||||
"shade_800": "#283593",
|
||||
"shade_900": "#1a237e",
|
||||
"shade_A100": "#8c9eff",
|
||||
"shade_A200": "#536dfe",
|
||||
"shade_A400": "#3d5afe",
|
||||
"shade_A700": "#304ffe"
|
||||
},
|
||||
"blue": {
|
||||
"shade_50": "#e3f2fd",
|
||||
"shade_100": "#bbdefb",
|
||||
"shade_200": "#90caf9",
|
||||
"shade_300": "#64b5f6",
|
||||
"shade_400": "#42a5f5",
|
||||
"shade_500": "#2196f3",
|
||||
"shade_600": "#1e88e5",
|
||||
"shade_700": "#1976d2",
|
||||
"shade_800": "#1565c0",
|
||||
"shade_900": "#0d47a1",
|
||||
"shade_A100": "#82b1ff",
|
||||
"shade_A200": "#448aff",
|
||||
"shade_A400": "#2979ff",
|
||||
"shade_A700": "#2962ff"
|
||||
},
|
||||
"lightBlue": {
|
||||
"shade_50": "#e1f5fe",
|
||||
"shade_100": "#b3e5fc",
|
||||
"shade_200": "#81d4fa",
|
||||
"shade_300": "#4fc3f7",
|
||||
"shade_400": "#29b6f6",
|
||||
"shade_500": "#03a9f4",
|
||||
"shade_600": "#039be5",
|
||||
"shade_700": "#0288d1",
|
||||
"shade_800": "#0277bd",
|
||||
"shade_900": "#01579b",
|
||||
"shade_A100": "#80d8ff",
|
||||
"shade_A200": "#40c4ff",
|
||||
"shade_A400": "#00b0ff",
|
||||
"shade_A700": "#0091ea"
|
||||
},
|
||||
"cyan": {
|
||||
"shade_50": "#e0f7fa",
|
||||
"shade_100": "#b2ebf2",
|
||||
"shade_200": "#80deea",
|
||||
"shade_300": "#4dd0e1",
|
||||
"shade_400": "#26c6da",
|
||||
"shade_500": "#00bcd4",
|
||||
"shade_600": "#00acc1",
|
||||
"shade_700": "#0097a7",
|
||||
"shade_800": "#00838f",
|
||||
"shade_900": "#006064",
|
||||
"shade_A100": "#84ffff",
|
||||
"shade_A200": "#18ffff",
|
||||
"shade_A400": "#00e5ff",
|
||||
"shade_A700": "#00b8d4"
|
||||
},
|
||||
"teal": {
|
||||
"shade_50": "#e0f2f1",
|
||||
"shade_100": "#b2dfdb",
|
||||
"shade_200": "#80cbc4",
|
||||
"shade_300": "#4db6ac",
|
||||
"shade_400": "#26a69a",
|
||||
"shade_500": "#009688",
|
||||
"shade_600": "#00897b",
|
||||
"shade_700": "#00796b",
|
||||
"shade_800": "#00695c",
|
||||
"shade_900": "#004d40",
|
||||
"shade_A100": "#a7ffeb",
|
||||
"shade_A200": "#64ffda",
|
||||
"shade_A400": "#1de9b6",
|
||||
"shade_A700": "#00bfa5"
|
||||
},
|
||||
"green": {
|
||||
"shade_50": "#e8f5e9",
|
||||
"shade_100": "#c8e6c9",
|
||||
"shade_200": "#a5d6a7",
|
||||
"shade_300": "#81c784",
|
||||
"shade_400": "#66bb6a",
|
||||
"shade_500": "#4caf50",
|
||||
"shade_600": "#43a047",
|
||||
"shade_700": "#388e3c",
|
||||
"shade_800": "#2e7d32",
|
||||
"shade_900": "#1b5e20",
|
||||
"shade_A100": "#b9f6ca",
|
||||
"shade_A200": "#69f0ae",
|
||||
"shade_A400": "#00e676",
|
||||
"shade_A700": "#00c853"
|
||||
},
|
||||
"lightGreen": {
|
||||
"shade_50": "#f1f8e9",
|
||||
"shade_100": "#dcedc8",
|
||||
"shade_200": "#c5e1a5",
|
||||
"shade_300": "#aed581",
|
||||
"shade_400": "#9ccc65",
|
||||
"shade_500": "#8bc34a",
|
||||
"shade_600": "#7cb342",
|
||||
"shade_700": "#689f38",
|
||||
"shade_800": "#558b2f",
|
||||
"shade_900": "#33691e",
|
||||
"shade_A100": "#ccff90",
|
||||
"shade_A200": "#b2ff59",
|
||||
"shade_A400": "#76ff03",
|
||||
"shade_A700": "#64dd17"
|
||||
},
|
||||
"lime": {
|
||||
"shade_50": "#f9fbe7",
|
||||
"shade_100": "#f0f4c3",
|
||||
"shade_200": "#e6ee9c",
|
||||
"shade_300": "#dce775",
|
||||
"shade_400": "#d4e157",
|
||||
"shade_500": "#cddc39",
|
||||
"shade_600": "#c0ca33",
|
||||
"shade_700": "#afb42b",
|
||||
"shade_800": "#9e9d24",
|
||||
"shade_900": "#827717",
|
||||
"shade_A100": "#f4ff81",
|
||||
"shade_A200": "#eeff41",
|
||||
"shade_A400": "#c6ff00",
|
||||
"shade_A700": "#aeea00"
|
||||
},
|
||||
"yellow": {
|
||||
"shade_50": "#fffde7",
|
||||
"shade_100": "#fff9c4",
|
||||
"shade_200": "#fff59d",
|
||||
"shade_300": "#fff176",
|
||||
"shade_400": "#ffee58",
|
||||
"shade_500": "#ffeb3b",
|
||||
"shade_600": "#fdd835",
|
||||
"shade_700": "#fbc02d",
|
||||
"shade_800": "#f9a825",
|
||||
"shade_900": "#f57f17",
|
||||
"shade_A100": "#ffff8d",
|
||||
"shade_A200": "#ffff00",
|
||||
"shade_A400": "#ffea00",
|
||||
"shade_A700": "#ffd600"
|
||||
},
|
||||
"amber": {
|
||||
"shade_50": "#fff8e1",
|
||||
"shade_100": "#ffecb3",
|
||||
"shade_200": "#ffe082",
|
||||
"shade_300": "#ffd54f",
|
||||
"shade_400": "#ffca28",
|
||||
"shade_500": "#ffc107",
|
||||
"shade_600": "#ffb300",
|
||||
"shade_700": "#ffa000",
|
||||
"shade_800": "#ff8f00",
|
||||
"shade_900": "#ff6f00",
|
||||
"shade_A100": "#ffe57f",
|
||||
"shade_A200": "#ffd740",
|
||||
"shade_A400": "#ffc400",
|
||||
"shade_A700": "#ffab00"
|
||||
},
|
||||
"orange": {
|
||||
"shade_50": "#fff3e0",
|
||||
"shade_100": "#ffe0b2",
|
||||
"shade_200": "#ffcc80",
|
||||
"shade_300": "#ffb74d",
|
||||
"shade_400": "#ffa726",
|
||||
"shade_500": "#ff9800",
|
||||
"shade_600": "#fb8c00",
|
||||
"shade_700": "#f57c00",
|
||||
"shade_800": "#ef6c00",
|
||||
"shade_900": "#e65100",
|
||||
"shade_A100": "#ffd180",
|
||||
"shade_A200": "#ffab40",
|
||||
"shade_A400": "#ff9100",
|
||||
"shade_A700": "#ff6d00"
|
||||
},
|
||||
"deepOrange": {
|
||||
"shade_50": "#fbe9e7",
|
||||
"shade_100": "#ffccbc",
|
||||
"shade_200": "#ffab91",
|
||||
"shade_300": "#ff8a65",
|
||||
"shade_400": "#ff7043",
|
||||
"shade_500": "#ff5722",
|
||||
"shade_600": "#f4511e",
|
||||
"shade_700": "#e64a19",
|
||||
"shade_800": "#d84315",
|
||||
"shade_900": "#bf360c",
|
||||
"shade_A100": "#ff9e80",
|
||||
"shade_A200": "#ff6e40",
|
||||
"shade_A400": "#ff3d00",
|
||||
"shade_A700": "#dd2c00"
|
||||
},
|
||||
"brown": {
|
||||
"shade_50": "#efebe9",
|
||||
"shade_100": "#d7ccc8",
|
||||
"shade_200": "#bcaaa4",
|
||||
"shade_300": "#a1887f",
|
||||
"shade_400": "#8d6e63",
|
||||
"shade_500": "#795548",
|
||||
"shade_600": "#6d4c41",
|
||||
"shade_700": "#5d4037",
|
||||
"shade_800": "#4e342e",
|
||||
"shade_900": "#3e2723"
|
||||
},
|
||||
"grey": {
|
||||
"shade_50": "#fafafa",
|
||||
"shade_100": "#f5f5f5",
|
||||
"shade_200": "#eeeeee",
|
||||
"shade_300": "#e0e0e0",
|
||||
"shade_400": "#bdbdbd",
|
||||
"shade_500": "#9e9e9e",
|
||||
"shade_600": "#757575",
|
||||
"shade_700": "#616161",
|
||||
"shade_800": "#424242",
|
||||
"shade_900": "#212121"
|
||||
},
|
||||
"blueGrey": {
|
||||
"shade_50": "#eceff1",
|
||||
"shade_100": "#cfd8dc",
|
||||
"shade_200": "#b0bec5",
|
||||
"shade_300": "#90a4ae",
|
||||
"shade_400": "#78909c",
|
||||
"shade_500": "#607d8b",
|
||||
"shade_600": "#546e7a",
|
||||
"shade_700": "#455a64",
|
||||
"shade_800": "#37474f",
|
||||
"shade_900": "#263238"
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="circle-btn btn btn-light-blue" onclick="openscreen('setup1', 'FADE');">
|
||||
<img src="icons/ic_add.svg" />
|
||||
</div>
|
||||
<div id="noaccounts">
|
||||
<div class="app-dock-container">
|
||||
<div class="app-dock" id="app-dock">
|
||||
<div style="margin-top: 50px; text-align: center; font-size: 120%;">
|
||||
<img src="img/noaccounts.svg" alt="" style="max-width: 80%; max-height: 25%;" />
|
||||
<br /><br />
|
||||
<p style="max-width: 80%; margin: 0 auto;">You haven't added any Business Apps accounts yet. Press <i class="fa fa-plus"></i> to add one.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-group" id="accountlist">
|
||||
</div>
|
||||
<script>
|
||||
setnavbar("app", "Accounts", "settings");
|
||||
|
||||
var accounts = getaccounts();
|
||||
if (accounts.length > 0) {
|
||||
$("#noaccounts").css("display", "none");
|
||||
}
|
||||
for (var i = 0; i < accounts.length; i++) {
|
||||
// Escape HTML characters
|
||||
var username = $('<div/>').html(accounts[i]["username"]).html();
|
||||
var syncurl = $('<div/>').html(accounts[i]["syncurl"].replace("/mobile/index.php", "")).html();
|
||||
var synckey = accounts[i]["key"];
|
||||
var stars = "";
|
||||
for (var j = 0; j < synckey.length - 6; j++) {
|
||||
stars += "*";
|
||||
}
|
||||
synckey = $('<div/>').html(synckey.slice(0, 3) + stars + synckey.slice(-3)).html();
|
||||
$("#accountlist").append("<div class=\"list-group-item\" id=\"accountitem_" + i + "\">"
|
||||
+ "<span class=\"pull-right\" style=\"color: red;\" onclick=\"deleteAccount(" + i + ")\"><i class=\"fa fa-trash-o\"></i></span>"
|
||||
+ "<div onclick=\"switchAccount(" + i + ")\" class=\"h3\" style=\"font-weight: bold;\"><i class=\"fa fa-user\"></i> " + username + "</div>"
|
||||
+ "<p onclick=\"switchAccount(" + i + ")\">"
|
||||
+ "<i class=\"fa fa-key\"></i> Pairing Code: " + synckey + "<br />"
|
||||
+ "<i class=\"fa fa-server\"></i> Server: " + syncurl + "</p>"
|
||||
+ "</div>");
|
||||
}
|
||||
|
||||
function deleteAccount(id) {
|
||||
navigator.notification.confirm("Really delete account? You'll need to re-add the account to use it on this device again.", function (result) {
|
||||
if (result != 1) {
|
||||
return;
|
||||
}
|
||||
rmaccount(id);
|
||||
openscreen("accounts");
|
||||
}, "Delete " + accounts[id]['username'] + "?");
|
||||
}
|
||||
|
||||
function switchAccount(id) {
|
||||
switchaccount(id);
|
||||
openscreen("home");
|
||||
navigator.notification.alert("Successfully switched accounts.", null, "Switched", 'OK');
|
||||
}
|
||||
</script>
|
@ -1,19 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="app-dock-container">
|
||||
<div class="app-dock" id="app-dock">
|
||||
<div style="margin-top: 50px; text-align: center; font-size: 120%;">
|
||||
<img src="img/error.svg" alt="" style="max-width: 80%; max-height: 33%;" />
|
||||
<br /><br />
|
||||
Could not load application data from server.
|
||||
<br />
|
||||
<div class="btn btn-blue" onclick="openscreen('home')">
|
||||
Try again
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
setnavbar('home');
|
||||
</script>
|
@ -1,36 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h3 id="code" style="text-align: center;"></h3>
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-primary" onclick="gencode()"><i class="fa fa-refresh"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
setnavbar("app", "Login Code", "home");
|
||||
|
||||
function gencode() {
|
||||
$.post(localStorage.getItem("syncurl"), {
|
||||
username: localStorage.getItem("username"),
|
||||
key: localStorage.getItem("key"),
|
||||
action: "gencode"
|
||||
}, function (data) {
|
||||
if (data.status === 'OK') {
|
||||
$("#code").text("B-" + data.code);
|
||||
} else {
|
||||
navigator.notification.alert(data.msg, null, "Error", 'Dismiss');
|
||||
}
|
||||
}, "json").fail(function () {
|
||||
navigator.notification.alert("Unable to request code. Try again in a few seconds.", null, "Error", 'Dismiss');
|
||||
});
|
||||
}
|
||||
|
||||
gencode();
|
||||
</script>
|
@ -1,156 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<h4><i class="fa fa-user"></i> <span id="username">Not logged in</span></h4>
|
||||
<i class="fa fa-key"></i> Pairing Code: <span id="pairingkey">None</span><br />
|
||||
<i class="fa fa-server"></i> Server: <span id="syncurl">None</span>
|
||||
</div>
|
||||
<div class="list-group-item" onclick="openscreen('accounts', 'FADE');">
|
||||
<b>Manage and switch accounts</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item" onclick="updatepassword()">
|
||||
<b>Update Password</b>
|
||||
<p>Enter your new password if you changed it from AccountHub.</p>
|
||||
</div>
|
||||
<div class="list-group-item" onclick="deleteall()">
|
||||
<b>Disconnect All Accounts</b>
|
||||
<p>Forget all account data for all connected accounts and open the setup tool.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item" onclick="toggleAnimations()">
|
||||
<b>Turn animations <span id="animations_offon_label">off</span></b>
|
||||
<p>Disable transitions and animations on slow devices or to save battery life.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item" onclick="openscreen('zeroconf', 'FADE')">
|
||||
<b>Server Locator</b>
|
||||
<p>Scan the local network for Business Apps services.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="list-group">
|
||||
<div class="list-group-item">
|
||||
<b><span id="app_name">Netsyms Business Apps for Mobile</span> v<span id="app_version">1.x</span></b>
|
||||
<br />
|
||||
Copyright © 2018 Netsyms Technologies. Licensed under the <span style="text-decoration: underline;" onclick="window.open('https://source.netsyms.com/Business/MobileApp?pk_campaign=BusinessMobile-SystemBrowser', '_system', '');">Mozilla Public License 2.0</span>.
|
||||
<br />
|
||||
<span style="text-decoration: underline;" onclick="window.open('https://netsyms.com/?pk_campaign=BusinessMobile-SystemBrowser', '_system', '');">https://netsyms.com</span>
|
||||
<br />
|
||||
<span id="app_package">com.netsyms.BusinessMobile</span>
|
||||
<br />
|
||||
build #<span id="app_version_code">1xxxx</span>
|
||||
</div>
|
||||
<div class="list-group-item" onclick="openscreen('credits', 'FADE')">
|
||||
<b>Credits and Open Source</b>
|
||||
</div>
|
||||
<div class="list-group-item" onclick="cordova.InAppBrowser.open('https://netsyms.biz/mobile-privacy-policy', '_blank', 'location=yes');">
|
||||
<b>Privacy Policy</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
setnavbar("settings");
|
||||
|
||||
function deleteall() {
|
||||
navigator.notification.confirm("Really wipe user data? You will need to resync the app with AccountHub to use it again. This will not delete 2-factor auth keys.", function (result) {
|
||||
if (result != 1) {
|
||||
return;
|
||||
}
|
||||
// Wipe localStorage
|
||||
localStorage.removeItem("username");
|
||||
localStorage.removeItem("password");
|
||||
localStorage.removeItem("syncurl");
|
||||
localStorage.removeItem("key");
|
||||
localStorage.removeItem("accounts");
|
||||
NativeStorage.remove("accounts", function () {
|
||||
// force-reload app
|
||||
navigator.notification.alert("All connection data and credentials erased.", function () {
|
||||
restartApplication();
|
||||
}, "App Reset", 'Continue');
|
||||
});
|
||||
}, "Are you sure?");
|
||||
}
|
||||
|
||||
function toggleAnimations() {
|
||||
if (localStorage.getItem("animations") === null || localStorage.getItem("animations") === "true") {
|
||||
localStorage.setItem("animations", "false");
|
||||
$.fx.off = true;
|
||||
$('#animations_offon_label').text("on");
|
||||
navigator.notification.alert("Animations turned off.", null, "Setting updated", "Dismiss");
|
||||
} else {
|
||||
localStorage.setItem("animations", "true");
|
||||
$.fx.off = false;
|
||||
$('#animations_offon_label').text("off");
|
||||
navigator.notification.alert("Animations turned on.", null, "Setting updated", "Dismiss");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Prompts the user to enter their password, then checks the password and
|
||||
* saves or displays an error.
|
||||
* @returns {undefined}
|
||||
*/
|
||||
function updatepassword() {
|
||||
navigator.notification.prompt("Re-enter your password.", function (results) {
|
||||
if (results.buttonIndex == 1) {
|
||||
$.post(localStorage.getItem("syncurl"), {
|
||||
username: localStorage.getItem("username"),
|
||||
key: localStorage.getItem("key"),
|
||||
password: results.input1,
|
||||
action: "check_password"
|
||||
}, function (data) {
|
||||
if (data.status === 'OK') {
|
||||
localStorage.setItem("password", results.input1);
|
||||
passwd(results.input1);
|
||||
navigator.notification.alert("Saved password updated.", function () {
|
||||
// Reload app just to be safe
|
||||
restartApplication();
|
||||
}, "Success", 'Continue');
|
||||
} else {
|
||||
navigator.notification.alert(data.msg, null, "Error", 'Dismiss');
|
||||
}
|
||||
}, "json").fail(function () {
|
||||
navigator.notification.alert("Could not connect to the server. Try again later.", null, "Error", 'Dismiss');
|
||||
});
|
||||
}
|
||||
}, "Update Password", ["Save", "Cancel"]);
|
||||
}
|
||||
|
||||
if (localStorage.getItem("animations") === "false") {
|
||||
$('#animations_offon_label').text("on");
|
||||
}
|
||||
|
||||
cordova.getAppVersion.getVersionNumber(function (version) {
|
||||
$('#app_version').text(version);
|
||||
});
|
||||
cordova.getAppVersion.getPackageName(function (package) {
|
||||
$('#app_package').text(package);
|
||||
});
|
||||
cordova.getAppVersion.getVersionCode(function (version) {
|
||||
$('#app_version_code').text(version);
|
||||
});
|
||||
|
||||
if (localStorage.getItem("username")) {
|
||||
$("#username").text(localStorage.getItem("username"));
|
||||
}
|
||||
if (localStorage.getItem("key")) {
|
||||
var key = localStorage.getItem("key");
|
||||
var stars = "";
|
||||
for (var i = 0; i < key.length - 6; i++) {
|
||||
stars += "*";
|
||||
}
|
||||
$("#pairingkey").text(key.slice(0, 3) + stars + key.slice(-3));
|
||||
}
|
||||
if (localStorage.getItem("syncurl")) {
|
||||
$("#syncurl").text(localStorage.getItem("syncurl").replace("/mobile/index.php", ""));
|
||||
}
|
||||
</script>
|
@ -1,88 +0,0 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<!--
|
||||
Sample avahi-daemon configuration for server detection:
|
||||
/etc/avahi/services/bizapps.service
|
||||
|
||||
<?xml version="1.0" standalone='no'?>
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name>BizApps</name>
|
||||
<service>
|
||||
<type>_http._tcp</type>
|
||||
<port>80</port>
|
||||
<txt-record>appid=bizappserver</txt-record>
|
||||
<txt-record>webprotocol=http</txt-record>
|
||||
<txt-record>webpath=/accounthub</txt-record>
|
||||
<txt-record>model=other</txt-record>
|
||||
</service>
|
||||
</service-group>
|
||||
-->
|
||||
<br />
|
||||
|
||||
<div class="alert alert-blue">This tool scans for Business Apps servers on the local network. Tap on a server to view it in a web browser. Note: Cloud installations will not appear here.</div>
|
||||
<div class="list-group" id="zero-list">
|
||||
<div class="list-group-item" id="searching-message">
|
||||
<i class="fa fa-spinner fa-spin"></i> Searching...
|
||||
</div>
|
||||
<div class="list-group-item" id="not-found-message" style="display: none;">
|
||||
<i class="fa fa-search"></i> No services found on local network.
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn btn-primary" onclick="stopScanning(); scanZeroconf();"><i class="fa fa-refresh"></i> Rescan</div>
|
||||
|
||||
<script>
|
||||
var zeroconf = cordova.plugins.zeroconf;
|
||||
zeroconf.registerAddressFamily = 'ipv4'; // or 'ipv6' ('any' by default)
|
||||
zeroconf.watchAddressFamily = 'ipv4'; // or 'ipv6' ('any' by default)
|
||||
|
||||
function scanZeroconf() {
|
||||
$("#searching-message").css('display', 'block');
|
||||
$("#not-found-message").css('display', 'none');
|
||||
zeroconf.watch('_http._tcp.', 'local.', function (result) {
|
||||
var action = result.action;
|
||||
var service = result.service;
|
||||
// Ignore other services
|
||||
if (typeof service.txtRecord.appid !== 'undefined' && service.txtRecord.appid == "bizappserver") {
|
||||
var ipaddr = service.ipv4Addresses[0];
|
||||
var divid = "#server" + ipaddr.replace(/\./gi, '');
|
||||
if (action == 'added') {
|
||||
console.log('service added', service);
|
||||
var model = service.txtRecord.model;
|
||||
if ((service.txtRecord.webprotocol == "http" || service.txtRecord.webprotocol == "https") && Number.isInteger(service.port)) {
|
||||
var url = service.txtRecord.webprotocol
|
||||
+ "://"
|
||||
+ ipaddr
|
||||
+ (service.port == 80 || service.port == 443 ? "" : ":" + service.port)
|
||||
+ service.txtRecord.webpath;
|
||||
var itemcontent = "<b>" + $('<span>').text(ipaddr).html() + "</b><br />URL: " + $('<span>').text(url).html() + "<br />Model: " + $('<span>').text(model).html();
|
||||
if (document.getElementById(divid) == null) {
|
||||
$('#zero-list').append("<div class=\"list-group-item\" id=\"" + divid + "\" data-zeroconf=\"1\">" + itemcontent + "</div>");
|
||||
} else {
|
||||
$(divid).html(itemcontent);
|
||||
}
|
||||
document.getElementById(divid).onclick = function () {
|
||||
window.open(url, "_system");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log('service removed', service);
|
||||
$(divid).remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
setTimeout(stopScanning, 10 * 1000);
|
||||
}
|
||||
|
||||
function stopScanning() {
|
||||
zeroconf.unwatch('_http._tcp.', 'local.');
|
||||
$("#searching-message").css('display', 'none');
|
||||
if ($(".list-group-item[data-zeroconf]").length != true) {
|
||||
$("#not-found-message").css('display', 'block');
|
||||
}
|
||||
}
|
||||
|
||||
setnavbar("app", "Server Locator", "settings");
|
||||
scanZeroconf();
|
||||
</script>
|