syng to status
This commit is contained in:
parent
416c9395c1
commit
6a5250247c
|
@ -27,7 +27,7 @@ project.xcworkspace
|
||||||
.idea
|
.idea
|
||||||
.gradle
|
.gradle
|
||||||
local.properties
|
local.properties
|
||||||
syng-im.iml
|
status-im.iml
|
||||||
|
|
||||||
# node.js
|
# node.js
|
||||||
#
|
#
|
||||||
|
|
|
@ -20,5 +20,5 @@ All notable changes to this project will be documented in this file. This change
|
||||||
- Files from the new template.
|
- Files from the new template.
|
||||||
- Widget maker public API - `make-widget-sync`.
|
- Widget maker public API - `make-widget-sync`.
|
||||||
|
|
||||||
[unreleased]: https://github.com/your-name/syng-im/compare/0.1.1...HEAD
|
[unreleased]: https://github.com/your-name/status-im/compare/0.1.1...HEAD
|
||||||
[0.1.1]: https://github.com/your-name/syng-im/compare/0.1.0...0.1.1
|
[0.1.1]: https://github.com/your-name/status-im/compare/0.1.0...0.1.1
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# syng-im
|
# status-im
|
||||||
|
|
||||||
A Clojure library designed to ... well, that part is up to you.
|
A Clojure library designed to ... well, that part is up to you.
|
||||||
|
|
||||||
|
|
|
@ -46,13 +46,13 @@ android_library(
|
||||||
|
|
||||||
android_build_config(
|
android_build_config(
|
||||||
name = 'build_config',
|
name = 'build_config',
|
||||||
package = 'com.syngim',
|
package = 'com.statusim',
|
||||||
)
|
)
|
||||||
|
|
||||||
android_resource(
|
android_resource(
|
||||||
name = 'res',
|
name = 'res',
|
||||||
res = 'src/main/res',
|
res = 'src/main/res',
|
||||||
package = 'com.syngim',
|
package = 'com.statusim',
|
||||||
)
|
)
|
||||||
|
|
||||||
android_binary(
|
android_binary(
|
||||||
|
|
|
@ -81,7 +81,7 @@ android {
|
||||||
buildToolsVersion "23.0.1"
|
buildToolsVersion "23.0.1"
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.syngim"
|
applicationId "com.statusim"
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 22
|
targetSdkVersion 22
|
||||||
versionCode 1
|
versionCode 1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.syngim">
|
package="com.statusim">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package com.syngim;
|
package com.statusim;
|
||||||
|
|
||||||
import com.facebook.react.ReactActivity;
|
import com.facebook.react.ReactActivity;
|
||||||
import io.realm.react.RealmReactPackage;
|
import io.realm.react.RealmReactPackage;
|
|
@ -1,3 +1,3 @@
|
||||||
# Introduction to syng-im
|
# Introduction to status-im
|
||||||
|
|
||||||
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
|
TODO: write [great documentation](http://jacobian.org/writing/what-to-write/)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(ns ^:figwheel-no-load env.android.main
|
(ns ^:figwheel-no-load env.android.main
|
||||||
(:require [reagent.core :as r]
|
(:require [reagent.core :as r]
|
||||||
[syng-im.android.core :as core]
|
[status-im.android.core :as core]
|
||||||
[figwheel.client :as figwheel :include-macros true]))
|
[figwheel.client :as figwheel :include-macros true]))
|
||||||
|
|
||||||
(enable-console-print!)
|
(enable-console-print!)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
(ns ^:figwheel-no-load env.ios.main
|
(ns ^:figwheel-no-load env.ios.main
|
||||||
(:require [reagent.core :as r]
|
(:require [reagent.core :as r]
|
||||||
[syng-im.ios.core :as core]
|
[status-im.ios.core :as core]
|
||||||
[figwheel.client :as figwheel :include-macros true]))
|
[figwheel.client :as figwheel :include-macros true]))
|
||||||
|
|
||||||
(enable-console-print!)
|
(enable-console-print!)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(ns env.android.main
|
(ns env.android.main
|
||||||
(:require [syng-im.android.core :as core]))
|
(:require [status-im.android.core :as core]))
|
||||||
|
|
||||||
(core/init)
|
(core/init)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(ns env.ios.main
|
(ns env.ios.main
|
||||||
(:require [syng-im.ios.core :as core]))
|
(:require [status-im.ios.core :as core]))
|
||||||
|
|
||||||
(core/init)
|
(core/init)
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>ci.syng.im</id>
|
<id>ci.status.im</id>
|
||||||
<url>http://ci.syng.im:8081/artifactory/libs-release-local/</url>
|
<url>http://ci.status.im:8081/artifactory/libs-release-local/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<artifactItems>
|
<artifactItems>
|
||||||
<artifactItem>
|
<artifactItem>
|
||||||
<groupId>syng-im</groupId>
|
<groupId>status-im</groupId>
|
||||||
<artifactId>ios-geth</artifactId>
|
<artifactId>ios-geth</artifactId>
|
||||||
<version>1.4.0-201603151613-92d65cf</version>
|
<version>1.4.0-201603151613-92d65cf</version>
|
||||||
<type>zip</type>
|
<type>zip</type>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(defproject syng-im "0.1.0-SNAPSHOT"
|
(defproject status-im "0.1.0-SNAPSHOT"
|
||||||
:description "FIXME: write description"
|
:description "FIXME: write description"
|
||||||
:url "http://example.com/FIXME"
|
:url "http://example.com/FIXME"
|
||||||
:license {:name "Eclipse Public License"
|
:license {:name "Eclipse Public License"
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
[prismatic/schema "1.0.4"]
|
[prismatic/schema "1.0.4"]
|
||||||
^{:voom {:repo "https://github.com/status-im/status-lib.git"
|
^{:voom {:repo "https://github.com/status-im/status-lib.git"
|
||||||
:branch "feature-discover"}}
|
:branch "feature-discover"}}
|
||||||
[syng-im/protocol "0.1.1-20160506_171115-ge2c95c1"]
|
[status-im/protocol "0.1.1-20160506_171115-ge2c95c1"]
|
||||||
[natal-shell "0.1.6"]]
|
[natal-shell "0.1.6"]]
|
||||||
:plugins [[lein-cljsbuild "1.1.1"]
|
:plugins [[lein-cljsbuild "1.1.1"]
|
||||||
[lein-figwheel "0.5.0-2"]]
|
[lein-figwheel "0.5.0-2"]]
|
||||||
|
|
|
@ -1,24 +1,24 @@
|
||||||
(ns syng-im.android.core
|
(ns status-im.android.core
|
||||||
(:require-macros
|
(:require-macros
|
||||||
[natal-shell.back-android :refer [add-event-listener remove-event-listener]])
|
[natal-shell.back-android :refer [add-event-listener remove-event-listener]])
|
||||||
(:require [reagent.core :as r :refer [atom]]
|
(:require [reagent.core :as r :refer [atom]]
|
||||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.handlers]
|
[status-im.handlers]
|
||||||
[syng-im.subs]
|
[status-im.subs]
|
||||||
[syng-im.components.react :refer [navigator app-registry]]
|
[status-im.components.react :refer [navigator app-registry]]
|
||||||
[syng-im.contacts.screen :refer [contact-list]]
|
[status-im.contacts.screen :refer [contact-list]]
|
||||||
[syng-im.discovery.screen :refer [discovery]]
|
[status-im.discovery.screen :refer [discovery]]
|
||||||
[syng-im.discovery.tag :refer [discovery-tag]]
|
[status-im.discovery.tag :refer [discovery-tag]]
|
||||||
[syng-im.chat.screen :refer [chat]]
|
[status-im.chat.screen :refer [chat]]
|
||||||
[syng-im.chats-list.screen :refer [chats-list]]
|
[status-im.chats-list.screen :refer [chats-list]]
|
||||||
[syng-im.new-group.screen :refer [new-group]]
|
[status-im.new-group.screen :refer [new-group]]
|
||||||
[syng-im.participants.views.create :refer [new-participants]]
|
[status-im.participants.views.create :refer [new-participants]]
|
||||||
[syng-im.participants.views.remove :refer [remove-participants]]
|
[status-im.participants.views.remove :refer [remove-participants]]
|
||||||
[syng-im.group-settings.screen :refer [group-settings]]
|
[status-im.group-settings.screen :refer [group-settings]]
|
||||||
[syng-im.group-settings.views.chat-name-edit :refer [chat-name-edit]]
|
[status-im.group-settings.views.chat-name-edit :refer [chat-name-edit]]
|
||||||
[syng-im.profile.screen :refer [profile my-profile]]
|
[status-im.profile.screen :refer [profile my-profile]]
|
||||||
[syng-im.utils.utils :refer [toast]]
|
[status-im.utils.utils :refer [toast]]
|
||||||
[syng-im.utils.encryption]))
|
[status-im.utils.encryption]))
|
||||||
|
|
||||||
(defn init-back-button-handler! []
|
(defn init-back-button-handler! []
|
||||||
(let [new-listener (fn []
|
(let [new-listener (fn []
|
|
@ -1,17 +1,17 @@
|
||||||
(ns syng-im.chat.handlers
|
(ns status-im.chat.handlers
|
||||||
(:require [re-frame.core :refer [register-handler enrich after debug dispatch]]
|
(:require [re-frame.core :refer [register-handler enrich after debug dispatch]]
|
||||||
[syng-im.models.commands :as commands]
|
[status-im.models.commands :as commands]
|
||||||
[clojure.string :as str]
|
[clojure.string :as str]
|
||||||
[syng-im.chat.suggestions :as suggestions]
|
[status-im.chat.suggestions :as suggestions]
|
||||||
[syng-im.protocol.api :as api]
|
[status-im.protocol.api :as api]
|
||||||
[syng-im.models.messages :as messages]
|
[status-im.models.messages :as messages]
|
||||||
[syng-im.constants :refer [text-content-type
|
[status-im.constants :refer [text-content-type
|
||||||
content-type-command]]
|
content-type-command]]
|
||||||
[syng-im.utils.random :as random]
|
[status-im.utils.random :as random]
|
||||||
[syng-im.chat.sign-up :as sign-up-service]
|
[status-im.chat.sign-up :as sign-up-service]
|
||||||
[syng-im.models.chats :as chats]
|
[status-im.models.chats :as chats]
|
||||||
[syng-im.navigation.handlers :as nav]
|
[status-im.navigation.handlers :as nav]
|
||||||
[syng-im.utils.handlers :as u]))
|
[status-im.utils.handlers :as u]))
|
||||||
|
|
||||||
(register-handler :set-show-actions
|
(register-handler :set-show-actions
|
||||||
(fn [db [_ show-actions]]
|
(fn [db [_ show-actions]]
|
|
@ -1,21 +1,21 @@
|
||||||
(ns syng-im.chat.screen
|
(ns status-im.chat.screen
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[re-frame.core :refer [subscribe dispatch]]
|
[re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
icon
|
icon
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
list-view
|
list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.chat.styles.screen :as st]
|
[status-im.chat.styles.screen :as st]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
[status-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.chat.views.message :refer [chat-message]]
|
[status-im.chat.views.message :refer [chat-message]]
|
||||||
[syng-im.chat.views.new-message :refer [chat-message-new]]))
|
[status-im.chat.views.new-message :refer [chat-message-new]]))
|
||||||
|
|
||||||
|
|
||||||
(defn contacts-by-identity [contacts]
|
(defn contacts-by-identity [contacts]
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.chat.sign-up
|
(ns status-im.chat.sign-up
|
||||||
;syng-im.handlers.sign-up
|
;status-im.handlers.sign-up
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.persistence.simple-kv-store :as kv]
|
[status-im.persistence.simple-kv-store :as kv]
|
||||||
[syng-im.protocol.state.storage :as s]
|
[status-im.protocol.state.storage :as s]
|
||||||
[syng-im.models.chats :as c]
|
[status-im.models.chats :as c]
|
||||||
[syng-im.utils.utils :refer [log on-error http-post toast]]
|
[status-im.utils.utils :refer [log on-error http-post toast]]
|
||||||
[syng-im.utils.random :as random]
|
[status-im.utils.random :as random]
|
||||||
[syng-im.utils.phone-number :refer [format-phone-number]]
|
[status-im.utils.phone-number :refer [format-phone-number]]
|
||||||
[syng-im.constants :refer [text-content-type
|
[status-im.constants :refer [text-content-type
|
||||||
content-type-command
|
content-type-command
|
||||||
content-type-command-request
|
content-type-command-request
|
||||||
content-type-status]]))
|
content-type-status]]))
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.content-suggestions
|
(ns status-im.chat.styles.content-suggestions
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-light-blue-transparent
|
color-light-blue-transparent
|
||||||
color-white
|
color-white
|
||||||
color-black
|
color-black
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.input
|
(ns status-im.chat.styles.input
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-white
|
color-white
|
||||||
color-blue
|
color-blue
|
||||||
text1-color
|
text1-color
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.message
|
(ns status-im.chat.styles.message
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-light-blue-transparent
|
color-light-blue-transparent
|
||||||
color-white
|
color-white
|
||||||
color-black
|
color-black
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
online-color
|
online-color
|
||||||
text1-color
|
text1-color
|
||||||
text2-color]]
|
text2-color]]
|
||||||
[syng-im.constants :refer [text-content-type
|
[status-im.constants :refer [text-content-type
|
||||||
content-type-command]]))
|
content-type-command]]))
|
||||||
|
|
||||||
(def style-message-text
|
(def style-message-text
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.plain-input
|
(ns status-im.chat.styles.plain-input
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
text2-color
|
text2-color
|
||||||
color-white
|
color-white
|
||||||
color-blue]]))
|
color-blue]]))
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.screen
|
(ns status-im.chat.styles.screen
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
chat-background
|
chat-background
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chat.styles.suggestions
|
(ns status-im.chat.styles.suggestions
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-light-blue-transparent
|
color-light-blue-transparent
|
||||||
color-white
|
color-white
|
||||||
color-black
|
color-black
|
|
@ -1,12 +1,12 @@
|
||||||
(ns syng-im.chat.subs
|
(ns status-im.chat.subs
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :refer [register-sub]]
|
(:require [re-frame.core :refer [register-sub]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
;todo handlers in subs?...
|
;todo handlers in subs?...
|
||||||
[syng-im.chat.suggestions :refer
|
[status-im.chat.suggestions :refer
|
||||||
[get-suggestions typing-command? get-content-suggestions]]
|
[get-suggestions typing-command? get-content-suggestions]]
|
||||||
[syng-im.models.commands :as commands]
|
[status-im.models.commands :as commands]
|
||||||
[syng-im.handlers.content-suggestions :refer [get-content-suggestions]]))
|
[status-im.handlers.content-suggestions :refer [get-content-suggestions]]))
|
||||||
|
|
||||||
(register-sub :chat-properties
|
(register-sub :chat-properties
|
||||||
(fn [db [_ properties]]
|
(fn [db [_ properties]]
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.chat.suggestions
|
(ns status-im.chat.suggestions
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
[syng-im.models.commands :refer [commands
|
[status-im.models.commands :refer [commands
|
||||||
suggestions
|
suggestions
|
||||||
get-commands
|
get-commands
|
||||||
get-chat-command-request
|
get-chat-command-request
|
||||||
get-chat-command-to-msg-id
|
get-chat-command-to-msg-id
|
||||||
clear-staged-commands]]
|
clear-staged-commands]]
|
||||||
[syng-im.utils.utils :refer [log on-error http-get]]
|
[status-im.utils.utils :refer [log on-error http-get]]
|
||||||
[clojure.string :as s]))
|
[clojure.string :as s]))
|
||||||
|
|
||||||
(defn suggestion? [text]
|
(defn suggestion? [text]
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.chat.views.command
|
(ns status-im.chat.views.command
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
icon
|
icon
|
||||||
text
|
text
|
||||||
text-input
|
text-input
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.chat.views.content-suggestions :refer
|
[status-im.chat.views.content-suggestions :refer
|
||||||
[content-suggestions-view]]
|
[content-suggestions-view]]
|
||||||
[syng-im.chat.styles.input :as st]))
|
[status-im.chat.styles.input :as st]))
|
||||||
|
|
||||||
(defn cancel-command-input []
|
(defn cancel-command-input []
|
||||||
(dispatch [:cancel-command]))
|
(dispatch [:cancel-command]))
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.chat.views.confirmation-code
|
(ns status-im.chat.views.confirmation-code
|
||||||
(:require
|
(:require
|
||||||
[syng-im.chat.views.command :refer [simple-command-input-view]]))
|
[status-im.chat.views.command :refer [simple-command-input-view]]))
|
||||||
|
|
||||||
(defn confirmation-code-input-view [command]
|
(defn confirmation-code-input-view [command]
|
||||||
[simple-command-input-view command {:keyboardType :numeric}])
|
[simple-command-input-view command {:keyboardType :numeric}])
|
|
@ -1,14 +1,14 @@
|
||||||
(ns syng-im.chat.views.content-suggestions
|
(ns status-im.chat.views.content-suggestions
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
icon
|
icon
|
||||||
text
|
text
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
list-view
|
list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.chat.styles.content-suggestions :as st]
|
[status-im.chat.styles.content-suggestions :as st]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]))
|
[status-im.utils.listview :refer [to-datasource]]))
|
||||||
|
|
||||||
(defn set-command-content [content]
|
(defn set-command-content [content]
|
||||||
(dispatch [:set-chat-command-content content]))
|
(dispatch [:set-chat-command-content content]))
|
|
@ -1,15 +1,15 @@
|
||||||
(ns syng-im.chat.views.message
|
(ns status-im.chat.views.message
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[re-frame.core :refer [subscribe dispatch]]
|
[re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.chat.styles.message :as st]
|
[status-im.chat.styles.message :as st]
|
||||||
[syng-im.models.commands :refer [parse-command-msg-content
|
[status-im.models.commands :refer [parse-command-msg-content
|
||||||
parse-command-request]]
|
parse-command-request]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.constants :refer [text-content-type
|
[status-im.constants :refer [text-content-type
|
||||||
content-type-status
|
content-type-status
|
||||||
content-type-command
|
content-type-command
|
||||||
content-type-command-request]]))
|
content-type-command-request]]))
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.chat.views.money
|
(ns status-im.chat.views.money
|
||||||
(:require
|
(:require
|
||||||
[syng-im.chat.views.command :refer [simple-command-input-view]]))
|
[status-im.chat.views.command :refer [simple-command-input-view]]))
|
||||||
|
|
||||||
(defn money-input-view [command]
|
(defn money-input-view [command]
|
||||||
[simple-command-input-view command
|
[simple-command-input-view command
|
|
@ -1,15 +1,15 @@
|
||||||
(ns syng-im.chat.views.new-message
|
(ns status-im.chat.views.new-message
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [subscribe]]
|
[re-frame.core :refer [subscribe]]
|
||||||
[syng-im.components.react :refer [view]]
|
[status-im.components.react :refer [view]]
|
||||||
[syng-im.chat.views.plain-input :refer [plain-message-input-view]]
|
[status-im.chat.views.plain-input :refer [plain-message-input-view]]
|
||||||
[syng-im.chat.views.command :refer [simple-command-input-view]]
|
[status-im.chat.views.command :refer [simple-command-input-view]]
|
||||||
[syng-im.chat.views.phone :refer [phone-input-view]]
|
[status-im.chat.views.phone :refer [phone-input-view]]
|
||||||
[syng-im.chat.views.password :refer [password-input-view]]
|
[status-im.chat.views.password :refer [password-input-view]]
|
||||||
[syng-im.chat.views.confirmation-code :refer [confirmation-code-input-view]]
|
[status-im.chat.views.confirmation-code :refer [confirmation-code-input-view]]
|
||||||
[syng-im.chat.views.money :refer [money-input-view]]
|
[status-im.chat.views.money :refer [money-input-view]]
|
||||||
[syng-im.chat.views.staged-command :refer [simple-command-staged-view]]
|
[status-im.chat.views.staged-command :refer [simple-command-staged-view]]
|
||||||
[syng-im.chat.styles.message :as st]))
|
[status-im.chat.styles.message :as st]))
|
||||||
|
|
||||||
(defn staged-command-view [stage-command]
|
(defn staged-command-view [stage-command]
|
||||||
[simple-command-staged-view stage-command])
|
[simple-command-staged-view stage-command])
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.chat.views.password
|
(ns status-im.chat.views.password
|
||||||
(:require
|
(:require
|
||||||
[syng-im.chat.views.command
|
[status-im.chat.views.command
|
||||||
:refer [simple-command-input-view]]))
|
:refer [simple-command-input-view]]))
|
||||||
|
|
||||||
(defn password-input-view [command]
|
(defn password-input-view [command]
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.chat.views.phone
|
(ns status-im.chat.views.phone
|
||||||
(:require
|
(:require
|
||||||
[syng-im.chat.views.command
|
[status-im.chat.views.command
|
||||||
:refer [simple-command-input-view]]
|
:refer [simple-command-input-view]]
|
||||||
[syng-im.utils.phone-number :refer [valid-mobile-number?]]))
|
[status-im.utils.phone-number :refer [valid-mobile-number?]]))
|
||||||
|
|
||||||
(defn phone-input-view [command]
|
(defn phone-input-view [command]
|
||||||
[simple-command-input-view command {:keyboardType :phone-pad}
|
[simple-command-input-view command {:keyboardType :phone-pad}
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.chat.views.plain-input
|
(ns status-im.chat.views.plain-input
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
icon
|
icon
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
text-input]]
|
text-input]]
|
||||||
[syng-im.chat.views.suggestions :refer [suggestions-view]]
|
[status-im.chat.views.suggestions :refer [suggestions-view]]
|
||||||
[syng-im.chat.styles.plain-input :as st]))
|
[status-im.chat.styles.plain-input :as st]))
|
||||||
|
|
||||||
(defn set-input-message [message]
|
(defn set-input-message [message]
|
||||||
(dispatch [:set-chat-input-text message]))
|
(dispatch [:set-chat-input-text message]))
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.chat.views.staged-command
|
(ns status-im.chat.views.staged-command
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
image
|
image
|
||||||
text
|
text
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.chat.styles.input :as st]))
|
[status-im.chat.styles.input :as st]))
|
||||||
|
|
||||||
(defn cancel-command-input [staged-command]
|
(defn cancel-command-input [staged-command]
|
||||||
(dispatch [:unstage-command staged-command]))
|
(dispatch [:unstage-command staged-command]))
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.chat.views.suggestions
|
(ns status-im.chat.views.suggestions
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text
|
text
|
||||||
icon
|
icon
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
list-view
|
list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.chat.styles.suggestions :as st]))
|
[status-im.chat.styles.suggestions :as st]))
|
||||||
|
|
||||||
(defn set-command-input [command]
|
(defn set-command-input [command]
|
||||||
(dispatch [:set-chat-command command]))
|
(dispatch [:set-chat-command command]))
|
|
@ -1,21 +1,21 @@
|
||||||
(ns syng-im.chats-list.screen
|
(ns status-im.chats-list.screen
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [list-view
|
[status-im.components.react :refer [list-view
|
||||||
list-item
|
list-item
|
||||||
view
|
view
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[reagent.core :as r]
|
[reagent.core :as r]
|
||||||
[syng-im.chats-list.views.chat-list-item :refer [chat-list-item]]
|
[status-im.chats-list.views.chat-list-item :refer [chat-list-item]]
|
||||||
[syng-im.components.action-button :refer [action-button
|
[status-im.components.action-button :refer [action-button
|
||||||
action-button-item]]
|
action-button-item]]
|
||||||
[syng-im.components.drawer.view :refer [drawer-view open-drawer]]
|
[status-im.components.drawer.view :refer [drawer-view open-drawer]]
|
||||||
[syng-im.components.styles :refer [color-blue]]
|
[status-im.components.styles :refer [color-blue]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.components.icons.ionicons :refer [icon]]
|
[status-im.components.icons.ionicons :refer [icon]]
|
||||||
[syng-im.chats-list.styles :as st]))
|
[status-im.chats-list.styles :as st]))
|
||||||
|
|
||||||
|
|
||||||
(defn chats-list-toolbar []
|
(defn chats-list-toolbar []
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.chats-list.styles
|
(ns status-im.chats-list.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
color-blue
|
color-blue
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.chats-list.views.chat-list-item
|
(ns status-im.chats-list.views.chat-list-item
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.components.styles :refer [font]]
|
[status-im.components.styles :refer [font]]
|
||||||
[syng-im.chats-list.views.inner-item :refer
|
[status-im.chats-list.views.inner-item :refer
|
||||||
[chat-list-item-inner-view]]))
|
[chat-list-item-inner-view]]))
|
||||||
|
|
||||||
(defn chat-list-item [{:keys [chat-id] :as chat}]
|
(defn chat-list-item [{:keys [chat-id] :as chat}]
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.chats-list.views.inner-item
|
(ns status-im.chats-list.views.inner-item
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[syng-im.components.react :refer [view image icon text]]
|
[status-im.components.react :refer [view image icon text]]
|
||||||
[syng-im.chats-list.styles :as st]
|
[status-im.chats-list.styles :as st]
|
||||||
[syng-im.resources :as res]))
|
[status-im.resources :as res]))
|
||||||
|
|
||||||
|
|
||||||
(defn contact-photo [photo-path]
|
(defn contact-photo [photo-path]
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.action-button
|
(ns status-im.components.action-button
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/window.ActionButton (js/require "react-native-action-button"))
|
(set! js/window.ActionButton (js/require "react-native-action-button"))
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.components.carousel.carousel
|
(ns status-im.components.carousel.carousel
|
||||||
(:require [syng-im.components.react :refer [android?
|
(:require [status-im.components.react :refer [android?
|
||||||
view
|
view
|
||||||
scroll-view
|
scroll-view
|
||||||
touchable-without-feedback
|
touchable-without-feedback
|
||||||
text]]
|
text]]
|
||||||
[syng-im.components.carousel.styles :as st]
|
[status-im.components.carousel.styles :as st]
|
||||||
[syng-im.utils.logging :as log]))
|
[status-im.utils.logging :as log]))
|
||||||
|
|
||||||
|
|
||||||
(defn window-page-width []
|
(defn window-page-width []
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.components.carousel.styles
|
(ns status-im.components.carousel.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
chat-background
|
chat-background
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.components.drawer.styles
|
(ns status-im.components.drawer.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-light-blue-transparent
|
color-light-blue-transparent
|
||||||
color-white
|
color-white
|
||||||
color-black
|
color-black
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.components.drawer.view
|
(ns status-im.components.drawer.view
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[reagent.core :as r]
|
[reagent.core :as r]
|
||||||
[syng-im.components.react :refer [android?
|
[status-im.components.react :refer [android?
|
||||||
view
|
view
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
toolbar-android
|
toolbar-android
|
||||||
drawer-layout-android
|
drawer-layout-android
|
||||||
touchable-opacity]]
|
touchable-opacity]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.components.drawer.styles :as st]))
|
[status-im.components.drawer.styles :as st]))
|
||||||
|
|
||||||
(defonce drawer-atom (atom))
|
(defonce drawer-atom (atom))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.icons.ionicons
|
(ns status-im.components.icons.ionicons
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/window.Ionicons (js/require "react-native-vector-icons/Ionicons"))
|
(set! js/window.Ionicons (js/require "react-native-vector-icons/Ionicons"))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.invertible-scroll-view)
|
(ns status-im.components.invertible-scroll-view)
|
||||||
|
|
||||||
(set! js/window.InvertibleScrollView (js/require "react-native-invertible-scroll-view"))
|
(set! js/window.InvertibleScrollView (js/require "react-native-invertible-scroll-view"))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.item-checkbox
|
(ns status-im.components.item-checkbox
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/window.ItemCheckbox (js/require "react-native-circle-checkbox"))
|
(set! js/window.ItemCheckbox (js/require "react-native-circle-checkbox"))
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.components.react
|
(ns status-im.components.react
|
||||||
(:require [reagent.core :as r]
|
(:require [reagent.core :as r]
|
||||||
[syng-im.components.styles :as st]))
|
[status-im.components.styles :as st]))
|
||||||
|
|
||||||
(set! js/window.React (js/require "react-native"))
|
(set! js/window.React (js/require "react-native"))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.realm
|
(ns status-im.components.realm
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/window.RealmReactNative (js/require "realm/react-native"))
|
(set! js/window.RealmReactNative (js/require "realm/react-native"))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.spinner
|
(ns status-im.components.spinner
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(def react-spinner (.-default (js/require "react-native-loading-spinner-overlay")))
|
(def react-spinner (.-default (js/require "react-native-loading-spinner-overlay")))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.components.styles)
|
(ns status-im.components.styles)
|
||||||
|
|
||||||
(def font "sans-serif")
|
(def font "sans-serif")
|
||||||
;; (def font "Avenir-Roman")
|
;; (def font "Avenir-Roman")
|
|
@ -1,19 +1,19 @@
|
||||||
(ns syng-im.components.toolbar
|
(ns status-im.components.toolbar
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text-input
|
text-input
|
||||||
icon
|
icon
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.components.styles :refer [font
|
[status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
color-purple
|
color-purple
|
||||||
text1-color
|
text1-color
|
||||||
text2-color
|
text2-color
|
||||||
toolbar-background1]]
|
toolbar-background1]]
|
||||||
[syng-im.components.realm :refer [list-view]]
|
[status-im.components.realm :refer [list-view]]
|
||||||
[reagent.core :as r]))
|
[reagent.core :as r]))
|
||||||
|
|
||||||
(defn toolbar [{:keys [title nav-action hide-nav? action custom-action
|
(defn toolbar [{:keys [title nav-action hide-nav? action custom-action
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.constants)
|
(ns status-im.constants)
|
||||||
|
|
||||||
(def ethereum-rpc-url "http://localhost:8545")
|
(def ethereum-rpc-url "http://localhost:8545")
|
||||||
|
|
||||||
(def server-address "http://rpc0.syng.im:20000/")
|
(def server-address "http://rpc0.status.im:20000/")
|
||||||
;; (def server-address "http://10.0.3.2:3000/")
|
;; (def server-address "http://10.0.3.2:3000/")
|
||||||
|
|
||||||
(def text-content-type "text/plain")
|
(def text-content-type "text/plain")
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.contacts.handlers
|
(ns status-im.contacts.handlers
|
||||||
(:require [re-frame.core :refer [register-handler after dispatch]]
|
(:require [re-frame.core :refer [register-handler after dispatch]]
|
||||||
[syng-im.models.contacts :as contacts]
|
[status-im.models.contacts :as contacts]
|
||||||
[syng-im.utils.crypt :refer [encrypt]]
|
[status-im.utils.crypt :refer [encrypt]]
|
||||||
[clojure.string :as s]
|
[clojure.string :as s]
|
||||||
[syng-im.utils.utils :refer [http-post]]
|
[status-im.utils.utils :refer [http-post]]
|
||||||
[syng-im.utils.phone-number :refer [format-phone-number]]
|
[status-im.utils.phone-number :refer [format-phone-number]]
|
||||||
[syng-im.utils.handlers :as u]))
|
[status-im.utils.handlers :as u]))
|
||||||
|
|
||||||
(defn save-contact
|
(defn save-contact
|
||||||
[_ [_ contact]]
|
[_ [_ contact]]
|
|
@ -1,16 +1,16 @@
|
||||||
(ns syng-im.contacts.screen
|
(ns status-im.contacts.screen
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view text
|
[status-im.components.react :refer [view text
|
||||||
image
|
image
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
list-view
|
list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.contacts.views.contact :refer [contact-view]]
|
[status-im.contacts.views.contact :refer [contact-view]]
|
||||||
[syng-im.components.styles :refer [toolbar-background2]]
|
[status-im.components.styles :refer [toolbar-background2]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.contacts.styles :as st]
|
[status-im.contacts.styles :as st]
|
||||||
[syng-im.utils.listview :as lw]))
|
[status-im.utils.listview :as lw]))
|
||||||
|
|
||||||
(defn render-row [row _ _]
|
(defn render-row [row _ _]
|
||||||
(list-item [contact-view row]))
|
(list-item [contact-view row]))
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.contacts.styles
|
(ns status-im.contacts.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
text1-color
|
text1-color
|
||||||
color-white
|
color-white
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.contacts.subs
|
(ns status-im.contacts.subs
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :refer [register-sub]]))
|
(:require [re-frame.core :refer [register-sub]]))
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.contacts.views.contact
|
(ns status-im.contacts.views.contact
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [syng-im.components.react :refer [view touchable-highlight]]
|
(:require [status-im.components.react :refer [view touchable-highlight]]
|
||||||
[re-frame.core :refer [dispatch subscribe]]
|
[re-frame.core :refer [dispatch subscribe]]
|
||||||
[syng-im.contacts.views.contact-inner :refer [contact-inner-view]]))
|
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]))
|
||||||
|
|
||||||
(defn on-press [chat whisper-identity]
|
(defn on-press [chat whisper-identity]
|
||||||
(if chat
|
(if chat
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.contacts.views.contact-inner
|
(ns status-im.contacts.views.contact-inner
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[syng-im.components.react :refer [view image text]]
|
[status-im.components.react :refer [view image text]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.contacts.styles :as st]))
|
[status-im.contacts.styles :as st]))
|
||||||
|
|
||||||
(defn contact-photo [{:keys [photo-path]}]
|
(defn contact-photo [{:keys [photo-path]}]
|
||||||
[view st/contact-photo-container
|
[view st/contact-photo-container
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.db
|
(ns status-im.db
|
||||||
(:require [schema.core :as s :include-macros true]))
|
(:require [schema.core :as s :include-macros true]))
|
||||||
|
|
||||||
;; schema of app-db
|
;; schema of app-db
|
|
@ -1,9 +1,9 @@
|
||||||
(ns syng-im.discovery.handlers
|
(ns status-im.discovery.handlers
|
||||||
(:require [re-frame.core :refer [register-handler after dispatch enrich]]
|
(:require [re-frame.core :refer [register-handler after dispatch enrich]]
|
||||||
[syng-im.protocol.api :as api]
|
[status-im.protocol.api :as api]
|
||||||
[syng-im.navigation.handlers :as nav]
|
[status-im.navigation.handlers :as nav]
|
||||||
[syng-im.discovery.model :as discoveries]
|
[status-im.discovery.model :as discoveries]
|
||||||
[syng-im.utils.handlers :as u]))
|
[status-im.utils.handlers :as u]))
|
||||||
|
|
||||||
(defmethod nav/preload-data! :discovery
|
(defmethod nav/preload-data! :discovery
|
||||||
[{:keys [discoveries] :as db} _]
|
[{:keys [discoveries] :as db} _]
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.discovery.model
|
(ns status-im.discovery.model
|
||||||
;syng-im.models.discoveries
|
;status-im.models.discoveries
|
||||||
(:require [syng-im.utils.logging :as log]
|
(:require [status-im.utils.logging :as log]
|
||||||
[syng-im.persistence.realm :as realm]
|
[status-im.persistence.realm :as realm]
|
||||||
[syng-im.persistence.realm :as r]))
|
[status-im.persistence.realm :as r]))
|
||||||
|
|
||||||
(defn get-tag [tag]
|
(defn get-tag [tag]
|
||||||
(log/debug "Getting tag: " tag)
|
(log/debug "Getting tag: " tag)
|
|
@ -1,15 +1,15 @@
|
||||||
(ns syng-im.discovery.screen
|
(ns status-im.discovery.screen
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [dispatch subscribe]]
|
[re-frame.core :refer [dispatch subscribe]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
scroll-view
|
scroll-view
|
||||||
text
|
text
|
||||||
text-input]]
|
text-input]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.discovery.views.popular :refer [popular]]
|
[status-im.discovery.views.popular :refer [popular]]
|
||||||
[syng-im.discovery.views.recent :refer [discovery-recent]]
|
[status-im.discovery.views.recent :refer [discovery-recent]]
|
||||||
[syng-im.discovery.styles :as st]))
|
[status-im.discovery.styles :as st]))
|
||||||
|
|
||||||
(defn get-hashtags [status]
|
(defn get-hashtags [status]
|
||||||
(let [hashtags (map #(subs % 1) (re-seq #"#[^ !?,;:.]+" status))]
|
(let [hashtags (map #(subs % 1) (re-seq #"#[^ !?,;:.]+" status))]
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.discovery.styles
|
(ns status-im.discovery.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
chat-background
|
chat-background
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.discovery.subs
|
(ns status-im.discovery.subs
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :refer [register-sub]]))
|
(:require [re-frame.core :refer [register-sub]]))
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
(ns syng-im.discovery.tag
|
(ns status-im.discovery.tag
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [subscribe dispatch]]
|
[re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.components.react :refer [view text list-view list-item]]
|
[status-im.components.react :refer [view text list-view list-item]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.discovery.views.popular-list-item :refer [popular-list-item]]
|
[status-im.discovery.views.popular-list-item :refer [popular-list-item]]
|
||||||
[syng-im.discovery.styles :as st]))
|
[status-im.discovery.styles :as st]))
|
||||||
|
|
||||||
(defn render-row [row _ _]
|
(defn render-row [row _ _]
|
||||||
(list-item [popular-list-item row]))
|
(list-item [popular-list-item row]))
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.discovery.views.popular
|
(ns status-im.discovery.views.popular
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [subscribe]]
|
[re-frame.core :refer [subscribe]]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[syng-im.components.react :refer [android?
|
[status-im.components.react :refer [android?
|
||||||
text]]
|
text]]
|
||||||
[syng-im.components.carousel.carousel :refer [carousel]]
|
[status-im.components.carousel.carousel :refer [carousel]]
|
||||||
[syng-im.discovery.styles :as st]
|
[status-im.discovery.styles :as st]
|
||||||
[syng-im.discovery.views.popular-list :refer [discovery-popular-list]]))
|
[status-im.discovery.views.popular-list :refer [discovery-popular-list]]))
|
||||||
|
|
||||||
(defn page-width []
|
(defn page-width []
|
||||||
(.-width (.get (.. js/React -Dimensions) "window")))
|
(.-width (.get (.. js/React -Dimensions) "window")))
|
|
@ -1,15 +1,15 @@
|
||||||
(ns syng-im.discovery.views.popular-list
|
(ns status-im.discovery.views.popular-list
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [subscribe dispatch]]
|
[re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
list-view
|
list-view
|
||||||
list-item
|
list-item
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
text]]
|
text]]
|
||||||
[syng-im.discovery.styles :as st]
|
[status-im.discovery.styles :as st]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.discovery.views.popular-list-item :refer [popular-list-item]]))
|
[status-im.discovery.views.popular-list-item :refer [popular-list-item]]))
|
||||||
|
|
||||||
(defn render-row [row _ _]
|
(defn render-row [row _ _]
|
||||||
(list-item [popular-list-item row]))
|
(list-item [popular-list-item row]))
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.discovery.views.popular-list-item
|
(ns status-im.discovery.views.popular-list-item
|
||||||
(:require [syng-im.components.react :refer [view text image]]
|
(:require [status-im.components.react :refer [view text image]]
|
||||||
[syng-im.discovery.styles :as st]
|
[status-im.discovery.styles :as st]
|
||||||
[reagent.core :as r]))
|
[reagent.core :as r]))
|
||||||
|
|
||||||
(defn popular-list-item
|
(defn popular-list-item
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.discovery.views.recent
|
(ns status-im.discovery.views.recent
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [subscribe]]
|
[re-frame.core :refer [subscribe]]
|
||||||
[syng-im.components.react :refer [view list-view list-item]]
|
[status-im.components.react :refer [view list-view list-item]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.discovery.styles :as st]
|
[status-im.discovery.styles :as st]
|
||||||
[syng-im.discovery.views.popular-list-item
|
[status-im.discovery.views.popular-list-item
|
||||||
:refer [popular-list-item]]))
|
:refer [popular-list-item]]))
|
||||||
|
|
||||||
(defn render-row [row _ _]
|
(defn render-row [row _ _]
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.group-settings.handlers
|
(ns status-im.group-settings.handlers
|
||||||
(:require [re-frame.core :refer [register-handler debug dispatch]]
|
(:require [re-frame.core :refer [register-handler debug dispatch]]
|
||||||
[syng-im.persistence.realm :as r]
|
[status-im.persistence.realm :as r]
|
||||||
[syng-im.models.messages :refer [clear-history]]))
|
[status-im.models.messages :refer [clear-history]]))
|
||||||
|
|
||||||
(defn set-chat-name [db]
|
(defn set-chat-name [db]
|
||||||
(let [chat-id (:current-chat-id db)
|
(let [chat-id (:current-chat-id db)
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.group-settings.screen
|
(ns status-im.group-settings.screen
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text-input
|
text-input
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
|
@ -11,9 +11,9 @@
|
||||||
picker-item
|
picker-item
|
||||||
scroll-view
|
scroll-view
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.group-settings.styles.group-settings :as st]
|
[status-im.group-settings.styles.group-settings :as st]
|
||||||
[syng-im.group-settings.views.member :refer [member-view]]))
|
[status-im.group-settings.views.member :refer [member-view]]))
|
||||||
|
|
||||||
(defn remove-member [{:keys [whisper-identity]}]
|
(defn remove-member [{:keys [whisper-identity]}]
|
||||||
(dispatch [:chat-remove-member whisper-identity]))
|
(dispatch [:chat-remove-member whisper-identity]))
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.group-settings.styles.chat-name-edit
|
(ns status-im.group-settings.styles.chat-name-edit
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
color-white
|
color-white
|
||||||
text1-color]]))
|
text1-color]]))
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.group-settings.styles.group-settings
|
(ns status-im.group-settings.styles.group-settings
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
font-medium
|
font-medium
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.group-settings.styles.member
|
(ns status-im.group-settings.styles.member
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
text1-color
|
text1-color
|
||||||
text2-color
|
text2-color
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.group-settings.subs
|
(ns status-im.group-settings.subs
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :refer [register-sub]]
|
(:require [re-frame.core :refer [register-sub]]
|
||||||
[syng-im.models.contacts :refer [contact-by-identity]]))
|
[status-im.models.contacts :refer [contact-by-identity]]))
|
||||||
|
|
||||||
(register-sub :group-settings-selected-member
|
(register-sub :group-settings-selected-member
|
||||||
(fn [db [_]]
|
(fn [db [_]]
|
|
@ -1,11 +1,11 @@
|
||||||
(ns syng-im.group-settings.views.chat-name-edit
|
(ns status-im.group-settings.views.chat-name-edit
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [reagent.core :as r]
|
(:require [reagent.core :as r]
|
||||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view text-input]]
|
[status-im.components.react :refer [view text-input]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.group-settings.styles.chat-name-edit :as st]
|
[status-im.group-settings.styles.chat-name-edit :as st]
|
||||||
[syng-im.components.styles :refer [toolbar-background2
|
[status-im.components.styles :refer [toolbar-background2
|
||||||
text2-color]]))
|
text2-color]]))
|
||||||
|
|
||||||
(defn save-group-chat-name []
|
(defn save-group-chat-name []
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.group-settings.views.member
|
(ns status-im.group-settings.views.member
|
||||||
(:require [clojure.string :as s]
|
(:require [clojure.string :as s]
|
||||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
image
|
image
|
||||||
text
|
text
|
||||||
icon
|
icon
|
||||||
touchable-highlight]]
|
touchable-highlight]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.group-settings.styles.member :as st]))
|
[status-im.group-settings.styles.member :as st]))
|
||||||
|
|
||||||
(defn contact-photo [{:keys [photo-path]}]
|
(defn contact-photo [{:keys [photo-path]}]
|
||||||
[view st/contact-photo-container
|
[view st/contact-photo-container
|
|
@ -1,46 +1,46 @@
|
||||||
(ns syng-im.handlers
|
(ns status-im.handlers
|
||||||
(:require
|
(:require
|
||||||
[re-frame.core :refer [register-handler after dispatch debug enrich]]
|
[re-frame.core :refer [register-handler after dispatch debug enrich]]
|
||||||
[schema.core :as s :include-macros true]
|
[schema.core :as s :include-macros true]
|
||||||
[syng-im.persistence.realm :as r]
|
[status-im.persistence.realm :as r]
|
||||||
[syng-im.db :refer [app-db schema]]
|
[status-im.db :refer [app-db schema]]
|
||||||
[syng-im.persistence.simple-kv-store :as kv]
|
[status-im.persistence.simple-kv-store :as kv]
|
||||||
[syng-im.protocol.state.storage :as storage]
|
[status-im.protocol.state.storage :as storage]
|
||||||
[syng-im.db :as db :refer [app-db schema]]
|
[status-im.db :as db :refer [app-db schema]]
|
||||||
[syng-im.protocol.api :refer [init-protocol]]
|
[status-im.protocol.api :refer [init-protocol]]
|
||||||
[syng-im.protocol.protocol-handler :refer [make-handler]]
|
[status-im.protocol.protocol-handler :refer [make-handler]]
|
||||||
[syng-im.models.protocol :refer [update-identity
|
[status-im.models.protocol :refer [update-identity
|
||||||
set-initialized]]
|
set-initialized]]
|
||||||
[syng-im.models.contacts :as contacts]
|
[status-im.models.contacts :as contacts]
|
||||||
[syng-im.models.messages :refer [save-message
|
[status-im.models.messages :refer [save-message
|
||||||
update-message!
|
update-message!
|
||||||
clear-history]]
|
clear-history]]
|
||||||
[syng-im.models.commands :refer [set-commands]]
|
[status-im.models.commands :refer [set-commands]]
|
||||||
[syng-im.handlers.server :as server]
|
[status-im.handlers.server :as server]
|
||||||
[syng-im.chat.suggestions :refer [load-commands]]
|
[status-im.chat.suggestions :refer [load-commands]]
|
||||||
[syng-im.models.chats :refer [chat-exists?
|
[status-im.models.chats :refer [chat-exists?
|
||||||
create-chat
|
create-chat
|
||||||
chat-add-participants
|
chat-add-participants
|
||||||
chat-remove-participants
|
chat-remove-participants
|
||||||
set-chat-active
|
set-chat-active
|
||||||
re-join-group-chat
|
re-join-group-chat
|
||||||
chat-by-id2]]
|
chat-by-id2]]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[syng-im.protocol.api :as api]
|
[status-im.protocol.api :as api]
|
||||||
[syng-im.constants :refer [text-content-type
|
[status-im.constants :refer [text-content-type
|
||||||
content-type-command]]
|
content-type-command]]
|
||||||
[syng-im.navigation :refer [nav-push
|
[status-im.navigation :refer [nav-push
|
||||||
nav-replace
|
nav-replace
|
||||||
nav-pop]]
|
nav-pop]]
|
||||||
[syng-im.utils.crypt :refer [gen-random-bytes]]
|
[status-im.utils.crypt :refer [gen-random-bytes]]
|
||||||
[syng-im.utils.random :as random]
|
[status-im.utils.random :as random]
|
||||||
[syng-im.utils.handlers :as u]
|
[status-im.utils.handlers :as u]
|
||||||
syng-im.chat.handlers
|
status-im.chat.handlers
|
||||||
[syng-im.group-settings.handlers :refer [delete-chat]]
|
[status-im.group-settings.handlers :refer [delete-chat]]
|
||||||
syng-im.navigation.handlers
|
status-im.navigation.handlers
|
||||||
syng-im.discovery.handlers
|
status-im.discovery.handlers
|
||||||
syng-im.contacts.handlers
|
status-im.contacts.handlers
|
||||||
syng-im.new-group.handlers))
|
status-im.new-group.handlers))
|
||||||
|
|
||||||
;; -- Middleware ------------------------------------------------------------
|
;; -- Middleware ------------------------------------------------------------
|
||||||
;;
|
;;
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.handlers.content-suggestions
|
(ns status-im.handlers.content-suggestions
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[clojure.string :as s]))
|
[clojure.string :as s]))
|
||||||
|
|
||||||
(def suggestions
|
(def suggestions
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.handlers.server
|
(ns status-im.handlers.server
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.utils.utils :refer [log on-error http-post]]
|
[status-im.utils.utils :refer [log on-error http-post]]
|
||||||
[syng-im.utils.logging :as log]))
|
[status-im.utils.logging :as log]))
|
||||||
|
|
||||||
(defn sign-up
|
(defn sign-up
|
||||||
[db phone-number handler]
|
[db phone-number handler]
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.ios.core
|
(ns status-im.ios.core
|
||||||
(:require [reagent.core :as r :refer [atom]]
|
(:require [reagent.core :as r :refer [atom]]
|
||||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.handlers]
|
[status-im.handlers]
|
||||||
[syng-im.subs]))
|
[status-im.subs]))
|
||||||
|
|
||||||
(set! js/window.React (js/require "react-native"))
|
(set! js/window.React (js/require "react-native"))
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.models.chats
|
(ns status-im.models.chats
|
||||||
(:require [clojure.set :refer [difference]]
|
(:require [clojure.set :refer [difference]]
|
||||||
[re-frame.core :refer [dispatch]]
|
[re-frame.core :refer [dispatch]]
|
||||||
[syng-im.persistence.realm :as r]
|
[status-im.persistence.realm :as r]
|
||||||
[syng-im.utils.random :as random :refer [timestamp]]
|
[status-im.utils.random :as random :refer [timestamp]]
|
||||||
[clojure.string :refer [join blank?]]
|
[clojure.string :refer [join blank?]]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[syng-im.constants :refer [content-type-status]]
|
[status-im.constants :refer [content-type-status]]
|
||||||
[syng-im.models.messages :refer [save-message]]
|
[status-im.models.messages :refer [save-message]]
|
||||||
[syng-im.persistence.realm-queries :refer [include-query]]))
|
[status-im.persistence.realm-queries :refer [include-query]]))
|
||||||
|
|
||||||
(defn chat-name-from-contacts [identities]
|
(defn chat-name-from-contacts [identities]
|
||||||
(let [chat-name (->> identities
|
(let [chat-name (->> identities
|
|
@ -1,9 +1,9 @@
|
||||||
(ns syng-im.models.commands
|
(ns status-im.models.commands
|
||||||
(:require [clojure.string :refer [join split]]
|
(:require [clojure.string :refer [join split]]
|
||||||
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
||||||
[re-frame.core :refer [subscribe dispatch]]
|
[re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
[syng-im.components.styles :refer [color-blue color-dark-mint]]))
|
[status-im.components.styles :refer [color-blue color-dark-mint]]))
|
||||||
|
|
||||||
;; todo delete
|
;; todo delete
|
||||||
(def commands [{:command :money
|
(def commands [{:command :money
|
|
@ -1,6 +1,6 @@
|
||||||
(ns syng-im.models.contacts
|
(ns status-im.models.contacts
|
||||||
(:require [syng-im.persistence.realm :as r]
|
(:require [status-im.persistence.realm :as r]
|
||||||
[syng-im.persistence.realm-queries :refer [include-query
|
[status-im.persistence.realm-queries :refer [include-query
|
||||||
exclude-query]]))
|
exclude-query]]))
|
||||||
|
|
||||||
(defn get-contacts []
|
(defn get-contacts []
|
|
@ -1,13 +1,13 @@
|
||||||
(ns syng-im.models.messages
|
(ns status-im.models.messages
|
||||||
(:require [syng-im.persistence.realm :as r]
|
(:require [status-im.persistence.realm :as r]
|
||||||
[re-frame.core :refer [dispatch]]
|
[re-frame.core :refer [dispatch]]
|
||||||
[cljs.reader :refer [read-string]]
|
[cljs.reader :refer [read-string]]
|
||||||
[syng-im.utils.random :refer [timestamp]]
|
[status-im.utils.random :refer [timestamp]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
[syng-im.utils.logging :as log]
|
[status-im.utils.logging :as log]
|
||||||
[clojure.string :refer [join split]]
|
[clojure.string :refer [join split]]
|
||||||
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
||||||
[syng-im.constants :as c]))
|
[status-im.constants :as c]))
|
||||||
|
|
||||||
(defn- map-to-str
|
(defn- map-to-str
|
||||||
[m]
|
[m]
|
|
@ -1,12 +1,12 @@
|
||||||
(ns syng-im.models.protocol
|
(ns status-im.models.protocol
|
||||||
(:require [cljs.reader :refer [read-string]]
|
(:require [cljs.reader :refer [read-string]]
|
||||||
[syng-im.protocol.state.storage :as s]
|
[status-im.protocol.state.storage :as s]
|
||||||
[syng-im.utils.encryption :refer [password-encrypt
|
[status-im.utils.encryption :refer [password-encrypt
|
||||||
password-decrypt]]
|
password-decrypt]]
|
||||||
[syng-im.utils.types :refer [to-edn-string]]
|
[status-im.utils.types :refer [to-edn-string]]
|
||||||
[re-frame.db :refer [app-db]]
|
[re-frame.db :refer [app-db]]
|
||||||
[syng-im.db :as db]
|
[status-im.db :as db]
|
||||||
[syng-im.persistence.simple-kv-store :as kv]))
|
[status-im.persistence.simple-kv-store :as kv]))
|
||||||
|
|
||||||
(defn set-initialized [db initialized?]
|
(defn set-initialized [db initialized?]
|
||||||
(assoc-in db db/protocol-initialized-path initialized?))
|
(assoc-in db db/protocol-initialized-path initialized?))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.navigation)
|
(ns status-im.navigation)
|
||||||
|
|
||||||
(def ^{:dynamic true :private true} *nav-render*
|
(def ^{:dynamic true :private true} *nav-render*
|
||||||
"Flag to suppress navigator re-renders from outside om when pushing/popping."
|
"Flag to suppress navigator re-renders from outside om when pushing/popping."
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.navigation.handlers
|
(ns status-im.navigation.handlers
|
||||||
(:require [re-frame.core :refer [register-handler dispatch debug enrich
|
(:require [re-frame.core :refer [register-handler dispatch debug enrich
|
||||||
after]]))
|
after]]))
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
(ns syng-im.new-group.handlers
|
(ns status-im.new-group.handlers
|
||||||
(:require [syng-im.protocol.api :as api]
|
(:require [status-im.protocol.api :as api]
|
||||||
[re-frame.core :refer [register-handler after dispatch debug enrich]]
|
[re-frame.core :refer [register-handler after dispatch debug enrich]]
|
||||||
[syng-im.models.chats :as chats]
|
[status-im.models.chats :as chats]
|
||||||
[clojure.string :as s]))
|
[clojure.string :as s]))
|
||||||
|
|
||||||
(defn deselect-contact
|
(defn deselect-contact
|
|
@ -1,8 +1,8 @@
|
||||||
(ns syng-im.new-group.screen
|
(ns status-im.new-group.screen
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.components.react :refer [view
|
[status-im.components.react :refer [view
|
||||||
text-input
|
text-input
|
||||||
text
|
text
|
||||||
image
|
image
|
||||||
|
@ -10,11 +10,11 @@
|
||||||
touchable-highlight
|
touchable-highlight
|
||||||
list-view
|
list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.components.styles :refer [color-purple]]
|
[status-im.components.styles :refer [color-purple]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.new-group.views.contact :refer [new-group-contact]]
|
[status-im.new-group.views.contact :refer [new-group-contact]]
|
||||||
[syng-im.new-group.styles :as st]))
|
[status-im.new-group.styles :as st]))
|
||||||
|
|
||||||
|
|
||||||
(defview new-group-toolbar []
|
(defview new-group-toolbar []
|
|
@ -1,5 +1,5 @@
|
||||||
(ns syng-im.new-group.styles
|
(ns status-im.new-group.styles
|
||||||
(:require [syng-im.components.styles :refer [font
|
(:require [status-im.components.styles :refer [font
|
||||||
title-font
|
title-font
|
||||||
color-white
|
color-white
|
||||||
color-purple
|
color-purple
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.new-group.subs
|
(ns status-im.new-group.subs
|
||||||
(:require-macros [reagent.ratom :refer [reaction]])
|
(:require-macros [reagent.ratom :refer [reaction]])
|
||||||
(:require [re-frame.core :refer [register-sub]]))
|
(:require [re-frame.core :refer [register-sub]]))
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
(ns syng-im.new-group.views.contact
|
(ns status-im.new-group.views.contact
|
||||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
(:require-macros [status-im.utils.views :refer [defview]])
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view]]
|
[status-im.components.react :refer [view]]
|
||||||
[syng-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||||
[syng-im.components.item-checkbox :refer [item-checkbox]]
|
[status-im.components.item-checkbox :refer [item-checkbox]]
|
||||||
[syng-im.new-group.styles :as st]))
|
[status-im.new-group.styles :as st]))
|
||||||
|
|
||||||
(defn on-toggle [whisper-identity]
|
(defn on-toggle [whisper-identity]
|
||||||
(fn [checked?]
|
(fn [checked?]
|
|
@ -1,4 +1,4 @@
|
||||||
(ns syng-im.participants.styles)
|
(ns status-im.participants.styles)
|
||||||
|
|
||||||
(def participants-container
|
(def participants-container
|
||||||
{:flex 1
|
{:flex 1
|
|
@ -1,10 +1,10 @@
|
||||||
(ns syng-im.participants.views.contact
|
(ns status-im.participants.views.contact
|
||||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||||
[syng-im.components.react :refer [view]]
|
[status-im.components.react :refer [view]]
|
||||||
[syng-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||||
[syng-im.components.item-checkbox :refer [item-checkbox]]
|
[status-im.components.item-checkbox :refer [item-checkbox]]
|
||||||
[reagent.core :as r]
|
[reagent.core :as r]
|
||||||
[syng-im.participants.styles :as st]))
|
[status-im.participants.styles :as st]))
|
||||||
|
|
||||||
(defn participant-contact [{:keys [whisper-identity] :as contact}]
|
(defn participant-contact [{:keys [whisper-identity] :as contact}]
|
||||||
;; todo must be moved to handlers
|
;; todo must be moved to handlers
|
|
@ -1,12 +1,12 @@
|
||||||
(ns syng-im.participants.views.create
|
(ns status-im.participants.views.create
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.components.react :refer [view list-view list-item]]
|
[status-im.components.react :refer [view list-view list-item]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.participants.views.contact :refer [participant-contact]]
|
[status-im.participants.views.contact :refer [participant-contact]]
|
||||||
[reagent.core :as r]
|
[reagent.core :as r]
|
||||||
[syng-im.participants.styles :as st]))
|
[status-im.participants.styles :as st]))
|
||||||
|
|
||||||
(defn new-participants-toolbar []
|
(defn new-participants-toolbar []
|
||||||
[toolbar
|
[toolbar
|
|
@ -1,15 +1,15 @@
|
||||||
(ns syng-im.participants.views.remove
|
(ns status-im.participants.views.remove
|
||||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||||
[syng-im.resources :as res]
|
[status-im.resources :as res]
|
||||||
[syng-im.components.react :refer [view text-input text image
|
[status-im.components.react :refer [view text-input text image
|
||||||
touchable-highlight list-view
|
touchable-highlight list-view
|
||||||
list-item]]
|
list-item]]
|
||||||
[syng-im.components.toolbar :refer [toolbar]]
|
[status-im.components.toolbar :refer [toolbar]]
|
||||||
[syng-im.utils.listview :refer [to-datasource]]
|
[status-im.utils.listview :refer [to-datasource]]
|
||||||
[syng-im.participants.views.contact
|
[status-im.participants.views.contact
|
||||||
:refer [participant-contact]]
|
:refer [participant-contact]]
|
||||||
[reagent.core :as r]
|
[reagent.core :as r]
|
||||||
[syng-im.participants.styles :as st]))
|
[status-im.participants.styles :as st]))
|
||||||
|
|
||||||
(defn remove-participants-toolbar []
|
(defn remove-participants-toolbar []
|
||||||
[toolbar
|
[toolbar
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue