-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: frontend first concept (layout etc.)
- Loading branch information
Showing
10 changed files
with
214 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class ProjectCompactComponent extends Component { | ||
get color() { | ||
let { state } = this.args; | ||
switch (state) { | ||
case 'outdated': | ||
return 'danger'; | ||
case 'warning': | ||
return state; | ||
case 'up-to-date': | ||
return 'success'; | ||
} | ||
} | ||
} |
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,4 @@ | ||
<span | ||
{{uk-tooltip (concat 'EOL: ' (or @eol_date '2023-11-07')) pos='bottom'}} | ||
class='uk-text-{{or this.color "success"}} ' | ||
>{{or @name 'ember'}} {{or @version '4.9'}}</span> |
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,20 @@ | ||
import Component from '@glimmer/component'; | ||
|
||
export default class ProjectCompactComponent extends Component { | ||
get icon() { | ||
let { state } = this.args; | ||
switch (state) { | ||
case 'outdated': | ||
return 'bolt'; | ||
case 'warning': | ||
return state; | ||
case 'up-to-date': | ||
return 'check'; | ||
default: | ||
console.log( | ||
'app/components/project-compact/component.js invalid state!' | ||
); | ||
return 'invalid state!!!'; | ||
} | ||
} | ||
} |
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,22 @@ | ||
<div class='od-project-compact'> | ||
|
||
<UkCard as |card|> | ||
|
||
<LinkTo @route='details'> | ||
<h3 class='od-title-compact'>{{@name}}</h3></LinkTo> | ||
|
||
<card.body> | ||
|
||
<div class='od-icon-compact'> | ||
|
||
<UkIcon @icon='{{this.icon}}' @ratio={{4}} /> | ||
|
||
</div> | ||
{{#if (has-block)}} | ||
{{yield}} | ||
{{else}} | ||
<PackageCompact /> | ||
{{/if}} | ||
</card.body> | ||
</UkCard> | ||
</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,60 @@ | ||
<div class='od-project'> | ||
<UkCard as |card|> | ||
<card.header> | ||
<card.title>{{@name}}</card.title> | ||
<a href='https://github.com/adfinis/outdated' target='blank_'> | ||
<UkButton @color='text' @label='Repository' /></a> | ||
</card.header> | ||
<card.body class='uk-padding-remove-top'> | ||
<div class='od-package-table'> | ||
<table> | ||
<thead><tr><th>Package</th><th>Version</th><th>End Of Life Date</th><th | ||
>Release Date</th></tr></thead> | ||
|
||
<tbody> | ||
<Package | ||
@name='Python' | ||
@version='8.3.16' | ||
@eol_date='2033-11-11' | ||
@rel_date='2011-12-12' | ||
@status='package-outdated' | ||
/> | ||
|
||
<Package | ||
@name='Django' | ||
@version='3.2.16' | ||
@eol_date='2033-11-11' | ||
@rel_date='2015-09-14' | ||
@status='package-warning' | ||
/> | ||
<Package | ||
@name='django-environ' | ||
@version='1.0.3' | ||
@eol_date='2023-06-23' | ||
@rel_date='2012-11-12' | ||
/> | ||
<Package | ||
@name='embroider' | ||
@version='1.8.3' | ||
@eol_date='2026-01-21' | ||
@rel_date='2022-11-12' | ||
/> | ||
<Package | ||
@name='yarn' | ||
@version='1.23.12' | ||
@eol_date='2013-07-13' | ||
@rel_date='2017-05-12' | ||
/> | ||
<Package | ||
@name='ember-focus-trap' | ||
@version='1.0.1' | ||
@eol_date='1934-03-23' | ||
@rel_date='2016-03-12' | ||
/> | ||
|
||
</tbody> | ||
</table> | ||
</div> | ||
</card.body> | ||
|
||
</UkCard></div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<ProjectDetailed @name='Outdated' /> |
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,5 +1,25 @@ | ||
<div> | ||
<Project @name='Nanosoft' /> | ||
<Project @name='Timed' /> | ||
<Project @name='Outdated' /> | ||
<div class='od-projects-compact'> | ||
<ProjectCompact @state='outdated' @name='camac-ng'> | ||
<PackageCompact | ||
@version='2.8.8' | ||
@name='python' | ||
@state='outdated' | ||
@eol_date='2020-11-11' | ||
/> | ||
</ProjectCompact> | ||
<ProjectCompact @state='up-to-date' @name='WIGL' /> | ||
<ProjectCompact @state='warning' @name='outdated'> | ||
<PackageCompact @state='warning' @name='psycopg2' @version='1.2.3' /> | ||
</ProjectCompact> | ||
|
||
<ProjectCompact @state='outdated' @name='ebau'> | ||
<PackageCompact @state='outdated' @name='psycopg2' @version='0.1.3' /> | ||
</ProjectCompact> | ||
|
||
<ProjectCompact @state='outdated' @name='camac-ng'> | ||
<PackageCompact @state='outdated' @name='paython' version='1.3.4' /> | ||
</ProjectCompact> | ||
<ProjectCompact @state='up-to-date' @name='timed' /> | ||
<!--Maybe Add Pagination--> | ||
|
||
</div> |