-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: Extracted validation logic to a utility * refactor: Documented how to use composes * refactor: Replaced custom helpers with ember-truth-helpers * chore: Replaced {{local-class}} helper (deprecated) with {{local}} * chore: Created <Ui::Form::Number> component * chore: Updated data files * refactor: Standardized tests (docs-app) * refactor: Standardized tests (test-app) * refactor: Converted Glimmer components to <template> tag components --------- Co-authored-by: ijlee2 <ijlee2@users.noreply.github.com>
- Loading branch information
Showing
110 changed files
with
1,406 additions
and
848 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
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,50 @@ | ||
import type { TOC } from '@ember/component/template-only'; | ||
import { hash } from '@ember/helper'; | ||
import { ContainerQuery, height, width } from 'ember-container-query'; | ||
import { and } from 'ember-truth-helpers'; | ||
|
||
import type { Track } from '../data'; | ||
import TracksList from './tracks/list'; | ||
import TracksTable from './tracks/table'; | ||
|
||
interface TracksSignature { | ||
Args: { | ||
tracks?: Track[]; | ||
}; | ||
} | ||
|
||
const TracksComponent: TOC<TracksSignature> = | ||
<template> | ||
<ContainerQuery | ||
@features={{hash | ||
small=(width max=480) | ||
medium=(width min=480 max=640) | ||
large=(width min=640) | ||
tall=(height min=320) | ||
}} | ||
as |CQ| | ||
> | ||
{{#if (and CQ.features.large CQ.features.tall)}} | ||
<TracksTable @tracks={{@tracks}} /> | ||
|
||
{{else}} | ||
<TracksList | ||
@numColumns={{if | ||
CQ.features.small | ||
1 | ||
(if CQ.features.medium 2 3) | ||
}} | ||
@tracks={{@tracks}} | ||
/> | ||
|
||
{{/if}} | ||
</ContainerQuery> | ||
</template> | ||
|
||
export default TracksComponent; | ||
|
||
declare module '@glint/environment-ember-loose/registry' { | ||
export default interface Registry { | ||
Tracks: typeof TracksComponent; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,7 @@ | ||
.input { | ||
composes: input from "./input.css"; | ||
} | ||
|
||
.is-disabled { | ||
composes: input-disabled from global; | ||
} |
Oops, something went wrong.