-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO: properly split/rebase this
- Loading branch information
Showing
24 changed files
with
313 additions
and
220 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,23 +1,21 @@ | ||
{{#if @data.isRunning}} | ||
<div class="empty"> | ||
<Empty> | ||
<LoadingIcon /> | ||
</div> | ||
</Empty> | ||
{{else if @data.isError}} | ||
<div class="empty"> | ||
<div> | ||
<Empty> | ||
<FaIcon @icon="bolt" @prefix="fas" /> | ||
<h3>Oops... Something went wrong</h3> | ||
<p> | ||
Have you tried turning it off and on again? | ||
<br /> | ||
Please try refreshing the page. | ||
</p> | ||
</div> | ||
</div> | ||
</Empty> | ||
{{else if (not @data.value.length)}} | ||
<div class="empty"> | ||
<Empty> | ||
{{yield "empty" @data.value}} | ||
</div> | ||
</Empty> | ||
{{else}} | ||
{{yield "body" @data.value}} | ||
{{/if}} |
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,3 @@ | ||
<div class="card border rounded bg-background" ...attributes> | ||
{{yield}} | ||
</div> |
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,3 @@ | ||
<div class="card-block p-4" ...attributes> | ||
{{yield}} | ||
</div> |
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,3 @@ | ||
<div class="card-footer py-2 px-4 bg-background-muted border-t last:rounded-b" ...attributes> | ||
{{yield}} | ||
</div> |
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,9 +1,14 @@ | ||
{{! template-lint-disable}} | ||
<th class="sort-header align-bottom text-left whitespace-nowrap cursor-pointer py-1 px-2 font-thin text-foreground-mid" {{on "click" this.click}}> | ||
<Table::Th | ||
@light={{true}} | ||
class="sort-header align-bottom whitespace-nowrap cursor-pointer" | ||
{{on "click" this.click}} | ||
...attributes | ||
> | ||
{{yield}} | ||
{{#if this.active}} | ||
<FaIcon @prefix="fas" @icon="sort-{{this.direction}}" /> | ||
{{else}} | ||
<FaIcon @prefix="fas" @icon="sort" /> | ||
{{/if}} | ||
</th> | ||
</Table::Th> |
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,9 +1,9 @@ | ||
<td ...attributes> | ||
<Table::Td ...attributes> | ||
{{#if (eq @layout "DURATION")}} | ||
{{humanize-duration @value false}} | ||
{{else if (eq @layout "MONTH")}} | ||
{{moment-format (moment @value "M") "MMMM"}} | ||
{{else}} | ||
{{@value}} | ||
{{/if}} | ||
</td> | ||
</Table::Td> |
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.