Remove old quo code from status_im2 namespace (#17404)
This commit is contained in:
parent
8869271054
commit
fe404ab005
1
Makefile
1
Makefile
|
@ -311,6 +311,7 @@ endef
|
||||||
lint: export TARGET := clojure
|
lint: export TARGET := clojure
|
||||||
lint: ##@test Run code style checks
|
lint: ##@test Run code style checks
|
||||||
@sh scripts/lint-re-frame-in-quo-components.sh && \
|
@sh scripts/lint-re-frame-in-quo-components.sh && \
|
||||||
|
sh scripts/lint-old-quo-usage.sh \
|
||||||
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
|
clj-kondo --config .clj-kondo/config.edn --cache false --fail-level error --lint src && \
|
||||||
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
|
ALL_CLOJURE_FILES=$(call find_all_clojure_files) && \
|
||||||
zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \
|
zprint '{:search-config? true}' -sfc $$ALL_CLOJURE_FILES && \
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
QUO_USAGES=$(grep -r -E '\[quo\.[^ ]* :(?:as|refer)|\[quo\.[^ ]*\]' --include '*.cljs' --include '*.clj' './src/status_im2' --exclude='./src/status_im2/common/theme/core.cljs' || true)
|
||||||
|
|
||||||
|
echo -e "\nChecking 'status_im2' namespace for 'quo' namespace usage."
|
||||||
|
|
||||||
|
if [ -n "$QUO_USAGES" ]; then
|
||||||
|
echo -e "\033[0;31mERROR: Usage of the old 'quo' namespace detected in 'status_im2' code. Please update to 'quo2'. \n"
|
||||||
|
echo -e "$QUO_USAGES \033[0m"
|
||||||
|
exit 1
|
||||||
|
fi
|
|
@ -1,5 +1,5 @@
|
||||||
(ns status-im2.common.qr-code-viewer.style
|
(ns status-im2.common.qr-code-viewer.style
|
||||||
(:require [quo.design-system.colors :as colors]))
|
(:require [quo2.foundations.colors :as colors]))
|
||||||
|
|
||||||
(def qr-code-padding 16)
|
(def qr-code-padding 16)
|
||||||
|
|
||||||
|
@ -9,9 +9,7 @@
|
||||||
:width width
|
:width width
|
||||||
:height width
|
:height width
|
||||||
:padding-horizontal 16
|
:padding-horizontal 16
|
||||||
:background-color colors/white-persist
|
:background-color colors/white
|
||||||
:border-color colors/black-transparent
|
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:justify-content :center
|
:justify-content :center
|
||||||
:border-width 1
|
|
||||||
:border-radius 8})
|
:border-radius 8})
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(ns status-im2.contexts.chat.messages.content.text.style
|
(ns status-im2.contexts.chat.messages.content.text.style
|
||||||
(:require [quo2.foundations.colors :as colors]
|
(:require [quo2.foundations.colors :as colors]
|
||||||
[quo.platform :as platform]))
|
[react-native.platform :as platform]))
|
||||||
|
|
||||||
(def block
|
(def block
|
||||||
{:border-radius 6
|
{:border-radius 6
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
(ns status-im2.contexts.quo-preview.community.community-card-view
|
(ns status-im2.contexts.quo-preview.community.community-card-view
|
||||||
(:require [quo.design-system.colors :as quo.colors]
|
(:require [quo2.core :as quo]
|
||||||
[quo2.core :as quo]
|
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[status-im2.common.resources :as resources]
|
[status-im2.common.resources :as resources]
|
||||||
[status-im2.contexts.quo-preview.preview :as preview]
|
[status-im2.contexts.quo-preview.preview :as preview]
|
||||||
|
@ -13,7 +12,7 @@
|
||||||
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
|
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
|
||||||
:cover (resources/get-mock-image :community-cover)
|
:cover (resources/get-mock-image :community-cover)
|
||||||
:community-icon (resources/get-mock-image :status-logo)
|
:community-icon (resources/get-mock-image :status-logo)
|
||||||
:color (rand-nth quo.colors/chat-colors)
|
:customization-color :blue
|
||||||
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
|
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
|
||||||
:tags [{:id 1
|
:tags [{:id 1
|
||||||
:tag-label (i18n/label :t/music)
|
:tag-label (i18n/label :t/music)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
(ns status-im2.contexts.quo-preview.community.data
|
(ns status-im2.contexts.quo-preview.community.data
|
||||||
(:require [quo.design-system.colors :as quo.colors]
|
(:require [utils.i18n :as i18n]
|
||||||
[utils.i18n :as i18n]
|
|
||||||
[status-im2.common.resources :as resources]))
|
[status-im2.common.resources :as resources]))
|
||||||
|
|
||||||
(def thumbnail
|
(def thumbnail
|
||||||
|
@ -11,8 +10,8 @@
|
||||||
:name "Status"
|
:name "Status"
|
||||||
:description
|
:description
|
||||||
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
|
"Status is a secure messaging app, crypto wallet and web3 browser built with the state of the art technology"
|
||||||
|
:customization-color :blue
|
||||||
:community-icon thumbnail
|
:community-icon thumbnail
|
||||||
:color (rand-nth quo.colors/chat-colors)
|
|
||||||
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
|
:tokens [{:id 1 :group [{:id 1 :token-icon (resources/get-mock-image :status-logo)}]}]
|
||||||
:tags [{:id 1 :tag-label (i18n/label :t/music) :resource (resources/get-image :music)}
|
:tags [{:id 1 :tag-label (i18n/label :t/music) :resource (resources/get-image :music)}
|
||||||
{:id 2
|
{:id 2
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[reagent.core :as reagent]
|
[reagent.core :as reagent]
|
||||||
[status-im2.common.resources :as resources]
|
[status-im2.common.resources :as resources]
|
||||||
[status-im2.contexts.quo-preview.preview :as preview]
|
[status-im2.contexts.quo-preview.preview :as preview]
|
||||||
[quo.react-native :as rn]))
|
[react-native.core :as rn]))
|
||||||
|
|
||||||
(def descriptor
|
(def descriptor
|
||||||
[{:key :disabled?
|
[{:key :disabled?
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(ns status-im2.contexts.quo-preview.tags.tag
|
(ns status-im2.contexts.quo-preview.tags.tag
|
||||||
(:require [quo.react-native :as rn]
|
(:require [react-native.core :as rn]
|
||||||
[quo2.foundations.colors :as colors]
|
[quo2.foundations.colors :as colors]
|
||||||
[quo2.components.tags.tag :as tag]
|
[quo2.components.tags.tag :as tag]
|
||||||
[status-im.ui.components.react :as react]
|
[status-im.ui.components.react :as react]
|
||||||
|
|
Loading…
Reference in New Issue