Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "6"
- "8"

sudo: false
dist: trusty
Expand Down Expand Up @@ -52,10 +52,5 @@ jobs:
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery

before_install:
- npm config set spin false
- npm install -g npm@4
- npm --version

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ guidemaker-cardstack-template

This addon handles style and layout of the cards.

It is a modified fork of [guidemaker-cardstack-template](https://github.com/empress/guidemaker-cardstack-template)
It is a modified fork of [guidemaker-default-template](https://github.com/empress/guidemaker-default-template)
by Chris Manson.

Installation
Expand Down
72 changes: 36 additions & 36 deletions addon/templates/components/search-input.hbs
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{{#if searchFunction}}
<input
id='search-input'
type='search'
value={{value}}
oninput={{perform search value='target.value'}}
placeholder="Search the guides"
autocomplete="off"
>
<input
id="search-input"
type="search"
value={{value}}
oninput={{perform search value="target.value"}}
placeholder="Search the guides"
autocomplete="off"
>

{{!-- Search results dropdown --}}
{{#ember-tether
target='#search-input'
targetAttachment='bottom right'
attachment='top right'
constraints=_resultTetherConstraints
class='ds-dropdown-results'
}}
{{#if response.hits}}
<span class="ds-suggestions ds-dropdown-menu">
<div class="ds-suggestion">
<div class="algolia-docsearch-suggestion algolia-docsearch-suggestion__main">
<div class="algolia-docsearch-suggestion--category-header">
<span class="algolia-docsearch-suggestion--category-header-lvl0">
{{!-- Search results dropdown --}}
{{#ember-tether
target="#search-input"
targetAttachment="bottom right"
attachment="top right"
constraints=_resultTetherConstraints
class="ds-dropdown-results"
}}
{{#if response.hits}}
<span class="ds-suggestions ds-dropdown-menu">
<div class="ds-suggestion">
<div class="algolia-docsearch-suggestion algolia-docsearch-suggestion__main">
<div class="algolia-docsearch-suggestion--category-header">
<span class="algolia-docsearch-suggestion--category-header-lvl0">
Search Results
</span>
</span>
</div>
<div class="algolia-docsearch-suggestion--wrapper"></div>
</div>
<div class="algolia-docsearch-suggestion--wrapper"></div>
</div>
</div>
{{#each response.hits as |result|}}
{{search-result result=result}}
{{/each}}
<div class="powered-by-algolia">
<a href="https://www.algolia.com/" target="_blank">
<img src="/images/logos/search-by-algolia.svg" alt="Search Powered by Algolia">
</a>
</div>
</span>
{{/if}}
{{/ember-tether}}
{{#each response.hits as |result|}}
{{search-result result=result}}
{{/each}}
<div class="powered-by-algolia">
<a href="https://www.algolia.com/" target="_blank" rel="noopener">
<img src="/images/logos/search-by-algolia.svg" alt="Search Powered by Algolia">
</a>
</div>
</span>
{{/if}}
{{/ember-tether}}
{{/if}}
98 changes: 76 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"ember-cli": "~3.7.1",
"ember-cli-dependency-checker": "^3.0.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-htmlbars": "^3.0.0",
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
"ember-cli-inject-live-reload": "^1.8.2",
"ember-cli-sri": "^2.1.1",
Expand All @@ -57,7 +56,7 @@
"ember-resolver": "^5.0.1",
"ember-source": "~3.7.0",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^1.0.0",
"ember-try": "^1.2.1",
"eslint-plugin-ember": "^5.2.0",
"eslint-plugin-node": "^7.0.1",
"loader.js": "^4.7.0",
Expand Down