Skip to content

Commit e0f2050

Browse files
committed
chore: merge stating v3.1.0
2 parents 3896052 + c7f358d commit e0f2050

31 files changed

+19365
-17553
lines changed

.eslintrc.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
2-
root: true,
3-
extends: '@react-native-community',
4-
rules: {
5-
indent: ['warn', 4, { SwitchCase: 1 }],
6-
// semi: ['off', 'always'], // recommend on and always
7-
'no-control-regex': 'off',
8-
'comma-dangle': ['warn', 'never'], // recommend always
9-
'no-undef': 'off',
10-
'react-native/no-inline-styles': 'off' // recommend turning on
11-
// 'prettier/prettier': 'off',
12-
// quotes: ['off', 'double'] // recommend on and backtick
13-
}
2+
root: true,
3+
extends: '@react-native-community',
4+
rules: {
5+
// indent: ['warn', 4, { SwitchCase: 1 }],
6+
// semi: ['off', 'always'], // recommend on and always
7+
'no-control-regex': 'off',
8+
'comma-dangle': ['warn', 'never'], // recommend always
9+
'no-undef': 'off',
10+
'react-native/no-inline-styles': 'off' // recommend turning on
11+
// 'prettier/prettier': 'off',
12+
// quotes: ['off', 'double'] // recommend on and backtick
13+
}
1414
};

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ buck-out/
6767
# Android Build
6868
/android/app/build
6969

70-
android/
70+
# android/
7171
*.hprof

actions/images_action.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
DESELECT_ALL_IMAGES,
99
INCREMENT_SELECTED,
1010
REMOVE_TAG_FROM_IMAGE,
11+
TOGGLE_PICKED_UP,
1112
TOGGLE_SELECTING,
1213
TOGGLE_SELECTED_IMAGES,
1314
URL
@@ -164,6 +165,17 @@ export const removeTagFromImage = data => {
164165
};
165166
};
166167

168+
/**
169+
* toggles picked_up status on an image based on id
170+
* @param id
171+
*/
172+
export const togglePickedUp = id => {
173+
return {
174+
type: TOGGLE_PICKED_UP,
175+
payload: id
176+
};
177+
};
178+
167179
/**
168180
* Toggle if the user wants to Select images for deletion
169181
*/

actions/litter_actions.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
/**
2020
* Change the category of litter eg Smoking, Alcohol
2121
*/
22-
export const changeCategory = (id) => {
22+
export const changeCategory = id => {
2323
return {
2424
type: CHANGE_CATEGORY,
2525
payload: id
@@ -29,7 +29,7 @@ export const changeCategory = (id) => {
2929
/**
3030
* Change the item of litter in a category eg butts, lighters
3131
*/
32-
export const changeItem = (item) => {
32+
export const changeItem = item => {
3333
return {
3434
type: CHANGE_ITEM,
3535
payload: item
@@ -39,7 +39,7 @@ export const changeItem = (item) => {
3939
/**
4040
* Change Quantity of litter
4141
*/
42-
export const changeQ = (q) => {
42+
export const changeQ = q => {
4343
return {
4444
type: CHANGE_Q,
4545
payload: q
@@ -51,9 +51,15 @@ export const changeQ = (q) => {
5151
* picker wheel rotated status == True
5252
* after tag is added satus set to false
5353
*
54+
* If quantityChanged is true -- then while clicking Add Tag button
55+
* the quantilty value currently in PICKER is added to tag
56+
*
57+
* else if quantityChanged is false -- then while clicking Add Tag button
58+
* quantity currently on TAG + 1 is added on tag.
59+
*
5460
* @param {boolean} boolValue
5561
*/
56-
export const changeQuantiyStatus = (boolValue) => {
62+
export const changeQuantityStatus = boolValue => {
5763
return {
5864
type: CHANGE_QUANTITY_STATUS,
5965
payload: boolValue
@@ -65,7 +71,7 @@ export const changeQuantiyStatus = (boolValue) => {
6571
*
6672
* Needs to be extracted to Redux as the number of web-photos changes when 1 is submitted
6773
*/
68-
export const swiperIndexChanged = (index) => {
74+
export const swiperIndexChanged = index => {
6975
return {
7076
type: CHANGE_SWIPER_INDEX,
7177
payload: index
@@ -98,7 +104,7 @@ export const resetLitterTags = () => {
98104
* Content to show in LitterPicker modal
99105
* @show allTags
100106
*/
101-
export const showAllTags = (bool) => {
107+
export const showAllTags = bool => {
102108
return {
103109
type: SHOW_ALL_TAGS,
104110
payload: bool
@@ -108,7 +114,7 @@ export const showAllTags = (bool) => {
108114
/**
109115
* Open / Close the modal on LitterPicker.js
110116
*/
111-
export const setLitterPickerModal = (bool) => {
117+
export const setLitterPickerModal = bool => {
112118
return {
113119
type: SHOW_INNER_MODAL,
114120
payload: bool
@@ -127,7 +133,7 @@ export const toggleSwitch = () => {
127133
/**
128134
*
129135
*/
130-
export const updatePreviousTags = (tags) => {
136+
export const updatePreviousTags = tags => {
131137
return {
132138
type: UPDATE_PREVIOUS_TAGS,
133139
payload: tags
@@ -137,7 +143,7 @@ export const updatePreviousTags = (tags) => {
137143
/**
138144
* Capture the X positions of the tags when they are added / change
139145
*/
140-
export const updateTagXPosition = (data) => {
146+
export const updateTagXPosition = data => {
141147
return {
142148
type: UPDATE_TAGS_X_POS,
143149
payload: data

actions/types.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const DELETE_SELECTED_IMAGES = 'DELETE_SELECTED_IMAGES';
4040
export const DESELECT_ALL_IMAGES = 'DESELECT_ALL_IMAGES';
4141
export const INCREMENT_SELECTED = 'INCREMENT_SELECTED';
4242
export const REMOVE_TAG_FROM_IMAGE = 'REMOVE_TAG_FROM_IMAGE';
43+
export const TOGGLE_PICKED_UP = 'TOGGLE_PICKED_UP';
4344
export const TOGGLE_SELECTING = 'TOGGLE_SELECTING';
4445
export const TOGGLE_SELECTED_IMAGES = 'TOGGLE_SELECTED_IMAGES';
4546

assets/langs/ar/tag.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"suggested-tags": "الوسوم المقترحة",
66
"alert": "تنبيه",
77
"still-there": "المخلفات مازالت موجودة",
8-
"picked-up": "تم التقاط المخلفات"
9-
}
8+
"picked-up": "تم التقاط المخلفات",
9+
"litter-status": "حالة القمامة",
10+
"picked-thumb": "👍🏻 التقطت",
11+
"not-picked-thumb": "👎🏻 لم تلتقط",
12+
"delete-message": "هل أنت متأكد أنك تريد حذف هذه الصورة ؟",
13+
"cancel": "يلغي",
14+
"delete": "نعم ، احذف"
15+
}

assets/langs/de/tag.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"suggested-tags": "Vorgestellter Tag",
66
"alert": "Warnung",
77
"still-there": "Der Abfall ist immernoch dort",
8-
"picked-up": "Der Abfall ist weggenommen"
9-
}
8+
"picked-up": "Der Abfall ist weggenommen",
9+
"litter-status": "Wurfstatus",
10+
"picked-thumb": "Abgeholt 👍🏻",
11+
"not-picked-thumb": "Nicht abgeholt 👎🏻",
12+
"delete-message": "Möchten Sie dieses Bild wirklich löschen?",
13+
"cancel": "Abbrechen",
14+
"delete": "Ja, löschen"
15+
}

assets/langs/en/tag.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"suggested-tags": "Suggested Tags",
66
"alert": "Alert",
77
"still-there": "The Litter is still there",
8-
"picked-up": "The Litter has been picked up"
9-
}
8+
"picked-up": "The Litter has been picked up",
9+
"litter-status": "Litter Status",
10+
"picked-thumb": "Picked up 👍🏻",
11+
"not-picked-thumb": "Not picked up 👎🏻",
12+
"delete-message": "Are you sure you want to delete this image ?",
13+
"cancel": "Cancel",
14+
"delete": "Yes, Delete"
15+
}

assets/langs/es/tag.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"suggested-tags": "Etiquetas sugeridas",
66
"alert": "Alerta",
77
"still-there": "¡La basura sigue ahí!",
8-
"picked-up": "¡La basura ha sido recogida!"
9-
}
8+
"picked-up": "¡La basura ha sido recogida!",
9+
"litter-status": "Estado de la camada",
10+
"picked-thumb": "Recogido 👍🏻",
11+
"not-picked-thumb": "No recogido 👎🏻",
12+
"delete-message": "Estás seguro de que deseas eliminar esta imagen?",
13+
"cancel": "Cancelar",
14+
"delete": "Sí, eliminar"
15+
}

assets/langs/fr/tag.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"suggested-tags": "Etiquettes suggérées",
66
"alert": "Alerte",
77
"still-there": "Les déchets sont toujours là",
8-
"picked-up": "Les déchets ont été collectés"
9-
}
8+
"picked-up": "Les déchets ont été collectés",
9+
"litter-status": "Statut de la portée",
10+
"picked-thumb": "Ramassé 👍🏻",
11+
"not-picked-thumb": "Non ramassé 👎🏻",
12+
"delete-message": "Êtes-vous sûr de vouloir supprimer cette image ?",
13+
"cancel": "Annuler",
14+
"delete": "Oui, supprimer"
15+
}

0 commit comments

Comments
 (0)