-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: run ember-cli-update to 5.8.1 * chore: update types * chore: npx update-browserslist-db@latest * fix: fix issue & tests * feat: make number input "scroll updatable" * fix: fix some lint errors * chore: update @percy/cli * feat: update to node 20 & renovate yarn.lock * chore: try to fix this f******* test * fix: fix translation
- Loading branch information
Showing
33 changed files
with
2,914 additions
and
4,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/declarations/ | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.*/ | ||
.eslintcache | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/npm-shrinkwrap.json.ember-try | ||
/package.json.ember-try | ||
/package-lock.json.ember-try | ||
/yarn.lock.ember-try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18 | ||
v20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,13 @@ | ||
# unconventional js | ||
/blueprints/*/files/ | ||
/vendor/ | ||
|
||
# compiled output | ||
/dist/ | ||
/tmp/ | ||
|
||
# dependencies | ||
/bower_components/ | ||
/node_modules/ | ||
|
||
# misc | ||
/coverage/ | ||
!.* | ||
.eslintcache | ||
.lint-todo/ | ||
.*/ | ||
|
||
# ember-try | ||
/.node_modules.ember-try/ | ||
/bower.json.ember-try | ||
/npm-shrinkwrap.json.ember-try | ||
/package.json.ember-try | ||
/package-lock.json.ember-try | ||
/yarn.lock.ember-try |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"ignore_dirs": ["tmp", "dist"] | ||
"ignore_dirs": ["dist"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import Modifier from 'ember-modifier'; | ||
import type DefaultSignature from 'ember-modifier'; | ||
import type { ArgsFor } from 'ember-modifier'; | ||
|
||
import type { CalciteInputText } from '@esri/calcite-components/dist/components/calcite-input-text'; | ||
import { registerDestructor } from '@ember/destroyable'; | ||
import { action } from '@ember/object'; | ||
|
||
import type Owner from '@ember/owner'; | ||
|
||
export default class ThreeRendererModifier extends Modifier<DefaultSignature> { | ||
element?: CalciteInputText; | ||
|
||
constructor(owner: Owner, args: ArgsFor<DefaultSignature>) { | ||
super(owner, args); | ||
registerDestructor(this, this.cleanup); | ||
} | ||
|
||
@action | ||
onWHeel(e: WheelEvent) { | ||
if (!e.deltaY) { | ||
return; | ||
} | ||
|
||
const step = e.ctrlKey ? 10 : e.altKey ? 0.1 : 1; | ||
const factor = e.deltaY < 0 ? 1 : -1; | ||
const newValue = Number(parseFloat(this.element!.value) + step * factor).toFixed(2); | ||
|
||
this.element!.value = `${newValue}`; | ||
this.element!.dispatchEvent(new Event('calciteInputNumberChange')); | ||
|
||
e.preventDefault(); | ||
e.stopPropagation(); | ||
} | ||
|
||
@action | ||
cleanup() { | ||
this.element?.removeEventListener('wheel', this.onWHeel); | ||
} | ||
|
||
modify(element: CalciteInputText) { | ||
this.element = element; | ||
element.addEventListener('wheel', this.onWHeel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import Route from '@ember/routing/route'; | ||
import { inject as service } from '@ember/service'; | ||
import RouterService from '@ember/routing/router-service'; | ||
import IntlService from 'ember-intl/services/intl'; | ||
|
||
export default class IndexRoute extends Route { | ||
@service declare intl: IntlService; | ||
@service declare router: RouterService; | ||
|
||
async model() { | ||
this.transitionTo('app.index', this.intl.locale[0]); | ||
this.router.transitionTo('app.index', this.intl.locale[0]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.