openwrite 0.10.4__tar.gz → 0.10.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openwrite-0.10.4/openwrite.egg-info → openwrite-0.10.5}/PKG-INFO +37 -2
- {openwrite-0.10.4 → openwrite-0.10.5}/README.md +36 -1
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/auth.py +7 -6
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/dashboard.py +6 -3
- {openwrite-0.10.4 → openwrite-0.10.5/openwrite.egg-info}/PKG-INFO +37 -2
- {openwrite-0.10.4 → openwrite-0.10.5}/pyproject.toml +1 -1
- {openwrite-0.10.4 → openwrite-0.10.5}/LICENSE +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/MANIFEST.in +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/__init__.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/cli.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/db/__init__.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/db/base.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/gemini_multi.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/gemini_single.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/admin.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/blog.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/federation.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/main.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/routes/upload.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/IBMPlexSans-Regular.ttf +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/Merriweather.ttf +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/avatar.png +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/favicon.ico +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/logo.png +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/chart.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/highlight.min.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/openwrite.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/papaparse.min.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/showdown.min.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/showdown.min.js.map +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/site.compat.min.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/script/site.min.js +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/hl.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/style.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/light.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/obscura.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/stickynote.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/terminal.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/warmnight.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/static/style/themes/windows98.css +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/admin.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/blog.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/blog_footer.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/blog_header.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/blog_preview.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/changepw.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/create.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/dashboard.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/discover.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/edit.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/footer.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/header.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/import.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/index.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/instances.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/login.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/new_post.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/post.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/preview.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/register.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/settings.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/templates/stats.html +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/create_db.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/db.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/helpers.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/i18n.json +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/models.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite/utils/translations.py +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite.egg-info/SOURCES.txt +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite.egg-info/dependency_links.txt +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite.egg-info/entry_points.txt +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite.egg-info/requires.txt +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/openwrite.egg-info/top_level.txt +0 -0
- {openwrite-0.10.4 → openwrite-0.10.5}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openwrite
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.5
|
|
4
4
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
5
5
|
Version 3, 19 November 2007
|
|
6
6
|
|
|
@@ -690,7 +690,7 @@ Dynamic: license-file
|
|
|
690
690
|

|
|
691
691
|
openwrite is a minimalist blogging platform built for writing freely, hosting independently, and publishing without noise.
|
|
692
692
|
|
|
693
|
-
|
|
693
|
+

|
|
694
694
|
[](LICENSE)
|
|
695
695
|

|
|
696
696
|

|
|
@@ -720,3 +720,38 @@ openwrite is a minimalist blogging platform built for writing freely, hosting in
|
|
|
720
720
|
- Statistics per post
|
|
721
721
|
|
|
722
722
|
|
|
723
|
+
## Installation
|
|
724
|
+
|
|
725
|
+
1. To install openwrite, clone it with `pip`:
|
|
726
|
+
|
|
727
|
+
```
|
|
728
|
+
pip install openwrite
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
2. Then run:
|
|
732
|
+
|
|
733
|
+
```
|
|
734
|
+
openwrite init
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
3. Answer few questions about your instance to generate .env, database and create all necessary directories.
|
|
738
|
+
4. Run:
|
|
739
|
+
|
|
740
|
+
```
|
|
741
|
+
openwrite run
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
to run it in foreground or:
|
|
745
|
+
|
|
746
|
+
```
|
|
747
|
+
openwrite run -d
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
to run it in background.
|
|
751
|
+
|
|
752
|
+
5. Enjoy!
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
#### Docker
|
|
756
|
+
|
|
757
|
+
Docker image is still being prepared. Stay tuned!
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
openwrite is a minimalist blogging platform built for writing freely, hosting independently, and publishing without noise.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+

|
|
5
5
|
[](LICENSE)
|
|
6
6
|

|
|
7
7
|

|
|
@@ -31,3 +31,38 @@ openwrite is a minimalist blogging platform built for writing freely, hosting in
|
|
|
31
31
|
- Statistics per post
|
|
32
32
|
|
|
33
33
|
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
1. To install openwrite, clone it with `pip`:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
pip install openwrite
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
2. Then run:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
openwrite init
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
3. Answer few questions about your instance to generate .env, database and create all necessary directories.
|
|
49
|
+
4. Run:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
openwrite run
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
to run it in foreground or:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
openwrite run -d
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
to run it in background.
|
|
62
|
+
|
|
63
|
+
5. Enjoy!
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
#### Docker
|
|
67
|
+
|
|
68
|
+
Docker image is still being prepared. Stay tuned!
|
|
@@ -31,15 +31,16 @@ def register():
|
|
|
31
31
|
if user:
|
|
32
32
|
return render_template('register.html', error=g.trans["user_exists"])
|
|
33
33
|
|
|
34
|
-
if
|
|
35
|
-
|
|
34
|
+
if g.captcha:
|
|
35
|
+
if request.form.get("frc-captcha-response") is None or request.form.get("frc-captcha-response") == ".ACTIVATED":
|
|
36
|
+
return render_template('register.html', error=g.trans['invalid_captcha'])
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
captcha_data = {'response': request.form.get("frc-captcha-response"), 'sitekey': g.fcaptcha_sitekey}
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
resp = requests.post("https://global.frcapi.com/api/v2/captcha/siteverify", json=captcha_data, headers={"X-API-Key": g.fcaptcha_apikey})
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
if json.loads(resp.text)['success'] != True:
|
|
43
|
+
return render_template("register.html", error=resp.text)
|
|
43
44
|
|
|
44
45
|
try:
|
|
45
46
|
hashed = bcrypt.hashpw(form_password.encode('utf-8'), bcrypt.gensalt())
|
|
@@ -32,9 +32,10 @@ def create_blog():
|
|
|
32
32
|
if g.user is None:
|
|
33
33
|
return redirect("/login")
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
if int(g.blog_limit) > 0:
|
|
36
|
+
count = g.db.query(Blog).filter_by(owner=g.user).count()
|
|
37
|
+
if count >= int(g.blog_limit):
|
|
38
|
+
return render_template("create.html", error="Blog limit reached!")
|
|
38
39
|
|
|
39
40
|
if request.method == "GET":
|
|
40
41
|
return render_template("create.html")
|
|
@@ -51,6 +52,8 @@ def create_blog():
|
|
|
51
52
|
|
|
52
53
|
form_index = request.form.get("index") or "off"
|
|
53
54
|
form_access = request.form.get("access")
|
|
55
|
+
if form_access not in ("path", "domain"):
|
|
56
|
+
return render_template("create.html", error="Wrong access!")
|
|
54
57
|
|
|
55
58
|
key = rsa.generate_private_key(
|
|
56
59
|
public_exponent=65537,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openwrite
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.5
|
|
4
4
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
5
5
|
Version 3, 19 November 2007
|
|
6
6
|
|
|
@@ -690,7 +690,7 @@ Dynamic: license-file
|
|
|
690
690
|

|
|
691
691
|
openwrite is a minimalist blogging platform built for writing freely, hosting independently, and publishing without noise.
|
|
692
692
|
|
|
693
|
-
|
|
693
|
+

|
|
694
694
|
[](LICENSE)
|
|
695
695
|

|
|
696
696
|

|
|
@@ -720,3 +720,38 @@ openwrite is a minimalist blogging platform built for writing freely, hosting in
|
|
|
720
720
|
- Statistics per post
|
|
721
721
|
|
|
722
722
|
|
|
723
|
+
## Installation
|
|
724
|
+
|
|
725
|
+
1. To install openwrite, clone it with `pip`:
|
|
726
|
+
|
|
727
|
+
```
|
|
728
|
+
pip install openwrite
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
2. Then run:
|
|
732
|
+
|
|
733
|
+
```
|
|
734
|
+
openwrite init
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
3. Answer few questions about your instance to generate .env, database and create all necessary directories.
|
|
738
|
+
4. Run:
|
|
739
|
+
|
|
740
|
+
```
|
|
741
|
+
openwrite run
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
to run it in foreground or:
|
|
745
|
+
|
|
746
|
+
```
|
|
747
|
+
openwrite run -d
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
to run it in background.
|
|
751
|
+
|
|
752
|
+
5. Enjoy!
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
#### Docker
|
|
756
|
+
|
|
757
|
+
Docker image is still being prepared. Stay tuned!
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|