-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
292 additions
and
601 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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<div class="h-7 text-base13"> | ||
<select | ||
class="box-border block w-full h-full m-0 border-0 pr-4 pl-1 text-base text-base13 bg-transparent appearance-none outline-none" | ||
{{on 'change' this.selectApp}} | ||
> | ||
{{#each-in this.apps as |id name|}} | ||
<option | ||
value={{id}} | ||
selected={{eq id this.selectedAppId}} | ||
> | ||
{{name}} | ||
</option> | ||
{{/each-in}} | ||
</select> | ||
{{svg-jar "dropdown-arrow" class="dropdown__arrow fill-current absolute opacity-75 pointer-events-none"}} | ||
<div class="app-picker"> | ||
<div class="h-7 text-base13"> | ||
<select | ||
class="box-border block w-full h-full m-0 border-0 pr-4 pl-1 text-base text-base13 bg-transparent appearance-none outline-none" | ||
{{on 'change' this.selectApp}} | ||
> | ||
{{#each-in this.apps as |id name|}} | ||
<option | ||
value={{id}} | ||
selected={{eq id this.selectedAppId}} | ||
> | ||
{{name}} | ||
</option> | ||
{{/each-in}} | ||
</select> | ||
{{svg-jar "dropdown-arrow" class="dropdown__arrow fill-current absolute opacity-75 pointer-events-none"}} | ||
</div> | ||
</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,20 +1,26 @@ | ||
import Component from '@ember/component'; | ||
import { alias, reads } from '@ember/object/computed'; | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default Component.extend({ | ||
classNames: ['app-picker'], | ||
export default class AppPickerComponent extends Component { | ||
@service port; | ||
|
||
apps: alias('port.detectedApplications'), | ||
selectedAppId: reads('port.applicationId'), | ||
get apps() { | ||
return this.port.detectedApplications; | ||
} | ||
|
||
init() { | ||
this._super(...arguments); | ||
get selectedAppId() { | ||
return this.port.applicationId; | ||
} | ||
|
||
constructor() { | ||
super(...arguments); | ||
this.port.send('app-picker-loaded'); | ||
}, | ||
} | ||
|
||
selectApp: action(function (event) { | ||
@action | ||
selectApp(event) { | ||
let applicationId = event.target.value; | ||
this.port.selectApplication(applicationId); | ||
}), | ||
}); | ||
} | ||
} |
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,7 @@ | ||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import Component from '@glimmer/component'; | ||
|
||
export default Component.extend({ | ||
tagName: '', | ||
typeClass: computed('type', function () { | ||
return `js-${this.type}-type`; | ||
}), | ||
}); | ||
export default class ItemTypesComponent extends Component { | ||
get typeClass() { | ||
return `js-${this.args.type}-type`; | ||
} | ||
} |
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,8 +1,12 @@ | ||
import { action } from '@ember/object'; | ||
import Controller from '@ember/controller'; | ||
import { action } from '@ember/object'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default class ContainerTypesIndexController extends Controller { | ||
@service port; | ||
|
||
export default Controller.extend({ | ||
sendContainerToConsole: action(function () { | ||
@action | ||
sendContainerToConsole() { | ||
this.port.send('objectInspector:sendContainerToConsole'); | ||
}), | ||
}); | ||
} | ||
} |
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,5 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
export default Controller.extend({ | ||
navWidth: 180, | ||
}); | ||
export default class InfoController extends Controller { | ||
navWidth = 180; | ||
} |
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,12 @@ | ||
import { computed } from '@ember/object'; | ||
import Controller from '@ember/controller'; | ||
|
||
export default Controller.extend({ | ||
rows: computed('model.[]', function () { | ||
export default class LibrariesController extends Controller { | ||
@computed('model.[]') | ||
get rows() { | ||
return this.get('model.[]').map(({ name, version }) => ({ | ||
library: name, | ||
version, | ||
})); | ||
}), | ||
}); | ||
} | ||
} |
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,12 +1,12 @@ | ||
import { action } from '@ember/object'; | ||
import Component from '@ember/component'; | ||
import Component from '@glimmer/component'; | ||
import { action, set } from '@ember/object'; | ||
import { tracked } from '@glimmer/tracking'; | ||
|
||
export default Component.extend({ | ||
tagName: '', | ||
export default class DisclosureComponent extends Component { | ||
@tracked isExpanded = false; | ||
|
||
isExpanded: false, | ||
|
||
toggle: action(function () { | ||
this.toggleProperty('isExpanded'); | ||
}), | ||
}); | ||
@action | ||
toggle() { | ||
set(this, 'isExpanded', !this.isExpanded); | ||
} | ||
} |
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.