custom prompts and tags setting pages moved under pages folder
This commit is contained in:
parent
b82a3cdde4
commit
0537eb8bca
8 changed files with 12 additions and 12 deletions
|
|
@ -253,26 +253,26 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
document.getElementById('btnManagePrompts').addEventListener('click', () => {
|
document.getElementById('btnManagePrompts').addEventListener('click', () => {
|
||||||
// check if the tab is already there
|
// check if the tab is already there
|
||||||
browser.tabs.query({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')}).then((tabs) => {
|
browser.tabs.query({url: browser.runtime.getURL('../pages/customprompts/mzta-custom-prompts.html')}).then((tabs) => {
|
||||||
if (tabs.length > 0) {
|
if (tabs.length > 0) {
|
||||||
// if the tab is already there, focus it
|
// if the tab is already there, focus it
|
||||||
browser.tabs.update(tabs[0].id, {active: true});
|
browser.tabs.update(tabs[0].id, {active: true});
|
||||||
} else {
|
} else {
|
||||||
// if the tab is not there, create it
|
// if the tab is not there, create it
|
||||||
browser.tabs.create({url: browser.runtime.getURL('../customprompts/mzta-custom-prompts.html')});
|
browser.tabs.create({url: browser.runtime.getURL('../pages/customprompts/mzta-custom-prompts.html')});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById('btnManageTagsInfo').addEventListener('click', () => {
|
document.getElementById('btnManageTagsInfo').addEventListener('click', () => {
|
||||||
// check if the tab is already there
|
// check if the tab is already there
|
||||||
browser.tabs.query({url: browser.runtime.getURL('../addtags/mzta-add-tags.html')}).then((tabs) => {
|
browser.tabs.query({url: browser.runtime.getURL('../pages/addtags/mzta-add-tags.html')}).then((tabs) => {
|
||||||
if (tabs.length > 0) {
|
if (tabs.length > 0) {
|
||||||
// if the tab is already there, focus it
|
// if the tab is already there, focus it
|
||||||
browser.tabs.update(tabs[0].id, {active: true});
|
browser.tabs.update(tabs[0].id, {active: true});
|
||||||
} else {
|
} else {
|
||||||
// if the tab is not there, create it
|
// if the tab is not there, create it
|
||||||
browser.tabs.create({url: browser.runtime.getURL('../addtags/mzta-add-tags.html')});
|
browser.tabs.create({url: browser.runtime.getURL('../pages/addtags/mzta-add-tags.html')});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>ThunderAI - __MSG_AddTags_PageTitle__</title>
|
<title>ThunderAI - __MSG_AddTags_PageTitle__</title>
|
||||||
<link rel="stylesheet" href="mzta-add-tags.css">
|
<link rel="stylesheet" href="mzta-add-tags.css">
|
||||||
<link rel="icon" href="../images/icon-16px.png">
|
<link rel="icon" href="../../images/icon-16px.png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
TEST
|
TEST
|
||||||
<script src="mzta-add-tags.js" type="module"></script>
|
<script src="mzta-add-tags.js" type="module"></script>
|
||||||
<script src="../js/mzta-i18n.js"></script>
|
<script src="../../js/mzta-i18n.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>ThunderAI - __MSG_customPrompts_managePrompts__</title>
|
<title>ThunderAI - __MSG_customPrompts_managePrompts__</title>
|
||||||
<link rel="stylesheet" href="mzta-custom-prompts.css">
|
<link rel="stylesheet" href="mzta-custom-prompts.css">
|
||||||
<link rel="icon" href="../images/icon-16px.png">
|
<link rel="icon" href="../../images/icon-16px.png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div>
|
||||||
|
|
@ -99,6 +99,6 @@
|
||||||
<div class="storage_space">__MSG_StorageSpace__: <span id="storage_space"></span></div>
|
<div class="storage_space">__MSG_StorageSpace__: <span id="storage_space"></span></div>
|
||||||
<script src="list.js"></script>
|
<script src="list.js"></script>
|
||||||
<script src="mzta-custom-prompts.js" type="module"></script>
|
<script src="mzta-custom-prompts.js" type="module"></script>
|
||||||
<script src="../js/mzta-i18n.js"></script>
|
<script src="../../js/mzta-i18n.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { getPrompts, setDefaultPromptsProperties, setCustomPrompts, preparePromptsForExport, preparePromptsForImport } from "../js/mzta-prompts.js";
|
import { getPrompts, setDefaultPromptsProperties, setCustomPrompts, preparePromptsForExport, preparePromptsForImport } from "../../js/mzta-prompts.js";
|
||||||
import { isThunderbird128OrGreater, getCustomPromptsUsedSpace, sanitizeHtml } from "../js/mzta-utils.js";
|
import { isThunderbird128OrGreater, getCustomPromptsUsedSpace, sanitizeHtml } from "../../js/mzta-utils.js";
|
||||||
import { taLogger } from "../js/mzta-logger.js";
|
import { taLogger } from "../../js/mzta-logger.js";
|
||||||
import { getPlaceholders } from "../js/mzta-placeholders.js";
|
import { getPlaceholders } from "../../js/mzta-placeholders.js";
|
||||||
|
|
||||||
var promptsList = null;
|
var promptsList = null;
|
||||||
var somethingChanged = false;
|
var somethingChanged = false;
|
||||||
Loading…
Reference in a new issue