Merge pull request 'simplify CSP and add title to settings dialog' (#67) from csp-and-dialog-settings into main

Reviewed-on: https://codeberg.org/macchiato/pages/pulls/67
main
bat 3 years ago
commit 977c329f3a

@ -3,7 +3,7 @@ import { EditorBuild } from "/loader/editor-build.js"
export class Layout extends HTMLElement {
cspProfiles = {
local: "default-src 'self' 'unsafe-inline' 'unsafe-eval'",
jsCdns: "default-src cdn.jsdelivr.net data.jsdelivr.com unpkg.com 'self' 'unsafe-inline' 'unsafe-eval'",
unpkg: "default-src unpkg.com 'self' 'unsafe-inline' 'unsafe-eval'",
open: undefined,
}

@ -228,7 +228,10 @@ export class PageActions extends HTMLElement {
)
settingsEl.cspProfiles = this.cspProfiles
settingsEl.data = this.page.settings
dialog.bodyEl.appendChild(settingsEl)
const h = document.createElement('h2')
h.innerText = this.text.settings
dialog.headerEl.append(h)
dialog.bodyEl.append(settingsEl)
const bGroup = document.createElement(
'm-forms-button-group'
)

@ -19,7 +19,7 @@ async function initCache() {
'/loader/editor-build.js',
'/menu/dropdown.js',
'/settings/page-settings.js',
]) //7
]) //9
}
self.addEventListener("install", event => {

Loading…
Cancel
Save