From 19ca8e28a52e6622c046ba29028351de131fe777 Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Tue, 4 Jul 2023 19:40:13 +0000 Subject: [PATCH] Lint and fix missing trailing newlines (#16445) Apply the Clojure Style Guide recommendation to end files with proper lines (having a trailing newline character). See https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 --- .github/ISSUE_TEMPLATE.md | 2 +- Makefile | 25 +++++++------- app.json | 2 +- doc/decisions/0012-using-pivotal-tracker.md | 2 +- ios/StatusIm/Images.xcassets/Contents.json | 2 +- modules/react-native-status/package.json | 2 +- resources/config/fleets.json | 2 +- scripts/lint-trailing-newline.sh | 33 +++++++++++++++++++ src/quo/previews/icons.cljs | 2 +- .../settings/reorder_item/component_spec.cljs | 2 +- src/status_im/data_store/invitations.cljs | 2 +- src/status_im/fleet/default_fleet.cljs | 2 +- src/status_im/keycard/test_menu.cljs | 2 +- .../ui/components/checkbox/styles.cljs | 2 +- src/status_im/ui/components/fast_image.cljs | 2 +- src/status_im/ui/components/list/styles.cljs | 2 +- src/status_im/ui/components/plus_button.cljs | 2 +- src/status_im/ui/components/slider.cljs | 2 +- src/status_im/ui/components/tabbar/core.cljs | 2 +- src/status_im/ui/components/tabs.cljs | 2 +- .../screens/chat/styles/message/sheets.cljs | 2 +- .../ui/screens/dapps_permissions/styles.cljs | 2 +- .../ui/screens/help_center/styles.cljs | 2 +- .../link_previews_settings/styles.cljs | 2 +- src/status_im/ui/screens/pairing/styles.cljs | 2 +- .../ui/screens/profile/user/styles.cljs | 2 +- .../ui/screens/qr_scanner/styles.cljs | 2 +- src/status_im/ui/screens/signing/styles.cljs | 2 +- src/status_im/ui/screens/stickers/styles.cljs | 2 +- .../ui/screens/wallet/components/styles.cljs | 2 +- .../ui/screens/wallet/components/views.cljs | 2 +- .../ui/screens/wallet/send/styles.cljs | 2 +- .../session_proposal/styles.cljs | 2 +- src/status_im/utils/image.cljs | 2 +- .../utils/signing_phrase/dictionaries/en.cljs | 2 +- src/status_im/wallet/utils.cljs | 2 +- src/status_im2/common/plus_button/view.cljs | 2 +- .../chat/menus/pinned_messages/style.cljs | 2 +- .../chat/messages/content/pin/view.cljs | 2 +- .../chat/messages/navigation/style.cljs | 2 +- .../chat/messages/pin/banner/style.cljs | 2 +- src/status_im2/subs/browser.cljs | 2 +- translations/es_419.json | 2 +- translations/fa.json | 2 +- translations/fr.json | 2 +- translations/hi.json | 2 +- translations/ja.json | 2 +- translations/pt_BR.json | 2 +- translations/zh.json | 2 +- translations/zh_TW.json | 2 +- 50 files changed, 94 insertions(+), 60 deletions(-) create mode 100755 scripts/lint-trailing-newline.sh diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index ce3ccf0f0b9..eb3ab87db83 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -43,4 +43,4 @@ As a , I want to so that . [comment]: # (if on Android please replicate bug whilst running adb logcat) ``` ... -``` \ No newline at end of file +``` diff --git a/Makefile b/Makefile index d2da93d4bdf..5fe98140b93 100644 --- a/Makefile +++ b/Makefile @@ -14,17 +14,17 @@ WHITE := $(shell tput -Txterm setaf 7) YELLOW := $(shell tput -Txterm setaf 3) RESET := $(shell tput -Txterm sgr0) HELP_FUN = \ - %help; \ - while(<>) { push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^([a-zA-Z\-]+)\s*:.*\#\#(?:@([a-zA-Z\-]+))?\s(.*)$$/ }; \ - print "Usage: make [target]\n\nSee STARTING_GUIDE.md for more info.\n\n"; \ - for (sort keys %help) { \ - print "${WHITE}$$_:${RESET}\n"; \ - for (@{$$help{$$_}}) { \ - $$sep = " " x (32 - length $$_->[0]); \ - print " ${YELLOW}$$_->[0]${RESET}$$sep${GREEN}$$_->[1]${RESET}\n"; \ - }; \ - print "\n"; \ - } + %help; \ + while(<>) { push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^([a-zA-Z\-]+)\s*:.*\#\#(?:@([a-zA-Z\-]+))?\s(.*)$$/ }; \ + print "Usage: make [target]\n\nSee STARTING_GUIDE.md for more info.\n\n"; \ + for (sort keys %help) { \ + print "${WHITE}$$_:${RESET}\n"; \ + for (@{$$help{$$_}}) { \ + $$sep = " " x (32 - length $$_->[0]); \ + print " ${YELLOW}$$_->[0]${RESET}$$sep${GREEN}$$_->[1]${RESET}\n"; \ + }; \ + print "\n"; \ + } HOST_OS := $(shell uname | tr '[:upper:]' '[:lower:]') # This can come from Jenkins @@ -307,6 +307,7 @@ lint: ##@test Run code style checks clj-kondo --config .clj-kondo/config.edn --cache false --lint src && \ ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \ zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \ + sh scripts/lint-trailing-newline.sh && \ yarn prettier # NOTE: We run the linter twice because of https://github.com/kkinnear/zprint/issues/271 @@ -315,9 +316,9 @@ lint-fix: ##@test Run code style checks and fix issues ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \ zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \ zprint '{:search-config? true}' -sw $$ALL_CLOJURE_FILES && \ + sh scripts/lint-trailing-newline.sh --fix && \ yarn prettier - shadow-server: export TARGET := clojure shadow-server:##@ Start shadow-cljs in server mode for watching yarn shadow-cljs server diff --git a/app.json b/app.json index c24d965dac4..7e5f39bafdf 100644 --- a/app.json +++ b/app.json @@ -1,4 +1,4 @@ { "name": "StatusIm", "displayName": "StatusIm" -} \ No newline at end of file +} diff --git a/doc/decisions/0012-using-pivotal-tracker.md b/doc/decisions/0012-using-pivotal-tracker.md index 9e52dc0f46c..17f0ab52f33 100644 --- a/doc/decisions/0012-using-pivotal-tracker.md +++ b/doc/decisions/0012-using-pivotal-tracker.md @@ -45,4 +45,4 @@ The `State` field in the Pivotal story is used to track the progress of a Pivota | 5 points | 2 - 3 days | | 8 points | ~1 week | - We should avoid 8 point stories by breaking them down into smaller stories as much as possible. \ No newline at end of file + We should avoid 8 point stories by breaking them down into smaller stories as much as possible. diff --git a/ios/StatusIm/Images.xcassets/Contents.json b/ios/StatusIm/Images.xcassets/Contents.json index da4a164c918..2d92bd53fdb 100644 --- a/ios/StatusIm/Images.xcassets/Contents.json +++ b/ios/StatusIm/Images.xcassets/Contents.json @@ -3,4 +3,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/modules/react-native-status/package.json b/modules/react-native-status/package.json index 1df0d0b103f..b67939dd9f1 100644 --- a/modules/react-native-status/package.json +++ b/modules/react-native-status/package.json @@ -18,4 +18,4 @@ "url": "https://github.com/status-im/react-native-status/issues" }, "homepage": "https://github.com/status-im/react-native-status#readme" -} \ No newline at end of file +} diff --git a/resources/config/fleets.json b/resources/config/fleets.json index 0f74f9c4555..ab7e794ff10 100644 --- a/resources/config/fleets.json +++ b/resources/config/fleets.json @@ -194,4 +194,4 @@ } } } -} \ No newline at end of file +} diff --git a/scripts/lint-trailing-newline.sh b/scripts/lint-trailing-newline.sh new file mode 100755 index 00000000000..f35c1ed2b9e --- /dev/null +++ b/scripts/lint-trailing-newline.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +set -eof pipefail + +FILES=$(comm -23 <(sort <(git ls-files --cached --others --exclude-standard)) <(sort <(git ls-files --deleted)) | grep --ignore-case -E '\.(java|cpp|nix|json|sh|md|js|clj|cljs|cljc|edn)$') +N_FILES=$(echo "$FILES" | wc -l) +LINT_SHOULD_FIX=0 + +if [[ -n $1 && $1 != '--fix' ]]; then + echo "Unknown option '$1'" >&2 + exit 1 +elif [[ $1 == '--fix' ]]; then + LINT_SHOULD_FIX=1 +fi + +echo "Checking ${N_FILES} files for missing trailing newlines." + +# Do not process the whole file and only check the last character. Ignore empty +# files. Taken from https://stackoverflow.com/a/10082466. +for file in $FILES; do + if [ -s "$file" ] && [ "$(tail -c1 "$file"; echo x)" != $'\nx' ]; then + if [[ $LINT_SHOULD_FIX -eq 1 ]]; then + echo "" >>"$file" + else + LINT_ERROR=1 + echo "No trailing newline: $file" >&2 + fi + fi +done + +if [[ $LINT_ERROR -eq 1 ]]; then + exit 1 +fi diff --git a/src/quo/previews/icons.cljs b/src/quo/previews/icons.cljs index 77318534f88..9c04ec219c6 100644 --- a/src/quo/previews/icons.cljs +++ b/src/quo/previews/icons.cljs @@ -11,4 +11,4 @@ (for [i (keys icons/icons)] [rn/view {:flex-direction :row} [icons/icon (keyword i)] - [rn/text i]])]) \ No newline at end of file + [rn/text i]])]) diff --git a/src/quo2/components/settings/reorder_item/component_spec.cljs b/src/quo2/components/settings/reorder_item/component_spec.cljs index 2da525ad3bf..86aeecaea9d 100644 --- a/src/quo2/components/settings/reorder_item/component_spec.cljs +++ b/src/quo2/components/settings/reorder_item/component_spec.cljs @@ -26,4 +26,4 @@ {:data [{:id 1 :label "Item 1"} ]} types/tab]) - (h/is-truthy (h/get-by-text "Item 1")))) \ No newline at end of file + (h/is-truthy (h/get-by-text "Item 1")))) diff --git a/src/status_im/data_store/invitations.cljs b/src/status_im/data_store/invitations.cljs index 7966dbfe101..9de4592005d 100644 --- a/src/status_im/data_store/invitations.cljs +++ b/src/status_im/data_store/invitations.cljs @@ -6,4 +6,4 @@ (-> message (clojure.set/rename-keys {:chatId :chat-id :introductionMessage :introduction-message - :messageType :message-type}))) \ No newline at end of file + :messageType :message-type}))) diff --git a/src/status_im/fleet/default_fleet.cljs b/src/status_im/fleet/default_fleet.cljs index 8a212cb3f31..53cdcff304d 100644 --- a/src/status_im/fleet/default_fleet.cljs +++ b/src/status_im/fleet/default_fleet.cljs @@ -1,4 +1,4 @@ (ns status-im.fleet.default-fleet (:require-macros [status-im.utils.slurp :refer [slurp]])) (def default-fleets - (slurp "resources/config/fleets.json")) \ No newline at end of file + (slurp "resources/config/fleets.json")) diff --git a/src/status_im/keycard/test_menu.cljs b/src/status_im/keycard/test_menu.cljs index 295ffa61150..72cc3316d99 100644 --- a/src/status_im/keycard/test_menu.cljs +++ b/src/status_im/keycard/test_menu.cljs @@ -28,4 +28,4 @@ [button "conn sell" :connect-selected-card simulated-keycard/connect-selected-card] [button "pair" :connect-pairing-card simulated-keycard/connect-pairing-card] [button "disc" :disconnect-card simulated-keycard/disconnect-card] - [button "res" :keycard-reset-state simulated-keycard/reset-state]]) \ No newline at end of file + [button "res" :keycard-reset-state simulated-keycard/reset-state]]) diff --git a/src/status_im/ui/components/checkbox/styles.cljs b/src/status_im/ui/components/checkbox/styles.cljs index 91783d652b6..2ce6b68c1fb 100644 --- a/src/status_im/ui/components/checkbox/styles.cljs +++ b/src/status_im/ui/components/checkbox/styles.cljs @@ -11,4 +11,4 @@ :justify-content :center :border-radius 2 :width 18 - :height 18}) \ No newline at end of file + :height 18}) diff --git a/src/status_im/ui/components/fast_image.cljs b/src/status_im/ui/components/fast_image.cljs index af4afc09c9d..84b3b2c1314 100644 --- a/src/status_im/ui/components/fast_image.cljs +++ b/src/status_im/ui/components/fast_image.cljs @@ -30,4 +30,4 @@ (if @error? [icons/icon :main-icons/cancel] (when-not @loaded? - [react/activity-indicator {:animating true}]))])]))) \ No newline at end of file + [react/activity-indicator {:animating true}]))])]))) diff --git a/src/status_im/ui/components/list/styles.cljs b/src/status_im/ui/components/list/styles.cljs index efabe359070..923a07e2f2a 100644 --- a/src/status_im/ui/components/list/styles.cljs +++ b/src/status_im/ui/components/list/styles.cljs @@ -60,4 +60,4 @@ :android {:margin-bottom 3} :ios {:margin-bottom 10}}) -(def section-header-container {}) \ No newline at end of file +(def section-header-container {}) diff --git a/src/status_im/ui/components/plus_button.cljs b/src/status_im/ui/components/plus_button.cljs index 772d6160239..7a0748965a2 100644 --- a/src/status_im/ui/components/plus_button.cljs +++ b/src/status_im/ui/components/plus_button.cljs @@ -42,4 +42,4 @@ [react/activity-indicator {:color colors/white-persist :animating true}] - [icons/icon :main-icons/add {:color colors/white-persist}])]]]) \ No newline at end of file + [icons/icon :main-icons/add {:color colors/white-persist}])]]]) diff --git a/src/status_im/ui/components/slider.cljs b/src/status_im/ui/components/slider.cljs index 2284c83325b..35370412764 100644 --- a/src/status_im/ui/components/slider.cljs +++ b/src/status_im/ui/components/slider.cljs @@ -6,4 +6,4 @@ (def slider (reagent/adapt-react-class Slider)) (def animated-slider - (reagent/adapt-react-class (.createAnimatedComponent Animated Slider))) \ No newline at end of file + (reagent/adapt-react-class (.createAnimatedComponent Animated Slider))) diff --git a/src/status_im/ui/components/tabbar/core.cljs b/src/status_im/ui/components/tabbar/core.cljs index fa80262f726..a182d24fa1e 100644 --- a/src/status_im/ui/components/tabbar/core.cljs +++ b/src/status_im/ui/components/tabbar/core.cljs @@ -7,4 +7,4 @@ 56 (if platform/iphone-x? 84 - 50))) \ No newline at end of file + 50))) diff --git a/src/status_im/ui/components/tabs.cljs b/src/status_im/ui/components/tabs.cljs index 9f5d1394afd..0c45e58607f 100644 --- a/src/status_im/ui/components/tabs.cljs +++ b/src/status_im/ui/components/tabs.cljs @@ -32,4 +32,4 @@ [react/view {:padding-horizontal 12 :padding-vertical 8} [react/text {:style {:font-weight "500" :color (if active? colors/white colors/blue) :line-height 22}} - label]]]]) \ No newline at end of file + label]]]]) diff --git a/src/status_im/ui/screens/chat/styles/message/sheets.cljs b/src/status_im/ui/screens/chat/styles/message/sheets.cljs index 95e0980e2bb..41667acc174 100644 --- a/src/status_im/ui/screens/chat/styles/message/sheets.cljs +++ b/src/status_im/ui/screens/chat/styles/message/sheets.cljs @@ -5,4 +5,4 @@ {:color colors/gray :padding 24 :line-height 22 - :font-size 15}) \ No newline at end of file + :font-size 15}) diff --git a/src/status_im/ui/screens/dapps_permissions/styles.cljs b/src/status_im/ui/screens/dapps_permissions/styles.cljs index be77f5a8186..77fdd830c52 100644 --- a/src/status_im/ui/screens/dapps_permissions/styles.cljs +++ b/src/status_im/ui/screens/dapps_permissions/styles.cljs @@ -7,4 +7,4 @@ :border-radius 20 :background-color colors/gray-lighter :align-items :center - :justify-content :center}) \ No newline at end of file + :justify-content :center}) diff --git a/src/status_im/ui/screens/help_center/styles.cljs b/src/status_im/ui/screens/help_center/styles.cljs index e283e141b6d..43b4af5bd85 100644 --- a/src/status_im/ui/screens/help_center/styles.cljs +++ b/src/status_im/ui/screens/help_center/styles.cljs @@ -1 +1 @@ -(ns status-im.ui.screens.help-center.styles) \ No newline at end of file +(ns status-im.ui.screens.help-center.styles) diff --git a/src/status_im/ui/screens/link_previews_settings/styles.cljs b/src/status_im/ui/screens/link_previews_settings/styles.cljs index 175cc5efd7c..21e15fc9d21 100644 --- a/src/status_im/ui/screens/link_previews_settings/styles.cljs +++ b/src/status_im/ui/screens/link_previews_settings/styles.cljs @@ -10,4 +10,4 @@ :justify-content :space-between}) (def enable-all - {:align-self :flex-end}) \ No newline at end of file + {:align-self :flex-end}) diff --git a/src/status_im/ui/screens/pairing/styles.cljs b/src/status_im/ui/screens/pairing/styles.cljs index de9f4dca4c6..9441374c15e 100644 --- a/src/status_im/ui/screens/pairing/styles.cljs +++ b/src/status_im/ui/screens/pairing/styles.cljs @@ -78,4 +78,4 @@ (def bottom-container {:flex-direction :row :margin-horizontal 12 - :margin-vertical 15}) \ No newline at end of file + :margin-vertical 15}) diff --git a/src/status_im/ui/screens/profile/user/styles.cljs b/src/status_im/ui/screens/profile/user/styles.cljs index 56dcd3aec2b..5baa83e71f6 100644 --- a/src/status_im/ui/screens/profile/user/styles.cljs +++ b/src/status_im/ui/screens/profile/user/styles.cljs @@ -3,4 +3,4 @@ (def share-link-button {:margin-top 12 :margin-horizontal 16 - :margin-bottom 16}) \ No newline at end of file + :margin-bottom 16}) diff --git a/src/status_im/ui/screens/qr_scanner/styles.cljs b/src/status_im/ui/screens/qr_scanner/styles.cljs index 51efafddfa7..ea2ece6aa5f 100644 --- a/src/status_im/ui/screens/qr_scanner/styles.cljs +++ b/src/status_im/ui/screens/qr_scanner/styles.cljs @@ -8,4 +8,4 @@ :right 0 :align-items :center :justify-content :center - :flex 1}) \ No newline at end of file + :flex 1}) diff --git a/src/status_im/ui/screens/signing/styles.cljs b/src/status_im/ui/screens/signing/styles.cljs index 368f95b3d7b..acd53d28c0a 100644 --- a/src/status_im/ui/screens/signing/styles.cljs +++ b/src/status_im/ui/screens/signing/styles.cljs @@ -61,4 +61,4 @@ :padding-left 16 :color (if disabled? colors/black colors/white-persist) :padding-horizontal 16 - :padding-vertical 10}) \ No newline at end of file + :padding-vertical 10}) diff --git a/src/status_im/ui/screens/stickers/styles.cljs b/src/status_im/ui/screens/stickers/styles.cljs index 444406557bf..356d029fdd8 100644 --- a/src/status_im/ui/screens/stickers/styles.cljs +++ b/src/status_im/ui/screens/stickers/styles.cljs @@ -26,4 +26,4 @@ :border-radius 14 :background-color colors/green :align-items :center - :justify-content :center}) \ No newline at end of file + :justify-content :center}) diff --git a/src/status_im/ui/screens/wallet/components/styles.cljs b/src/status_im/ui/screens/wallet/components/styles.cljs index c4283348860..ca1edeaf0cf 100644 --- a/src/status_im/ui/screens/wallet/components/styles.cljs +++ b/src/status_im/ui/screens/wallet/components/styles.cljs @@ -9,4 +9,4 @@ (defn separator-dark [] {:height 1 - :background-color colors/black-transparent}) \ No newline at end of file + :background-color colors/black-transparent}) diff --git a/src/status_im/ui/screens/wallet/components/views.cljs b/src/status_im/ui/screens/wallet/components/views.cljs index 7cb6fd4cc42..3b1c6ada2ff 100644 --- a/src/status_im/ui/screens/wallet/components/views.cljs +++ b/src/status_im/ui/screens/wallet/components/views.cljs @@ -18,4 +18,4 @@ :style (merge {:width (or width 40) :height (or height 40)} - image-style)}]]) \ No newline at end of file + image-style)}]]) diff --git a/src/status_im/ui/screens/wallet/send/styles.cljs b/src/status_im/ui/screens/wallet/send/styles.cljs index 9cdd30e595c..a92391a572c 100644 --- a/src/status_im/ui/screens/wallet/send/styles.cljs +++ b/src/status_im/ui/screens/wallet/send/styles.cljs @@ -30,4 +30,4 @@ :margin-bottom 12 :align-items :center :justify-content :center - :padding-horizontal 12}) \ No newline at end of file + :padding-horizontal 12}) diff --git a/src/status_im/ui/screens/wallet_connect/session_proposal/styles.cljs b/src/status_im/ui/screens/wallet_connect/session_proposal/styles.cljs index 86494d5f0ad..42596c5b19e 100644 --- a/src/status_im/ui/screens/wallet_connect/session_proposal/styles.cljs +++ b/src/status_im/ui/screens/wallet_connect/session_proposal/styles.cljs @@ -151,4 +151,4 @@ (def app-info-container {:flex-direction :column - :flex 1}) \ No newline at end of file + :flex 1}) diff --git a/src/status_im/utils/image.cljs b/src/status_im/utils/image.cljs index de55bcf45bf..4fb64312077 100644 --- a/src/status_im/utils/image.cljs +++ b/src/status_im/utils/image.cljs @@ -5,4 +5,4 @@ [photo-path] (when-not (and (not (string/blank? photo-path)) (string/starts-with? photo-path "contacts://")) - {:uri photo-path})) \ No newline at end of file + {:uri photo-path})) diff --git a/src/status_im/utils/signing_phrase/dictionaries/en.cljs b/src/status_im/utils/signing_phrase/dictionaries/en.cljs index f630e410cfd..1fc1a9a3254 100644 --- a/src/status_im/utils/signing_phrase/dictionaries/en.cljs +++ b/src/status_im/utils/signing_phrase/dictionaries/en.cljs @@ -622,4 +622,4 @@ "yoke" "yurt" "zinc" - "zone"]) \ No newline at end of file + "zone"]) diff --git a/src/status_im/wallet/utils.cljs b/src/status_im/wallet/utils.cljs index 386216e1d6f..206e86bdbdb 100644 --- a/src/status_im/wallet/utils.cljs +++ b/src/status_im/wallet/utils.cljs @@ -21,4 +21,4 @@ ;; ticker on exchange networks. We handle that with `symbol-exchange` override. (defn exchange-symbol [{:keys [symbol-exchange symbol-display symbol]}] - (clojure.core/name (or symbol-exchange symbol-display symbol))) \ No newline at end of file + (clojure.core/name (or symbol-exchange symbol-display symbol))) diff --git a/src/status_im2/common/plus_button/view.cljs b/src/status_im2/common/plus_button/view.cljs index e5beb81155f..b27ee08dd36 100644 --- a/src/status_im2/common/plus_button/view.cljs +++ b/src/status_im2/common/plus_button/view.cljs @@ -10,4 +10,4 @@ :accessibility-label (or accessibility-label :plus-button) :on-press on-press :customization-color customization-color} - :i/add]) \ No newline at end of file + :i/add]) diff --git a/src/status_im2/contexts/chat/menus/pinned_messages/style.cljs b/src/status_im2/contexts/chat/menus/pinned_messages/style.cljs index 73c6b6d75a4..7628764b366 100644 --- a/src/status_im2/contexts/chat/menus/pinned_messages/style.cljs +++ b/src/status_im2/contexts/chat/menus/pinned_messages/style.cljs @@ -46,4 +46,4 @@ :border-width 1}) (def no-pinned-messages-text - {:margin-top 20}) \ No newline at end of file + {:margin-top 20}) diff --git a/src/status_im2/contexts/chat/messages/content/pin/view.cljs b/src/status_im2/contexts/chat/messages/content/pin/view.cljs index c42422864aa..a1181578b8f 100644 --- a/src/status_im2/contexts/chat/messages/content/pin/view.cljs +++ b/src/status_im2/contexts/chat/messages/content/pin/view.cljs @@ -34,4 +34,4 @@ :pinned-by display-name :child [reply/quoted-message quoted-message false true] :timestamp-str timestamp-str - :labels {:pinned-a-message (i18n/label :t/pinned-a-message)}}])) \ No newline at end of file + :labels {:pinned-a-message (i18n/label :t/pinned-a-message)}}])) diff --git a/src/status_im2/contexts/chat/messages/navigation/style.cljs b/src/status_im2/contexts/chat/messages/navigation/style.cljs index 02f4cd02bec..7319eece177 100644 --- a/src/status_im2/contexts/chat/messages/navigation/style.cljs +++ b/src/status_im2/contexts/chat/messages/navigation/style.cljs @@ -96,4 +96,4 @@ (defn header-online [] - {:color (colors/theme-colors colors/neutral-80-opa-50 colors/white-opa-50)}) \ No newline at end of file + {:color (colors/theme-colors colors/neutral-80-opa-50 colors/white-opa-50)}) diff --git a/src/status_im2/contexts/chat/messages/pin/banner/style.cljs b/src/status_im2/contexts/chat/messages/pin/banner/style.cljs index 2cf5ad23b34..9661877e4e3 100644 --- a/src/status_im2/contexts/chat/messages/pin/banner/style.cljs +++ b/src/status_im2/contexts/chat/messages/pin/banner/style.cljs @@ -38,4 +38,4 @@ (reanimated/apply-animations-to-style (when enabled? {:opacity animation}) - (pinned-banner top-offset))) \ No newline at end of file + (pinned-banner top-offset))) diff --git a/src/status_im2/subs/browser.cljs b/src/status_im2/subs/browser.cljs index 7c20ac16d89..60e99effe34 100644 --- a/src/status_im2/subs/browser.cljs +++ b/src/status_im2/subs/browser.cljs @@ -29,4 +29,4 @@ :bookmarks/active :<- [:bookmarks] (fn [bookmarks] - (into {} (remove #(:removed (second %)) bookmarks)))) \ No newline at end of file + (into {} (remove #(:removed (second %)) bookmarks)))) diff --git a/translations/es_419.json b/translations/es_419.json index 382ee0eb01b..b5181c69fba 100644 --- a/translations/es_419.json +++ b/translations/es_419.json @@ -1813,4 +1813,4 @@ "your-recovery-phrase-description": "Esta es tu frase semilla. La usas para comprobar que esta es tu billetera. ¡Sólo la verás una vez! Escríbela en un papel y guárdala en un lugar seguro. La necesitarás si pierdes o reinstalas tu billetera.", "your-tip-limit": "Tu límite de propina", "youre-on-mobile-network": "Estás en una red móvil" -} \ No newline at end of file +} diff --git a/translations/fa.json b/translations/fa.json index ddeab1a8dd7..03e36f3411d 100644 --- a/translations/fa.json +++ b/translations/fa.json @@ -1228,4 +1228,4 @@ "your-keys": "کلیدهای شما", "your-recovery-phrase": "عبارت دانه شما", "your-recovery-phrase-description": "این عبارت بازیابی شماست. شما از آن برای اثبات اینکه این کیف پول شماست استفاده می کنید. شما فقط همین یکبار آنرا مشاهده میکنید! آن را روی کاغذ بنویسید و در مکانی امن نگه دارید. اگر کیف پول خود را از دست بدهید یا مجددا نصب کنید، به آن نیاز خواهید داشت." -} \ No newline at end of file +} diff --git a/translations/fr.json b/translations/fr.json index b56d207df2d..a7458c3f092 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -1800,4 +1800,4 @@ "your-recovery-phrase-description": "Ceci est votre phrase de récupération. Vous l'utilisez pour prouver qu'il s'agit de votre portefeuille. Vous ne le voyez qu'une fois! Ecrivez-le sur du papier et conservez-le dans un endroit sûr. Vous en aurez besoin si vous perdez ou réinstallez votre portefeuille.", "your-tip-limit": "Votre plafond des pourboires", "youre-on-mobile-network": "Vous êtes sur un réseau mobile" -} \ No newline at end of file +} diff --git a/translations/hi.json b/translations/hi.json index bead2cc8146..ef95315a0bb 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -1873,4 +1873,4 @@ "your-recovery-phrase-description": "यह आपका बीज वाक्यांश है। आप इसका उपयोग यह साबित करने के लिए करते हैं कि यह आपका बटुआ है। आप इसे केवल एक बार देख सकते हैं! इसे कागज पर लिखकर सुरक्षित स्थान पर रख दें। यदि आप अपना बटुआ खो देते हैं या पुनः स्थापित करते हैं तो आपको इसकी आवश्यकता होगी।", "your-tip-limit": "आपकी टिप सीमा", "youre-on-mobile-network": "आप मोबाइल नेटवर्क पर हैं" -} \ No newline at end of file +} diff --git a/translations/ja.json b/translations/ja.json index acd80879368..0320c14aa2b 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -1906,4 +1906,4 @@ "your-recovery-phrase-description": "これはあなたのシードフレーズです。ウォレットがあなたのものであることを証明するために使用します。一度だけしか見ることができません。紙に書くか安全な場所で保管してください。紛失やアプリを再インストールする際に必要になります。", "your-tip-limit": "チップ設定値", "youre-on-mobile-network": "モバイルネットワークを利用しています" -} \ No newline at end of file +} diff --git a/translations/pt_BR.json b/translations/pt_BR.json index 494a2027855..d28f2f10e4d 100644 --- a/translations/pt_BR.json +++ b/translations/pt_BR.json @@ -1896,4 +1896,4 @@ "your-recovery-phrase-description": "Esta é sua frase-semente. Você a usa para provar que esta é sua carteira. Você só pode vê-la uma vez! Escreva no papel e mantenha em um lugar seguro. Você vai precisar dela se perder ou reinstalar sua carteira.", "your-tip-limit": "Seu limite de gorjeta", "youre-on-mobile-network": "Você está em uma rede móvel" -} \ No newline at end of file +} diff --git a/translations/zh.json b/translations/zh.json index 3bb5f343179..3f96a16933c 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -1840,4 +1840,4 @@ "your-recovery-phrase-description": "这是您的助记词。您需要用它来证明这个钱包属于您。您只能查看一次!请将其写在纸上并保存在安全的地方。如果丢失或重新安装钱包,您将需要用到这些助记词。", "your-tip-limit": "您的手续费上限", "youre-on-mobile-network": "您正在使用移动网络" -} \ No newline at end of file +} diff --git a/translations/zh_TW.json b/translations/zh_TW.json index 2c22b9241a2..396099425f3 100644 --- a/translations/zh_TW.json +++ b/translations/zh_TW.json @@ -1833,4 +1833,4 @@ "your-recovery-phrase-description": "這是您的種子詞組,能用它來證明這是您的錢包。您只會看到一次!請將其寫在紙上,並存放在安全的地方。如果裝置遺失或想重新安裝錢包,將需要它。", "your-tip-limit": "您的手續費上限", "youre-on-mobile-network": "您正在使用行動網路" -} \ No newline at end of file +}