chore:move jump-to functionality inside namespace for shell (#16361)

This commit is contained in:
Jamie Caprani 2023-06-23 16:39:42 +01:00 committed by GitHub
parent e5778ee300
commit 9767c3f3a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 79 additions and 79 deletions

View File

@ -54,7 +54,7 @@
status-im.wallet.custom-tokens.core
status-im2.contexts.activity-center.events
status-im2.contexts.activity-center.notification.contact-requests.events
status-im2.contexts.shell.events
status-im2.contexts.shell.jump-to.events
status-im2.contexts.onboarding.events
status-im.chat.models.gaps
[status-im2.navigation.events :as navigation]

View File

@ -12,7 +12,7 @@
[status-im2.setup.hot-reload :as hot-reload]
[status-im2.common.theme.core :as theme]
[taoensso.timbre :as log]
[status-im2.contexts.shell.utils :as shell.utils]
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
[status-im.contact.db :as contact.db]))
;; validate that the given mnemonic was generated from Status Dictionary

View File

@ -41,11 +41,11 @@
[status-im2.contexts.chat.messages.link-preview.events :as link-preview]
[status-im2.contexts.contacts.events :as contacts]
[status-im2.navigation.events :as navigation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.communities.discover.events :as contract-communities]
[status-im2.common.log :as logging]
[taoensso.timbre :as log]
[status-im2.contexts.shell.utils :as shell.utils]
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
[utils.security.core :as security]))
(re-frame/reg-fx

View File

@ -6,7 +6,7 @@
[oops.core :refer [oget]]
[status-im2.common.resources :as resources]
[status-im.async-storage.core :as async-storage]
[status-im2.contexts.shell.state :as shell.state]
[status-im2.contexts.shell.jump-to.state :as shell.state]
[status-im2.contexts.onboarding.common.carousel.view :as carousel]
[status-im2.contexts.onboarding.common.background.style :as style]
[react-native.reanimated :as reanimated]

View File

@ -11,7 +11,7 @@
[status-im2.contexts.onboarding.common.background.view :as background]
[status-im2.contexts.onboarding.common.navigation-bar.view :as navigation-bar]
[status-im2.contexts.onboarding.enable-notifications.style :as style]
[status-im2.contexts.shell.utils :as shell.utils]))
[status-im2.contexts.shell.jump-to.utils :as shell.utils]))
(defn page-title
[]

View File

@ -5,8 +5,8 @@
[status-im2.constants :as constants]
[status-im2.common.resources :as resources]
[status-im2.contexts.quo-preview.preview :as preview]
[status-im2.contexts.shell.components.switcher-cards.view :as switcher-cards]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.components.switcher-cards.view :as switcher-cards]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
(def descriptor
[{:label "Type"

View File

@ -1,9 +1,9 @@
(ns status-im2.contexts.shell.animation
(ns status-im2.contexts.shell.jump-to.animation
(:require [utils.re-frame :as rf]
[react-native.reanimated :as reanimated]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
;; Home stack
(defn open-home-stack

View File

@ -1,8 +1,8 @@
(ns status-im2.contexts.shell.components.bottom-tabs.style
(ns status-im2.contexts.shell.jump-to.components.bottom-tabs.style
(:require [quo2.foundations.colors :as colors]
[react-native.platform :as platform]
[react-native.reanimated :as reanimated]
[status-im2.contexts.shell.utils :as utils]))
[status-im2.contexts.shell.jump-to.utils :as utils]))
(defn bottom-tabs-container
[pass-through? height]

View File

@ -1,15 +1,15 @@
(ns status-im2.contexts.shell.components.bottom-tabs.view
(ns status-im2.contexts.shell.jump-to.components.bottom-tabs.view
(:require [utils.re-frame :as rf]
[react-native.core :as rn]
[react-native.blur :as blur]
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.animation :as animation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.animation :as animation]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[quo2.components.navigation.bottom-nav-tab.view :as bottom-nav-tab]
[status-im2.contexts.shell.components.bottom-tabs.style :as style]))
[status-im2.contexts.shell.jump-to.components.bottom-tabs.style :as style]))
(defn blur-overlay-params
[style]

View File

@ -1,4 +1,4 @@
(ns status-im2.contexts.shell.components.floating-screens.style
(ns status-im2.contexts.shell.jump-to.components.floating-screens.style
(:require [quo2.foundations.colors :as colors]
[react-native.reanimated :as reanimated]))

View File

@ -1,13 +1,13 @@
(ns status-im2.contexts.shell.components.floating-screens.view
(ns status-im2.contexts.shell.jump-to.components.floating-screens.view
(:require [utils.re-frame :as rf]
[react-native.core :as rn]
[react-native.reanimated :as reanimated]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.chat.messages.view :as chat]
[status-im2.contexts.shell.animation :as animation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.components.floating-screens.style :as style]
[status-im2.contexts.shell.jump-to.animation :as animation]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.components.floating-screens.style :as style]
[status-im2.contexts.communities.overview.view :as communities.overview]))
(def screens-map

View File

@ -1,7 +1,7 @@
(ns status-im2.contexts.shell.components.home-stack.style
(ns status-im2.contexts.shell.jump-to.components.home-stack.style
(:require [quo2.foundations.colors :as colors]
[react-native.reanimated :as reanimated]
[status-im2.contexts.shell.utils :as utils]))
[status-im2.contexts.shell.jump-to.utils :as utils]))
(defn home-stack
[shared-values {:keys [width height]}]

View File

@ -1,12 +1,12 @@
(ns status-im2.contexts.shell.components.home-stack.view
(ns status-im2.contexts.shell.jump-to.components.home-stack.view
(:require [react-native.reanimated :as reanimated]
[status-im.ui.screens.wallet.accounts.views :as wallet.accounts]
[status-im2.contexts.chat.home.view :as chat]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.communities.home.view :as communities]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.components.home-stack.style :as style]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.components.home-stack.style :as style]
[status-im.ui.screens.browser.stack :as browser.stack]))
(defn load-stack?

View File

@ -1,6 +1,6 @@
(ns status-im2.contexts.shell.components.shell-screen.style
(ns status-im2.contexts.shell.jump-to.components.jump-to-screen.style
(:require [quo2.foundations.colors :as colors]
[status-im2.contexts.shell.utils :as utils]))
[status-im2.contexts.shell.jump-to.utils :as utils]))
;;;; Placeholder
(defn placeholder-container

View File

@ -1,4 +1,4 @@
(ns status-im2.contexts.shell.components.shell-screen.view
(ns status-im2.contexts.shell.jump-to.components.jump-to-screen.view
(:require [utils.i18n :as i18n]
[quo2.core :as quo]
[quo2.foundations.colors :as colors]
@ -8,13 +8,13 @@
[react-native.blur :as blur]
[react-native.linear-gradient :as linear-gradient]
[react-native.safe-area :as safe-area]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.common.home.view :as common.home]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.components.shell-screen.style :as style]
[status-im2.contexts.shell.components.bottom-tabs.view :as bottom-tabs]
[status-im2.contexts.shell.components.switcher-cards.view :as switcher-cards]))
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.components.jump-to-screen.style :as style]
[status-im2.contexts.shell.jump-to.components.bottom-tabs.view :as bottom-tabs]
[status-im2.contexts.shell.jump-to.components.switcher-cards.view :as switcher-cards]))
(defn placeholder
[]

View File

@ -1,4 +1,4 @@
(ns status-im2.contexts.shell.components.switcher-cards.style
(ns status-im2.contexts.shell.jump-to.components.switcher-cards.style
(:require [quo2.foundations.colors :as colors]))
(def colors-map

View File

@ -1,4 +1,4 @@
(ns status-im2.contexts.shell.components.switcher-cards.view
(ns status-im2.contexts.shell.jump-to.components.switcher-cards.view
(:require [clojure.string :as string]
[utils.i18n :as i18n]
[quo2.core :as quo]
@ -8,9 +8,9 @@
[react-native.core :as rn]
[react-native.fast-image :as fast-image]
[status-im2.constants :as constants]
[status-im2.contexts.shell.animation :as animation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.components.switcher-cards.style :as style]
[status-im2.contexts.shell.jump-to.animation :as animation]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.components.switcher-cards.style :as style]
[status-im2.contexts.chat.messages.resolver.message-resolver :as resolver]))
(defn content-container

View File

@ -1,4 +1,4 @@
(ns status-im2.contexts.shell.constants)
(ns status-im2.contexts.shell.jump-to.constants)
(def ^:const shell-animation-time 200)
(def ^:const switcher-card-size 160)

View File

@ -1,14 +1,14 @@
(ns status-im2.contexts.shell.events
(ns status-im2.contexts.shell.jump-to.events
(:require [utils.re-frame :as rf]
[re-frame.core :as re-frame]
[status-im2.config :as config]
[status-im.utils.core :as utils]
[status-im2.constants :as constants]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.utils :as shell.utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
[status-im2.navigation.state :as navigation.state]
[status-im2.contexts.shell.animation :as animation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.animation :as animation]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im.data-store.switcher-cards :as switcher-cards-store]))
;;;; Effects

View File

@ -1,11 +1,11 @@
(ns status-im2.contexts.shell.shared-values
(ns status-im2.contexts.shell.jump-to.shared-values
(:require [quo2.foundations.colors :as colors]
[react-native.safe-area :as safe-area]
[react-native.reanimated :as reanimated]
[utils.worklets.shell :as worklets.shell]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
(defn calculate-home-stack-position
[{:keys [width height]}]

View File

@ -1,6 +1,6 @@
(ns status-im2.contexts.shell.state
(ns status-im2.contexts.shell.jump-to.state
(:require [reagent.core :as reagent]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
;; Atoms
(def selected-stack-id (atom nil))

View File

@ -1,13 +1,13 @@
(ns status-im2.contexts.shell.utils
(ns status-im2.contexts.shell.jump-to.utils
(:require [utils.re-frame :as rf]
[react-native.core :as rn]
[status-im2.config :as config]
[quo2.foundations.colors :as colors]
[react-native.platform :as platform]
[react-native.safe-area :as safe-area]
[status-im2.contexts.shell.state :as state]
[status-im2.contexts.shell.jump-to.state :as state]
[status-im.async-storage.core :as async-storage]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
;;;; Helper Functions

View File

@ -1,19 +1,19 @@
(ns status-im2.contexts.shell.view
(ns status-im2.contexts.shell.jump-to.view
(:require [re-frame.db]
[quo2.core :as quo]
[utils.i18n :as i18n]
[utils.re-frame :as rf]
[react-native.core :as rn]
[status-im2.config :as config]
[status-im2.contexts.shell.utils :as utils]
[status-im2.contexts.shell.jump-to.utils :as utils]
[status-im2.navigation.state :as navigation.state]
[status-im2.contexts.shell.animation :as animation]
[status-im2.contexts.shell.constants :as shell.constants]
[status-im2.contexts.shell.shared-values :as shared-values]
[status-im2.contexts.shell.components.home-stack.view :as home-stack]
[status-im2.contexts.shell.components.bottom-tabs.view :as bottom-tabs]
[status-im2.contexts.shell.components.shell-screen.view :as shell-screen]
[status-im2.contexts.shell.components.floating-screens.view :as floating-screens]))
[status-im2.contexts.shell.jump-to.animation :as animation]
[status-im2.contexts.shell.jump-to.constants :as shell.constants]
[status-im2.contexts.shell.jump-to.shared-values :as shared-values]
[status-im2.contexts.shell.jump-to.components.home-stack.view :as home-stack]
[status-im2.contexts.shell.jump-to.components.bottom-tabs.view :as bottom-tabs]
[status-im2.contexts.shell.jump-to.components.jump-to-screen.view :as jump-to-screen]
[status-im2.contexts.shell.jump-to.components.floating-screens.view :as floating-screens]))
(defn navigate-back-handler
[]
@ -44,7 +44,7 @@
#(rn/hw-back-remove-listener navigate-back-handler))
[])
[:<>
[shell-screen/view customization-color]
[jump-to-screen/view customization-color]
[:f> bottom-tabs/f-bottom-tabs]
[:f> home-stack/f-home-stack]
[quo/floating-shell-button

View File

@ -9,8 +9,8 @@
[react-native.platform :as platform]
[react-native.shake :as react-native-shake]
[reagent.impl.batching :as batching]
[status-im2.contexts.shell.utils :as shell.utils]
[status-im2.contexts.shell.state :as shell.state]
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
[status-im2.contexts.shell.jump-to.state :as shell.state]
[status-im2.config :as config]
[status-im2.setup.dev :as dev]
[status-im2.setup.global-error :as global-error]

View File

@ -1,7 +1,7 @@
(ns status-im2.navigation.events
(:require [utils.re-frame :as rf]
[status-im2.contexts.shell.utils :as shell.utils]
[status-im2.contexts.shell.events :as shell.events]))
[status-im2.contexts.shell.jump-to.utils :as shell.utils]
[status-im2.contexts.shell.jump-to.events :as shell.events]))
(defn- all-screens-params
[db view screen-params]

View File

@ -21,7 +21,7 @@
[status-im2.contexts.onboarding.enter-seed-phrase.view :as enter-seed-phrase]
[status-im2.contexts.onboarding.profiles.view :as profiles]
[status-im2.contexts.quo-preview.main :as quo.preview]
[status-im2.contexts.shell.view :as shell]
[status-im2.contexts.shell.jump-to.view :as shell]
[status-im2.contexts.syncing.scan-sync-code-page.view :as scan-sync-code-page]
[status-im2.contexts.syncing.syncing-devices-list.view :as settings-syncing]
[status-im2.contexts.syncing.how-to-pair.view :as how-to-pair]

View File

@ -5,7 +5,7 @@
[status-im2.constants :as constants]
[react-native.platform :as platform]
[status-im2.common.resources :as resources]
[status-im2.contexts.shell.constants :as shell.constants]))
[status-im2.contexts.shell.jump-to.constants :as shell.constants]))
;; Helper Functions
(defn community-avatar