vuer 0.0.44__py3-none-any.whl → 0.0.46__py3-none-any.whl
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.
Potentially problematic release.
This version of vuer might be problematic. Click here for more details.
- vuer/__pycache__/__init__.cpython-311.pyc +0 -0
- vuer/__pycache__/base.cpython-311.pyc +0 -0
- vuer/__pycache__/base.cpython-38.pyc +0 -0
- vuer/__pycache__/server.cpython-311.pyc +0 -0
- vuer/__pycache__/server.cpython-38.pyc +0 -0
- vuer/base.py +7 -7
- vuer/client_build/404.html +3 -3
- vuer/client_build/assets/chunks/chunk-18G0VHqw.js +2 -0
- vuer/client_build/assets/chunks/chunk-18G0VHqw.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Bc6jPe19.js +283 -0
- vuer/client_build/assets/chunks/chunk-Bc6jPe19.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js +2 -0
- vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CZzxeY6d.js +2 -0
- vuer/client_build/assets/chunks/chunk-CZzxeY6d.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js +16 -0
- vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CgL2fCVp.js +8555 -0
- vuer/client_build/assets/chunks/chunk-CgL2fCVp.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-Cl2arkqa.js +7736 -0
- vuer/client_build/assets/chunks/chunk-Cl2arkqa.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CmZvw6P9.js +2 -0
- vuer/client_build/assets/chunks/chunk-CmZvw6P9.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-CwRl4dQC.js +3 -0
- vuer/client_build/assets/chunks/chunk-CwRl4dQC.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-DXO4-vDe.js +2 -0
- vuer/client_build/assets/chunks/chunk-DXO4-vDe.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-IuGwgvtb.js +102 -0
- vuer/client_build/assets/chunks/chunk-IuGwgvtb.js.map +1 -0
- vuer/client_build/assets/chunks/chunk-WT4fnZC5.js +53 -0
- vuer/client_build/assets/chunks/chunk-WT4fnZC5.js.map +1 -0
- vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js +5 -0
- vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js.map +1 -0
- vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js +2 -0
- vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js.map +1 -0
- vuer/client_build/assets/entries/pages_error.BNv2Fuig.js +2 -0
- vuer/client_build/assets/entries/pages_error.BNv2Fuig.js.map +1 -0
- vuer/client_build/assets/entries/pages_index.D1BavadI.js +2 -0
- vuer/client_build/assets/entries/pages_index.D1BavadI.js.map +1 -0
- vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js +2 -0
- vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js.map +1 -0
- vuer/client_build/editor/index.html +5 -5
- vuer/client_build/index.html +5 -5
- vuer/client_build/simple/index.html +4 -4
- vuer/schemas/__pycache__/html_components.cpython-311.pyc +0 -0
- vuer/schemas/__pycache__/physics_components.cpython-311.pyc +0 -0
- vuer/schemas/__pycache__/physics_components.cpython-38.pyc +0 -0
- vuer/schemas/__pycache__/scene_components.cpython-311.pyc +0 -0
- vuer/schemas/scene_components.py +11 -10
- vuer/server.py +36 -16
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/METADATA +33 -30
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/RECORD +56 -22
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/WHEEL +1 -1
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/LICENSE +0 -0
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/entry_points.txt +0 -0
- {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
vuer/base.py
CHANGED
|
@@ -84,7 +84,7 @@ class Server:
|
|
|
84
84
|
|
|
85
85
|
self.cors_context = aiohttp_cors.setup(self.app, defaults=cors_config)
|
|
86
86
|
|
|
87
|
-
def
|
|
87
|
+
def _add_route(
|
|
88
88
|
self,
|
|
89
89
|
path: str,
|
|
90
90
|
handler: callable,
|
|
@@ -97,20 +97,20 @@ class Server:
|
|
|
97
97
|
ws_handler = partial(
|
|
98
98
|
websocket_handler, handler=handler, max_msg_size=self.WEBSOCKET_MAX_SIZE
|
|
99
99
|
)
|
|
100
|
-
self.
|
|
100
|
+
self._add_route(path, ws_handler)
|
|
101
101
|
|
|
102
102
|
@staticmethod
|
|
103
103
|
def _add_task(fn: Coroutine, name=None):
|
|
104
104
|
loop = asyncio.get_running_loop()
|
|
105
105
|
loop.create_task(fn, name=name)
|
|
106
106
|
|
|
107
|
-
def
|
|
107
|
+
def _add_static(self, path, root):
|
|
108
108
|
_fn = partial(handle_file_request, root=root)
|
|
109
|
-
self.
|
|
109
|
+
self._add_route(f"{path}/{{filename:.*}}", _fn, method="GET")
|
|
110
110
|
|
|
111
111
|
def _static_file(self, path, root, filename=None):
|
|
112
112
|
_fn = partial(handle_file_request, root=root, filename=filename)
|
|
113
|
-
self.
|
|
113
|
+
self._add_route(f"{path}", _fn, method="GET")
|
|
114
114
|
|
|
115
115
|
def run(self):
|
|
116
116
|
async def init_server():
|
|
@@ -139,6 +139,6 @@ class Server:
|
|
|
139
139
|
|
|
140
140
|
if __name__ == "__main__":
|
|
141
141
|
app = Server()
|
|
142
|
-
app.
|
|
143
|
-
app.
|
|
142
|
+
app._add_route("", websocket_handler)
|
|
143
|
+
app._add_static("/static", handle_file_request, root=".")
|
|
144
144
|
app.run()
|
vuer/client_build/404.html
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
<body>
|
|
8
8
|
<div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><div style="height:calc(100vh - 100px);display:flex;justify-content:center;align-items:center"><p style="font-size:1.3em">Page not found.</p></div></div></div>
|
|
9
9
|
<script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/_error","routeParams":{},"data":"!undefined","pageProps":{"is404":true},"is404":true,"_isServerSideError":"!undefined"}</script>
|
|
10
|
-
<script src="/assets/entries/entry-client-routing.
|
|
11
|
-
<link rel="modulepreload" href="/assets/entries/pages_error.
|
|
12
|
-
<link rel="modulepreload" href="/assets/chunks/chunk-
|
|
10
|
+
<script src="/assets/entries/entry-client-routing.DygxbdMN.js" type="module" async></script>
|
|
11
|
+
<link rel="modulepreload" href="/assets/entries/pages_error.BNv2Fuig.js" as="script" type="text/javascript">
|
|
12
|
+
<link rel="modulepreload" href="/assets/chunks/chunk-WT4fnZC5.js" as="script" type="text/javascript">
|
|
13
13
|
<link rel="modulepreload" href="/assets/chunks/chunk-D7HrI6pR.js" as="script" type="text/javascript">
|
|
14
14
|
</body>
|
|
15
15
|
</html>
|