forked from emberjs/ember-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded ember list view to v 0.0.6 Moved required properties into list-view mixin Part of emberjs#360
- Loading branch information
1 parent
b35f015
commit 836a737
Showing
12 changed files
with
185 additions
and
41 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,5 +1,4 @@ | ||
|
||
.list-view { | ||
.list-view { | ||
position: relative; | ||
font-size: 11px; | ||
height: 100%; | ||
|
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,23 @@ | ||
import ListView from "ember-inspector/views/list"; | ||
import ListItemView from "ember-inspector/views/list-item"; | ||
import ListView from 'ember-inspector/views/list'; | ||
import ListItemView from 'ember-inspector/views/list-item'; | ||
|
||
/** | ||
* @module Views | ||
* @extends Views.List | ||
* @class InstanceList | ||
* @namespace Views | ||
*/ | ||
export default ListView.extend({ | ||
/** | ||
* @property itemViewClass | ||
* @type {Ember.View} | ||
*/ | ||
itemViewClass: ListItemView.extend({ | ||
templateName: "instance_item" | ||
/** | ||
* @property templateName | ||
* @type {String} | ||
* @default 'instance_item' | ||
*/ | ||
templateName: 'instance_item' | ||
}) | ||
|
||
}); |
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,4 +1,5 @@ | ||
import ListItemView from "list-view/list-item-view"; | ||
import ListItemView from 'ember-list-view/list-item-view'; | ||
|
||
export default ListItemView.extend({ | ||
classNames: ["list-tree__item-wrapper", "row-wrapper"] | ||
}); |
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,9 +1,23 @@ | ||
import ListView from "ember-inspector/views/list"; | ||
import ListView from 'ember-inspector/views/list'; | ||
import ListItemView from "ember-inspector/views/list-item"; | ||
|
||
/** | ||
* @module Views | ||
* @extends Views.List | ||
* @class PromiseList | ||
* @namespace Views | ||
*/ | ||
export default ListView.extend({ | ||
/** | ||
* @property itemViewClass | ||
* @type {Ember.View} | ||
*/ | ||
itemViewClass: ListItemView.extend({ | ||
templateName: "promise_item" | ||
/** | ||
* @property templateName | ||
* @type {String} | ||
* @default 'promise_item' | ||
*/ | ||
templateName: 'promise_item' | ||
}) | ||
|
||
}); |
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,15 +1,34 @@ | ||
import Ember from 'ember'; | ||
import ListView from "ember-inspector/views/list"; | ||
import ListItemView from "ember-inspector/views/list-item"; | ||
import ListView from 'ember-inspector/views/list'; | ||
import ListItemView from 'ember-inspector/views/list-item'; | ||
|
||
const { computed } = Ember; | ||
const { readOnly } = computed; | ||
const { computed: { readOnly } } = Ember; | ||
|
||
/** | ||
* @module Views | ||
* @extends Views.List | ||
* @class RecordList | ||
* @namespace Views | ||
*/ | ||
export default ListView.extend({ | ||
/** | ||
* @property itemViewClass | ||
* @type {Ember.View} | ||
*/ | ||
itemViewClass: ListItemView.extend({ | ||
templateName: "record_item", | ||
/** | ||
* @property templateName | ||
* @type {String} | ||
* @default 'record_item' | ||
*/ | ||
templateName: 'record_item', | ||
|
||
// TODO: Look for a better way | ||
/** | ||
* TODO: Need a better way to pass this | ||
* | ||
* @property columns | ||
* @type {Array} | ||
*/ | ||
columns: readOnly('parentView.columns') | ||
}) | ||
}); |
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,14 +1,34 @@ | ||
import Ember from 'ember'; | ||
import ListView from "ember-inspector/views/list"; | ||
import ListItemView from "ember-inspector/views/list-item"; | ||
const { computed } = Ember; | ||
const { readOnly } = computed; | ||
import ListView from 'ember-inspector/views/list'; | ||
import ListItemView from 'ember-inspector/views/list-item'; | ||
|
||
const { computed: { readOnly } } = Ember; | ||
|
||
/** | ||
* @module Views | ||
* @extends Views.List | ||
* @class RouteList | ||
* @namespace Views | ||
*/ | ||
export default ListView.extend({ | ||
/** | ||
* @property itemViewClass | ||
* @type {Ember.View} | ||
*/ | ||
itemViewClass: ListItemView.extend({ | ||
templateName: "route_item", | ||
/** | ||
* @property templateName | ||
* @type {String} | ||
* @default 'route_item' | ||
*/ | ||
templateName: 'route_item', | ||
|
||
// TODO: Need a better way to pass this | ||
/** | ||
* TODO: Need a better way to pass this | ||
* | ||
* @property currentRoute | ||
* @type {String} | ||
*/ | ||
currentRoute: readOnly('parentView.currentRoute') | ||
}) | ||
}); |
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