wbcore 1.59.6__py2.py3-none-any.whl → 1.59.7__py2.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.
- wbcore/configurations/configurations/templates.py +1 -1
- wbcore/contrib/example_app/templates/example_app/embedded_view.html +4 -4
- wbcore/contrib/example_app/views.py +1 -2
- wbcore/template.py +29 -0
- {wbcore-1.59.6.dist-info → wbcore-1.59.7.dist-info}/METADATA +1 -1
- {wbcore-1.59.6.dist-info → wbcore-1.59.7.dist-info}/RECORD +7 -6
- {wbcore-1.59.6.dist-info → wbcore-1.59.7.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<html>
|
|
2
2
|
<head>
|
|
3
|
-
<link rel="stylesheet" href="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{
|
|
3
|
+
<link rel="stylesheet" href="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{ FRONTEND_VERSION }}/embedded/main.css">
|
|
4
4
|
</head>
|
|
5
5
|
<body>
|
|
6
6
|
<h1>Embedded View Example</h1>
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<div style="height: 750px;" data-wb-endpoint="{% url 'example_app:team-list' %}" data-wb-lazy-load></div>
|
|
13
13
|
<div style="height: 750px;" data-wb-endpoint="{% url 'example_app:stadium-list' %}" data-wb-hide-control-bar data-wb-lazy-load data-wb-lazy-load-threshold="500"></div>
|
|
14
14
|
<script>window.wbcore_config_url = 'https://staging.atonra.stainly-bench.com/wbcore/config/'</script>
|
|
15
|
-
<script src="
|
|
16
|
-
<script src="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{
|
|
17
|
-
<script src="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{
|
|
15
|
+
<script src="{{ PLOTLY_CDN }}" charset="utf-8"></script>
|
|
16
|
+
<script src="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{ FRONTEND_VERSION }}/embedded/embeddedWbView-runtime.umd.js" type="module"></script>
|
|
17
|
+
<script src="https://stainly-cdn.fra1.cdn.digitaloceanspaces.com/static/{{ FRONTEND_VERSION }}/embedded/embeddedWbView-main.umd.js" type="module"></script>
|
|
18
18
|
</body>
|
|
19
19
|
</html>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
from django.conf import settings
|
|
2
1
|
from django.http import HttpRequest, HttpResponse
|
|
3
2
|
from django.shortcuts import render
|
|
4
3
|
|
|
5
4
|
|
|
6
5
|
def embedded_view_example(request: HttpRequest) -> HttpResponse:
|
|
7
|
-
return render(request, "example_app/embedded_view.html"
|
|
6
|
+
return render(request, "example_app/embedded_view.html")
|
wbcore/template.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from django.conf import settings
|
|
2
|
+
from django.template import TemplateDoesNotExist
|
|
3
|
+
from django.template.backends.django import DjangoTemplates as BaseDjangoTemplates
|
|
4
|
+
from django.template.backends.django import Template as BaseTemplate
|
|
5
|
+
from django.template.backends.django import reraise
|
|
6
|
+
from django.template.context import make_context
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Template(BaseTemplate):
|
|
10
|
+
def render(self, context=None, request=None):
|
|
11
|
+
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
|
|
12
|
+
context.update(
|
|
13
|
+
{
|
|
14
|
+
"PLOTLY_CDN": settings.WBCORE_PLOTLY_CDN_URL,
|
|
15
|
+
"FRONTEND_VERSION": settings.FRONTEND_VERSION,
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
try:
|
|
19
|
+
return self.template.render(context)
|
|
20
|
+
except TemplateDoesNotExist as exc:
|
|
21
|
+
reraise(exc, self.backend)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DjangoTemplates(BaseDjangoTemplates):
|
|
25
|
+
def get_template(self, template_name):
|
|
26
|
+
try:
|
|
27
|
+
return Template(self.engine.get_template(template_name), self)
|
|
28
|
+
except TemplateDoesNotExist as exc:
|
|
29
|
+
reraise(exc, self)
|
|
@@ -11,6 +11,7 @@ wbcore/messages.py,sha256=fSfELjXkastcd3gFiWGJrGI_dl0BzsKg8UfaApXf5nM,1967
|
|
|
11
11
|
wbcore/pagination.py,sha256=lOW1BzJwlATzfOHo4BJA23avrg_39-LCL6mHctsAoBk,2282
|
|
12
12
|
wbcore/routers.py,sha256=gLbQc8MRHuJax88FBDejtt3_MavE9KkwZMsQvAqJj0I,2174
|
|
13
13
|
wbcore/tasks.py,sha256=PXjAuJ3vQ8ESwucaLi0rfSAQneB5d3b5AODD0XC0naE,4102
|
|
14
|
+
wbcore/template.py,sha256=Vrr6G3dmzxgO15Ogh-UEa5HTouR587Ep6PBxHVGwNoU,1093
|
|
14
15
|
wbcore/urls.py,sha256=kis0kfmc4TnqHDxY9Kmck_W3jnotMdzDxMeuT2uXukY,4740
|
|
15
16
|
wbcore/views.py,sha256=6vfq4DfKmCJD27T_XvKdigMBy9NbpzcaBO3gYcq60tI,950
|
|
16
17
|
wbcore/workers.py,sha256=26PB4nhSay9LJ3DAj_G3gWZKX3ctu9WT4Ll0lC38L3k,351
|
|
@@ -41,7 +42,7 @@ wbcore/configurations/configurations/middleware.py,sha256=ITqS3loS2ottWLBLKDnaPu
|
|
|
41
42
|
wbcore/configurations/configurations/network.py,sha256=seM15W9V1_id6X2Vxff_8mpQODB2v-hs8q5QFo2zeWM,822
|
|
42
43
|
wbcore/configurations/configurations/rest_framework.py,sha256=u1c0cup3KnSr5CuWjxPYbnLxpTjIqeQ00zw9ADAx9hQ,2084
|
|
43
44
|
wbcore/configurations/configurations/static.py,sha256=-OZXJvFpSlPAYspkeq97PL1VdiV1nh5_BYPO0jGmiVk,690
|
|
44
|
-
wbcore/configurations/configurations/templates.py,sha256=
|
|
45
|
+
wbcore/configurations/configurations/templates.py,sha256=pCghzXBQXn-lN_1nmjnvCnAz1LaF0lLWZ34AhDz2QW0,575
|
|
45
46
|
wbcore/configurations/configurations/uvicorn.py,sha256=ZkklzlFwvMnOljNvr-Pl9QSGAGlNw-dYQjSiGx2GC-Y,368
|
|
46
47
|
wbcore/configurations/configurations/wbcore.py,sha256=t11pM-AFCMaFrQQxH9Kz58lVSYQO7ZeQCrkBZTlxAys,3023
|
|
47
48
|
wbcore/content_type/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -468,7 +469,7 @@ wbcore/contrib/example_app/apps.py,sha256=h5pkRPxGGVlXFq95eGayfPL9XJAwFHGrsigYxF
|
|
|
468
469
|
wbcore/contrib/example_app/models.py,sha256=_fyLDzUBJHrEq8PTbVGGmqGdll0mKp48EribeojqCZM,32831
|
|
469
470
|
wbcore/contrib/example_app/urls.py,sha256=KbHORgxYJc-w7415BSDf52eSsfjuvZV-0VKLLzRz90o,4813
|
|
470
471
|
wbcore/contrib/example_app/utils.py,sha256=zHEwC7IzIHpZoqFNVnuA75w0IIKKMR9xMpIYkNWKi5A,697
|
|
471
|
-
wbcore/contrib/example_app/views.py,sha256=
|
|
472
|
+
wbcore/contrib/example_app/views.py,sha256=OpwQciGHiLvjY56Gem3U4YfO8hM2FMGsrSoVz1qSTVE,214
|
|
472
473
|
wbcore/contrib/example_app/factories/__init__.py,sha256=eOak3Fa5SSIzUuBQxgozarS7ZXK5DMiws6z9pVJdAVc,318
|
|
473
474
|
wbcore/contrib/example_app/factories/event.py,sha256=BKlodLmQvVmq2cf0LIeriix9Agxznu-NHS1_Ns_AhWg,1049
|
|
474
475
|
wbcore/contrib/example_app/factories/league.py,sha256=xor6ZUBlNaJV_OTG8_NFjbJ7gc-n0k0Goj60p-jVqeg,648
|
|
@@ -506,7 +507,7 @@ wbcore/contrib/example_app/serializers/season.py,sha256=lQG5XpnwqvTbqpB-B6t3Uxj_
|
|
|
506
507
|
wbcore/contrib/example_app/serializers/sport.py,sha256=w6T-6inrBmWKY7OnqnP8EOn2WSctAmQcLeL3LOJJWpk,1299
|
|
507
508
|
wbcore/contrib/example_app/serializers/stadium.py,sha256=SkTDB92QC9ECwJePmu3tufkdG5nlwFw4u3Yle2HnkM8,2093
|
|
508
509
|
wbcore/contrib/example_app/serializers/teamresult.py,sha256=zCKFSP1RWHeh_OhAYr82zfY6a6TUxRMRdBVUifkQJ8A,1574
|
|
509
|
-
wbcore/contrib/example_app/templates/example_app/embedded_view.html,sha256=
|
|
510
|
+
wbcore/contrib/example_app/templates/example_app/embedded_view.html,sha256=iKwdmgGmY4PL5AC7FWYbXJ2Cv4D4yREi1G-R2D8g0Po,1482
|
|
510
511
|
wbcore/contrib/example_app/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
511
512
|
wbcore/contrib/example_app/tests/conftest.py,sha256=QyZxcZOxi8gQR2lXyQ1G3Ag9OdJnNAQhoZ-DyqE7WzI,430
|
|
512
513
|
wbcore/contrib/example_app/tests/signals.py,sha256=KfPXtAHWC4lF3gDO8-PNFL_PkYZUnmOJMExwRcQ7SuU,238
|
|
@@ -1233,6 +1234,6 @@ wbcore/viewsets/generics.py,sha256=lKDq9UY_Tyc56u1bqaIEvHGgoaXwXxpZ1c3fLVteptI,1
|
|
|
1233
1234
|
wbcore/viewsets/mixins.py,sha256=IdHd_uixOv3ExKoHxTgL5Bt8OELIwfYwhBZm0nsvZfc,12054
|
|
1234
1235
|
wbcore/viewsets/utils.py,sha256=4520Ij3ASM8lOa8QZkCqbBfOexVRiZu688eW-PGqMOA,882
|
|
1235
1236
|
wbcore/viewsets/viewsets.py,sha256=FPPESunEjlunDr5VFsjTfsquTS3iDSQkw0H6QjMKPqk,6574
|
|
1236
|
-
wbcore-1.59.
|
|
1237
|
-
wbcore-1.59.
|
|
1238
|
-
wbcore-1.59.
|
|
1237
|
+
wbcore-1.59.7.dist-info/METADATA,sha256=RfAq-41a0Bam7az-ii2DomjwzI5xDq2uJM-R60xVO90,2316
|
|
1238
|
+
wbcore-1.59.7.dist-info/WHEEL,sha256=aha0VrrYvgDJ3Xxl3db_g_MDIW-ZexDdrc_m-Hk8YY4,105
|
|
1239
|
+
wbcore-1.59.7.dist-info/RECORD,,
|
|
File without changes
|