decentral1se
faa4c25ccc
fix: use PAD_URL in template files
2022-10-02 19:49:11 +02:00
decentral1se
42e408859b
refactor!: unify slash handling
...
It is hard to remember to add `/` at the end of the URL when configuring
a new etherpad URL. Also, web server proxies tend to do weird stuff when
you assume that you have a slash on the end of each URL.
So, I took a look at how to avoid doing that. It turns out that both
urljoin / os.path.join are kinda bad for handling URL building. Also,
APPLICATION_ROOT didn't seem that necessary since Flask knows what to do
with a `/` at the start of a URL, so I dropped it.
I think this doesn't break anything!
2022-10-02 16:53:25 +02:00
decentral1se
8b4d0905e2
chore: auto-formatter removes tabs/whitespace
2022-10-02 13:59:23 +02:00
decentral1se
d9800c5223
refactor: override config from env
...
Closes https://git.vvvvvvaria.org/varia/octomode/issues/8
2022-10-02 12:08:47 +02:00
manetta
b384354e95
typo in path.join
2022-03-11 20:05:18 +01:00
manetta
0e7a9c1d45
adding application_root to preview/pdf iframe urls
2022-03-11 20:01:37 +01:00
manetta
44818d981c
adding application_root urls + default metadata
2022-03-11 18:00:22 +01:00
manetta
f7105a30bf
rewriting redirects
2022-03-11 17:52:25 +01:00
manetta
4bb1c14abe
removing app_root in flask routes
2022-03-11 17:44:11 +01:00
manetta
7fb3e4adee
adding missing url_for
2022-03-11 17:05:47 +01:00
manetta
4d6c97fb46
adding application_root to post form in the start screen
2022-03-11 16:51:52 +01:00
manetta
a30972e87d
removing the workaround, causes error on octomode that is installed at the varia server
2022-03-10 18:02:08 +01:00
manetta
58f4cda11a
typo
2022-03-10 17:55:52 +01:00
manetta
0a60da6fea
adding APPLICATION_ROOT to config + workaround for url mapping for non-root URL sitatuions
2022-03-10 17:52:52 +01:00
mb
cedf8058c3
disabled bleach in import statements
2022-03-10 14:13:35 +01:00
manetta
de8027f68a
escape() and bleach.clean() are disabled... sanitizing does not render the html at all anymore...
2022-02-22 11:08:14 +01:00
manetta
7db66e0f6b
adding escape() and Markup()
2022-02-22 10:44:18 +01:00
manetta
e257d5359e
using md metadata title field as document name + using pypandoc for the markdown-to-html convertion now to support 'extra' features such as {.classname}
2022-02-21 18:05:47 +01:00
manetta
925ecb7562
template is out of the interface, added markdown and html sanitizers (wip)
2022-02-17 16:48:14 +01:00
manetta
0742986e8f
pandoc template issue solved: templates can be read from an URL :); octomode is ready to be used in multiple sessions at the same time now
2022-02-16 23:19:45 +01:00
manetta
975b9912bc
bending pad2pdf into octomode
2022-01-12 21:27:06 +01:00