rename modules after moving to appropriate folders

This commit is contained in:
buzz-lightsnack-2007 2024-04-26 21:32:32 +08:00
parent 0b7be21d03
commit a226f12645
16 changed files with 17 additions and 17 deletions

View file

@ -22,7 +22,7 @@
"content_scripts": [ "content_scripts": [
{ {
"matches": ["http://*/*", "https://*/*"], "matches": ["http://*/*", "https://*/*"],
"js": ["scripts/external/watch.js"] "js": ["scripts/external/content.js"]
} }
], ],
"web_accessible_resources": [ "web_accessible_resources": [

View file

@ -2,7 +2,7 @@
// Import the file module. // Import the file module.
// import file from `./net.js`; // 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. // Don't forget to set the class as export default.
export default class gemini { export default class gemini {

View file

@ -1,4 +1,4 @@
import texts from "/scripts/strings/read.js"; import texts from "/scripts/mapping/read.js";
export default class Loader { export default class Loader {
/* Link a loading screen. /* Link a loading screen.

View file

@ -1,8 +1,8 @@
/* windowman /* windowman
Window and window content management */ Window and window content management */
import texts from "../strings/read.js"; import texts from "../mapping/read.js";
import net from "../net.js"; import net from "/scripts/utils/net.js";
import Window from "./window.js"; import Window from "./window.js";
export default class windowman { export default class windowman {

View file

@ -1,6 +1,6 @@
import {read, write, search, observe} from "/scripts/secretariat.js"; import {read, write, search, observe} from "/scripts/secretariat.js";
import logging from "/scripts/logging.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 { export default class UI {

View file

@ -1,5 +1,5 @@
import BrowserIcon from '/scripts/GUI/browser.icon.js'; import BrowserIcon from '/scripts/GUI/browser.icon.js';
import Image from '/scripts/strings/image.js'; import Image from '/scripts/mapping/image.js';
class IconIndicator { class IconIndicator {
static async enable() { static async enable() {

View file

@ -1,5 +1,5 @@
import Menu from '/scripts/GUI/context_menus.js'; 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"; import ManagedSidebar from "./sidebar.js";
export default class MenuEntry { export default class MenuEntry {

View file

@ -3,9 +3,9 @@ Manage filters.
*/ */
import {read, write, forget, search} from "./secretariat.js"; import {read, write, forget, search} from "./secretariat.js";
import net from "./net.js"; import net from "/scripts/utils/net.js";
import texts from "/scripts/strings/read.js"; import texts from "/scripts/mapping/read.js";
import {Queue} from "./common.js"; import {Queue} from "/scripts/utils/common.js";
import logging from "/scripts/logging.js" import logging from "/scripts/logging.js"
// const logging = (await import(chrome.runtime.getURL("/scripts/logging.js"))).default; // const logging = (await import(chrome.runtime.getURL("/scripts/logging.js"))).default;

View file

@ -2,7 +2,7 @@
Alert management system. Alert management system.
*/ */
import texts from "/scripts/strings/read.js"; import texts from "/scripts/mapping/read.js";
export default class logging { export default class logging {
static async confirm(MESSAGE) { static async confirm(MESSAGE) {

View file

@ -7,7 +7,7 @@
import {read, forget} from "/scripts/secretariat.js"; import {read, forget} from "/scripts/secretariat.js";
import Page from "/scripts/pages/page.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 { class Page_Settings extends Page {
constructor() { constructor() {
@ -55,7 +55,7 @@ class Page_Settings extends Page {
.addEventListener(`click`, async () => { .addEventListener(`click`, async () => {
// Import the filters module. // Import the filters module.
const texts = ( const texts = (
await import(chrome.runtime.getURL(`/scripts/strings/read.js`)) await import(chrome.runtime.getURL(`/scripts/mapping/read.js`))
).default; ).default;
let filters = new ( let filters = new (
await import(chrome.runtime.getURL(`scripts/filters.js`)) await import(chrome.runtime.getURL(`scripts/filters.js`))

View file

@ -4,7 +4,7 @@ Ask product information to Google Gemini. */
// Import the storage management module. // Import the storage management module.
const secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js")); const secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
import hash from "/scripts/utils/hash.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. // Don't forget to set the class as export default.
export default class product { export default class product {

View file

@ -3,7 +3,7 @@ Manage the local cache.
*/ */
import logging from "/scripts/logging.js"; 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"; import hash from "/scripts/utils/hash.js";
/* Read all stored data in the browser cache. /* Read all stored data in the browser cache.

View file

@ -2,7 +2,7 @@
This script provides network utilities. 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"; import logging from "/scripts/logging.js";
export default class net { export default class net {