solara-enterprise 1.37.2__py2.py3-none-any.whl → 1.39.0__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.
@@ -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
  }
@@ -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'
@@ -1,11 +1,11 @@
1
- solara_enterprise/__init__.py,sha256=crYcFiRg9ENnxDv4zF8yOH9A-KGeNxW_a8XGYz6aSDA,57
1
+ solara_enterprise/__init__.py,sha256=ZWpRHDpYxArw7DA1SmEV8Z4iLyO7v4U4fo1NfMSqS1o,57
2
2
  solara_enterprise/license.py,sha256=GCGEs3x9rtKf0dYUcHkx-yteIQuRlgnS8hPbl9BDAXs,412
3
3
  solara_enterprise/ssg.py,sha256=uw3397RX0Qmg-OqOsgwaePDymhUvZTTFcBKkSWy1uCk,8935
4
4
  solara_enterprise/auth/__init__.py,sha256=83RGLIkVJrb6R1iZxg5YS0R3kaCmqMHu4qs8S74LJXo,513
5
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
- solara_enterprise/auth/starlette.py,sha256=8jfBfmaiXIFr38NVlYw9sT3wTZFgRl6nb7sicEkEGh0,3931
8
+ solara_enterprise/auth/starlette.py,sha256=-vow0-dhOLn_H5QJ79F4jynZnn6O63iHVYWqgtxMz4Q,3937
9
9
  solara_enterprise/auth/utils.py,sha256=E54A4NNaRWhPLxB7K-B3YlHZsaCySyf3aT0Db0khOLo,1506
10
10
  solara_enterprise/cache/__init__.py,sha256=pvQocwiJeUF6V8KFtQl0xPNGo7kNnWhjWCOcChwMP_Q,47
11
11
  solara_enterprise/cache/base.py,sha256=Gx-p7khDFSxbdgG83aka7zABx5dLRtt9d9j4Zv69lwU,2098
@@ -15,9 +15,9 @@ solara_enterprise/cache/multi_level.py,sha256=hMjruI1cwNwDajaRXAJ7TxQqfw5XWRvtYu
15
15
  solara_enterprise/cache/redis.py,sha256=_GlACNJ5hfpRJ2Hw_2k3ma6gwEVLoVNTplS0Q5cGcRk,779
16
16
  solara_enterprise/search/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  solara_enterprise/search/index.py,sha256=W98DC_6SmQDCfX5YcmS6OfZbO0LheleBmo0FUI7NOqU,3303
18
- solara_enterprise/search/search.py,sha256=rnVHP81AwL0GR8s5vnNU6rpEIqCVnZSgwfFfCuoibCQ,467
19
- solara_enterprise/search/search.vue,sha256=QeqsAJ1sEdFX6d6f63RAGf9GcooZyTGyy8rmZ71PSlo,5991
20
- solara_enterprise-1.37.2.dist-info/METADATA,sha256=LOySLfOxCp0FRCti3kgA7Eg8K2rG3q4ceDAY5fM48c0,989
21
- solara_enterprise-1.37.2.dist-info/WHEEL,sha256=L5_n4Kc1NmrSdVgbp6hdnwwVwBnoYOCnbHBRMD-qNJ4,105
22
- solara_enterprise-1.37.2.dist-info/licenses/LICENSE,sha256=04_xbTWtvdcQomu6IXsIkniKk8EcD9P1GyJM2dYPoSU,59
23
- solara_enterprise-1.37.2.dist-info/RECORD,,
18
+ solara_enterprise/search/search.py,sha256=MzChv6DAsG2_ehPltI87orQqBqtY1xkBzXW8eDtMusU,707
19
+ solara_enterprise/search/search.vue,sha256=PSE8KlKHQQY-ZbaNj4eOGSIB9AXH8qmdTDqnDb0l5Kc,6005
20
+ solara_enterprise-1.39.0.dist-info/METADATA,sha256=9x-aIJ3Dj6ouj33byYLHTym5_0zQK7n6JwIEcobNVxg,989
21
+ solara_enterprise-1.39.0.dist-info/WHEEL,sha256=L5_n4Kc1NmrSdVgbp6hdnwwVwBnoYOCnbHBRMD-qNJ4,105
22
+ solara_enterprise-1.39.0.dist-info/licenses/LICENSE,sha256=04_xbTWtvdcQomu6IXsIkniKk8EcD9P1GyJM2dYPoSU,59
23
+ solara_enterprise-1.39.0.dist-info/RECORD,,