You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
@@ -236,7 +235,6 @@ <h4>Let me help you conjure a new element:</h4>
<paper-inputlabel="{{cat('Tell me about ',item,'')}}" ></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
</template>
</dom-module>
<script>
@@ -266,18 +264,14 @@ <h4>Let me help you conjure a new element:</h4>
<dom-moduleis="function-list-input">
<template>
<paper-inputlabel="{{cat('Give me list of variables for ',name,'')}}" value="{{variables}}" pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+" auto-validateerror-message="a ',' separated list please :)"></paper-input>
This file contains hidden or 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 hidden or 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
<paper-inputstyle="width:300px"label="Name the new element"value="{{name}}"pattern="[a-z]+-[a-z\-]*[a-z]+"auto-validateerror-message="Need's to have a '-' between lowercase letters "></paper-input>
<templateis="dom-if"if="{{name}}">
<paper-textareavalue="{{description}}"label="{{cat('Tell me about <', name,'/> element')}}"></paper-textarea>
<paper-inputlabel="what are the elements will your element need"value="{{dependencies}}"pattern="[a-zA-Z\-]*[a-zA-Z\,]*[a-zA-Z\-]+"auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="Give me list of functions it will need"value="{{functions}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="{{cat('Give me list of inputs/output/variables for ',name,'')}}"value="{{variables}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="a ',' separated list "></paper-input>
<templateis="dom-repeat"items="{{variableList}}">
<paper-inputlabel="{{cat('Tell me about ',item,'')}}"></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'variables-list-input',
properties:{
name: String,
description: String,
variables: {
type:String,
notify:true
},
variableList: {
computed:"getArray(variables)"
}
},
cat(a,b,c){
returna+b+c;
},
getArray(s){
if(s!=="")returns.split(',');
}
});
})();
<\/script>
<dom-moduleis="function-list-input">
<template>
<paper-inputlabel="{{cat('Give me list of variables for ',name,'')}}"value="{{variables}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="a ',' separated list please :)"></paper-input>
<templateis="dom-repeat"items="{{variableList}}">
<paper-inputlabel="{{cat('Tell me about ',item,'')}}"></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
<paper-inputlabel="{{cat('What does ',name,' return?')}}"value="{{returns}}"></paper-input>
<type-selectionitem="{{name}}"></type-selection>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'function-list-input',
properties:{
name: String,
description : String,
variables : String,
variableList : {
computed:"getArray(variables)"
}
},
cat(a,b,c){
returna+b+c;
},
getArray(s){
if(s!=="")returns.split(',');
}
});
})();
<\/script>
<dom-moduleis="type-selection">
<template>
<paper-dropdown-menulabel="{{cat('so ',item, ' is a ...')}}">
<paper-menuclass="dropdown-content">
<templateis="dom-repeat"items="[[options]]">
<paper-item>[[item]]</paper-item>
</template>
</paper-menu>
</paper-dropdown-menu>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'type-selection',
properties:{
item : String,
options : {
type:Array,
value : ["Array","Boolean","Number","Object","String","Symbol"]
This file contains hidden or 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
<paper-inputstyle="width:300px" label="Name the new element" value="{{name}}" pattern="[a-z]+-[a-z\-]*[a-z]+" auto-validateerror-message="Need's to have a '-' between lowercase letters "></paper-input>
<templateis="dom-if" if="{{name}}">
<paper-textareavalue="{{description}}" label="{{cat('Tell me about <', name,'/> element')}}"></paper-textarea>
<paper-inputlabel="what are the elements will your element need" value="{{dependencies}}" pattern="[a-zA-Z\-]*[a-zA-Z\,]*[a-zA-Z\-]+" auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="Give me list of functions it will need" value="{{functions}}" pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+" auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="{{cat('Give me list of inputs/output/variables for ',name,'')}}" value="{{variables}}" pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+" auto-validateerror-message="a ',' separated list "></paper-input>
<paper-inputlabel="{{cat('Tell me about ',item,'')}}" ></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
</template>
</dom-module>
<script>
(function(){
Polymer({
is: 'variables-list-input',
properties:{
name: String,
description: String,
variables: {
type:String,
notify:true
},
variableList: {
computed:"getArray(variables)"
}
},
cat(a,b,c){
returna+b+c;
},
getArray(s){
if(s!=="")returns.split(',');
}
});
})();
</script>
<dom-moduleis="function-list-input">
<template>
<paper-inputlabel="{{cat('Give me list of variables for ',name,'')}}" value="{{variables}}" pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+" auto-validateerror-message="a ',' separated list please :)"></paper-input>
<paper-inputstyle="width:300px"label="Name the new element"value="{{name}}"pattern="[a-z]+-[a-z\-]*[a-z]+"auto-validateerror-message="Need's to have a '-' between lowercase letters "></paper-input>
<templateis="dom-if"if="{{name}}">
<paper-textareavalue="{{description}}"label="{{cat('Tell me about <', name,'/> element')}}"></paper-textarea>
<paper-inputlabel="what are the elements will your element need"value="{{dependencies}}"pattern="[a-zA-Z\-]*[a-zA-Z\,]*[a-zA-Z\-]+"auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="Give me list of functions it will need"value="{{functions}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="sorry a ',' separated list "></paper-input>
<paper-inputlabel="{{cat('Give me list of inputs/output/variables for ',name,'')}}"value="{{variables}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="a ',' separated list "></paper-input>
<templateis="dom-repeat"items="{{variableList}}">
<paper-inputlabel="{{cat('Tell me about ',item,'')}}"></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'variables-list-input',
properties:{
name: String,
description: String,
variables: {
type:String,
notify:true
},
variableList: {
computed:"getArray(variables)"
}
},
cat(a,b,c){
returna+b+c;
},
getArray(s){
if(s!=="")returns.split(',');
}
});
})();
<\/script>
<dom-moduleis="function-list-input">
<template>
<paper-inputlabel="{{cat('Give me list of variables for ',name,'')}}"value="{{variables}}"pattern="[a-zA-Z]*[a-zA-Z\,]*[a-zA-Z]+"auto-validateerror-message="a ',' separated list please :)"></paper-input>
<templateis="dom-repeat"items="{{variableList}}">
<paper-inputlabel="{{cat('Tell me about ',item,'')}}"></paper-input>
<type-selectionitem="{{item}}"></type-selection>
</template>
<paper-inputlabel="{{cat('What does ',name,' return?')}}"value="{{returns}}"></paper-input>
<type-selectionitem="{{name}}"></type-selection>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'function-list-input',
properties:{
name: String,
description : String,
variables : String,
variableList : {
computed:"getArray(variables)"
}
},
cat(a,b,c){
returna+b+c;
},
getArray(s){
if(s!=="")returns.split(',');
}
});
})();
<\/script>
<dom-moduleis="type-selection">
<template>
<paper-dropdown-menulabel="{{cat('so ',item, ' is a ...')}}">
<paper-menuclass="dropdown-content">
<templateis="dom-repeat"items="[[options]]">
<paper-item>[[item]]</paper-item>
</template>
</paper-menu>
</paper-dropdown-menu>
</template>
</dom-module>
<script>
(function () {
Polymer({
is: 'type-selection',
properties:{
item : String,
options : {
type:Array,
value : ["Array","Boolean","Number","Object","String","Symbol"]