Erik Arvstedt
19bb8988f8
docker/init.sh: Remove unused code
...
This code has no effect because string `master` does not exist in `api/backend-info.ts`.
2022-09-02 12:50:44 +02:00
Erik Arvstedt
be72c5109a
backend: Create npm script package
...
This script creates a directory `backend/package` which only contains the
files required by the backend at runtime:
- The contents of `dist`
- `node_modules` minus `typescript` and `@typescript-eslint`.
These packages are build-only and are larger than the remaining whole package.
By using only `backend/package` in the Docker image,
the backend content size in the image is decreased by 70% to 31M.
This, along with the improved copying in the Dockerfile, reduces the
backend image size by 44% to 200M.
(Step `RUN chown -R 1000:1000 /backend ...` created a layer that effectively
duplicated the backend.)
2022-09-02 12:50:43 +02:00
Erik Arvstedt
d591f7c456
backend: Fetch package version at build time
...
Extract `fetch-version.ts` which is called at build time to create
file `dist/api/version.json`.
This file is read by `backend-info.ts` at runtime.
This also fixes handing over the Git commit hash to the backend app
in the Docker backend image, which was broken as of 2022-07-12.
(Reason: The commit hash was previously required at runtime, but was
only provided at build time.)
2022-09-02 12:50:43 +02:00
Erik Arvstedt
5683f639ed
backend: Read mtgox-weekly.json
from dist
2022-09-02 11:10:47 +02:00
Erik Arvstedt
8f0fc3af57
backend: Add config file env var
2022-09-02 11:08:42 +02:00
nymkappa
dcd55d9757
Fixes #2495
2022-09-02 10:28:54 +02:00
nymkappa
83df23a902
Renamed capacity to liquidity
2022-09-02 10:23:02 +02:00
nymkappa
ee23d1695d
Use shared component in node ranking list
2022-09-02 10:08:25 +02:00
nymkappa
88a36f4378
Renamed "City" to "Location"
2022-09-02 09:30:07 +02:00
Felipe Knorr Kuhn
1aad4f2926
Merge branch 'master' into simon/eslint-triple-equals
2022-09-01 22:51:07 -07:00
Mononaut
2a28ccc758
Update block, address & tx preview layouts
2022-09-01 17:01:31 +00:00
Mononaut
4ee5ef336c
Move lightning preview headers to top bar
2022-09-01 15:49:15 +00:00
Mononaut
3da76892d5
Restyle ln preview titles to match main pages
2022-09-01 15:49:12 +00:00
wiz
9047cb5998
Merge pull request #2484 from mononaut/new-default-preview-img
...
Use new mempool preview image as default
2022-09-01 11:09:21 +02:00
wiz
869cff89c6
Merge pull request #2483 from mononaut/fix-unfurler-race-condition-again
...
Fix unfurler race condition again
2022-09-01 10:18:59 +02:00
Wes van der Vleuten
95cd01d1fa
Accept the CLA for @WesVleuten
2022-09-01 07:51:18 +02:00
Wes van der Vleuten
ad753b9d16
Added missing backend docker config
2022-09-01 06:50:42 +02:00
Mononaut
c155598c08
Use new mempool preview image as default
2022-08-31 20:40:24 +00:00
Mononaut
80dfa0e937
Fix null timestamps on transaction previews
2022-08-31 18:21:24 +00:00
Mononaut
5922ff0f40
Better fix for unfurler race condition
2022-08-31 17:24:56 +00:00
wiz
10bca8f665
Merge pull request #2480 from mempool/simon/node-alias-ellipsis
...
Node aliase ellipsis
2022-08-31 15:35:17 +02:00
softsimon
0bc310243f
Node aliase ellipsis
...
fixes #2455
2022-08-31 16:21:16 +03:00
wiz
8a2925ab0c
Merge pull request #2474 from mempool/simon/search-results-greyed
...
Grey out inactive search results
2022-08-31 14:55:40 +02:00
wiz
3f750fb8d4
Merge pull request #2478 from mempool/nymkappa/bugfix/mysql-inject
...
Fixes possible mysql injectin in channels.api
2022-08-31 14:52:14 +02:00
wiz
38324575e8
Merge branch 'master' into simon/search-results-greyed
2022-08-31 14:45:04 +02:00
wiz
1a10acf8ce
Merge branch 'master' into nymkappa/bugfix/mysql-inject
2022-08-31 14:41:56 +02:00
wiz
799e8d9e23
Merge pull request #2475 from mempool/simon/channel-tx-details-button
...
Channel txs details buttons
2022-08-31 14:41:25 +02:00
wiz
454166dbca
Merge pull request #2477 from mempool/nymkappa/bugfix/node-header-layout
...
Fix node header layout
2022-08-31 14:38:11 +02:00
wiz
c9343f56d6
Merge pull request #2476 from mempool/nymkappa/feature/closed-channels-sort
...
Sort closed channels by closing_date, updated_at
2022-08-31 14:34:17 +02:00
wiz
b389457092
Merge branch 'master' into simon/channel-tx-details-button
2022-08-31 14:27:18 +02:00
wiz
d5f8ce00b7
Merge branch 'master' into nymkappa/bugfix/node-header-layout
2022-08-31 14:23:14 +02:00
wiz
78298d16d7
Merge branch 'master' into nymkappa/feature/closed-channels-sort
2022-08-31 14:22:25 +02:00
wiz
4f8c36df35
Merge pull request #2448 from mempool/simon/search-improvements
...
Typeahead loading spinner and regex fixes
2022-08-31 14:21:31 +02:00
wiz
e65d2a522f
Merge pull request #2470 from mempool/nymkappa/bugfix/node-update
...
Consider channels updates as well for node updated at field
2022-08-31 14:16:05 +02:00
wiz
e357a75b70
Merge branch 'master' into simon/search-improvements
2022-08-31 13:56:06 +02:00
nymkappa
ff1aae853e
Save latest node channel update in node.updated_at field in db
2022-08-31 09:37:19 +02:00
nymkappa
08833b08a0
Fix possible mysql injectin in channels.api
2022-08-31 08:53:21 +02:00
nymkappa
e8151e8393
Fix node header layout
2022-08-31 08:17:42 +02:00
nymkappa
434963e8a0
Sort closed channels by closing_date, updated_at
2022-08-31 07:44:18 +02:00
softsimon
48a7f8a3ee
Channel txs details buttons
2022-08-31 01:52:32 +02:00
wiz
9131521e7d
Merge pull request #2473 from mononaut/hotfix-unfurler
...
hotfix to rollback broken unfurler
2022-08-31 00:01:21 +02:00
softsimon
c593ded864
Grey out inactive search results
2022-08-30 23:58:58 +02:00
Mononaut
9dc45d9db3
hotfix to rollback broken unfurler
2022-08-30 21:53:52 +00:00
wiz
8f060d3d65
Merge pull request #2466 from mononaut/unfurler-config-semantics
...
Change unfurler puppeteer config toggle to ENABLED
2022-08-30 23:31:30 +02:00
wiz
4d7ae95d4f
Merge pull request #2467 from mononaut/fix-unfurler-race-condition
...
Fix unfurler navigation race condition
2022-08-30 23:29:39 +02:00
softsimon
a2e6b265d3
Search bar fixes.
2022-08-30 22:36:13 +02:00
wiz
ffc9081e1a
Merge pull request #2435 from mempool/simon/svg-logos
...
Replacing all PNGs with inline SVG
2022-08-30 22:29:38 +02:00
wiz
a0c54531c0
Merge branch 'master' into simon/svg-logos
2022-08-30 22:07:02 +02:00
softsimon
0dfda66578
Typeahead loading spinner and regex fixes
2022-08-30 21:29:44 +02:00
wiz
70eb0abb7e
Merge branch 'master' into fix-unfurler-race-condition
2022-08-30 21:09:58 +02:00