-
Notifications
You must be signed in to change notification settings - Fork 13
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
Merge to preprod #565
Merge to preprod #565
Changes from all commits
9bfb0ac
9d3d6a2
029ab3e
028563a
b069463
a5e9d02
26ef319
6b2c7fc
7bff03b
614e5a9
3710bb3
18b6f1c
29e1324
be08fea
e164676
d700aa2
88dd2fd
f3ecefe
4a98f86
1d8af13
e11d139
b8056f0
e1ac271
11f7378
458c0c1
cc08ea4
6065564
0a4489f
968c255
a2db174
c8fec16
4fafb6f
ad9ed28
e8dcae7
54631b7
f9dac47
c2744dd
9e8a9e1
45aac19
d36bc1b
02e2562
b7eaeca
d23f44b
763c2ae
14dc9d2
08e7325
9da3df6
5893ef1
f9bc230
eff6928
12d61f0
99d20ad
2a8c7ff
11c3933
afc15b0
318a189
7640bd9
0796772
3a53ed6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,7 @@ stopproxeus=pkill proxeus | |
startds=curl -s http://localhost:2115 > /dev/null || ( PROXEUS_DATA_DIR=$(1) docker-compose up -d document-service && touch $(1)/ds-started ) | ||
startnodes=curl -s http://localhost:8011 > /dev/null || (PROXEUS_PLATFORM_DOMAIN=http://$(DOCKER_GATEWAY):1323 NODE_CRYPTO_RATES_URL=http://localhost:8011 REGISTER_RETRY_INTERVAL=1 docker-compose -f docker-compose.yml -f docker-compose-extra.override.yml up -d node-crypto-forex-rates && touch $(1)/nodes-started ) | ||
startmongo=nc -z localhost 27017 2> /dev/null || (docker run -d -p 27017:27017 -p 27018:27018 -p 27019:27019 proxeus/mongo-dev-cluster && sleep 10 && touch $(1)/mongo-started) | ||
waitforproxeus=echo "Waiting for Proxeus to start" ; curl --head -X GET --retry 120 --retry-connrefused --retry-delay 1 --silent -o /dev/null http://localhost:1323 && echo "Proxeus started" || echo "Unable to start Proxeus" | ||
|
||
ifeq ($(coverage),true) | ||
COVERAGE_OPTS=-coverprofile artifacts/[email protected] -coverpkg="$(coverpkg)" | ||
|
@@ -197,6 +198,7 @@ test-ui: server ui | |
$(call startds,$(testdir)) | ||
$(call startnodes,$(testdir)) | ||
$(call startproxeus,$(testdir)) | ||
$(call waitforproxeus,$(testdir)) | ||
$(MAKE) -C test/e2e test; ret=$$?; \ | ||
$(stopproxeus); \ | ||
[ -e $(testdir)/ds-started ] && docker-compose down; \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -446,7 +446,7 @@ export default { | |
item.icon = 'view_quilt' | ||
} | ||
if (item.type === 'template') { | ||
item.iconFa = 'mdi mdi-file-xml' | ||
item.iconFa = 'mdi mdi-code-block-tags' | ||
} | ||
item.error = response.data[key].Error | ||
elements.push(item) | ||
|
@@ -1133,7 +1133,7 @@ function condition(){ | |
// enable inertial throwing | ||
inertia: false, | ||
onstart: function (event) { | ||
if (event.interaction.downEvent.button === 2) { | ||
if (event?.interaction?.downEvent?.button === 2) { | ||
return false | ||
} | ||
_.dragActive = true | ||
|
@@ -1181,17 +1181,16 @@ function condition(){ | |
_.dragCompPosition.left = (_.bcr.left) - _.dim.ml | ||
}, | ||
onmove: function (event, a, b, c, d) { | ||
if (event.interaction.downEvent.button === 2) { | ||
if (event?.interaction?.downEvent?.button === 2) { | ||
return false | ||
} | ||
_.mousePos.y = event.pageY | ||
_.mousePos.x = event.pageX | ||
_.tl.x += event.dx | ||
_.tl.y += event.dy | ||
_.tl.y = _.mousePos.y - _.dragCompPosition.top - _.dim.handleY | ||
_.tl.x = _.mousePos.x - _.dragCompPosition.left - _.dim.handleX | ||
_.$dragComp[0].style.webkitTransform = _.$dragComp[0].style.transform = 'translate(' + _.tl.x + 'px, ' + | ||
_.tl.y + 'px)' | ||
const translatePos = 'translate(' + _.tl.x + 'px, ' + _.tl.y + 'px)' | ||
_.$dragComp[0].style.webkitTransform = translatePos | ||
_.$dragComp[0].setAttribute('style', 'transform: ' + translatePos) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like you're improving the way nodes are being moved. Please document the change in the Pull Request. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original code prevents us from moving the nodes. I approve Slava's code with the disclaimer above. |
||
}, | ||
onend: function (e, a, b, c, d) { | ||
_.wasInside = false | ||
|
@@ -1292,7 +1291,7 @@ function condition(){ | |
user: 'fcn-usr node-icon mdi mdi-account', | ||
form: 'fcn-form node-icon mdi mdi-view-quilt', | ||
workflow: 'fcn-wflow node-icon mdi mdi-source-branch', | ||
template: 'fcn-tmpl node-icon mdi mdi-file-xml' | ||
template: 'fcn-tmpl node-icon mdi mdi-code-block-tags' | ||
}, | ||
// d={name:"name", detail:"detail", kind:"condition|user|form|workflow|template"}; | ||
_createFinderItem: function (d) { | ||
|
@@ -1569,7 +1568,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf48a', | ||
code: '', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like you're using the Unicode character here instead of the code-string. Why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @slavas490 says he tried to use the hexadecimal string, but it did not work. There seems to be a problem with an unsupported library. |
||
color: '#5353c0' | ||
}, | ||
events: { | ||
|
@@ -1622,7 +1621,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf48a', | ||
code: '', | ||
color: '#5150c0' | ||
}, | ||
events: { | ||
|
@@ -1675,7 +1674,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf339', | ||
code: '', | ||
color: '#5150c0' | ||
}, | ||
events: { | ||
|
@@ -1710,7 +1709,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf70B', | ||
code: '', | ||
color: '#f0a30a' | ||
}, | ||
events: { | ||
|
@@ -1771,7 +1770,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf62C', | ||
code: '', | ||
color: '#e40070' | ||
}, | ||
events: { | ||
|
@@ -1834,7 +1833,7 @@ function condition(){ | |
}, | ||
icon: { | ||
face: 'Material Design Icons', | ||
code: '\uf22E', | ||
code: '', | ||
color: '#ff30ec' | ||
}, | ||
events: { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some problem with this event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slava says the specs for the third party library we use for drag-and-drop (Interact.js) was changed some time ago, and we should ideally rewrite this piece of code. E.g.
start
andstop
notonstart
andonstop