syng to status
This commit is contained in:
parent
416c9395c1
commit
6a5250247c
|
@ -27,7 +27,7 @@ project.xcworkspace
|
|||
.idea
|
||||
.gradle
|
||||
local.properties
|
||||
syng-im.iml
|
||||
status-im.iml
|
||||
|
||||
# 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.
|
||||
- Widget maker public API - `make-widget-sync`.
|
||||
|
||||
[unreleased]: https://github.com/your-name/syng-im/compare/0.1.1...HEAD
|
||||
[0.1.1]: https://github.com/your-name/syng-im/compare/0.1.0...0.1.1
|
||||
[unreleased]: https://github.com/your-name/status-im/compare/0.1.1...HEAD
|
||||
[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.
|
||||
|
||||
|
|
|
@ -46,13 +46,13 @@ android_library(
|
|||
|
||||
android_build_config(
|
||||
name = 'build_config',
|
||||
package = 'com.syngim',
|
||||
package = 'com.statusim',
|
||||
)
|
||||
|
||||
android_resource(
|
||||
name = 'res',
|
||||
res = 'src/main/res',
|
||||
package = 'com.syngim',
|
||||
package = 'com.statusim',
|
||||
)
|
||||
|
||||
android_binary(
|
||||
|
|
|
@ -81,7 +81,7 @@ android {
|
|||
buildToolsVersion "23.0.1"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.syngim"
|
||||
applicationId "com.statusim"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 22
|
||||
versionCode 1
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<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.READ_CONTACTS" />
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.syngim;
|
||||
package com.statusim;
|
||||
|
||||
import com.facebook.react.ReactActivity;
|
||||
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/)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(ns ^:figwheel-no-load env.android.main
|
||||
(:require [reagent.core :as r]
|
||||
[syng-im.android.core :as core]
|
||||
[status-im.android.core :as core]
|
||||
[figwheel.client :as figwheel :include-macros true]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(ns ^:figwheel-no-load env.ios.main
|
||||
(:require [reagent.core :as r]
|
||||
[syng-im.ios.core :as core]
|
||||
[status-im.ios.core :as core]
|
||||
[figwheel.client :as figwheel :include-macros true]))
|
||||
|
||||
(enable-console-print!)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(ns env.android.main
|
||||
(:require [syng-im.android.core :as core]))
|
||||
(:require [status-im.android.core :as core]))
|
||||
|
||||
(core/init)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
(ns env.ios.main
|
||||
(:require [syng-im.ios.core :as core]))
|
||||
(:require [status-im.ios.core :as core]))
|
||||
|
||||
(core/init)
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>ci.syng.im</id>
|
||||
<url>http://ci.syng.im:8081/artifactory/libs-release-local/</url>
|
||||
<id>ci.status.im</id>
|
||||
<url>http://ci.status.im:8081/artifactory/libs-release-local/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
|||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>syng-im</groupId>
|
||||
<groupId>status-im</groupId>
|
||||
<artifactId>ios-geth</artifactId>
|
||||
<version>1.4.0-201603151613-92d65cf</version>
|
||||
<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"
|
||||
:url "http://example.com/FIXME"
|
||||
:license {:name "Eclipse Public License"
|
||||
|
@ -10,7 +10,7 @@
|
|||
[prismatic/schema "1.0.4"]
|
||||
^{:voom {:repo "https://github.com/status-im/status-lib.git"
|
||||
: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"]]
|
||||
:plugins [[lein-cljsbuild "1.1.1"]
|
||||
[lein-figwheel "0.5.0-2"]]
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
(ns syng-im.android.core
|
||||
(ns status-im.android.core
|
||||
(:require-macros
|
||||
[natal-shell.back-android :refer [add-event-listener remove-event-listener]])
|
||||
(:require [reagent.core :as r :refer [atom]]
|
||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.handlers]
|
||||
[syng-im.subs]
|
||||
[syng-im.components.react :refer [navigator app-registry]]
|
||||
[syng-im.contacts.screen :refer [contact-list]]
|
||||
[syng-im.discovery.screen :refer [discovery]]
|
||||
[syng-im.discovery.tag :refer [discovery-tag]]
|
||||
[syng-im.chat.screen :refer [chat]]
|
||||
[syng-im.chats-list.screen :refer [chats-list]]
|
||||
[syng-im.new-group.screen :refer [new-group]]
|
||||
[syng-im.participants.views.create :refer [new-participants]]
|
||||
[syng-im.participants.views.remove :refer [remove-participants]]
|
||||
[syng-im.group-settings.screen :refer [group-settings]]
|
||||
[syng-im.group-settings.views.chat-name-edit :refer [chat-name-edit]]
|
||||
[syng-im.profile.screen :refer [profile my-profile]]
|
||||
[syng-im.utils.utils :refer [toast]]
|
||||
[syng-im.utils.encryption]))
|
||||
[status-im.handlers]
|
||||
[status-im.subs]
|
||||
[status-im.components.react :refer [navigator app-registry]]
|
||||
[status-im.contacts.screen :refer [contact-list]]
|
||||
[status-im.discovery.screen :refer [discovery]]
|
||||
[status-im.discovery.tag :refer [discovery-tag]]
|
||||
[status-im.chat.screen :refer [chat]]
|
||||
[status-im.chats-list.screen :refer [chats-list]]
|
||||
[status-im.new-group.screen :refer [new-group]]
|
||||
[status-im.participants.views.create :refer [new-participants]]
|
||||
[status-im.participants.views.remove :refer [remove-participants]]
|
||||
[status-im.group-settings.screen :refer [group-settings]]
|
||||
[status-im.group-settings.views.chat-name-edit :refer [chat-name-edit]]
|
||||
[status-im.profile.screen :refer [profile my-profile]]
|
||||
[status-im.utils.utils :refer [toast]]
|
||||
[status-im.utils.encryption]))
|
||||
|
||||
(defn init-back-button-handler! []
|
||||
(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]]
|
||||
[syng-im.models.commands :as commands]
|
||||
[status-im.models.commands :as commands]
|
||||
[clojure.string :as str]
|
||||
[syng-im.chat.suggestions :as suggestions]
|
||||
[syng-im.protocol.api :as api]
|
||||
[syng-im.models.messages :as messages]
|
||||
[syng-im.constants :refer [text-content-type
|
||||
[status-im.chat.suggestions :as suggestions]
|
||||
[status-im.protocol.api :as api]
|
||||
[status-im.models.messages :as messages]
|
||||
[status-im.constants :refer [text-content-type
|
||||
content-type-command]]
|
||||
[syng-im.utils.random :as random]
|
||||
[syng-im.chat.sign-up :as sign-up-service]
|
||||
[syng-im.models.chats :as chats]
|
||||
[syng-im.navigation.handlers :as nav]
|
||||
[syng-im.utils.handlers :as u]))
|
||||
[status-im.utils.random :as random]
|
||||
[status-im.chat.sign-up :as sign-up-service]
|
||||
[status-im.models.chats :as chats]
|
||||
[status-im.navigation.handlers :as nav]
|
||||
[status-im.utils.handlers :as u]))
|
||||
|
||||
(register-handler :set-show-actions
|
||||
(fn [db [_ show-actions]]
|
|
@ -1,21 +1,21 @@
|
|||
(ns syng-im.chat.screen
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.chat.screen
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [clojure.string :as s]
|
||||
[re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text
|
||||
image
|
||||
icon
|
||||
touchable-highlight
|
||||
list-view
|
||||
list-item]]
|
||||
[syng-im.chat.styles.screen :as st]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.chat.views.message :refer [chat-message]]
|
||||
[syng-im.chat.views.new-message :refer [chat-message-new]]))
|
||||
[status-im.chat.styles.screen :as st]
|
||||
[status-im.resources :as res]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.components.invertible-scroll-view :refer [invertible-scroll-view]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.chat.views.message :refer [chat-message]]
|
||||
[status-im.chat.views.new-message :refer [chat-message-new]]))
|
||||
|
||||
|
||||
(defn contacts-by-identity [contacts]
|
|
@ -1,13 +1,13 @@
|
|||
(ns syng-im.chat.sign-up
|
||||
;syng-im.handlers.sign-up
|
||||
(ns status-im.chat.sign-up
|
||||
;status-im.handlers.sign-up
|
||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.persistence.simple-kv-store :as kv]
|
||||
[syng-im.protocol.state.storage :as s]
|
||||
[syng-im.models.chats :as c]
|
||||
[syng-im.utils.utils :refer [log on-error http-post toast]]
|
||||
[syng-im.utils.random :as random]
|
||||
[syng-im.utils.phone-number :refer [format-phone-number]]
|
||||
[syng-im.constants :refer [text-content-type
|
||||
[status-im.persistence.simple-kv-store :as kv]
|
||||
[status-im.protocol.state.storage :as s]
|
||||
[status-im.models.chats :as c]
|
||||
[status-im.utils.utils :refer [log on-error http-post toast]]
|
||||
[status-im.utils.random :as random]
|
||||
[status-im.utils.phone-number :refer [format-phone-number]]
|
||||
[status-im.constants :refer [text-content-type
|
||||
content-type-command
|
||||
content-type-command-request
|
||||
content-type-status]]))
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.content-suggestions
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.content-suggestions
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-light-blue-transparent
|
||||
color-white
|
||||
color-black
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.input
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.input
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-white
|
||||
color-blue
|
||||
text1-color
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.message
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.message
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-light-blue-transparent
|
||||
color-white
|
||||
color-black
|
||||
|
@ -8,7 +8,7 @@
|
|||
online-color
|
||||
text1-color
|
||||
text2-color]]
|
||||
[syng-im.constants :refer [text-content-type
|
||||
[status-im.constants :refer [text-content-type
|
||||
content-type-command]]))
|
||||
|
||||
(def style-message-text
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.plain-input
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.plain-input
|
||||
(:require [status-im.components.styles :refer [font
|
||||
text2-color
|
||||
color-white
|
||||
color-blue]]))
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.screen
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.screen
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
chat-background
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chat.styles.suggestions
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chat.styles.suggestions
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-light-blue-transparent
|
||||
color-white
|
||||
color-black
|
|
@ -1,12 +1,12 @@
|
|||
(ns syng-im.chat.subs
|
||||
(ns status-im.chat.subs
|
||||
(:require-macros [reagent.ratom :refer [reaction]])
|
||||
(:require [re-frame.core :refer [register-sub]]
|
||||
[syng-im.db :as db]
|
||||
[status-im.db :as db]
|
||||
;todo handlers in subs?...
|
||||
[syng-im.chat.suggestions :refer
|
||||
[status-im.chat.suggestions :refer
|
||||
[get-suggestions typing-command? get-content-suggestions]]
|
||||
[syng-im.models.commands :as commands]
|
||||
[syng-im.handlers.content-suggestions :refer [get-content-suggestions]]))
|
||||
[status-im.models.commands :as commands]
|
||||
[status-im.handlers.content-suggestions :refer [get-content-suggestions]]))
|
||||
|
||||
(register-sub :chat-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]]
|
||||
[syng-im.db :as db]
|
||||
[syng-im.models.commands :refer [commands
|
||||
[status-im.db :as db]
|
||||
[status-im.models.commands :refer [commands
|
||||
suggestions
|
||||
get-commands
|
||||
get-chat-command-request
|
||||
get-chat-command-to-msg-id
|
||||
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]))
|
||||
|
||||
(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]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
icon
|
||||
text
|
||||
text-input
|
||||
touchable-highlight]]
|
||||
[syng-im.chat.views.content-suggestions :refer
|
||||
[status-im.chat.views.content-suggestions :refer
|
||||
[content-suggestions-view]]
|
||||
[syng-im.chat.styles.input :as st]))
|
||||
[status-im.chat.styles.input :as st]))
|
||||
|
||||
(defn cancel-command-input []
|
||||
(dispatch [:cancel-command]))
|
|
@ -1,6 +1,6 @@
|
|||
(ns syng-im.chat.views.confirmation-code
|
||||
(ns status-im.chat.views.confirmation-code
|
||||
(: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]
|
||||
[simple-command-input-view command {:keyboardType :numeric}])
|
|
@ -1,14 +1,14 @@
|
|||
(ns syng-im.chat.views.content-suggestions
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.chat.views.content-suggestions
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
icon
|
||||
text
|
||||
touchable-highlight
|
||||
list-view
|
||||
list-item]]
|
||||
[syng-im.chat.styles.content-suggestions :as st]
|
||||
[syng-im.utils.listview :refer [to-datasource]]))
|
||||
[status-im.chat.styles.content-suggestions :as st]
|
||||
[status-im.utils.listview :refer [to-datasource]]))
|
||||
|
||||
(defn set-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]
|
||||
[re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text
|
||||
image
|
||||
touchable-highlight]]
|
||||
[syng-im.chat.styles.message :as st]
|
||||
[syng-im.models.commands :refer [parse-command-msg-content
|
||||
[status-im.chat.styles.message :as st]
|
||||
[status-im.models.commands :refer [parse-command-msg-content
|
||||
parse-command-request]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.constants :refer [text-content-type
|
||||
[status-im.resources :as res]
|
||||
[status-im.constants :refer [text-content-type
|
||||
content-type-status
|
||||
content-type-command
|
||||
content-type-command-request]]))
|
|
@ -1,6 +1,6 @@
|
|||
(ns syng-im.chat.views.money
|
||||
(ns status-im.chat.views.money
|
||||
(: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]
|
||||
[simple-command-input-view command
|
|
@ -1,15 +1,15 @@
|
|||
(ns syng-im.chat.views.new-message
|
||||
(ns status-im.chat.views.new-message
|
||||
(:require
|
||||
[re-frame.core :refer [subscribe]]
|
||||
[syng-im.components.react :refer [view]]
|
||||
[syng-im.chat.views.plain-input :refer [plain-message-input-view]]
|
||||
[syng-im.chat.views.command :refer [simple-command-input-view]]
|
||||
[syng-im.chat.views.phone :refer [phone-input-view]]
|
||||
[syng-im.chat.views.password :refer [password-input-view]]
|
||||
[syng-im.chat.views.confirmation-code :refer [confirmation-code-input-view]]
|
||||
[syng-im.chat.views.money :refer [money-input-view]]
|
||||
[syng-im.chat.views.staged-command :refer [simple-command-staged-view]]
|
||||
[syng-im.chat.styles.message :as st]))
|
||||
[status-im.components.react :refer [view]]
|
||||
[status-im.chat.views.plain-input :refer [plain-message-input-view]]
|
||||
[status-im.chat.views.command :refer [simple-command-input-view]]
|
||||
[status-im.chat.views.phone :refer [phone-input-view]]
|
||||
[status-im.chat.views.password :refer [password-input-view]]
|
||||
[status-im.chat.views.confirmation-code :refer [confirmation-code-input-view]]
|
||||
[status-im.chat.views.money :refer [money-input-view]]
|
||||
[status-im.chat.views.staged-command :refer [simple-command-staged-view]]
|
||||
[status-im.chat.styles.message :as st]))
|
||||
|
||||
(defn staged-command-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
|
||||
[syng-im.chat.views.command
|
||||
[status-im.chat.views.command
|
||||
:refer [simple-command-input-view]]))
|
||||
|
||||
(defn password-input-view [command]
|
|
@ -1,8 +1,8 @@
|
|||
(ns syng-im.chat.views.phone
|
||||
(ns status-im.chat.views.phone
|
||||
(:require
|
||||
[syng-im.chat.views.command
|
||||
[status-im.chat.views.command
|
||||
: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]
|
||||
[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]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
icon
|
||||
touchable-highlight
|
||||
text-input]]
|
||||
[syng-im.chat.views.suggestions :refer [suggestions-view]]
|
||||
[syng-im.chat.styles.plain-input :as st]))
|
||||
[status-im.chat.views.suggestions :refer [suggestions-view]]
|
||||
[status-im.chat.styles.plain-input :as st]))
|
||||
|
||||
(defn set-input-message [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]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
image
|
||||
text
|
||||
touchable-highlight]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.chat.styles.input :as st]))
|
||||
[status-im.resources :as res]
|
||||
[status-im.chat.styles.input :as st]))
|
||||
|
||||
(defn cancel-command-input [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]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text
|
||||
icon
|
||||
touchable-highlight
|
||||
list-view
|
||||
list-item]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.chat.styles.suggestions :as st]))
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.chat.styles.suggestions :as st]))
|
||||
|
||||
(defn set-command-input [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]]
|
||||
[syng-im.components.react :refer [list-view
|
||||
[status-im.components.react :refer [list-view
|
||||
list-item
|
||||
view
|
||||
text
|
||||
image
|
||||
touchable-highlight]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[reagent.core :as r]
|
||||
[syng-im.chats-list.views.chat-list-item :refer [chat-list-item]]
|
||||
[syng-im.components.action-button :refer [action-button
|
||||
[status-im.chats-list.views.chat-list-item :refer [chat-list-item]]
|
||||
[status-im.components.action-button :refer [action-button
|
||||
action-button-item]]
|
||||
[syng-im.components.drawer.view :refer [drawer-view open-drawer]]
|
||||
[syng-im.components.styles :refer [color-blue]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.components.icons.ionicons :refer [icon]]
|
||||
[syng-im.chats-list.styles :as st]))
|
||||
[status-im.components.drawer.view :refer [drawer-view open-drawer]]
|
||||
[status-im.components.styles :refer [color-blue]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.components.icons.ionicons :refer [icon]]
|
||||
[status-im.chats-list.styles :as st]))
|
||||
|
||||
|
||||
(defn chats-list-toolbar []
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.chats-list.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.chats-list.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
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]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text
|
||||
image
|
||||
touchable-highlight]]
|
||||
[syng-im.components.styles :refer [font]]
|
||||
[syng-im.chats-list.views.inner-item :refer
|
||||
[status-im.components.styles :refer [font]]
|
||||
[status-im.chats-list.views.inner-item :refer
|
||||
[chat-list-item-inner-view]]))
|
||||
|
||||
(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]
|
||||
[syng-im.components.react :refer [view image icon text]]
|
||||
[syng-im.chats-list.styles :as st]
|
||||
[syng-im.resources :as res]))
|
||||
[status-im.components.react :refer [view image icon text]]
|
||||
[status-im.chats-list.styles :as st]
|
||||
[status-im.resources :as res]))
|
||||
|
||||
|
||||
(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]))
|
||||
|
||||
(set! js/window.ActionButton (js/require "react-native-action-button"))
|
|
@ -1,11 +1,11 @@
|
|||
(ns syng-im.components.carousel.carousel
|
||||
(:require [syng-im.components.react :refer [android?
|
||||
(ns status-im.components.carousel.carousel
|
||||
(:require [status-im.components.react :refer [android?
|
||||
view
|
||||
scroll-view
|
||||
touchable-without-feedback
|
||||
text]]
|
||||
[syng-im.components.carousel.styles :as st]
|
||||
[syng-im.utils.logging :as log]))
|
||||
[status-im.components.carousel.styles :as st]
|
||||
[status-im.utils.logging :as log]))
|
||||
|
||||
|
||||
(defn window-page-width []
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.components.carousel.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.components.carousel.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
chat-background
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.components.drawer.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.components.drawer.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-light-blue-transparent
|
||||
color-white
|
||||
color-black
|
|
@ -1,8 +1,8 @@
|
|||
(ns syng-im.components.drawer.view
|
||||
(ns status-im.components.drawer.view
|
||||
(:require [clojure.string :as s]
|
||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[reagent.core :as r]
|
||||
[syng-im.components.react :refer [android?
|
||||
[status-im.components.react :refer [android?
|
||||
view
|
||||
text
|
||||
image
|
||||
|
@ -10,8 +10,8 @@
|
|||
toolbar-android
|
||||
drawer-layout-android
|
||||
touchable-opacity]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.components.drawer.styles :as st]))
|
||||
[status-im.resources :as res]
|
||||
[status-im.components.drawer.styles :as st]))
|
||||
|
||||
(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]))
|
||||
|
||||
(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"))
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
(ns syng-im.components.item-checkbox
|
||||
(ns status-im.components.item-checkbox
|
||||
(:require [reagent.core :as r]))
|
||||
|
||||
(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]
|
||||
[syng-im.components.styles :as st]))
|
||||
[status-im.components.styles :as st]))
|
||||
|
||||
(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]))
|
||||
|
||||
(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]))
|
||||
|
||||
(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 "Avenir-Roman")
|
|
@ -1,19 +1,19 @@
|
|||
(ns syng-im.components.toolbar
|
||||
(ns status-im.components.toolbar
|
||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text-input
|
||||
icon
|
||||
text
|
||||
image
|
||||
touchable-highlight]]
|
||||
[syng-im.components.styles :refer [font
|
||||
[status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
color-purple
|
||||
text1-color
|
||||
text2-color
|
||||
toolbar-background1]]
|
||||
[syng-im.components.realm :refer [list-view]]
|
||||
[status-im.components.realm :refer [list-view]]
|
||||
[reagent.core :as r]))
|
||||
|
||||
(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 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 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]]
|
||||
[syng-im.models.contacts :as contacts]
|
||||
[syng-im.utils.crypt :refer [encrypt]]
|
||||
[status-im.models.contacts :as contacts]
|
||||
[status-im.utils.crypt :refer [encrypt]]
|
||||
[clojure.string :as s]
|
||||
[syng-im.utils.utils :refer [http-post]]
|
||||
[syng-im.utils.phone-number :refer [format-phone-number]]
|
||||
[syng-im.utils.handlers :as u]))
|
||||
[status-im.utils.utils :refer [http-post]]
|
||||
[status-im.utils.phone-number :refer [format-phone-number]]
|
||||
[status-im.utils.handlers :as u]))
|
||||
|
||||
(defn save-contact
|
||||
[_ [_ contact]]
|
|
@ -1,16 +1,16 @@
|
|||
(ns syng-im.contacts.screen
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.contacts.screen
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.components.react :refer [view text
|
||||
[status-im.components.react :refer [view text
|
||||
image
|
||||
touchable-highlight
|
||||
list-view
|
||||
list-item]]
|
||||
[syng-im.contacts.views.contact :refer [contact-view]]
|
||||
[syng-im.components.styles :refer [toolbar-background2]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.contacts.styles :as st]
|
||||
[syng-im.utils.listview :as lw]))
|
||||
[status-im.contacts.views.contact :refer [contact-view]]
|
||||
[status-im.components.styles :refer [toolbar-background2]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.contacts.styles :as st]
|
||||
[status-im.utils.listview :as lw]))
|
||||
|
||||
(defn render-row [row _ _]
|
||||
(list-item [contact-view row]))
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.contacts.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.contacts.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
text1-color
|
||||
color-white
|
|
@ -1,4 +1,4 @@
|
|||
(ns syng-im.contacts.subs
|
||||
(ns status-im.contacts.subs
|
||||
(:require-macros [reagent.ratom :refer [reaction]])
|
||||
(:require [re-frame.core :refer [register-sub]]))
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
(ns syng-im.contacts.views.contact
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(:require [syng-im.components.react :refer [view touchable-highlight]]
|
||||
(ns status-im.contacts.views.contact
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [status-im.components.react :refer [view touchable-highlight]]
|
||||
[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]
|
||||
(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]
|
||||
[syng-im.components.react :refer [view image text]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.contacts.styles :as st]))
|
||||
[status-im.components.react :refer [view image text]]
|
||||
[status-im.resources :as res]
|
||||
[status-im.contacts.styles :as st]))
|
||||
|
||||
(defn contact-photo [{:keys [photo-path]}]
|
||||
[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]))
|
||||
|
||||
;; 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]]
|
||||
[syng-im.protocol.api :as api]
|
||||
[syng-im.navigation.handlers :as nav]
|
||||
[syng-im.discovery.model :as discoveries]
|
||||
[syng-im.utils.handlers :as u]))
|
||||
[status-im.protocol.api :as api]
|
||||
[status-im.navigation.handlers :as nav]
|
||||
[status-im.discovery.model :as discoveries]
|
||||
[status-im.utils.handlers :as u]))
|
||||
|
||||
(defmethod nav/preload-data! :discovery
|
||||
[{:keys [discoveries] :as db} _]
|
|
@ -1,8 +1,8 @@
|
|||
(ns syng-im.discovery.model
|
||||
;syng-im.models.discoveries
|
||||
(:require [syng-im.utils.logging :as log]
|
||||
[syng-im.persistence.realm :as realm]
|
||||
[syng-im.persistence.realm :as r]))
|
||||
(ns status-im.discovery.model
|
||||
;status-im.models.discoveries
|
||||
(:require [status-im.utils.logging :as log]
|
||||
[status-im.persistence.realm :as realm]
|
||||
[status-im.persistence.realm :as r]))
|
||||
|
||||
(defn get-tag [tag]
|
||||
(log/debug "Getting tag: " tag)
|
|
@ -1,15 +1,15 @@
|
|||
(ns syng-im.discovery.screen
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.discovery.screen
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require
|
||||
[re-frame.core :refer [dispatch subscribe]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
scroll-view
|
||||
text
|
||||
text-input]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.discovery.views.popular :refer [popular]]
|
||||
[syng-im.discovery.views.recent :refer [discovery-recent]]
|
||||
[syng-im.discovery.styles :as st]))
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.discovery.views.popular :refer [popular]]
|
||||
[status-im.discovery.views.recent :refer [discovery-recent]]
|
||||
[status-im.discovery.styles :as st]))
|
||||
|
||||
(defn get-hashtags [status]
|
||||
(let [hashtags (map #(subs % 1) (re-seq #"#[^ !?,;:.]+" status))]
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.discovery.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.discovery.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
chat-background
|
|
@ -1,4 +1,4 @@
|
|||
(ns syng-im.discovery.subs
|
||||
(ns status-im.discovery.subs
|
||||
(:require-macros [reagent.ratom :refer [reaction]])
|
||||
(:require [re-frame.core :refer [register-sub]]))
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
(ns syng-im.discovery.tag
|
||||
(ns status-im.discovery.tag
|
||||
(:require
|
||||
[re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.utils.logging :as log]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.components.react :refer [view text list-view list-item]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.discovery.views.popular-list-item :refer [popular-list-item]]
|
||||
[syng-im.discovery.styles :as st]))
|
||||
[status-im.utils.logging :as log]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.components.react :refer [view text list-view list-item]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.discovery.views.popular-list-item :refer [popular-list-item]]
|
||||
[status-im.discovery.styles :as st]))
|
||||
|
||||
(defn render-row [row _ _]
|
||||
(list-item [popular-list-item row]))
|
|
@ -1,13 +1,13 @@
|
|||
(ns syng-im.discovery.views.popular
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.discovery.views.popular
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require
|
||||
[re-frame.core :refer [subscribe]]
|
||||
[syng-im.utils.logging :as log]
|
||||
[syng-im.components.react :refer [android?
|
||||
[status-im.utils.logging :as log]
|
||||
[status-im.components.react :refer [android?
|
||||
text]]
|
||||
[syng-im.components.carousel.carousel :refer [carousel]]
|
||||
[syng-im.discovery.styles :as st]
|
||||
[syng-im.discovery.views.popular-list :refer [discovery-popular-list]]))
|
||||
[status-im.components.carousel.carousel :refer [carousel]]
|
||||
[status-im.discovery.styles :as st]
|
||||
[status-im.discovery.views.popular-list :refer [discovery-popular-list]]))
|
||||
|
||||
(defn page-width []
|
||||
(.-width (.get (.. js/React -Dimensions) "window")))
|
|
@ -1,15 +1,15 @@
|
|||
(ns syng-im.discovery.views.popular-list
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.discovery.views.popular-list
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require
|
||||
[re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
list-view
|
||||
list-item
|
||||
touchable-highlight
|
||||
text]]
|
||||
[syng-im.discovery.styles :as st]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.discovery.views.popular-list-item :refer [popular-list-item]]))
|
||||
[status-im.discovery.styles :as st]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.discovery.views.popular-list-item :refer [popular-list-item]]))
|
||||
|
||||
(defn render-row [row _ _]
|
||||
(list-item [popular-list-item row]))
|
|
@ -1,6 +1,6 @@
|
|||
(ns syng-im.discovery.views.popular-list-item
|
||||
(:require [syng-im.components.react :refer [view text image]]
|
||||
[syng-im.discovery.styles :as st]
|
||||
(ns status-im.discovery.views.popular-list-item
|
||||
(:require [status-im.components.react :refer [view text image]]
|
||||
[status-im.discovery.styles :as st]
|
||||
[reagent.core :as r]))
|
||||
|
||||
(defn popular-list-item
|
|
@ -1,11 +1,11 @@
|
|||
(ns syng-im.discovery.views.recent
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.discovery.views.recent
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require
|
||||
[re-frame.core :refer [subscribe]]
|
||||
[syng-im.components.react :refer [view list-view list-item]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.discovery.styles :as st]
|
||||
[syng-im.discovery.views.popular-list-item
|
||||
[status-im.components.react :refer [view list-view list-item]]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.discovery.styles :as st]
|
||||
[status-im.discovery.views.popular-list-item
|
||||
:refer [popular-list-item]]))
|
||||
|
||||
(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]]
|
||||
[syng-im.persistence.realm :as r]
|
||||
[syng-im.models.messages :refer [clear-history]]))
|
||||
[status-im.persistence.realm :as r]
|
||||
[status-im.models.messages :refer [clear-history]]))
|
||||
|
||||
(defn set-chat-name [db]
|
||||
(let [chat-id (:current-chat-id db)
|
|
@ -1,7 +1,7 @@
|
|||
(ns syng-im.group-settings.screen
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.group-settings.screen
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
text-input
|
||||
text
|
||||
image
|
||||
|
@ -11,9 +11,9 @@
|
|||
picker-item
|
||||
scroll-view
|
||||
touchable-highlight]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.group-settings.styles.group-settings :as st]
|
||||
[syng-im.group-settings.views.member :refer [member-view]]))
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.group-settings.styles.group-settings :as st]
|
||||
[status-im.group-settings.views.member :refer [member-view]]))
|
||||
|
||||
(defn remove-member [{:keys [whisper-identity]}]
|
||||
(dispatch [:chat-remove-member whisper-identity]))
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.group-settings.styles.chat-name-edit
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.group-settings.styles.chat-name-edit
|
||||
(:require [status-im.components.styles :refer [font
|
||||
color-white
|
||||
text1-color]]))
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.group-settings.styles.group-settings
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.group-settings.styles.group-settings
|
||||
(:require [status-im.components.styles :refer [font
|
||||
font-medium
|
||||
title-font
|
||||
color-white
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.group-settings.styles.member
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.group-settings.styles.member
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
text1-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 [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
|
||||
(fn [db [_]]
|
|
@ -1,11 +1,11 @@
|
|||
(ns syng-im.group-settings.views.chat-name-edit
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.group-settings.views.chat-name-edit
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [reagent.core :as r]
|
||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.components.react :refer [view text-input]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.group-settings.styles.chat-name-edit :as st]
|
||||
[syng-im.components.styles :refer [toolbar-background2
|
||||
[status-im.components.react :refer [view text-input]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.group-settings.styles.chat-name-edit :as st]
|
||||
[status-im.components.styles :refer [toolbar-background2
|
||||
text2-color]]))
|
||||
|
||||
(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]
|
||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.components.react :refer [view
|
||||
image
|
||||
text
|
||||
icon
|
||||
touchable-highlight]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.group-settings.styles.member :as st]))
|
||||
[status-im.resources :as res]
|
||||
[status-im.group-settings.styles.member :as st]))
|
||||
|
||||
(defn contact-photo [{:keys [photo-path]}]
|
||||
[view st/contact-photo-container
|
|
@ -1,46 +1,46 @@
|
|||
(ns syng-im.handlers
|
||||
(ns status-im.handlers
|
||||
(:require
|
||||
[re-frame.core :refer [register-handler after dispatch debug enrich]]
|
||||
[schema.core :as s :include-macros true]
|
||||
[syng-im.persistence.realm :as r]
|
||||
[syng-im.db :refer [app-db schema]]
|
||||
[syng-im.persistence.simple-kv-store :as kv]
|
||||
[syng-im.protocol.state.storage :as storage]
|
||||
[syng-im.db :as db :refer [app-db schema]]
|
||||
[syng-im.protocol.api :refer [init-protocol]]
|
||||
[syng-im.protocol.protocol-handler :refer [make-handler]]
|
||||
[syng-im.models.protocol :refer [update-identity
|
||||
[status-im.persistence.realm :as r]
|
||||
[status-im.db :refer [app-db schema]]
|
||||
[status-im.persistence.simple-kv-store :as kv]
|
||||
[status-im.protocol.state.storage :as storage]
|
||||
[status-im.db :as db :refer [app-db schema]]
|
||||
[status-im.protocol.api :refer [init-protocol]]
|
||||
[status-im.protocol.protocol-handler :refer [make-handler]]
|
||||
[status-im.models.protocol :refer [update-identity
|
||||
set-initialized]]
|
||||
[syng-im.models.contacts :as contacts]
|
||||
[syng-im.models.messages :refer [save-message
|
||||
[status-im.models.contacts :as contacts]
|
||||
[status-im.models.messages :refer [save-message
|
||||
update-message!
|
||||
clear-history]]
|
||||
[syng-im.models.commands :refer [set-commands]]
|
||||
[syng-im.handlers.server :as server]
|
||||
[syng-im.chat.suggestions :refer [load-commands]]
|
||||
[syng-im.models.chats :refer [chat-exists?
|
||||
[status-im.models.commands :refer [set-commands]]
|
||||
[status-im.handlers.server :as server]
|
||||
[status-im.chat.suggestions :refer [load-commands]]
|
||||
[status-im.models.chats :refer [chat-exists?
|
||||
create-chat
|
||||
chat-add-participants
|
||||
chat-remove-participants
|
||||
set-chat-active
|
||||
re-join-group-chat
|
||||
chat-by-id2]]
|
||||
[syng-im.utils.logging :as log]
|
||||
[syng-im.protocol.api :as api]
|
||||
[syng-im.constants :refer [text-content-type
|
||||
[status-im.utils.logging :as log]
|
||||
[status-im.protocol.api :as api]
|
||||
[status-im.constants :refer [text-content-type
|
||||
content-type-command]]
|
||||
[syng-im.navigation :refer [nav-push
|
||||
[status-im.navigation :refer [nav-push
|
||||
nav-replace
|
||||
nav-pop]]
|
||||
[syng-im.utils.crypt :refer [gen-random-bytes]]
|
||||
[syng-im.utils.random :as random]
|
||||
[syng-im.utils.handlers :as u]
|
||||
syng-im.chat.handlers
|
||||
[syng-im.group-settings.handlers :refer [delete-chat]]
|
||||
syng-im.navigation.handlers
|
||||
syng-im.discovery.handlers
|
||||
syng-im.contacts.handlers
|
||||
syng-im.new-group.handlers))
|
||||
[status-im.utils.crypt :refer [gen-random-bytes]]
|
||||
[status-im.utils.random :as random]
|
||||
[status-im.utils.handlers :as u]
|
||||
status-im.chat.handlers
|
||||
[status-im.group-settings.handlers :refer [delete-chat]]
|
||||
status-im.navigation.handlers
|
||||
status-im.discovery.handlers
|
||||
status-im.contacts.handlers
|
||||
status-im.new-group.handlers))
|
||||
|
||||
;; -- 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]]
|
||||
[syng-im.db :as db]
|
||||
[syng-im.utils.logging :as log]
|
||||
[status-im.db :as db]
|
||||
[status-im.utils.logging :as log]
|
||||
[clojure.string :as s]))
|
||||
|
||||
(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]]
|
||||
[syng-im.utils.utils :refer [log on-error http-post]]
|
||||
[syng-im.utils.logging :as log]))
|
||||
[status-im.utils.utils :refer [log on-error http-post]]
|
||||
[status-im.utils.logging :as log]))
|
||||
|
||||
(defn sign-up
|
||||
[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]]
|
||||
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.handlers]
|
||||
[syng-im.subs]))
|
||||
[status-im.handlers]
|
||||
[status-im.subs]))
|
||||
|
||||
(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]]
|
||||
[re-frame.core :refer [dispatch]]
|
||||
[syng-im.persistence.realm :as r]
|
||||
[syng-im.utils.random :as random :refer [timestamp]]
|
||||
[status-im.persistence.realm :as r]
|
||||
[status-im.utils.random :as random :refer [timestamp]]
|
||||
[clojure.string :refer [join blank?]]
|
||||
[syng-im.utils.logging :as log]
|
||||
[syng-im.constants :refer [content-type-status]]
|
||||
[syng-im.models.messages :refer [save-message]]
|
||||
[syng-im.persistence.realm-queries :refer [include-query]]))
|
||||
[status-im.utils.logging :as log]
|
||||
[status-im.constants :refer [content-type-status]]
|
||||
[status-im.models.messages :refer [save-message]]
|
||||
[status-im.persistence.realm-queries :refer [include-query]]))
|
||||
|
||||
(defn chat-name-from-contacts [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]]
|
||||
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
||||
[re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.db :as db]
|
||||
[syng-im.components.styles :refer [color-blue color-dark-mint]]))
|
||||
[status-im.db :as db]
|
||||
[status-im.components.styles :refer [color-blue color-dark-mint]]))
|
||||
|
||||
;; todo delete
|
||||
(def commands [{:command :money
|
|
@ -1,6 +1,6 @@
|
|||
(ns syng-im.models.contacts
|
||||
(:require [syng-im.persistence.realm :as r]
|
||||
[syng-im.persistence.realm-queries :refer [include-query
|
||||
(ns status-im.models.contacts
|
||||
(:require [status-im.persistence.realm :as r]
|
||||
[status-im.persistence.realm-queries :refer [include-query
|
||||
exclude-query]]))
|
||||
|
||||
(defn get-contacts []
|
|
@ -1,13 +1,13 @@
|
|||
(ns syng-im.models.messages
|
||||
(:require [syng-im.persistence.realm :as r]
|
||||
(ns status-im.models.messages
|
||||
(:require [status-im.persistence.realm :as r]
|
||||
[re-frame.core :refer [dispatch]]
|
||||
[cljs.reader :refer [read-string]]
|
||||
[syng-im.utils.random :refer [timestamp]]
|
||||
[syng-im.db :as db]
|
||||
[syng-im.utils.logging :as log]
|
||||
[status-im.utils.random :refer [timestamp]]
|
||||
[status-im.db :as db]
|
||||
[status-im.utils.logging :as log]
|
||||
[clojure.string :refer [join split]]
|
||||
[clojure.walk :refer [stringify-keys keywordize-keys]]
|
||||
[syng-im.constants :as c]))
|
||||
[status-im.constants :as c]))
|
||||
|
||||
(defn- map-to-str
|
||||
[m]
|
|
@ -1,12 +1,12 @@
|
|||
(ns syng-im.models.protocol
|
||||
(ns status-im.models.protocol
|
||||
(:require [cljs.reader :refer [read-string]]
|
||||
[syng-im.protocol.state.storage :as s]
|
||||
[syng-im.utils.encryption :refer [password-encrypt
|
||||
[status-im.protocol.state.storage :as s]
|
||||
[status-im.utils.encryption :refer [password-encrypt
|
||||
password-decrypt]]
|
||||
[syng-im.utils.types :refer [to-edn-string]]
|
||||
[status-im.utils.types :refer [to-edn-string]]
|
||||
[re-frame.db :refer [app-db]]
|
||||
[syng-im.db :as db]
|
||||
[syng-im.persistence.simple-kv-store :as kv]))
|
||||
[status-im.db :as db]
|
||||
[status-im.persistence.simple-kv-store :as kv]))
|
||||
|
||||
(defn set-initialized [db 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*
|
||||
"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
|
||||
after]]))
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
(ns syng-im.new-group.handlers
|
||||
(:require [syng-im.protocol.api :as api]
|
||||
(ns status-im.new-group.handlers
|
||||
(:require [status-im.protocol.api :as api]
|
||||
[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]))
|
||||
|
||||
(defn deselect-contact
|
|
@ -1,8 +1,8 @@
|
|||
(ns syng-im.new-group.screen
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.new-group.screen
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.components.react :refer [view
|
||||
[status-im.resources :as res]
|
||||
[status-im.components.react :refer [view
|
||||
text-input
|
||||
text
|
||||
image
|
||||
|
@ -10,11 +10,11 @@
|
|||
touchable-highlight
|
||||
list-view
|
||||
list-item]]
|
||||
[syng-im.components.styles :refer [color-purple]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.new-group.views.contact :refer [new-group-contact]]
|
||||
[syng-im.new-group.styles :as st]))
|
||||
[status-im.components.styles :refer [color-purple]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.new-group.views.contact :refer [new-group-contact]]
|
||||
[status-im.new-group.styles :as st]))
|
||||
|
||||
|
||||
(defview new-group-toolbar []
|
|
@ -1,5 +1,5 @@
|
|||
(ns syng-im.new-group.styles
|
||||
(:require [syng-im.components.styles :refer [font
|
||||
(ns status-im.new-group.styles
|
||||
(:require [status-im.components.styles :refer [font
|
||||
title-font
|
||||
color-white
|
||||
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 [re-frame.core :refer [register-sub]]))
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
(ns syng-im.new-group.views.contact
|
||||
(:require-macros [syng-im.utils.views :refer [defview]])
|
||||
(ns status-im.new-group.views.contact
|
||||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
|
||||
[syng-im.components.react :refer [view]]
|
||||
[syng-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||
[syng-im.components.item-checkbox :refer [item-checkbox]]
|
||||
[syng-im.new-group.styles :as st]))
|
||||
[status-im.components.react :refer [view]]
|
||||
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||
[status-im.components.item-checkbox :refer [item-checkbox]]
|
||||
[status-im.new-group.styles :as st]))
|
||||
|
||||
(defn on-toggle [whisper-identity]
|
||||
(fn [checked?]
|
|
@ -1,4 +1,4 @@
|
|||
(ns syng-im.participants.styles)
|
||||
(ns status-im.participants.styles)
|
||||
|
||||
(def participants-container
|
||||
{: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]]
|
||||
[syng-im.components.react :refer [view]]
|
||||
[syng-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||
[syng-im.components.item-checkbox :refer [item-checkbox]]
|
||||
[status-im.components.react :refer [view]]
|
||||
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
|
||||
[status-im.components.item-checkbox :refer [item-checkbox]]
|
||||
[reagent.core :as r]
|
||||
[syng-im.participants.styles :as st]))
|
||||
[status-im.participants.styles :as st]))
|
||||
|
||||
(defn participant-contact [{:keys [whisper-identity] :as contact}]
|
||||
;; 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]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.components.react :refer [view list-view list-item]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.participants.views.contact :refer [participant-contact]]
|
||||
[status-im.resources :as res]
|
||||
[status-im.components.react :refer [view list-view list-item]]
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.participants.views.contact :refer [participant-contact]]
|
||||
[reagent.core :as r]
|
||||
[syng-im.participants.styles :as st]))
|
||||
[status-im.participants.styles :as st]))
|
||||
|
||||
(defn new-participants-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]]
|
||||
[syng-im.resources :as res]
|
||||
[syng-im.components.react :refer [view text-input text image
|
||||
[status-im.resources :as res]
|
||||
[status-im.components.react :refer [view text-input text image
|
||||
touchable-highlight list-view
|
||||
list-item]]
|
||||
[syng-im.components.toolbar :refer [toolbar]]
|
||||
[syng-im.utils.listview :refer [to-datasource]]
|
||||
[syng-im.participants.views.contact
|
||||
[status-im.components.toolbar :refer [toolbar]]
|
||||
[status-im.utils.listview :refer [to-datasource]]
|
||||
[status-im.participants.views.contact
|
||||
:refer [participant-contact]]
|
||||
[reagent.core :as r]
|
||||
[syng-im.participants.styles :as st]))
|
||||
[status-im.participants.styles :as st]))
|
||||
|
||||
(defn remove-participants-toolbar []
|
||||
[toolbar
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue