aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/app/templates')
-rw-r--r--javascript/app/templates/application.hbs26
-rw-r--r--javascript/app/templates/bad-url.hbs6
-rw-r--r--javascript/app/templates/components/.gitkeep0
-rw-r--r--javascript/app/templates/components/bottom-panel.hbs9
-rw-r--r--javascript/app/templates/components/expression-info.hbs8
-rw-r--r--javascript/app/templates/components/file-tree.hbs20
-rw-r--r--javascript/app/templates/components/haskell-module.hbs57
-rw-r--r--javascript/app/templates/components/identifier-info.hbs39
-rw-r--r--javascript/app/templates/components/identifier-name.hbs12
-rw-r--r--javascript/app/templates/components/infinite-list.hbs3
-rw-r--r--javascript/app/templates/components/info-window.hbs12
-rw-r--r--javascript/app/templates/components/input-with-autocomplete.hbs19
-rw-r--r--javascript/app/templates/components/instance-info.hbs10
-rw-r--r--javascript/app/templates/components/paginated-list.hbs17
-rw-r--r--javascript/app/templates/components/resizable-panel.hbs5
-rw-r--r--javascript/app/templates/components/text-file.hbs3
-rw-r--r--javascript/app/templates/components/type-component.hbs3
-rw-r--r--javascript/app/templates/components/type-signature-text.hbs2
-rw-r--r--javascript/app/templates/components/type-signature.hbs10
-rw-r--r--javascript/app/templates/package.hbs87
-rw-r--r--javascript/app/templates/package/index.hbs12
-rw-r--r--javascript/app/templates/package/search.hbs21
-rw-r--r--javascript/app/templates/package/show.hbs1
-rw-r--r--javascript/app/templates/package/show/file.hbs16
-rw-r--r--javascript/app/templates/packages.hbs46
-rw-r--r--javascript/app/templates/search.hbs48
26 files changed, 0 insertions, 492 deletions
diff --git a/javascript/app/templates/application.hbs b/javascript/app/templates/application.hbs
deleted file mode 100644
index bd64fdb..0000000
--- a/javascript/app/templates/application.hbs
+++ /dev/null
@@ -1,26 +0,0 @@
-<div class="absolute-container">
- <div class="flex-container">
- <div class="header">
- <img src="/assets/haskell.ico">
- <div class="container">
- <span class="header-item">{{#link-to 'packages'}}Haskell packages{{/link-to}}</span>
- <span class="header-item"><a target="_blank" href="https://github.com/alexwl/haskell-code-explorer">About</a></span>
- <span class="header-item">
- {{#each themes as |theme|}}
- {{#radio-button
- value=theme.id
- groupValue=currentTheme
- changed="themeChanged"}}
- <span>{{theme.name}}</span>
- {{/radio-button}}
- {{/each}}
- </span>
- </div>
- </div>
- <div class="content">
- <div class="absolute-container">
- {{outlet}}
- </div>
- </div>
- </div>
-</div>
diff --git a/javascript/app/templates/bad-url.hbs b/javascript/app/templates/bad-url.hbs
deleted file mode 100644
index b7df9c5..0000000
--- a/javascript/app/templates/bad-url.hbs
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="container">
- <div style="margin-top:10px">
- <h1>Not found</h1>
- <div><a href="/">Main page</a></div>
- </div>
-</div>
diff --git a/javascript/app/templates/components/.gitkeep b/javascript/app/templates/components/.gitkeep
deleted file mode 100644
index e69de29..0000000
--- a/javascript/app/templates/components/.gitkeep
+++ /dev/null
diff --git a/javascript/app/templates/components/bottom-panel.hbs b/javascript/app/templates/components/bottom-panel.hbs
deleted file mode 100644
index 26b1919..0000000
--- a/javascript/app/templates/components/bottom-panel.hbs
+++ /dev/null
@@ -1,9 +0,0 @@
-<div class="bottom-panel-header">
- <span class="bottom-panel-header-content">{{yield "header"}}</span>
- <span class="bottom-panel-header-options">
- <a href="#" {{action "close"}}>Close</a>
- </span>
-</div>
-<div class="bottom-panel-content">
- {{yield "body"}}
-</div>
diff --git a/javascript/app/templates/components/expression-info.hbs b/javascript/app/templates/components/expression-info.hbs
deleted file mode 100644
index 509fb24..0000000
--- a/javascript/app/templates/components/expression-info.hbs
+++ /dev/null
@@ -1,8 +0,0 @@
-<div class="expressions">
- {{#each expressions as |expression|}}
- <div class="expression">
- <span class="source-code">{{expression.sourceCode}}</span>
- <br/>:: {{type-signature type=expression.info.exprType identifiers=identifiers currentLineNumber=currentLineNumber}}
- </div>
- {{/each}}
-</div>
diff --git a/javascript/app/templates/components/file-tree.hbs b/javascript/app/templates/components/file-tree.hbs
deleted file mode 100644
index 3559efe..0000000
--- a/javascript/app/templates/components/file-tree.hbs
+++ /dev/null
@@ -1,20 +0,0 @@
-<div class="file-tree-header">
- <div class="input-group">
- {{input class="form-control" value=query placeholder="Filename"}}<a class="hide-file-tree" href="#" {{action "hide"}}>Hide</a>
- </div>
- <div>
- {{#radio-button
- value="alphabetical"
- groupValue=sortType}}
- <span>Sort by name</span>
- {{/radio-button}}
- {{#radio-button
- value="type"
- groupValue=sortType}}
- <span>Sort by type</span>
- {{/radio-button}}
- </div>
-</div>
-<div class="file-tree-content">
- <div class="file-tree"></div>
-</div>
diff --git a/javascript/app/templates/components/haskell-module.hbs b/javascript/app/templates/components/haskell-module.hbs
deleted file mode 100644
index 6f1d0f5..0000000
--- a/javascript/app/templates/components/haskell-module.hbs
+++ /dev/null
@@ -1,57 +0,0 @@
-<div class="source-code-container"></div>
-{{#if declarations}}
- <div class="declarations">
- <div class="declarations-header">
- <div class="input-group">
- {{input class="form-control" value=query placeholder="Identifier"}}<a class="hide-declarations" href="#" {{action "toggleShowDeclarations"}}>{{showDeclarationsLabel}}</a>
- </div>
- </div>
- {{#if showDeclarations}}
- <div id="declarations-content" class="declarations-content">
- <ul>
- {{#infinite-list containerElementId="declarations-content" elements=filteredDeclarations perPage=30 as |declaration|}}
- <li class="declaration">
- <div class="declaration">
- <a {{action "goToLine" declaration.lineNumber}} href="#"><span class="source-code-font">{{declaration.name}}{{#if declaration.declType}} :: {{type-signature-text components=declaration.declType.components}}{{/if}}</span>
- </a><span>{{#unless declaration.isExported}}<i>(not exported)</i>{{/unless}}</span>
- </div>
- </li>
- {{/infinite-list}}
- </ul>
- </div>
- {{/if}}
- </div>
-{{/if}}
-{{#info-window
- targetElement=selectedIdentifier
- isHoveredOverIdentifier=isHoveredOverIdentifier
- hasSelectedExpression=hasSelectedExpression
- containerElementId="right-panel" as |section|}}
- {{#if (eq section "header")}}
- {{#if hasSelectedExpression}}
- <div>Selected expressions</div>
- {{else}}
- {{identifier-name
- identifierInfo=identifierInfo
- identifierOccurrence=identifierOccurrence
- identifierElement=selectedIdentifier
- currentPackageId=packageId
- isBinder=identifierOccurrence.isBinder
- currentLineNumber=currentLineNumber
- findReferences=findReferences}}
- {{/if}}
- {{else}}
- {{#unless hasSelectedExpression}}
- {{identifier-info
- identifierInfo=identifierInfo
- identifierOccurrence=identifierOccurrence
- identifiers=identifiers
- currentLineNumber=currentLineNumber}}
- {{else}}
- {{expression-info
- expressions=expressions
- identifiers=identifiers
- currentLineNumber=currentLineNumber}}
- {{/unless}}
- {{/if}}
-{{/info-window}}
diff --git a/javascript/app/templates/components/identifier-info.hbs b/javascript/app/templates/components/identifier-info.hbs
deleted file mode 100644
index 7146a2e..0000000
--- a/javascript/app/templates/components/identifier-info.hbs
+++ /dev/null
@@ -1,39 +0,0 @@
-{{#if (or identifierInfo identifierOccurrence.idOccType)}}
- <div class="identifier-info">
- {{#if identifierInfo}}
- {{#if isNaughtyRecSel}}
- <i>This record selector can never be called because its type mentions a type variable that isn't in the result type of the constructor</i>
- {{else}}
- {{type-signature
- type=identifierInfo.idType
- identifiers=identifiers
- currentLineNumber=currentLineNumber}}
- {{/if}}
- {{/if}}
- {{#if (and identifierInfo identifierOccurrence identifierOccurrence.idOccType)}}
- <div style="height:10px"></div>
- {{/if}}
- {{#if (and identifierOccurrence identifierOccurrence.idOccType)}}
- {{type-signature
- type=identifierOccurrence.idOccType
- identifiers=identifiers
- currentLineNumber=currentLineNumber}}
- {{/if}}
- <div class="documentation">
- {{{identifierInfo.doc}}}
- {{{downloadedDocumentation}}}
- </div>
- {{#if identifierOccurrence.instanceResolution}}
- <div style="height:10px"></div>
- {{/if}}
- <div>
- {{#if identifierOccurrence.instanceResolution}}
- {{instance-info
- instance=identifierOccurrence.instanceResolution
- identifiers=identifiers
- nestedLevel=0
- currentLineNumber=currentLineNumber}}
- {{/if}}
- </div>
- </div>
-{{/if}}
diff --git a/javascript/app/templates/components/identifier-name.hbs b/javascript/app/templates/components/identifier-name.hbs
deleted file mode 100644
index 4f7b764..0000000
--- a/javascript/app/templates/components/identifier-name.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-<div>
- <span class="source-code-font break-word identifier-menu-item" style={{style}}>{{#if identifierInfo.demangledOccName}}{{identifierInfo.demangledOccName}}{{else}}{{name}}{{/if}}</span>
- {{#unless isBinder}}
- {{#if location}}
- <span class="identifier-menu-item">{{location}}</span>
- <span class="link identifier-menu-item" onmouseup={{action "goToDefinition"}}>Go to definition</span>
- {{/if}}
- {{/unless}}
- {{#if isExternalIdentifier}}
- <span class="link identifier-menu-item" onmouseup={{action "findReferences" identifierInfo currentPackageId}}>Find references</span>
- {{/if}}
-</div>
diff --git a/javascript/app/templates/components/infinite-list.hbs b/javascript/app/templates/components/infinite-list.hbs
deleted file mode 100644
index ab103d4..0000000
--- a/javascript/app/templates/components/infinite-list.hbs
+++ /dev/null
@@ -1,3 +0,0 @@
-{{#each renderedElements as |element|}}
- {{yield element}}
-{{/each}}
diff --git a/javascript/app/templates/components/info-window.hbs b/javascript/app/templates/components/info-window.hbs
deleted file mode 100644
index 003e2c5..0000000
--- a/javascript/app/templates/components/info-window.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-<div class="info-window">
- <div class="info-window-header">
- <div class="info-window-options">
- <a href="#" {{action "pin"}}>{{#if isPinned}}Unpin{{else}}Pin{{/if}}</a>
- <a href="#" {{action "close"}}>Close</a>
- </div>
- {{yield "header"}}
- </div>
- <div class="info-window-content">
- {{yield "body"}}
- </div>
-</div>
diff --git a/javascript/app/templates/components/input-with-autocomplete.hbs b/javascript/app/templates/components/input-with-autocomplete.hbs
deleted file mode 100644
index 1a73c07..0000000
--- a/javascript/app/templates/components/input-with-autocomplete.hbs
+++ /dev/null
@@ -1,19 +0,0 @@
-<div class="input-group">
- {{input class="form-control search-input" value=query placeholder=placeholder}}
- <div class="autocomplete-container">
- {{# if items}}
- <ul class="autocomplete-items">
- {{#each items as |item index|}}
- <li class="{{if (eq index highlightedItemIndex) "highlighted"}}" onclick={{action "goToDefinition" item}}>
- <div class="autocomplete-item">
- {{yield item}}
- </div>
- </li>
- {{/each}}
- </ul>
- {{/if}}
- </div>
- <div class="input-group-append">
- <button id="search-input" class="btn btn-outline-secondary" {{action "onSubmit" query}}>{{searchButtonText}}</button>
- </div>
-</div>
diff --git a/javascript/app/templates/components/instance-info.hbs b/javascript/app/templates/components/instance-info.hbs
deleted file mode 100644
index b5c2fdf..0000000
--- a/javascript/app/templates/components/instance-info.hbs
+++ /dev/null
@@ -1,10 +0,0 @@
-{{#if instance}}
- <div style={{style}}>
- <span class="source-code-font">
- instance {{type-signature type=instance.instanceType identifiers=identifiers currentLineNumber=currentLineNumber noExpand=true}}</span>
- (<span class="link" onclick={{action "goToDefinition"}}>Go to definition</span>)
- {{#each instance.instances as |inst|}}
- {{instance-info instance=inst identifiers=identifiers nestedLevel=nextNestedLevel currentLineNumber=currentLineNumber}}
- {{/each}}
- </div>
-{{/if}}
diff --git a/javascript/app/templates/components/paginated-list.hbs b/javascript/app/templates/components/paginated-list.hbs
deleted file mode 100644
index 5184e07..0000000
--- a/javascript/app/templates/components/paginated-list.hbs
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="paginated-list-header">
- <span>Found {{total}} {{{foundWhere}}}</span>
- {{#if (or next prev)}}
- &nbsp;
- &nbsp;
- <span>
- {{#if first}}<button class="btn btn-outline-secondary btn-sm" {{action "update" first.href}}>&lt;&lt;</button>{{/if}}
- {{#if prev}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" prev.href}}>&lt;</button>{{/if}}
- {{firstItemOnPage}} - {{lastItemOnPage}}
- {{#if next}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" next.href}}>&gt;</button>{{/if}}
- {{#if last}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" last.href}}>&gt;&gt;</button>{{/if}}
- </span>
- {{/if}}
-</div>
-<div class="paginated-list-content">
- {{yield items}}
-</div>
diff --git a/javascript/app/templates/components/resizable-panel.hbs b/javascript/app/templates/components/resizable-panel.hbs
deleted file mode 100644
index 0fd3aa7..0000000
--- a/javascript/app/templates/components/resizable-panel.hbs
+++ /dev/null
@@ -1,5 +0,0 @@
-<div class="absolute-container">{{yield (action "hide")}}
- <div onclick={{action "hide"}} class="show-left-panel-button">
- {{{hideButtonLabel}}}
- </div>
-</div>
diff --git a/javascript/app/templates/components/text-file.hbs b/javascript/app/templates/components/text-file.hbs
deleted file mode 100644
index 6a50453..0000000
--- a/javascript/app/templates/components/text-file.hbs
+++ /dev/null
@@ -1,3 +0,0 @@
-<div class="source-code-container">
-{{{html}}}
-</div>
diff --git a/javascript/app/templates/components/type-component.hbs b/javascript/app/templates/components/type-component.hbs
deleted file mode 100644
index 775324e..0000000
--- a/javascript/app/templates/components/type-component.hbs
+++ /dev/null
@@ -1,3 +0,0 @@
-{{#if (and expanded identifierInfo)}}({{/if}}
-<span class="source-code {{linkClass}}" onmouseup={{action "onmouseup"}}>{{occName}}</span>
-{{#if (and expanded identifierInfo)}} :: {{type-signature type=identifierInfo.idType identifiers=identifiers noExpand=true}}){{/if}}
diff --git a/javascript/app/templates/components/type-signature-text.hbs b/javascript/app/templates/components/type-signature-text.hbs
deleted file mode 100644
index 505a466..0000000
--- a/javascript/app/templates/components/type-signature-text.hbs
+++ /dev/null
@@ -1,2 +0,0 @@
-{{!-- No newlines to get rid of spaces between spans --}}
-{{#each components as |typeComponent|}}{{#if (eq typeComponent.tag "Text")}}{{typeComponent.contents}}{{else}}{{typeComponent.name}}{{/if}}{{/each}}
diff --git a/javascript/app/templates/components/type-signature.hbs b/javascript/app/templates/components/type-signature.hbs
deleted file mode 100644
index 249f1b8..0000000
--- a/javascript/app/templates/components/type-signature.hbs
+++ /dev/null
@@ -1,10 +0,0 @@
-{{!-- No newlines to get rid of spaces between spans --}}
-{{#each components as |typeComponent|}}{{#if (eq typeComponent.tag "Text")}}<span class="source-code">{{typeComponent.contents}}</span>{{else}}{{type-component occName=typeComponent.name internalId=typeComponent.internalId identifiers=identifiers currentLineNumber=currentLineNumber}}{{/if}}{{/each}}
-{{#unless noExpand}}
- {{#if type.componentsExpanded}}
- <div style="margin-top:5px">
- <button class="btn btn-outline-secondary btn-sm" {{action "toggleExpandTypeSynonyms"}}>{{expandTypeSynonymsLabel}}
- </button>
- </div>
- {{/if}}
-{{/unless}}
diff --git a/javascript/app/templates/package.hbs b/javascript/app/templates/package.hbs
deleted file mode 100644
index d26ce34..0000000
--- a/javascript/app/templates/package.hbs
+++ /dev/null
@@ -1,87 +0,0 @@
-<div class="flex-container">
- <div class="package-header">
- <span class="package-header-package-name">{{#link-to 'package' model}}{{model.id}}{{/link-to}}</span>
- <span class="package-header-input">
- {{#input-with-autocomplete
- onSubmit=(action 'searchIdentifier')
- createSearchUrlFunction=createSearchUrlFunction
- maxItems=10
- selectItem=(action 'showIdentifier')
- searchButtonText="Search"
- placeholder="Identifier" as |identifier|}}
- <span class="source-code-font">{{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}</span>
- <div class="module-name">
- <b>{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}</b>
- {{#if identifier.locationInfo.modulePath}}
- {{identifier.locationInfo.modulePath}}
- {{else}}
- {{identifier.locationInfo.moduleName}}
- {{/if}}
- </div>
- {{/input-with-autocomplete}}
- </span>
- {{#radio-button
- value="currentPackage"
- groupValue=searchMode}}
- <span>in {{model.id}}</span>
- {{/radio-button}}
- {{#radio-button
- value="allPackages"
- groupValue=searchMode}}
- <span>in all packages</span>
- {{/radio-button}}
- {{#if currentFile}}
- <span class="package-header-filename">
- {{currentFile}}
- </span>
- {{/if}}
- </div>
- <div class="package-content">
- {{#resizable-panel class="left-panel" alsoResizeElementId="#right-panel" as |hide|}}
- <div class="file-tree-container">
- {{file-tree directoryTree=model.directoryTree openFile="openFile" currentFile=currentFile packageId=model.id hide=hide}}
- </div>
- {{/resizable-panel}}
- <div id="right-panel" class="right-panel">
- <div id="file-container" class="file-container">
- {{outlet}}
- </div>
- {{#bottom-panel visible=bottomPanelVisible topPanelElementId="#file-container" containerElementId="#right-panel" as |section|}}
- {{#if (eq section "header")}}
- References to <b><span class="source-code">{{occName}}</span></b>
- {{#if locationInfo.packageId}}
- (defined in <b>{{locationInfo.packageId.name}}-{{locationInfo.packageId.version}}</b> / <b>{{locationInfo.moduleName}}</b>)
- {{/if}}
- {{else}}
- <div id="references-packages" class="references-packages">
- {{#if globalReferences}}
- <span>
- {{#each globalReferences as |ref|}}
- <div>
- <a id="references-package-{{ref.packageId}}" class="{{if (eq ref.packageId packageId) 'selected'}}" href="#" {{action "updateReferences" ref.packageId externalId occName locationInfo true}}>
- {{ref.packageId}}
- </a> ({{ref.count}})
- </div>
- {{/each}}
- </span>
- {{/if}}
- </div>
- <div class="references">
- {{#paginated-list url=referencesUrl foundWhere=(concat "in <b>" packageId "</b>") as |files|}}
- <ul>
- {{#each files as |file|}}
- <li>
- <div class="file-name"><a href="/package/{{packageId}}/show/{{file.name}}">{{file.name}}</a></div>
- {{#each file.references as |reference|}}
- <a class="source-code source-code-snippet" href="/package/{{packageId}}/show/{{file.name}}#L{{reference.idSrcSpan.line}}">{{{reference.sourceCodeHtml}}}</a>
- {{/each}}
- </li>
- {{/each}}
- </ul>
- {{/paginated-list}}
- </div>
- {{/if}}
- {{/bottom-panel}}
- </div>
- </div>
-</div>
diff --git a/javascript/app/templates/package/index.hbs b/javascript/app/templates/package/index.hbs
deleted file mode 100644
index 06ccd0d..0000000
--- a/javascript/app/templates/package/index.hbs
+++ /dev/null
@@ -1,12 +0,0 @@
-<div class="package-modules">
- <div class="module-search-input">
- {{input class="form-control" type="text" value=query placeholder="Module name"}}
- </div>
- <ul class="modules">
- {{#each modulesFiltered as |module|}}
- <li>
- <a href="/package/{{model.id}}/show/{{module}}">{{module}}</a>
- </li>
- {{/each}}
- </ul>
-</div>
diff --git a/javascript/app/templates/package/search.hbs b/javascript/app/templates/package/search.hbs
deleted file mode 100644
index 37b3992..0000000
--- a/javascript/app/templates/package/search.hbs
+++ /dev/null
@@ -1,21 +0,0 @@
-<div class="search-results-header">
- Query : {{model.query}}
-</div>
-<div class="search-results-content">
- {{#paginated-list url=model.url as |identifiers|}}
- <ul>
- {{#each identifiers as |identifier|}}
- <li class="search-result">
- <span class="source-code" ><b>{{identifier.demangledOccName}}</b> :: {{type-signature-text components=identifier.idType.components}}</span>
- <div><a href="#" onmouseup={{action "goToDefinition" identifier.locationInfo}}>Go to definition</a></div>
- <div class="identifier-module">
- {{#if identifier.locationInfo.modulePath}}
- Defined in <a href="/package/{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}/show/{{identifier.locationInfo.modulePath}}">{{identifier.locationInfo.modulePath}}</a>
- {{/if}}
- </div>
- <div>{{{identifier.doc}}}</div>
- </li>
- {{/each}}
- </ul>
- {{/paginated-list}}
-</div>
diff --git a/javascript/app/templates/package/show.hbs b/javascript/app/templates/package/show.hbs
deleted file mode 100644
index c24cd68..0000000
--- a/javascript/app/templates/package/show.hbs
+++ /dev/null
@@ -1 +0,0 @@
-{{outlet}}
diff --git a/javascript/app/templates/package/show/file.hbs b/javascript/app/templates/package/show/file.hbs
deleted file mode 100644
index 0d356e5..0000000
--- a/javascript/app/templates/package/show/file.hbs
+++ /dev/null
@@ -1,16 +0,0 @@
-{{#if model.isHaskellModule}}
- {{haskell-module
- path=model.id
- name=model.name
- packageId=model.packageId
- componentId=model.componentId
- html=model.sourceCodeHtml
- identifiers=model.identifiers
- occurrences=model.occurrences
- colorTheme=settings.colorTheme
- declarations=model.declarations
- findReferences=(action "findReferences")
- }}
-{{else}}
- {{text-file text=model.text path=model.id}}
-{{/if}}
diff --git a/javascript/app/templates/packages.hbs b/javascript/app/templates/packages.hbs
deleted file mode 100644
index 80464e6..0000000
--- a/javascript/app/templates/packages.hbs
+++ /dev/null
@@ -1,46 +0,0 @@
-<div class="flex-container container">
- <div>
- <div class="global-identifier-search-form">
- {{#input-with-autocomplete
- onSubmit=(action 'searchIdentifier')
- createSearchUrlFunction=createSearchUrlFunction
- maxItems=10
- selectItem=(action 'showIdentifier')
- searchButtonText="Search in all packages"
- placeholder="Haskell identifier" as |identifier|}}
- <span class="source-code-font">{{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}</span>
- <div class="module-name">
- <b>{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}</b>
- {{#if identifier.locationInfo.modulePath}}
- {{identifier.locationInfo.modulePath}}
- {{else}}
- {{identifier.locationInfo.moduleName}}
- {{/if}}
- </div>
- {{/input-with-autocomplete}}
- </div>
- </div>
- <div>
- <div class="package-search-form">
- {{input class="form-control" type="text" value=query placeholder="Package name"}}
- <span>Number of packages : {{packages.length}}</span>
- </div>
- </div>
- <div id="packages" class="packages">
- <ul>
- {{#infinite-list containerElementId="packages" elements=packages perPage=80 as |package|}}
- <li>
- {{#each package.versions as |version index|}}
- {{#link-to 'package' (concat package.name "-" version)}}
- {{#if (gt index 0)}}
- {{version}}
- {{else}}
- {{package.name}}-{{version}}
- {{/if}}
- {{/link-to}}
- {{/each}}
- </li>
- {{/infinite-list}}
- </ul>
- </div>
-</div>
diff --git a/javascript/app/templates/search.hbs b/javascript/app/templates/search.hbs
deleted file mode 100644
index 5a36913..0000000
--- a/javascript/app/templates/search.hbs
+++ /dev/null
@@ -1,48 +0,0 @@
-<div class="flex-container container">
- <div style="position:relative;height:100%">
- <div class="absolute-container">
- <div class="global-identifier-search-form">
- {{#input-with-autocomplete
- onSubmit=(action 'searchIdentifier')
- createSearchUrlFunction=createSearchUrlFunction
- maxItems=10
- selectItem=(action 'showIdentifier')
- searchButtonText="Search in all packages"
- placeholder="Haskell identifier" as |identifier|}}
- <span class="source-code-font">{{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}}</span>
- <div class="module-name">
- <b>{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}</b>
- {{#if identifier.locationInfo.modulePath}}
- {{identifier.locationInfo.modulePath}}
- {{else}}
- {{identifier.locationInfo.moduleName}}
- {{/if}}
- </div>
- {{/input-with-autocomplete}}
- </div>
- <div>
- Query : {{model.query}}
- </div>
- <div class="global-search-results-content">
- {{#paginated-list url=model.url as |identifiers|}}
- <ul>
- {{#each identifiers as |identifier|}}
- <li class="search-result">
- <span class="source-code" ><b>{{identifier.demangledOccName}}</b> :: {{type-signature-text components=identifier.idType.components}}</span>
- <div><a href="#" onmouseup={{action "goToDefinition" identifier.locationInfo}}>Go to definition</a></div>
- <div class="identifier-module">
- {{#if identifier.locationInfo.modulePath}}
- Defined in <b> {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} </b> <a href="/package/{{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}}/show/{{identifier.locationInfo.modulePath}}">{{identifier.locationInfo.modulePath}}</a>
- {{else}}
- Defined in <b> {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} </b> {{identifier.locationInfo.moduleName}}
- {{/if}}
- </div>
- <div>{{{identifier.doc}}}</div>
- </li>
- {{/each}}
- </ul>
- {{/paginated-list}}
- </div>
- </div>
- </div>
-</div>