diff options
Diffstat (limited to 'javascript/app/templates/components')
17 files changed, 0 insertions, 229 deletions
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)}} - - - <span> - {{#if first}}<button class="btn btn-outline-secondary btn-sm" {{action "update" first.href}}><<</button>{{/if}} - {{#if prev}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" prev.href}}><</button>{{/if}} - {{firstItemOnPage}} - {{lastItemOnPage}} - {{#if next}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" next.href}}>></button>{{/if}} - {{#if last}}<button button class="btn btn-outline-secondary btn-sm" {{action "update" last.href}}>>></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}} |