Enable ns sorting linter and clean+sort all namespaces (#17618)

This commit is contained in:
Icaro Motta 2023-10-16 22:03:18 +00:00 committed by GitHub
parent 00e9ee556a
commit 7ae96e86f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1285 changed files with 7373 additions and 6176 deletions

View File

@ -46,6 +46,7 @@
:single-operand-comparison {:level :error}
:syntax {:level :error}
:unbound-destructuring-default {:level :error}
:uninitialized-var {:level :error}
:unknown-require-option {:level :error}
:unreachable-code {:level :error}
:unresolved-namespace {:level :error}
@ -55,7 +56,7 @@
number
status-im.test-helpers/restore-app-db]}
:unresolved-var {:level :error}
:uninitialized-var {:level :error}
:unsorted-required-namespaces {:level :error}
:unused-alias {:level :warning}
:unused-binding {:level :error}
:unused-import {:level :error}

View File

@ -1,6 +1,7 @@
(ns mocks.js-dependencies
(:require-macros [status-im.utils.slurp :refer [slurp]])
(:require [status-im.fleet.default-fleet :refer (default-fleets)])
(:require
[status-im.fleet.default-fleet :refer (default-fleets)])
(:require [status-im.utils.test :as utils.test]))
;; to generate a js Proxy at js/__STATUS_MOBILE_JS_IDENTITY_PROXY__ that accept any (.xxx) call and

View File

@ -1,10 +1,11 @@
(ns native-module.core
(:require ["react-native" :as react-native]
[utils.validators :as validators]
[taoensso.timbre :as log]
[react-native.platform :as platform]
[utils.transforms :as types]
[clojure.string :as string]))
(:require
["react-native" :as react-native]
[clojure.string :as string]
[react-native.platform :as platform]
[taoensso.timbre :as log]
[utils.transforms :as types]
[utils.validators :as validators]))
(defn status
[]

View File

@ -1,6 +1,7 @@
(ns native-module.push-notifications
(:require ["react-native" :as react-native]
[taoensso.timbre :as log]))
(:require
["react-native" :as react-native]
[taoensso.timbre :as log]))
(defn push-notification
[]

View File

@ -1,6 +1,7 @@
(ns quo2.components.animated-header-flatlist.style
(:require [quo2.foundations.colors :as colors]
[react-native.reanimated :as reanimated]))
(:require
[quo2.foundations.colors :as colors]
[react-native.reanimated :as reanimated]))
(defn container-view
[view-height]

View File

@ -1,16 +1,16 @@
(ns quo2.components.animated-header-flatlist.view
(:require
[oops.core :as oops]
[quo2.components.animated-header-flatlist.style :as style]
[quo2.core :as quo]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[react-native.fast-image :as fast-image]
[react-native.platform :as platform]
[react-native.reanimated :as reanimated]
[react-native.safe-area :as safe-area]
[react-native.fast-image :as fast-image]
[reagent.core :as reagent]
[quo2.foundations.colors :as colors]
[quo2.components.animated-header-flatlist.style :as style]
[oops.core :as oops]
[quo2.theme :as quo.theme]))
[reagent.core :as reagent]))
(def header-height 234)
(def cover-height 192)

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.account-avatar.component-spec
(:require [quo2.components.avatars.account-avatar.view :as account-avatar]
[quo2.components.avatars.account-avatar.style :as style]
[test-helpers.component :as h]
[quo2.foundations.colors :as colors]))
(:require
[quo2.components.avatars.account-avatar.style :as style]
[quo2.components.avatars.account-avatar.view :as account-avatar]
[quo2.foundations.colors :as colors]
[test-helpers.component :as h]))
(h/describe "Account Avatar"
(h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.account-avatar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def default-size 80)
(def default-border-radius 16)

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.account-avatar.view
(:require [clojure.string :as string]
[quo2.components.avatars.account-avatar.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(:require
[clojure.string :as string]
[quo2.components.avatars.account-avatar.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal
"Opts:

View File

@ -1,6 +1,7 @@
(ns quo2.components.avatars.channel-avatar.component-spec
(:require [quo2.components.avatars.channel-avatar.view :as component]
[test-helpers.component :as h]))
(:require
[quo2.components.avatars.channel-avatar.view :as component]
[test-helpers.component :as h]))
(h/describe "Channel Avatar"
(h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.channel-avatar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def lock-icon-size 12)

View File

@ -1,12 +1,13 @@
(ns quo2.components.avatars.channel-avatar.view
(:require [clojure.string :as string]
[quo2.components.avatars.channel-avatar.style :as style]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[utils.string]
[quo2.theme :as quo.theme]))
(:require
[clojure.string :as string]
[quo2.components.avatars.channel-avatar.style :as style]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[utils.string]))
(defn- initials
[{:keys [full-name size customization-color theme]}]

View File

@ -1,7 +1,8 @@
(ns quo2.components.avatars.collection-avatar.component-spec
(:require [quo2.components.avatars.collection-avatar.view :as collection-avatar]
[quo2.foundations.resources :as resources]
[test-helpers.component :as h]))
(:require
[quo2.components.avatars.collection-avatar.view :as collection-avatar]
[quo2.foundations.resources :as resources]
[test-helpers.component :as h]))
(h/describe "collection avatar"
(h/describe "Profile picture"

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.collection-avatar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn collection-avatar
[theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.avatars.collection-avatar.view
(:require [quo2.components.avatars.collection-avatar.style :as style]
[quo2.theme :as quo.theme]
[react-native.fast-image :as fast-image]))
(:require
[quo2.components.avatars.collection-avatar.style :as style]
[quo2.theme :as quo.theme]
[react-native.fast-image :as fast-image]))
(defn- view-internal
"Opts:

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.group-avatar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn container
[{:keys [container-size customization-color theme]}]

View File

@ -1,10 +1,11 @@
(ns quo2.components.avatars.group-avatar.view
(:require [quo2.components.icon :as icon]
[quo2.theme :as quo.theme]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[react-native.fast-image :as fast-image]
[quo2.components.avatars.group-avatar.style :as style]))
(:require
[quo2.components.avatars.group-avatar.style :as style]
[quo2.components.icon :as icon]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[react-native.fast-image :as fast-image]))
(def sizes
{:size-20 {:icon 12

View File

@ -1,8 +1,9 @@
(ns quo2.components.avatars.icon-avatar
(:require [quo2.components.icon :as icons]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(:require
[quo2.components.icon :as icons]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(def ^:private sizes
{:size-48 {:component 48

View File

@ -1,6 +1,7 @@
(ns quo2.components.avatars.user-avatar.component-spec
(:require [quo2.components.avatars.user-avatar.view :as user-avatar]
[test-helpers.component :as h]))
(:require
[quo2.components.avatars.user-avatar.view :as user-avatar]
[test-helpers.component :as h]))
(defonce mock-picture {:uri (js/require "../resources/images/mock2/user_picture_male4.png")})

View File

@ -1,5 +1,6 @@
(ns quo2.components.avatars.user-avatar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def sizes
{:big {:dimensions 80

View File

@ -1,9 +1,10 @@
(ns quo2.components.avatars.wallet-user-avatar
(:require [clojure.string :as string]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[quo2.theme :as quo.theme]))
(:require
[clojure.string :as string]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(def circle-sizes
{:small 20

View File

@ -1,7 +1,8 @@
(ns quo2.components.banners.banner.component-spec
(:require ["@testing-library/react-native" :as rtl]
[quo2.components.banners.banner.view :as banner]
[reagent.core :as reagent]))
(:require
["@testing-library/react-native" :as rtl]
[quo2.components.banners.banner.view :as banner]
[reagent.core :as reagent]))
(defn render-banner
[opts]

View File

@ -1,5 +1,6 @@
(ns quo2.components.banners.banner.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def container

View File

@ -1,11 +1,12 @@
(ns quo2.components.banners.banner.view
(:require [quo2.components.banners.banner.style :as style]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[quo2.theme :as quo.theme]))
(:require
[quo2.components.banners.banner.style :as style]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal
[{:keys [hide-pin? latest-pin-text pins-count on-press theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.browser.browser-input.component-spec
(:require [quo2.components.browser.browser-input.view :as browser-input]
[test-helpers.component :as h]))
(:require
[quo2.components.browser.browser-input.view :as browser-input]
[test-helpers.component :as h]))
(h/describe "Browser input"
(h/test "Renders empty in default state"

View File

@ -1,6 +1,7 @@
(ns quo2.components.browser.browser-input.style
(:require [quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]))
(:require
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]))
(def clear-icon-container
{:align-items :center

View File

@ -1,12 +1,13 @@
(ns quo2.components.browser.browser-input.view
(:require [quo2.components.icon :as icon]
[quo2.components.browser.browser-input.style :as style]
[react-native.core :as rn]
[reagent.core :as reagent]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo2.theme]
[clojure.string :as string]
[react-native.platform :as platform]))
(:require
[clojure.string :as string]
[quo2.components.browser.browser-input.style :as style]
[quo2.components.icon :as icon]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo2.theme]
[react-native.core :as rn]
[react-native.platform :as platform]
[reagent.core :as reagent]))
(defn remove-http-https-www
[value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.button.component-spec
(:require [quo2.components.buttons.button.view :as button]
[test-helpers.component :as h]))
(:require
[quo2.components.buttons.button.view :as button]
[test-helpers.component :as h]))
(h/describe "button tests"
(h/test "default render of button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.button.properties
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def backgrounds #{:photo :blur})

View File

@ -1,13 +1,14 @@
(ns quo2.components.buttons.button.view
(:require [quo2.components.icon :as quo2.icons]
[quo2.components.markdown.text :as text]
[quo2.theme :as theme]
[react-native.core :as rn]
[react-native.blur :as blur]
[reagent.core :as reagent]
[quo2.components.buttons.button.style :as style]
[quo2.components.buttons.button.properties :as button-properties]
[quo2.foundations.customization-colors :as customization-colors]))
(:require
[quo2.components.buttons.button.properties :as button-properties]
[quo2.components.buttons.button.style :as style]
[quo2.components.icon :as quo2.icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.customization-colors :as customization-colors]
[quo2.theme :as theme]
[react-native.blur :as blur]
[react-native.core :as rn]
[reagent.core :as reagent]))
(defn- button-internal
"with label

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.composer-button.component-spec
(:require [quo2.components.buttons.composer-button.view :as composer-button]
[test-helpers.component :as h]))
(:require
[quo2.components.buttons.composer-button.view :as composer-button]
[test-helpers.component :as h]))
(h/describe "button tests"
(h/test "default render of composer button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.composer-button.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn get-border-color
[{:keys [pressed? blur? theme]}]

View File

@ -1,9 +1,10 @@
(ns quo2.components.buttons.composer-button.view
(:require [quo2.components.icon :as quo2.icons]
[quo2.theme :as theme]
[react-native.core :as rn]
[reagent.core :as reagent]
[quo2.components.buttons.composer-button.style :as style]))
(:require
[quo2.components.buttons.composer-button.style :as style]
[quo2.components.icon :as quo2.icons]
[quo2.theme :as theme]
[react-native.core :as rn]
[reagent.core :as reagent]))
(defn- view-internal
[_ _]

View File

@ -1,11 +1,12 @@
(ns quo2.components.buttons.dynamic-button.view
(:require [quo2.components.icon :as icon]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[reagent.core :as reagent]
[quo2.theme :as quo.theme]
[quo2.components.buttons.dynamic-button.style :as style]))
(:require
[quo2.components.buttons.dynamic-button.style :as style]
[quo2.components.icon :as icon]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[reagent.core :as reagent]))
(defn- get-button-color
[{:keys [type pressed? customization-color theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.predictive-keyboard.component-spec
(:require [quo2.components.buttons.predictive-keyboard.view :as predictive-keyboard]
[test-helpers.component :as h]))
(:require
[quo2.components.buttons.predictive-keyboard.view :as predictive-keyboard]
[test-helpers.component :as h]))
(h/describe "predictive-keyboard"
(h/test "basic render"

View File

@ -1,11 +1,12 @@
(ns quo2.components.buttons.predictive-keyboard.view
(:require [react-native.core :as rn]
[quo2.components.buttons.predictive-keyboard.style :as style]
[quo2.components.info.info-message :as info-message]
[quo2.theme :as theme]
[react-native.linear-gradient :as linear-gradient]
[quo2.foundations.colors :as colors]
[quo2.components.buttons.button.view :as button]))
(:require
[quo2.components.buttons.button.view :as button]
[quo2.components.buttons.predictive-keyboard.style :as style]
[quo2.components.info.info-message :as info-message]
[quo2.foundations.colors :as colors]
[quo2.theme :as theme]
[react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]))
(def ^:private gradients
{:light [(colors/alpha colors/neutral-40 0.05) (colors/alpha colors/neutral-40 0)]

View File

@ -1,8 +1,8 @@
(ns quo2.components.buttons.slide-button.animations
(:require
[react-native.gesture :as gesture]
[quo2.components.buttons.slide-button.utils :as utils]
[oops.core :as oops]
[quo2.components.buttons.slide-button.utils :as utils]
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated]))
(def ^:private extrapolation

View File

@ -1,10 +1,11 @@
(ns quo2.components.buttons.slide-button.component-spec
(:require [quo2.components.buttons.slide-button.view :as slide-button]
[quo2.components.buttons.slide-button.constants :as constants]
["@testing-library/react-native" :as rtl]
["react-native-gesture-handler/jest-utils" :as gestures-jest]
[reagent.core :as r]
[test-helpers.component :as h]))
(:require
["@testing-library/react-native" :as rtl]
["react-native-gesture-handler/jest-utils" :as gestures-jest]
[quo2.components.buttons.slide-button.constants :as constants]
[quo2.components.buttons.slide-button.view :as slide-button]
[reagent.core :as r]
[test-helpers.component :as h]))
;; NOTE stolen from
;; (https://github.com/reagent-project/reagent/blob/a14faba55e373000f8f93edfcfce0d1222f7e71a/test/reagenttest/utils.cljs#LL104C7-L104C10),

View File

@ -1,18 +1,18 @@
(ns quo2.components.buttons.slide-button.view
(:require
[quo2.components.icon :as icon]
[quo2.foundations.colors :as colors]
[oops.core :as oops]
[quo2.components.buttons.slide-button.animations :as animations]
[quo2.components.buttons.slide-button.constants :as constants]
[quo2.components.buttons.slide-button.style :as style]
[quo2.components.buttons.slide-button.utils :as utils]
[quo2.components.buttons.slide-button.animations :as animations]
[react-native.gesture :as gesture]
[react-native.core :as rn]
[reagent.core :as reagent]
[oops.core :as oops]
[react-native.reanimated :as reanimated]
[quo2.components.icon :as icon]
[quo2.components.markdown.text :as text]
[quo2.components.buttons.slide-button.constants :as constants]
[quo2.theme :as quo.theme]))
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[react-native.gesture :as gesture]
[react-native.reanimated :as reanimated]
[reagent.core :as reagent]))
(defn- f-slider
[{:keys [disabled?]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.wallet-button.component-spec
(:require [quo2.components.buttons.wallet-button.view :as wallet-button]
[test-helpers.component :as h]))
(:require
[quo2.components.buttons.wallet-button.view :as wallet-button]
[test-helpers.component :as h]))
(h/describe "button tests"
(h/test "default render of wallet button component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.buttons.wallet-button.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn get-border-color
[{:keys [pressed? theme]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.buttons.wallet-ctas.component-spec
(:require [test-helpers.component :as h]
[quo2.components.buttons.wallet-ctas.view :as wallet-ctas]))
(:require
[quo2.components.buttons.wallet-ctas.view :as wallet-ctas]
[test-helpers.component :as h]))
(h/describe "Wallet CTAs test"
(h/test "Buttons render"

View File

@ -1,12 +1,12 @@
(ns quo2.components.buttons.wallet-ctas.view
(:require
[quo2.components.buttons.wallet-button.view :as wallet-button]
[quo2.components.buttons.wallet-ctas.style :as style]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[utils.i18n :as i18n]
[quo2.components.buttons.wallet-ctas.style :as style]))
[utils.i18n :as i18n]))
(defn action-button

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.component-spec
(:require [quo2.components.calendar.calendar.view :as calendar]
[test-helpers.component :as h]
[cljs-time.core :as time]))
(:require
[cljs-time.core :as time]
[quo2.components.calendar.calendar.view :as calendar]
[test-helpers.component :as h]))
(def start-date (time/date-time (time/year (time/now)) (time/month (time/now)) 5))
(def end-date (time/date-time (time/plus start-date (time/days 2))))

View File

@ -1,7 +1,7 @@
(ns quo2.components.calendar.calendar.days-grid.utils
(:require
[utils.number :as utils.number]
[cljs-time.core :as time]))
[cljs-time.core :as time]
[utils.number :as utils.number]))
(defn- day-of-week
[date]

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.days-grid.utils-test
(:require [cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.days-grid.utils :as utils]
[cljs-time.core :as time]))
(:require
[cljs-time.core :as time]
[cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.days-grid.utils :as utils]))
(deftest day-grid-test
(let [day-grid-result (utils/day-grid "2023" "7")]

View File

@ -1,9 +1,10 @@
(ns quo2.components.calendar.calendar.days-grid.view
(:require [react-native.core :as rn]
[cljs-time.core :as time]
[quo2.components.calendar.calendar.days-grid.utils :as utils]
[quo2.components.calendar.calendar-day.view :as calendar-day]
[quo2.components.calendar.calendar.days-grid.style :as style]))
(:require
[cljs-time.core :as time]
[quo2.components.calendar.calendar-day.view :as calendar-day]
[quo2.components.calendar.calendar.days-grid.style :as style]
[quo2.components.calendar.calendar.days-grid.utils :as utils]
[react-native.core :as rn]))
(defn- day-view
[day _ _ {:keys [year month selection-range on-press customization-color]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar.month-picker.component-spec
(:require [quo2.components.calendar.calendar.month-picker.view :as month-picker]
[test-helpers.component :as h]))
(:require
[quo2.components.calendar.calendar.month-picker.view :as month-picker]
[test-helpers.component :as h]))
(h/describe "month-picker component"
(h/test "default render of month-picker component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.month-picker.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def container
{:align-items :center

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.month-picker.utils
(:require [utils.datetime :as datetime]))
(:require
[utils.datetime :as datetime]))
(defn format-month-year
[year month]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar.month-picker.utils-test
(:require [cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.month-picker.utils :as utils]))
(:require
[cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.month-picker.utils :as utils]))
(deftest format-month-year-test
(testing "returns correct format for given year and month"

View File

@ -1,11 +1,12 @@
(ns quo2.components.calendar.calendar.month-picker.view
(:require [react-native.core :as rn]
[utils.number :as utils.number]
[quo2.theme :as theme]
[quo2.components.buttons.button.view :as button]
[quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar.month-picker.style :as style]
[quo2.components.calendar.calendar.month-picker.utils :as utils]))
(:require
[quo2.components.buttons.button.view :as button]
[quo2.components.calendar.calendar.month-picker.style :as style]
[quo2.components.calendar.calendar.month-picker.utils :as utils]
[quo2.components.markdown.text :as text]
[quo2.theme :as theme]
[react-native.core :as rn]
[utils.number :as utils.number]))
(defn- view-internal
[{:keys [year month on-change theme]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn container
[theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.calendar.calendar.utils
(:require [utils.datetime :as datetime]
[utils.number :as utils.number]
[clojure.string :as string]))
(:require
[clojure.string :as string]
[utils.datetime :as datetime]
[utils.number :as utils.number]))
(defn generate-years
[current-year]

View File

@ -1,9 +1,10 @@
(ns quo2.components.calendar.calendar.utils-test
(:require [cljs.test :refer-macros [deftest is testing]]
[quo2.components.calendar.calendar.utils :as utils]
[utils.datetime :as datetime]
[clojure.string :as string]
[utils.number :as utils.number]))
(:require
[cljs.test :refer-macros [deftest is testing]]
[clojure.string :as string]
[quo2.components.calendar.calendar.utils :as utils]
[utils.datetime :as datetime]
[utils.number :as utils.number]))
(deftest generate-years-test
(testing "returns correct years range"

View File

@ -1,14 +1,15 @@
(ns quo2.components.calendar.calendar.view
(:require [react-native.core :as rn]
[quo2.theme :as theme]
[reagent.core :as reagent]
[utils.number :as utils.number]
[quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar.style :as style]
[quo2.components.calendar.calendar.years-list.view :as years-list]
[quo2.components.calendar.calendar.days-grid.view :as days-grid]
[quo2.components.calendar.calendar.weekdays-header.view :as weekdays-header]
[quo2.components.calendar.calendar.month-picker.view :as month-picker]))
(:require
[quo2.components.calendar.calendar.days-grid.view :as days-grid]
[quo2.components.calendar.calendar.month-picker.view :as month-picker]
[quo2.components.calendar.calendar.style :as style]
[quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar.weekdays-header.view :as weekdays-header]
[quo2.components.calendar.calendar.years-list.view :as years-list]
[quo2.theme :as theme]
[react-native.core :as rn]
[reagent.core :as reagent]
[utils.number :as utils.number]))
(defn- view-internal
[]

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.weekdays-header.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def container-weekday-row
{:flex-direction :row

View File

@ -1,10 +1,11 @@
(ns quo2.components.calendar.calendar.weekdays-header.view
(:require [react-native.core :as rn]
[quo2.theme :as theme]
[utils.datetime :as datetime]
[utils.i18n :as i18n]
[quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar.weekdays-header.style :as style]))
(:require
[quo2.components.calendar.calendar.weekdays-header.style :as style]
[quo2.components.markdown.text :as text]
[quo2.theme :as theme]
[react-native.core :as rn]
[utils.datetime :as datetime]
[utils.i18n :as i18n]))
(defn- view-internal
[theme]

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar.years-list.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn gradient-start-color
[theme]

View File

@ -1,10 +1,11 @@
(ns quo2.components.calendar.calendar.years-list.view
(:require [react-native.core :as rn]
[quo2.theme :as theme]
[react-native.linear-gradient :as linear-gradient]
[quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar-year.view :as calendar-year]
[quo2.components.calendar.calendar.years-list.style :as style]))
(:require
[quo2.components.calendar.calendar-year.view :as calendar-year]
[quo2.components.calendar.calendar.utils :as utils]
[quo2.components.calendar.calendar.years-list.style :as style]
[quo2.theme :as theme]
[react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]))
(defn- year-view
[year _ _ {:keys [selected-year on-press]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar-day.component-spec
(:require [quo2.components.calendar.calendar-day.view :as calendar-day]
[test-helpers.component :as h]))
(:require
[quo2.components.calendar.calendar-day.view :as calendar-day]
[test-helpers.component :as h]))
(h/describe "calendar-day component"
(h/test "default render of calendar-day component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar-day.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def wrapper
{:flex 1

View File

@ -1,8 +1,9 @@
(ns quo2.components.calendar.calendar-day.view
(:require [react-native.core :as rn]
[quo2.theme :as theme]
[quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar-day.style :as style]))
(:require
[quo2.components.calendar.calendar-day.style :as style]
[quo2.components.markdown.text :as text]
[quo2.theme :as theme]
[react-native.core :as rn]))
(defn- view-internal
[{:keys [state in-range on-press customization-color theme]

View File

@ -1,6 +1,7 @@
(ns quo2.components.calendar.calendar-year.component-spec
(:require [quo2.components.calendar.calendar-year.view :as calendar-year]
[test-helpers.component :as h]))
(:require
[quo2.components.calendar.calendar-year.view :as calendar-year]
[test-helpers.component :as h]))
(h/describe "calendar-year component"
(h/test "default render of calendar-year component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.calendar.calendar-year.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def container-base
{:align-items :center

View File

@ -1,8 +1,9 @@
(ns quo2.components.calendar.calendar-year.view
(:require [react-native.core :as rn]
[quo2.theme :as theme]
[quo2.components.markdown.text :as text]
[quo2.components.calendar.calendar-year.style :as style]))
(:require
[quo2.components.calendar.calendar-year.style :as style]
[quo2.components.markdown.text :as text]
[quo2.theme :as theme]
[react-native.core :as rn]))
(defn- view-internal
[{:keys [selected? disabled? on-press theme]} year]

View File

@ -1,5 +1,6 @@
(ns quo2.components.code.common.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
;; Example themes:
;; https://github.com/react-syntax-highlighter/react-syntax-highlighter/tree/master/src/styles/hljs

View File

@ -1,13 +1,14 @@
(ns quo2.components.code.common.view
(:require [cljs-bean.core :as bean]
[clojure.string :as string]
[quo2.components.buttons.button.view :as button]
[quo2.components.code.common.style :as style]
[quo2.components.markdown.text :as text]
[react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]
[react-native.syntax-highlighter :as highlighter]
[reagent.core :as reagent]))
(:require
[cljs-bean.core :as bean]
[clojure.string :as string]
[quo2.components.buttons.button.view :as button]
[quo2.components.code.common.style :as style]
[quo2.components.markdown.text :as text]
[react-native.core :as rn]
[react-native.linear-gradient :as linear-gradient]
[react-native.syntax-highlighter :as highlighter]
[reagent.core :as reagent]))
(defn- render-nodes
[nodes theme preview?]

View File

@ -1,6 +1,7 @@
(ns quo2.components.code.snippet.view
(:require [quo2.theme :as theme]
[quo2.components.code.common.view :as code-common]))
(:require
[quo2.components.code.common.view :as code-common]
[quo2.theme :as theme]))
(defn- view-internal
[_]

View File

@ -1,5 +1,6 @@
(ns quo2.components.code.snippet-preview.view
(:require [quo2.components.code.common.view :as code-common]))
(:require
[quo2.components.code.common.view :as code-common]))
(defn view
[{:keys [language]} children]

View File

@ -1,5 +1,6 @@
(ns quo2.components.colors.color.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def color-button-common
{:width 48

View File

@ -1,10 +1,10 @@
(ns quo2.components.colors.color.view
(:require
[quo2.components.colors.color.style :as style]
[quo2.components.icon :as icon]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[quo2.components.colors.color.style :as style]))
[react-native.core :as rn]))
(defn- feng-shui
[{:keys [color theme]}]

View File

@ -1,7 +1,8 @@
(ns quo2.components.colors.color-picker.component-spec
(:require [quo2.components.colors.color-picker.view :as color-picker]
[reagent.core :as reagent]
[test-helpers.component :as h]))
(:require
[quo2.components.colors.color-picker.view :as color-picker]
[reagent.core :as reagent]
[test-helpers.component :as h]))
(h/describe "color-picker"
(h/test "color picker rendered"

View File

@ -1,7 +1,8 @@
(ns quo2.components.colors.color-picker.view
(:require [react-native.core :as rn]
[reagent.core :as reagent]
[quo2.components.colors.color.view :as color]))
(:require
[quo2.components.colors.color.view :as color]
[react-native.core :as rn]
[reagent.core :as reagent]))
(def color-list
[:blue :yellow :purple :turquoise :magenta :sky :orange :army :flamingo :camel :copper])

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.not-implemented.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn text
[blur? theme]

View File

@ -1,7 +1,8 @@
(ns quo2.components.common.not-implemented.view
(:require [react-native.core :as rn]
[quo2.theme :as quo.theme]
[quo2.components.common.not-implemented.style :as style]))
(:require
[quo2.components.common.not-implemented.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal
[{:keys [blur? theme]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.notification-dot.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def ^:const size 8)

View File

@ -1,7 +1,8 @@
(ns quo2.components.common.notification-dot.view
(:require [react-native.core :as rn]
[quo2.components.common.notification-dot.style :as style]
[quo2.theme :as quo.theme]))
(:require
[quo2.components.common.notification-dot.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn view-internal
[{:keys [customization-color style theme blur?]}]

View File

@ -1,6 +1,7 @@
(ns quo2.components.common.separator.view
(:require [quo2.foundations.colors :as quo2.colors]
[react-native.core :as rn]))
(:require
[quo2.foundations.colors :as quo2.colors]
[react-native.core :as rn]))
(defn separator
[{:keys [style]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.common.unread-grey-dot.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(def unread-grey-dot
{:width 8

View File

@ -1,6 +1,7 @@
(ns quo2.components.common.unread-grey-dot.view
(:require [react-native.core :as rn]
[quo2.components.common.unread-grey-dot.style :as style]))
(:require
[quo2.components.common.unread-grey-dot.style :as style]
[react-native.core :as rn]))
(defn unread-grey-dot
[accessibility-label]

View File

@ -1,6 +1,7 @@
(ns quo2.components.community.banner.style
(:require [quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(:require
[quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(defn community-card
[theme]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.banner.view
(:require [quo2.components.community.banner.style :as style]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as theme]
[react-native.core :as rn]))
(:require
[quo2.components.community.banner.style :as style]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as theme]
[react-native.core :as rn]))
(defn- card-title-and-description
[title description theme]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.channel-actions
(:require [react-native.core :as rn]
[quo2.components.icon :as icons]
[quo2.components.counter.counter.view :as counter]
[quo2.components.markdown.text :as text]
[quo2.components.community.style :as style]))
(:require
[quo2.components.community.style :as style]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[react-native.core :as rn]))
(defn channel-action
[{:keys [big? color label counter-value icon on-press accessibility-label]}]

View File

@ -1,9 +1,10 @@
(ns quo2.components.community.community-card-view
(:require [quo2.components.community.community-view :as community-view]
[quo2.components.community.icon :as icon]
[quo2.components.community.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(:require
[quo2.components.community.community-view :as community-view]
[quo2.components.community.icon :as icon]
[quo2.components.community.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- loading-card-view
[{:keys [width theme]}]

View File

@ -1,14 +1,15 @@
(ns quo2.components.community.community-list-view
(:require [quo2.components.community.community-view :as community-view]
[quo2.components.community.style :as style]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]
[quo2.theme :as quo.theme]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.components.community.icon :as community-icon]
[quo2.components.common.unread-grey-dot.view :refer [unread-grey-dot]]
[react-native.core :as rn]))
(:require
[quo2.components.common.unread-grey-dot.view :refer [unread-grey-dot]]
[quo2.components.community.community-view :as community-view]
[quo2.components.community.icon :as community-icon]
[quo2.components.community.style :as style]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn notification-view
[{:keys [theme

View File

@ -1,14 +1,15 @@
(ns quo2.components.community.community-view
(:require [quo2.components.community.style :as style]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.components.tags.permission-tag :as permission]
[quo2.components.tags.tag :as tag]
[quo2.foundations.colors :as colors]
[quo2.theme :as theme]
[react-native.core :as rn]
[react-native.gesture :as gesture]
utils.money))
(:require
[quo2.components.community.style :as style]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.components.tags.permission-tag :as permission]
[quo2.components.tags.tag :as tag]
[quo2.foundations.colors :as colors]
[quo2.theme :as theme]
[react-native.core :as rn]
[react-native.gesture :as gesture]
utils.money))
(defn community-stats
[{:keys [icon members-count icon-color accessibility-label]}]

View File

@ -1,5 +1,6 @@
(ns quo2.components.community.icon
(:require [react-native.core :as rn]))
(:require
[react-native.core :as rn]))
(defn community-icon
[{:keys [images]} size]

View File

@ -1,6 +1,7 @@
(ns quo2.components.community.style
(:require [quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(:require
[quo2.foundations.colors :as colors]
[quo2.foundations.shadows :as shadows]))
(defn community-card
[radius theme]

View File

@ -1,11 +1,12 @@
(ns quo2.components.community.token-gating
(:require [quo2.components.markdown.text :as text]
[quo2.components.tags.token-tag :as token-tag]
[react-native.core :as rn]
[utils.i18n :as i18n]
[clojure.string :as string]
[quo2.theme :as quo.theme]
[quo2.components.community.style :as style]))
(:require
[clojure.string :as string]
[quo2.components.community.style :as style]
[quo2.components.markdown.text :as text]
[quo2.components.tags.token-tag :as token-tag]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[utils.i18n :as i18n]))
(defn token-requirement-list-row
[tokens padding?]

View File

@ -1,6 +1,7 @@
(ns quo2.components.counter.counter.component-spec
(:require [quo2.components.counter.counter.view :as counter]
[test-helpers.component :as h]))
(:require
[quo2.components.counter.counter.view :as counter]
[test-helpers.component :as h]))
(h/describe "counter component"
(h/test "default render of counter component"

View File

@ -1,5 +1,6 @@
(ns quo2.components.counter.counter.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn get-color
[type customization-color theme]

View File

@ -1,11 +1,11 @@
(ns quo2.components.counter.counter.view
(:require
[quo2.components.counter.counter.style :as style]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]
[utils.number]
[quo2.theme :as quo.theme]
[quo2.components.counter.counter.style :as style]))
[react-native.core :as rn]
[utils.number]))
(defn- view-internal
[{:keys [type customization-color theme container-style accessibility-label max-value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.counter.step.component-spec
(:require [quo2.components.counter.step.view :as step]
[test-helpers.component :as h]))
(:require
[quo2.components.counter.step.view :as step]
[test-helpers.component :as h]))
(h/describe "step component"
(h/test "default render of step component"

View File

@ -1,8 +1,9 @@
(ns quo2.components.dividers.date
(:require [quo2.components.markdown.text :as text]
[quo2.components.common.separator.view :as separator]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]))
(:require
[quo2.components.common.separator.view :as separator]
[quo2.components.markdown.text :as text]
[quo2.foundations.colors :as colors]
[react-native.core :as rn]))
(defn date
[value]

View File

@ -1,6 +1,7 @@
(ns quo2.components.dividers.divider-label.component-spec
(:require [quo2.components.dividers.divider-label.view :as divider-label]
[test-helpers.component :as h]))
(:require
[quo2.components.dividers.divider-label.view :as divider-label]
[test-helpers.component :as h]))
(h/describe "Divider Label"
(h/test "default render"

View File

@ -1,5 +1,6 @@
(ns quo2.components.dividers.divider-label.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn get-height
[tight?]

View File

@ -1,10 +1,11 @@
(ns quo2.components.dividers.divider-label.view
(:require [quo2.components.markdown.text :as text]
[quo2.components.dividers.divider-label.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[quo2.components.counter.counter.view :as counter]
[quo2.components.icon :as icons]))
(:require
[quo2.components.counter.counter.view :as counter]
[quo2.components.dividers.divider-label.style :as style]
[quo2.components.icon :as icons]
[quo2.components.markdown.text :as text]
[quo2.theme :as quo.theme]
[react-native.core :as rn]))
(defn- view-internal
"Options:

View File

@ -1,5 +1,6 @@
(ns quo2.components.dividers.divider-line.style
(:require [quo2.foundations.colors :as colors]))
(:require
[quo2.foundations.colors :as colors]))
(defn divider-line
[{:keys [blur? container-style theme]}]

View File

@ -1,8 +1,8 @@
(ns quo2.components.dividers.divider-line.view
(:require
[quo2.components.dividers.divider-line.style :as style]
[quo2.theme :as quo.theme]
[react-native.core :as rn]
[quo2.components.dividers.divider-line.style :as style]))
[react-native.core :as rn]))
(defn- view-internal
[props]

Some files were not shown because too many files have changed in this diff Show More