renames folder with labels, splits up the setting labels from rest

This commit is contained in:
tina
2018-11-28 16:10:38 +01:00
parent 11ceb21921
commit d5f3fdbde5
33 changed files with 303 additions and 31 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { Alert } from 'react-native'
import { shared as sharedLabels } from '../../copy/en/labels'
import { shared as sharedLabels } from '../../i18n/en/labels'
export default function alertError(msg) {
Alert.alert(sharedLabels.errorTitle, msg)
+1 -1
View File
@@ -1,7 +1,7 @@
import Share from 'react-native-share'
import getDataAsCsvDataUri from '../../lib/import-export/export-to-csv'
import alertError from './alert-error'
import { settings as labels } from '../../copy/en/labels'
import { settings as labels } from '../../i18n/en/settings'
export default async function openShareDialogAndExport() {
let data
+2 -1
View File
@@ -2,7 +2,8 @@ import { Alert } from 'react-native'
import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker'
import rnfs from 'react-native-fs'
import importCsv from '../../lib/import-export/import-from-csv'
import { settings as labels, shared as sharedLabels } from '../../copy/en/labels'
import { shared as sharedLabels } from '../../i18n/en/labels'
import { settings as labels } from '../../i18n/en/settings'
import alertError from './alert-error'
export default function openImportDialogAndImport() {
+1 -1
View File
@@ -5,7 +5,7 @@ import {
ScrollView,
} from 'react-native'
import styles from '../../styles/index'
import { settings as labels } from '../../copy/en/labels'
import { settings as labels } from '../../i18n/en/settings'
import AppText from '../app-text'
import TempReminderPicker from './temp-reminder-picker'
import PeriodReminderPicker from './period-reminder'
@@ -1,6 +1,6 @@
import { Alert } from 'react-native'
import { openDb } from '../../../db'
import { shared } from '../../../copy/en/labels'
import { shared } from '../../../i18n/en/labels'
export default async function checkPassword({hash, onCancel, onTryAgain }) {
const connected = await openDb(hash)
+1 -1
View File
@@ -6,7 +6,7 @@ import {
import nodejs from 'nodejs-mobile-react-native'
import AppText from '../../app-text'
import styles from '../../../styles'
import { settings as labels } from '../../../copy/en/settings'
import { settings as labels } from '../../../i18n/en/settings'
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
import PasswordField from './password-field'
import showBackUpReminder from './show-backup-reminder'
+1 -1
View File
@@ -6,7 +6,7 @@ import {
import nodejs from 'nodejs-mobile-react-native'
import AppText from '../../app-text'
import styles from '../../../styles'
import { settings as labels } from '../../../copy/en/settings'
import { settings as labels } from '../../../i18n/en/settings'
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
import PasswordField from './password-field'
import showBackUpReminder from './show-backup-reminder'
+1 -1
View File
@@ -8,7 +8,7 @@ import {
hasEncryptionObservable
} from '../../../local-storage'
import styles from '../../../styles/index'
import { settings as labels } from '../../../copy/en/labels'
import { settings as labels } from '../../../i18n/en/settings'
export default class PasswordSetting extends Component {
constructor(props) {
@@ -1,5 +1,6 @@
import { Alert } from 'react-native'
import { settings as labels, shared } from '../../../copy/en/labels'
import { shared } from '../../../i18n/en/labels'
import { settings as labels } from '../../../i18n/en/settings'
export default function showBackUpReminder(okHandler, isDelete) {
let title, message
+2 -1
View File
@@ -6,7 +6,8 @@ import {
import nodejs from 'nodejs-mobile-react-native'
import AppText from '../../app-text'
import styles from '../../../styles'
import { settings as labels, shared } from '../../../copy/en/labels'
import { shared } from '../../../i18n/en/labels'
import { settings as labels } from '../../../i18n/en/settings'
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
import PasswordField from './password-field'
import showBackUpReminder from './show-backup-reminder'
+1 -1
View File
@@ -9,7 +9,7 @@ import {
savePeriodReminder
} from '../../local-storage'
import styles from '../../styles/index'
import { settings as labels } from '../../copy/en/labels'
import { settings as labels } from '../../i18n/en/settings'
export default class PeriodReminderPicker extends Component {
constructor(props) {
+1 -1
View File
@@ -11,7 +11,7 @@ import {
saveTempReminder
} from '../../local-storage'
import styles from '../../styles/index'
import { settings as labels } from '../../copy/en/labels'
import { settings as labels } from '../../i18n/en/settings'
import padWithZeros from '../helpers/pad-time-with-zeros'
export default class TempReminderPicker extends Component {
+1 -1
View File
@@ -7,7 +7,7 @@ import {
saveTempScale,
} from '../../local-storage'
import { secondaryColor } from '../../styles/index'
import { settings as labels } from '../../copy/en/labels'
import { settings as labels } from '../../i18n/en/settings'
import config from '../../config'
import alertError from './alert-error'