move code into src dir
|
@ -3,7 +3,7 @@
|
||||||
# top-most EditorConfig file
|
# top-most EditorConfig file
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*.{html,css,js,json}]
|
[*.{html,css,js,json,svg}]
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/web-ext-artifacts
|
/web-ext-artifacts
|
||||||
browser-polyfill.js
|
src/browser-polyfill.js
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<title>/usr/space</title>
|
|
||||||
<script type="application/javascript" src="../browser-polyfill.js"></script>
|
|
||||||
<script type="application/javascript" src="index.js"></script>
|
|
||||||
</head>
|
|
||||||
</html>
|
|
|
@ -1,23 +0,0 @@
|
||||||
<svg id="root" width="16" height="16" viewBox="-32 -32 64 64" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<title>/usr/space</title>
|
|
||||||
<desc>Logo /usr/space</desc>
|
|
||||||
<defs>
|
|
||||||
<style type="text/css">
|
|
||||||
#root {
|
|
||||||
stroke: #2AA1BF;
|
|
||||||
}
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
#root {
|
|
||||||
stroke: #FFF;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<marker id="circle" viewBox="-4 -4 8 8" markerWidth="8.5" markerHeight="8.5" markerUnits="userSpaceOnUse" refX="3" orient="auto-start-reverse">
|
|
||||||
<circle cx="0" cy="0" r="2" fill="none" stroke-width="4"/>
|
|
||||||
</marker>
|
|
||||||
</defs>
|
|
||||||
<g fill="none" stroke-width="4">
|
|
||||||
<path marker-start="url(#circle)" marker-end="url(#circle)" d="M 0,-21.69431 0,-1.299519 a 2.2499999,2.2499999 0 0 0 1.125624,1.948918 l 21.5,12.403846 A 2.25,2.25 0 0 0 26,11.104327 v -24.804808 a 2.2499999,2.2499999 0 0 0 -1.125624,-1.948918 l -23.75,-13.701923 a 2.25,2.25 0 0 0 -2.248752,0 l -23.749999,13.701923 A 2.2499999,2.2499999 0 0 0 -26,-13.700481 v 24.804808 a 2.25,2.25 0 0 0 3.374376,1.948918 L -6.154917,3.550914"/>
|
|
||||||
<path marker-start="url(#circle)" marker-end="url(#circle)" d="m 18.850376,19.124785 -17.726,10.226537 a 2.25,2.25 0 0 1 -2.248752,0 L -18.844457,19.128198"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.2 KiB |
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="10cm" height="10cm" viewBox="0 0 100 100">
|
|
||||||
<g>
|
|
||||||
<rect width="100%" height="100%" fill="#ffffff"/>
|
|
||||||
<path d="M10 19.5A66 66 0 0 1 90 19.5L76.7 37.0A44 44 0 0 0 23.3 37.0Z" fill="none" stroke="#111111"/>
|
|
||||||
<path d="M10 53.7A44 44 0 0 1 90 53.7L70.0 62.8A22 22 0 0 0 30.0 62.8Z" fill="none" stroke="#666666"/>
|
|
||||||
<circle cx="50" cy="72" r="22" fill="none" stroke="#bbbbbb"/>
|
|
||||||
<text x="50" y="24" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#111111" dx="6px">/usr/space</text>
|
|
||||||
<text x="50" y="47" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#666666">Kernel</text>
|
|
||||||
<text x="50" y="72" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#bbbbbb" font-weight="bold" dy="5.5px">HW</text>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 918 B |
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="10cm" height="10cm" viewBox="0 0 100 100">
|
|
||||||
<g>
|
|
||||||
<rect width="100%" height="100%" fill="#ffffff"/>
|
|
||||||
<path d="M10 19.5A66 66 0 0 1 90 19.5L76.7 37.0A44 44 0 0 0 23.3 37.0Z" fill="#111111" stroke="none"/>
|
|
||||||
<path d="M10 53.7A44 44 0 0 1 90 53.7L70.0 62.8A22 22 0 0 0 30.0 62.8Z" fill="#666666" stroke="none"/>
|
|
||||||
<circle cx="50" cy="72" r="22" fill="#bbbbbb" stroke="none"/>
|
|
||||||
<text x="50" y="24" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff" dx="6px">/usr/space</text>
|
|
||||||
<text x="50" y="47" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff">Kernel</text>
|
|
||||||
<text x="50" y="72" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff" font-weight="bold" dy="5.5px">HW</text>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 918 B |
|
@ -4,23 +4,23 @@
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
|
"description": "WebExtension for the Hacker-/Maker-Space /usr/space",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/favicon.svg",
|
"48": "src/icons/favicon.svg",
|
||||||
"96": "icons/favicon.svg"
|
"96": "src/icons/favicon.svg"
|
||||||
},
|
},
|
||||||
"background": {
|
"background": {
|
||||||
"page": "background/index.html"
|
"page": "src/background.html"
|
||||||
},
|
},
|
||||||
"browser_action": {
|
"browser_action": {
|
||||||
"browser_style": true,
|
"browser_style": true,
|
||||||
//"chrome_style": true,
|
//"chrome_style": true,
|
||||||
"default_title": "/usr/space",
|
"default_title": "/usr/space",
|
||||||
//"default_icon": "icons/favicon.svg",
|
//"default_icon": "src/icons/favicon.svg",
|
||||||
"default_icon": {
|
"default_icon": {
|
||||||
"16": "icons/favicon.svg",
|
"16": "src/icons/favicon.svg",
|
||||||
"32": "icons/favicon.svg"
|
"32": "src/icons/favicon.svg"
|
||||||
},
|
},
|
||||||
"default_area": "navbar",
|
"default_area": "navbar",
|
||||||
"default_popup": "popup/index.html"
|
"default_popup": "src/popup.html"
|
||||||
},
|
},
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"https://www.usrspace.at/*",
|
"https://www.usrspace.at/*",
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"web-ext-types": "^3.2.1"
|
"web-ext-types": "^3.2.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js browser-polyfill.js",
|
"copy-browser-polyfill": "cp node_modules/webextension-polyfill/dist/browser-polyfill.js src/browser-polyfill.js",
|
||||||
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json",
|
"copy-version": "sed -i 's/^\t\"version\": \".*\",$/\t\"version\": \"'$(rg '^\t\"version\": \"(.+)\",$' -r '$1' < package.json)'\",/' manifest.json",
|
||||||
"test": "echo \"Error: no test specified\" && exit 0",
|
"test": "echo \"Error: no test specified\" && exit 0",
|
||||||
"postinstall": "npm run copy-browser-polyfill",
|
"postinstall": "npm run copy-browser-polyfill",
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>/usr/space</title>
|
||||||
|
<script type="module" src="browser-polyfill.js"></script>
|
||||||
|
<script type="module" src="background.js"></script>
|
||||||
|
</head>
|
||||||
|
</html>
|
|
@ -1,4 +1,4 @@
|
||||||
import Config from "../config.js";
|
import Config from "./config.js";
|
||||||
|
|
||||||
function fetchJson(url) {
|
function fetchJson(url) {
|
||||||
return fetch(url).then((response) => (response.json()));
|
return fetch(url).then((response) => (response.json()));
|
|
@ -0,0 +1,23 @@
|
||||||
|
<svg id="root" width="16" height="16" viewBox="-32 -32 64 64" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title>/usr/space</title>
|
||||||
|
<desc>Logo /usr/space</desc>
|
||||||
|
<defs>
|
||||||
|
<style type="text/css">
|
||||||
|
#root {
|
||||||
|
stroke: #2AA1BF;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
#root {
|
||||||
|
stroke: #FFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<marker id="circle" viewBox="-4 -4 8 8" markerWidth="8.5" markerHeight="8.5" markerUnits="userSpaceOnUse" refX="3" orient="auto-start-reverse">
|
||||||
|
<circle cx="0" cy="0" r="2" fill="none" stroke-width="4"/>
|
||||||
|
</marker>
|
||||||
|
</defs>
|
||||||
|
<g fill="none" stroke-width="4">
|
||||||
|
<path marker-start="url(#circle)" marker-end="url(#circle)" d="M 0,-21.69431 0,-1.299519 a 2.2499999,2.2499999 0 0 0 1.125624,1.948918 l 21.5,12.403846 A 2.25,2.25 0 0 0 26,11.104327 v -24.804808 a 2.2499999,2.2499999 0 0 0 -1.125624,-1.948918 l -23.75,-13.701923 a 2.25,2.25 0 0 0 -2.248752,0 l -23.749999,13.701923 A 2.2499999,2.2499999 0 0 0 -26,-13.700481 v 24.804808 a 2.25,2.25 0 0 0 3.374376,1.948918 L -6.154917,3.550914"/>
|
||||||
|
<path marker-start="url(#circle)" marker-end="url(#circle)" d="m 18.850376,19.124785 -17.726,10.226537 a 2.25,2.25 0 0 1 -2.248752,0 L -18.844457,19.128198"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="10cm" height="10cm" viewBox="0 0 100 100">
|
||||||
|
<g>
|
||||||
|
<rect width="100%" height="100%" fill="#ffffff"/>
|
||||||
|
<path d="M10 19.5A66 66 0 0 1 90 19.5L76.7 37.0A44 44 0 0 0 23.3 37.0Z" fill="none" stroke="#111111"/>
|
||||||
|
<path d="M10 53.7A44 44 0 0 1 90 53.7L70.0 62.8A22 22 0 0 0 30.0 62.8Z" fill="none" stroke="#666666"/>
|
||||||
|
<circle cx="50" cy="72" r="22" fill="none" stroke="#bbbbbb"/>
|
||||||
|
<text x="50" y="24" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#111111" dx="6px">/usr/space</text>
|
||||||
|
<text x="50" y="47" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#666666">Kernel</text>
|
||||||
|
<text x="50" y="72" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#bbbbbb" font-weight="bold" dy="5.5px">HW</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
@ -0,0 +1,12 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="10cm" height="10cm" viewBox="0 0 100 100">
|
||||||
|
<g>
|
||||||
|
<rect width="100%" height="100%" fill="#ffffff"/>
|
||||||
|
<path d="M10 19.5A66 66 0 0 1 90 19.5L76.7 37.0A44 44 0 0 0 23.3 37.0Z" fill="#111111" stroke="none"/>
|
||||||
|
<path d="M10 53.7A44 44 0 0 1 90 53.7L70.0 62.8A22 22 0 0 0 30.0 62.8Z" fill="#666666" stroke="none"/>
|
||||||
|
<circle cx="50" cy="72" r="22" fill="#bbbbbb" stroke="none"/>
|
||||||
|
<text x="50" y="24" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff" dx="6px">/usr/space</text>
|
||||||
|
<text x="50" y="47" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff">Kernel</text>
|
||||||
|
<text x="50" y="72" font-family="Liberation Sans" font-size="14px" text-anchor="middle" fill="#ffffff" font-weight="bold" dy="5.5px">HW</text>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 902 B |
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>/usr/space</title>
|
<title>/usr/space</title>
|
||||||
<link rel="stylesheet" href="index.css" />
|
<link rel="stylesheet" href="popup.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<section>
|
<section>
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script type="application/javascript" src="../browser-polyfill.js"></script>
|
<script type="module" src="browser-polyfill.js"></script>
|
||||||
<script type="application/javascript" src="index.js"></script>
|
<script type="module" src="popup.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|