Skip to content

Commit

Permalink
Merge pull request #152 from ator-dev/highlight-api-engine
Browse files Browse the repository at this point in the history
HIGHLIGHT engine and major restructure
  • Loading branch information
ator-dev authored Jun 14, 2024
2 parents 68f6537 + f67bda9 commit 395ed93
Show file tree
Hide file tree
Showing 81 changed files with 7,446 additions and 5,743 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.js
*.mjs
41 changes: 41 additions & 0 deletions lib/email.min.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* An EmailJS library function which sends an email using the EmailJS service.
* @param service The name of a service category for the email.
* @param template The name of a template under the service for the email.
* @param details Custom template field entries.
* @param key The API key to use.
*/
declare const sendEmail: (
service: string,
template: string,
details: {
addon_version?: string
url?: string
phrases?: string
user_message?: string
user_email?: string
item_0_question?: string
item_1_question?: string
item_2_question?: string
item_3_question?: string
item_4_question?: string
item_5_question?: string
item_6_question?: string
item_7_question?: string
item_8_question?: string
item_9_question?: string
item_0_response?: string
item_1_response?: string
item_2_response?: string
item_3_response?: string
item_4_response?: string
item_5_response?: string
item_6_response?: string
item_7_response?: string
item_8_response?: string
item_9_response?: string
},
key: string,
) => Promise<unknown>; // TODO check the actual return value in the EmailJS docs

export { sendEmail };
2 changes: 1 addition & 1 deletion lib/email.min.js

Large diffs are not rendered by default.

25 changes: 7 additions & 18 deletions manifest/chromium.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mark My Search",
"description": "Highlight searched keywords. Find matches instantly.",
"version": "1.14.2",
"version": "2.0.0",

"icons": {
"16": "/icons/dist/mms-16.png",
Expand All @@ -24,18 +24,14 @@
],

"background": {
"service_worker": "/dist/background.js"
"type": "module",
"service_worker": "/dist/background.mjs"
},

"content_scripts": [
{
"matches": [ "*://*/*" ],
"js": [
"/dist/include/utility.js",
"/dist/include/pattern-stem.js",
"/dist/include/pattern-diacritic.js",
"/dist/content.js"
],
"js": [ "/dist/content-entry.js" ],
"run_at": "document_start"
}
],
Expand All @@ -57,17 +53,10 @@
"web_accessible_resources": [
{
"resources": [
"/icons/*.svg",
"/dist/paint.js",
"/icons/mms.svg",
"/icons/arrow.svg",
"/icons/close.svg",
"/icons/search.svg",
"/icons/show.svg",
"/icons/refresh.svg",
"/icons/create.svg",
"/icons/delete.svg",
"/icons/edit.svg",
"/icons/reveal.svg"
"/dist/content.mjs",
"/dist/modules/*.mjs"
],
"matches": [ "*://*/*" ]
}
Expand Down
32 changes: 7 additions & 25 deletions manifest/firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Mark My Search",
"description": "Highlight searched keywords. Find matches instantly.",
"version": "1.14.2",
"version": "2.0.0",

"browser_specific_settings": { "gecko": { "id": "mark-my-search@searchmarkers.github.io" } },

Expand All @@ -28,25 +28,14 @@
],

"background": {
"scripts": [
"/dist/include/utility.js",
"/dist/include/pattern-stem.js",
"/dist/include/pattern-diacritic.js",
"/dist/include/util-privileged.js",
"/dist/include/storage.js",
"/dist/background.js"
]
"type": "module",
"scripts": [ "/dist/background.mjs" ]
},

"content_scripts": [
{
"matches": [ "*://*/*" ],
"js": [
"/dist/include/utility.js",
"/dist/include/pattern-stem.js",
"/dist/include/pattern-diacritic.js",
"/dist/content.js"
],
"js": [ "/dist/content-entry.js" ],
"run_at": "document_start"
}
],
Expand All @@ -65,17 +54,10 @@
"web_accessible_resources": [
{
"resources": [
"/icons/*.svg",
"/dist/paint.js",
"/icons/mms.svg",
"/icons/arrow.svg",
"/icons/close.svg",
"/icons/search.svg",
"/icons/show.svg",
"/icons/refresh.svg",
"/icons/create.svg",
"/icons/delete.svg",
"/icons/edit.svg",
"/icons/reveal.svg"
"/dist/content.mjs",
"/dist/modules/*.mjs"
],
"matches": [ "*://*/*" ]
}
Expand Down
10 changes: 6 additions & 4 deletions pages/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: hsl(300 100% 6%);
}
</style>
</head>
<body>
<script src="/dist/include/utility.js"></script>
<script src="/dist/include/util-privileged.js"></script>
<script src="/dist/include/storage.js"></script>
<script src="/dist/pages/options.js"></script>
<script src="/dist/pages/options.mjs" type="module"></script>
</body>
</html>
14 changes: 6 additions & 8 deletions pages/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: hsl(300 100% 6%);
}
</style>
</head>
<body>
<script src="/dist/include/utility.js"></script>
<script src="/dist/include/pattern-stem.js"></script>
<script src="/dist/include/pattern-diacritic.js"></script>
<script src="/dist/include/util-privileged.js"></script>
<script src="/dist/include/storage.js"></script>
<script src="/lib/email.min.js"></script>
<script src="/dist/include/page-build.js"></script>
<script src="/dist/pages/popup.js"></script>
<script src="/dist/pages/popup.mjs" type="module"></script>
</body>
</html>
14 changes: 6 additions & 8 deletions pages/sendoff.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: hsl(300 100% 6%);
}
</style>
</head>
<body>
<script src="/dist/include/utility.js"></script>
<script src="/dist/include/pattern-stem.js"></script>
<script src="/dist/include/pattern-diacritic.js"></script>
<script src="/dist/include/util-privileged.js"></script>
<script src="/dist/include/storage.js"></script>
<script src="/lib/email.min.js"></script>
<script src="/dist/include/page-build.js"></script>
<script src="/dist/pages/sendoff.js"></script>
<script src="/dist/pages/sendoff.mjs" type="module"></script>
</body>
</html>
16 changes: 7 additions & 9 deletions pages/startpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
<html>
<head>
<meta charset="utf-8">
<style>
body {
background: hsl(300 100% 6%);
}
</style>
</head>
<body>
<script src="/dist/include/utility.js"></script>
<script src="/dist/include/pattern-stem.js"></script>
<script src="/dist/include/pattern-diacritic.js"></script>
<script src="/dist/include/util-privileged.js"></script>
<script src="/dist/include/storage.js"></script>
<script src="/lib/email.min.js"></script>
<script src="/dist/include/page-build.js"></script>
<script src="/dist/pages/startpage.js"></script>
<script src="/dist/content.js"></script>
<script src="/dist/pages/startpage.mjs" type="module"></script>
<!--<script src="/dist/content.mjs" type="module"></script>-->
</body>
</html>
Loading

0 comments on commit 395ed93

Please sign in to comment.