Skip to content

Commit b06af86

Browse files
committed
Remove mobile web code (bitrot)
1 parent bba8cbd commit b06af86

File tree

29 files changed

+11
-1073
lines changed

29 files changed

+11
-1073
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ If you just want to use Braid, but not set it up yourself, you can get a hosted
6868

6969
https://github.com/braidchat/braid
7070

71-
API server, desktop web client, mobile web client, docs
71+
API server, desktop web client, docs
7272

7373

7474
- **[Native Desktop Client](https://github.com/braidchat/electron)**

cljs.release.edn

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@
1111
:entries #{braid.core.client.desktop.core}}
1212
:gateway
1313
{:output-to "resources/public/js/prod/gateway.js"
14-
:entries #{braid.core.client.gateway.core}}
15-
:mobile
16-
{:output-to "resources/public/js/prod/mobile.js"
17-
:entries #{braid.core.client.mobile.core}}}
14+
:entries #{braid.core.client.gateway.core}}}
1815
:verbose true}

docs/dev/getting-up-and-running-in-development.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ This will start all the various Braid components, including 3 web servers:
5252
| Server | Port | Description |
5353
| ------------------ | ---- | --------------------------------------------------------------- |
5454
| desktop web client | 5555 | HTML, JS, CSS assets for desktop web client |
55-
| mobile web client | 5556 | HTML, JS, CSS assets for mobile web client |
56-
| api | 5557 | HTTP and Websocket API, communicates w/ db, etc. |
55+
| api | 5556 | HTTP and Websocket API, communicates w/ db, etc. |
5756
| figwheel | 3559 | cljs->js compiler and live-code reloader, do not visit directly |
5857

5958

@@ -128,21 +127,6 @@ In production, we recommend "Datomic Starter" instead (instructions [here](../dr
128127
## Extras
129128

130129

131-
### Mobile Client
132-
133-
To work on the mobile client:
134-
135-
1. Run `figwheel` with the `mobile-dev` build:
136-
137-
```bash
138-
lein figwheel mobile-dev
139-
```
140-
141-
2. Open `http://localhost:5556/` in your browser:
142-
143-
```bash
144-
open http://localhost:5556/
145-
```
146130

147131
### Using Emacs + CIDER instead of terminals
148132

docs/on-prem/installing-on-prem.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ java -server -Xmx1228m -Dfile.encoding=UTF8 \
7575

7676
The above will start three servers:
7777
1. a desktop client server (port 5000)
78-
2. a mobile client server (port 5001) (currently very WIP)
79-
3. an api server (port 5002)
78+
3. an api server (port 5001)
8079

8180
You should be able to visit `http://localhost:5000` (or `http://your-server-ip:5000`) and see the Braid desktop client.
8281

project.clj

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
:builds
2323
[{:id "desktop-dev"
2424
:figwheel {:on-jsload "braid.core.client.desktop.core/reload"}
25-
:source-paths ["src/braid"
26-
"src/retouch"]
25+
:source-paths ["src/braid"]
2726
:compiler {:main braid.core.client.desktop.core
2827
;; uncomment to enable re-frame-10x (event debugger)
2928
;; will also need to uncomment below, under dev dependencies
@@ -43,16 +42,6 @@
4342
:output-to "resources/public/js/desktop/tests/out/all-tests.js"
4443
:output-dir "resources/public/js/desktop/tests/out"}}
4544

46-
{:id "mobile-dev"
47-
:figwheel {:on-jsload "braid.core.client.mobile.core/reload"}
48-
:source-paths ["src/braid"
49-
"src/retouch"]
50-
:compiler {:main braid.core.client.mobile.core
51-
:asset-path "/js/dev/mobile/"
52-
:output-to "resources/public/js/dev/mobile.js"
53-
:output-dir "resources/public/js/dev/mobile/"
54-
:verbose true}}
55-
5645
{:id "gateway-dev"
5746
:figwheel {:on-jsload "braid.core.client.gateway.core/reload"}
5847
:source-paths ["src/braid"]
@@ -63,8 +52,7 @@
6352
:verbose true}}
6453

6554
{:id "release"
66-
:source-paths ["src/braid"
67-
"src/retouch"]
55+
:source-paths ["src/braid"]
6856
:compiler {:asset-path "/js/prod/"
6957
:output-dir "resources/public/js/prod/out"
7058
:optimizations :advanced
@@ -78,10 +66,7 @@
7866
:entries #{"braid.core.client.desktop.core"}}
7967
:gateway
8068
{:output-to "resources/public/js/prod/gateway.js"
81-
:entries #{"braid.core.client.gateway.core"}}
82-
:mobile
83-
{:output-to "resources/public/js/prod/mobile.js"
84-
:entries #{"braid.core.client.mobile.core"}}}
69+
:entries #{"braid.core.client.gateway.core"}}}
8570
:verbose true}}]}
8671

8772
:min-lein-version "2.5.0"

resources/public/mobile.html

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/braid/base/conf.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
;; TODO don't special case these here
1414
;; ports should come from config
1515
{:db-url "datomic:mem://braid"
16-
:api-domain (str "localhost:" (+ 2 (:port (mount/args))))
16+
:api-domain (str "localhost:" (:port (mount/args)))
1717
:site-url (str "http://localhost:" (:port (mount/args)))
1818
:hmac-secret "secret"}
1919
@ports-config ; overrides api-domain & site url when port is automatically found

src/braid/base/server/http_client_routes.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
; add cache-control headers to js files)
1111
; (since it uses a cache-busted url anyway)
12-
(GET (str "/js/:build{desktop|mobile|gateway|base}.js") [build]
12+
(GET (str "/js/:build{desktop|gateway|base}.js") [build]
1313
(if (boolean (config :prod-js))
1414
(if-let [response (resource-response (str "public/js/prod/" build ".js"))]
1515
(assoc-in response [:headers "Cache-Control"] "max-age=365000000, immutable")

src/braid/chat/core.cljc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
:http-only
4848
:mailgun-domain
4949
:mailgun-password
50-
:mobile-site-url
5150
:prod-js
5251
:redis-uri
5352
:site-url]]

src/braid/core/client/mobile/auth_flow/events.cljs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)