diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-01-19 23:52:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-20 04:52:48 +0000 |
commit | 39265a43d969e1201cb5267789967b57835059b1 (patch) | |
tree | e6ff82234037b16782b85d77901b29bbe12137fd /ext/js/comm | |
parent | ffddc74f3d05061fc1e84d149ce678d116cedc4c (diff) |
Separate core classes into separate files (#545)
Diffstat (limited to 'ext/js/comm')
-rw-r--r-- | ext/js/comm/clipboard-monitor.js | 2 | ||||
-rw-r--r-- | ext/js/comm/cross-frame-api.js | 4 | ||||
-rw-r--r-- | ext/js/comm/frame-ancestry-handler.js | 2 | ||||
-rw-r--r-- | ext/js/comm/frame-client.js | 2 | ||||
-rw-r--r-- | ext/js/comm/frame-endpoint.js | 3 | ||||
-rw-r--r-- | ext/js/comm/mecab.js | 2 |
6 files changed, 9 insertions, 6 deletions
diff --git a/ext/js/comm/clipboard-monitor.js b/ext/js/comm/clipboard-monitor.js index c4381910..a1ea3362 100644 --- a/ext/js/comm/clipboard-monitor.js +++ b/ext/js/comm/clipboard-monitor.js @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {EventDispatcher} from '../core.js'; +import {EventDispatcher} from '../core/event-dispatcher.js'; /** * @augments EventDispatcher<import('clipboard-monitor').Events> diff --git a/ext/js/comm/cross-frame-api.js b/ext/js/comm/cross-frame-api.js index ab21967a..fca7c84d 100644 --- a/ext/js/comm/cross-frame-api.js +++ b/ext/js/comm/cross-frame-api.js @@ -16,10 +16,12 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {EventDispatcher, EventListenerCollection, log} from '../core.js'; import {extendApiMap, invokeApiMapHandler} from '../core/api-map.js'; +import {EventDispatcher} from '../core/event-dispatcher.js'; +import {EventListenerCollection} from '../core/event-listener-collection.js'; import {ExtensionError} from '../core/extension-error.js'; import {parseJson} from '../core/json.js'; +import {log} from '../core/logger.js'; import {yomitan} from '../yomitan.js'; /** diff --git a/ext/js/comm/frame-ancestry-handler.js b/ext/js/comm/frame-ancestry-handler.js index a9e49a6e..31739654 100644 --- a/ext/js/comm/frame-ancestry-handler.js +++ b/ext/js/comm/frame-ancestry-handler.js @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {generateId} from '../core.js'; +import {generateId} from '../core/utilities.js'; import {yomitan} from '../yomitan.js'; /** diff --git a/ext/js/comm/frame-client.js b/ext/js/comm/frame-client.js index aadb4f08..62db1edd 100644 --- a/ext/js/comm/frame-client.js +++ b/ext/js/comm/frame-client.js @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {deferPromise, generateId, isObject} from '../core.js'; +import {deferPromise, generateId, isObject} from '../core/utilities.js'; export class FrameClient { constructor() { diff --git a/ext/js/comm/frame-endpoint.js b/ext/js/comm/frame-endpoint.js index bf5efdd4..0008417d 100644 --- a/ext/js/comm/frame-endpoint.js +++ b/ext/js/comm/frame-endpoint.js @@ -16,7 +16,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {EventListenerCollection, generateId} from '../core.js'; +import {EventListenerCollection} from '../core/event-listener-collection.js'; +import {generateId} from '../core/utilities.js'; import {yomitan} from '../yomitan.js'; export class FrameEndpoint { diff --git a/ext/js/comm/mecab.js b/ext/js/comm/mecab.js index 57d97e98..1ff3f066 100644 --- a/ext/js/comm/mecab.js +++ b/ext/js/comm/mecab.js @@ -16,7 +16,7 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import {EventListenerCollection} from '../core.js'; +import {EventListenerCollection} from '../core/event-listener-collection.js'; import {toError} from '../core/to-error.js'; /** |