solara-enterprise 1.37.2__tar.gz → 1.39.0__tar.gz

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.
Files changed (24) hide show
  1. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/PKG-INFO +3 -3
  2. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/pyproject.toml +2 -2
  3. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/__init__.py +1 -1
  4. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/starlette.py +1 -1
  5. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/search/search.py +8 -0
  6. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/search/search.vue +1 -1
  7. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/.gitignore +0 -0
  8. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/LICENSE +0 -0
  9. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/RELEASE.md +0 -0
  10. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/__init__.py +0 -0
  11. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/components.py +0 -0
  12. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/flask.py +0 -0
  13. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/middleware.py +0 -0
  14. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/auth/utils.py +0 -0
  15. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/__init__.py +0 -0
  16. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/base.py +0 -0
  17. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/disk.py +0 -0
  18. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/memory_size.py +0 -0
  19. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/multi_level.py +0 -0
  20. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/cache/redis.py +0 -0
  21. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/license.py +0 -0
  22. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/search/__init__.py +0 -0
  23. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/search/index.py +0 -0
  24. {solara_enterprise-1.37.2 → solara_enterprise-1.39.0}/solara_enterprise/ssg.py +0 -0
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: solara-enterprise
3
- Version: 1.37.2
3
+ Version: 1.39.0
4
4
  Dynamic: Summary
5
5
  Project-URL: Home, https://www.github.com/widgetti/solara
6
6
  Author-email: "Maarten A. Breddels" <maartenbreddels@gmail.com>, Mario Buikhuizen <mariobuikhuizen@gmail.com>
7
7
  License: Not open source, contact contact@solara.dev for licencing.
8
8
  License-File: LICENSE
9
9
  Classifier: License :: Free for non-commercial use
10
- Requires-Dist: solara-server==1.37.2
11
- Requires-Dist: solara-ui==1.37.2
10
+ Requires-Dist: solara-server==1.39.0
11
+ Requires-Dist: solara-ui==1.39.0
12
12
  Provides-Extra: all
13
13
  Requires-Dist: solara-enterprise[auth]; extra == 'all'
14
14
  Requires-Dist: solara-enterprise[cache]; extra == 'all'
@@ -11,8 +11,8 @@ license = {file = "LICENSE"}
11
11
  classifiers = ["License :: Free for non-commercial use"]
12
12
  dynamic = ["version", "description"]
13
13
  dependencies = [
14
- "solara-ui==1.37.2",
15
- "solara-server==1.37.2",
14
+ "solara-ui==1.39.0",
15
+ "solara-server==1.39.0",
16
16
  ]
17
17
 
18
18
  [project.optional-dependencies]
@@ -1,3 +1,3 @@
1
1
  "Enterprise features for Solara"
2
2
 
3
- __version__ = "1.37.2"
3
+ __version__ = "1.39.0"
@@ -92,7 +92,7 @@ async def login(request: Request, redirect_uri: Optional[str] = None):
92
92
  # where it detect we the OAuth.required=True setting, leading to a redirect
93
93
  request.session["redirect_uri"] = str(request.url.path)
94
94
  request.session["client_id"] = settings.oauth.client_id
95
- result = await oauth.oauth1.authorize_redirect(request, str(request.base_url) + "_solara/auth/authorize")
95
+ result = await oauth.oauth1.authorize_redirect(request, str(settings.main.base_url) + "_solara/auth/authorize")
96
96
  return result
97
97
 
98
98
 
@@ -10,6 +10,14 @@ class SearchWidget(ipyvue.VueTemplate):
10
10
  query = traitlets.Unicode("", allow_none=True).tag(sync=True)
11
11
  search_open = traitlets.Bool(False).tag(sync=True)
12
12
  failed = traitlets.Bool(False).tag(sync=True)
13
+ cdn = traitlets.Unicode(None, allow_none=True).tag(sync=True)
14
+
15
+ @traitlets.default("cdn")
16
+ def _cdn(self):
17
+ import solara.settings
18
+
19
+ if not solara.settings.assets.proxy:
20
+ return solara.settings.assets.cdn
13
21
 
14
22
 
15
23
  @solara.component
@@ -154,7 +154,7 @@ module.exports = {
154
154
  return base
155
155
  },
156
156
  getCdn() {
157
- return window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`;
157
+ return this.cdn || (window.solara ? window.solara.cdn : `${this.getJupyterBaseUrl()}_solara/cdn`);
158
158
  },
159
159
  }
160
160
  }