From 1f2dc35c05140d87dbec35a4069847299ee8447c Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Mon, 11 Jul 2016 12:50:52 -0300 Subject: [PATCH 01/12] Creating file --- chapters/03-nativo/3l-deviceAccounts.md | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 chapters/03-nativo/3l-deviceAccounts.md diff --git a/chapters/03-nativo/3l-deviceAccounts.md b/chapters/03-nativo/3l-deviceAccounts.md new file mode 100644 index 0000000..27f5649 --- /dev/null +++ b/chapters/03-nativo/3l-deviceAccounts.md @@ -0,0 +1,65 @@ +ActionSheet +=========== + +``` +$ cordova plugin add cordova-plugin-actionsheet +``` + +Repositório: [https://github.com/EddyVerbruggen/cordova-plugin-actionsheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet) + +O plugin ActionSheet exibe uma lista de opções que o usuário pode escolher. + +Esse plugin tem como dependência: ```cordova-plugin-actionsheet```. Para mais informações, por favor veja a [documentação do plugin ActionSheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet). + +Platafomas suportadas +----- +- Android +- iOS +- Windows Phone 8 + +Uso +--- + +``` javascript +import {ActionSheet} from 'ionic-native'; + +let buttonLabels = ['Share via Facebook', 'Share via Twitter']; +ActionSheet.show({ + 'title': 'What do you want with this image?', + 'buttonLabels': buttonLabels, + 'addCancelButtonWithLabel': 'Cancel', + 'addDestructiveButtonWithLabel' : 'Delete' +}).then(buttonIndex => { + console.log('Button pressed: ' + buttonLabels[buttonIndex - 1]); +}); +``` + +Métodos estáticos +----------------- + +``` show(Options) ``` + +Mostra o ActionSheet. As opções do ActionSheet é um objeto com as seguintes propriedades. + +| Opção | Tipo | Descrição | +|-------------------------------|-----------|----------------------------------------------| +| title |`string` | O título para o actionsheet | +| buttonLabels |`string[]` | Labels para os botões. Usa o índice 'x' | +| androidTheme |`number` | Tema para ser usado no Android | +| androidEnableCancelButton |`boolean` | Habilita o botão de cancelar no Android | +| winphoneEnableCancelButton |`boolean` | Habilita o botão de cancelar no Windows Phone| +| addCancelButtonWithLabel |`string` | Adiciona um botão de cancelar com texto | +| addDestructiveButtonWithLabel |`string` | Adiciona um botão destrutivo com texto | +| position |`number[]` | No iPad, define a posição X,Y | + +| Parametro | Tipo | Detalhes | +|-------------------------------|--------------|----------------------------------------------| +| Options |```options``` | Veja tabela acima | + +*Retorna:* ```Promise``` + +Retorna uma Promise que retorna o indíce do botão pressionado (o índice começa em 1, então 1, 2, 3, etc.). + +``` hide() ``` + +Esconde o ActionSheet. \ No newline at end of file From 7e8bf6a6b0495e10d7c87b6a9484ae3357462456 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Mon, 11 Jul 2016 17:50:03 -0300 Subject: [PATCH 02/12] Update 3l-deviceAccounts.md --- chapters/03-nativo/3l-deviceAccounts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chapters/03-nativo/3l-deviceAccounts.md b/chapters/03-nativo/3l-deviceAccounts.md index 27f5649..2e801ac 100644 --- a/chapters/03-nativo/3l-deviceAccounts.md +++ b/chapters/03-nativo/3l-deviceAccounts.md @@ -1,8 +1,8 @@ -ActionSheet +DeviceAccounts =========== ``` -$ cordova plugin add cordova-plugin-actionsheet +$ ionic plugin add https://github.com/loicknuchel/cordova-device-accounts.git ``` Repositório: [https://github.com/EddyVerbruggen/cordova-plugin-actionsheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet) @@ -62,4 +62,4 @@ Retorna uma Promise que retorna o indíce do botão pressionado (o índice come ``` hide() ``` -Esconde o ActionSheet. \ No newline at end of file +Esconde o ActionSheet. From c665693792b353411393386632d94da82475e261 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Tue, 12 Jul 2016 22:45:35 -0300 Subject: [PATCH 03/12] Finishing all translations --- chapters/03-nativo/3l-deviceAccounts.md | 52 +++++-------------------- 1 file changed, 10 insertions(+), 42 deletions(-) diff --git a/chapters/03-nativo/3l-deviceAccounts.md b/chapters/03-nativo/3l-deviceAccounts.md index 2e801ac..e3f2097 100644 --- a/chapters/03-nativo/3l-deviceAccounts.md +++ b/chapters/03-nativo/3l-deviceAccounts.md @@ -5,61 +5,29 @@ DeviceAccounts $ ionic plugin add https://github.com/loicknuchel/cordova-device-accounts.git ``` -Repositório: [https://github.com/EddyVerbruggen/cordova-plugin-actionsheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet) - -O plugin ActionSheet exibe uma lista de opções que o usuário pode escolher. - -Esse plugin tem como dependência: ```cordova-plugin-actionsheet```. Para mais informações, por favor veja a [documentação do plugin ActionSheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet). +Repositório: [https://github.com/loicknuchel/cordova-device-accounts](https://github.com/loicknuchel/cordova-device-accounts) Platafomas suportadas ----- - Android -- iOS -- Windows Phone 8 - -Uso ---- -``` javascript -import {ActionSheet} from 'ionic-native'; - -let buttonLabels = ['Share via Facebook', 'Share via Twitter']; -ActionSheet.show({ - 'title': 'What do you want with this image?', - 'buttonLabels': buttonLabels, - 'addCancelButtonWithLabel': 'Cancel', - 'addDestructiveButtonWithLabel' : 'Delete' -}).then(buttonIndex => { - console.log('Button pressed: ' + buttonLabels[buttonIndex - 1]); -}); -``` Métodos estáticos ----------------- -``` show(Options) ``` +``` get() ``` -Mostra o ActionSheet. As opções do ActionSheet é um objeto com as seguintes propriedades. +Pega todas as contas registradas no dispositivo Android. -| Opção | Tipo | Descrição | -|-------------------------------|-----------|----------------------------------------------| -| title |`string` | O título para o actionsheet | -| buttonLabels |`string[]` | Labels para os botões. Usa o índice 'x' | -| androidTheme |`number` | Tema para ser usado no Android | -| androidEnableCancelButton |`boolean` | Habilita o botão de cancelar no Android | -| winphoneEnableCancelButton |`boolean` | Habilita o botão de cancelar no Windows Phone| -| addCancelButtonWithLabel |`string` | Adiciona um botão de cancelar com texto | -| addDestructiveButtonWithLabel |`string` | Adiciona um botão destrutivo com texto | -| position |`number[]` | No iPad, define a posição X,Y | +``` getByType() ``` -| Parametro | Tipo | Detalhes | -|-------------------------------|--------------|----------------------------------------------| -| Options |```options``` | Veja tabela acima | +Pega todas as contas registradas no dispositivo Android pelo tipo requisitado. -*Retorna:* ```Promise``` +``` getEmails() ``` -Retorna uma Promise que retorna o indíce do botão pressionado (o índice começa em 1, então 1, 2, 3, etc.). +Pega todos os emails registrados no dispositivo Android (com com o tipo 'com.google'). -``` hide() ``` +``` getEmail() ``` -Esconde o ActionSheet. +Get the first email registered on Android device +Pega o primeiro endereço de email registrado no dispositivo Android. From 2a3874b4c4532669612a9fcd12dd6794e8b12c06 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Tue, 12 Jul 2016 22:46:46 -0300 Subject: [PATCH 04/12] Update README.md --- chapters/03-nativo/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapters/03-nativo/README.md b/chapters/03-nativo/README.md index 181d8e4..00c3005 100644 --- a/chapters/03-nativo/README.md +++ b/chapters/03-nativo/README.md @@ -40,4 +40,5 @@ 3.38 > StatusBar 3.39 > Toast 3.40 > TouchID -3.41 > Vibration +3.41 > Vibration +3.42 > [DeviceAccounts](3l-deviceAccounts.md) From 34bf0dccac8cc24b2f12d28e25f072073a51957c Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Tue, 12 Jul 2016 22:47:28 -0300 Subject: [PATCH 05/12] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 396d321..de3e2e9 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,8 @@ 3.38 StatusBar 3.39 Toast 3.40 TouchID -3.41 Vibration +3.41 Vibration +3.42 [DeviceAccounts](chapters/03-nativo/3l-deviceAccounts.md) ####4. Temas 4.1 [Introdução](chapters/04-temas/4a-intro.md) From 98ab12c07caa5a6a21f5b94d12d75d3bb85c07ab Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 14 Jul 2016 18:26:44 -0300 Subject: [PATCH 06/12] Creating file --- chapters/03-nativo/3an-diagnostic.md | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 chapters/03-nativo/3an-diagnostic.md diff --git a/chapters/03-nativo/3an-diagnostic.md b/chapters/03-nativo/3an-diagnostic.md new file mode 100644 index 0000000..27f5649 --- /dev/null +++ b/chapters/03-nativo/3an-diagnostic.md @@ -0,0 +1,65 @@ +ActionSheet +=========== + +``` +$ cordova plugin add cordova-plugin-actionsheet +``` + +Repositório: [https://github.com/EddyVerbruggen/cordova-plugin-actionsheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet) + +O plugin ActionSheet exibe uma lista de opções que o usuário pode escolher. + +Esse plugin tem como dependência: ```cordova-plugin-actionsheet```. Para mais informações, por favor veja a [documentação do plugin ActionSheet](https://github.com/EddyVerbruggen/cordova-plugin-actionsheet). + +Platafomas suportadas +----- +- Android +- iOS +- Windows Phone 8 + +Uso +--- + +``` javascript +import {ActionSheet} from 'ionic-native'; + +let buttonLabels = ['Share via Facebook', 'Share via Twitter']; +ActionSheet.show({ + 'title': 'What do you want with this image?', + 'buttonLabels': buttonLabels, + 'addCancelButtonWithLabel': 'Cancel', + 'addDestructiveButtonWithLabel' : 'Delete' +}).then(buttonIndex => { + console.log('Button pressed: ' + buttonLabels[buttonIndex - 1]); +}); +``` + +Métodos estáticos +----------------- + +``` show(Options) ``` + +Mostra o ActionSheet. As opções do ActionSheet é um objeto com as seguintes propriedades. + +| Opção | Tipo | Descrição | +|-------------------------------|-----------|----------------------------------------------| +| title |`string` | O título para o actionsheet | +| buttonLabels |`string[]` | Labels para os botões. Usa o índice 'x' | +| androidTheme |`number` | Tema para ser usado no Android | +| androidEnableCancelButton |`boolean` | Habilita o botão de cancelar no Android | +| winphoneEnableCancelButton |`boolean` | Habilita o botão de cancelar no Windows Phone| +| addCancelButtonWithLabel |`string` | Adiciona um botão de cancelar com texto | +| addDestructiveButtonWithLabel |`string` | Adiciona um botão destrutivo com texto | +| position |`number[]` | No iPad, define a posição X,Y | + +| Parametro | Tipo | Detalhes | +|-------------------------------|--------------|----------------------------------------------| +| Options |```options``` | Veja tabela acima | + +*Retorna:* ```Promise``` + +Retorna uma Promise que retorna o indíce do botão pressionado (o índice começa em 1, então 1, 2, 3, etc.). + +``` hide() ``` + +Esconde o ActionSheet. \ No newline at end of file From f54147fed315ec48bf57b37f2dfaf8551200798e Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:07:32 -0300 Subject: [PATCH 07/12] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4495d6c..d98efac 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,8 @@ 3.53 > TouchID 3.54 > Transfer 3.55 > Vibration -3.56 > WebIntent -3.57 > [DeviceAccounts](chapters/03-nativo/3l-deviceAccounts.md) +3.56 > WebIntent + ####4. Temas 4.1 [Introdução](chapters/04-temas/4a-intro.md) @@ -128,8 +128,6 @@ 8.6 [Instalação em OSX](chapters/08-recursos/08f-mac-setup.md)
8.7 [Instalação em Windows](chapters/08-recursos/08g-windows-setup.md) -- *linkar em cada capítulo o caminho correto para o arquivo.md* - ## Contribuindo com a tradução From 13b98972f1486faa97bd381e6c3ef80aacc84ffd Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:08:06 -0300 Subject: [PATCH 08/12] Update README.md --- chapters/03-nativo/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapters/03-nativo/README.md b/chapters/03-nativo/README.md index 7fb8d05..99b3590 100644 --- a/chapters/03-nativo/README.md +++ b/chapters/03-nativo/README.md @@ -54,5 +54,4 @@ 3.53 > TouchID 3.54 > Transfer 3.55 > Vibration -3.56 > WebIntent -3.57 > [DeviceAccounts](chapters/03-nativo/3l-deviceAccounts.md) +3.56 > WebIntent From da40ac7ac199827a6c20badd867ee4481c996823 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:10:01 -0300 Subject: [PATCH 09/12] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d98efac..3148d6f 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ 8.6 [Instalação em OSX](chapters/08-recursos/08f-mac-setup.md)
8.7 [Instalação em Windows](chapters/08-recursos/08g-windows-setup.md) +-- *linkar em cada capítulo o caminho correto para o arquivo.md* + - ## Contribuindo com a tradução From da6c1b7faa260db4c2a83d0cd234899221438f84 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:10:20 -0300 Subject: [PATCH 10/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3148d6f..1f94a41 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ 8.7 [Instalação em Windows](chapters/08-recursos/08g-windows-setup.md) -- *linkar em cada capítulo o caminho correto para o arquivo.md* - - +- ## Contribuindo com a tradução From 2c7b45057485d0980e694e92a61a5d531f40d8fe Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:10:37 -0300 Subject: [PATCH 11/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f94a41..02c71c2 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ 8.6 [Instalação em OSX](chapters/08-recursos/08f-mac-setup.md)
8.7 [Instalação em Windows](chapters/08-recursos/08g-windows-setup.md) --- *linkar em cada capítulo o caminho correto para o arquivo.md* +- *linkar em cada capítulo o caminho correto para o arquivo.md* - ## Contribuindo com a tradução From fc4e2ea13255ae3d5dd5ee238006fc513f2dfd8b Mon Sep 17 00:00:00 2001 From: Eduardo Pedroso Date: Thu, 28 Jul 2016 22:10:47 -0300 Subject: [PATCH 12/12] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02c71c2..6c967c3 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ 8.7 [Instalação em Windows](chapters/08-recursos/08g-windows-setup.md) - *linkar em cada capítulo o caminho correto para o arquivo.md* -- + ## Contribuindo com a tradução