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/application.hbs | 26 ------- javascript/app/templates/bad-url.hbs | 6 -- 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 --- javascript/app/templates/package.hbs | 87 ---------------------- javascript/app/templates/package/index.hbs | 12 --- javascript/app/templates/package/search.hbs | 21 ------ javascript/app/templates/package/show.hbs | 1 - javascript/app/templates/package/show/file.hbs | 16 ---- javascript/app/templates/packages.hbs | 46 ------------ javascript/app/templates/search.hbs | 48 ------------ 26 files changed, 492 deletions(-) delete mode 100644 javascript/app/templates/application.hbs delete mode 100644 javascript/app/templates/bad-url.hbs 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 delete mode 100644 javascript/app/templates/package.hbs delete mode 100644 javascript/app/templates/package/index.hbs delete mode 100644 javascript/app/templates/package/search.hbs delete mode 100644 javascript/app/templates/package/show.hbs delete mode 100644 javascript/app/templates/package/show/file.hbs delete mode 100644 javascript/app/templates/packages.hbs delete mode 100644 javascript/app/templates/search.hbs (limited to 'javascript/app/templates') 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 @@ -
-
-
- -
- {{#link-to 'packages'}}Haskell packages{{/link-to}} - About - - {{#each themes as |theme|}} - {{#radio-button - value=theme.id - groupValue=currentTheme - changed="themeChanged"}} - {{theme.name}} - {{/radio-button}} - {{/each}} - -
-
-
-
- {{outlet}} -
-
-
-
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 @@ -
-
-

Not found

-
Main page
-
-
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}} 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 @@ -
-
- {{#link-to 'package' model}}{{model.id}}{{/link-to}} - - {{#input-with-autocomplete - onSubmit=(action 'searchIdentifier') - createSearchUrlFunction=createSearchUrlFunction - maxItems=10 - selectItem=(action 'showIdentifier') - searchButtonText="Search" - placeholder="Identifier" as |identifier|}} - {{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}} -
- {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} - {{#if identifier.locationInfo.modulePath}} - {{identifier.locationInfo.modulePath}} - {{else}} - {{identifier.locationInfo.moduleName}} - {{/if}} -
- {{/input-with-autocomplete}} -
- {{#radio-button - value="currentPackage" - groupValue=searchMode}} - in {{model.id}} - {{/radio-button}} - {{#radio-button - value="allPackages" - groupValue=searchMode}} - in all packages - {{/radio-button}} - {{#if currentFile}} - - {{currentFile}} - - {{/if}} -
-
- {{#resizable-panel class="left-panel" alsoResizeElementId="#right-panel" as |hide|}} -
- {{file-tree directoryTree=model.directoryTree openFile="openFile" currentFile=currentFile packageId=model.id hide=hide}} -
- {{/resizable-panel}} -
-
- {{outlet}} -
- {{#bottom-panel visible=bottomPanelVisible topPanelElementId="#file-container" containerElementId="#right-panel" as |section|}} - {{#if (eq section "header")}} - References to {{occName}} - {{#if locationInfo.packageId}} - (defined in {{locationInfo.packageId.name}}-{{locationInfo.packageId.version}} / {{locationInfo.moduleName}}) - {{/if}} - {{else}} -
- {{#if globalReferences}} - - {{#each globalReferences as |ref|}} -
- - {{ref.packageId}} - ({{ref.count}}) -
- {{/each}} -
- {{/if}} -
-
- {{#paginated-list url=referencesUrl foundWhere=(concat "in " packageId "") as |files|}} - - {{/paginated-list}} -
- {{/if}} - {{/bottom-panel}} -
-
-
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 @@ -
-
- {{input class="form-control" type="text" value=query placeholder="Module name"}} -
- -
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 @@ -
- Query : {{model.query}} -
-
- {{#paginated-list url=model.url as |identifiers|}} - - {{/paginated-list}} -
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 @@ -
-
-
- {{#input-with-autocomplete - onSubmit=(action 'searchIdentifier') - createSearchUrlFunction=createSearchUrlFunction - maxItems=10 - selectItem=(action 'showIdentifier') - searchButtonText="Search in all packages" - placeholder="Haskell identifier" as |identifier|}} - {{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}} -
- {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} - {{#if identifier.locationInfo.modulePath}} - {{identifier.locationInfo.modulePath}} - {{else}} - {{identifier.locationInfo.moduleName}} - {{/if}} -
- {{/input-with-autocomplete}} -
-
-
-
- {{input class="form-control" type="text" value=query placeholder="Package name"}} - Number of packages : {{packages.length}} -
-
-
-
    - {{#infinite-list containerElementId="packages" elements=packages perPage=80 as |package|}} -
  • - {{#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}} -
  • - {{/infinite-list}} -
-
-
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 @@ -
-
-
-
- {{#input-with-autocomplete - onSubmit=(action 'searchIdentifier') - createSearchUrlFunction=createSearchUrlFunction - maxItems=10 - selectItem=(action 'showIdentifier') - searchButtonText="Search in all packages" - placeholder="Haskell identifier" as |identifier|}} - {{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}} -
- {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} - {{#if identifier.locationInfo.modulePath}} - {{identifier.locationInfo.modulePath}} - {{else}} - {{identifier.locationInfo.moduleName}} - {{/if}} -
- {{/input-with-autocomplete}} -
-
- Query : {{model.query}} -
-
- {{#paginated-list url=model.url as |identifiers|}} -
    - {{#each identifiers as |identifier|}} -
  • - {{identifier.demangledOccName}} :: {{type-signature-text components=identifier.idType.components}} - -
    - {{#if identifier.locationInfo.modulePath}} - Defined in {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} {{identifier.locationInfo.modulePath}} - {{else}} - Defined in {{identifier.locationInfo.packageId.name}}-{{identifier.locationInfo.packageId.version}} {{identifier.locationInfo.moduleName}} - {{/if}} -
    -
    {{{identifier.doc}}}
    -
  • - {{/each}} -
- {{/paginated-list}} -
-
-
-
-- cgit v1.2.3