aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-02-13 21:28:47 -0500
committerGitHub <noreply@github.com>2021-02-13 21:28:47 -0500
commitdeed5027cd18bcdb9cb9d13cb7831be0ec5384e8 (patch)
treec4df1967a117bf05398b694290e2960b8ff4e970
parente9358997c03ee6ca2b5e9f26e8e416c8508c88e6 (diff)
Move mixed/lib/ to lib/ (#1382)
-rw-r--r--.eslintrc.json2
-rw-r--r--.stylelintrc.json2
-rw-r--r--dev/data/manifest-variants.json8
-rw-r--r--dev/util.js2
-rw-r--r--ext/background.html2
-rw-r--r--ext/lib/bootstrap/css/bootstrap-theme.css (renamed from ext/mixed/lib/bootstrap/css/bootstrap-theme.css)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap-theme.css.map (renamed from ext/mixed/lib/bootstrap/css/bootstrap-theme.css.map)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap-theme.min.css (renamed from ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap-theme.min.css.map (renamed from ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css.map)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap.css (renamed from ext/mixed/lib/bootstrap/css/bootstrap.css)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap.css.map (renamed from ext/mixed/lib/bootstrap/css/bootstrap.css.map)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap.min.css (renamed from ext/mixed/lib/bootstrap/css/bootstrap.min.css)0
-rw-r--r--ext/lib/bootstrap/css/bootstrap.min.css.map (renamed from ext/mixed/lib/bootstrap/css/bootstrap.min.css.map)0
-rw-r--r--ext/lib/bootstrap/fonts/glyphicons-halflings-regular.eot (renamed from ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.eot)bin20127 -> 20127 bytes
-rw-r--r--ext/lib/bootstrap/fonts/glyphicons-halflings-regular.svg (renamed from ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.svg)0
-rw-r--r--ext/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf (renamed from ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf)bin45404 -> 45404 bytes
-rw-r--r--ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff (renamed from ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff)bin23424 -> 23424 bytes
-rw-r--r--ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 (renamed from ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2)bin18028 -> 18028 bytes
-rw-r--r--ext/lib/bootstrap/js/bootstrap.js (renamed from ext/mixed/lib/bootstrap/js/bootstrap.js)0
-rw-r--r--ext/lib/bootstrap/js/bootstrap.min.js (renamed from ext/mixed/lib/bootstrap/js/bootstrap.min.js)0
-rw-r--r--ext/lib/bootstrap/js/npm.js (renamed from ext/mixed/lib/bootstrap/js/npm.js)0
-rw-r--r--ext/lib/handlebars.min.js (renamed from ext/mixed/lib/handlebars.min.js)0
-rw-r--r--ext/lib/jquery.min.js (renamed from ext/mixed/lib/jquery.min.js)0
-rw-r--r--ext/lib/jszip.min.js (renamed from ext/mixed/lib/jszip.min.js)0
-rw-r--r--ext/lib/parse5.js (renamed from ext/mixed/lib/parse5.js)0
-rw-r--r--ext/lib/wanakana.min.js (renamed from ext/mixed/lib/wanakana.min.js)0
-rw-r--r--ext/lib/wanakana.min.js.map (renamed from ext/mixed/lib/wanakana.min.js.map)0
-rw-r--r--ext/popup-preview.html2
-rw-r--r--ext/search.html2
-rw-r--r--ext/settings-old.html12
-rw-r--r--ext/settings.html4
-rw-r--r--ext/sw.js4
-rw-r--r--ext/template-renderer.html2
-rw-r--r--ext/welcome.html2
-rw-r--r--test/test-japanese.js2
-rw-r--r--test/test-sw.js4
36 files changed, 25 insertions, 25 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 4500e436..4c7b2393 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -12,7 +12,7 @@
},
"plugins": ["no-unsanitized"],
"ignorePatterns": [
- "/ext/mixed/lib/",
+ "/ext/lib/",
"/ext/bg/js/templates.js"
],
"rules": {
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 69fa3189..ba2572a2 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,7 +1,7 @@
{
"extends": "stylelint-config-recommended",
"ignoreFiles": [
- "ext/mixed/lib/**/*.css"
+ "ext/lib/**/*.css"
],
"rules": {
"font-family-name-quotes": "always-where-recommended",
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json
index 9d7c74d4..dd46dc22 100644
--- a/dev/data/manifest-variants.json
+++ b/dev/data/manifest-variants.json
@@ -123,7 +123,7 @@
"excludeFiles": [
"sw.js",
"bg/js/simple-dom-parser.js",
- "mixed/lib/parse5.js"
+ "lib/parse5.js"
]
},
{
@@ -148,7 +148,7 @@
"excludeFiles": [
"sw.js",
"bg/js/simple-dom-parser.js",
- "mixed/lib/parse5.js"
+ "lib/parse5.js"
]
},
{
@@ -220,7 +220,7 @@
"excludeFiles": [
"sw.js",
"bg/js/simple-dom-parser.js",
- "mixed/lib/parse5.js"
+ "lib/parse5.js"
]
},
{
@@ -256,7 +256,7 @@
"excludeFiles": [
"sw.js",
"bg/js/simple-dom-parser.js",
- "mixed/lib/parse5.js"
+ "lib/parse5.js"
]
}
]
diff --git a/dev/util.js b/dev/util.js
index a0c35a9e..85a478ac 100644
--- a/dev/util.js
+++ b/dev/util.js
@@ -25,7 +25,7 @@ let JSZip = null;
function getJSZip() {
if (JSZip === null) {
process.noDeprecation = true; // Suppress a warning about JSZip
- JSZip = require(path.join(__dirname, '../ext/mixed/lib/jszip.min.js'));
+ JSZip = require(path.join(__dirname, '../ext/lib/jszip.min.js'));
process.noDeprecation = false;
}
return JSZip;
diff --git a/ext/background.html b/ext/background.html
index 101bd09c..b1e82bd5 100644
--- a/ext/background.html
+++ b/ext/background.html
@@ -15,7 +15,7 @@
<body>
<textarea id="clipboard-paste-target"></textarea>
- <script src="/mixed/lib/wanakana.min.js"></script>
+ <script src="/lib/wanakana.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap-theme.css b/ext/lib/bootstrap/css/bootstrap-theme.css
index 31d88826..31d88826 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap-theme.css
+++ b/ext/lib/bootstrap/css/bootstrap-theme.css
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap-theme.css.map b/ext/lib/bootstrap/css/bootstrap-theme.css.map
index d876f60f..d876f60f 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap-theme.css.map
+++ b/ext/lib/bootstrap/css/bootstrap-theme.css.map
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css b/ext/lib/bootstrap/css/bootstrap-theme.min.css
index 5e394019..5e394019 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css
+++ b/ext/lib/bootstrap/css/bootstrap-theme.min.css
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css.map b/ext/lib/bootstrap/css/bootstrap-theme.min.css.map
index 94813e90..94813e90 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap-theme.min.css.map
+++ b/ext/lib/bootstrap/css/bootstrap-theme.min.css.map
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap.css b/ext/lib/bootstrap/css/bootstrap.css
index 6167622c..6167622c 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap.css
+++ b/ext/lib/bootstrap/css/bootstrap.css
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap.css.map b/ext/lib/bootstrap/css/bootstrap.css.map
index f010c82d..f010c82d 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap.css.map
+++ b/ext/lib/bootstrap/css/bootstrap.css.map
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap.min.css b/ext/lib/bootstrap/css/bootstrap.min.css
index ed3905e0..ed3905e0 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap.min.css
+++ b/ext/lib/bootstrap/css/bootstrap.min.css
diff --git a/ext/mixed/lib/bootstrap/css/bootstrap.min.css.map b/ext/lib/bootstrap/css/bootstrap.min.css.map
index 6c7fa40b..6c7fa40b 100644
--- a/ext/mixed/lib/bootstrap/css/bootstrap.min.css.map
+++ b/ext/lib/bootstrap/css/bootstrap.min.css.map
diff --git a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.eot b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.eot
index b93a4953..b93a4953 100644
--- a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.eot
+++ b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.eot
Binary files differ
diff --git a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.svg b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.svg
index 94fb5490..94fb5490 100644
--- a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.svg
+++ b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.svg
diff --git a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf
index 1413fc60..1413fc60 100644
--- a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf
+++ b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf
Binary files differ
diff --git a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff
index 9e612858..9e612858 100644
--- a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff
+++ b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff
Binary files differ
diff --git a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2
index 64539b54..64539b54 100644
--- a/ext/mixed/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2
+++ b/ext/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2
Binary files differ
diff --git a/ext/mixed/lib/bootstrap/js/bootstrap.js b/ext/lib/bootstrap/js/bootstrap.js
index 8a2e99a5..8a2e99a5 100644
--- a/ext/mixed/lib/bootstrap/js/bootstrap.js
+++ b/ext/lib/bootstrap/js/bootstrap.js
diff --git a/ext/mixed/lib/bootstrap/js/bootstrap.min.js b/ext/lib/bootstrap/js/bootstrap.min.js
index 9bcd2fcc..9bcd2fcc 100644
--- a/ext/mixed/lib/bootstrap/js/bootstrap.min.js
+++ b/ext/lib/bootstrap/js/bootstrap.min.js
diff --git a/ext/mixed/lib/bootstrap/js/npm.js b/ext/lib/bootstrap/js/npm.js
index bf6aa806..bf6aa806 100644
--- a/ext/mixed/lib/bootstrap/js/npm.js
+++ b/ext/lib/bootstrap/js/npm.js
diff --git a/ext/mixed/lib/handlebars.min.js b/ext/lib/handlebars.min.js
index c6540b9b..c6540b9b 100644
--- a/ext/mixed/lib/handlebars.min.js
+++ b/ext/lib/handlebars.min.js
diff --git a/ext/mixed/lib/jquery.min.js b/ext/lib/jquery.min.js
index 644d35e2..644d35e2 100644
--- a/ext/mixed/lib/jquery.min.js
+++ b/ext/lib/jquery.min.js
diff --git a/ext/mixed/lib/jszip.min.js b/ext/lib/jszip.min.js
index 218a4f7d..218a4f7d 100644
--- a/ext/mixed/lib/jszip.min.js
+++ b/ext/lib/jszip.min.js
diff --git a/ext/mixed/lib/parse5.js b/ext/lib/parse5.js
index 1519dedc..1519dedc 100644
--- a/ext/mixed/lib/parse5.js
+++ b/ext/lib/parse5.js
diff --git a/ext/mixed/lib/wanakana.min.js b/ext/lib/wanakana.min.js
index 07b0d976..07b0d976 100644
--- a/ext/mixed/lib/wanakana.min.js
+++ b/ext/lib/wanakana.min.js
diff --git a/ext/mixed/lib/wanakana.min.js.map b/ext/lib/wanakana.min.js.map
index 518174e1..518174e1 100644
--- a/ext/mixed/lib/wanakana.min.js.map
+++ b/ext/lib/wanakana.min.js.map
diff --git a/ext/popup-preview.html b/ext/popup-preview.html
index 5a8da859..567dd201 100644
--- a/ext/popup-preview.html
+++ b/ext/popup-preview.html
@@ -34,7 +34,7 @@
</div></div>
</div></div>
-<script src="/mixed/lib/wanakana.min.js"></script>
+<script src="/lib/wanakana.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/ext/search.html b/ext/search.html
index a949beff..e2c402bb 100644
--- a/ext/search.html
+++ b/ext/search.html
@@ -73,7 +73,7 @@
<div id="popup-menus"></div>
<!-- Scripts -->
-<script src="/mixed/lib/wanakana.min.js"></script>
+<script src="/lib/wanakana.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/ext/settings-old.html b/ext/settings-old.html
index aa20daf4..1fb4379f 100644
--- a/ext/settings-old.html
+++ b/ext/settings-old.html
@@ -11,8 +11,8 @@
<link rel="icon" type="image/png" href="/images/icon48.png" sizes="48x48">
<link rel="icon" type="image/png" href="/images/icon64.png" sizes="64x64">
<link rel="icon" type="image/png" href="/images/icon128.png" sizes="128x128">
- <link rel="stylesheet" type="text/css" href="/mixed/lib/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="/mixed/lib/bootstrap/css/bootstrap-theme.min.css">
+ <link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap.min.css">
+ <link rel="stylesheet" type="text/css" href="/lib/bootstrap/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="/css/settings.css">
</head>
<body>
@@ -1273,10 +1273,10 @@
</div>
</div>
- <script src="/mixed/lib/jquery.min.js"></script>
- <script src="/mixed/lib/bootstrap/js/bootstrap.min.js"></script>
- <script src="/mixed/lib/jszip.min.js"></script>
- <script src="/mixed/lib/wanakana.min.js"></script>
+ <script src="/lib/jquery.min.js"></script>
+ <script src="/lib/bootstrap/js/bootstrap.min.js"></script>
+ <script src="/lib/jszip.min.js"></script>
+ <script src="/lib/wanakana.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/ext/settings.html b/ext/settings.html
index 6e35e818..5773c6de 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -3186,8 +3186,8 @@
<!-- Scripts -->
-<script src="/mixed/lib/jszip.min.js"></script>
-<script src="/mixed/lib/wanakana.min.js"></script>
+<script src="/lib/jszip.min.js"></script>
+<script src="/lib/wanakana.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/ext/sw.js b/ext/sw.js
index d18d367a..6516cdbf 100644
--- a/ext/sw.js
+++ b/ext/sw.js
@@ -16,8 +16,8 @@
*/
self.importScripts(
- '/mixed/lib/parse5.js',
- '/mixed/lib/wanakana.min.js',
+ '/lib/parse5.js',
+ '/lib/wanakana.min.js',
'/mixed/js/core.js',
'/mixed/js/yomichan.js',
'/mixed/js/environment.js',
diff --git a/ext/template-renderer.html b/ext/template-renderer.html
index 68cba889..6f031d5d 100644
--- a/ext/template-renderer.html
+++ b/ext/template-renderer.html
@@ -13,7 +13,7 @@
<link rel="icon" type="image/png" href="/images/icon128.png" sizes="128x128">
</head>
<body>
- <script src="/mixed/lib/handlebars.min.js"></script>
+ <script src="/lib/handlebars.min.js"></script>
<script src="/mixed/js/dictionary-data-util.js"></script>
<script src="/mixed/js/japanese.js"></script>
<script src="/bg/js/anki-note-data.js"></script>
diff --git a/ext/welcome.html b/ext/welcome.html
index d45bc914..a4138e60 100644
--- a/ext/welcome.html
+++ b/ext/welcome.html
@@ -312,7 +312,7 @@
<!-- Scripts -->
-<script src="/mixed/lib/jszip.min.js"></script>
+<script src="/lib/jszip.min.js"></script>
<script src="/mixed/js/core.js"></script>
<script src="/mixed/js/yomichan.js"></script>
diff --git a/test/test-japanese.js b/test/test-japanese.js
index e784c142..e83b0c1b 100644
--- a/test/test-japanese.js
+++ b/test/test-japanese.js
@@ -21,7 +21,7 @@ const {VM} = require('../dev/vm');
const vm = new VM();
vm.execute([
- 'mixed/lib/wanakana.min.js',
+ 'lib/wanakana.min.js',
'mixed/js/japanese.js',
'bg/js/text-source-map.js'
]);
diff --git a/test/test-sw.js b/test/test-sw.js
index 5da80dd2..803bb0c2 100644
--- a/test/test-sw.js
+++ b/test/test-sw.js
@@ -37,7 +37,7 @@ function getAllHtmlScriptPaths(fileName) {
function convertBackgroundScriptsToServiceWorkerScripts(scripts) {
// Use parse5-based SimpleDOMParser
- scripts.splice(0, 0, '/mixed/lib/parse5.js');
+ scripts.splice(0, 0, '/lib/parse5.js');
const index = scripts.indexOf('/bg/js/native-simple-dom-parser.js');
assert.ok(index >= 0);
scripts[index] = '/bg/js/simple-dom-parser.js';
@@ -65,7 +65,7 @@ function main() {
vm.assert.deepStrictEqual(scripts, importedScripts);
// Verify that eslint config lists files correctly
- const expectedSwRulesFiles = scripts.filter((src) => !src.startsWith('/mixed/lib/')).map((src) => `${extDirName}${src}`);
+ const expectedSwRulesFiles = scripts.filter((src) => !src.startsWith('/lib/')).map((src) => `${extDirName}${src}`);
const eslintConfig = JSON.parse(fs.readFileSync(path.join(rootDir, '.eslintrc.json'), {encoding: 'utf8'}));
const swRules = eslintConfig.overrides.find((item) => (
typeof item.env === 'object' &&