Преглед на файлове

replace some HTTP links with HTTPS equivalents

Falko Schindler преди 1 година
родител
ревизия
5d25e54914
променени са 5 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 1 1
      README.md
  2. 1 1
      examples/simpy/async_realtime_environment.py
  3. 1 1
      tests/test_helpers.py
  4. 2 2
      website/documentation/content/leaflet_documentation.py
  5. 1 1
      website/main_page.py

+ 1 - 1
README.md

@@ -1,4 +1,4 @@
-<a href="http://nicegui.io/#about">
+<a href="https://nicegui.io/#about">
   <img src="https://raw.githubusercontent.com/zauberzeug/nicegui/main/screenshot.png"
   <img src="https://raw.githubusercontent.com/zauberzeug/nicegui/main/screenshot.png"
     width="200" align="right" alt="Try online!" />
     width="200" align="right" alt="Try online!" />
 </a>
 </a>

+ 1 - 1
examples/simpy/async_realtime_environment.py

@@ -39,7 +39,7 @@ class AsyncRealtimeEnvironment(RealtimeEnvironment):
             )
             )
 
 
         # Sleep in a loop to fix inaccuracies of windows (see
         # Sleep in a loop to fix inaccuracies of windows (see
-        # http://stackoverflow.com/a/15967564 for details) and to ignore
+        # https://stackoverflow.com/a/15967564 for details) and to ignore
         # interrupts.
         # interrupts.
         while True:
         while True:
             delta = real_time - monotonic()
             delta = real_time - monotonic()

+ 1 - 1
tests/test_helpers.py

@@ -86,4 +86,4 @@ def test_is_file():
     assert not helpers.is_file('data:image/png;base64,...')
     assert not helpers.is_file('data:image/png;base64,...')
     assert not helpers.is_file(None)
     assert not helpers.is_file(None)
     assert not helpers.is_file('x' * 100_000), 'a very long filepath should not lead to OSError 63'
     assert not helpers.is_file('x' * 100_000), 'a very long filepath should not lead to OSError 63'
-    assert not helpers.is_file('http://nicegui.io/logo.png')
+    assert not helpers.is_file('https://nicegui.io/logo.png')

+ 2 - 2
website/documentation/content/leaflet_documentation.py

@@ -30,7 +30,7 @@ def map_style() -> None:
         options={
         options={
             'maxZoom': 17,
             'maxZoom': 17,
             'attribution':
             'attribution':
-                'Map data: &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | '
+                'Map data: &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="https://viewfinderpanoramas.org/">SRTM</a> | '
                 'Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
                 'Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
         },
         },
     )
     )
@@ -139,7 +139,7 @@ def run_layer_methods() -> None:
     ui.button('Hide', on_click=lambda: marker.run_method('setOpacity', 0.3))
     ui.button('Hide', on_click=lambda: marker.run_method('setOpacity', 0.3))
     ui.button('Show', on_click=lambda: marker.run_method('setOpacity', 1.0))
     ui.button('Show', on_click=lambda: marker.run_method('setOpacity', 1.0))
 
 
-    icon = 'L.icon({iconUrl: "http://leafletjs.com/examples/custom-icons/leaf-green.png"})'
+    icon = 'L.icon({iconUrl: "https://leafletjs.com/examples/custom-icons/leaf-green.png"})'
     ui.button('Change icon', on_click=lambda: marker.run_method(':setIcon', icon))
     ui.button('Change icon', on_click=lambda: marker.run_method(':setIcon', icon))
 
 
 
 

+ 1 - 1
website/main_page.py

@@ -132,7 +132,7 @@ def create() -> None:
             features('anchor', 'Foundation', [
             features('anchor', 'Foundation', [
                 'generic [Vue](https://vuejs.org/) to Python bridge',
                 'generic [Vue](https://vuejs.org/) to Python bridge',
                 'dynamic GUI through [Quasar](https://quasar.dev/)',
                 'dynamic GUI through [Quasar](https://quasar.dev/)',
-                'content is served with [FastAPI](http://fastapi.tiangolo.com/)',
+                'content is served with [FastAPI](https://fastapi.tiangolo.com/)',
                 'Python 3.8+',
                 'Python 3.8+',
             ])
             ])