From c978136fd4a64e100e764c30714688e4e3fea90a Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Mon, 16 Apr 2018 12:20:06 -0300 Subject: [PATCH] [NEW] Rocketapps inputs (#10394) [FIX] Missing RocketApps input types --- package-lock.json | 2 +- .../client/admin/appManage.html | 336 ++++++++++++------ .../rocketchat-apps/client/admin/appManage.js | 42 ++- .../client/imports/forms/input.css | 4 + .../client/imports/forms/select.css | 8 + .../client/imports/general/apps.css | 4 +- .../rocketchat-ui-master/public/icons.svg | 2 + .../client/views/app/directory.html | 6 +- .../client/views/app/directory.js | 8 + 9 files changed, 292 insertions(+), 120 deletions(-) diff --git a/package-lock.json b/package-lock.json index f57222da8ce..997dc6e523a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "Rocket.Chat", - "version": "0.63.0-rc.1", + "version": "0.64.0-develop", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/rocketchat-apps/client/admin/appManage.html b/packages/rocketchat-apps/client/admin/appManage.html index b27c8a2df04..0a2e61996a1 100644 --- a/packages/rocketchat-apps/client/admin/appManage.html +++ b/packages/rocketchat-apps/client/admin/appManage.html @@ -55,31 +55,31 @@
{{#if $eq type 'string'}} -
- - {{# if i18nDescription}} -
{{{parseDescription i18nDescription}}}
- {{/if}} - {{# if i18nAlert}} -
-
- {{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} +
+ + {{# if i18nDescription}} +
{{{parseDescription i18nDescription}}}
+ {{/if}} + {{# if i18nAlert}} +
+
+ {{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} +
+
{{_ "i18nAlert"}}
-
{{_ "i18nAlert"}}
+ {{/if}}
- {{/if}} -
{{else if $eq type 'boolean'}} -
+
{{{parseDescription i18nDescription}}}
- {{else if $eq type 'int'}} + {{else if $eq type 'int'}}
{{/if}}
- {{else if $eq type 'password'}} + {{else if $eq type 'password'}}
{{/if}}
- {{else}} -
- -
- {{#if $eq type 'relativeUrl'}} - + {{else if $eq type 'relativeUrl'}} +
+ + {{# if i18nDescription}} +
{{{parseDescription i18nDescription}}}
{{/if}} - - {{#if $eq type 'select'}} -
- + {{# if i18nAlert}} +
+
+ {{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} +
+
{{_ "i18nAlert"}}
- {{/if}} - - {{#if $eq type 'language'}} -
- +
+ {{else if $eq type 'font'}} +
+ + {{# if i18nDescription}} +
{{{parseDescription i18nDescription}}}
+ {{/if}} + {{# if i18nAlert}} +
+
+ {{> icon block="rc-input__error-icon" icon="warning" classes="rc-input__error-icon-svg"}} +
+
{{_ "i18nAlert"}}
- {{/if}} - - {{#if $eq type 'color'}} -
- {{#if $eq editor 'color'}} -
- - +
+ {{else if $eq type 'code'}} +
+