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

Development 3.13 #1126

Merged
merged 482 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
482 commits
Select commit Hold shift + click to select a range
d7c9c6a
Merge pull request #1383 from threefoldtech/development_313_storage_p…
mohamedamer453 Nov 8, 2023
4d0dd91
update getting of farms into farms.vue and farmstable, remove unneces…
amiraabouhadid Nov 8, 2023
4a635fe
remove repeated code
amiraabouhadid Nov 8, 2023
4835e2e
remove unused functions
amiraabouhadid Nov 8, 2023
0937444
remove unused import
amiraabouhadid Nov 8, 2023
106d549
update padding and toolbar color
AlaaElattar Nov 8, 2023
85fce26
make filters dynamic to both nodes and farms
amiraabouhadid Nov 8, 2023
960027b
remove unnecssary route usage
amiraabouhadid Nov 8, 2023
297e429
Fix duplicate contracts when deleting (#1381)
AlaaElattar Nov 9, 2023
4912f01
gpu filter in dedicated nodes (#1376)
0oM4R Nov 9, 2023
21d2dc3
add total cost per hour and month in contracts
AlaaElattar Nov 9, 2023
c3b67fe
Fix rmb_direct_client
MohamedElmdary Nov 9, 2023
8d07a92
check also that totalCost not zero
AlaaElattar Nov 9, 2023
fac9c6e
Moved migration into it's own file
MohamedElmdary Nov 9, 2023
21a57eb
Fix seed validation
MohamedElmdary Nov 9, 2023
6cd9ba9
Fix seed validation
MohamedElmdary Nov 9, 2023
c774512
Fix seed validation
MohamedElmdary Nov 9, 2023
4232422
Update labels
MohamedElmdary Nov 9, 2023
a52d6da
Fix isAddress usage and labels in playground & dashboard
MohamedElmdary Nov 9, 2023
61ee5ca
handle delete deployment errors (#1386)
0oM4R Nov 9, 2023
4ce7824
use Decimal instead of parseFloat
AlaaElattar Nov 9, 2023
5006dac
use Decimal instead of parseFloat
AlaaElattar Nov 9, 2023
1e75c0e
refactor code
MohamedElmdary Nov 9, 2023
4f702f7
Removed unused code
MohamedElmdary Nov 9, 2023
3c0fe78
fix redirection to top of page
AlaaElattar Nov 12, 2023
f165f69
updated toast colors
ehab-hassan Nov 12, 2023
a4aa5f2
fix scrolling down for all pages
AlaaElattar Nov 12, 2023
deaabae
always scrollTo(0,0)
AlaaElattar Nov 12, 2023
1c72c2a
Handling eror if neither hexSeed nor mnemonic is passed in 'createSha…
MohamedElmdary Nov 12, 2023
9397ea5
perform calculation with decimal
AlaaElattar Nov 12, 2023
7e53989
fixing the calculator and adding a warning to the user when using a c…
maayarosama Nov 12, 2023
e2596a5
Merge branch 'development_313' of https://github.com/threefoldtech/tf…
AlaaElattar Nov 13, 2023
3b329aa
modify NormalizedContract and remove regex
AlaaElattar Nov 13, 2023
c089776
Merge pull request #1391 from threefoldtech/development_313_total_cos…
xmonader Nov 13, 2023
f296f36
Merge pull request #1380 from threefoldtech/development_313_support_h…
MohamedElmdary Nov 13, 2023
a011b8d
updating scripts structure
mohamedamer453 Nov 13, 2023
20fa0f5
Merge branch 'development_313' into development_313_explorer_farms
amiraabouhadid Nov 14, 2023
e0fbf32
fix farm name filter
amiraabouhadid Nov 14, 2023
a3ecca6
reduce size of toolbar
amiraabouhadid Nov 14, 2023
341dc73
undo unnecessary changes
mohamedamer453 Nov 14, 2023
7c1165e
fix ttl validation issue (#1402)
0oM4R Nov 14, 2023
fa31779
more script updates
mohamedamer453 Nov 14, 2023
ee26d0f
Merge pull request #1405 from threefoldtech/development_313_toastColor
ehab-hassan Nov 15, 2023
725f5a7
add items perpage
amiraabouhadid Nov 15, 2023
d9ed2e2
Merge pull request #1349 from threefoldtech/development_313_back_to_s…
AlaaElattar Nov 15, 2023
9c37892
Merge branch 'development_313' into development_313_certified_nodes
maayarosama Nov 15, 2023
255ccb1
add '-' and remove copy icon for empty stellar address in card details
amiraabouhadid Nov 15, 2023
5ecf7a9
make dialog persistent
amiraabouhadid Nov 15, 2023
304afdb
make style scoped
amiraabouhadid Nov 15, 2023
869d1da
set default values for twinId, accountId and relay in twin details card
amiraabouhadid Nov 15, 2023
7a71fa4
add toast when fail to getFarms
amiraabouhadid Nov 15, 2023
89f5af0
update getTwinByTwinId for farms to return single twin instead of array
amiraabouhadid Nov 15, 2023
eb32e93
make farmfilteroptions optional
amiraabouhadid Nov 15, 2023
fbeddb3
remove unnecessary initializers make filters optional
amiraabouhadid Nov 15, 2023
c263b8f
wrap getfarms in try and catch
amiraabouhadid Nov 15, 2023
e0815f2
add close dialog v-model remove unnecessary undefined on optional param
amiraabouhadid Nov 15, 2023
0ccd6e0
Add search farm by name
zaelgohary Nov 16, 2023
c9690f0
Merge branch 'development_313' into development_313_fix_sorting
mohamedamer453 Nov 16, 2023
28e90ba
available farms randomization (#1370)
0oM4R Nov 16, 2023
4af4461
Merge branch 'development_313' of https://github.com/threefoldtech/tf…
zaelgohary Nov 16, 2023
a0c4980
Merge pull request #1348 from threefoldtech/development_313_fix_sorting
mohamedamer453 Nov 16, 2023
8fb92b1
update more scripts and move the functions before the main function
mohamedamer453 Nov 16, 2023
f13a6f0
Add portal/farms (#1154)
zaelgohary Nov 16, 2023
f398cc2
add route to dedicated nodes instead dashbaord (#1426)
AlaaElattar Nov 16, 2023
89ac86d
Fix deployment error `maybe it's rented by another user or node is de…
AlaaElattar Nov 16, 2023
afb50de
Merge branch 'development' into development_313
AhmedHanafy725 Nov 16, 2023
1ffaff6
Development 313 login UI color (#1346)
ehab-hassan Nov 16, 2023
f3a0145
Edit search by farm
zaelgohary Nov 16, 2023
852c190
added seprate models for the scripts
mohamedamer453 Nov 16, 2023
77599bb
handle loading contracts error (#1392)
0oM4R Nov 16, 2023
2b3f49b
Fix _farms type
zaelgohary Nov 19, 2023
a0bb625
update tfchain scripts
mohamedamer453 Nov 19, 2023
043c273
Add node type column
zaelgohary Nov 19, 2023
793e545
Fix binding for migration internal method
MohamedElmdary Nov 19, 2023
5fd4079
Merge pull request #1432 from threefoldtech/development_313_hotfix_mi…
xmonader Nov 19, 2023
0f777f8
move table to farms.vue
amiraabouhadid Nov 19, 2023
40a5f75
more updates and final review
mohamedamer453 Nov 19, 2023
105b410
Fix node argument type
zaelgohary Nov 19, 2023
b6648f9
Edit _farms value
zaelgohary Nov 19, 2023
d8f204b
Adding a new card for dedicated nodes
maayarosama Nov 19, 2023
9e63a93
adding dedicated nodes card in stats package
maayarosama Nov 19, 2023
cba9251
update algorand.ts script
mohamedamer453 Nov 19, 2023
a9c220c
Adding a condition to recalculate if the certified node is false but …
maayarosama Nov 19, 2023
8fc5cb9
update blockchain.ts script
mohamedamer453 Nov 19, 2023
acbdd10
Edit shared chip color
zaelgohary Nov 19, 2023
5d6ba17
Introduce error types in tfchain client (#1417)
0oM4R Nov 20, 2023
d140d3f
Merge pull request #1435 from threefoldtech/development_313_stats_ded…
maayarosama Nov 20, 2023
01b477f
Merge pull request #1431 from threefoldtech/development_313_node_type
zaelgohary Nov 20, 2023
ddb7d3e
use ES6 instead of commonjs
0oM4R Nov 20, 2023
2cfd387
fix dedicatedNodes type in gridproxy
0oM4R Nov 20, 2023
cec778a
Merge pull request #1437 from threefoldtech/development_313_errors_fi…
0oM4R Nov 20, 2023
6193180
Merge branch 'development_313' of https://github.com/threefoldtech/tf…
zaelgohary Nov 20, 2023
43d8638
Use validation error class instead of panic
0oM4R Nov 20, 2023
6718301
clean up
0oM4R Nov 20, 2023
d431bb7
fix pagination page and size handling
amiraabouhadid Nov 20, 2023
f6d05a7
fix ref error
amiraabouhadid Nov 20, 2023
11bd7fb
remove unnecessary null assertion
amiraabouhadid Nov 20, 2023
1d2d2d1
Merge branch 'development_313' into development_313_explorer_farms
amiraabouhadid Nov 20, 2023
e9b0367
fix imports
amiraabouhadid Nov 20, 2023
16108ca
add certification filter
amiraabouhadid Nov 20, 2023
ef05aea
add pricing policy filter
amiraabouhadid Nov 20, 2023
9bce151
fix pricing policy placeholder
amiraabouhadid Nov 20, 2023
c00494e
add filter by pricing policy
amiraabouhadid Nov 20, 2023
ae2e1af
add filter by total public ips
amiraabouhadid Nov 20, 2023
b899322
add info comments to algorand.ts
mohamedamer453 Nov 20, 2023
15bf871
Merge pull request #1409 from threefoldtech/development_313_update_sc…
mohamedamer453 Nov 20, 2023
f188d22
Merge pull request #1440 from threefoldtech/development_313_errors_gq…
0oM4R Nov 20, 2023
3ba8918
Use error types in RMB direct client (#1433)
0oM4R Nov 20, 2023
c797c90
Merge branch 'development_313' into development_313_certified_nodes
maayarosama Nov 20, 2023
a12121d
Add reset button
zaelgohary Nov 20, 2023
5f0c368
Removing selectednode watcher
maayarosama Nov 20, 2023
2014003
Merge pull request #1366 from threefoldtech/development_313_certified…
maayarosama Nov 21, 2023
baa36df
Merge pull request #1422 from threefoldtech/development_search_farm
zaelgohary Nov 21, 2023
7390bdb
make default number of table rows 10
amiraabouhadid Nov 21, 2023
a046213
remove persistent from dialog
amiraabouhadid Nov 21, 2023
cbde4ed
fix error messages
amiraabouhadid Nov 21, 2023
40b174c
change default relay value
amiraabouhadid Nov 21, 2023
7a9c1f0
Support custom mode in proxy & graphql, fix relay url, fix configs typo
zaelgohary Nov 21, 2023
c4ffdc7
add sorting by id
amiraabouhadid Nov 21, 2023
5ffb3b2
add sort by farm name
amiraabouhadid Nov 21, 2023
3cca63d
fix total number of farms
amiraabouhadid Nov 21, 2023
ae39ada
remove unnecessary console.log
amiraabouhadid Nov 21, 2023
478be37
Merge branch 'development_313' into development_313_explorer_farms
amiraabouhadid Nov 21, 2023
8de3385
Edit relay in twin page, update config.js
zaelgohary Nov 21, 2023
f4482f1
fix the unwanted behavior in the secondary navbar
mohamedamer453 Nov 21, 2023
3a0f03a
fix sorting by name and id
amiraabouhadid Nov 21, 2023
6fbe507
Merge pull request #1447 from threefoldtech/development_313_fix_secon…
mohamedamer453 Nov 21, 2023
4189ee0
remove persitent prop on dialog
amiraabouhadid Nov 21, 2023
4ecde8f
Update packages/playground/src/utils/grid.ts
zaelgohary Nov 21, 2023
81ae9fe
Merge pull request #1446 from threefoldtech/development_313_custom_vars
zaelgohary Nov 21, 2023
125ab83
fix farm name filter
amiraabouhadid Nov 21, 2023
7eee75f
extract sorting into a separate function
amiraabouhadid Nov 22, 2023
e264013
Merge pull request #1448 from threefoldtech/development_313_remove_pe…
amiraabouhadid Nov 22, 2023
0138b40
make dialog background color visible, add isValidForm check before re…
amiraabouhadid Nov 22, 2023
5b9d8a9
fix filter validation
amiraabouhadid Nov 22, 2023
de22760
fix function call
amiraabouhadid Nov 22, 2023
f791480
Fix config url
zaelgohary Nov 22, 2023
8d9b716
add isValidForm to getfarms
amiraabouhadid Nov 22, 2023
b0bae87
make cards on top of each other
amiraabouhadid Nov 22, 2023
7295fa0
Merge pull request #1460 from threefoldtech/development_313_config_url
zaelgohary Nov 22, 2023
921c420
fix error messages
amiraabouhadid Nov 22, 2023
35eb20c
add timeout to stop twin details card from loading indefinitely
amiraabouhadid Nov 22, 2023
db75402
stop twin card from loading after 20000ms
amiraabouhadid Nov 22, 2023
f0757b8
remove timeouts and add try and catch for when network prevents twin …
amiraabouhadid Nov 22, 2023
e157331
update farm name validator in filter
amiraabouhadid Nov 23, 2023
6c6cf09
remove pricing policy filter and unnecessary functions
amiraabouhadid Nov 23, 2023
984e6c3
fix total Ips filter
amiraabouhadid Nov 23, 2023
9794cdf
change portal to dashboard
amiraabouhadid Nov 23, 2023
3b4a5ee
change all routes from portal to dashboard,
amiraabouhadid Nov 23, 2023
1b89a60
move nodes and stats out of explorer
amiraabouhadid Nov 23, 2023
564ea29
add nodes farms and stats separately to sidebar
amiraabouhadid Nov 23, 2023
3b13ce1
place contracts inside dashboard
amiraabouhadid Nov 23, 2023
5785e17
clean up filter inputs before unmount
amiraabouhadid Nov 23, 2023
fe8f5cd
add urls options while getGrid
0oM4R Nov 23, 2023
c69cd4c
handle custom network urls in gridclient
0oM4R Nov 23, 2023
04a9087
Merge pull request #1240 from threefoldtech/development_313_explorer_…
amiraabouhadid Nov 23, 2023
10af09d
add --fix flag to linter
amiraabouhadid Nov 23, 2023
14c1758
run eslint --fix
amiraabouhadid Nov 23, 2023
6370bb3
Merge pull request #1466 from threefoldtech/development_313_add_lint_…
amiraabouhadid Nov 23, 2023
01583f2
Merge branch 'development_313' into development_313_revamp_sidebar
amiraabouhadid Nov 23, 2023
1fb81e4
integrate farms in new sidebar
amiraabouhadid Nov 23, 2023
ac576bf
fix filters import
amiraabouhadid Nov 23, 2023
76be94e
handle activate and create account on custom network
0oM4R Nov 26, 2023
93e600f
reset errors on validating mnem
0oM4R Nov 26, 2023
b1443c2
make passing urls on custom network only
0oM4R Nov 26, 2023
1db33e3
update activation url in build-env script
0oM4R Nov 26, 2023
fbfd159
update activation url in build-env script
0oM4R Nov 26, 2023
20430ac
use error classes grid client (#1443)
0oM4R Nov 26, 2023
80ce15d
fix getting nodes with undefined farmids
0oM4R Nov 27, 2023
aff1de0
place contracts in dashboard, update dashboard components
amiraabouhadid Nov 27, 2023
62b9c99
update order of items in sidebar
amiraabouhadid Nov 27, 2023
4ec6be5
add tooltip icon
mohamedamer453 Nov 27, 2023
cd095c2
rename getFarmsExplorer to getAllFarms
amiraabouhadid Nov 27, 2023
2497193
fix field hints and resolve typos
0oM4R Nov 27, 2023
ad89e85
Added attr to align the tooltip.
Mahmoud-Emad Nov 27, 2023
9747e95
Fix websocket typo
zaelgohary Nov 27, 2023
0837c9c
fix NaN in pagination
0oM4R Nov 27, 2023
a6124e9
Merge pull request #1510 from threefoldtech/development_313_websocket…
xmonader Nov 27, 2023
cc9d409
add location property to input_tooltip
mohamedamer453 Nov 27, 2023
29bf429
Make config public in modules to be exist for the check balance decor…
AhmedHanafy725 Nov 27, 2023
1097386
add hint message
mohamedamer453 Nov 28, 2023
46c4983
change total ip to free ips
0oM4R Nov 28, 2023
35752af
fix used public ips
0oM4R Nov 28, 2023
cf3ab10
add documentation for types/errors (#1471)
0oM4R Nov 28, 2023
aed8bbe
Merge pull request #1523 from threefoldtech/development_313_exploere_…
0oM4R Nov 28, 2023
aec22fb
Merge branch 'development_313' into development_313_revamp_sidebar
amiraabouhadid Nov 28, 2023
4074282
Update packages/playground/src/portal/transfer_view.vue
0oM4R Nov 28, 2023
0a07618
add hints for id and address
mohamedamer453 Nov 28, 2023
a9b39e6
update relay hint
mohamedamer453 Nov 28, 2023
e3f2424
Merge pull request #1525 from threefoldtech/development_313_propagate…
AhmedHanafy725 Nov 28, 2023
0a00c38
Merge pull request #1511 from threefoldtech/development_313_fix_hit_a…
0oM4R Nov 28, 2023
b4bfd9c
Merge pull request #1507 from threefoldtech/development_313_fix_nodes…
0oM4R Nov 28, 2023
3bebc0d
improve styling
mohamedamer453 Nov 28, 2023
9c88382
Merge pull request #1509 from threefoldtech/development_add_relay_hint
mohamedamer453 Nov 28, 2023
16752ab
Merge pull request #1465 from threefoldtech/development_313_dashboard…
0oM4R Nov 29, 2023
fc78003
Merge branch 'development_313' into development_313_revamp_sidebar
amiraabouhadid Nov 29, 2023
cdc208b
Merge pull request #1464 from threefoldtech/development_313_revamp_si…
amiraabouhadid Nov 29, 2023
61b6d24
Fix connect typo
zaelgohary Dec 3, 2023
b51f532
Fix connect title
zaelgohary Dec 3, 2023
6907ebf
Fix export typo
zaelgohary Dec 3, 2023
c5b7269
Capitalize stats
zaelgohary Dec 3, 2023
367bada
Update playground title
zaelgohary Dec 3, 2023
1cce995
update formatting and improve the message
mohamedamer453 Dec 3, 2023
38e03b8
Merge branch 'development' into development_313_fix_vm_domains
MohamedElmdary Dec 3, 2023
df1d731
Fix add domain component vm instance's name
MohamedElmdary Dec 3, 2023
037ba70
show minting on all networks
mohamedamer453 Dec 3, 2023
d66afe1
Reorder networks
zaelgohary Dec 3, 2023
7d4470d
Merge pull request #1553 from threefoldtech/development_313_show_mint…
mohamedamer453 Dec 3, 2023
68e7a12
Merge pull request #1554 from threefoldtech/development_313_network_o…
xmonader Dec 3, 2023
68718eb
Merge pull request #1550 from threefoldtech/development_313_wallet_typo
zaelgohary Dec 3, 2023
3912a06
update tooltip icon for clickable icons
mohamedamer453 Dec 3, 2023
11ac129
Merge pull request #1555 from threefoldtech/development_313_update_to…
mohamedamer453 Dec 3, 2023
1cf9e6a
disable loading after the details are loaded
mohamedamer453 Dec 3, 2023
e69ecc7
update message
mohamedamer453 Dec 3, 2023
f71ffcb
Update packages/playground/src/components/node_details_cards/twin_det…
mohamedamer453 Dec 3, 2023
f2efd29
use nameContains instead of name in query
amiraabouhadid Dec 3, 2023
ec9fc86
fix farmId filter
amiraabouhadid Dec 3, 2023
889d0a9
fix filter by id
amiraabouhadid Dec 3, 2023
087aa27
change free to available pub ips and remove used ips column
amiraabouhadid Dec 3, 2023
949b111
remove console.log
amiraabouhadid Dec 3, 2023
26bc263
fix spacing between cards
amiraabouhadid Dec 3, 2023
571bd57
Merge pull request #1558 from threefoldtech/development_313_fix_nodeD…
mohamedamer453 Dec 4, 2023
4372b75
capitalize the title
mohamedamer453 Dec 4, 2023
0b00036
Merge pull request #1551 from threefoldtech/development_313_update_da…
mohamedamer453 Dec 4, 2023
4bf834e
add totalgpu and freegpu
amiraabouhadid Dec 4, 2023
53a4d85
add totalGpu
amiraabouhadid Dec 4, 2023
fdd8294
remove .value and unnecessary {deep: true}
amiraabouhadid Dec 4, 2023
c2636fd
Fix fetching deployments (#1557)
MohamedElmdary Dec 4, 2023
8df79cc
Merge pull request #1552 from threefoldtech/development_313_fix_vm_do…
MohamedElmdary Dec 4, 2023
41215e7
fix gpus retrieval
amiraabouhadid Dec 4, 2023
f47fea8
remove commented out code
amiraabouhadid Dec 4, 2023
6cd365c
remove cols for map for responsiveness
amiraabouhadid Dec 4, 2023
842027c
move map downwards
amiraabouhadid Dec 4, 2023
2f8eb86
change md num of cols
amiraabouhadid Dec 4, 2023
c1138cd
change num of cards in xl
amiraabouhadid Dec 4, 2023
b9b524f
reorder sidebar
mohamedamer453 Dec 4, 2023
3b3adec
add tooltip support for sidebar items
mohamedamer453 Dec 5, 2023
553d0e1
add calculate up time function
0oM4R Dec 5, 2023
bf3f8c7
fix reload issue and uptime calculation
0oM4R Dec 5, 2023
b4147f7
Update packages/playground/src/views/stats.vue
amiraabouhadid Dec 5, 2023
3c77c3d
Merge pull request #1576 from threefoldtech/development_313_reorder_s…
mohamedamer453 Dec 5, 2023
bdb5052
reload after make any changes on public configrations
0oM4R Dec 5, 2023
3ad7772
make filters always open
amiraabouhadid Dec 5, 2023
84f99cd
revert filter expansion
amiraabouhadid Dec 5, 2023
3dc6be3
Merge pull request #1563 from threefoldtech/development_313_fix_farms…
amiraabouhadid Dec 5, 2023
5666458
change num of cols in xl
amiraabouhadid Dec 5, 2023
fee117d
Merge pull request #1564 from threefoldtech/development_313_fix_stat_…
amiraabouhadid Dec 5, 2023
13fffe0
resolve onmount comment
0oM4R Dec 6, 2023
a3b1d1d
Merge pull request #1582 from threefoldtech/development_313_dashboard…
0oM4R Dec 6, 2023
2d54818
Node Filters (#1580)
Mahmoud-Emad Dec 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@
"@typescript-eslint/no-empty-function": "off",
"vue/no-v-for-template-key": "off",
"vue/no-multiple-template-root": "off",
"vue/no-v-model-argument": "off"
"vue/no-v-model-argument": "off",
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
]
},
"settings": {
"svelte3/typescript": true // load TypeScript as peer dependency
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/new_stats_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code using yarn build:app

name: New Stats Build

on:
push:
branches:
- development
paths:
- "packages/new_stats/**"
pull_request:
branches:
- development
paths:
- "packages/new_stats/**"

jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max-old-space-size=8192"

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache-dependency-path: "**/yarn.lock"

- name: Install dependencies
run: |
yarn install

- name: Build
run: |
lerna run build --no-private
yarn workspace @threefold/newstats build
35 changes: 35 additions & 0 deletions .github/workflows/new_stats_docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: New Stats Docker Build/Push
on:
release:
types: [published]
workflow_dispatch:

jobs:
Build-and-push-docker-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/threefoldtech/newstats
tags: |
type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
file: packages/new_stats/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 2 additions & 0 deletions .github/workflows/playground_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max-old-space-size=8192"

strategy:
matrix:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/playground_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- development
- development_313
paths:
- "packages/playground/**"
workflow_dispatch:
Expand All @@ -19,6 +20,8 @@ concurrency:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: "--max-old-space-size=8192"

strategy:
matrix:
Expand Down Expand Up @@ -47,6 +50,7 @@ jobs:
VERSION=${VERSION:0:7} NETWORK=dev yarn build

- name: Copying files to staging server
if: ${{ github.ref == 'refs/heads/development' }}
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEV_REMOTE_HOST }}
Expand All @@ -58,3 +62,17 @@ jobs:
source: "packages/playground/dist/"
target: "${{ secrets.PLAYGROUND_REMOTE_DIR }}"
strip_components: 3

- name: Copying files to staging server
if: ${{ github.ref == 'refs/heads/development_313' }}
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEV_REMOTE_HOST }}
username: ${{ secrets.DEV_REMOTE_USER }}
key: ${{ secrets.DEV_SSH_KEY }}
passphrase: ${{ secrets.DEV_SSH_KEY_PASSPHRASE }}
rm: true
port: ${{ secrets.PORT }}
source: "packages/playground/dist/"
target: "/opt/playground_new/devnet/dist"
strip_components: 3
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ else ifeq ($(project), weblets)
cd packages/weblets/playground && yarn build
else ifeq ($(project), playground)
cd packages/playground && yarn build
else ifeq ($(project), graphql_client)
cd packages/graphql_client && yarn build
else ifeq ($(project), gridproxy_client)
cd packages/gridproxy_client && yarn build
else ifeq ($(project), UI)
cd packages/UI && yarn build
else
yarn lerna run build --no-private
endif
endif
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ This repo contains the typescript clients and projects for Threefold grid.
- [rmb peer client](./packages/rmb_peer_client/README.md)
- [rmb peer server](./packages/rmb_peer_server/README.md)
- [Playground](./packages/playground/README.md)
- [graphql_client](./packages/graphql_client/README.md)
- [gridproxy_client](./packages/gridproxy_client/README.md)
- [UI](./packages/UI/README.md)

## Requirements
Expand Down
8 changes: 4 additions & 4 deletions packages/dashboard/scripts/build-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ case $TFCHAIN_NETWORK in
GRAPHQL_URL='https://graphql.dev.grid.tf/graphql'
GRIDPROXY_URL='https://gridproxy.dev.grid.tf'
SUBSTRATE_URL='wss://tfchain.dev.grid.tf/ws'
ACTIVATION_SERVICE_URL='https://activation.dev.grid.tf'
ACTIVATION_SERVICE_URL='https://activation.dev.grid.tf/activation/activate'
PLAYGROUND_URL='https://play.dev.grid.tf'
PLAYGROUND_V2_URL='https://playground.dev.grid.tf'
RELAY_DOMAIN='relay.dev.grid.tf'
Expand All @@ -32,7 +32,7 @@ case $TFCHAIN_NETWORK in
GRAPHQL_URL='https://graphql.qa.grid.tf/graphql'
GRIDPROXY_URL='https://gridproxy.qa.grid.tf'
SUBSTRATE_URL='wss://tfchain.qa.grid.tf/ws'
ACTIVATION_SERVICE_URL='https://activation.qa.grid.tf'
ACTIVATION_SERVICE_URL='https://activation.qa.grid.tf/activation/activate'
PLAYGROUND_URL='https://play.qa.grid.tf'
PLAYGROUND_V2_URL='https://playground.qa.grid.tf'
RELAY_DOMAIN='relay.qa.grid.tf'
Expand All @@ -43,7 +43,7 @@ case $TFCHAIN_NETWORK in
GRAPHQL_URL='https://graphql.test.grid.tf/graphql'
GRIDPROXY_URL='https://gridproxy.test.grid.tf'
SUBSTRATE_URL='wss://tfchain.test.grid.tf/ws'
ACTIVATION_SERVICE_URL='https://activation.test.grid.tf'
ACTIVATION_SERVICE_URL='https://activation.test.grid.tf/activation/activate'
PLAYGROUND_URL='https://play.test.grid.tf'
PLAYGROUND_V2_URL='https://playground.test.grid.tf'
RELAY_DOMAIN='relay.test.grid.tf'
Expand All @@ -54,7 +54,7 @@ case $TFCHAIN_NETWORK in
GRAPHQL_URL='https://graphql.grid.tf/graphql'
GRIDPROXY_URL='https://gridproxy.grid.tf'
SUBSTRATE_URL='wss://tfchain.grid.tf/ws'
ACTIVATION_SERVICE_URL='https://activation.grid.tf'
ACTIVATION_SERVICE_URL='https://activation.grid.tf/activation/activate'
PLAYGROUND_URL='https://play.grid.tf'
PLAYGROUND_V2_URL='https://playground.grid.tf'
RELAY_DOMAIN='relay.grid.tf'
Expand Down
39 changes: 27 additions & 12 deletions packages/dashboard/src/components/TfChainConnector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<v-form>
<v-text-field
readonly
label="Mnemonic"
label="Hex Seed"
:value="$store.state.profile.mnemonic"
:type="showMnemonic ? 'text' : 'password'"
:append-icon="showMnemonic ? 'mdi-eye-outline' : 'mdi-eye-off-outline'"
Expand Down Expand Up @@ -116,16 +116,16 @@
@submit.prevent="connect"
>
<v-alert type="warning" text>
To connect your wallet, you will need to enter your mnemonic which will be encrypted using the password.
Mnemonic will never be shared outside of this device.
To connect your wallet, you will need to enter your Mnemonic or Hex Seed which will be encrypted using
the password. Mnemonic or Hex Seed will never be shared outside of this device.
</v-alert>

<v-tooltip bottom>
<template #activator="{ on, attrs }">
<div v-on="on" v-bind="attrs">
<v-text-field
label="Mnemonic"
placeholder="Please insert your mnemonic"
label="Mnemonic or Hex Seed"
placeholder="Please insert your Mnemonic or Hex Seed"
:error-messages="mnemonicError || activateAccountError"
:value="mnemonic"
@input="
Expand All @@ -142,8 +142,9 @@
</template>

<p class="font-weight-black" :style="{ maxWidth: '600px' }">
Mnemonic are your private key. They are used to represent you on the ThreeFold Grid. You can paste
existing mnemonic or click the 'Create Account' button to create an account and generate mnemonic.
Mnemonic or Hex Seed are your private key. They are used to represent you on the ThreeFold Grid. You
can paste existing (Mnemonic/Hex Seed) or click the 'Create Account' button to create an account and
generate mnemonic.
</p>
</v-tooltip>

Expand Down Expand Up @@ -244,6 +245,7 @@

<script lang="ts">
import type { ApiPromise } from "@polkadot/api";
import { isAddress } from "@polkadot/util-crypto";
import { validateMnemonic } from "bip39";
import Cryptr from "cryptr";
import md5 from "md5";
Expand Down Expand Up @@ -326,18 +328,32 @@
return this.mnemonicError?.toLowerCase().includes("couldn't find a user for the provided mnemonic") ?? false;
}

_isValidAddress(address: string) {
if (address.length === 66) {
return isAddress(address);
}

if (address.length === 64) {
return isAddress("0x" + address);
}

return false;
}

@Watch("mnemonic")
async checkMnemonic(mnemonic: string = this.mnemonic) {
this.validatingMnemonic = true;
this.mnemonicError = null;

if (!mnemonic) this.mnemonicError = "Mnemonic is required.";
else if (!validateMnemonic(mnemonic)) this.mnemonicError = "Mnemonic doesn't seem to be valid.";
if (!mnemonic) this.mnemonicError = "Mnemonic or Hex Seed is required.";
else if (!validateMnemonic(mnemonic) && !this._isValidAddress(mnemonic))
this.mnemonicError = "Mnemonic or Hex Seed doesn't seem to be valid.";
else {
try {
await getGrid(mnemonic);
} catch (err) {
this.mnemonicError = (err as any).message || "Couldn't connect to chain using the provided mnemonic.";
this.mnemonicError =
(err as any).message || "Couldn't connect to chain using the provided mnemonic or hex seed.";
}
}

Expand Down Expand Up @@ -412,7 +428,6 @@
public validateLoginPassword(value: string) {
if (!value) return "Password is required";
if (value.length < 6) return "Password must be at least 6 characters.";
console.log(localStorage.getItem(key));

const wallet = JSON.parse(localStorage.getItem(key) || "{}");
if (wallet.password !== md5(value)) return "Please provide a valid password.";
Expand Down Expand Up @@ -460,7 +475,7 @@
if (msg.toLowerCase().includes("couldn't find a user for the provided mnemonic")) {
this.activateAccountModal = true;
} else {
this.mnemonicError = msg || "Failed to connect mnemonic on grid.";
this.mnemonicError = msg || "Failed to connect mnemonic or hex seed on grid.";
}
} finally {
this.connecting = false;
Expand Down Expand Up @@ -569,7 +584,7 @@
size: 4096,
});
const grid = await getGrid(this.$store.state.profile.mnemonic);
await storeSSH(grid!, keys.publicKey);

Check warning on line 587 in packages/dashboard/src/components/TfChainConnector.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Forbidden non-null assertion
this.$store.state.profile.ssh = keys.publicKey;
downloadAsFile("id_rsa", keys.privateKey);
this.sshState = SSHState.None;
Expand All @@ -577,7 +592,7 @@
public async updateSSH() {
this.sshState = SSHState.Updating;
const grid = await getGrid(this.$store.state.profile.mnemonic);
await storeSSH(grid!, this.$store.state.profile.ssh);

Check warning on line 595 in packages/dashboard/src/components/TfChainConnector.vue

View workflow job for this annotation

GitHub Actions / lint (18.x)

Forbidden non-null assertion
this.sshState = SSHState.None;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<v-list-item-content>
<v-list-item-title> Uptime </v-list-item-title>
</v-list-item-content>
{{ node.uptime | secondToRedable }}
{{ node.uptime | toReadableDate }}
</v-list-item>
<v-divider />

Expand Down
8 changes: 4 additions & 4 deletions packages/dashboard/src/explorer/config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import Vue from "vue";
import VueApollo from "vue-apollo";

import dateFiler from "./filters/date";
import toHumanDate from "./filters/date";
import optionTitleFiler from "./filters/optionTitle";
import secondToRedable from "./filters/secondToRedable";
import toReadableDate from "./filters/toReadableDate";
import toTeraOrGigaOrPeta from "./filters/toTeraOrGigaOrPeta";
import apolloProvider from "./plugins/apollo";

Vue.use(VueApollo);
Vue.filter("date", dateFiler);
Vue.filter("date", toHumanDate);
Vue.filter("optionTitle", optionTitleFiler);
Vue.filter("toTeraOrGigaOrPeta", toTeraOrGigaOrPeta);
Vue.filter("secondToRedable", secondToRedable);
Vue.filter("toReadableDate", toReadableDate);

export const explorerConfigs: any = {
apolloProvider,
Expand Down
11 changes: 3 additions & 8 deletions packages/dashboard/src/explorer/filters/date.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
export default function dateFiler(value: number): string {
const formater = Intl.DateTimeFormat("en", {
timeStyle: "short",
dateStyle: "short",
// eslint-disable-next-line
} as any);
import moment from "moment";

// eslint-disable-next-line
return formater.format(new Date(value * 1000));
export default function toHumanDate(timeInSeconds: number): string {
return moment(timeInSeconds * 1000).format("M/D/YY, h:m A");
}
Loading
Loading