-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Changes from 29 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fc8afa6
propogate websocket down
Archmonger 4ec52f5
update tests
Archmonger 839e8d7
add websocket login
Archmonger c1b443e
add admin view to test app
Archmonger 79ab0bc
fix styling error
Archmonger bf6783a
more styling
Archmonger dda8b58
last styling error i swear
Archmonger 05a3d22
fix spelling error
Archmonger ef9895b
remove unneeded sys import check
Archmonger a4d439c
reconnecting WS (broken)
Archmonger f17ba96
prevent duplicate component registration fix #5
Archmonger aa10d8c
allow any host to access this test app
Archmonger 756b80b
cache -> lru_cache
Archmonger 2786a3b
py 3.7 compartibility
Archmonger 2c1adb9
memory efficient way of preventing reregistration
Archmonger e50ca05
Limit developer control the websocket
Archmonger bbb4649
fix readme filename (idom.py -> components,py)
Archmonger 88dfe65
format readme
Archmonger a4b8f56
simplify render example
Archmonger 4bcbfdd
fix settings anchor link
Archmonger cfc07cd
add IDOM_WS_RECONNECT to readme
Archmonger 3afbed5
add session middleware
Archmonger 9e4b13e
change disconnect to close
Archmonger d625ee0
add view ID to WebSocketConnection
Archmonger b36ac37
change tab width to 2
Archmonger 7336b50
prettier format
Archmonger 7648256
IDOM_WS_RECONNECT -> IDOM_WS_RECONNECT_TIMEOUT
Archmonger 2387693
format base.html
Archmonger 553da97
WebSocket -> Websocket
Archmonger 9058d34
Awaitable[None]
Archmonger 4efc14f
add disconnect within websocketconnection
Archmonger 0e2436c
bump idom version
Archmonger 43a57fb
revert component registration check
Archmonger 2885e85
use django-idom version for svg
Archmonger 47d8ec6
add EOF newlines
Archmonger dbcf2b4
cleanup WebsocketConnection
Archmonger 991513e
remove useless init from websocket consumer
Archmonger 568064f
IDOM_WS_MAX_RECONNECT_DELAY
Archmonger 54b5186
self.view_id -> view_id
Archmonger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
Archmonger marked this conversation as resolved.
Show resolved
Hide resolved
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.