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/embed.html
|
||||
proxy/webext/embed.css
|
||||
proxy/webext/icons/
|
||||
proxy/webext/assets/
|
||||
ignore/
|
||||
npm-debug.log
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ var SHARED_FILES = [
|
|||
'embed.html',
|
||||
'embed.css',
|
||||
'popup.js',
|
||||
'icons'
|
||||
'assets'
|
||||
];
|
||||
|
||||
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;
|
||||
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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
|
|