Move fg/js (#1384)
* Move fg/js/frame-ancestry-handler.js to js/comm/frame-ancestry-handler.js * Move fg/js/frame-offset-forwarder.js to js/comm/frame-offset-forwarder.js * Move fg/js/dom-text-scanner.js to js/dom/dom-text-scanner.js * Move fg/js/text-source-element.js to js/dom/text-source-element.js * Move fg/js/text-source-range.js to js/dom/text-source-range.js * Move fg/js/float-main.js to js/display/popup-main.js * Move fg/js/content-script-main.js to js/app/content-script-main.js * Move fg/js/frontend.js to js/app/frontend.js * Move fg/js/popup-factory.js to js/app/popup-factory.js * Move fg/js/popup-proxy.js to js/app/popup-proxy.js * Move fg/js/popup-window.js to js/app/popup-window.js * Move fg/js/popup.js to js/app/popup.js
This commit is contained in:
parent
6a271e067f
commit
7a74c3c31e
@ -48,17 +48,17 @@
|
||||
"js/language/text-scanner.js",
|
||||
"js/dom/document-util.js",
|
||||
"js/input/hotkey-handler.js",
|
||||
"fg/js/dom-text-scanner.js",
|
||||
"fg/js/popup.js",
|
||||
"fg/js/text-source-range.js",
|
||||
"fg/js/text-source-element.js",
|
||||
"fg/js/popup-factory.js",
|
||||
"fg/js/frame-ancestry-handler.js",
|
||||
"fg/js/frame-offset-forwarder.js",
|
||||
"fg/js/popup-proxy.js",
|
||||
"fg/js/popup-window.js",
|
||||
"fg/js/frontend.js",
|
||||
"fg/js/content-script-main.js"
|
||||
"js/dom/dom-text-scanner.js",
|
||||
"js/app/popup.js",
|
||||
"js/dom/text-source-range.js",
|
||||
"js/dom/text-source-element.js",
|
||||
"js/app/popup-factory.js",
|
||||
"js/comm/frame-ancestry-handler.js",
|
||||
"js/comm/frame-offset-forwarder.js",
|
||||
"js/app/popup-proxy.js",
|
||||
"js/app/popup-window.js",
|
||||
"js/app/frontend.js",
|
||||
"js/app/content-script-main.js"
|
||||
],
|
||||
"match_about_blank": true,
|
||||
"all_frames": true
|
||||
|
@ -1573,13 +1573,13 @@ class Display extends EventDispatcher {
|
||||
await dynamicLoader.loadScripts([
|
||||
'/js/language/text-scanner.js',
|
||||
'/js/comm/frame-client.js',
|
||||
'/fg/js/popup.js',
|
||||
'/fg/js/popup-proxy.js',
|
||||
'/fg/js/popup-window.js',
|
||||
'/fg/js/popup-factory.js',
|
||||
'/fg/js/frame-ancestry-handler.js',
|
||||
'/fg/js/frame-offset-forwarder.js',
|
||||
'/fg/js/frontend.js'
|
||||
'/js/app/popup.js',
|
||||
'/js/app/popup-proxy.js',
|
||||
'/js/app/popup-window.js',
|
||||
'/js/app/popup-factory.js',
|
||||
'/js/comm/frame-ancestry-handler.js',
|
||||
'/js/comm/frame-offset-forwarder.js',
|
||||
'/js/app/frontend.js'
|
||||
]);
|
||||
|
||||
const popupFactory = new PopupFactory(this._frameId);
|
||||
|
@ -47,17 +47,17 @@
|
||||
"js/language/text-scanner.js",
|
||||
"js/dom/document-util.js",
|
||||
"js/input/hotkey-handler.js",
|
||||
"fg/js/dom-text-scanner.js",
|
||||
"fg/js/popup.js",
|
||||
"fg/js/text-source-range.js",
|
||||
"fg/js/text-source-element.js",
|
||||
"fg/js/popup-factory.js",
|
||||
"fg/js/frame-ancestry-handler.js",
|
||||
"fg/js/frame-offset-forwarder.js",
|
||||
"fg/js/popup-proxy.js",
|
||||
"fg/js/popup-window.js",
|
||||
"fg/js/frontend.js",
|
||||
"fg/js/content-script-main.js"
|
||||
"js/dom/dom-text-scanner.js",
|
||||
"js/app/popup.js",
|
||||
"js/dom/text-source-range.js",
|
||||
"js/dom/text-source-element.js",
|
||||
"js/app/popup-factory.js",
|
||||
"js/comm/frame-ancestry-handler.js",
|
||||
"js/comm/frame-offset-forwarder.js",
|
||||
"js/app/popup-proxy.js",
|
||||
"js/app/popup-window.js",
|
||||
"js/app/frontend.js",
|
||||
"js/app/content-script-main.js"
|
||||
],
|
||||
"match_about_blank": true,
|
||||
"all_frames": true
|
||||
|
@ -46,14 +46,14 @@
|
||||
|
||||
<script src="/js/dom/document-util.js"></script>
|
||||
<script src="/js/input/hotkey-handler.js"></script>
|
||||
<script src="/fg/js/dom-text-scanner.js"></script>
|
||||
<script src="/fg/js/popup.js"></script>
|
||||
<script src="/fg/js/text-source-range.js"></script>
|
||||
<script src="/fg/js/text-source-element.js"></script>
|
||||
<script src="/fg/js/popup-factory.js"></script>
|
||||
<script src="/fg/js/frontend.js"></script>
|
||||
<script src="/fg/js/frame-ancestry-handler.js"></script>
|
||||
<script src="/fg/js/frame-offset-forwarder.js"></script>
|
||||
<script src="/js/dom/dom-text-scanner.js"></script>
|
||||
<script src="/js/app/popup.js"></script>
|
||||
<script src="/js/dom/text-source-range.js"></script>
|
||||
<script src="/js/dom/text-source-element.js"></script>
|
||||
<script src="/js/app/popup-factory.js"></script>
|
||||
<script src="/js/app/frontend.js"></script>
|
||||
<script src="/js/comm/frame-ancestry-handler.js"></script>
|
||||
<script src="/js/comm/frame-offset-forwarder.js"></script>
|
||||
<script src="/bg/js/settings/popup-preview-frame.js"></script>
|
||||
|
||||
<script src="/bg/js/settings/popup-preview-frame-main.js"></script>
|
||||
|
@ -96,9 +96,9 @@
|
||||
<script src="/js/language/japanese-util.js"></script>
|
||||
|
||||
<script src="/js/dom/document-util.js"></script>
|
||||
<script src="/fg/js/dom-text-scanner.js"></script>
|
||||
<script src="/fg/js/text-source-range.js"></script>
|
||||
<script src="/fg/js/text-source-element.js"></script>
|
||||
<script src="/js/dom/dom-text-scanner.js"></script>
|
||||
<script src="/js/dom/text-source-range.js"></script>
|
||||
<script src="/js/dom/text-source-element.js"></script>
|
||||
<script src="/js/media/audio-system.js"></script>
|
||||
<script src="/js/language/dictionary-data-util.js"></script>
|
||||
<script src="/js/display/display.js"></script>
|
||||
@ -126,7 +126,7 @@
|
||||
|
||||
<script src="/bg/js/query-parser.js"></script>
|
||||
|
||||
<script src="/fg/js/float-main.js"></script>
|
||||
<script src="/js/display/popup-main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -83,9 +83,9 @@
|
||||
|
||||
<script src="/js/dom/document-focus-controller.js"></script>
|
||||
<script src="/js/dom/document-util.js"></script>
|
||||
<script src="/fg/js/dom-text-scanner.js"></script>
|
||||
<script src="/fg/js/text-source-range.js"></script>
|
||||
<script src="/fg/js/text-source-element.js"></script>
|
||||
<script src="/js/dom/dom-text-scanner.js"></script>
|
||||
<script src="/js/dom/text-source-range.js"></script>
|
||||
<script src="/js/dom/text-source-element.js"></script>
|
||||
<script src="/js/media/audio-system.js"></script>
|
||||
<script src="/js/language/dictionary-data-util.js"></script>
|
||||
<script src="/js/display/display.js"></script>
|
||||
|
@ -94,9 +94,9 @@ async function testDocument1() {
|
||||
|
||||
const vm = new VM({document, window, Range, Node});
|
||||
vm.execute([
|
||||
'fg/js/dom-text-scanner.js',
|
||||
'fg/js/text-source-range.js',
|
||||
'fg/js/text-source-element.js',
|
||||
'js/dom/dom-text-scanner.js',
|
||||
'js/dom/text-source-range.js',
|
||||
'js/dom/text-source-element.js',
|
||||
'js/dom/document-util.js'
|
||||
]);
|
||||
const [DOMTextScanner, TextSourceRange, TextSourceElement, DocumentUtil] = vm.get([
|
||||
|
@ -166,7 +166,7 @@ async function testDocument1() {
|
||||
window.getComputedStyle = createAbsoluteGetComputedStyle(window);
|
||||
|
||||
const vm = new VM({document, window, Range, Node});
|
||||
vm.execute('fg/js/dom-text-scanner.js');
|
||||
vm.execute('js/dom/dom-text-scanner.js');
|
||||
const DOMTextScanner = vm.get('DOMTextScanner');
|
||||
|
||||
await testDomTextScanner(dom, {DOMTextScanner});
|
||||
|
Loading…
Reference in New Issue
Block a user