Move icons/ to assets/

There's a default alias for icons/ in apache,
https://www.electrictoolbox.com/apache-icons-directory/
This commit is contained in:
Arlo Breault 2019-07-31 17:59:48 -04:00
parent 5321223240
commit b324d9d42f
18 changed files with 10 additions and 10 deletions

2
.gitignore vendored
View file

@ -18,6 +18,6 @@ proxy/webext/snowflake.js
proxy/webext/popup.js
proxy/webext/embed.html
proxy/webext/embed.css
proxy/webext/icons/
proxy/webext/assets/
ignore/
npm-debug.log

View file

@ -78,13 +78,13 @@ class WebExtUI extends UI {
if (this.active) {
return chrome.browserAction.setIcon({
path: {
32: "icons/status-running.png"
32: "assets/status-running.png"
}
});
} else {
return chrome.browserAction.setIcon({
path: {
32: "icons/status-on.png"
32: "assets/status-on.png"
}
});
}
@ -94,7 +94,7 @@ class WebExtUI extends UI {
update();
return chrome.browserAction.setIcon({
path: {
32: "icons/status-" + (enabled ? "on" : "off") + ".png"
32: "assets/status-" + (enabled ? "on" : "off") + ".png"
}
});
}
@ -142,7 +142,7 @@ var debug, snowflake, config, broker, ui, log, dbg, init, update, silenceNotific
missingFeature: true
});
});
chrome.browserAction.setIcon({ path: { 32: "icons/status-off.png" } });
chrome.browserAction.setIcon({ path: { 32: "assets/status-off.png" } });
return;
}

View file

@ -32,7 +32,7 @@ var SHARED_FILES = [
'embed.html',
'embed.css',
'popup.js',
'icons'
'assets'
];
var concatJS = function(outDir, init, outFile) {

View file

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8 KiB

After

Width:  |  Height:  |  Size: 8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8 KiB

After

Width:  |  Height:  |  Size: 8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8 KiB

After

Width:  |  Height:  |  Size: 8 KiB

Before After
Before After

View file

@ -27,7 +27,7 @@ body {
display: block;
position: absolute;
top: 12px;
background-image: url('icons/arrowhead-right-12.svg');
background-image: url('assets/arrowhead-right-12.svg');
width: 12px;
height: 12px;
opacity : 0.6;

View file

@ -10,7 +10,7 @@
</head>
<body>
<div id="active">
<img src="icons/status-off.png" />
<img src="assets/status-off.png" />
<p>Snowflake is off</p>
<p></p>
</div>

View file

@ -7,7 +7,7 @@ class Popup {
this.img = this.div.querySelector('img');
}
setImgSrc(src) {
this.img.src = `icons/status-${src}.png`;
this.img.src = `assets/status-${src}.png`;
}
setStatusText(txt) {
this.ps[0].innerText = txt;

View file

@ -9,7 +9,7 @@
},
"browser_action": {
"default_icon": {
"32": "icons/status-on.png"
"32": "assets/status-on.png"
},
"default_title": "Snowflake",
"default_popup": "embed.html"