update dependency

This commit is contained in:
bkfox
2021-03-05 18:19:49 +01:00
parent 3f9978aec7
commit c08e93d91f
6 changed files with 15 additions and 6 deletions

View File

@ -37,7 +37,7 @@ export default class AppBuilder {
self.app = null;
}
fetch(url, options) {
fetch(url, {el='app', ...options}={}) {
return fetch(url, options).then(response => response.text())
.then(content => {
let doc = new DOMParser().parseFromString(content, 'text/html');
@ -47,7 +47,7 @@ export default class AppBuilder {
})
}
load({async=false,content=null,title=null}={}) {
load({async=false,content=null,title=null,el='app'}={}) {
var self = this;
return new Promise((resolve, reject) => {
let func = () => {
@ -62,6 +62,7 @@ export default class AppBuilder {
if(title)
document.title = title;
this.app = new Vue(config);
window.scroll(0, 0);
resolve(self.app)
} catch(error) {
self.destroy();

View File

@ -104,7 +104,8 @@ a.navbar-item.is-active {
font-weight: $weight-bold;
padding: 0.2em;
top: 1em;
background-color: $white;
background-color: #ffffffc7;
max-width: 90%;
.fas {
padding: 0.1em;
@ -132,7 +133,7 @@ a.navbar-item.is-active {
p { padding: 0.4em 0em; }
hr { background-color: $grey-light; }
section {
.page-content {
h1 { font-size: $size-1; font-weight: bolder; margin-top:0.4em; margin-bottom:0.2em; }
h2 { font-size: $size-3; font-weight: bolder; margin-top:0.4em; margin-bottom:0.2em; }
h3 { font-size: $size-4; font-weight: bolder; margin-top:0.4em; margin-bottom:0.2em; }