solara-enterprise 1.29.1__py2.py3-none-any.whl → 1.30.1__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.
- solara_enterprise/__init__.py +1 -1
- solara_enterprise/auth/components.py +1 -1
- solara_enterprise/ssg.py +8 -2
- {solara_enterprise-1.29.1.dist-info → solara_enterprise-1.30.1.dist-info}/METADATA +4 -3
- {solara_enterprise-1.29.1.dist-info → solara_enterprise-1.30.1.dist-info}/RECORD +7 -7
- {solara_enterprise-1.29.1.dist-info → solara_enterprise-1.30.1.dist-info}/WHEEL +1 -1
- {solara_enterprise-1.29.1.dist-info → solara_enterprise-1.30.1.dist-info}/licenses/LICENSE +0 -0
solara_enterprise/__init__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"Enterprise features for Solara"
|
|
2
|
-
__version__ = "1.
|
|
2
|
+
__version__ = "1.30.1"
|
|
@@ -28,7 +28,7 @@ def AvatarMenu(image_url: Optional[str] = None, size: Union[int, str] = 40, colo
|
|
|
28
28
|
solara.Button("Logout", icon_name="mdi-logout", href=auth.get_logout_url())
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Note that a common use case is to put the avatar in the [AppBar](/
|
|
31
|
+
Note that a common use case is to put the avatar in the [AppBar](/documentation/components/layout/app_bar).
|
|
32
32
|
```solara
|
|
33
33
|
import solara
|
|
34
34
|
from solara_enterprise import auth
|
solara_enterprise/ssg.py
CHANGED
|
@@ -49,6 +49,7 @@ def _get_playwright():
|
|
|
49
49
|
|
|
50
50
|
pw.browser = pw.sync_playwright.chromium.launch(headless=not settings.ssg.headed)
|
|
51
51
|
pw.page = pw.browser.new_page()
|
|
52
|
+
playwrights.append(pw)
|
|
52
53
|
return pw
|
|
53
54
|
|
|
54
55
|
|
|
@@ -81,12 +82,13 @@ def ssg_crawl(base_url: str):
|
|
|
81
82
|
|
|
82
83
|
for result in results:
|
|
83
84
|
wait(result)
|
|
84
|
-
thread_pool.
|
|
85
|
+
thread_pool.close()
|
|
86
|
+
thread_pool.join()
|
|
85
87
|
for pw in playwrights:
|
|
86
88
|
assert pw.browser is not None
|
|
87
89
|
assert pw.context_manager is not None
|
|
88
90
|
pw.browser.close()
|
|
89
|
-
pw.context_manager.
|
|
91
|
+
pw.context_manager.__exit__(None, None, None)
|
|
90
92
|
|
|
91
93
|
rprint("Done building SSG")
|
|
92
94
|
|
|
@@ -205,6 +207,10 @@ def _ssg_data(html: str) -> Optional[SSGData]:
|
|
|
205
207
|
rendered_styles = soup.find_all("style")
|
|
206
208
|
for style in rendered_styles:
|
|
207
209
|
style_html = str(style)
|
|
210
|
+
# skip css that was already in the template so we don't include it multiple times
|
|
211
|
+
# or such that we do not include the CSS from the theme as ssg build time
|
|
212
|
+
if 'class="solara-template-css"' in style_html:
|
|
213
|
+
continue
|
|
208
214
|
# in case we want to skip the mathjax css
|
|
209
215
|
# if "MJXZERO" in style_html:
|
|
210
216
|
# continue
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: solara-enterprise
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.30.1
|
|
4
|
+
Dynamic: Summary
|
|
4
5
|
Project-URL: Home, https://www.github.com/widgetti/solara
|
|
5
6
|
Author-email: "Maarten A. Breddels" <maartenbreddels@gmail.com>, Mario Buikhuizen <mariobuikhuizen@gmail.com>
|
|
6
7
|
License: Not open source, contact contact@solara.dev for licencing.
|
|
7
8
|
License-File: LICENSE
|
|
8
9
|
Classifier: License :: Free for non-commercial use
|
|
9
|
-
Requires-Dist: solara==1.
|
|
10
|
+
Requires-Dist: solara==1.30.1
|
|
10
11
|
Provides-Extra: all
|
|
11
12
|
Requires-Dist: solara-enterprise[auth]; extra == 'all'
|
|
12
13
|
Requires-Dist: solara-enterprise[cache]; extra == 'all'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
solara_enterprise/__init__.py,sha256=
|
|
1
|
+
solara_enterprise/__init__.py,sha256=GuOtYdMiD90tYmfLBZ_W3kpmIj8Img-TfPFjibfWud4,56
|
|
2
2
|
solara_enterprise/license.py,sha256=GCGEs3x9rtKf0dYUcHkx-yteIQuRlgnS8hPbl9BDAXs,412
|
|
3
|
-
solara_enterprise/ssg.py,sha256=
|
|
3
|
+
solara_enterprise/ssg.py,sha256=Effd_X5VbTFIbyrGlZDAnoUWID1VbQb8w59xjVLJsu8,7752
|
|
4
4
|
solara_enterprise/auth/__init__.py,sha256=83RGLIkVJrb6R1iZxg5YS0R3kaCmqMHu4qs8S74LJXo,513
|
|
5
|
-
solara_enterprise/auth/components.py,sha256=
|
|
5
|
+
solara_enterprise/auth/components.py,sha256=mTazvLWJrduS6CrcsY60BJgkvQztH5X67CkOCRFXYV4,4038
|
|
6
6
|
solara_enterprise/auth/flask.py,sha256=Y__abnQPnP1cdQAkU8BBg9FuWMZ1rNnUmTLE_x19MlE,3539
|
|
7
7
|
solara_enterprise/auth/middleware.py,sha256=f9yshp6e0M2RSBaJaoeZisYlnM52NEYHTmsnjrW-h3c,5027
|
|
8
8
|
solara_enterprise/auth/starlette.py,sha256=8jfBfmaiXIFr38NVlYw9sT3wTZFgRl6nb7sicEkEGh0,3931
|
|
@@ -17,7 +17,7 @@ solara_enterprise/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
17
17
|
solara_enterprise/search/index.py,sha256=iBdvVyM_v7UGPlwBnPwWIBMLhy3ezFSTBvzmeb7SKW4,3307
|
|
18
18
|
solara_enterprise/search/search.py,sha256=rnVHP81AwL0GR8s5vnNU6rpEIqCVnZSgwfFfCuoibCQ,467
|
|
19
19
|
solara_enterprise/search/search.vue,sha256=Aoyp9XPK9dDlKCymJqAtT6eoTsEoAOIe6zXiJYup5f4,6127
|
|
20
|
-
solara_enterprise-1.
|
|
21
|
-
solara_enterprise-1.
|
|
22
|
-
solara_enterprise-1.
|
|
23
|
-
solara_enterprise-1.
|
|
20
|
+
solara_enterprise-1.30.1.dist-info/METADATA,sha256=cSSve0eD3zMHmf36PMp8AFwO5b7XpJODby3oS1AKF-8,949
|
|
21
|
+
solara_enterprise-1.30.1.dist-info/WHEEL,sha256=q6Ejfpj4HRnt7o1XWgEOo5g7W0PKmxxzhdMpcVNBe68,105
|
|
22
|
+
solara_enterprise-1.30.1.dist-info/licenses/LICENSE,sha256=04_xbTWtvdcQomu6IXsIkniKk8EcD9P1GyJM2dYPoSU,59
|
|
23
|
+
solara_enterprise-1.30.1.dist-info/RECORD,,
|
|
File without changes
|