Skip to content

Advanced Websocket Features #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Nov 1, 2021
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
fc8afa6
propogate websocket down
Archmonger Sep 21, 2021
4ec52f5
update tests
Archmonger Sep 21, 2021
839e8d7
add websocket login
Archmonger Sep 21, 2021
c1b443e
add admin view to test app
Archmonger Sep 21, 2021
79ab0bc
fix styling error
Archmonger Sep 21, 2021
bf6783a
more styling
Archmonger Sep 21, 2021
dda8b58
last styling error i swear
Archmonger Sep 21, 2021
05a3d22
fix spelling error
Archmonger Sep 22, 2021
ef9895b
remove unneeded sys import check
Archmonger Sep 22, 2021
a4d439c
reconnecting WS (broken)
Archmonger Sep 22, 2021
f17ba96
prevent duplicate component registration fix #5
Archmonger Sep 22, 2021
aa10d8c
allow any host to access this test app
Archmonger Sep 22, 2021
756b80b
cache -> lru_cache
Archmonger Sep 22, 2021
2786a3b
py 3.7 compartibility
Archmonger Sep 22, 2021
2c1adb9
memory efficient way of preventing reregistration
Archmonger Sep 22, 2021
e50ca05
Limit developer control the websocket
Archmonger Sep 22, 2021
bbb4649
fix readme filename (idom.py -> components,py)
Archmonger Sep 22, 2021
88dfe65
format readme
Archmonger Sep 22, 2021
a4b8f56
simplify render example
Archmonger Sep 22, 2021
4bcbfdd
fix settings anchor link
Archmonger Sep 22, 2021
cfc07cd
add IDOM_WS_RECONNECT to readme
Archmonger Sep 22, 2021
3afbed5
add session middleware
Archmonger Sep 22, 2021
9e4b13e
change disconnect to close
Archmonger Sep 27, 2021
d625ee0
add view ID to WebSocketConnection
Archmonger Sep 27, 2021
b36ac37
change tab width to 2
Archmonger Sep 27, 2021
7336b50
prettier format
Archmonger Sep 27, 2021
7648256
IDOM_WS_RECONNECT -> IDOM_WS_RECONNECT_TIMEOUT
Archmonger Sep 27, 2021
2387693
format base.html
Archmonger Sep 27, 2021
553da97
WebSocket -> Websocket
Archmonger Sep 27, 2021
9058d34
Awaitable[None]
Archmonger Sep 27, 2021
4efc14f
add disconnect within websocketconnection
Archmonger Oct 6, 2021
0e2436c
bump idom version
Archmonger Oct 9, 2021
43a57fb
revert component registration check
Archmonger Oct 30, 2021
2885e85
use django-idom version for svg
Archmonger Nov 1, 2021
47d8ec6
add EOF newlines
Archmonger Nov 1, 2021
dbcf2b4
cleanup WebsocketConnection
Archmonger Nov 1, 2021
991513e
remove useless init from websocket consumer
Archmonger Nov 1, 2021
568064f
IDOM_WS_MAX_RECONNECT_DELAY
Archmonger Nov 1, 2021
54b5186
self.view_id -> view_id
Archmonger Nov 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format base.html
  • Loading branch information
Archmonger committed Sep 27, 2021
commit 238769309553ab8529e8ff30c1d91f213b40aaab
37 changes: 18 additions & 19 deletions tests/test_app/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{% load static %} {% load idom %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="shortcut icon"
type="image/png"
href="{% static 'favicon.ico' %}"
/>
<title>IDOM</title>
</head>

<body>
<h1>IDOM Test Page</h1>
<div>{% idom_component "test_app.components.HelloWorld" class="hello-world" %}</div>
<div>{% idom_component "test_app.components.Button" class="button" %}</div>
<div>{% idom_component "test_app.components.ParametrizedComponent" class="parametarized-component" x=123 y=456 %}</div>
<div>{% idom_component "test_app.components.SimpleBarChart" class="simple-bar-chart" %}</div>
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}" />
<title>IDOM</title>
</head>

<body>
<h1>IDOM Test Page</h1>
<div>{% idom_component "test_app.components.HelloWorld" class="hello-world" %}</div>
<div>{% idom_component "test_app.components.Button" class="button" %}</div>
<div>{% idom_component "test_app.components.ParametrizedComponent" class="parametarized-component" x=123 y=456 %}
</div>
<div>{% idom_component "test_app.components.SimpleBarChart" class="simple-bar-chart" %}</div>
</body>

</html>