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

Preprod to main for feature release v1.6.3 #537

Merged
merged 207 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 197 commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
104119b
Update README.md
sprotest Dec 16, 2022
1d4d920
Alternative chains support (#281)
tafonina Dec 16, 2022
5dccd27
update readme with chains list
tafonina Dec 16, 2022
c82051f
test negative scenario
tafonina Dec 16, 2022
1f20476
return goerli cobfig
tafonina Dec 16, 2022
3f3d883
remove console metamask error (#286)
tafonina Dec 19, 2022
c029847
Merge branch 'develop' into preprod
tafonina Jan 25, 2023
eb2d4a0
Merge pull request #1 from ProxeusApp/preprod
sprotest Jan 25, 2023
33f810e
Update README.md
sprotest Jan 31, 2023
a890af1
add console logs on default accounts setup and on sign request
Feb 3, 2023
42938d9
Merge pull request #3 from sprotest/feature/test-autodeploy
tafonina Feb 3, 2023
3edb833
Test autodeploy flow (#290)
tafonina Feb 3, 2023
eb86793
add more static js to Cache-Control
epadalkin Feb 21, 2023
20e0707
Merge pull request #4 from epadalkin/feature/fix_load_preview
tafonina Feb 22, 2023
e84518f
Merge pull request #5 from ProxeusApp/preprod
tafonina Feb 22, 2023
942a06b
Fix preview document bug (#295)
tafonina Feb 22, 2023
e5ad6bc
fix open prevuew
epadalkin Feb 23, 2023
1d5722f
Merge pull request #6 from epadalkin/feature/fix_load_preview
tafonina Feb 23, 2023
8a26ab7
Update docker-compose-cloud.override.yml
sprotest Feb 24, 2023
5fe455a
Merge pull request #7 from ProxeusApp/preprod
tafonina Feb 24, 2023
b4a3e86
Update docker-compose-cloud.override.yml
sprotest Feb 24, 2023
cbfc147
The Watchtower service will never be used (#296)
sprotest Feb 24, 2023
2cd2ee7
back merge master to preprod
Mar 31, 2023
7513ff3
Merge pull request #8 from ProxeusApp/preprod
tafonina Mar 31, 2023
17eca00
add configuration for polygon and update addresses
Mar 31, 2023
448e920
Merge pull request #9 from sprotest/feature/polygon
tafonina Mar 31, 2023
045c662
update configs atrribute for polygon
Mar 31, 2023
82d3a82
Merge pull request #10 from sprotest/feature/polygon
tafonina Mar 31, 2023
5e6e35f
Add polygon configs (#301)
tafonina Apr 3, 2023
454630d
Yarn update
loleg Apr 5, 2023
4471579
Deployment doc update
loleg Apr 5, 2023
8b61084
Better enc key generation
loleg Apr 17, 2023
9112e52
Merge branch 'main' of https://github.com/ProxeusApp/proxeus-core
loleg Apr 17, 2023
1b405ea
Go 1.18 in CircleCI
loleg May 22, 2023
ea29cb3
Go 1.18
loleg May 22, 2023
dd814e1
Go update
loleg May 23, 2023
9cd9639
Go update
loleg May 23, 2023
5dcc6b8
Vue-cli pinned to 4.x
loleg May 23, 2023
1bc53f6
CircleCI builder
loleg May 23, 2023
6456ccb
Add go-bindata install
loleg May 23, 2023
f175b54
Add gopath to CircleCI
loleg May 24, 2023
dfd80a6
CircleCI config, go install
loleg May 25, 2023
318346e
Go update, go-ethereum Azimir
loleg May 25, 2023
f26ef03
Go 1.20
loleg May 25, 2023
3d8255f
make fmt
loleg May 25, 2023
5361e88
Go-bindata again
loleg May 25, 2023
e9ac427
README
loleg May 25, 2023
3d8141b
Image based test-ui
loleg May 25, 2023
c2bbde4
Sync nodejs ver in test-ui
loleg May 25, 2023
1fb7c0d
Add libxtst6 library for Cypress
loleg May 25, 2023
30ffe0d
Add full deps for Cypress
loleg May 25, 2023
bbed874
Quickstart docs
loleg Jun 8, 2023
6691fb5
Documentation changes, Yarn update (#303)
loleg Jun 8, 2023
0d6bccc
update support for sopelia network in the code and docs
Jun 9, 2023
0d70290
Merge pull request #11 from sprotest/feature/sepolia-support
tafonina Jun 9, 2023
a24335a
Merge branch 'develop' into preprod
tafonina Jun 9, 2023
c7d7858
Merge branch 'main' into preprod
tafonina Jun 9, 2023
f7ab5b0
update go mod
Jun 9, 2023
6547457
Light script for Docker
loleg Jun 13, 2023
07edf75
Network usage notes
loleg Jun 13, 2023
31d7c8a
Go modules updated
loleg Jun 13, 2023
6482176
Feature/fix web3 method from ascii (#312)
tafonina Jun 13, 2023
b183b2a
Update from ascii call in web3 (#313)
tafonina Jun 13, 2023
f83ddf7
Update CircleCI build config
loleg Jun 14, 2023
5d9ec48
Merge branch 'preprod' of github.com:proxeusapp/proxeus-core into pre…
loleg Jun 14, 2023
4ec79e7
Merged
loleg Jun 26, 2023
74abc91
Cleaned up CircleCI, added version release
loleg Jun 26, 2023
25bf7b0
Yarn upgrade
loleg Jul 3, 2023
efabceb
Go update #316
loleg Jul 3, 2023
52ccbcb
Merged
loleg Jul 3, 2023
82beac2
Go modules
loleg Jul 3, 2023
578f756
Removed demo and staging from workflow
loleg Jul 3, 2023
9df4364
yarn lock conflicts resolve
Jul 20, 2023
e83e04a
Merged branch 318
loleg Aug 11, 2023
f317ceb
Updated Go mods, downgrading x/exp due to go-ethereum/issues/27894
loleg Aug 11, 2023
baf7ada
Merged main
loleg Aug 11, 2023
f0b5a60
Merge branch 'main' into preprod
loleg Aug 11, 2023
7885682
Go fix, Yarn upgrade
loleg Aug 11, 2023
5ebcb29
Revert to Debian Slim in Dockerfile
loleg Aug 11, 2023
d740ae9
Update Go modules (#323)
loleg Aug 18, 2023
0a7f154
Merge branch 'preprod' of github.com:proxeusapp/proxeus-core into pre…
loleg Aug 18, 2023
36e4d81
Merge branch 'main' into preprod
tafonina Aug 18, 2023
65cffa5
Merged
loleg Aug 21, 2023
db0d76b
Create dependabot.yml (#324)
loleg Aug 23, 2023
5745a6b
Merge branch 'main' into preprod
loleg Aug 24, 2023
7714089
Merged preprod
loleg Aug 24, 2023
f470d53
Database command
loleg Aug 28, 2023
5d0f59b
Added Handbook
loleg Aug 31, 2023
40f2c5c
Contributing and about
loleg Aug 31, 2023
7d77520
Handbook
loleg Aug 31, 2023
b005d9f
Improve getting started for users (#340)
Ibrahim-Halil-Kuray Sep 5, 2023
6e1842a
Fixes from s-pro (#349)
slavas490 Sep 13, 2023
90898b7
Merged
loleg Sep 20, 2023
6989dcf
Package updates
loleg Sep 21, 2023
2622438
Refreshing the Docker Compose set up
loleg Sep 21, 2023
0e39f90
Update quickstart.md (#365)
Ibrahim-Halil-Kuray Sep 21, 2023
5357911
Merge branch 'preprod' of github.com:ProxeusApp/proxeus-core into pre…
loleg Sep 21, 2023
ec25faf
Merged
loleg Sep 21, 2023
378ceb9
Merge branch 'main' of github.com:ProxeusApp/proxeus-core
loleg Sep 21, 2023
585bcca
Merged
loleg Sep 21, 2023
ce56d35
Fixed lint errors
loleg Sep 21, 2023
e1c3b7e
Add extra to Makefile in tests
loleg Sep 21, 2023
f9b8b2e
Oops mis-copied HTML code in SignatureRequest
loleg Sep 21, 2023
f24883d
Move forex-rates to cnode.override, Docs wording
loleg Sep 21, 2023
559cdcb
Order of chapters in Handbook (#387)
loleg Oct 18, 2023
a347dbe
Bump sass from 1.68.0 to 1.69.4 in /ui (#390)
dependabot[bot] Oct 20, 2023
ed674dd
Bump eslint-plugin-standard from 4.1.0 to 5.0.0 in /ui (#391)
dependabot[bot] Oct 20, 2023
9351241
Bump async from 2.6.4 to 3.2.4 in /ui (#394)
dependabot[bot] Oct 20, 2023
b382555
Installation guide (#396)
loleg Oct 20, 2023
51dbfe8
Bump @vue/eslint-config-standard from 4.0.0 to 5.1.2 in /ui (#400)
dependabot[bot] Oct 26, 2023
571c94a
Bump tippy.js from 2.6.0 to 6.3.7 in /ui (#399)
dependabot[bot] Oct 26, 2023
7e3d3e8
Bump ethereumjs-util from 5.2.1 to 7.1.5 in /ui (#398)
dependabot[bot] Oct 26, 2023
3b472cf
Bump eslint-plugin-vue from 9.17.0 to 9.18.1 in /ui (#408)
dependabot[bot] Nov 1, 2023
abcf6f3
Bump sass from 1.69.4 to 1.69.5 in /ui (#407)
dependabot[bot] Nov 1, 2023
9a5c09e
Server-side Verification of documents (#412)
tafonina Nov 3, 2023
b8295ab
fix invalid character, updates in BN lib (#413)
tafonina Nov 6, 2023
c9556f0
Bump @cypress/webpack-preprocessor from 3.0.1 to 4.1.5 in /ui (#417)
dependabot[bot] Nov 6, 2023
0dafa99
Go library updates (#427)
loleg Nov 16, 2023
662ab77
Merge branch 'main' into preprod
loleg Nov 16, 2023
53a2efa
Bump async from 3.2.4 to 3.2.5 in /ui (#415)
dependabot[bot] Nov 18, 2023
bc3d14a
Bump vue-cropperjs from 3.0.0 to 4.2.0 in /ui (#416)
dependabot[bot] Nov 18, 2023
2902484
Merge branch 'main' of github.com:ProxeusApp/proxeus-core
loleg Nov 18, 2023
0661fcb
Bump core-js from 3.32.2 to 3.33.3 in /ui (#431)
dependabot[bot] Nov 20, 2023
642c68b
Bump vue-tour from 1.6.0 to 2.0.0 in /ui (#430)
dependabot[bot] Nov 20, 2023
db0587e
Droplet support updates (#434)
tafonina Dec 1, 2023
28e4d24
Bump eslint-plugin-import from 2.28.1 to 2.29.0 in /ui (#437)
dependabot[bot] Dec 12, 2023
90b4edc
Bump golang.org/x/net from 0.18.0 to 0.19.0 (#442)
dependabot[bot] Dec 12, 2023
7056d33
Bump go.mongodb.org/mongo-driver from 1.13.0 to 1.13.1 (#444)
dependabot[bot] Dec 12, 2023
3dfcbab
Bump interactjs from 1.2.9 to 1.10.26 in /ui (#445)
dependabot[bot] Dec 12, 2023
b0c8c44
Bump vue-multiselect from 2.1.7 to 2.1.8 in /ui (#448)
dependabot[bot] Dec 18, 2023
b07619c
Bump core-js from 3.33.3 to 3.34.0 in /ui (#446)
dependabot[bot] Dec 18, 2023
33b9a3c
Bump axios from 0.21.4 to 1.6.2 in /ui (#449)
dependabot[bot] Dec 18, 2023
dbff8b0
Bump js-sha3 from 0.7.0 to 0.9.3 in /ui (#447)
dependabot[bot] Dec 18, 2023
d30f3c7
Merge branch 'main' of github.com:ProxeusApp/proxeus-core
loleg Dec 21, 2023
b92df69
Merged with main
loleg Dec 21, 2023
b60549b
Bump to Go 1.21
loleg Dec 22, 2023
785bc90
Bump follow-redirects from 1.15.3 to 1.15.4 in /ui (#463)
dependabot[bot] Jan 11, 2024
908c0c2
Bump vue and vue-template-compiler in /ui (#461)
dependabot[bot] Jan 11, 2024
611717e
Bump eslint-plugin-vue from 9.18.1 to 9.19.2 in /ui (#460)
dependabot[bot] Jan 11, 2024
64057d2
Bump eslint-plugin-import from 2.29.0 to 2.29.1 in /ui (#456)
dependabot[bot] Jan 11, 2024
e96cd95
Bump sortablejs from 1.15.0 to 1.15.1 in /ui (#457)
dependabot[bot] Jan 11, 2024
dbd9aa1
Bump github.com/robertkrimen/otto from 0.2.1 to 0.3.0 (#455)
dependabot[bot] Jan 11, 2024
307b844
Bump github.com/ethereum/go-ethereum from 1.13.5 to 1.13.8 (#454)
dependabot[bot] Jan 11, 2024
37553fb
Bump github.com/labstack/gommon from 0.4.1 to 0.4.2 (#453)
dependabot[bot] Jan 11, 2024
222202c
Merge branch 'main' of github.com:ProxeusApp/proxeus-core
loleg Jan 11, 2024
fec36c0
Upgrade backend to echo v4 (#388)
loleg Jan 12, 2024
61cdb0a
Bump moment from 2.29.4 to 2.30.1 in /ui (#466)
dependabot[bot] Jan 22, 2024
4e99153
Bump golang.org/x/crypto from 0.17.0 to 0.18.0 (#469)
dependabot[bot] Jan 22, 2024
6760592
Bump github.com/ethereum/go-ethereum from 1.13.8 to 1.13.10 (#470)
dependabot[bot] Jan 22, 2024
e039cbe
Bump golang.org/x/net from 0.19.0 to 0.20.0 (#471)
dependabot[bot] Jan 22, 2024
8f36917
Bump core-js from 3.34.0 to 3.35.1 in /ui (#480)
dependabot[bot] Jan 22, 2024
b280607
Bump github.com/labstack/echo/v4 from 4.11.2 to 4.11.4 (#472)
dependabot[bot] Jan 22, 2024
8f80657
Bump sass from 1.69.5 to 1.70.0 in /ui (#478)
dependabot[bot] Jan 22, 2024
7234fa3
Bump github.com/onsi/gomega from 1.30.0 to 1.31.1 (#476)
dependabot[bot] Jan 22, 2024
838b54e
Merged with main
loleg Jan 22, 2024
fa1c8a3
Bump github.com/ethereum/go-ethereum from 1.13.10 to 1.13.11 (#485)
dependabot[bot] Jan 29, 2024
889fae2
Bump sortablejs from 1.15.1 to 1.15.2 in /ui (#483)
dependabot[bot] Jan 29, 2024
d59748d
Bump eslint-plugin-vue from 9.19.2 to 9.20.1 in /ui (#482)
dependabot[bot] Jan 29, 2024
eed09f5
Bump axios from 1.6.2 to 1.6.7 in /ui (#487)
dependabot[bot] Feb 8, 2024
5585ce5
Bump eslint-plugin-vue from 9.20.1 to 9.21.1 in /ui (#486)
dependabot[bot] Feb 8, 2024
696a397
Bump @mdi/font from 2.8.94 to 7.4.47 in /ui (#494)
dependabot[bot] Feb 15, 2024
0297cde
Bump golang.org/x/crypto from 0.18.0 to 0.19.0 (#490)
dependabot[bot] Feb 15, 2024
ee7d7c4
Bump github.com/ethereum/go-ethereum from 1.13.11 to 1.13.12 (#492)
dependabot[bot] Feb 15, 2024
bb272de
Bump golang.org/x/net from 0.20.0 to 0.21.0 (#491)
dependabot[bot] Feb 15, 2024
8c1f0c4
Bump core-js from 3.35.1 to 3.36.0 in /ui (#498)
dependabot[bot] Feb 21, 2024
adc3d20
Bump go.mongodb.org/mongo-driver from 1.13.1 to 1.14.0 (#500)
dependabot[bot] Feb 21, 2024
3d27dce
Merged
loleg Feb 22, 2024
32c858c
Bump vue-flatpickr-component from 7.0.6 to 11.0.4 in /ui (#507)
dependabot[bot] Feb 29, 2024
4bc7549
Bump eslint-plugin-vue from 9.21.1 to 9.22.0 in /ui (#506)
dependabot[bot] Feb 29, 2024
634d976
Bump sass from 1.70.0 to 1.71.1 in /ui (#504)
dependabot[bot] Feb 29, 2024
0b74496
Bump github.com/ethereum/go-ethereum from 1.13.12 to 1.13.13 (#503)
dependabot[bot] Feb 29, 2024
b6e6681
Update docs cover page (#511)
loleg Feb 29, 2024
cef545e
Bump vue-multiselect from 2.1.8 to 2.1.9 in /ui (#519)
dependabot[bot] Mar 7, 2024
0bf93ec
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#517)
dependabot[bot] Mar 7, 2024
ee999c8
Bump github.com/ethereum/go-ethereum from 1.13.13 to 1.13.14 (#516)
dependabot[bot] Mar 7, 2024
0662f47
Bump golang.org/x/crypto from 0.19.0 to 0.20.0 (#515)
dependabot[bot] Mar 7, 2024
822e62d
Merged
loleg Mar 7, 2024
5370457
Bump github.com/onsi/gomega from 1.31.1 to 1.32.0 (#529)
dependabot[bot] Mar 29, 2024
8c92cb0
Bump golang.org/x/crypto from 0.20.0 to 0.21.0 (#520)
dependabot[bot] Mar 29, 2024
a1fbcf6
Bump vue-flatpickr-component from 11.0.4 to 11.0.5 in /ui (#522)
dependabot[bot] Mar 29, 2024
d78f32d
Bump axios from 1.6.7 to 1.6.8 in /ui (#526)
dependabot[bot] Mar 29, 2024
5ab9c32
Bump eslint-plugin-vue from 9.22.0 to 9.23.0 in /ui (#527)
dependabot[bot] Mar 29, 2024
bb44cc1
Bump golang.org/x/net from 0.21.0 to 0.22.0 (#521)
dependabot[bot] Mar 29, 2024
3fbf595
Bump google.golang.org/protobuf from 1.31.0 to 1.33.0 (#524)
dependabot[bot] Mar 29, 2024
74a0422
Bump follow-redirects from 1.15.5 to 1.15.6 in /ui (#525)
dependabot[bot] Mar 29, 2024
660f2cd
Bump eslint-plugin-vue from 9.23.0 to 9.24.0 in /ui (#536)
dependabot[bot] Apr 4, 2024
6bdbbac
Bump interactjs from 1.10.26 to 1.10.27 in /ui (#533)
dependabot[bot] Apr 4, 2024
fd4ab21
Bump sass from 1.71.1 to 1.72.0 in /ui (#534)
dependabot[bot] Apr 4, 2024
8648dfc
Merged
loleg Apr 4, 2024
7fa3fc3
Feature/placeholder node (#531)
slavas490 Apr 4, 2024
89d1936
Merge from develop to preprod (#514)
slavas490 Apr 4, 2024
f2f3654
Bump github.com/labstack/echo-contrib from 0.15.0 to 0.16.0 (#528)
dependabot[bot] Apr 4, 2024
b0a8bdf
Go mod tidy
loleg Apr 4, 2024
a2f0a6c
Make fmt
loleg Apr 4, 2024
24b385f
Added redirect to login test
loleg Apr 6, 2024
634c2bd
Go version 1.22
loleg Apr 6, 2024
3841dc2
Echo test exit value
loleg Apr 6, 2024
31adb3c
Bump github.com/labstack/echo-contrib from 0.16.0 to 0.17.0 (#545)
dependabot[bot] Apr 18, 2024
1552402
Bump go.mongodb.org/mongo-driver from 1.14.0 to 1.15.0 (#544)
dependabot[bot] Apr 18, 2024
378c2bb
Bump sass from 1.72.0 to 1.75.0 in /ui (#543)
dependabot[bot] Apr 18, 2024
4177403
Bump golang.org/x/net from 0.22.0 to 0.24.0 (#542)
dependabot[bot] Apr 18, 2024
25c7f6f
Bump core-js from 3.36.0 to 3.36.1 in /ui (#540)
dependabot[bot] Apr 18, 2024
e21a424
Bump vue-select from 2.6.4 to 3.20.3 in /ui (#539)
dependabot[bot] Apr 18, 2024
baed775
Merge branch 'preprod' of github.com:ProxeusApp/proxeus-core into pre…
loleg Apr 18, 2024
c6f89a4
Go package updates
loleg Apr 18, 2024
d547b1c
Reverted baed77576c
loleg Apr 18, 2024
f869f1d
Merged with main
loleg Apr 18, 2024
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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.1
parameters:
golang-tag:
type: string
default: "1.21"
default: "1.22"
nodejs-ver:
type: integer
default: 16
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL:= /bin/bash
DEBUG_FLAG?=false
GO_VERSION=1.21
GO_VERSION=1.22

ifeq ($(DEBUG), "true")
BINDATA_OPTS="-debug"
Expand Down Expand Up @@ -159,7 +159,8 @@ fmt:

.PHONY: test
test: generate
go test $(COVERAGE_OPTS) ./main/... ./sys/... ./storage/... ./service/...
go test $(COVERAGE_OPTS) ./main/... ./sys/... ./storage/... ./service/...; ret=$$?; \
echo $$ret

.PHONY: test-integration
test-integration:
Expand Down
Binary file modified demo/restore_db/i18n
Binary file not shown.
18 changes: 10 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/ProxeusApp/proxeus-core

go 1.20
go 1.21

toolchain go1.22.0

require (
github.com/SparkPost/gosparkpost v0.2.0
Expand All @@ -20,7 +22,7 @@ require (
github.com/h2non/filetype v1.1.3
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/labstack/gommon v0.4.2
github.com/onsi/gomega v1.31.1
github.com/onsi/gomega v1.32.0
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/pkg/errors v0.9.1
github.com/robertkrimen/otto v0.3.0
Expand All @@ -30,8 +32,8 @@ require (
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
go.etcd.io/bbolt v1.3.8 // indirect
golang.org/x/crypto v0.20.0
golang.org/x/net v0.21.0
golang.org/x/crypto v0.21.0
golang.org/x/net v0.22.0
gopkg.in/gavv/httpexpect.v2 v2.16.0
)

Expand All @@ -43,7 +45,7 @@ require (
github.com/gorilla/context v1.1.2 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/klauspost/compress v1.17.3 // indirect
github.com/labstack/echo-contrib v0.15.0
github.com/labstack/echo-contrib v0.16.0
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/sergi/go-diff v1.3.1 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
Expand All @@ -54,7 +56,7 @@ require (
github.com/yusufpapurcu/wmi v1.2.3 // indirect
golang.org/x/image v0.14.0 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/protobuf v1.31.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
)

require (
Expand All @@ -78,7 +80,7 @@ require (
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.3+incompatible // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20231101202521-4ca4178f5c7a // indirect
Expand All @@ -102,7 +104,7 @@ require (
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.16.1 // indirect
Expand Down
88 changes: 66 additions & 22 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main/www/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func redirectToLogin(c echo.Context) error {
if isAjax {
return echo.ErrUnauthorized
}
return c.Redirect(http.StatusTemporaryRedirect, "/login")
return c.Redirect(http.StatusTemporaryRedirect, "/login?redirect="+req.URL.Path)
}

func getURI(host, url string) string {
Expand Down
2 changes: 1 addition & 1 deletion service/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (me *DefaultDocumentService) Edit(auth model.Auth, userId string, formInput
if !ok {
return ErrUnableToEdit
}
if len(fName) >= 80 || !filenameRegex.MatchString(fName) {
if len(fName) > 80 || !filenameRegex.MatchString(fName) {
return ErrUnableToEdit
}
usrDataItem, err := userDataDB().Get(auth, userId)
Expand Down
59 changes: 58 additions & 1 deletion sys/workflow/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ func (me *Engine) setupNodes(ctx *context) error {
if len(me.nodeImpls) == 0 {
return ErrNodeImplementationNotProvided
}

for _, item := range ctx.flow.Nodes {
item.internalNode = item.isCondition() || item.isWorkflow()
item.internalNode = item.isCondition() || item.isWorkflow() || item.isPlaceholder()
if !item.internalNode {
if s, ok := me.nodeImpls[item.Type]; ok && s.InitImplFunc != nil {
item.new = s.InitImplFunc
Expand All @@ -319,6 +320,62 @@ func (me *Engine) setupNodes(ctx *context) error {
return nil
}

func (me *Engine) removeUselessNodes(ctx *context) error {
uselessConnections := make(map[string]*Connection, 0)

for name, item := range ctx.flow.Nodes {
if !item.isPlaceholder() {
continue
}

for _, conn := range item.Connections {
correctConnection := conn
currentNode := ctx.flow.Nodes[correctConnection.NodeID]

for currentNode.isPlaceholder() {
if len(currentNode.Connections) > 0 {
correctConnection = currentNode.Connections[0]
currentNode = ctx.flow.Nodes[correctConnection.NodeID]
} else {
break
}
}

uselessConnections[name] = correctConnection
}
}

for _, item := range ctx.flow.Nodes {
if item.isPlaceholder() {
continue
}

for i := 0; i < len(item.Connections); i++ {
conn := item.Connections[i]

if val, ok := uselessConnections[conn.NodeID]; ok {
item.Connections[i] = val
}
}
}

if val, ok := uselessConnections[ctx.flow.Start.NodeID]; ok {
ctx.flow.Start.NodeID = val.NodeID
}

filteredNodes := make(map[string]*Node, 0)

for name, item := range ctx.flow.Nodes {
if !item.isPlaceholder() {
filteredNodes[name] = item
}
}

ctx.flow.Nodes = filteredNodes

return nil
}

func (me *Engine) execute(nn *Node, considerSteps bool) (proceed bool, err error) {
nn.focus()
if nn.internalNode {
Expand Down
4 changes: 4 additions & 0 deletions sys/workflow/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func (n *Node) isWorkflow() bool {
return n.Type == "workflow"
}

func (n *Node) isPlaceholder() bool {
return n.Type == "placeholder"
}

func (me *Node) getImpl() (NodeIF, error) {
//instance is still valid for reuse
if me.impl != nil {
Expand Down
13 changes: 12 additions & 1 deletion sys/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ func newWorkflow(wf *Workflow, engine *Engine, parent *context) (*context, error
if wf == nil {
return nil, ErrWorkflowMissing
}

if wf.Flow == nil || wf.Flow.Start == nil || wf.Flow.Start.NodeID == "" {
return nil, ErrStartNodeMissing
}

me := context{
id: "root",
flow: wf.Flow,
Expand All @@ -84,11 +86,18 @@ func newWorkflow(wf *Workflow, engine *Engine, parent *context) (*context, error
engine: engine,
}

err := engine.setupNodes(&me)
err := engine.removeUselessNodes(&me)
if err != nil {
return nil, err
}

err = engine.setupNodes(&me)
if err != nil {
return nil, err
}

me.start()

return &me, nil
}

Expand Down Expand Up @@ -122,6 +131,8 @@ func (me *context) resolve(n *Node) error {
return err
}
return me.resolve(nn)
} else if n.isPlaceholder() {
return nil
} else if n.isWorkflow() {
return me.stepIntoWorkflow(n)
}
Expand Down
6 changes: 5 additions & 1 deletion test/e2e/cypress/integration/0_powerup.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ describe(`Power up on ${url}`, () => {

it('should bring to home page after saving with default values', () => {
cy.get('button.btn-primary').eq(2).click()

cy.location('pathname', {
timeout: 60000
}).should('eq', '/');
})

})
})
2 changes: 1 addition & 1 deletion test/e2e/cypress/integration/1_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe(`User signup & login at ${url}`, () => {

it('should remove account and logout when clicking again', () => {
cy.get('.btn-danger').click()
cy.url().should('eq', `${url}/login`)
cy.url().should('eq', `${url}/login?redirect=%2Fadmin%2Fworkflow`)
})
})
})
Expand Down
10 changes: 5 additions & 5 deletions ui/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@proxeus/wallet": "1.0.0",
"ajv": "^6.5.2",
"async": "^3.2.5",
"axios": "^1.6.7",
"axios": "^1.6.8",
"babel-runtime": "^6.26.0",
"bootstrap": "^4.1.2",
"bootstrap-vue": "2.0.0-rc.12",
Expand All @@ -32,13 +32,13 @@
"he": "^1.2.0",
"html-svg-connect": "^2.0.0",
"human-standard-token-abi": "^2.0.0",
"interactjs": "1.10.26",
"interactjs": "1.10.27",
"jquery": "^3.5.0",
"jquery-ui": "^1.13.2",
"js-sha3": "^0.9.3",
"moment": "^2.30.1",
"popper.js": "^1.14.4",
"sass": "^1.71.1",
"sass": "^1.72.0",
"sortablejs": "^1.15.2",
"tippy.js": "^6.3.7",
"underscore": "^1.8.3",
Expand All @@ -56,7 +56,7 @@
"vue-draggable": "^2.0.6",
"vue-dynamic": "0.2.1",
"vue-error-page": "^1.1.5",
"vue-flatpickr-component": "^11.0.4",
"vue-flatpickr-component": "^11.0.5",
"vue-headful": "^2.0.1",
"vue-moment": "^4.0.0",
"vue-multiselect": "^2.1.9",
Expand Down Expand Up @@ -92,7 +92,7 @@
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-vue": "^9.22.0",
"eslint-plugin-vue": "^9.24.0",
"file-loader": "^3.0.1",
"less": "^3.8.1",
"less-loader": "^4.1.0",
Expand Down
4 changes: 4 additions & 0 deletions ui/core/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default {
window.$root = this.$root
this.$root.$on('service-on', this.onServiceOn)
this.$root.$on('service-off', this.onServiceOff)

if (!this.app.checkUserHasSession()) {
this.app.redirectToLogin(window.location.pathname)
}
},
beforeDestroy () {
this.$root.$off('service-on', this.onServiceOn)
Expand Down
14 changes: 12 additions & 2 deletions ui/core/src/DocumentApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export default {
created () {
this.$root.$on('service-on', this.onServiceOn)
this.$root.$on('service-off', this.onServiceOff)

if (!this.app.checkUserHasSession()) {
this.app.redirectToLogin(window.location.pathname)
}
},
beforeDestroy () {
this.$root.$off('service-on', this.onServiceOn)
Expand Down Expand Up @@ -107,13 +111,19 @@ export default {
color: $primary;
}

body {
overflow: hidden;
}

.navbar h1 {
margin-bottom: 0;
}

.app-main {
@media (max-width: 767px) {
max-width: 100% !important;
max-width: calc(100% - 265px);

@media (max-width: 979px) {
max-width: calc(100% - 80px);
}
}

Expand Down
Loading