Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/new-cards #41

Merged
merged 10 commits into from
Jun 28, 2022
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf

indent_style = space
indent_size = 2

trim_trailing_whitespace = true

max_line_length = 120
insert_final_newline = true

ij_javascript_use_double_quotes = false

23 changes: 23 additions & 0 deletions .homeycompose/flow/actions/runCode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]]",
"nl": "Voer [[code]] uit"
},
"advanced": true,
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code"
}
]
}
32 changes: 32 additions & 0 deletions .homeycompose/flow/actions/runCodeReturnsBoolean.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] and return Yes/No-tag",
"nl": "Voer [[code]] uit en return Ja/Nee-tag"
},
"tokens": [
{
"name": "boolean",
"type": "boolean",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nreturn true;"
}
]
}
32 changes: 32 additions & 0 deletions .homeycompose/flow/actions/runCodeReturnsNumber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] and return Number-tag",
"nl": "Voer [[code]] uit en return Nummer-tag"
},
"tokens": [
{
"name": "number",
"type": "number",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nreturn 1;"
}
]
}
32 changes: 32 additions & 0 deletions .homeycompose/flow/actions/runCodeReturnsString.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] and return Text-tag",
"nl": "Voer [[code]] uit en return Tekst-tag"
},
"tokens": [
{
"name": "string",
"type": "string",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nreturn 'Hello World!';"
}
]
}
37 changes: 37 additions & 0 deletions .homeycompose/flow/actions/runCodeWithArg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] with [[argument]]",
"nl": "Voer [[code]] uit met [[argument]]"
},
"advanced": true,
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nconsole.log(args[0]);"
},
{
"name": "argument",
"type": "text",
"required": false,
"title": {
"en": "Argument",
"nl": "Argument"
},
"placeholder": {
"en": "Argument",
"nl": "Argument"
},
"value": "MyArg"
}
]
}
46 changes: 46 additions & 0 deletions .homeycompose/flow/actions/runCodeWithArgReturnsBoolean.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] with [[argument]] and return Yes/No-tag",
"nl": "Voer [[code]] uit met [[argument]] en return Ja/Nee-tag"
},
"tokens": [
{
"name": "boolean",
"type": "boolean",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nconsole.log(args[0]);\n\nreturn true;"
},
{
"name": "argument",
"type": "text",
"required": false,
"title": {
"en": "Argument",
"nl": "Argument"
},
"placeholder": {
"en": "Argument",
"nl": "Argument"
},
"value": "MyArg"
}
]
}
46 changes: 46 additions & 0 deletions .homeycompose/flow/actions/runCodeWithArgReturnsNumber.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] with [[argument]] and return Number-tag",
"nl": "Voer [[code]] uit met [[argument]] en return Nummer-tag"
},
"tokens": [
{
"name": "number",
"type": "number",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nconsole.log(args[0]);\n\nreturn 1;"
},
{
"name": "argument",
"type": "text",
"required": false,
"title": {
"en": "Argument",
"nl": "Argument"
},
"placeholder": {
"en": "Argument",
"nl": "Argument"
},
"value": "MyArg"
}
]
}
46 changes: 46 additions & 0 deletions .homeycompose/flow/actions/runCodeWithArgReturnsString.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] with [[argument]] and return Text-tag",
"nl": "Voer [[code]] uit met [[argument]] en return Tekst-tag"
},
"tokens": [
{
"name": "string",
"type": "string",
"title": {
"en": "Result",
"nl": "Resultaat"
}
}
],
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nconsole.log(args[0]);\n\nreturn 'Hello World!';"
},
{
"name": "argument",
"type": "text",
"required": false,
"title": {
"en": "Argument",
"nl": "Argument"
},
"placeholder": {
"en": "Argument",
"nl": "Argument"
},
"value": "MyArg"
}
]
}
23 changes: 23 additions & 0 deletions .homeycompose/flow/conditions/runCode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]]",
"nl": "Voer [[code]] uit"
},
"advanced": true,
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nreturn true;"
}
]
}
37 changes: 37 additions & 0 deletions .homeycompose/flow/conditions/runCodeWithArg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"title": {
"en": "Run code",
"nl": "Voer code uit"
},
"titleFormatted": {
"en": "Run [[code]] with [[argument]]",
"nl": "Voer [[code]] uit met [[argument]]"
},
"advanced": true,
"args": [
{
"name": "code",
"type": "code",
"language": "homeyscript",
"title": {
"en": "Code",
"nl": "Code"
},
"value": "// My Code\n\nconsole.log(args[0]);\n\nreturn true;"
},
{
"name": "argument",
"type": "text",
"required": false,
"title": {
"en": "Argument",
"nl": "Argument"
},
"placeholder": {
"en": "Argument",
"nl": "Argument"
},
"value": "MyArg"
}
]
}
Loading