diff --git a/.eslintrc.json b/.eslintrc.json
index b345234c..fce741ae 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -85,7 +85,7 @@
{
"files": [
"ext/js/core.js",
- "ext/bg/js/template-renderer.js",
+ "ext/js/templates/template-renderer.js",
"ext/js/language/dictionary-data-util.js"
],
"env": {
@@ -96,8 +96,8 @@
"files": ["ext/**/*.js"],
"excludedFiles": [
"ext/js/core.js",
- "ext/bg/js/template-renderer.js",
- "ext/bg/js/anki-note-data.js",
+ "ext/js/templates/template-renderer.js",
+ "ext/js/data/anki-note-data.js",
"ext/js/language/dictionary-data-util.js"
],
"globals": {
@@ -165,26 +165,26 @@
"ext/js/general/cache-map.js",
"ext/js/language/dictionary-data-util.js",
"ext/js/general/object-property-accessor.js",
- "ext/bg/js/anki.js",
- "ext/bg/js/audio-downloader.js",
- "ext/bg/js/clipboard-monitor.js",
- "ext/bg/js/clipboard-reader.js",
- "ext/bg/js/database.js",
- "ext/bg/js/deinflector.js",
- "ext/bg/js/dictionary-database.js",
- "ext/bg/js/json-schema.js",
- "ext/bg/js/mecab.js",
- "ext/bg/js/media-utility.js",
- "ext/bg/js/options.js",
- "ext/bg/js/permissions-util.js",
- "ext/bg/js/profile-conditions.js",
- "ext/bg/js/request-builder.js",
- "ext/bg/js/simple-dom-parser.js",
- "ext/bg/js/template-patcher.js",
- "ext/bg/js/text-source-map.js",
- "ext/bg/js/translator.js",
- "ext/bg/js/backend.js",
- "ext/bg/js/background-main.js"
+ "ext/js/comm/anki.js",
+ "ext/js/media/audio-downloader.js",
+ "ext/js/comm/clipboard-monitor.js",
+ "ext/js/comm/clipboard-reader.js",
+ "ext/js/data/database.js",
+ "ext/js/language/deinflector.js",
+ "ext/js/language/dictionary-database.js",
+ "ext/js/data/json-schema.js",
+ "ext/js/comm/mecab.js",
+ "ext/js/media/media-utility.js",
+ "ext/js/data/options-util.js",
+ "ext/js/data/permissions-util.js",
+ "ext/js/background/profile-conditions.js",
+ "ext/js/background/request-builder.js",
+ "ext/js/dom/simple-dom-parser.js",
+ "ext/js/templates/template-patcher.js",
+ "ext/js/general/text-source-map.js",
+ "ext/js/language/translator.js",
+ "ext/js/background/backend.js",
+ "ext/js/background/background-main.js"
],
"env": {
"browser": false,
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
index 72e07086..178f1395 100644
--- a/dev/data/manifest-variants.json
+++ b/dev/data/manifest-variants.json
@@ -122,7 +122,7 @@
"fileName": "yomichan-chrome.zip",
"excludeFiles": [
"sw.js",
- "bg/js/simple-dom-parser.js",
+ "js/dom/simple-dom-parser.js",
"lib/parse5.js"
]
},
@@ -147,7 +147,7 @@
],
"excludeFiles": [
"sw.js",
- "bg/js/simple-dom-parser.js",
+ "js/dom/simple-dom-parser.js",
"lib/parse5.js"
]
},
@@ -175,7 +175,7 @@
],
"excludeFiles": [
"background.html",
- "bg/js/native-simple-dom-parser.js"
+ "js/dom/native-simple-dom-parser.js"
]
},
{
@@ -219,7 +219,7 @@
],
"excludeFiles": [
"sw.js",
- "bg/js/simple-dom-parser.js",
+ "js/dom/simple-dom-parser.js",
"lib/parse5.js"
]
},
@@ -255,7 +255,7 @@
],
"excludeFiles": [
"sw.js",
- "bg/js/simple-dom-parser.js",
+ "js/dom/simple-dom-parser.js",
"lib/parse5.js"
]
}
diff --git a/dev/dictionary-validate.js b/dev/dictionary-validate.js
index 17d6e3de..fbb22cfc 100644
--- a/dev/dictionary-validate.js
+++ b/dev/dictionary-validate.js
@@ -24,7 +24,7 @@ const vm = new VM();
vm.execute([
'js/core.js',
'js/general/cache-map.js',
- 'bg/js/json-schema.js'
+ 'js/data/json-schema.js'
]);
const JsonSchemaValidator = vm.get('JsonSchemaValidator');
diff --git a/dev/schema-validate.js b/dev/schema-validate.js
index 0ede032b..1cb69618 100644
--- a/dev/schema-validate.js
+++ b/dev/schema-validate.js
@@ -22,7 +22,7 @@ const vm = new VM();
vm.execute([
'js/core.js',
'js/general/cache-map.js',
- 'bg/js/json-schema.js'
+ 'js/data/json-schema.js'
]);
const JsonSchemaValidator = vm.get('JsonSchemaValidator');
diff --git a/docs/templates.md b/docs/templates.md
index 7425bc4a..8e88a7dc 100644
--- a/docs/templates.md
+++ b/docs/templates.md
@@ -3,7 +3,7 @@
## Helpers
Yomichan supports several custom Handlebars helpers for rendering templates.
-The source code for these templates can be found [here](../ext/bg/js/template-renderer.js).
+The source code for these templates can be found [here](../ext/js/templates/template-renderer.js).
### `dumpObject`
diff --git a/ext/action-popup.html b/ext/action-popup.html
index e6dbdc44..79a3df88 100644
--- a/ext/action-popup.html
+++ b/ext/action-popup.html
@@ -89,9 +89,9 @@
-
+
-
+