Skip to content

Commit 30c29c9

Browse files
Start adding TypeScript (#2315)
1 parent ccd7f17 commit 30c29c9

File tree

12 files changed

+504
-194
lines changed

12 files changed

+504
-194
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{{#if this.flatPropertyList.length}}
22
<ul class="mixin__properties m-0 text-base font-mono list-none">
33
<ObjectInspector::SortProperties
4-
@properties={{this.flatPropertyList}} as |sortedProperties|
4+
@properties={{this.flatPropertyList}}
5+
as |sortedProperties|
56
>
67
{{#each sortedProperties as |prop|}}
78
<ObjectInspector::Property
8-
@model={{prop}}
99
@calculate={{fn this.calculate prop}}
1010
@digDeeper={{fn this.digDeeper prop}}
11+
@model={{prop}}
1112
@saveProperty={{this.saveProperty}}
1213
@sendToConsole={{fn this.sendToConsole prop}}
1314
/>
@@ -18,4 +19,4 @@
1819
<Ui::EmptyMessage>
1920
No properties found
2021
</Ui::EmptyMessage>
21-
{{/if}}
22+
{{/if}}

app/components/object-inspector/property.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
{{/if}}
9494
{{#if this.isDate}}
9595
<span
96-
class="{{this.valueType}} mixin__property-value truncate"
96+
class="{{@model.value.type}} mixin__property-value truncate"
9797
role="button"
9898
{{on "click" this.dateClick}}
9999
data-test-object-property-value
@@ -102,7 +102,7 @@
102102
</span>
103103
{{else}}
104104
<span
105-
class="{{this.valueType}} {{if this.isService "type-service"}} mixin__property-value truncate"
105+
class="{{@model.value.type}} {{if this.isService "type-service"}} mixin__property-value truncate"
106106
role="button"
107107
{{on "click" this.valueClick}}
108108
data-test-object-property-value

app/components/object-inspector/property.js

Lines changed: 0 additions & 172 deletions
This file was deleted.

0 commit comments

Comments
 (0)