Make extention acceptable by Edge Add-Ons website

This commit is contained in:
Christian Basler
2024-09-02 16:18:40 +02:00
parent d22252a9af
commit ce4907b8c4
27 changed files with 2955 additions and 100 deletions

BIN
public/icons/calendar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z" /></svg>

After

Width:  |  Height:  |  Size: 717 B

BIN
public/icons/email.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

1
public/icons/email.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z" /></svg>

After

Width:  |  Height:  |  Size: 429 B

1
public/icons/icon.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g data-name="STYLE = COLOR"><path d="M28.596 2H11.404A1.404 1.404 0 0010 3.404V5l9.69 3L30 5V3.404A1.404 1.404 0 0028.596 2z" fill="#0364b8"/><path d="M31.65 17.405A11.341 11.341 0 0032 16a.666.666 0 00-.333-.576l-.013-.008-.004-.002-10.838-6.175a1.499 1.499 0 00-.145-.082 1.5 1.5 0 00-1.334 0 1.49 1.49 0 00-.145.082L8.35 15.415l-.004.002-.012.007A.666.666 0 008 16a11.344 11.344 0 00.35 1.405l11.492 8.405z" fill="#0a2767"/><path fill="#28a8ea" d="M24 5h-7l-2.021 3L17 11l7 6h6v-6l-6-6z"/><path fill="#0078d4" d="M10 5h7v6h-7z"/><path fill="#50d9ff" d="M24 5h6v6h-6z"/><path fill="#0364b8" d="M24 17l-7-6h-7v6l7 6 10.832 1.768L24 17z"/><path fill="none" d="M10.031 5H30"/><path fill="#0078d4" d="M17 11h7v6h-7z"/><path fill="#064a8c" d="M10 17h7v6h-7z"/><path fill="#0078d4" d="M24 17h6v6h-6z"/><path d="M20.19 25.218l-11.793-8.6.495-.87s10.745 6.12 10.909 6.212a.528.528 0 00.42-.012l10.933-6.23.496.869z" fill="#0a2767" opacity=".5"/><path d="M31.667 16.577l-.014.008-.003.002-10.838 6.174a1.497 1.497 0 01-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0032 28.5V16a.666.666 0 01-.333.577z" fill="#1490df"/><path d="M32 28.5v-.738l-9.983-5.688-1.205.687a1.497 1.497 0 01-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0032 28.5z" opacity=".05"/><path d="M31.95 28.883L21.007 22.65l-.195.11a1.497 1.497 0 01-1.46.092l3.774 5.061 8.254 1.797v.004a1.501 1.501 0 00.57-.83z" opacity=".1"/><path d="M8.35 16.59v-.01h-.01l-.03-.02A.65.65 0 018 16v12.5A1.498 1.498 0 009.5 30h21a1.503 1.503 0 00.37-.05.637.637 0 00.18-.06.142.142 0 00.06-.02 1.048 1.048 0 00.23-.13c.02-.01.03-.01.04-.03z" fill="#28a8ea"/><path d="M18 24.667V8.333A1.337 1.337 0 0016.667 7H10.03v7.456l-1.68.958-.005.002-.012.007A.666.666 0 008 16v.005V16v10h8.667A1.337 1.337 0 0018 24.667z" opacity=".1"/><path d="M17 25.667V9.333A1.337 1.337 0 0015.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 008 16v.005V16v11h7.667A1.337 1.337 0 0017 25.667z" opacity=".2"/><path d="M17 23.667V9.333A1.337 1.337 0 0015.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 008 16v.005V16v9h7.667A1.337 1.337 0 0017 23.667z" opacity=".2"/><path d="M16 23.667V9.333A1.337 1.337 0 0014.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 008 16v.005V16v9h6.667A1.337 1.337 0 0016 23.667z" opacity=".2"/><path data-name="Back Plate" d="M1.333 8h13.334A1.333 1.333 0 0116 9.333v13.334A1.333 1.333 0 0114.667 24H1.333A1.333 1.333 0 010 22.667V9.333A1.333 1.333 0 011.333 8z" fill="#0078d4"/><path d="M3.867 13.468a4.181 4.181 0 011.642-1.814A4.965 4.965 0 018.119 11a4.617 4.617 0 012.413.62 4.14 4.14 0 011.598 1.733 5.597 5.597 0 01.56 2.55 5.901 5.901 0 01-.577 2.666 4.239 4.239 0 01-1.645 1.794A4.8 4.8 0 017.963 21a4.729 4.729 0 01-2.468-.627 4.204 4.204 0 01-1.618-1.736 5.459 5.459 0 01-.567-2.519 6.055 6.055 0 01.557-2.65zm1.75 4.258a2.716 2.716 0 00.923 1.194 2.411 2.411 0 001.443.435 2.533 2.533 0 001.541-.449 2.603 2.603 0 00.897-1.197 4.626 4.626 0 00.286-1.665 5.063 5.063 0 00-.27-1.686 2.669 2.669 0 00-.866-1.24 2.387 2.387 0 00-1.527-.473 2.493 2.493 0 00-1.477.439 2.741 2.741 0 00-.944 1.203 4.776 4.776 0 00-.007 3.44z" fill="#fff"/><path fill="none" d="M0 0h32v32H0z"/></g></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
public/icons/icon_128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
public/icons/icon_32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
public/icons/icon_48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

37
public/manifest.json Normal file
View File

@ -0,0 +1,37 @@
{
"manifest_version": 3,
"name": "A Toasty OWA",
"version": "1.0.2",
"description": "Show desktop notifications for new mail and calendar alerts",
"icons": {
"32": "icons/icon_32.png",
"48": "icons/icon_48.png",
"128": "icons/icon_128.png"
},
"permissions": [
"activeTab",
"declarativeContent",
"storage",
"notifications",
"scripting"
],
"host_permissions": [
"https://*/owa/*"
],
"background": {
"service_worker": "service_worker.js"
},
"action": {
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [
"https://*/owa/*"
],
"js": [
"contentScript.js"
]
}
]
}

54
public/options.html Normal file
View File

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet">
<style>
body {
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
margin: 30px;
}
h1 {
font-weight: 300;
font-size: 2.2rem;
font-family: 'Indie Flower', cursive;
}
h2 {
font-size: 1.2rem;
}
div, select {
font-size: 0.8rem;
}
div + div {
padding-top: 10px;
}
</style>
<script src='jquery.3.3.1.slim.js'></script>
</head>
<body>
<h1>A Toast to OWA</h1>
<h2>Settings</h2>
<div>
<label>Email Notification Delay: </label>
<select id="emailDelay">
<option value=-1>Forever </option>
<option value=3>3 Seconds</option>
<option value=4>4 Seconds</option>
<option value=5>5 Seconds</option>
<option value=10>10 Seconds</option>
<option value=20>20 Seconds</option>
</select>
</div>
<div>
<label>Calendar Notification Delay: </label>
<select id="calendarDelay">
<option value=-1>Forever </option>
<option value=3>3 Seconds</option>
<option value=4>4 Seconds</option>
<option value=5>5 Seconds</option>
<option value=10>10 Seconds</option>
<option value=20>20 Seconds</option>
</select>
</div>
</body>
<script src="options.js"></script>
</html>

72
public/popup.html Normal file
View File

@ -0,0 +1,72 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
margin: 10px;
width: 220px;
}
h1 {
font-weight: 300;
font-size: 1.7rem;
margin-bottom: 12px;
margin-top: 0px;
text-align: center;
}
h2 {
font-size: 1.1rem;
}
div,
select {
font-size: 0.7rem;
}
div+div {
padding-top: 10px;
}
label {
width: 110px;
display: inline-block;
}
</style>
<script src='jquery.3.3.1.slim.js'></script>
</head>
<body>
<h1>A Toast to OWA</h1>
<div>
<label>Email Delay: </label>
<select id="emailDelay">
<option value=-1>Forever </option>
<option value=3>3 Seconds</option>
<option value=4>4 Seconds</option>
<option value=5>5 Seconds</option>
<option value=10>10 Seconds</option>
<option value=20>20 Seconds</option>
</select>
</div>
<div>
<label>Calendar Delay: </label>
<select id="calendarDelay">
<option value=-1>Forever </option>
<option value=3>3 Seconds</option>
<option value=4>4 Seconds</option>
<option value=5>5 Seconds</option>
<option value=10>10 Seconds</option>
<option value=20>20 Seconds</option>
</select>
</div>
<div>
<label>Show Quick Links:</label>
<input id="quickLinks" type="checkbox">
</div>
</body>
<script src='popup.js'></script>
</html>