From dae1d3b0c511cc909429822b0124b558a427773f Mon Sep 17 00:00:00 2001 From: jsDelivr Bot Date: Fri, 7 Dec 2018 17:59:21 +0100 Subject: [PATCH] Replace RawGit with jsDelivr --- apps/sheets.html | 2 +- apps/study.html | 2 +- apps/survey.html | 2 +- docs/d5038f03b73d97e967f3012ad5cb2884.js | 2 +- docs/navigation.json | 2 +- gun.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/sheets.html b/apps/sheets.html index eb1937f..4c7e774 100644 --- a/apps/sheets.html +++ b/apps/sheets.html @@ -17,7 +17,7 @@ - + diff --git a/apps/survey.html b/apps/survey.html index 859e3c9..7e971d6 100644 --- a/apps/survey.html +++ b/apps/survey.html @@ -53,7 +53,7 @@

Surveys:

diff --git a/docs/d5038f03b73d97e967f3012ad5cb2884.js b/docs/d5038f03b73d97e967f3012ad5cb2884.js index 0370c46..f116373 100644 --- a/docs/d5038f03b73d97e967f3012ad5cb2884.js +++ b/docs/d5038f03b73d97e967f3012ad5cb2884.js @@ -133,7 +133,7 @@ var o=function(){var o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefgh },{"./codeblocktab.vue":30,"./codeblocknormal.vue":31,"./codeblockcodesandbox.vue":32,"./codeblockcodemirror.vue":33}],24:[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue-component-compiler/src/runtime/normalize-component"),o=c(e),t=require("/var/www/gundocs/gun-site/docs/src/src/codeblock.vue__type=script.js"),u=c(t),r=require("/var/www/gundocs/gun-site/docs/src/src/codeblock.vue__type=template.js"),s=c(r);function c(e){return e&&e.__esModule?e:{default:e}}var l=!1,n=null,d=null,a=null,i=(0,o.default)(u.default,s.default,n,d,a);i.options.__file="/var/www/gundocs/gun-site/docs/src/src/codeblock.vue",i.esModule&&Object.keys(i.esModule).some(function(e){return"default"!==e&&"__"!==e.substr(0,2)}),i.options.functional,module.hot&&function(){var e=require("vue-hot-reload-api");e.install(require("vue"),!1),e.compatible&&(module.hot.accept(),module.hot.data?e.reload("data-v-60607fdc",i.options):e.createRecord("data-v-60607fdc",i.options),module.hot.dispose(function(e){l=!0}))}(),exports.default=i.options; },{"/var/www/gundocs/gun-site/docs/src/src/codeblock.vue__type=template.js":27,"/var/www/gundocs/gun-site/docs/src/src/codeblock.vue__type=script.js":28,"vue-component-compiler/src/runtime/normalize-component":22,"vue-hot-reload-api":19,"vue":20}],26:[function(require,module,exports) { -module.exports={navigation:[{name:"Getting Started",pages:[{Introduction:"Introduction"},{Installation:"Installation"},{"Todo Application":"Basic-Todo-App-Tutorial"},{"Next Steps":"Next-Steps"},{"Crash Course":"Crash-Course"}]},{name:"Learn",pages:[{name:"Tutorials",pages:[{"Basic Todo App Tutorial":"Basic-Todo-App-Tutorial"},{"My First Todo App":"My-First-Todo-App"}]},{name:"Guides",pages:[{"Basic Todo App Guide":"Basic-Todo-App-Guide"},{"Graph Databases 101":"Graph-Databases-101"},{"Blog Example":"Design-Examples"},{"Using Amazon S3 for storage":"Using-Amazon-S3-for-Storage"},{React:"React-Tutorial"},{"React Native":"React-Native"}]},{name:"How",pages:[{"How to Run A GUN Server":"How-to-Run-A-GUN-Server"},{"How Writes Work":"Partials-and-Circular-References-%28v0.2.x%29"},{"How to Create Users":"Auth"},{"How to Add Security":"Auth"},{"How to Extend GUN":"Adding-Methods-to-the-Gun-Chain"},{"How to Delete Data":"Delete"},{"Functional Reactive Programming":"Functional-Reactive-Programming"},{"How to Sync Time":"How-to-Sync-Time"},{"How to Help":"Help"}]},{name:"Why",pages:[{"Why Performance Matters":"100000-ops-sec-in-IE6-on-2GB-Atom-CPU"}]},{name:"Who",pages:[{"How to Help":"help"}]},{name:"What",pages:[{Roadmap:"Roadmap"},{"Why GUN Won't Shut Down":"Why-GUN-Won%27t-Shut-Down"}]},{name:"Architecture",pages:[{"How to Port GUN":"Porting-GUN"},{"Graph Data Structure":"Simple-introduction-to-graph-data-structures"},{"Graph Data Structure 2":"GUN’s-Data-Format-%28JSON%29"},{"Ad Hoc Mesh Network":"Mesh-Network-Messaging-Algorithm"},{"Conflict Resolution":"Conflict-Resolution-with-Guns"},{"Hypothetical Amnesia Machine":"Hypothetical-Amnesia-Machine"},{"CAP Theorem Tradeoffs":"CAP-Theorem"},{Sharding:"Sharding"},{JavaScript:"javascript"},{Terminology:"Glossary"},{Authentication:"Security%2C-Authentication%2C-Authorization"},{"Adapter Performance":"Adapter-Performance"},{Shim:"shim.js"}]}]},{name:"API",pages:[{"Complete List":"API"},{name:"Adapters",pages:[{Storage:"Storage"}]}]}],redirects:[{path:"map.html",redirect:"API#map"},{path:"path.html",redirect:"API#path"},{path:"not.html",redirect:"API#not"},{path:"get.html",redirect:"API#get"},{path:"on.html",redirect:"API#on"},{path:"val.html",redirect:"API#val"},{path:"gun.html",redirect:"API#gun"},{path:"set.html",redirect:"API#set"},{path:"put.html",redirect:"API#put"},{path:"key.html",redirect:"API#key"},{path:"back.html",redirect:"API#back"},{path:"opt.html",redirect:"API#opt"},{path:"How-to-Create-GUN",redirect:"Porting-GUN"},{path:"0.1.x-Table-of-Contents",redirect:"Site-Index"},{path:"0.2.x-Table-of-Contents",redirect:"Site-Index"},{path:"0.3.x-Table-of-Contents",redirect:"Site-Index"},{path:"Migration-Guide",redirect:"Porting-GUN"},{path:"React-Native---GUN",redirect:"React-Native"},{path:"Running-a-GUN-Server-%28v0.3.x%29",redirect:"How-to-Run-A-GUN-Server"},{path:"Running-a-GUN-Server-%28v0.9.x%29",redirect:"How-to-Run-A-GUN-Server"},{path:"GUN-Todo-Tutorial",redirect:"Basic-Todo-App-Guide"},{path:"think",redirect:"My-First-Todo-App"},{path:"Hello-World",redirect:"Basic-Todo-App-Tutorial"}],settings:{topmenu:{items:[{url:"http://gun.js.org/",name:"Home"},{url:"Site-Index",name:"Index"},{url:"https://github.com/amark/gun",name:"Github"}]},quickmenu:{items:[{url:"https://github.com/amark/gun/wiki/{%slug%}/_edit",icon:"pencil",name:"Edit this page"},{url:"https://gitter.im/amark/gun",icon:"commenting",name:"Get help"},{url:"https://github.com/amark/gun/issues",icon:"warning",name:"Report an issue"}]},logo:{url:"/images/gun_logo-01.svg",targetUrl:"../"},search:{google:{cx:"018061041148283299270:yzadbgjxtxu"}},page:{title:{add:" - GUN documentation"},requestUrl:"https://raw.githubusercontent.com/wiki/amark/gun/{%slug%}.md"},editor:{codepen:{jsExternal:"https://cdn.rawgit.com/amark/gun/master/gun.js?nc={%random%}"}}}}; +module.exports={navigation:[{name:"Getting Started",pages:[{Introduction:"Introduction"},{Installation:"Installation"},{"Todo Application":"Basic-Todo-App-Tutorial"},{"Next Steps":"Next-Steps"},{"Crash Course":"Crash-Course"}]},{name:"Learn",pages:[{name:"Tutorials",pages:[{"Basic Todo App Tutorial":"Basic-Todo-App-Tutorial"},{"My First Todo App":"My-First-Todo-App"}]},{name:"Guides",pages:[{"Basic Todo App Guide":"Basic-Todo-App-Guide"},{"Graph Databases 101":"Graph-Databases-101"},{"Blog Example":"Design-Examples"},{"Using Amazon S3 for storage":"Using-Amazon-S3-for-Storage"},{React:"React-Tutorial"},{"React Native":"React-Native"}]},{name:"How",pages:[{"How to Run A GUN Server":"How-to-Run-A-GUN-Server"},{"How Writes Work":"Partials-and-Circular-References-%28v0.2.x%29"},{"How to Create Users":"Auth"},{"How to Add Security":"Auth"},{"How to Extend GUN":"Adding-Methods-to-the-Gun-Chain"},{"How to Delete Data":"Delete"},{"Functional Reactive Programming":"Functional-Reactive-Programming"},{"How to Sync Time":"How-to-Sync-Time"},{"How to Help":"Help"}]},{name:"Why",pages:[{"Why Performance Matters":"100000-ops-sec-in-IE6-on-2GB-Atom-CPU"}]},{name:"Who",pages:[{"How to Help":"help"}]},{name:"What",pages:[{Roadmap:"Roadmap"},{"Why GUN Won't Shut Down":"Why-GUN-Won%27t-Shut-Down"}]},{name:"Architecture",pages:[{"How to Port GUN":"Porting-GUN"},{"Graph Data Structure":"Simple-introduction-to-graph-data-structures"},{"Graph Data Structure 2":"GUN’s-Data-Format-%28JSON%29"},{"Ad Hoc Mesh Network":"Mesh-Network-Messaging-Algorithm"},{"Conflict Resolution":"Conflict-Resolution-with-Guns"},{"Hypothetical Amnesia Machine":"Hypothetical-Amnesia-Machine"},{"CAP Theorem Tradeoffs":"CAP-Theorem"},{Sharding:"Sharding"},{JavaScript:"javascript"},{Terminology:"Glossary"},{Authentication:"Security%2C-Authentication%2C-Authorization"},{"Adapter Performance":"Adapter-Performance"},{Shim:"shim.js"}]}]},{name:"API",pages:[{"Complete List":"API"},{name:"Adapters",pages:[{Storage:"Storage"}]}]}],redirects:[{path:"map.html",redirect:"API#map"},{path:"path.html",redirect:"API#path"},{path:"not.html",redirect:"API#not"},{path:"get.html",redirect:"API#get"},{path:"on.html",redirect:"API#on"},{path:"val.html",redirect:"API#val"},{path:"gun.html",redirect:"API#gun"},{path:"set.html",redirect:"API#set"},{path:"put.html",redirect:"API#put"},{path:"key.html",redirect:"API#key"},{path:"back.html",redirect:"API#back"},{path:"opt.html",redirect:"API#opt"},{path:"How-to-Create-GUN",redirect:"Porting-GUN"},{path:"0.1.x-Table-of-Contents",redirect:"Site-Index"},{path:"0.2.x-Table-of-Contents",redirect:"Site-Index"},{path:"0.3.x-Table-of-Contents",redirect:"Site-Index"},{path:"Migration-Guide",redirect:"Porting-GUN"},{path:"React-Native---GUN",redirect:"React-Native"},{path:"Running-a-GUN-Server-%28v0.3.x%29",redirect:"How-to-Run-A-GUN-Server"},{path:"Running-a-GUN-Server-%28v0.9.x%29",redirect:"How-to-Run-A-GUN-Server"},{path:"GUN-Todo-Tutorial",redirect:"Basic-Todo-App-Guide"},{path:"think",redirect:"My-First-Todo-App"},{path:"Hello-World",redirect:"Basic-Todo-App-Tutorial"}],settings:{topmenu:{items:[{url:"http://gun.js.org/",name:"Home"},{url:"Site-Index",name:"Index"},{url:"https://github.com/amark/gun",name:"Github"}]},quickmenu:{items:[{url:"https://github.com/amark/gun/wiki/{%slug%}/_edit",icon:"pencil",name:"Edit this page"},{url:"https://gitter.im/amark/gun",icon:"commenting",name:"Get help"},{url:"https://github.com/amark/gun/issues",icon:"warning",name:"Report an issue"}]},logo:{url:"/images/gun_logo-01.svg",targetUrl:"../"},search:{google:{cx:"018061041148283299270:yzadbgjxtxu"}},page:{title:{add:" - GUN documentation"},requestUrl:"https://raw.githubusercontent.com/wiki/amark/gun/{%slug%}.md"},editor:{codepen:{jsExternal:"https://cdn.jsdelivr.net/gh/amark/gun/gun.js?nc={%random%}"}}}}; },{}],15:[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=require("./navitems.vue"),i=r(t),n=require("./indexitems.vue"),a=r(n),o=require("./codeblock.vue"),s=r(o);function r(e){return e&&e.__esModule?e:{default:e}}var l=UIkit.util,d=l.ajax,c=l.Promise;exports.default={name:"app",data:function(){return{navigation:[],settings:{},redirects:[],ids:{},page:!1,pageTitle:"",allCollapsed:!0}},components:{navitems:i.default,indexitems:a.default,codeblock:s.default},watch:{$route:{handler:function(){this.setPageTitle(this.$route.params.page,this.navigation)}}},methods:{setPageTitle:function(t,i){for(var n in i)"object"===e(i[n])?this.setPageTitle(t,i[n]):t===decodeURIComponent(i[n])&&(this.pageTitle=n)},updateExpanded:function(t,i){var n=!1;for(var a in t){if("object"===e(t[a])&&t[a].pages){var o=this.updateExpanded(t[a].pages,i);o=o||t[a].expanded,n=n||o,this.$set(t[a],"expanded",o)}if(i)for(var s in t[a])this.$route.params.page===decodeURIComponent(t[a][s])&&(n=!0)}return n},allCollapse:function(t,i){for(var n in t)"object"===e(t[n])&&t[n].pages&&(this.$set(t[n],"expanded",!i),this.allCollapse(t[n].pages,i));this.expandFirstLevel()},expandFirstLevel:function(){for(var e in this.navigation)this.$set(this.navigation[e],"expanded",!0)},clickExpand:function(){this.allCollapsed=!this.allCollapsed,this.allCollapsed?this.allCollapse(this.navigation,!0):this.allCollapse(this.navigation,!1)},setNavigation:function(e){this.navigation=e.navigation,this.redirects=e.redirects,this.settings=e.settings,this.$router.addRoutes(this.redirects),this.setPageTitle(this.$route.params.page,this.navigation),this.updateExpanded(this.navigation,!0),this.expandFirstLevel()},replaceParts:function(e){return e.replace(/\{%slug%\}/,this.page)}},created:function(){var e=this;this.$root.$on("catClicked",function(t){e.allCollapse(e.navigation,!0),e.$set(t,"expanded",!0),e.updateExpanded(e.navigation,!1),e.expandFirstLevel()}),this.menuPromise=new c(function(t,i){if(window.location.host.indexOf("breasy.site")>=0){var n=require("../../navigation.json");e.setNavigation(n),t()}else d("navigation.json?nc="+Math.random()).then(function(i){try{var n=i.response;n=n.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm,"$1");var a=JSON.parse(n);e.setNavigation(a),t()}catch(e){console}})})},mounted:function(){var e=this;window.addEventListener("scroll",function(e){var t=document.documentElement,i=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),n=document.getElementById("gn-bar-right"),a=96-i;a<0&&(a=0),n.setAttribute("style","top:"+a+"px"),n=document.getElementById("gn-bar-left"),(a=80-i)<0&&(a=0),n.setAttribute("style","top:"+a+"px")}),setTimeout(function(){!function(){var t=e.settings.search.google.cx,i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src="https://cse.google.com/cse.js?cx="+t;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(i,n)}()},1e3)}}; },{"./navitems.vue":25,"./indexitems.vue":23,"./codeblock.vue":24,"../../navigation.json":26}],9:[function(require,module,exports) { diff --git a/docs/navigation.json b/docs/navigation.json index 11644ed..1ff541b 100644 --- a/docs/navigation.json +++ b/docs/navigation.json @@ -230,7 +230,7 @@ }, "editor": { "codepen": { - "jsExternal": "https://cdn.rawgit.com/amark/gun/master/gun.js?nc={%random%}" + "jsExternal": "https://cdn.jsdelivr.net/gh/amark/gun/gun.js?nc={%random%}" } } } diff --git a/gun.html b/gun.html index b964063..c48c305 100644 --- a/gun.html +++ b/gun.html @@ -1,7 +1,7 @@ - +