-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial implementation for computed options * Freeze original options object so it cannot be accidentally modified * Fix test cases * Fix phantom test cases * Run tests in chrome * remove phantom script * Remove options freeze * fix options dependent key * remove frozen test * add options copy test * Cleanup validators * Extract dependent keys from all options * Force dependentKeys to be prefixed with `model` * Fix merge conflicts * Initial demo reboot * More demo changes * Fix typo
- Loading branch information
1 parent
feb4bfb
commit d6b5bff
Showing
18 changed files
with
342 additions
and
196 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 |
---|---|---|
|
@@ -54,6 +54,22 @@ export default Ember.Object.extend({ | |
set(this, 'content', emberArray(get(this, 'content'))); | ||
}, | ||
|
||
/** | ||
* ```javascript | ||
* // Examples | ||
* get(user, 'validations.isWarning') | ||
* get(user, 'validations.attrs.username.isWarning') | ||
* ``` | ||
* | ||
* @property isWarning | ||
* @default false | ||
* @readOnly | ||
* @type {Boolean} | ||
*/ | ||
isWarning: computed('[email protected]', cycleBreaker(function () { | ||
return get(this, 'content').isEvery('isWarning', true); | ||
}, false)).readOnly(), | ||
|
||
/** | ||
* ```javascript | ||
* // Examples | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@accent-color: #f23818; | ||
|
||
@import "./navbar.less"; | ||
@import "./form.less"; | ||
@import "./code-snippet.less"; | ||
|
||
body, | ||
html { | ||
min-height: 100%; | ||
min-width: 100%; | ||
background-color: #F3F3F3; | ||
height: 100%; | ||
font-family: 'Open Sans', sans-serif; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
|
||
> div { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.content { | ||
display: flex; | ||
justify-content: center; | ||
padding: 25px; | ||
flex: 1 0 auto; | ||
} |
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,51 @@ | ||
@background-color: #fdfdfd; | ||
|
||
.snippet-container { | ||
background: @background-color; | ||
align-self: flex-start; | ||
overflow: auto; | ||
width: 0; | ||
height: 670px; | ||
margin: auto 0; | ||
-webkit-transition: width 1s ease; | ||
-moz-transition: width 1s ease; | ||
-o-transition: width 1s ease; | ||
transition: width 1s ease; | ||
border-radius: 3px; | ||
padding: 15px 10px; | ||
margin-left: -20px; | ||
z-index: 0; | ||
|
||
&.show { | ||
width: 600px; | ||
margin-left: -2px; | ||
box-shadow: 3px 3px 10px 1px rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
.nav-tabs { | ||
li > a { | ||
color: #8A8A8A; | ||
border-radius: 2px 2px 0 0; | ||
font-size: 12px; | ||
} | ||
li.active > a { | ||
background-color: @background-color; | ||
color: #696969; | ||
} | ||
} | ||
.tab-content { | ||
background-color: @background-color; | ||
max-height: 600px; | ||
overflow: auto; | ||
|
||
> .active { | ||
padding: 15px 15px 0; | ||
} | ||
} | ||
pre { | ||
border: none; | ||
margin: 0; | ||
padding: 0; | ||
background-color: @background-color; | ||
} | ||
} |
Oops, something went wrong.