mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 04:40:20 +01:00
parent
c776ce9e04
commit
453174a18b
@ -1456,11 +1456,11 @@
|
||||
},
|
||||
|
||||
"exportSettings_title": {
|
||||
"message": "Export settings",
|
||||
"message": "CanvasBlocker settings export",
|
||||
"description": ""
|
||||
},
|
||||
"exportSettings_description": {
|
||||
"message": "",
|
||||
"message": "This allows you to copy your current settings. You can also paste and modify them here. If something is invalid the textarea will get a red background and the change is not stored.",
|
||||
"description": ""
|
||||
},
|
||||
|
||||
|
@ -1,12 +1,26 @@
|
||||
html, body {
|
||||
html {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
#settings {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0.5em;
|
||||
box-sizing: border-box;
|
||||
display: grid;
|
||||
grid-template-columns: 100%;
|
||||
grid-template-rows: max-content auto;
|
||||
}
|
||||
|
||||
#description {
|
||||
margin: 0.5em 0em;
|
||||
}
|
||||
|
||||
#settings {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
}
|
||||
#settings.invalid {
|
||||
background-color: var(--input-error-background-color);
|
||||
|
@ -9,6 +9,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<div id="description"></div>
|
||||
<textarea id="settings"></textarea>
|
||||
<script src="../lib/require.js"></script>
|
||||
<script src="../lib/logging.js"></script>
|
||||
|
@ -8,6 +8,12 @@
|
||||
const logging = require("../lib/logging");
|
||||
const settingsMigration = require("../lib/settingsMigration");
|
||||
require("../lib/theme").init();
|
||||
const extension = require("../lib/extension");
|
||||
document.querySelector("head title").textContent = extension.getTranslation("exportSettings_title");
|
||||
document.getElementById("description").appendChild(
|
||||
extension.parseTranslation(extension.getTranslation("exportSettings_description"))
|
||||
);
|
||||
|
||||
const input = document.getElementById("settings");
|
||||
settings.onloaded(function(){
|
||||
const data = {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user