Move icons/ to assets/
There's a default alias for icons/ in apache, https://www.electrictoolbox.com/apache-icons-directory/
2
.gitignore
vendored
|
@ -18,6 +18,6 @@ proxy/webext/snowflake.js
|
||||||
proxy/webext/popup.js
|
proxy/webext/popup.js
|
||||||
proxy/webext/embed.html
|
proxy/webext/embed.html
|
||||||
proxy/webext/embed.css
|
proxy/webext/embed.css
|
||||||
proxy/webext/icons/
|
proxy/webext/assets/
|
||||||
ignore/
|
ignore/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
|
@ -78,13 +78,13 @@ class WebExtUI extends UI {
|
||||||
if (this.active) {
|
if (this.active) {
|
||||||
return chrome.browserAction.setIcon({
|
return chrome.browserAction.setIcon({
|
||||||
path: {
|
path: {
|
||||||
32: "icons/status-running.png"
|
32: "assets/status-running.png"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
return chrome.browserAction.setIcon({
|
return chrome.browserAction.setIcon({
|
||||||
path: {
|
path: {
|
||||||
32: "icons/status-on.png"
|
32: "assets/status-on.png"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ class WebExtUI extends UI {
|
||||||
update();
|
update();
|
||||||
return chrome.browserAction.setIcon({
|
return chrome.browserAction.setIcon({
|
||||||
path: {
|
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
|
missingFeature: true
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
chrome.browserAction.setIcon({ path: { 32: "icons/status-off.png" } });
|
chrome.browserAction.setIcon({ path: { 32: "assets/status-off.png" } });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ var SHARED_FILES = [
|
||||||
'embed.html',
|
'embed.html',
|
||||||
'embed.css',
|
'embed.css',
|
||||||
'popup.js',
|
'popup.js',
|
||||||
'icons'
|
'assets'
|
||||||
];
|
];
|
||||||
|
|
||||||
var concatJS = function(outDir, init, outFile) {
|
var concatJS = function(outDir, init, outFile) {
|
||||||
|
|
Before Width: | Height: | Size: 445 B After Width: | Height: | Size: 445 B |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |
|
@ -27,7 +27,7 @@ body {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 12px;
|
top: 12px;
|
||||||
background-image: url('icons/arrowhead-right-12.svg');
|
background-image: url('assets/arrowhead-right-12.svg');
|
||||||
width: 12px;
|
width: 12px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
opacity : 0.6;
|
opacity : 0.6;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="active">
|
<div id="active">
|
||||||
<img src="icons/status-off.png" />
|
<img src="assets/status-off.png" />
|
||||||
<p>Snowflake is off</p>
|
<p>Snowflake is off</p>
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Popup {
|
||||||
this.img = this.div.querySelector('img');
|
this.img = this.div.querySelector('img');
|
||||||
}
|
}
|
||||||
setImgSrc(src) {
|
setImgSrc(src) {
|
||||||
this.img.src = `icons/status-${src}.png`;
|
this.img.src = `assets/status-${src}.png`;
|
||||||
}
|
}
|
||||||
setStatusText(txt) {
|
setStatusText(txt) {
|
||||||
this.ps[0].innerText = txt;
|
this.ps[0].innerText = txt;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"32": "icons/status-on.png"
|
"32": "assets/status-on.png"
|
||||||
},
|
},
|
||||||
"default_title": "Snowflake",
|
"default_title": "Snowflake",
|
||||||
"default_popup": "embed.html"
|
"default_popup": "embed.html"
|
||||||
|
|