rename modules after moving to appropriate folders
This commit is contained in:
parent
0b7be21d03
commit
a226f12645
16 changed files with 17 additions and 17 deletions
|
@ -22,7 +22,7 @@
|
|||
"content_scripts": [
|
||||
{
|
||||
"matches": ["http://*/*", "https://*/*"],
|
||||
"js": ["scripts/external/watch.js"]
|
||||
"js": ["scripts/external/content.js"]
|
||||
}
|
||||
],
|
||||
"web_accessible_resources": [
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Import the file module.
|
||||
// import file from `./net.js`;
|
||||
|
||||
const texts = (await import(chrome.runtime.getURL("scripts/strings/read.js"))).default;
|
||||
const texts = (await import(chrome.runtime.getURL("scripts/mapping/read.js"))).default;
|
||||
|
||||
// Don't forget to set the class as export default.
|
||||
export default class gemini {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
export default class Loader {
|
||||
/* Link a loading screen.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* windowman
|
||||
Window and window content management */
|
||||
|
||||
import texts from "../strings/read.js";
|
||||
import net from "../net.js";
|
||||
import texts from "../mapping/read.js";
|
||||
import net from "/scripts/utils/net.js";
|
||||
import Window from "./window.js";
|
||||
|
||||
export default class windowman {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {read, write, search, observe} from "/scripts/secretariat.js";
|
||||
import logging from "/scripts/logging.js"
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
|
||||
export default class UI {
|
||||
|
|
2
scripts/external/entries/icons.js
vendored
2
scripts/external/entries/icons.js
vendored
|
@ -1,5 +1,5 @@
|
|||
import BrowserIcon from '/scripts/GUI/browser.icon.js';
|
||||
import Image from '/scripts/strings/image.js';
|
||||
import Image from '/scripts/mapping/image.js';
|
||||
|
||||
class IconIndicator {
|
||||
static async enable() {
|
||||
|
|
2
scripts/external/entries/menu.js
vendored
2
scripts/external/entries/menu.js
vendored
|
@ -1,5 +1,5 @@
|
|||
import Menu from '/scripts/GUI/context_menus.js';
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import ManagedSidebar from "./sidebar.js";
|
||||
|
||||
export default class MenuEntry {
|
||||
|
|
|
@ -3,9 +3,9 @@ Manage filters.
|
|||
*/
|
||||
|
||||
import {read, write, forget, search} from "./secretariat.js";
|
||||
import net from "./net.js";
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import {Queue} from "./common.js";
|
||||
import net from "/scripts/utils/net.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import {Queue} from "/scripts/utils/common.js";
|
||||
import logging from "/scripts/logging.js"
|
||||
// const logging = (await import(chrome.runtime.getURL("/scripts/logging.js"))).default;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Alert management system.
|
||||
*/
|
||||
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
export default class logging {
|
||||
static async confirm(MESSAGE) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import {read, forget} from "/scripts/secretariat.js";
|
||||
import Page from "/scripts/pages/page.js";
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
class Page_Settings extends Page {
|
||||
constructor() {
|
||||
|
@ -55,7 +55,7 @@ class Page_Settings extends Page {
|
|||
.addEventListener(`click`, async () => {
|
||||
// Import the filters module.
|
||||
const texts = (
|
||||
await import(chrome.runtime.getURL(`/scripts/strings/read.js`))
|
||||
await import(chrome.runtime.getURL(`/scripts/mapping/read.js`))
|
||||
).default;
|
||||
let filters = new (
|
||||
await import(chrome.runtime.getURL(`scripts/filters.js`))
|
||||
|
|
|
@ -4,7 +4,7 @@ Ask product information to Google Gemini. */
|
|||
// Import the storage management module.
|
||||
const secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
|
||||
import hash from "/scripts/utils/hash.js";
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
|
||||
// Don't forget to set the class as export default.
|
||||
export default class product {
|
||||
|
|
|
@ -3,7 +3,7 @@ Manage the local cache.
|
|||
*/
|
||||
|
||||
import logging from "/scripts/logging.js";
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import hash from "/scripts/utils/hash.js";
|
||||
|
||||
/* Read all stored data in the browser cache.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
This script provides network utilities.
|
||||
*/
|
||||
|
||||
import texts from "/scripts/strings/read.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import logging from "/scripts/logging.js";
|
||||
|
||||
export default class net {
|
Loading…
Add table
Add a link
Reference in a new issue