Skip to content

Commit 27fd993

Browse files
committed
Demo
1 parent f88e60a commit 27fd993

File tree

102 files changed

+10601
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+10601
-179
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121
# IDE
2222
/.idea/
2323
/.history/
24+
25+
# Vendor assets
26+
/tests/dummy/
27+
/typedoc-theme/

.github/workflows/github-pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
NODE_VERSION: 14
1111

1212
jobs:
13-
api-docs-deploy:
13+
deploy:
1414
name: Deploy API docs
1515
runs-on: ubuntu-latest
1616
timeout-minutes: 7
@@ -47,12 +47,14 @@ jobs:
4747
run: yarn install
4848
# if: steps.cache-dependencies.outputs.cache-hit != 'true'
4949

50-
- name: Build
50+
- name: Build demo
51+
run: yarn build
52+
53+
- name: Build API docs
5154
run: yarn typedoc
5255

5356
- name: Deploy
5457
uses: peaceiris/actions-gh-pages@v3
5558
with:
5659
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./api-docs
58-
destination_dir: api
60+
publish_dir: ./dist

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
4-
/api-docs/
54
/dist/
65
/tmp/
76

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ module.exports = {
1313
'**/*.{js,ts}': ['yarn lint:eslint --fix'],
1414

1515
// Template lint
16-
'**/*.hbs': ['yarn ember-template-lint'],
16+
'**/*.hbs': ['yarn lint:hbs:fix'],
1717
};

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ https://lolmaus.github.io/ember-element-query/api/
8383
Roadmap
8484
-------
8585

86-
This addon is in active development.
86+
This addon is ~~in active development~~ complete! 🎉
8787

8888
* [x] `{{element-query}}` modifier
8989
* [x] Exists
@@ -118,10 +118,10 @@ This addon is in active development.
118118
* [x] Usage
119119
* [x] Browser support
120120
* [x] Comparison with alternatives
121-
* [ ] TypeDoc API documentation
122-
* [ ] Document
123-
* [ ] Set up auto deployment
124-
* [ ] Demo app
121+
* [x] TypeDoc API documentation
122+
* [x] Document
123+
* [x] Set up auto deployment
124+
* [x] Demo app
125125

126126

127127
Rationale
@@ -1250,4 +1250,6 @@ Implemented by Andrey Mikhaylov ([lolmaus](https://github.com/lolmaus)) and [con
12501250
12511251
Thanks to Chad Carbert ([@chadian](https://github.com/chadian)) and Isaac Lee ([@ijlee2](https://github.com/ijlee2)) for feedback, ideas, brainstorming and criticism.
12521252
1253-
Sponsored by [@kaliber5](https://github.com/kaliber5), https://kaliber5.de.
1253+
This addon's demo is borrowed from [ember-container-query](https://github.com/ijlee2/ember-element-query) per [@ijlee2](https://www.linkedin.com/in/ijlee2/)'s generous permission.
1254+
1255+
Sponsored in part by [@kaliber5](https://github.com/kaliber5), https://kaliber5.de.

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'",
2121
"lint:ts": "tsc --noEmit",
2222
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix",
23-
"lint:hbs": "ember-template-lint .",
23+
"lint:hbs": "ember-template-lint . --ignore-pattern '**/typedoc-theme/**'",
2424
"lint:eslint": "eslint . --ext .js,.ts",
2525
"lint-staged": "lint-staged",
26-
"lint:hbs:fix": "ember-template-lint . --fix",
26+
"lint:hbs:fix": "yarn lint:hbs --fix",
2727
"lint:js:fix": "eslint . --fix",
2828
"start": "ember serve",
2929
"test": "npm-run-all lint test:*",
@@ -44,12 +44,14 @@
4444
"ember-cli-htmlbars": "5.7.1",
4545
"ember-cli-typescript": "^4.2.1",
4646
"ember-element-helper": "^0.5.5",
47+
"ember-lifeline": "^6.0.2",
4748
"ember-modifier": "^2.1.2",
4849
"ember-resize-observer-modifier": "^1.1.1",
4950
"ember-window-mock": "^0.7.2"
5051
},
5152
"devDependencies": {
5253
"@ember/optional-features": "^2.0.0",
54+
"@ember/render-modifiers": "^1.0.2",
5355
"@ember/test-helpers": "^2.2.5",
5456
"@embroider/test-setup": "^0.42.2",
5557
"@glimmer/component": "^1.0.4",
@@ -65,22 +67,29 @@
6567
"@typescript-eslint/parser": "^4.28.0",
6668
"babel-eslint": "^10.1.0",
6769
"broccoli-asset-rev": "^3.0.0",
70+
"d3-array": "^3.0.1",
71+
"d3-axis": "^3.0.0",
72+
"d3-scale": "^4.0.0",
73+
"d3-selection": "^3.0.0",
74+
"d3-shape": "^3.0.1",
6875
"ember-auto-import": "^1.11.2",
6976
"ember-cli": "~3.26.1",
7077
"ember-cli-dependency-checker": "^3.2.0",
7178
"ember-cli-inject-live-reload": "^2.1.0",
7279
"ember-cli-sri": "^2.1.1",
7380
"ember-cli-terser": "^4.0.1",
7481
"ember-cli-typescript-blueprints": "^3.0.0",
82+
"ember-css-modules": "^1.5.0",
7583
"ember-disable-prototype-extensions": "^1.1.3",
7684
"ember-export-application-global": "^2.0.1",
7785
"ember-load-initializers": "^2.1.2",
7886
"ember-maybe-import-regenerator": "^0.1.6",
79-
"ember-page-title": "^6.2.1",
87+
"ember-page-title": "^6.2.2",
8088
"ember-qunit": "^5.1.4",
8189
"ember-resolver": "^8.0.2",
8290
"ember-source": "^3.26.1",
8391
"ember-source-channel-url": "^3.0.0",
92+
"ember-svg-jar": "^2.3.3",
8493
"ember-template-lint": "^3.2.0",
8594
"ember-truth-helpers": "^3.0.0",
8695
"ember-try": "^1.4.0",

tests/dummy/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Application from '@ember/application';
2+
import config from 'dummy/config/environment';
23
import Resolver from 'ember-resolver';
34
import loadInitializers from 'ember-load-initializers';
4-
import config from 'dummy/config/environment';
55

66
export default class App extends Application {
77
modulePrefix = config.modulePrefix;

tests/dummy/app/components/.gitkeep

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.menu {
2+
display: flex;
3+
justify-content: space-between;
4+
flex-wrap: wrap;
5+
}
6+
7+
.list {
8+
align-items: center;
9+
display: flex;
10+
}
11+
12+
.item.active-route {
13+
background-color: rgba(255, 255, 255, 0.075);
14+
}
15+
16+
.link {
17+
display: inline-block;
18+
font-size: 0.875rem;
19+
padding: 0.875rem 1rem;
20+
text-decoration: none;
21+
white-space: nowrap;
22+
}
23+
24+
.link:hover {
25+
background-color: rgba(255, 255, 255, 0.075);
26+
transition: background-color 0.17s;
27+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<nav
2+
data-test-nav={{@name}}
3+
aria-label={{@name}}
4+
local-class="menu"
5+
>
6+
<ul local-class="list">
7+
{{#each @menuItems as |menuItem|}}
8+
<li local-class="item {{if (eq menuItem.route this.rootRoute) "active-route"}}">
9+
<LinkTo
10+
data-test-link={{menuItem.label}}
11+
local-class="link"
12+
@route={{menuItem.route}}
13+
>
14+
{{menuItem.label}}
15+
</LinkTo>
16+
</li>
17+
{{/each}}
18+
</ul>
19+
20+
<ul local-class="list">
21+
<li local-class="item">
22+
<a
23+
local-class="link"
24+
href="https://github.com/lolmaus/ember-element-query/"
25+
>
26+
GitHub and Guide
27+
</a>
28+
</li>
29+
30+
<li local-class="item">
31+
32+
<a
33+
local-class="link"
34+
href="https://lolmaus.github.io/ember-element-query/api/"
35+
>
36+
API docs
37+
</a>
38+
</li>
39+
</ul>
40+
</nav>

0 commit comments

Comments
 (0)