Quellcode durchsuchen

change CDN of bokeh and plotly libs

wangweimin vor 3 Jahren
Ursprung
Commit
b4d882402b
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 5 5
      pywebio/platform/bokeh.py
  2. 1 1
      pywebio/platform/tpl/index.html

+ 5 - 5
pywebio/platform/bokeh.py

@@ -9,11 +9,11 @@ requirejs_config_tpl = """
 <script type="text/javascript">
 <script type="text/javascript">
 require.config({
 require.config({
     paths: {
     paths: {
-        "bokeh": "https://cdn.jsdelivr.net/npm/@bokeh/bokehjs@__version__/build/js/bokeh.min",
-        "bokeh-widgets": "https://cdn.jsdelivr.net/npm/@bokeh/bokehjs@__version__/build/js/bokeh-widgets.min",
-        "bokeh-tables": "https://cdn.jsdelivr.net/npm/@bokeh/bokehjs@__version__/build/js/bokeh-tables.min",
-        "bokeh-api": "https://cdn.jsdelivr.net/npm/@bokeh/bokehjs@__version__/build/js/bokeh-api.min",
-        "bokeh-gl": "https://cdn.jsdelivr.net/npm/@bokeh/bokehjs@__version__/build/js/bokeh-gl.min",
+        "bokeh": "https://cdn.bokeh.org/bokeh/release/bokeh-__version__.min",
+        "bokeh-widgets": "https://cdn.bokeh.org/bokeh/release/bokeh-widgets-__version__.min",
+        "bokeh-tables": "https://cdn.bokeh.org/bokeh/release/bokeh-tables-__version__.min",
+        "bokeh-api": "https://cdn.bokeh.org/bokeh/release/bokeh-api-__version__.min",
+        "bokeh-gl": "https://cdn.bokeh.org/bokeh/release/bokeh-gl-__version__.min",
     },
     },
     shim: {
     shim: {
         'bokeh': {
         'bokeh': {

+ 1 - 1
pywebio/platform/tpl/index.html

@@ -77,7 +77,7 @@
 
 
     require.config({
     require.config({
         paths: {
         paths: {
-            'plotly': "https://cdn.jsdelivr.net/npm/plotly.js/dist/plotly.min", // 'https://cdn.plot.ly/plotly-latest.min'
+            'plotly': "https://cdn.plot.ly/plotly-latest.min",
         },
         },
     });
     });