update dependency
This commit is contained in:
parent
3f9978aec7
commit
c08e93d91f
|
@ -118,6 +118,12 @@ class BasePage(models.Model):
|
||||||
def is_trash(self):
|
def is_trash(self):
|
||||||
return self.status == self.STATUS_TRASH
|
return self.status == self.STATUS_TRASH
|
||||||
|
|
||||||
|
@property
|
||||||
|
def display_title(self):
|
||||||
|
if self.is_published():
|
||||||
|
return self.title
|
||||||
|
return self.parent.display_title()
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def headline(self):
|
def headline(self):
|
||||||
if not self.content:
|
if not self.content:
|
||||||
|
|
|
@ -95,7 +95,7 @@ Usefull context:
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if page and page.content %}
|
{% if page and page.content %}
|
||||||
<section class="content">{{ page.content|safe }}</section>
|
<section class="page-content">{{ page.content|safe }}</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endblock main %}
|
{% endblock main %}
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block before_list %}{% endblock %}
|
||||||
|
|
||||||
{% block pages_list %}
|
{% block pages_list %}
|
||||||
{% if page and page.content %}<hr/>{% endif %}
|
{% if page and page.content %}<hr/>{% endif %}
|
||||||
|
|
|
@ -37,7 +37,7 @@ export default class AppBuilder {
|
||||||
self.app = null;
|
self.app = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch(url, options) {
|
fetch(url, {el='app', ...options}={}) {
|
||||||
return fetch(url, options).then(response => response.text())
|
return fetch(url, options).then(response => response.text())
|
||||||
.then(content => {
|
.then(content => {
|
||||||
let doc = new DOMParser().parseFromString(content, 'text/html');
|
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;
|
var self = this;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let func = () => {
|
let func = () => {
|
||||||
|
@ -62,6 +62,7 @@ export default class AppBuilder {
|
||||||
if(title)
|
if(title)
|
||||||
document.title = title;
|
document.title = title;
|
||||||
this.app = new Vue(config);
|
this.app = new Vue(config);
|
||||||
|
window.scroll(0, 0);
|
||||||
resolve(self.app)
|
resolve(self.app)
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
self.destroy();
|
self.destroy();
|
||||||
|
|
|
@ -104,7 +104,8 @@ a.navbar-item.is-active {
|
||||||
font-weight: $weight-bold;
|
font-weight: $weight-bold;
|
||||||
padding: 0.2em;
|
padding: 0.2em;
|
||||||
top: 1em;
|
top: 1em;
|
||||||
background-color: $white;
|
background-color: #ffffffc7;
|
||||||
|
max-width: 90%;
|
||||||
|
|
||||||
.fas {
|
.fas {
|
||||||
padding: 0.1em;
|
padding: 0.1em;
|
||||||
|
@ -132,7 +133,7 @@ a.navbar-item.is-active {
|
||||||
p { padding: 0.4em 0em; }
|
p { padding: 0.4em 0em; }
|
||||||
hr { background-color: $grey-light; }
|
hr { background-color: $grey-light; }
|
||||||
|
|
||||||
section {
|
.page-content {
|
||||||
h1 { font-size: $size-1; font-weight: bolder; margin-top:0.4em; margin-bottom:0.2em; }
|
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; }
|
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; }
|
h3 { font-size: $size-4; font-weight: bolder; margin-top:0.4em; margin-bottom:0.2em; }
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
asgiref==3.2.10
|
asgiref==3.2.10
|
||||||
bleach==3.2.1
|
bleach>=3.3.0
|
||||||
Django==3.1.1
|
Django==3.1.1
|
||||||
django-admin-sortable2==0.7.7
|
django-admin-sortable2==0.7.7
|
||||||
django-ckeditor==6.0.0
|
django-ckeditor==6.0.0
|
||||||
|
|
Loading…
Reference in New Issue
Block a user