Skip to content
Permalink
Browse files

Add file header declaration

  • Loading branch information...
jiangfuyao committed Jun 22, 2019
1 parent 56d2938 commit ea9c3cb4b86deeb9c081e233a1b4c25ec6cba800
Showing with 786 additions and 8 deletions.
  1. +2 −0 .vscode/settings.json
  2. +1 −1 README.md
  3. +0 −4 __test__/Api.test.js
  4. +12 −0 src/components/Active.js
  5. +12 −0 src/components/CoinRow.js
  6. +12 −0 src/components/Header.js
  7. +12 −0 src/components/Loading.js
  8. +12 −0 src/components/LoadingUtil.js
  9. +12 −0 src/components/ProposalsRow.js
  10. +12 −0 src/components/RNKeyboardAvoidView.js
  11. +12 −0 src/components/RNPicker.js
  12. +12 −0 src/components/bottom.js
  13. +12 −0 src/locales/en-US/Assets/index.js
  14. +12 −0 src/locales/en-US/Democracy/index.js
  15. +12 −0 src/locales/en-US/Profile/index.js
  16. +12 −0 src/locales/en-US/Staking/index.js
  17. +12 −0 src/locales/en-US/index.js
  18. +12 −0 src/locales/i18n.js
  19. +12 −0 src/locales/zh-CN/Assets/index.js
  20. +12 −0 src/locales/zh-CN/Democracy/index.js
  21. +12 −0 src/locales/zh-CN/Profile/index.js
  22. +12 −0 src/locales/zh-CN/Staking/index.js
  23. +12 −0 src/locales/zh-CN/index.js
  24. +12 −0 src/mobx/mobx.js
  25. +12 −0 src/page/Assets/Assets.js
  26. +12 −0 src/page/Assets/secondary/BackupAccount.js
  27. +12 −0 src/page/Assets/secondary/Camera.js
  28. +12 −0 src/page/Assets/secondary/CoinDetails.js
  29. +12 −0 src/page/Assets/secondary/CreateAccount.js
  30. +12 −0 src/page/Assets/secondary/MnemonicWord_1.js
  31. +12 −0 src/page/Assets/secondary/MnemonicWord_2.js
  32. +12 −0 src/page/Assets/secondary/MnemonicWord_3.js
  33. +12 −0 src/page/Assets/secondary/QRCode.js
  34. +12 −0 src/page/Assets/secondary/RightMenu.js
  35. +12 −0 src/page/Assets/secondary/Transfer/MakeTransfer.js
  36. +12 −0 src/page/Assets/secondary/Transfer/Transfer.js
  37. +12 −0 src/page/Assets/secondary/Transfer/TransferDetails.js
  38. +12 −0 src/page/Democracy/Democracy.js
  39. +12 −0 src/page/Democracy/Proposals.js
  40. +12 −0 src/page/Democracy/Referendums.js
  41. +12 −0 src/page/Democracy/secondary/History.js
  42. +12 −0 src/page/Democracy/secondary/NayorAye.js
  43. +12 −0 src/page/Profile/Profile.js
  44. +12 −0 src/page/Profile/secondary/About.js
  45. +12 −0 src/page/Profile/secondary/AddAddress.js
  46. +12 −0 src/page/Profile/secondary/AddressInformation.js
  47. +12 −0 src/page/Profile/secondary/Addresses.js
  48. +12 −0 src/page/Profile/secondary/Change/ChangeName.js
  49. +12 −0 src/page/Profile/secondary/Change/ChangePassword.js
  50. +12 −0 src/page/Profile/secondary/ManageAccount.js
  51. +12 −0 src/page/Profile/secondary/Settings.js
  52. +12 −0 src/page/Profile/secondary/Settings/Gesture.js
  53. +12 −0 src/page/Profile/secondary/Settings/SetNode.js
  54. +12 −0 src/page/Staking/Staking.js
  55. +12 −0 src/page/Staking/secondary/BondAdditional.js
  56. +12 −0 src/page/Staking/secondary/BondFunds.js
  57. +12 −0 src/page/Staking/secondary/Nominate.js
  58. +12 −0 src/page/Staking/secondary/SetSessionKey.js
  59. +12 −0 src/page/Staking/secondary/Stake.js
  60. +12 −0 src/page/Staking/secondary/Unbond.js
  61. +12 −0 src/page/Staking/secondary/Unnominate.js
  62. +12 −0 src/page/Staking/secondary/Unstake.js
  63. +12 −0 src/page/Staking/secondary/ValidatorInfo.js
  64. +12 −0 src/page/TabbedNavigation.js
  65. +12 −0 src/util/Common.js
  66. +15 −3 src/util/DataRepository.js
  67. +12 −0 src/util/error_guard.js
  68. +12 −0 src/util/polkadotAPI.js
@@ -0,0 +1,2 @@
{
}
@@ -81,7 +81,7 @@ In order to give users a more humane and more convenient experience, as the entr
(then have the Chinese New Year, 14 days holiday) (then have the Chinese New Year, 14 days holiday)
- [x] Functional & logic implementation (plan: 2019.02. 27 done)[actual: 02.22 done] - [x] Functional & logic implementation (plan: 2019.02. 27 done)[actual: 02.22 done]
- [x] Release Beta version (plan: 2019.02.28 release)[actual: 02.23 done] - [x] Release Beta version (plan: 2019.02.28 release)[actual: 02.23 done]
- [ ] Optimization and development - [x] Optimization and development
- [ ] Integrate Parity Signer to Polkawallet - [ ] Integrate Parity Signer to Polkawallet
- [ ] New and more functions, including finance, cross-chain ecosystem - [ ] New and more functions, including finance, cross-chain ecosystem


@@ -8,10 +8,6 @@ let _index = _interopRequireDefault(require('@polkadot/rpc-provider/mock/index')


let _ = require('@polkadot/api') let _ = require('@polkadot/api')


// Copyright 2017-2019 @polkadot/api authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.

describe.skip('Metadata queries', () => { describe.skip('Metadata queries', () => {
let mock let mock
beforeEach(() => { beforeEach(() => {
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Text, View, Image, TouchableOpacity, RefreshControl, ScrollView } from 'react-native' import { Text, View, Image, TouchableOpacity, RefreshControl, ScrollView } from 'react-native'
import { Method } from '@polkadot/types' import { Method } from '@polkadot/types'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Image, View, TouchableOpacity, Text } from 'react-native' import { Image, View, TouchableOpacity, Text } from 'react-native'
import moment from 'moment/moment' import moment from 'moment/moment'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Image, View, TouchableOpacity, Text } from 'react-native' import { Image, View, TouchableOpacity, Text } from 'react-native'
import { ScreenWidth } from '../util/Common' import { ScreenWidth } from '../util/Common'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React from 'react' import React from 'react'
import { ActivityIndicator, StyleSheet, Text, View, Dimensions } from 'react-native' import { ActivityIndicator, StyleSheet, Text, View, Dimensions } from 'react-native'
import i18n from '../locales/i18n' import i18n from '../locales/i18n'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
const LoadingUtil = { const LoadingUtil = {
showLoading(timeOut = 30000) { showLoading(timeOut = 30000) {
global.LoadingTip = true global.LoadingTip = true
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Text, View, Image } from 'react-native' import { Text, View, Image } from 'react-native'
import { ScreenWidth, ScreenHeight } from '../util/Common' import { ScreenWidth, ScreenHeight } from '../util/Common'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { KeyboardAvoidingView, ScrollView, Platform } from 'react-native' import { KeyboardAvoidingView, ScrollView, Platform } from 'react-native'


@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Platform, Picker, Text, ActionSheetIOS, TouchableOpacity, Image } from 'react-native' import { Platform, Picker, Text, ActionSheetIOS, TouchableOpacity, Image } from 'react-native'
import i18n from '../locales/i18n' import i18n from '../locales/i18n'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { Image, Dimensions } from 'react-native' import { Image, Dimensions } from 'react-native'


@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-21 20:09:00
*/
export default { export default {
Alexander: 'Alexander TestNet', Alexander: 'Alexander TestNet',
Receive: 'Receive', Receive: 'Receive',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
export default { export default {
// Democracy.js // Democracy.js
proposals: 'proposals', proposals: 'proposals',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-22 00:27:44
*/
export default { export default {
Setting: 'Setting', Setting: 'Setting',
ManageAccount: 'Manage Account', ManageAccount: 'Manage Account',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
export default { export default {
// Staking.js // Staking.js
stakingOverview: 'Staking Overview', stakingOverview: 'Staking Overview',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import Assets from './Assets/index' import Assets from './Assets/index'
import Staking from './Staking/index' import Staking from './Staking/index'
import Democracy from './Democracy/index' import Democracy from './Democracy/index'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import i18n from 'react-native-i18n' import i18n from 'react-native-i18n'
import en from './en-US/index' import en from './en-US/index'
import zh from './zh-CN/index' import zh from './zh-CN/index'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-21 20:09:00
*/
export default { export default {
Alexander: 'Alexander 测试网', Alexander: 'Alexander 测试网',
Receive: '接收', Receive: '接收',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
export default { export default {
// Democracy.js // Democracy.js
proposals: '提案', proposals: '提案',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-22 00:28:12
*/
export default { export default {
ManageAccount: '账户管理', ManageAccount: '账户管理',
Setting: '设置', Setting: '设置',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
export default { export default {
// Staking.js // Staking.js
stakingOverview: '抵押概况', stakingOverview: '抵押概况',
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import Assets from './Assets/index' import Assets from './Assets/index'
import Staking from './Staking/index' import Staking from './Staking/index'
import Democracy from './Democracy/index' import Democracy from './Democracy/index'
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-21 22:42:42
*/
import { observable } from 'mobx' import { observable } from 'mobx'


class StateStore { class StateStore {
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-21 21:14:28
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { import {
Text, Text,
@@ -1,3 +1,15 @@
/*
* @Description: COPYRIGHT © 2018 POLKAWALLET (HK) LIMITED
* This file is part of Polkawallet.
It under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
You should have received a copy of the GNU General Public License
along with Polkawallet. If not, see <http://www.gnu.org/licenses/>.
* @Autor: POLKAWALLET LIMITED
* @Date: 2019-06-18 21:08:00
*/
import React, { Component } from 'react' import React, { Component } from 'react'
import { import {
StyleSheet, StyleSheet,

0 comments on commit ea9c3cb

Please sign in to comment.
You can’t perform that action at this time.