diff options
author | Cheng-Han, Wu | 2016-06-17 16:27:37 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-17 16:27:37 +0800 |
commit | 71f61b7f840b7e557d44b130e69fdb3c9e24d6d9 (patch) | |
tree | c1251feaebefaa2f8e663680bbd45e506c845675 /public/views | |
parent | 5d031098274ddfd89d1d8476f896b881845f059a (diff) |
Update all client dependencies and cdn versions, workaround sequence-diagram svg to be resizable
Diffstat (limited to '')
-rw-r--r-- | public/views/foot.ejs | 31 | ||||
-rw-r--r-- | public/views/head.ejs | 2 | ||||
-rw-r--r-- | public/views/html.hbs | 8 | ||||
-rw-r--r-- | public/views/index.ejs | 32 | ||||
-rw-r--r-- | public/views/pretty.ejs | 18 | ||||
-rw-r--r-- | public/views/slide.ejs | 4 |
6 files changed, 47 insertions, 48 deletions
diff --git a/public/views/foot.ejs b/public/views/foot.ejs index 981c5eed..cb53acb1 100644 --- a/public/views/foot.ejs +++ b/public/views/foot.ejs @@ -3,15 +3,15 @@ </script> <% if(useCDN) { %> <script src="//cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js" defer></script> -<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> +<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js" defer></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js" defer></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.7/socket.io.min.js" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script> +<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.6/socket.io.min.js" defer></script> +<script src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.6.1/js-yaml.min.js" defer></script> <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment-with-locales.min.js" defer></script> -<script src="//cdnjs.cloudflare.com/ajax/libs/mermaid/0.5.8/mermaid.min.js" defer></script> +<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment-with-locales.min.js" defer></script> +<script src="//cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.min.js" defer></script> <% } else { %> <script src="<%- url %>/vendor/spin.js/spin.min.js" defer></script> <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> @@ -44,32 +44,31 @@ <script src="<%- url %>/vendor/markdown-it-container/dist/markdown-it-container.min.js" defer></script> <script src="<%- url %>/vendor/markdown-it-mathjax.js" defer></script> <script src="<%- url %>/vendor/markdown-it-regexp.js" defer></script> -<script src="<%- url %>/vendor/gist-embed.js" defer></script> <script src="<%- url %>/vendor/markdown-it-imsize.js" defer></script> +<script src="<%- url %>/vendor/gist-embed.min.js" defer></script> <script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script> <script src="<%- url %>/vendor/xss/dist/xss.min.js" defer></script> -<script src="<%- url %>/vendor/string.min.js" defer></script> +<script src="<%- url %>/vendor/string/dist/string.min.js" defer></script> <script src="<%- url %>/vendor/highlightjs/highlight.pack.min.js" defer></script> -<script src="<%- url %>/vendor/js.cookie.js" defer></script> +<script src="<%- url %>/vendor/js-cookie/src/js.cookie.js" defer></script> <script src="<%- url %>/vendor/handlebars/handlebars.min.js" defer></script> <script src="<%- url %>/vendor/emojify/js/emojify.min.js" defer></script> <script src="<%- url %>/vendor/to-markdown/dist/to-markdown.js" defer></script> <script src="<%- url %>/vendor/raphael/raphael.min.js" defer></script> -<script src="<%- url %>/vendor/lodash.min.js" defer></script> +<script src="<%- url %>/vendor/lodash/dist/lodash.min.js" defer></script> <script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script> <script src="<%- url %>/vendor/flowchart/release/flowchart.min.js" defer></script> <script src="<%- url %>/vendor/viz.js/viz.js" defer></script> -<script src="<%- url %>/vendor/FileSaver.min.js" defer></script> -<script src="<%- url %>/vendor/store.min.js" defer></script> +<script src="<%- url %>/vendor/file-saver/FileSaver.min.js" defer></script> +<script src="<%- url %>/vendor/store-js/store.min.js" defer></script> <script src="<%- url %>/vendor/js-url/url.min.js" defer></script> <script src="<%- url %>/vendor/jquery-textcomplete/jquery.textcomplete.js" defer></script> -<script src="<%- url %>/vendor/idle.js" defer></script> -<script src="<%- url %>/vendor/visibility-1.2.1.min.js" defer></script> -<script src="<%- url %>/vendor/list.min.js" defer></script> -<script src="<%- url %>/vendor/md5.min.js" defer></script> +<script src="<%- url %>/vendor/Idle.Js/build/idle.min.js" defer></script> +<script src="<%- url %>/vendor/visibilityjs/lib/visibility.core.js" defer></script> +<script src="<%- url %>/vendor/list.js/dist/list.min.js" defer></script> <script src="<%- url %>/vendor/md-toc.js" defer></script> <script src="<%- url %>/vendor/showup/showup.js" defer></script> -<script src="<%- url %>/vendor/randomColor.js" defer></script> +<script src="<%- url %>/vendor/randomcolor/randomColor.js" defer></script> <script src="<%- url %>/js/google-drive-upload.js" defer></script> <script src="<%- url %>/js/google-drive-picker.js" defer></script> <script src="<%- url %>/js/common.js" defer></script> diff --git a/public/views/head.ejs b/public/views/head.ejs index 03379134..3dcf4866 100644 --- a/public/views/head.ejs +++ b/public/views/head.ejs @@ -12,7 +12,7 @@ <link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png"> <% if(useCDN) { %> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> -<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css"> +<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> <link rel="stylesheet" href="//cdn.jsdelivr.net/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css"> diff --git a/public/views/html.hbs b/public/views/html.hbs index 4c6ff00d..33fbd536 100644 --- a/public/views/html.hbs +++ b/public/views/html.hbs @@ -17,10 +17,10 @@ <link rel="apple-touch-icon" href="{{{url}}}/apple-touch-icon.png"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css"> - <link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/8.8.0/styles/github-gist.min.css"> + <link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.4.0/styles/github-gist.min.css"> <style> {{{css}}} </style> @@ -48,9 +48,9 @@ <div id="toc-affix" class="ui-affix-toc ui-toc-dropdown unselectable hidden-print" data-spy="affix" style="top:17px;display:none;" {{{lang}}} {{{dir}}}> {{{toc-affix}}} </div> - <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> - <script src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.2/gist-embed.min.js" defer></script> + <script src="https://cdnjs.cloudflare.com/ajax/libs/gist-embed/2.4/gist-embed.min.js" defer></script> <script> var markdown = $(".markdown-body"); //smooth all hash trigger scrolling diff --git a/public/views/index.ejs b/public/views/index.ejs index a720440a..bd6d9522 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -154,24 +154,24 @@ ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <% if(useCDN) { %> - <script src="//code.jquery.com/jquery-1.11.3.min.js" defer></script> + <script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js" defer></script> <script src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js" defer></script> - <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment-with-locales.min.js" defer></script> - <script src="//cdnjs.cloudflare.com/ajax/libs/js-url/2.0.2/url.min.js" defer></script> - <% } else { %> - <script src="<%- url %>/vendor/jquery/dist/jquery.min.js" defer></script> + <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment-with-locales.min.js" defer></script> + <script src="//cdnjs.cloudflare.com/ajax/libs/js-url/2.3.0/url.min.js" defer></script> + <% } else { %> + <script src="<%- url %>/vendor/jquery/dist/jquery.min.js" defer></script> <script src="<%- url %>/vendor/velocity/velocity.min.js" defer></script> - <script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script> - <script src="<%- url %>/vendor/select2/select2.min.js" defer></script> - <script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script> - <script src="<%- url %>/vendor/js-url/url.min.js" defer></script> - <% } %> - <script src="<%- url %>/vendor/js.cookie.js" defer></script> - <script src="<%- url %>/vendor/list.min.js" defer></script> - <script src="<%- url %>/vendor/FileSaver.min.js" defer></script> - <script src="<%- url %>/vendor/store.min.js" defer></script> + <script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script> + <script src="<%- url %>/vendor/select2/select2.min.js" defer></script> + <script src="<%- url %>/vendor/moment/min/moment-with-locales.min.js" defer></script> + <script src="<%- url %>/vendor/js-url/url.min.js" defer></script> + <% } %> + <script src="<%- url %>/vendor/js-cookie/src/js.cookie.js" defer></script> + <script src="<%- url %>/vendor/list.js/dist/list.min.js" defer></script> + <script src="<%- url %>/vendor/file-saver/FileSaver.min.js" defer></script> + <script src="<%- url %>/vendor/store-js/store.min.js" defer></script> <script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script> <script src="<%- url %>/js/common.js" defer></script> <script src="<%- url %>/js/history.js" defer></script> diff --git a/public/views/pretty.ejs b/public/views/pretty.ejs index 0307f853..0a541107 100644 --- a/public/views/pretty.ejs +++ b/public/views/pretty.ejs @@ -16,7 +16,7 @@ <link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png"> <% if(useCDN) { %> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> - <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css"> + <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/ionicons/2.0.1/css/ionicons.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/3.5.0/octicons.min.css"> <% } else { %> @@ -75,12 +75,12 @@ MathJax.Hub.Config({ messageStyle: "none", skipStartupTypeset: true ,tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], processEscapes: true }}); </script> <% if(useCDN) { %> -<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> +<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" defer></script> -<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.4.6/js-yaml.min.js" defer></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/js-yaml/3.6.1/js-yaml.min.js" defer></script> <script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" defer></script> -<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.12.0/moment-with-locales.min.js" defer></script> -<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/0.5.8/mermaid.min.js" defer></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment-with-locales.min.js" defer></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/6.0.0/mermaid.min.js" defer></script> <% } else { %> <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> <script src="<%- url %>/vendor/bootstrap/dist/js/bootstrap.min.js" defer></script> @@ -102,14 +102,14 @@ <script src="<%- url %>/vendor/markdown-it-container/dist/markdown-it-container.min.js" defer></script> <script src="<%- url %>/vendor/markdown-it-mathjax.js" defer></script> <script src="<%- url %>/vendor/markdown-it-regexp.js" defer></script> -<script src="<%- url %>/vendor/gist-embed.js" defer></script> -<script src="<%- url %>/vendor/string.min.js" defer></script> <script src="<%- url %>/vendor/markdown-it-imsize.js" defer></script> +<script src="<%- url %>/vendor/gist-embed.min.js" defer></script> +<script src="<%- url %>/vendor/string/dist/string.min.js" defer></script> <script src="<%- url %>/vendor/highlightjs/highlight.pack.min.js" defer></script> -<script src="<%- url %>/vendor/js.cookie.js" defer></script> +<script src="<%- url %>/vendor/js-cookie/src/js.cookie.js" defer></script> <script src="<%- url %>/vendor/emojify/js/emojify.min.js" defer></script> <script src="<%- url %>/vendor/raphael/raphael.min.js" defer></script> -<script src="<%- url %>/vendor/lodash.min.js" defer></script> +<script src="<%- url %>/vendor/lodash/dist/lodash.min.js" defer></script> <script src="<%- url %>/vendor/sequence-diagrams/sequence-diagram-min.js" defer></script> <script src="<%- url %>/vendor/flowchart/release/flowchart.min.js" defer></script> <script src="<%- url %>/vendor/viz.js/viz.js" defer></script> diff --git a/public/views/slide.ejs b/public/views/slide.ejs index 3a329261..27ccfdf8 100644 --- a/public/views/slide.ejs +++ b/public/views/slide.ejs @@ -20,7 +20,7 @@ <script> document.write( '<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); </script> - <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> + <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> <script src="<%- url %>/vendor/velocity/velocity.min.js"></script> </head> <body> @@ -31,7 +31,7 @@ <script src="<%- url %>/vendor/reveal.js/lib/js/head.min.js"></script> <script src="<%- url %>/vendor/reveal.js/js/reveal.js"></script> - <script src="<%- url %>/vendor/string.min.js"></script> + <script src="<%- url %>/vendor/string/dist/string.min.js"></script> <script src="<%- url %>/vendor/xss/dist/xss.min.js"></script> <script src="<%- url %>/js/render.js"></script> |