small fixes
This commit is contained in:
parent
9e8e6e0eec
commit
506fefc1f0
3 changed files with 4 additions and 1 deletions
|
|
@ -8,7 +8,9 @@
|
||||||
+ Added `User` table.
|
+ Added `User` table.
|
||||||
+ Added `Flask-Login` and `Flask-WTF` dependencies in order to implement user logins.
|
+ Added `Flask-Login` and `Flask-WTF` dependencies in order to implement user logins.
|
||||||
+ Added `python-i18n` as a dependency. Therefore, i18n changed format, using JSON files now.
|
+ Added `python-i18n` as a dependency. Therefore, i18n changed format, using JSON files now.
|
||||||
|
+ Now you can export pages in a JSON format. Coming soon: importing.
|
||||||
+ Like it or not, now gzip library is required.
|
+ Like it or not, now gzip library is required.
|
||||||
|
+ Added CSS variables in the site style.
|
||||||
|
|
||||||
## 0.6
|
## 0.6
|
||||||
|
|
||||||
|
|
|
||||||
2
app.py
2
app.py
|
|
@ -908,7 +908,7 @@ def exportpages():
|
||||||
while q_list:
|
while q_list:
|
||||||
query |= q_list.pop(0)
|
query |= q_list.pop(0)
|
||||||
e = Exporter()
|
e = Exporter()
|
||||||
e.add_page_list(query)
|
e.add_page_list(query, include_history='history' in request.form)
|
||||||
return e.export(), {'Content-Type': 'application/json', 'Content-Disposition': 'attachment; ' +
|
return e.export(), {'Content-Type': 'application/json', 'Content-Disposition': 'attachment; ' +
|
||||||
'filename=export-{}.json'.format(datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))}
|
'filename=export-{}.json'.format(datetime.datetime.now().strftime('%Y%m%d-%H%M%S'))}
|
||||||
return render_template('exportpages.html')
|
return render_template('exportpages.html')
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ input[type="submit"],input[type="reset"],input[type="button"],button{font-family
|
||||||
.search-wrapper {display:flex;width:90%;margin:auto}
|
.search-wrapper {display:flex;width:90%;margin:auto}
|
||||||
.search-wrapper > input {flex:1}
|
.search-wrapper > input {flex:1}
|
||||||
.preview-subtitle {text-align: center; margin-top: -1em}
|
.preview-subtitle {text-align: center; margin-top: -1em}
|
||||||
|
textarea {background-color: var(--bg-sharp); color: var(--fg-sharp)}
|
||||||
|
|
||||||
/* Circles extension */
|
/* Circles extension */
|
||||||
.circles-red{color: #e14}
|
.circles-red{color: #e14}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue