Browse Source

Remove duplicate and unused index.html in the examples folder

Eric Charles 4 years ago
parent
commit
3e91b6a830

+ 0 - 29
examples/app/index.html

@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-  <title>{{page_config['appName'] | e}}</title>
-</head>
-<body>
-    {# Copy so we do not modify the page_config with updates. #}
-    {% set page_config_full = page_config.copy() %}
-    
-    {# Set a dummy variable - we just want the side effect of the update. #}
-    {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}
-    
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-    <script src="{{page_config['fullStaticUrl'] | e}}/bundle.js" main="index"></script>
-
-  <script type="text/javascript">
-    /* Remove token from URL. */
-    (function () {
-      var parsedUrl = new URL(window.location.href);
-      if (parsedUrl.searchParams.get('token')) {
-        parsedUrl.searchParams.delete('token');
-        window.history.replaceState({ }, '', parsedUrl.href);
-      }
-    })();
-  </script>
-</body>
-</html>

+ 0 - 27
examples/cell/index.html

@@ -1,27 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Cell Demo</title>
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML-full,Safe&amp;delayStartupUntil=configured"></script>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
-
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-    <script src="{{base_url | e}}static/example/bundle.js"></script>
-
-    <script type="text/javascript">
-      /* Remove token from URL. */
-      (function () {
-        var parsedUrl = new URL(window.location.href);
-        if (parsedUrl.searchParams.get('token')) {
-          parsedUrl.searchParams.delete('token');
-          window.history.replaceState({ }, '', parsedUrl.href);
-        }
-      })();
-    </script>
-
-  </body>
-</html>

+ 0 - 28
examples/console/index.html

@@ -1,28 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Console Demo</title>
-    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML-full,Safe&amp;delayStartupUntil=configured"></script>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
-
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-
-    <script src="{{base_url | e}}static/example/bundle.js"></script>
-
-    <script type="text/javascript">
-      /* Remove token from URL. */
-      (function () {
-        var parsedUrl = new URL(window.location.href);
-        if (parsedUrl.searchParams.get('token')) {
-          parsedUrl.searchParams.delete('token');
-          window.history.replaceState({ }, '', parsedUrl.href);
-        }
-      })();
-    </script>
-
-  </body>
-</html>

+ 0 - 27
examples/filebrowser/index.html

@@ -1,27 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>FileBrowser Demo</title>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url, 'token': token} %}
-    
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-  
-    <script src="{{base_url | e}}static/example/bundle.js"></script>
-
-    <script type="text/javascript">
-      /* Remove token from URL. */
-      (function () {
-        var parsedUrl = new URL(window.location.href);
-        if (parsedUrl.searchParams.get('token')) {
-          parsedUrl.searchParams.delete('token');
-          window.history.replaceState({ }, '', parsedUrl.href);
-        }
-      })();
-    </script>
-
-  </body>
-</html>

+ 0 - 59
examples/notebook/error.html

@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) Jupyter Development Team.
-Distributed under the terms of the Modified BSD License.
--->
-<html>
-
-<head>
-  <meta charset="utf-8">
-
-  <title>{% block title %}{{page_title | e}}{% endblock %}</title>
-
-  {% block favicon %}<link rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon.ico">{% endblock %}
-
-</head>
-
-<body>
-
-{% block stylesheet %}
-<style type="text/css">
-/* disable initial hide */
-div#header, div#site {
-    display: block;
-}
-</style>
-{% endblock %}
-{% block site %}
-
-<div class="error">
-    {% block h1_error %}
-    <h1>{{status_code | e}} : {{status_message | e}}</h1>
-    {% endblock h1_error %}
-    {% block error_detail %}
-    {% if message %}
-    <p>The error was:</p>
-    <div class="traceback-wrapper">
-    <pre class="traceback">{{message | e}}</pre>
-    </div>
-    {% endif %}
-    {% endblock %}
-</header>
-
-{% endblock %}
-
-{% block script %}
-<script type='text/javascript'>
-window.onload = function () {
-  var tb = document.getElementsByClassName('traceback')[0];
-  tb.scrollTop = tb.scrollHeight;
-  {% if message %}
-  console.error("{{message | e}}")
-  {% endif %}
-};
-</script>
-{% endblock script %}
-
-</body>
-
-</html>

+ 0 - 26
examples/notebook/index.html

@@ -1,26 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Terminal Demo</title>
-  </head>
-  <body>
-    
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config | tojson }}
-    </script>
-  
-    <script src="{{base_url | e}}static/example/bundle.js"></script>
-
-    <script type="text/javascript">
-      /* Remove token from URL. */
-      (function () {
-        var parsedUrl = new URL(window.location.href);
-        if (parsedUrl.searchParams.get('token')) {
-          parsedUrl.searchParams.delete('token');
-          window.history.replaceState({ }, '', parsedUrl.href);
-        }
-      })();
-    </script>
-
-  </body>
-</html>

+ 0 - 27
examples/terminal/index.html

@@ -1,27 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Terminal Demo</title>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url, 'token': token, 'terminalsAvailable': terminals_available} %}
-    
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-  
-    <script src="{{base_url | e}}static/example/bundle.js"></script>
-
-    <script type="text/javascript">
-      /* Remove token from URL. */
-      (function () {
-        var parsedUrl = new URL(window.location.href);
-        if (parsedUrl.searchParams.get('token')) {
-          parsedUrl.searchParams.delete('token');
-          window.history.replaceState({ }, '', parsedUrl.href);
-        }
-      })();
-    </script>
-
-  </body>
-</html>

+ 0 - 17
packages/services/examples/browser/index.html

@@ -1,17 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Jupyter Services Demo</title>
-    <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js"></script>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url} %}
-
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-  
-    <script src="{{page_config['fullStaticUrl'] | e}}/bundle.js" main="index"></script>
-    <pre id='output'></pre>
-  </body>
-</html>

+ 0 - 17
packages/services/examples/typescript-browser-with-output/index.html

@@ -1,17 +0,0 @@
-<!doctype html>
-<html lang="en">
-  <head>
-    <title>Jupyter Services Demo</title>
-    <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.js"></script>
-  </head>
-  <body>
-    {% set page_config_full = {'baseUrl': base_url} %}
-
-    <script id="jupyter-config-data" type="application/json">
-      {{ page_config_full | tojson }}
-    </script>
-
-    <script src="{{page_config['fullStaticUrl'] | e}}/bundle.js" main="index"></script>
-    <span id='outputarea'></span>
-  </body>
-</html>