Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v4.3.0 #548

Merged
merged 180 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from 179 commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
876cb15
fix(chat): added ellipsis for long chat names
juliahermak Oct 3, 2023
548609f
feat(Chat): made the button round
juliahermak Oct 3, 2023
e7d4119
feat(Chat): added a counter of new messages on the scroll to bottom
juliahermak Oct 4, 2023
835569f
fix: review changes
juliahermak Oct 4, 2023
d03d383
fix: remove div
juliahermak Oct 4, 2023
214554b
fix: undefined
juliahermak Oct 4, 2023
1062a05
fix: positioned the date through the flex
juliahermak Oct 4, 2023
1f4cc00
refactor
juliahermak Oct 4, 2023
f4a6c04
fix: margin
juliahermak Oct 4, 2023
3a2ee14
fix: deleted unnecessary styles
juliahermak Oct 4, 2023
50020fb
chore(deps-dev): bump electron from 26.2.2 to 26.2.4
dependabot[bot] Oct 5, 2023
ac25d4c
fix: mark as read if the tab is visible and scrolled to the bottom
juliahermak Oct 5, 2023
90109ec
refactor(ChatPreview): align date using flexbox
martiliones Oct 5, 2023
9288168
feat: preserve message text in the input field
juliahermak Oct 6, 2023
e3a6d65
refactor: reviewer changes
juliahermak Oct 6, 2023
cc43c06
Merge pull request #534 from juliahermak/fix/chat-name-width-overflow…
bludnic Oct 6, 2023
18617e3
fix: style
juliahermak Oct 6, 2023
340cd69
chore(deps-dev): bump postcss from 8.4.27 to 8.4.31
dependabot[bot] Oct 8, 2023
27fe779
feat: beautiful code markdown
juliahermak Oct 9, 2023
1552848
Merge pull request #535 from juliahermak/feat/-scroll-to-bottom-fab-n…
bludnic Oct 10, 2023
300e5f6
fix(markdown): inline and multiline code
juliahermak Oct 11, 2023
e6c1aa4
fix: code formatting
juliahermak Oct 11, 2023
2f4fbc6
Test programs with different fonts
juliahermak Oct 13, 2023
48c3fbd
Added another font
juliahermak Oct 13, 2023
71d5780
chore(Tor, services): update config
bludnic Oct 16, 2023
ed60297
feat: add tests before updating `web3-utils`
bludnic Oct 14, 2023
1be8905
feat(`web3-utils`): upgrade from v1 -> v4
bludnic Oct 14, 2023
b65a53c
feat(`web3-eth`): upgrade from v1 -> v4
bludnic Oct 14, 2023
18c24c7
feat(`eth-utils`): fix failed test
bludnic Oct 14, 2023
59db8b9
chore(store): upgrade `web3-eth` api
bludnic Oct 17, 2023
a9a965c
chore: regenerate `adamant-wallets`
bludnic Oct 18, 2023
46ac572
chore: add script for generating types from `adamant-wallets` schema
bludnic Oct 18, 2023
eacc2d3
feat(adamant-wallets): add `nodes`, `services` and `explorer` utils
bludnic Oct 18, 2023
11460e5
chore(deps-dev): bump @babel/traverse from 7.22.8 to 7.23.2
dependabot[bot] Oct 19, 2023
4a4083f
chore: replace legacy `abi-decoder` dependency
bludnic Oct 23, 2023
5c7ed3a
[Group] Sending crypto improvements, updating crypto libraries. bitco…
RealGoodProgrammer Oct 23, 2023
61037ff
Fixes
RealGoodProgrammer Oct 23, 2023
38fc4ba
Update comment in src/lib/bitcoin/btc-base-api.js
RealGoodProgrammer Oct 24, 2023
d9966f6
feat(abi-decoder): add types
bludnic Oct 24, 2023
86ef2ea
refactor(abi-decoder): mark as string
bludnic Oct 25, 2023
1312fc0
refactor(eth-base-actions): use optional chaining operator
bludnic Oct 25, 2023
e49dedc
fix(eth/actions, estimateGas): BigNumber -> Number
bludnic Oct 25, 2023
4c69eac
docs(abi-decoder): add reference to the lib author
bludnic Oct 25, 2023
90dc292
Update dependencies. Remove useless comment
RealGoodProgrammer Oct 25, 2023
029ac83
Vite plugins has been moved to devDeps
RealGoodProgrammer Oct 25, 2023
4421637
Vite plugins has been moved to devDeps. package-lock.json
RealGoodProgrammer Oct 25, 2023
2eb84c7
Merge pull request #544 from Adamant-im/feat/update_bitcoinjs-lib
bludnic Oct 25, 2023
8f9548e
chore(GitHub Workflows): add `npm run wallets:types:generate`
bludnic Oct 26, 2023
589a61b
chore: update `adamant-wallets`
bludnic Oct 26, 2023
a66ace1
Merge branch 'dev' into feat/use-tor-configuration-from-adamant-wallets
bludnic Oct 26, 2023
213efd5
feat(TS): track `adamant-wallets` types
bludnic Oct 27, 2023
2f2faf5
chore(package.json, wallets): generate data and types with one command
bludnic Oct 27, 2023
3062b8b
chore(wallets:types:generate, swagger-typescript-api): don't generate…
bludnic Oct 27, 2023
f9928d7
refactor(scripts/wallets): use `_.mapValues` instead of `Object.entri…
bludnic Oct 27, 2023
0f43c55
refactor(AdmTransaction): fix import alias
bludnic Oct 27, 2023
6c4a1c4
refactor(`AdmTransaction`): remove unreachable `OR` operator
bludnic Oct 27, 2023
9508033
refactor(getRandomServiceUrl): early validation
bludnic Oct 27, 2023
36a1267
Merge pull request #545 from Adamant-im/feat/use-tor-configuration-fr…
bludnic Oct 27, 2023
fda80a8
Merge branch 'dev' into feat/update-web3-eth
bludnic Oct 27, 2023
d7bc161
fix(erc20-actions): fix merge
bludnic Oct 27, 2023
51a44f9
Merge pull request #542 from Adamant-im/feat/update-web3-eth
bludnic Oct 27, 2023
0086654
chore(deps): bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Oct 28, 2023
0b4fe28
refactor(): rewrite healthcheck `AdmNode`
bludnic Oct 27, 2023
cf43568
feat(Web3): add custom HttpProvider
bludnic Oct 29, 2023
bfa496f
refactor(): rewrite AdmApiClient to TS
bludnic Oct 29, 2023
4f01cfa
refactor(AdmClient): refactor promises
bludnic Oct 29, 2023
2293af5
refactor(AdmClient): add `filterSyncedNodes` helper
bludnic Oct 30, 2023
26e188f
feat(AdmClient): add `isNodeOfflineError` helper
bludnic Oct 30, 2023
085588a
feat: add healthcheck for ETH nodes
bludnic Oct 31, 2023
a6bf360
feat: add healthcheck for BTC nodes
bludnic Nov 1, 2023
c97f916
feat: add healthcheck for DOGE and DASH nodes
bludnic Nov 1, 2023
71869e3
feat(abstract.node): provider current `height`
bludnic Nov 1, 2023
56ad0b0
feat: add healthcheck for LSK nodes
bludnic Nov 1, 2023
3f530d6
fix(Nodes): use default minNodeVersion
bludnic Nov 1, 2023
7f56cfe
feat(Nodes): increase healthcheck interval
bludnic Nov 1, 2023
fbbd257
fix(Nodes): check health immediately when navigate to Nodes page
bludnic Nov 1, 2023
96f6eab
feat(NodeTable): add blockchain label
bludnic Nov 2, 2023
89df240
refactor(AChatForm): use `validator` prop to validate message
bludnic Nov 2, 2023
605d997
refactor(Chat.vue): replace hardcoded fee with a constant
bludnic Nov 2, 2023
9b34e7d
Merge pull request #536 from Adamant-im/dependabot/npm_and_yarn/elect…
bludnic Nov 2, 2023
a8a2b36
Merge pull request #546 from Adamant-im/dependabot/npm_and_yarn/brows…
bludnic Nov 2, 2023
0649437
Merge pull request #543 from Adamant-im/dependabot/npm_and_yarn/babel…
bludnic Nov 2, 2023
2cc365a
Merge pull request #539 from Adamant-im/dependabot/npm_and_yarn/postc…
bludnic Nov 2, 2023
db95733
fix(wallets): missing SKL icon
bludnic Nov 2, 2023
fdd27d9
chore: update package-lock
bludnic Nov 2, 2023
f7fd9eb
refactor(`EthNode`): use `HttpProvider` from `web3-providers-http`
bludnic Nov 2, 2023
5201c0e
refactor(`AdmClient`): remove unused method
bludnic Nov 2, 2023
16f15fe
refactor(`AdmClient`): fix minNodeVersion
bludnic Nov 2, 2023
efa74b4
feat(NodesTable): add additional info to node status
bludnic Nov 2, 2023
160cad8
refactor(AdmClient): remove unused import
bludnic Nov 2, 2023
e07065d
fix(locales, ru): change "unsupported_reason_protocol"
bludnic Nov 2, 2023
a5e75a6
fix(locales, en): uppercase http "unsupported_reason_protocol"
bludnic Nov 2, 2023
a4bf233
fix(nodes): add union type for Node.protocol
bludnic Nov 2, 2023
1d5f072
refactor(AdmNode): add generic type to request response
bludnic Nov 2, 2023
6657380
refactor(nodes): remove .ts extension
bludnic Nov 2, 2023
9513c16
refactor(NodesTableItem): move NodeType enum to ``@/lib/nodes/types`
bludnic Nov 2, 2023
efc470f
refactor(nodes): add `createBtcLikeClient` helper
bludnic Nov 2, 2023
eb0464c
refactor(Chat): position `validationErrors` before docblock
bludnic Nov 2, 2023
648912c
refactor(nodes, Vuex): dry
bludnic Nov 2, 2023
5c08a8b
feat(Nodes): make `active/inactive` state persistent
bludnic Nov 2, 2023
5dc28ab
feat(Nodes): persistent `useFastest` checkbox
bludnic Nov 2, 2023
a217a50
fix(Nodes): check health only for enabled node
bludnic Nov 2, 2023
6d28162
feat(Login): add button to Nodes page
bludnic Nov 2, 2023
b3b1768
refactor(AChatForm): remove unused prop
bludnic Nov 2, 2023
4093d20
Merge pull request #537 from juliahermak/feat--preserve-message-text-…
bludnic Nov 2, 2023
fc4be08
refactor(store, nodes): dry
bludnic Nov 3, 2023
260e783
fix(ETH, ERC20): transfer funds doesn't work after `web3-eth` upgrade
bludnic Nov 3, 2023
80d0ba3
Revert "Added another font"
juliahermak Nov 3, 2023
12c1aab
Revert "Test programs with different fonts"
juliahermak Nov 3, 2023
ac06c1b
fix(markdown): reply preview shows empty message when quoting multili…
juliahermak Nov 3, 2023
1e39153
Merge pull request #540 from juliahermak/feat/beautiful-code-markdown
bludnic Nov 3, 2023
946b3fe
refactor(vuex, cryptos): remove comments
bludnic Nov 6, 2023
2f27b9c
feat(constants): change `INCREASE_FEE_MULTIPLIER` to 1.5
bludnic Nov 6, 2023
da9a8c1
refactor(eth/erc20 store): rename `gasLimit` const
bludnic Nov 6, 2023
3b53915
refactor(eth, erc20): rename "gas" to "gasLimit"
bludnic Nov 6, 2023
26bf437
feat(eth, erc20): use DEFAULT_GAS_LIMIT if `api.estimateGas()` failed
bludnic Nov 6, 2023
735e196
Bug: Sending DOGE from the chat
RealGoodProgrammer Nov 6, 2023
5054db2
fix(NodesTable): reposition node status label
bludnic Nov 6, 2023
936d904
Bug: Sending DASH from the chat
RealGoodProgrammer Nov 6, 2023
98b6b78
Fixes
RealGoodProgrammer Nov 8, 2023
b618159
Rename validator as a private method
RealGoodProgrammer Nov 8, 2023
78ab496
async/await only in DOGE lib
RealGoodProgrammer Nov 8, 2023
2b46248
fix(ADM node): set initial node `version` as `minNodeVersion` until r…
bludnic Nov 8, 2023
0c6f5d0
refactor(NodesTable): split component into `NodesStatus` and `SocketS…
bludnic Nov 8, 2023
40c7758
refactor(NodesTable): meaningful class names
bludnic Nov 8, 2023
2cfbc21
refactor(NodesTableItem): remove unused import
bludnic Nov 8, 2023
956a270
refactor(NodesTable): decompose into `NodeVersion` component
bludnic Nov 8, 2023
083d3a7
feat(NodesTable): display node height
bludnic Nov 8, 2023
24488a2
Merge pull request #552 from Adamant-im/fix/sending_doge_from_the_chat
bludnic Nov 9, 2023
0d11758
refactor(nodes): rename `BlockchainLabel` -> `NodeLabel`
bludnic Nov 9, 2023
2b92f82
refactor(nodes): reuse `NodesTable` and `NodesTableHead`
bludnic Nov 9, 2023
b40427b
feat(nodes): add "Type" column
bludnic Nov 9, 2023
2b99752
refactor(nodes): reuse `NodeColumn` component
bludnic Nov 9, 2023
e44010e
refactor(nodes): reuse `NodeStatusCheckbox` component
bludnic Nov 9, 2023
f10169d
feat: add Coin nodes
bludnic Nov 9, 2023
9cf3318
fix(Coin nodes): align label to right
bludnic Nov 9, 2023
3adb039
feat: add node type labels
bludnic Nov 9, 2023
05fa815
fix(NodesTable): decrease label column size
bludnic Nov 9, 2023
dcff8a4
feat(nodes): pass label to node instance
bludnic Nov 9, 2023
4cdcb44
feat(NodesTable): sort coin nodes
bludnic Nov 9, 2023
5db1350
Merge branch 'dev' into feat/new-healthcheck
bludnic Nov 9, 2023
400727d
Merge branch 'dev' into fix/eth-transfer-doesnt-after-web3-eth-upgrade
bludnic Nov 9, 2023
c4a9a5c
fix(BtcNode): missing height
bludnic Nov 10, 2023
7e1766b
refactor(btc-base-api): remove unused code
bludnic Nov 10, 2023
2f7fa9f
Fix for sending DOGE. Works fine with DOGE & DASH
RealGoodProgrammer Nov 10, 2023
488bd25
Merge pull request #553 from Adamant-im/fix/sending_doge_from_the_chat
bludnic Nov 10, 2023
2d07d9e
Merge pull request #550 from Adamant-im/fix/eth-transfer-doesnt-after…
bludnic Nov 11, 2023
15310d7
feat(NodesTable): show cube icon before node height
bludnic Nov 11, 2023
a999eeb
Merge branch 'dev' into feat/new-healthcheck
bludnic Nov 11, 2023
0eb89bc
fix(ETH/ERC20): round `gasLimit` before converting to BigInt
bludnic Nov 11, 2023
15244e6
Merge branch 'master' into dev
bludnic Nov 11, 2023
1e332dd
chore: update `adamant-wallets`
bludnic Nov 11, 2023
28d1ec7
Merge pull request #547 from Adamant-im/feat/new-healthcheck
bludnic Nov 11, 2023
6ba2894
Merge branch 'dev' into feat/persistent-nodes
bludnic Nov 11, 2023
f2759d2
fix(store/nodes): update node status on toggle
bludnic Nov 11, 2023
07eedad
chore: upgrade axios v1.5 -> v1.6
bludnic Nov 11, 2023
9c5b566
refactor(nodes/storage): define `defaultOptions` in a const
bludnic Nov 12, 2023
3386ede
feat:show unread count over the back button
juliahermak Nov 12, 2023
62af83b
refactor
juliahermak Nov 12, 2023
cd87d16
Merge pull request #556 from Adamant-im/fix/eth-erc20-increase-fee
bludnic Nov 13, 2023
bd0aa5f
fix(Login): place settings icon under the `LanguageSwitcher`
bludnic Nov 13, 2023
e5c523d
feat(Back button): navigate to `/` if there are no pages in the history
bludnic Nov 13, 2023
ae09505
feat(Nodes, SocketSupport): make icon grey if node is disabled
bludnic Nov 13, 2023
8bcf830
Revert "feat(Nodes, SocketSupport): make icon grey if node is disabled"
bludnic Nov 13, 2023
bf91d34
fix(Nodes): hide socketSupport column if the node is disabled
bludnic Nov 13, 2023
197e802
fix(AdmNode): don't fetch Node info if user disabled it
bludnic Nov 13, 2023
613580a
Merge pull request #557 from Adamant-im/feat/upgrade-axios
bludnic Nov 13, 2023
4e1e687
Merge pull request #558 from Adamant-im/feat/show-unread-count-over-t…
bludnic Nov 13, 2023
9c5fa0d
refactor(Login): make setting icon button smaller
bludnic Nov 14, 2023
0c22a7f
fix(Login): position Setting icon
adamant-al Nov 16, 2023
0e98745
refactor(Login): position settings icon using `position: absolute`
bludnic Nov 16, 2023
f82b0a9
feat(Transaction): show inconsistent status if it's a duplicate
bludnic Nov 16, 2023
0b7ed6a
Merge pull request #549 from Adamant-im/feat/persistent-nodes
bludnic Nov 17, 2023
c25e891
Merge pull request #561 from Adamant-im/feat/inconsistent-tx
bludnic Nov 18, 2023
2ed6ec8
chore: upgrade deps
bludnic Nov 18, 2023
864e651
Merge pull request #562 from Adamant-im/feat/upgrade-deps
bludnic Nov 20, 2023
885007c
chore: release v4.3.0
bludnic Nov 24, 2023
0287881
Revert "feat(Transaction): show inconsistent status if it's a duplicate"
bludnic Nov 25, 2023
caa4ff6
Merge pull request #565 from Adamant-im/revert-561-feat/inconsistent-tx
bludnic Nov 26, 2023
54154fb
chore: release v4.3.1
bludnic Nov 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,513 changes: 2,379 additions & 2,134 deletions package-lock.json

Large diffs are not rendered by default.

86 changes: 49 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "adamant-im",
"version": "4.2.2",
"version": "4.3.0",
"author": "ADAMANT Foundation <[email protected]>",
"license": "GPLv3",
"description": "Decentralized Messenger",
Expand All @@ -9,7 +9,9 @@
"serve": "vite preview --config vite-pwa.config.ts",
"dev": "vite --config vite-pwa.config.ts",
"serve:test": "cross-env ADM_CONFIG_FILE=test vue-cli-service serve",
"update-wallets": "node scripts/wallets.mjs",
"wallets:generate": "npm run wallets:data:generate && npm run wallets:types:generate",
"wallets:data:generate": "node scripts/wallets.mjs",
"wallets:types:generate": "swagger-typescript-api -p ./adamant-wallets/specification/openapi.json -o ./src/types/wallets -n index.ts --no-client",
"build": "vue-tsc && vite build --config vite-pwa.config.ts",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
"prettify": "prettier --write src/",
Expand All @@ -26,17 +28,16 @@
"@emoji-mart/data": "^1.1.2",
"@liskhq/lisk-cryptography": "3.2.1",
"@liskhq/lisk-transactions": "5.2.2",
"@mdi/font": "^7.2.96",
"@mdi/font": "^7.3.67",
"@stablelib/utf8": "^1.0.1",
"@zxing/browser": "^0.1.4",
"@zxing/library": "^0.20.0",
"abi-decoder": "^2.4.0",
"assert": "^2.1.0",
"axios": "^1.5.0",
"axios": "^1.6.2",
"b64-to-blob": "^1.2.19",
"bignumber.js": "^9.1.2",
"bip39": "^3.1.0",
"bitcoinjs-lib": "^5.2.0",
"bitcoinjs-lib": "6.1.5",
"buffer": "^6.0.3",
"bytebuffer": "^5.0.1",
"coininfo": "^5.2.1",
Expand All @@ -45,17 +46,18 @@
"dayjs": "^1.11.10",
"deepmerge": "^4.3.1",
"detect-browser": "^5.3.0",
"dompurify": "^3.0.5",
"dompurify": "^3.0.6",
"ecpair": "^2.1.0",
"ed2curve": "^0.3.0",
"emoji-mart": "^5.5.2",
"file-saver": "^2.0.5",
"hdkey": "^2.1.0",
"https-browserify": "^1.0.0",
"idb": "^7.1.1",
"js-base64": "^3.7.5",
"js-md5": "^0.7.3",
"js-md5": "^0.8.3",
"lodash": "^4.17.21",
"marked": "^9.0.3",
"marked": "^10.0.0",
"mitt": "^3.0.1",
"notifyjs": "^3.0.0",
"os-browserify": "^0.3.0",
Expand All @@ -75,59 +77,69 @@
"stream-http": "^3.2.0",
"stylefire": "^7.0.3",
"throttle-promise": "^1.0.4",
"tiny-secp256k1": "^2.2.3",
"tweetnacl": "^1.0.3",
"visibilityjs": "^2.0.2",
"vue": "^3.3.4",
"vue-i18n": "^9.4.1",
"vue": "^3.3.8",
"vue-i18n": "^9.7.0",
"vue-router": "^4.2.5",
"vuetify": "^3.3.17",
"vuetify": "^3.4.2",
"vuex": "^4.1.0",
"vuex-persist": "^3.1.3",
"web3-eth": "^1.9.0",
"web3-utils": "^1.9.0"
"web3-errors": "^1.1.4",
"web3-eth": "^4.3.1",
"web3-eth-abi": "^4.1.4",
"web3-eth-accounts": "^4.1.0",
"web3-eth-contract": "^4.1.3",
"web3-providers-http": "^4.1.0",
"web3-utils": "^4.0.7"
},
"devDependencies": {
"@electron/notarize": "^2.1.0",
"@electron/notarize": "^2.2.0",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@openapitools/openapi-generator-cli": "^2.7.0",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-inject": "^5.0.3",
"@rushstack/eslint-patch": "^1.4.0",
"@types/dompurify": "^3.0.2",
"@types/emoji-mart": "^3.0.9",
"@types/marked": "^5.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"@vitejs/plugin-vue": "^4.3.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-inject": "^5.0.5",
"@rushstack/eslint-patch": "^1.5.1",
"@types/dompurify": "^3.0.5",
"@types/emoji-mart": "^3.0.12",
"@types/marked": "^5.0.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"@vitejs/plugin-vue": "^4.5.0",
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/test-utils": "^2.4.1",
"@vue/test-utils": "^2.4.2",
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"electron": "^26.2.2",
"electron": "^26.2.4",
"electron-builder": "^24.6.4",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0",
"eslint": "^8.54.0",
"eslint-plugin-vue": "^9.18.1",
"execa": "^8.0.1",
"jest-serializer-vue": "^3.1.0",
"jsdom": "^22.1.0",
"lorem-ipsum": "^2.0.8",
"postcss": "latest",
"prettier": "^3.0.3",
"sass": "^1.68.0",
"prettier": "^3.1.0",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"sinon": "^16.0.0",
"sinon": "^17.0.1",
"swagger-typescript-api": "^13.0.3",
"typescript": "^5.2.2",
"uuid": "^9.0.1",
"vite": "^4.4.9",
"vite-plugin-electron": "^0.14.1",
"vite-plugin-pwa": "^0.16.5",
"vitest": "^0.34.5",
"vite-plugin-electron": "^0.15.4",
"vite-plugin-pwa": "^0.16.7",
"vite-plugin-top-level-await": "^1.3.1",
"vite-plugin-wasm": "^3.2.2",
"vitest": "^0.34.6",
"vue-cli-plugin-i18n": "^2.3.2",
"vue-cli-plugin-vuetify": "~2.5.8",
"vue-eslint-parser": "^9.3.1",
"vue-template-compiler": "^2.7.14",
"vue-tsc": "^1.8.13"
"vue-eslint-parser": "^9.3.2",
"vue-template-compiler": "^2.7.15",
"vue-tsc": "^1.8.22",
"web3-types": "^1.3.1"
},
"main": "dist-electron/main.js",
"keywords": [
Expand Down
72 changes: 51 additions & 21 deletions scripts/wallets.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,21 @@ async function run() {
// update adamant-wallets repo
await $`git submodule foreach git pull origin master`

const [coins, nodes, { coinDirNames, coinSymbols }] = await initCoins()
const { coins, config, coinDirNames, coinSymbols } = await initCoins()
await applyBlockchains(coins, coinSymbols)

await copyIcons(coins, coinDirNames)

await writeFile(CRYPTOS_DATA_FILE_PATH, JSON.stringify(coins, null, 2))

await updateConfig(nodes)
await updateProductionConfig(config)
await updateDevelopmentConfig(config)
await updateTorConfig(config)
}

async function initCoins() {
const config = {}
const coins = {}
const nodes = {}

const coinDirNames = {}
const coinSymbols = {}
Expand Down Expand Up @@ -69,18 +71,16 @@ async function initCoins() {

if (coin.createCoin) {
const nodeName = coin.symbol.toLowerCase()

if (coin.nodes) {
nodes[nodeName] = coin.nodes
}

if (coin.serviceNodes) {
nodes[`${nodeName}service`] = coin.serviceNodes
}
config[nodeName] = coin
}
})

return [coins, nodes, { coinDirNames, coinSymbols }]
return {
coins,
config,
coinDirNames,
coinSymbols
}
}

async function applyBlockchains(coins, coinSymbols) {
Expand Down Expand Up @@ -129,19 +129,49 @@ async function copyIcons(coins, coinDirNames) {
}
}

function updateProductionConfig(configs) {
return updateConfig(configs, 'production')
}

function updateDevelopmentConfig(configs) {
return updateConfig(configs, 'development')
}

function updateTorConfig(configs) {
const torConfigs = _.mapValues(configs, (config) => {
const torConfig = _.mergeWith(config, config.tor, (value, srcValue) => {
// customizer overrides `nodes`, `services` and `links`
// instead of merging them
if (_.isArray(srcValue)) {
return srcValue
}
})

return torConfig
})

return updateConfig(torConfigs, 'tor')
}

/**
* Updates the production config inside src/config
* Updates the config inside src/config
*/
async function updateConfig(nodes) {
const configPath = resolve('src/config/production.json')
const config = await parseJsonFile(configPath)

config.server = {
...config.server, // to keep `infoservice`
...nodes
async function updateConfig(configs, configName) {
const configPath = resolve(`src/config/${configName}.json`)
const configFile = await parseJsonFile(configPath)

for (const configKey in configs) {
const config = configs[configKey]

configFile[configKey].explorer = config.explorer
configFile[configKey].explorerTx = config.explorerTx
configFile[configKey].explorerAddress = config.explorerAddress
configFile[configKey].minNodeVersion = config.minNodeVersion
configFile[configKey].nodes = config.nodes
configFile[configKey].services = config.services
}

await writeFile(configPath, JSON.stringify(config, null, 2))
await writeFile(configPath, JSON.stringify(configFile, null, 2))
}

async function forEachDir(path, callback) {
Expand Down
42 changes: 25 additions & 17 deletions src/assets/styles/components/_chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,19 +196,14 @@ $scroll-bar-width: 4px;
word-wrap: break-word;

code {
line-height: 1rem;
color: #2e7eed;
font-weight: inherit;
font-size: 12px;
padding: 8px;
margin-bottom: 8px;
tab-size: 4;
border-radius: 4px;
border-style: solid;
border-width: 1px;
border-color: rgb(224, 224, 224);
font-size: 14px;
padding: 2px 4px;
border-radius: 6px;
overflow-x: auto;
max-width: 100%;
tab-size: 4;
line-height: 24px;
}

code:before {
Expand Down Expand Up @@ -236,15 +231,12 @@ $scroll-bar-width: 4px;
padding: 8px;
margin-bottom: 8px;
tab-size: 4;
border-radius: 4px;
border-style: solid;
border-width: 1px;
border-radius: 6px;
overflow-x: auto;
max-width: 100%;
border-color: rgb(224, 224, 224);

code:before {
content: '';
code {
padding: 0px;
}
}
}
Expand Down Expand Up @@ -444,6 +436,12 @@ $scroll-bar-width: 4px;
color: map-get($blue, 'base');
}

code {
background-color: map-get($grey, 'lighten-4');
color: map-get($grey, 'darken-3');
border-color: map-get($grey, 'lighten-2');
}

pre {
background-color: map-get($grey, 'lighten-4');
color: map-get($grey, 'darken-3');
Expand Down Expand Up @@ -537,10 +535,20 @@ $scroll-bar-width: 4px;
a {
color: map-get($blue, 'lighten-2');
}

code {
color: map-get($shades, 'white');
border-color: map-get($grey, 'darken-2');
background-color: map-get($adm-colors, 'secondary2-slightly-transparent');
}
pre {
background-color: map-get($grey, 'darken-4');
color: inherit;
border-color: map-get($grey, 'darken-2');
background-color: map-get($adm-colors, 'secondary2-slightly-transparent');

code {
background-color: transparent;
}
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/assets/styles/generic/_vuetify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ html {
/**
* Remove icon spacer
*/
.v-list-item__prepend > .v-icon ~ .v-list-item__spacer {
.v-list-item__prepend > .v-icon ~ .v-list-item__spacer,
.v-list-item__prepend > .v-badge ~ .v-list-item__spacer {
width: 0;
}

Expand Down
19 changes: 16 additions & 3 deletions src/components/AChat/AChatForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,16 @@ export default {
showDivider: {
type: Boolean,
default: false
},
/**
* Message validator.
*/
validator: {
type: Function,
required: true
}
},
emits: ['message', 'esc'],
emits: ['message', 'esc', 'error'],
data: () => ({
message: ''
}),
Expand Down Expand Up @@ -118,8 +125,14 @@ export default {
},
methods: {
submitMessage() {
this.$emit('message', this.message)
this.message = ''
const error = this.validator(this.message)
if (error === false) {
this.$emit('message', this.message)
this.message = ''
} else {
this.$emit('error', error)
}

// Fix textarea height to 1 row after miltiline message send
this.calculateInputHeight()
this.focus()
Expand Down
Loading