From ef1b927861f9a949aed20341144ffb5bfd42f038 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Mon, 19 Sep 2022 11:22:21 +1000 Subject: Removing the web client --- javascript/app/templates/components/.gitkeep | 0 .../app/templates/components/bottom-panel.hbs | 9 ---- .../app/templates/components/expression-info.hbs | 8 --- javascript/app/templates/components/file-tree.hbs | 20 -------- .../app/templates/components/haskell-module.hbs | 57 ---------------------- .../app/templates/components/identifier-info.hbs | 39 --------------- .../app/templates/components/identifier-name.hbs | 12 ----- .../app/templates/components/infinite-list.hbs | 3 -- .../app/templates/components/info-window.hbs | 12 ----- .../components/input-with-autocomplete.hbs | 19 -------- .../app/templates/components/instance-info.hbs | 10 ---- .../app/templates/components/paginated-list.hbs | 17 ------- .../app/templates/components/resizable-panel.hbs | 5 -- javascript/app/templates/components/text-file.hbs | 3 -- .../app/templates/components/type-component.hbs | 3 -- .../templates/components/type-signature-text.hbs | 2 - .../app/templates/components/type-signature.hbs | 10 ---- 17 files changed, 229 deletions(-) delete mode 100644 javascript/app/templates/components/.gitkeep delete mode 100644 javascript/app/templates/components/bottom-panel.hbs delete mode 100644 javascript/app/templates/components/expression-info.hbs delete mode 100644 javascript/app/templates/components/file-tree.hbs delete mode 100644 javascript/app/templates/components/haskell-module.hbs delete mode 100644 javascript/app/templates/components/identifier-info.hbs delete mode 100644 javascript/app/templates/components/identifier-name.hbs delete mode 100644 javascript/app/templates/components/infinite-list.hbs delete mode 100644 javascript/app/templates/components/info-window.hbs delete mode 100644 javascript/app/templates/components/input-with-autocomplete.hbs delete mode 100644 javascript/app/templates/components/instance-info.hbs delete mode 100644 javascript/app/templates/components/paginated-list.hbs delete mode 100644 javascript/app/templates/components/resizable-panel.hbs delete mode 100644 javascript/app/templates/components/text-file.hbs delete mode 100644 javascript/app/templates/components/type-component.hbs delete mode 100644 javascript/app/templates/components/type-signature-text.hbs delete mode 100644 javascript/app/templates/components/type-signature.hbs (limited to 'javascript/app/templates/components') diff --git a/javascript/app/templates/components/.gitkeep b/javascript/app/templates/components/.gitkeep deleted file mode 100644 index e69de29..0000000 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 @@ -
- {{yield "header"}} - - Close - -
-
- {{yield "body"}} -
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 @@ -
- {{#each expressions as |expression|}} -
- {{expression.sourceCode}} -
:: {{type-signature type=expression.info.exprType identifiers=identifiers currentLineNumber=currentLineNumber}} -
- {{/each}} -
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 @@ -
-
- {{input class="form-control" value=query placeholder="Filename"}}Hide -
-
- {{#radio-button - value="alphabetical" - groupValue=sortType}} - Sort by name - {{/radio-button}} - {{#radio-button - value="type" - groupValue=sortType}} - Sort by type - {{/radio-button}} -
-
-
-
-
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 @@ -
-{{#if declarations}} -
-
-
- {{input class="form-control" value=query placeholder="Identifier"}}{{showDeclarationsLabel}} -
-
- {{#if showDeclarations}} -
- -
- {{/if}} -
-{{/if}} -{{#info-window - targetElement=selectedIdentifier - isHoveredOverIdentifier=isHoveredOverIdentifier - hasSelectedExpression=hasSelectedExpression - containerElementId="right-panel" as |section|}} - {{#if (eq section "header")}} - {{#if hasSelectedExpression}} -
Selected expressions
- {{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)}} -
- {{#if identifierInfo}} - {{#if isNaughtyRecSel}} - This record selector can never be called because its type mentions a type variable that isn't in the result type of the constructor - {{else}} - {{type-signature - type=identifierInfo.idType - identifiers=identifiers - currentLineNumber=currentLineNumber}} - {{/if}} - {{/if}} - {{#if (and identifierInfo identifierOccurrence identifierOccurrence.idOccType)}} -
- {{/if}} - {{#if (and identifierOccurrence identifierOccurrence.idOccType)}} - {{type-signature - type=identifierOccurrence.idOccType - identifiers=identifiers - currentLineNumber=currentLineNumber}} - {{/if}} -
- {{{identifierInfo.doc}}} - {{{downloadedDocumentation}}} -
- {{#if identifierOccurrence.instanceResolution}} -
- {{/if}} -
- {{#if identifierOccurrence.instanceResolution}} - {{instance-info - instance=identifierOccurrence.instanceResolution - identifiers=identifiers - nestedLevel=0 - currentLineNumber=currentLineNumber}} - {{/if}} -
-
-{{/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 @@ -
- {{#if identifierInfo.demangledOccName}}{{identifierInfo.demangledOccName}}{{else}}{{name}}{{/if}} - {{#unless isBinder}} - {{#if location}} - {{location}} - Go to definition - {{/if}} - {{/unless}} - {{#if isExternalIdentifier}} - Find references - {{/if}} -
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 @@ -
-
- - {{yield "header"}} -
-
- {{yield "body"}} -
-
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 @@ -
- {{input class="form-control search-input" value=query placeholder=placeholder}} -
- {{# if items}} -
    - {{#each items as |item index|}} -
  • -
    - {{yield item}} -
    -
  • - {{/each}} -
- {{/if}} -
-
- -
-
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}} -
- - instance {{type-signature type=instance.instanceType identifiers=identifiers currentLineNumber=currentLineNumber noExpand=true}} - (Go to definition) - {{#each instance.instances as |inst|}} - {{instance-info instance=inst identifiers=identifiers nestedLevel=nextNestedLevel currentLineNumber=currentLineNumber}} - {{/each}} -
-{{/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 @@ -
- Found {{total}} {{{foundWhere}}} - {{#if (or next prev)}} -   -   - - {{#if first}}{{/if}} - {{#if prev}}{{/if}} - {{firstItemOnPage}} - {{lastItemOnPage}} - {{#if next}}{{/if}} - {{#if last}}{{/if}} - - {{/if}} -
-
- {{yield items}} -
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 @@ -
{{yield (action "hide")}} -
- {{{hideButtonLabel}}} -
-
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 @@ -
-{{{html}}} -
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}} -{{occName}} -{{#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")}}{{typeComponent.contents}}{{else}}{{type-component occName=typeComponent.name internalId=typeComponent.internalId identifiers=identifiers currentLineNumber=currentLineNumber}}{{/if}}{{/each}} -{{#unless noExpand}} - {{#if type.componentsExpanded}} -
- -
- {{/if}} -{{/unless}} -- cgit v1.2.3