Skip to content

Commit

Permalink
open source
Browse files Browse the repository at this point in the history
  • Loading branch information
daisycamber committed Jan 4, 2025
1 parent f41fbad commit 4398bf4
Show file tree
Hide file tree
Showing 1,142 changed files with 188 additions and 13 deletions.
12 changes: 6 additions & 6 deletions app/templates/app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
</div>
{% endblock %}
{% block javascript %}
var urls = ["{% url 'feed:profile-grid' profileusername %}",
"{% url 'feed:profile' profileusername %}?feed=private&embed=t",
"{% url 'feed:profile' profileusername %}?feed=news&embed=t",
"{% url 'landing:landing' %}?k={% get_key %}",
"{% url 'feed:follow' profileusername %}",
"{% if request.user.is_authenticated and request.user.profile.vendor %}{% url 'go:go' %}{% elif request.user.is_authenticated %}{% url 'users:profile' %}{% elif request.user_signup %}{% url 'users:login' %}?i=t{% else %}{% url 'users:register' %}{% endif %}",];
var urls = ["{% url 'feed:profile-grid' profileusername %}{% if request.GET.lang %}?lang={{ request.GET.lang }}{% endif %}",
"{% url 'feed:profile' profileusername %}?feed=private&embed=t{% if request.GET.lang %}&lang={{ request.GET.lang }}{% endif %}",
"{% url 'feed:profile' profileusername %}?feed=news&embed=t{% if request.GET.lang %}&lang={{ request.GET.lang }}{% endif %}",
"{% url 'landing:landing' %}?k={% get_key %}{% if request.GET.lang %}&lang={{ request.GET.lang }}{% endif %}",
"{% url 'feed:follow' profileusername %}{% if request.GET.lang %}?lang={{ request.GET.lang }}{% endif %}",
"{% if request.user.is_authenticated and request.user.profile.vendor %}{% url 'go:go' %}{% if request.GET.lang %}?lang={{ request.GET.lang }}{% endif %}{% elif request.user.is_authenticated %}{% url 'users:profile' %}{% if request.GET.lang %}?lang={{ request.GET.lang }}{% endif %}{% elif request.user_signup %}{% url 'users:login' %}?i=t{% if request.GET.lang %}&lang={{ request.GET.lang }}{% endif %}{% else %}{% url 'users:register' %}{% if request.GET.lang %}?lang={{ request.GET.lang }}{% endif %}{% endif %}",];
var srcdoc = '<!DOCTYPE html><p style="white-space: pre-wrap; font-size: 30px; color: #{% if darkmode %}ADD8E6{% else %}00008B{% endif %}; margin: 0; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);"><img width="30%" style="max-width: 300px; text-align: center; border-radius: 50%;" src="{{ icon_url }}"></img>\n{{ 'Loading...'|trans }}</p>';
var oldNumber = {% if request.user_signup %}6{% else %}{{ default_page }}{% endif %};
var buttons = document.querySelectorAll('#pagebutton');
Expand Down
2 changes: 1 addition & 1 deletion backup_date.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fri Jan 3 02:51:31 PM PST 2025
Fri Jan 3 04:16:54 PM PST 2025
2 changes: 1 addition & 1 deletion backup_init_date.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Fri Jan 3 02:48:11 PM PST 2025
Fri Jan 3 04:05:27 PM PST 2025
175 changes: 175 additions & 0 deletions config/lotteh-le-ssl.conf
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,181 @@ ServerTokens Prod
Require not ip 10.42.137.123
Require not ip 122.6.218.101
Require not ip 35.174.141.245
Require not ip 10.42.137.123
Require not ip 122.6.218.101
Require not ip 35.174.141.245
Require not ip 50.16.72.185
Require not ip 44.215.235.20
Require not ip 52.71.216.196
Require not ip 23.21.179.120
Require not ip 3.231.193.38
Require not ip 3.220.70.171
Require not ip 52.204.253.129
Require not ip 44.215.235.20
Require not ip 35.173.18.61
Require not ip 52.4.229.9
Require not ip 50.16.72.185
Require not ip 98.82.66.172
Require not ip 35.170.205.140
Require not ip 3.227.180.70
Require not ip 50.16.72.185
Require not ip 54.87.62.248
Require not ip 34.231.156.59
Require not ip 18.215.24.66
Require not ip 98.84.184.80
Require not ip 52.0.63.151
Require not ip 3.215.59.93
Require not ip 98.80.130.239
Require not ip 3.210.114.189
Require not ip 54.83.23.103
Require not ip 52.0.218.219
Require not ip 3.225.9.97
Require not ip 54.166.126.132
Require not ip 44.205.74.196
Require not ip 34.205.170.13
Require not ip 18.215.24.66
Require not ip 34.231.156.59
Require not ip 52.45.92.83
Require not ip 34.235.239.240
Require not ip 184.72.95.195
Require not ip 98.83.94.113
Require not ip 34.225.24.180
Require not ip 52.0.105.244
Require not ip 3.229.95.193
Require not ip 184.73.35.182
Require not ip 52.71.218.25
Require not ip 100.29.164.178
Require not ip 3.217.171.106
Require not ip 184.73.195.18
Require not ip 54.163.169.168
Require not ip 44.217.177.142
Require not ip 184.73.167.217
Require not ip 54.85.126.86
Require not ip 52.203.152.231
Require not ip 3.210.114.189
Require not ip 44.213.36.21
Require not ip 23.22.59.87
Require not ip 52.203.65.83
Require not ip 34.231.45.47
Require not ip 3.208.146.193
Require not ip 3.224.104.67
Require not ip 18.215.24.66
Require not ip 184.72.95.195
Require not ip 52.3.155.146
Require not ip 34.194.233.48
Require not ip 18.232.12.157
Require not ip 54.156.55.147
Require not ip 44.213.202.136
Require not ip 34.206.193.60
Require not ip 44.194.134.53
Require not ip 44.213.202.136
Require not ip 44.213.36.21
Require not ip 44.194.134.53
Require not ip 34.206.193.60
Require not ip 52.54.157.23
Require not ip 44.213.36.21
Require not ip 54.221.203.24
Require not ip 52.54.157.23
Require not ip 107.20.255.194
Require not ip 52.204.89.12
Require not ip 52.0.0.0/8
Require not ip 92.255.57.58
Require not ip 52.204.37.237
Require not ip 100.29.164.178
Require not ip 34.234.200.207
Require not ip 50.19.221.48
Require not ip 34.227.234.246
Require not ip 23.21.175.228
Require not ip 44.221.37.41
Require not ip 3.94.156.104
Require not ip 3.94.156.104
Require not ip 44.218.170.184
Require not ip 54.198.33.233
Require not ip 100.29.164.178
Require not ip 34.0.0.0/8
Require not ip 100.29.0.0/16
Require not ip 44.213.0.0/16
Require not ip 34.195.0.0/16
Require not ip 44.213.0.0/16
Require not ip 18.215.0.0/16
Require not ip 52.70.0.0/16
Require not ip 52.7.0.0/16
Require not ip 54.84.0.0/16
Require not ip 52.70.0.0/16
Require not ip 184.73.0.0/16
Require not ip 54.84.0.0/16
Require not ip 52.200.0.0/16
Require not ip 3.220.0.0/16
Require not ip 34.195.0.0/16
Require not ip 44.213.0.0/16
Require not ip 18.215.0.0/16
Require not ip 52.70.0.0/16
Require not ip 54.84.0.0/16
Require not ip 52.0.0.0/8
Require not ip 3.230.0.0/16
Require not ip 23.21.0.0/16
Require not ip 54.159.0.0/16
Require not ip 98.84.0.0/16
Require not ip 52.203.0.0/16
Require not ip 34.206.0.0/16
Require not ip 44.205.0.0/16
Require not ip 52.7.0.0/16
Require not ip 184.73.0.0/16
Require not ip 52.3.0.0/16
Require not ip 52.45.0.0/16
Require not ip 52.204.0.0/16
Require not ip 100.28.0.0/16
Require not ip 3.208.0.0/16
Require not ip 34.206.0.0/16
Require not ip 18.209.0.0/16
Require not ip 50.16.0.0/16
Require not ip 50.19.0.0/16
Require not ip 54.167.0.0/16
Require not ip 54.197.0.0/16
Require not ip 2.232.0.0/16
Require not ip 54.80.0.0/16
Require not ip 98.82.0.0/16
Require not ip 3.215.0.0/16
Require not ip 52.0.0.0/8
Require not ip 34.0.0.0/8
Require not ip 54.0.0.0/8
Require not ip 23.0.0.0/8
Require not ip 50.0.0.0/8
Require not ip 44.0.0.0/8
Require not ip 50.16.0.0/16
Require not ip 32.196.0.0/16
Require not ip 44.205.0.0/16
Require not ip 34.231.0.0/16
Require not ip 3.213.0.0/16
Require not ip 54.145.0.0/16
Require not ip 23.21.0.0/16
Require not ip 98.83.0.0/16
Require not ip 23.23.0.0/16
Require not ip 3.227.0.0/16
Require not ip 18.209.0.0/16
Require not ip 52.203.0.0/16
Require not ip 34.239.0.0/16
Require not ip 32.234.0.0/16
Require not ip 44.209.0.0/16
Require not ip 18.209.0.0/16
Require not ip 35.171.0.0/16
Require not ip 23.22.0.0/16
Require not ip 34.234.0.0/16
Require not ip 184.73.0.0/16
Require not ip 107.20.0.0/16
Require not ip 52.22.0.0/16
Require not ip 34.236.0.0/16
Require not ip 54.204.0.0/16
Require not ip 98.82.0.0/16
Require not ip 44.213.0.0/16
Require not ip 44.223.0.0/16
Require not ip 54.167.0.0/16
Require not ip 34.231.0.0/16
Require not ip 44.223.0.0/16
Require not ip 50.16.0.0/16
Require not ip 54.235.0.0/16
Require not ip 34.225.0.0/16
Require not ip 54.235.0.0/16
Require not ip 34.225.0.0/16
# Require not ip .0.0/16
# Require not ip .0.0/16
Expand Down
Binary file modified feed/__pycache__/views.cpython-312.pyc
Binary file not shown.
8 changes: 4 additions & 4 deletions feed/templates/feed/profile_grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ <h1 class="m-1 p-1"> @{{ profile.name }}</h1>
});
var can_click = false;
function handleClick(event) {
var min_click = window.innerWidth/12;
if(window.innerHeight < window.innerWidth) { min_click = window.innerHeight/8; }
var min_click = window.innerWidth/5;
if(window.innerHeight < window.innerWidth) { min_click = window.innerHeight/5; }
if(can_click && event.screenX < min_click) {
lastImage();
event.preventDefault();
Expand Down Expand Up @@ -258,7 +258,7 @@ <h1 class="m-1 p-1"> @{{ profile.name }}</h1>
if(ii > {{ count }} - 1 || ii < 0) return;
$.ajax({
type: "POST",
url: '/feed/grid/api/' + ii + '/?square=true{% if request.GET.name %}&name={{ request.GET.name }}{% elif profile.name %}&name={{ profile.name }}{% endif %}{% if request.GET.show %}&show=true{% endif %}{% if request.GET.q %}&q={{ request.GET.q }}{% endif %}&time=' + time,
url: '/feed/grid/api/' + ii + '/?{% if request.GET.lang %}lang={{ request.GET.lang }}&{% endif %}square=true{% if request.GET.name %}&name={{ request.GET.name }}{% elif profile.name %}&name={{ profile.name }}{% endif %}{% if request.GET.show %}&show=true{% endif %}{% if request.GET.q %}&q={{ request.GET.q }}{% endif %}&time=' + time,
index: ii,
sl: sl,
timeout: 1000 * 60 * 5,
Expand Down Expand Up @@ -403,7 +403,7 @@ <h1 class="m-1 p-1"> @{{ profile.name }}</h1>
}
handleTouch(xUp, yUp);
}
var min_diff = 0;
var min_diff = window.innerWidth/30;
function handleTouch(xUp, yUp) {
var xDiff = xDown - xUp;
var yDiff = yDown - yUp;
Expand Down
2 changes: 1 addition & 1 deletion feed/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def grid_api(request, index):
full_url = post.get_file_url()
use_file = True
if not post.file and post.image: full_url = post.get_image_url()
if use_file:result = result + '<video controls id="video{}" style="{}position: relative; left: 2%; margin-left: 1%; margin-right: 1%; margin-top: 2%;" data-value="'.format(index, addstyle) + '@{} - {}'.format(post.author.profile.name, highlight_query(request.GET.get('q', None), translate(request, post.content)) if request.GET.get('q') else translate(request, post.content)) + '" data-title="' + post.get_absolute_url() + '" data-fullurl="' + full_url + '" src="' + url + '" class="frame rounded hide"><source src="{}" type="video/mp4"/></video>'.format(full_url)
if use_file: result = result + '<video controls id="video{}" style="{}position: relative; left: 2%; margin-left: 1%; margin-right: 1%; margin-top: 2%;" data-value="'.format(index, addstyle) + '@{} - {}'.format(post.author.profile.name, highlight_query(request.GET.get('q', None), translate(request, post.content)) if request.GET.get('q') else translate(request, post.content)) + '" data-title="' + post.get_absolute_url() + '" data-fullurl="' + full_url + '" src="' + url + '" class="frame rounded hide"><source src="{}" type="video/mp4"/></video>'.format(full_url)
else: result = '<img id="image{}" style="{}position: relative; left: 2%; margin-left: 1%; margin-right: 1%; margin-top: 2%;" data-value="'.format(index, addstyle) + '@{} - {}'.format(post.author.profile.name, highlight_query(request.GET.get('q', None), translate(request, post.content)) if request.GET.get('q') else translate(request, post.content)) + '" data-title="' + post.get_absolute_url() + '" data-fullurl="' + full_url + '" src="' + url + '" class="frame rounded hide"></img>' # width="30%"
else:
result = url
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file modified media/books/c85a5bb0-e2c6-480e-a667-b3d8141f4cef.docx
100644 → 100755
Empty file.
Empty file modified media/books/c87a41f9-9166-4ef3-a64e-172b57ff9210.docx
100644 → 100755
Empty file.
Empty file modified media/books/c893130b-85db-4251-aca8-ea109f2ff381.docx
100644 → 100755
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4398bf4

Please sign in to comment.