aboutsummaryrefslogtreecommitdiff
path: root/javascript/release/assets
diff options
context:
space:
mode:
authoralexwl <alexey.a.kiryushin@gmail.com>2019-02-14 00:54:28 +0300
committeralexwl <alexey.a.kiryushin@gmail.com>2019-02-14 00:54:28 +0300
commitd65f02107a6adce4b45ba9b8ecebf78571612a65 (patch)
treee16036721aed009bc46e56c6aee6c4bd6b701380 /javascript/release/assets
parente8ded03ec40e0ba3d17b9e3e57805ce9afd43534 (diff)
Optimize the process of adding links to Haskell language extension docs
Diffstat (limited to 'javascript/release/assets')
-rw-r--r--javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js (renamed from javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js)12
1 files changed, 6 insertions, 6 deletions
diff --git a/javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js b/javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js
index 8d7f83a..4aaae9f 100644
--- a/javascript/release/assets/haskell-code-explorer-debcceb70f1c19709c0d69e7b338e19e.js
+++ b/javascript/release/assets/haskell-code-explorer-c3c743371eab2471f055e45a74d95581.js
@@ -64,11 +64,11 @@ Ember.run.next(this,function(){e.cleanup(),e.didInsertElement()})}),cleanup:func
this._super.apply(this,arguments)
var t=this.element.querySelector(".source-code-container")
t.innerHTML=this.get("html"),this.sourceCodeContainerElement=t
-for(var s=this.sourceCodeContainerElement.querySelectorAll("tr > td:nth-child(2)"),l=s.length,i=0;i<l;){var r=s.item(i)
-if(0===r.innerText.indexOf("module "))break
-r.innerHTML=(0,o.addLinksToLanguageExtensionsDocs)(r.innerText),i+=1}this.element.parentNode.scrollTop=0
-var a=this.element.querySelector(".declarations-content")
-this.set("query",""),a&&(a.scrollTop=0),Ember.run.next(this,function(){u(t,e),(0,n.initializeLineSelection)(t,e),h(t,e)})},willDestroyElement:function(){this.cleanup()},actions:{goToLine:function(e){window.location.hash="L"+e},toggleShowDeclarations:function(){this.toggleProperty("showDeclarations")}}})}),define("haskell-code-explorer/components/identifier-info",["exports","haskell-code-explorer/utils/go-to-definition"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Component.extend({store:Ember.inject.service("store"),downloadedDocumentation:null,didInsertElement:function(){var e=this,n=function(n){if(n.target.dataset.location){var o=void 0
+for(var s=this.sourceCodeContainerElement.querySelectorAll("tr > td:nth-child(2)"),l=s.length,i=0;i<l;){var r=s.item(i),a=r.textContent
+if(a){if(0===a.indexOf("module "))break
+r.innerHTML=(0,o.addLinksToLanguageExtensionsDocs)(a)}i+=1}this.element.parentNode.scrollTop=0
+var c=this.element.querySelector(".declarations-content")
+this.set("query",""),c&&(c.scrollTop=0),Ember.run.next(this,function(){u(t,e),(0,n.initializeLineSelection)(t,e),h(t,e)})},willDestroyElement:function(){this.cleanup()},actions:{goToLine:function(e){window.location.hash="L"+e},toggleShowDeclarations:function(){this.toggleProperty("showDeclarations")}}})}),define("haskell-code-explorer/components/identifier-info",["exports","haskell-code-explorer/utils/go-to-definition"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=Ember.Component.extend({store:Ember.inject.service("store"),downloadedDocumentation:null,didInsertElement:function(){var e=this,n=function(n){if(n.target.dataset.location){var o=void 0
try{o=JSON.parse(n.target.dataset.location)}catch(e){console.log(e)}o&&(0,t.goToDefinition)(e.get("store"),o,n.which,e.get("currentLineNumber"))}}
this.element.addEventListener("mouseup",n),this._onmouseup=n},willDestroyElement:function(){this._onmouseup&&this.element.removeEventListener("mouseup",this._onmouseup)},isNaughtyRecSel:Ember.computed("identifierInfo",function(){var e=this.get("identifierInfo")
return!!e&&"RecSelIdNaughty"===e.details}),isExternalIdentifier:Ember.computed("identifierInfo",function(){var e=this.get("identifierInfo")
@@ -216,4 +216,4 @@ return c&&o(c,e),[a]}}}function o(e,t){e.parentNode.scrollIntoView()
var n=t.parentNode.parentNode,o=n.offsetHeight
t.offsetHeight-n.scrollTop>o&&(n.scrollTop=n.scrollTop-(o/2-20))}function s(e,t,n){Array.prototype.slice.call(e.querySelectorAll("td.line-content")).forEach(function(e){var o=parseInt(e.id.substring(2))
o>=t&&o<=n?e.classList.add("highlighted-line"):e.classList.remove("highlighted-line")})}Object.defineProperty(e,"__esModule",{value:!0}),e.initializeLineSelection=t,e.highlightLines=s,e.highlightSelectedLines=n}),define("haskell-code-explorer/config/environment",[],function(){try{var e="haskell-code-explorer/config/environment",t=document.querySelector('meta[name="'+e+'"]').getAttribute("content"),n=JSON.parse(unescape(t)),o={default:n}
-return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+0b17136d"})
+return Object.defineProperty(o,"__esModule",{value:!0}),o}catch(t){throw new Error('Could not read config from meta tag with name "'+e+'".')}}),runningTests||require("haskell-code-explorer/app").default.create({staticUrlPrefix:"/files",apiUrlPrefix:"/api",haskellCodeExplorerDirectory:".haskell-code-explorer",title:"Haskell Code Explorer",name:"haskell-code-explorer",version:"0.0.1+e8ded03e"})