Switching to new security rules
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@ -33,12 +33,19 @@
|
||||
grid-template-columns: 360px auto;
|
||||
}
|
||||
|
||||
#navigation {
|
||||
height: 100vh;
|
||||
overflow: auto;
|
||||
border-right: 1px solid darkgrey;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#content {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 100vh;
|
||||
border: 0;
|
||||
}
|
||||
</style>
|
||||
@ -46,7 +53,7 @@
|
||||
|
||||
<body>
|
||||
<div class="grid">
|
||||
<div style="border-right: 1px solid darkgrey; padding: 1rem;">
|
||||
<div id="navigation">
|
||||
<h2>Navigation:</h2>
|
||||
<ul class="list list-clickable">
|
||||
<li onclick="loadView('settings');">Settings</li>
|
||||
@ -57,10 +64,10 @@
|
||||
<div
|
||||
id="dbs"
|
||||
class="list list-clickable"
|
||||
style="margin: 1rem;"
|
||||
style="margin: 1rem"
|
||||
></div>
|
||||
</div>
|
||||
<div style="position: relative;">
|
||||
<div style="position: relative">
|
||||
<iframe id="content"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
@ -101,8 +108,8 @@
|
||||
<h3>${database}</h3>
|
||||
<button class=btn onclick="loadView('data', {database:'${database}'})">Data</button>
|
||||
<button class=btn onclick="loadView('collections', {database:'${database}'})">Collections</button>
|
||||
<button class=btn onclick="loadView('collections/cleanup', {database:'${database}'})">Clean</button>
|
||||
<button class=btn onclick="loadView('database/update', {database:'${database}'})">Change</button>
|
||||
<button class=btn onclick="loadView('collections/cleanup', {database:'${database}'})">Clean</button>
|
||||
</div>`
|
||||
)
|
||||
)
|
||||
|
@ -8,6 +8,7 @@
|
||||
<title>{{title}}</title>
|
||||
<link rel="stylesheet" href="https://unpkg.com/@hibas123/theme@1/out/base.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/@hibas123/theme@1/out/light.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/codemirror@5.58.2/lib/codemirror.css">
|
||||
|
||||
<style>
|
||||
#message {
|
||||
@ -46,6 +47,10 @@
|
||||
{{#ifCond type "===" "textarea"}}
|
||||
<textarea class="inp" name="{{name}}" rows="20" {{disabled}}>{{value}}</textarea>
|
||||
{{/ifCond}}
|
||||
|
||||
{{#ifCond type "===" "codemirror"}}
|
||||
<textarea codemirror class="inp" name="{{name}}" rows="20" {{disabled}}>{{value}}</textarea>
|
||||
{{/ifCond}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
@ -81,6 +86,19 @@
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="https://unpkg.com/codemirror@5.58.2/lib/codemirror.js"></script>
|
||||
<script>
|
||||
document.querySelectorAll("textarea[codemirror]").forEach(elm => {
|
||||
const cm = CodeMirror.fromTextArea(elm, {
|
||||
lineNumbers: true,
|
||||
indentUnit: 3,
|
||||
tabSize: 3,
|
||||
})
|
||||
|
||||
cm.on("change", () => cm.save())
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user