Merge branch 'develop' of https://github.com/Superalgos/Superalgos into develop

This commit is contained in:
primoz990 committed 2021-11-03 08:05:03 +01:00
commit a28d1064cf
23 files changed
+83116 -69142

No files matched your search

+5 -3
View File
@@ -1,6 +1,8 @@
Data-Storage
Log-Files
My-Workspaces
**/Data-Storage
**/My-Data-Storage
**/Log-Files
**/My-Log-Files
**/My-Workspaces
debug.log
*.db
+40 -11
View File
@@ -1,40 +1,69 @@
name: Build/release Binaries
on:
push:
pull_request:
branches: [master]
tags:
- '*'
release:
types: [published, created, edited]
#release:
# types: [published, created]
workflow_dispatch:
jobs:
release:
runs-on: ${{ matrix.os }}
create-release:
runs-on: ubuntu-latest
steps:
- name: Download a file
run: curl "https://raw.githubusercontent.com/${{ github.repository }}/master/package.json" -o package.json
- name: get-version
id: version
uses: nyaa8/package-version@v1
with:
path: './package.json'
- name: Create release
id: create_release
uses: viperproject/create-nightly-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.PACKAGE_VERSION }}
release_name: Superalgos-v${{ env.PACKAGE_VERSION }}
build-release:
runs-on: ${{ matrix.os }}
needs: create-release
strategy:
matrix:
os: [windows-latest, macos-latest]
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v2
with:
ref: develop
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
- name: get-version
id: version
uses: nyaa8/package-version@v1
with:
path: './package.json'
- name: Build/release Electron app
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
# (No need to define this secret in the repo settings)
github_token: ${{ secrets.github_token }}
args: "-c.extraMetadata.main=electron-wrapper.js -c build/electron-builder.json"
args: "-c.extraMetadata.version=${{ env.PACKAGE_VERSION }} -c build/electron-builder.json -p always"
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/') }}
# release: ${{ startsWith(github.ref, 'refs/tags/v') }}
release: true
-2
View File
@@ -63,8 +63,6 @@ jobs:
path: './package.json'
- name: Build/release Electron app
#env:
# DATE: ${{ steps.date.outputs.date }}
uses: samuelmeuli/action-electron-builder@v1
with:
# GitHub token, automatically provided to the action
+1 -1
View File
@@ -642,7 +642,7 @@ exports.newHttpInterface = function newHttpInterface() {
{
// If running the electron app do not try to get git tool. I don't allow it.
if (process.env.SA_MODE === 'gitDisable') {
console.log('[WARNING] No contributions on binary distributions. Do manual installation')
console.log('[WARN] No contributions on binary distributions. Do manual installation')
break
}
switch (requestPath[2]) { // switch by command
+5 -3
View File
@@ -290,7 +290,7 @@ exports.newWeb3Server = function newWeb3Server() {
console.log('----------------------------------------------------------------------------------------------')
for (let i = 0; i < paymentsArray.length; i++) {
await PL.projects.foundations.utilities.asyncFunctions.sleep(10000)
await PL.projects.foundations.utilities.asyncFunctions.sleep(15000)
let payment = paymentsArray[i]
await sendTokens(
i + 1,
@@ -360,11 +360,13 @@ exports.newWeb3Server = function newWeb3Server() {
transaction.sign(privateKeyBuffer)
console.log('Transaction:', rawTransaction)
const result = await web3.eth.sendSignedTransaction('0x' + transaction.serialize().toString('hex'))
let result
result = await web3.eth.sendSignedTransaction('0x' + transaction.serialize().toString('hex'))
.catch(err => {
console.log('[ERROR] sendSignedTransaction -> err =' + JSON.stringify(err))
})
console.log('Result:', result)
return result
} catch (err) {
@@ -183,7 +183,6 @@ function newEducationTutorialSpace() {
checkPressButton()
checkGif()
checkImage()
//checkVid()
checkDocumentation()
checkWorkspaces()
checkSlider()
File diff suppressed because it is too large. Load diff
@@ -10,7 +10,14 @@
{
"style": "Title",
"text": "About This Tutorial",
"updated": 1617114477974
"updated": 1617114477974,
"translations": [
{
"language": "DE",
"text": "Über dieses Tutorial:",
"updated": 1635726127122
}
]
},
{
"style": "List",
@@ -451,9 +451,16 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) {
function getFileViaHTTP(filePath, callback, callBackFunction) {
try {
/* The filePath received is the one that is needed to fetch data from with fs. To do it via http we need to remove the prefix that includes this: ./Data-Storage/ */
filePath = filePath.substring(15, filePath.length)
/*
The filePath received is the one that is needed to fetch data from with fs. To do it via http we need to remove the
prefix that includes this: ./Data-Storage/
*/
let pathArray = filePath.split('/')
let indexmax = pathArray.indexOf('My-Data-Storage') // TODO: get rid of hardcoded path name
for (var i = 0; i <= indexmax; i++) {
pathArray.shift()
}
filePath = pathArray.join('/')
let http = SA.nodeModules.http
let url = 'http://' + host +
@@ -506,4 +513,4 @@ exports.newFileStorage = function newFileStorage(processIndex, host, port) {
callBackFunction(TS.projects.foundations.globals.standardResponses.DEFAULT_RETRY_RESPONSE);
}
}
}
}
@@ -596,261 +596,6 @@
"name": "New Votes And Claims Programs",
"config": " \"codeName\": \"EvaMaria70\"",
"project": "Governance",
"votingProgram": {
"type": "Voting Program",
"name": "New Voting Program",
"config": "{}",
"project": "Governance",
"votesSwitch": [
{
"type": "Votes Switch",
"name": "New Votes Switch",
"config": "{}",
"project": "Governance",
"votesSwitch": [],
"claimVotesSwitch": [
{
"type": "Claim Votes Switch",
"name": "New Claim Votes Switch",
"config": "{\"percentage\": 70}",
"project": "Governance",
"claimVotesSwitch": [],
"positionClaimVotes": [
{
"type": "Position Claim Vote",
"name": "gustavohcorradi Team Leader Non-Tech-Users Community Team",
"config": "{}",
"project": "Governance",
"id": "2de8d1b5-3d4f-4e2f-819b-1981ce4b6ce5",
"savedPayload": {
"position": {
"x": 32549.5766089682,
"y": 13621.9850085437
},
"targetPosition": {
"x": 32575.458513478454,
"y": 13718.577591172607
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "Position Contribution Claim",
"name": "Team Leader Non-Tech-Users Community Team",
"id": "1f64f90f-61a4-4592-bc05-3f5de5313683"
},
"referenceParentCombinedNodePath": [
[
"gustavohcorradi",
"User Profile",
"Governance",
"96ccf2bc-e544-4b27-aa23-a7a734798fb4"
],
[
"New Token Power Switch",
"Token Power Switch",
"Governance",
"b70247f5-4442-4433-b35f-aa64a2f7c174"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs",
"Governance",
"b7006f04-6506-4871-a5e1-e28c2c86d7b4"
],
[
"New Claims Program",
"Claims Program",
"Governance",
"87c55f3a-5d89-469c-90c0-798d369605d5"
],
[
"New Position Claims Folder",
"Position Claims Folder",
"Governance",
"061bd94b-488e-4b40-8f89-fc5176407ec8"
],
[
"Team Leader Non-Tech-Users Community Team",
"Position Contribution Claim",
"Governance",
"1f64f90f-61a4-4592-bc05-3f5de5313683"
]
]
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "c093bb55-09a2-4a0a-a938-a2199fbf3dde",
"savedPayload": {
"position": {
"x": 32575.458513478454,
"y": 13718.577591172607
},
"targetPosition": {
"x": 32614.281370243832,
"y": 13863.466465115967
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
{
"type": "Claim Votes Switch",
"name": "New Claim Votes Switch",
"config": "{}",
"project": "Governance",
"claimVotesSwitch": [],
"positionClaimVotes": [
{
"type": "Position Claim Vote",
"name": "",
"config": "{}",
"project": "Governance",
"id": "0221e1d1-bfc8-466c-85d8-93b3817793b6",
"savedPayload": {
"position": {
"x": 32976.50355510223,
"y": 13960.523607029412
},
"targetPosition": {
"x": 32759.170244187193,
"y": 13902.289321881346
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "322b5197-b305-45d3-aa80-8965eff51031",
"savedPayload": {
"position": {
"x": 32759.170244187193,
"y": 13902.289321881346
},
"targetPosition": {
"x": 32614.281370243832,
"y": 13863.466465115967
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"weightVotesSwitch": [],
"userProfileVotesSwitch": [],
"id": "28bd3c08-c744-448d-89f4-13625760525c",
"savedPayload": {
"position": {
"x": 32614.281370243832,
"y": 13863.466465115967
},
"targetPosition": {
"x": 32543.570692125177,
"y": 13934.177143234621
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "e8352d13-34e8-4e45-b0b8-d81fe4ba9b1d",
"savedPayload": {
"position": {
"x": 32614.281370243832,
"y": 14004.887821353275
},
"targetPosition": {
"x": 32543.570692125177,
"y": 13934.177143234621
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "2e3ed710-d8ed-4418-bc07-52462f82403e",
"savedPayload": {
"position": {
"x": 32543.570692125177,
"y": 13934.177143234621
},
"targetPosition": {
"x": 32398.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 3,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"claimsProgram": {
"type": "Claims Program",
"name": "New Claims Program",
@@ -868,18 +613,18 @@
"positionContributionClaims": [
{
"type": "Position Contribution Claim",
"name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart Translations Team",
"name": "5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina Translations Team",
"config": "{}",
"project": "Governance",
"id": "7ed8d42e-a28d-4093-96c8-bc8bf6871404",
"savedPayload": {
"position": {
"x": 32662.577661558284,
"y": 13876.407417371092
"x": 32628.585628749483,
"y": 13811.397459621556
},
"targetPosition": {
"x": 32688.459566068537,
"y": 13973
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -894,7 +639,7 @@
},
"referenceParent": {
"type": "Position",
"name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart",
"name": "5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina",
"id": "6ed65be6-de6f-49a1-9c04-d2114e8763a1"
},
"referenceParentCombinedNodePath": [
@@ -923,7 +668,7 @@
"0cd21223-d49a-45b1-af83-ec2a31f8caaf"
],
[
"4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart",
"5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina",
"Position",
"Governance",
"6ed65be6-de6f-49a1-9c04-d2114e8763a1"
@@ -939,12 +684,12 @@
"id": "c2c7fd17-ea3d-41f9-a2fd-97fb2e0f5f09",
"savedPayload": {
"position": {
"x": 32785.05214869745,
"y": 13947.118095489748
"x": 32765.188169127927,
"y": 13848
},
"targetPosition": {
"x": 32688.459566068537,
"y": 13973
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -1004,12 +749,12 @@
"id": "223537f1-53b1-4e65-8ba4-b98e2a6c3a14",
"savedPayload": {
"position": {
"x": 32714.34147057879,
"y": 14069.592582628908
"x": 32728.585628749483,
"y": 13984.602540378444
},
"targetPosition": {
"x": 32688.459566068537,
"y": 13973
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -1071,12 +816,12 @@
"id": "01e4c26e-e6a4-4688-bf6c-3c35fda086b8",
"savedPayload": {
"position": {
"x": 32688.459566068537,
"y": 13973
"x": 32678.585628749483,
"y": 13898
},
"targetPosition": {
"x": 32543.570692125177,
"y": 14011.822856765379
"x": 32548.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1099,12 +844,12 @@
"id": "38c01ff9-58e5-4827-927d-c700aaf8205f",
"savedPayload": {
"position": {
"x": 32569.45259663543,
"y": 14108.415439394286
"x": 32598.681818181816,
"y": 14059.602540378444
},
"targetPosition": {
"x": 32543.570692125177,
"y": 14011.822856765379
"x": 32548.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1122,8 +867,8 @@
"id": "3e15e7ab-6a1b-4a71-adbc-6fafbf6d9114",
"savedPayload": {
"position": {
"x": 32543.570692125177,
"y": 14011.822856765379
"x": 32548.681818181816,
"y": 13973
},
"targetPosition": {
"x": 32398.681818181816,
@@ -1396,7 +1141,7 @@
"y": 13973
},
"targetPosition": {
"x": 31818.181818181816,
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
@@ -1419,11 +1164,11 @@
"id": "f95822af-6480-47f6-9f64-93e3b0da64d5",
"savedPayload": {
"position": {
"x": 31668.181818181816,
"x": 22577.272727272728,
"y": 14000.000000000002
},
"targetPosition": {
"x": 31818.181818181816,
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
@@ -1442,17 +1187,17 @@
"id": "75a78d74-93f3-44c5-a96a-5b2b9f730afe",
"savedPayload": {
"position": {
"x": 31818.181818181816,
"x": 22727.272727272728,
"y": 14000.000000000002
},
"targetPosition": {
"x": 31818.181818181816,
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 2,
"arrangementStyle": 0
File diff suppressed because it is too large. Load diff
@@ -16000,23 +16000,33 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Pools"
"Pools",
"Governance",
"6f0aed87-db13-4818-bfe6-68abc463ebec"
],
[
"Governance Programs",
"Pool Class"
"Pool Class",
"Governance",
"4fbb05ee-d7a0-43a7-9983-9fae7a7e4848"
],
[
"Community Building Programs",
"Pool Class"
"Pool Class",
"Governance",
"ef1d7fc5-c776-4af7-8ae6-86a3445dca4b"
],
[
"Support Program",
"Pool Class"
"Pool Class",
"Governance",
"174e7d3b-fe3c-4fb1-825c-4ea488d82171"
],
[
"Support Rewards",
"Pool"
"Pool",
"Governance",
"c41497c5-7440-4ebd-aabb-fbc3d022136b"
]
]
}
@@ -16055,23 +16065,33 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Pools"
"Pools",
"Governance",
"6f0aed87-db13-4818-bfe6-68abc463ebec"
],
[
"Governance Programs",
"Pool Class"
"Pool Class",
"Governance",
"4fbb05ee-d7a0-43a7-9983-9fae7a7e4848"
],
[
"Community Building Programs",
"Pool Class"
"Pool Class",
"Governance",
"ef1d7fc5-c776-4af7-8ae6-86a3445dca4b"
],
[
"Support Program",
"Pool Class"
"Pool Class",
"Governance",
"174e7d3b-fe3c-4fb1-825c-4ea488d82171"
],
[
"Support Bonus",
"Pool"
"Pool",
"Governance",
"6625953a-6026-4686-9091-2796fd08b9a7"
]
]
}
@@ -16109,19 +16129,27 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Pools"
"Pools",
"Governance",
"6f0aed87-db13-4818-bfe6-68abc463ebec"
],
[
"Governance Programs",
"Pool Class"
"Pool Class",
"Governance",
"4fbb05ee-d7a0-43a7-9983-9fae7a7e4848"
],
[
"Community Building Programs",
"Pool Class"
"Pool Class",
"Governance",
"ef1d7fc5-c776-4af7-8ae6-86a3445dca4b"
],
[
"Support Program",
"Pool Class"
"Pool Class",
"Governance",
"174e7d3b-fe3c-4fb1-825c-4ea488d82171"
]
]
}
@@ -17405,7 +17433,7 @@
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,702 @@
{
"type": "User Profile",
"name": "edwardsjohn",
"config": "{\n \"signature\": {\n \"message\": \"edwardsjohn\",\n \"messageHash\": \"0x88368164260755b1c46adf550f43c8e66ac0e0c43d69360fee262a3ea95c5e49\",\n \"v\": \"0x1b\",\n \"r\": \"0xe4af1c033447006fc70db0caf9e64dc6a6f28f62a844487d00e9e87ec123fe92\",\n \"s\": \"0x17b390374806695a023bf505f86155feeaf5e9d2a42134aa6fc7a574762cdb4a\",\n \"signature\": \"0xe4af1c033447006fc70db0caf9e64dc6a6f28f62a844487d00e9e87ec123fe9217b390374806695a023bf505f86155feeaf5e9d2a42134aa6fc7a574762cdb4a1b\"\n },\n \"codeName\": \"edwardsjohn\"\n}",
"project": "Governance",
"tokenPowerSwitch": {
"type": "Token Power Switch",
"name": "New Token Power Switch",
"config": "{}",
"project": "Governance",
"tokenPowerSwitch": [],
"onboardingPrograms": {
"type": "Onboarding Programs",
"name": "New Onboarding Programs",
"config": "{\n \"percentage\": 0\n}",
"project": "Governance",
"airdropProgram": {
"type": "Airdrop Program",
"name": "New Airdrop Program",
"config": "{}",
"project": "Governance",
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "e8dae561-9546-4cdf-bc63-955492bc6691",
"savedPayload": {
"position": {
"x": 3428.688524590164,
"y": 22870.577136594
},
"targetPosition": {
"x": 3578.688524590164,
"y": 23130.384757729335
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "cc568e71-ce62-4066-acfd-c964d1ce93d3",
"savedPayload": {
"position": {
"x": 3578.688524590164,
"y": 23130.384757729335
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23390.192378864667
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"githubProgram": {
"type": "Github Program",
"name": "New Github Program",
"config": "{}",
"project": "Governance",
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "c3312eaa-7883-466c-9490-494018669967",
"savedPayload": {
"position": {
"x": 4328.688524590164,
"y": 23390.192378864667
},
"targetPosition": {
"x": 4028.688524590164,
"y": 23390.192378864667
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "1444ae17-67d7-4deb-a54f-41f21557eb0b",
"savedPayload": {
"position": {
"x": 4028.688524590164,
"y": 23390.192378864667
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23390.192378864667
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "e4de4ddd-8974-45d2-b4d4-57fa43c55b20",
"savedPayload": {
"position": {
"x": 3728.688524590164,
"y": 23390.192378864667
},
"targetPosition": {
"x": 3578.688524590164,
"y": 23650
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"communityBuildingPrograms": {
"type": "Community Building Programs",
"name": "New Community Building Programs",
"config": "{}",
"project": "Governance",
"referralProgram": {
"type": "Referral Program",
"name": "New Referral Program",
"config": "{}",
"project": "Governance",
"userReferrers": [
{
"type": "User Referrer",
"name": "piyanthak",
"config": "{}",
"project": "Governance",
"id": "611e34f6-a242-40e9-aa40-4b617afaf693",
"savedPayload": {
"position": {
"x": 4791.689238685311,
"y": 23594.932464466023
},
"targetPosition": {
"x": 4325.401661811128,
"y": 23972.524699095924
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "piyanthak",
"id": "b1ce221b-2752-4419-ae53-8410e8a93798"
},
"referenceParentCombinedNodePath": [
[
"piyanthak",
"User Profile"
]
]
}
}
],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "7b8aaf22-b4c5-4a41-934c-9e70f6dadd23",
"savedPayload": {
"position": {
"x": 4922.114799032092,
"y": 24035.241777056515
},
"targetPosition": {
"x": 4325.401661811128,
"y": 23972.524699095924
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "72175689-9400-4a20-af08-caf9fd722726",
"savedPayload": {
"position": {
"x": 4702.99389644103,
"y": 24438.812275970107
},
"targetPosition": {
"x": 4325.401661811128,
"y": 23972.524699095924
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "174afe53-f715-49d2-9bec-8315b66178b6",
"savedPayload": {
"position": {
"x": 4325.401661811128,
"y": 23972.524699095924
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23909.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 2,
"distanceToParent": 5,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"supportProgram": {
"type": "Support Program",
"name": "New Support Program",
"config": "{}",
"project": "Governance",
"userSupporters": [
{
"type": "User Supporter",
"name": "piyanthak",
"config": "{}",
"project": "Governance",
"id": "b9102510-5dca-45f6-8468-2881e13aef42",
"savedPayload": {
"position": {
"x": 4364.2124689164775,
"y": 23876.50122253199
},
"targetPosition": {
"x": 4063.1036960549914,
"y": 24210.91639399682
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "piyanthak",
"id": "b1ce221b-2752-4419-ae53-8410e8a93798"
},
"referenceParentCombinedNodePath": [
[
"piyanthak",
"User Profile"
]
]
}
}
],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "d2424ade-caf3-45c9-aa76-54641856dd42",
"savedPayload": {
"position": {
"x": 4397.518867519819,
"y": 24512.025166858308
},
"targetPosition": {
"x": 4063.1036960549914,
"y": 24210.91639399682
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "f5666875-73ca-469c-be15-0172f36b0c1d",
"savedPayload": {
"position": {
"x": 3761.994923193505,
"y": 24545.33156546165
},
"targetPosition": {
"x": 4063.1036960549914,
"y": 24210.91639399682
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "84ed7be0-9c8c-4e05-b52c-91ebdf0a0bbe",
"savedPayload": {
"position": {
"x": 4063.1036960549914,
"y": 24210.91639399682
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23909.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 2,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"mentorshipProgram": {
"type": "Mentorship Program",
"name": "New Mentorship Program",
"config": "{}",
"project": "Governance",
"userMentors": [
{
"type": "User Mentor",
"name": "piyanthak",
"config": "{}",
"project": "Governance",
"id": "ec6eb896-bbee-4137-9aae-34641e3ac6a6",
"savedPayload": {
"position": {
"x": 4440.324099521103,
"y": 24371.94916708496
},
"targetPosition": {
"x": 3853.4355390808196,
"y": 24496.696181575615
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "piyanthak",
"id": "b1ce221b-2752-4419-ae53-8410e8a93798"
},
"referenceParentCombinedNodePath": [
[
"piyanthak",
"User Profile"
]
]
}
}
],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "4d500cb0-1a94-4c8d-a7c7-35978d48862c",
"savedPayload": {
"position": {
"x": 3978.182553571475,
"y": 25083.584742015897
},
"targetPosition": {
"x": 3853.4355390808196,
"y": 24496.696181575615
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "c0c946a6-08a6-4b4f-9f7a-226da0ed267e",
"savedPayload": {
"position": {
"x": 3266.546978640536,
"y": 24621.44319606627
},
"targetPosition": {
"x": 3853.4355390808196,
"y": 24496.696181575615
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "bff3113a-dbd7-49c6-8961-59b008300ca6",
"savedPayload": {
"position": {
"x": 3853.4355390808196,
"y": 24496.696181575615
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23909.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 2,
"distanceToParent": 5,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"influencerProgram": {
"type": "Influencer Program",
"name": "New Influencer Program",
"config": "{\n \"percentage\": 0\n}",
"project": "Governance",
"userInfluencers": [],
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "8de54174-4a0a-477d-8007-b88b1c7cdd2a",
"savedPayload": {
"position": {
"x": 3959.338683042908,
"y": 24669.281455053082
},
"targetPosition": {
"x": 3606.667531667424,
"y": 24183.871258428113
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 5,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensBonus": {
"type": "Tokens Bonus",
"name": "New Tokens Bonus",
"project": "Governance",
"id": "586e0adc-1e14-4a79-a318-c0fff6548fc2",
"savedPayload": {
"position": {
"x": 3308.310963056942,
"y": 24215.22979740841
},
"targetPosition": {
"x": 3606.667531667424,
"y": 24183.871258428113
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "fcfe7797-2b63-4291-ae7b-796fbfeb3288",
"savedPayload": {
"position": {
"x": 3606.667531667424,
"y": 24183.871258428113
},
"targetPosition": {
"x": 3728.688524590164,
"y": 23909.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 2,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "028f6c5d-d917-455e-ba17-0487d0967941",
"savedPayload": {
"position": {
"x": 3728.688524590164,
"y": 23909.807621135333
},
"targetPosition": {
"x": 3578.688524590164,
"y": 23650
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "4e1d73b3-72da-4b27-b051-6e012a1f4e5e",
"savedPayload": {
"position": {
"x": 3578.688524590164,
"y": 23650
},
"targetPosition": {
"x": 3278.688524590164,
"y": 23650
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"tokensMined": {
"type": "Tokens Mined",
"name": "New Tokens Mined",
"project": "Governance",
"id": "30636346-9a30-4aa0-937a-96d46b5eb97a",
"savedPayload": {
"position": {
"x": 2978.688524590164,
"y": 23650
},
"targetPosition": {
"x": 3278.688524590164,
"y": 23650
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "6ca1f96f-6e1a-4e8f-81bc-18125d8866ca",
"savedPayload": {
"position": {
"x": 3278.688524590164,
"y": 23650
},
"targetPosition": {
"x": 3278.688524590164,
"y": 23650
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
@@ -127,15 +127,15 @@
"id": "bdb856e9-eafc-40f8-87fe-46b95c680ca9",
"savedPayload": {
"position": {
"x": 13203.29411764706,
"y": 23128
"x": 31182.352941176472,
"y": 13700.000000000002
},
"targetPosition": {
"x": 13535.29411764706,
"y": 23600
"x": 31182.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": true,
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
@@ -166,12 +166,12 @@
"id": "982253cd-6526-43ab-be70-b7bf7ee92f51",
"savedPayload": {
"position": {
"x": 13535.29411764706,
"y": 23300
"x": 31182.352941176472,
"y": 13700.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23300
"x": 31482.352941176472,
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -207,12 +207,12 @@
"id": "5c2e9a56-5ef7-4076-8749-a40342a041d5",
"savedPayload": {
"position": {
"x": 13835.29411764706,
"y": 23000
"x": 31482.352941176472,
"y": 13400.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23300
"x": 31482.352941176472,
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -234,12 +234,12 @@
"id": "e2493ead-e0c1-4535-a768-c2e002ab3c8d",
"savedPayload": {
"position": {
"x": 14135.29411764706,
"y": 23300
"x": 31782.352941176472,
"y": 13700.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23300
"x": 31482.352941176472,
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -257,12 +257,12 @@
"id": "5d6f1757-ea56-4e72-a0d6-009c94c5bc7e",
"savedPayload": {
"position": {
"x": 13835.29411764706,
"y": 23300
"x": 31482.352941176472,
"y": 13700.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23600
"x": 31482.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -291,12 +291,12 @@
"id": "ada671e7-03f8-4565-ac5c-d22e07f02462",
"savedPayload": {
"position": {
"x": 14707.29411764706,
"y": 22881.192378864667
"x": 31632.352941176472,
"y": 13740.19237886467
},
"targetPosition": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -332,12 +332,12 @@
"id": "e6a1ab19-0a27-4ffc-98b2-3ff170ffe18a",
"savedPayload": {
"position": {
"x": 15007.29411764706,
"y": 22881.192378864667
"x": 31932.352941176472,
"y": 13740.19237886467
},
"targetPosition": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -358,7 +358,9 @@
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile"
"User Profile",
"Governance",
"75a78d74-93f3-44c5-a96a-5b2b9f730afe"
]
]
}
@@ -371,12 +373,12 @@
"id": "13015a17-d4db-40e8-a211-49641ea490f1",
"savedPayload": {
"position": {
"x": 15157.29411764706,
"y": 23141
"x": 32082.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -397,7 +399,9 @@
"referenceParentCombinedNodePath": [
[
"gustavohcorradi",
"User Profile"
"User Profile",
"Governance",
"96ccf2bc-e544-4b27-aa23-a7a734798fb4"
]
]
}
@@ -410,12 +414,12 @@
"id": "fff18c7a-cd37-467c-8bdb-a036f2d2a9a0",
"savedPayload": {
"position": {
"x": 15007.29411764706,
"y": 23400.807621135333
"x": 31932.352941176472,
"y": 14259.807621135333
},
"targetPosition": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -437,12 +441,12 @@
"id": "a2ead972-dfc5-495b-8efc-f4aaa9f0e6c0",
"savedPayload": {
"position": {
"x": 14707.29411764706,
"y": 23400.807621135333
"x": 31632.352941176472,
"y": 14259.807621135333
},
"targetPosition": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -460,15 +464,15 @@
"id": "5745f70c-0d77-4ad3-9fba-907266217b69",
"savedPayload": {
"position": {
"x": 14857.29411764706,
"y": 23141
"x": 31782.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23600
"x": 31482.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": true,
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
@@ -561,7 +565,9 @@
"referenceParentCombinedNodePath": [
[
"gustavohcorradi",
"User Profile"
"User Profile",
"Governance",
"96ccf2bc-e544-4b27-aa23-a7a734798fb4"
]
]
}
@@ -600,7 +606,9 @@
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile"
"User Profile",
"Governance",
"75a78d74-93f3-44c5-a96a-5b2b9f730afe"
]
]
}
@@ -639,7 +647,9 @@
"referenceParentCombinedNodePath": [
[
"harrellbm",
"User Profile"
"User Profile",
"Governance",
"3af73d3b-7c0e-4de7-a1e1-a72238081740"
]
]
}
@@ -702,15 +712,15 @@
"id": "2b5206c6-7e49-4bf6-8236-01080242c851",
"savedPayload": {
"position": {
"x": 14099.29411764706,
"y": 23734
"x": 31482.352941176472,
"y": 14300.000000000002
},
"targetPosition": {
"x": 13835.29411764706,
"y": 23600
"x": 31482.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": true,
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
@@ -725,12 +735,12 @@
"id": "bb518745-f59c-4fb6-a4e0-646ff983f503",
"savedPayload": {
"position": {
"x": 13835.29411764706,
"y": 23600
"x": 31482.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 13535.29411764706,
"y": 23600
"x": 31182.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -767,18 +777,18 @@
"positionContributionClaims": [
{
"type": "Position Contribution Claim",
"name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart Translations Team",
"name": "5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina Translations Team",
"config": "{}",
"project": "Governance",
"id": "4e33743b-74f3-4c52-8a79-5ae2196ece8a",
"savedPayload": {
"position": {
"x": 13575.486496511729,
"y": 24569.615242270665
"x": 31782.352941176472,
"y": 14600.000000000002
},
"targetPosition": {
"x": 13425.486496511729,
"y": 24309.807621135333
"x": 31482.352941176472,
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -793,7 +803,7 @@
},
"referenceParent": {
"type": "Position",
"name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart",
"name": "5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina",
"id": "6ed65be6-de6f-49a1-9c04-d2114e8763a1"
},
"referenceParentCombinedNodePath": [
@@ -822,7 +832,7 @@
"0cd21223-d49a-45b1-af83-ec2a31f8caaf"
],
[
"4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart",
"5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina",
"Position",
"Governance",
"6ed65be6-de6f-49a1-9c04-d2114e8763a1"
@@ -834,12 +844,12 @@
"id": "63ce9bc2-d65f-416b-bf03-091ac317545e",
"savedPayload": {
"position": {
"x": 13425.486496511729,
"y": 24309.807621135333
"x": 31482.352941176472,
"y": 14600.000000000002
},
"targetPosition": {
"x": 13275.486496511729,
"y": 24050
"x": 31182.352941176472,
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -900,12 +910,12 @@
"id": "63069768-3d5b-4e46-a3aa-b1b977d05be7",
"savedPayload": {
"position": {
"x": 12755.871254241067,
"y": 24350
"x": 31182.352941176472,
"y": 15200.000000000002
},
"targetPosition": {
"x": 13015.678875376398,
"y": 24200
"x": 31182.352941176472,
"y": 14900.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -961,12 +971,12 @@
"id": "b3561701-d5ba-4c75-a7a0-7435e1310de9",
"savedPayload": {
"position": {
"x": 13015.678875376398,
"y": 24200
"x": 31182.352941176472,
"y": 14900.000000000002
},
"targetPosition": {
"x": 13275.486496511729,
"y": 24050
"x": 31182.352941176472,
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1027,12 +1037,12 @@
"id": "9d746131-5816-4f11-9dc0-b54242cdc4b5",
"savedPayload": {
"position": {
"x": 12975.486496511729,
"y": 23530.384757729335
"x": 30582.352941176472,
"y": 14600.000000000002
},
"targetPosition": {
"x": 13125.486496511729,
"y": 23790.192378864667
"x": 30882.352941176472,
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1094,12 +1104,12 @@
"id": "bbfbc9e4-d9d8-442a-a4d8-2f92b9496e2b",
"savedPayload": {
"position": {
"x": 13125.486496511729,
"y": 23790.192378864667
"x": 30882.352941176472,
"y": 14600.000000000002
},
"targetPosition": {
"x": 13275.486496511729,
"y": 24050
"x": 31182.352941176472,
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1155,17 +1165,17 @@
"id": "924b70a8-4a20-49f4-91c7-c7927e1322fc",
"savedPayload": {
"position": {
"x": 13535.29411764706,
"y": 24200
"x": 31182.352941176472,
"y": 14600.000000000002
},
"targetPosition": {
"x": 13535.29411764706,
"y": 23900
"x": 31182.352941176472,
"y": 14300.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -1178,12 +1188,12 @@
"id": "b76844dd-4cc0-43d1-bd85-ff9cf558c8c7",
"savedPayload": {
"position": {
"x": 13535.29411764706,
"y": 23900
"x": 31182.352941176472,
"y": 14300.000000000002
},
"targetPosition": {
"x": 13535.29411764706,
"y": 23600
"x": 31182.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1201,12 +1211,12 @@
"id": "1a0104de-bed0-4c64-a273-3a97a7605773",
"savedPayload": {
"position": {
"x": 13535.29411764706,
"y": 23600
"x": 31182.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 13235.29411764706,
"y": 23600
"x": 30882.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1228,12 +1238,12 @@
"id": "5595fb56-7fdc-4096-b798-950ad763f8f9",
"savedPayload": {
"position": {
"x": 12935.29411764706,
"y": 23600
"x": 30582.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 13235.29411764706,
"y": 23600
"x": 30882.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1251,12 +1261,12 @@
"id": "a600818b-6702-4be1-94ea-46478a914cb4",
"savedPayload": {
"position": {
"x": 13235.29411764706,
"y": 23600
"x": 30882.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 13235.29411764706,
"y": 23600
"x": 30882.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -127,12 +127,12 @@
"id": "1cd251c3-5a87-435e-a262-42323aed0bc4",
"savedPayload": {
"position": {
"x": 30798.160562311805,
"y": 19086
"x": 31142.160562311805,
"y": 28550
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -819,19 +819,19 @@
"id": "b7c934fd-8031-4615-bf9c-94280e452511",
"savedPayload": {
"position": {
"x": 30928.06437287947,
"y": 19461
"x": 31142.160562311805,
"y": 28850
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 4,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
@@ -856,112 +856,7 @@
"config": "{}",
"project": "Governance",
"votesSwitch": [],
"claimVotesSwitch": [
{
"type": "Claim Votes Switch",
"name": "New Claim Votes Switch",
"config": "{}",
"project": "Governance",
"claimVotesSwitch": [],
"positionClaimVotes": [
{
"type": "Position Claim Vote",
"name": "EvaMaria70 5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina Translations Team",
"config": "{}",
"project": "Governance",
"id": "52d4be66-7380-4f30-9ebb-d3af356e54ff",
"savedPayload": {
"position": {
"x": 30988.352941176472,
"y": 19195.807621135333
},
"targetPosition": {
"x": 30988.352941176472,
"y": 19495.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "Position Contribution Claim",
"name": "5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina Translations Team",
"id": "7ed8d42e-a28d-4093-96c8-bc8bf6871404"
},
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile",
"Governance",
"75a78d74-93f3-44c5-a96a-5b2b9f730afe"
],
[
"New Token Power Switch",
"Token Power Switch",
"Governance",
"b96160c4-e1e8-4ad4-bbf6-a6cd35076877"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs",
"Governance",
"fe79f40b-9d30-4e86-bda2-1fd8a81599bf"
],
[
"New Claims Program",
"Claims Program",
"Governance",
"3e15e7ab-6a1b-4a71-adbc-6fafbf6d9114"
],
[
"New Position Claims Folder",
"Position Claims Folder",
"Governance",
"01e4c26e-e6a4-4688-bf6c-3c35fda086b8"
],
[
"5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina Translations Team",
"Position Contribution Claim",
"Governance",
"7ed8d42e-a28d-4093-96c8-bc8bf6871404"
]
]
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "8db18298-8dda-445c-95ad-a9e88a9ec6d1",
"savedPayload": {
"position": {
"x": 30988.352941176472,
"y": 19495.807621135333
},
"targetPosition": {
"x": 30988.352941176472,
"y": 19795.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"claimVotesSwitch": [],
"weightVotesSwitch": [
{
"type": "Weight Votes Switch",
@@ -981,12 +876,12 @@
"id": "5b8b92d0-1df5-45f1-9ae7-75c87a8302db",
"savedPayload": {
"position": {
"x": 31588.352941176472,
"y": 19795.807621135333
"x": 31482.352941176472,
"y": 29000
},
"targetPosition": {
"x": 31288.352941176472,
"y": 19795.807621135333
"x": 31407.352941176472,
"y": 29129.903810567666
},
"floatingObject": {
"isPinned": false,
@@ -1048,19 +943,19 @@
"id": "37a9c875-a9bc-4ab1-a00e-f248f818f311",
"savedPayload": {
"position": {
"x": 31288.352941176472,
"y": 19795.807621135333
"x": 31407.352941176472,
"y": 29129.903810567666
},
"targetPosition": {
"x": 30988.352941176472,
"y": 19795.807621135333
"x": 31332.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1080,19 +975,19 @@
"id": "e8e3f63a-b9fb-47d7-8fc9-c0634a0f2425",
"savedPayload": {
"position": {
"x": 30988.352941176472,
"y": 20095.807621135333
"x": 31407.352941176472,
"y": 29389.711431703
},
"targetPosition": {
"x": 30988.352941176472,
"y": 19795.807621135333
"x": 31332.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1104,12 +999,12 @@
"id": "352b5f30-d971-478b-9085-4c9ff9ddb388",
"savedPayload": {
"position": {
"x": 30988.352941176472,
"y": 19795.807621135333
"x": 31332.352941176472,
"y": 29259.807621135333
},
"targetPosition": {
"x": 30688.352941176472,
"y": 19795.807621135333
"x": 31032.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -1132,12 +1027,12 @@
"id": "1e334525-2ffb-4808-bc7c-9e621cee282f",
"savedPayload": {
"position": {
"x": 30613.352941176472,
"y": 19925.711431703
"x": 30957.352941176472,
"y": 29389.711431703
},
"targetPosition": {
"x": 30688.352941176472,
"y": 19795.807621135333
"x": 31032.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -1155,12 +1050,12 @@
"id": "c063e64b-1c1e-48f6-bcfd-4fa747f779ae",
"savedPayload": {
"position": {
"x": 30688.352941176472,
"y": 19795.807621135333
"x": 31032.352941176472,
"y": 29259.807621135333
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19536
"x": 30882.352941176472,
"y": 29000
},
"floatingObject": {
"isPinned": false,
@@ -1198,12 +1093,12 @@
"id": "6dda0146-c5eb-4a8e-942c-630756f4add3",
"savedPayload": {
"position": {
"x": 30538.352941176472,
"y": 20136
"x": 30882.352941176472,
"y": 29600
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19986
"x": 30622.54532004114,
"y": 29450
},
"floatingObject": {
"isPinned": false,
@@ -1263,12 +1158,12 @@
"id": "1f64f90f-61a4-4592-bc05-3f5de5313683",
"savedPayload": {
"position": {
"x": 30018.737698905807,
"y": 20136
"x": 30362.737698905807,
"y": 29600
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19986
"x": 30622.54532004114,
"y": 29450
},
"floatingObject": {
"isPinned": false,
@@ -1330,12 +1225,12 @@
"id": "061bd94b-488e-4b40-8f89-fc5176407ec8",
"savedPayload": {
"position": {
"x": 30278.54532004114,
"y": 19986
"x": 30622.54532004114,
"y": 29450
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19686
"x": 30622.54532004114,
"y": 29150
},
"floatingObject": {
"isPinned": false,
@@ -1358,12 +1253,12 @@
"id": "46a6d1f4-c357-4848-a71b-c20e66e4d2d8",
"savedPayload": {
"position": {
"x": 30148.641509473473,
"y": 19611
"x": 30492.641509473473,
"y": 29075
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19686
"x": 30622.54532004114,
"y": 29150
},
"floatingObject": {
"isPinned": false,
@@ -1381,12 +1276,12 @@
"id": "87c55f3a-5d89-469c-90c0-798d369605d5",
"savedPayload": {
"position": {
"x": 30278.54532004114,
"y": 19686
"x": 30622.54532004114,
"y": 29150
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19536
"x": 30882.352941176472,
"y": 29000
},
"floatingObject": {
"isPinned": false,
@@ -1404,12 +1299,12 @@
"id": "b7006f04-6506-4871-a5e1-e28c2c86d7b4",
"savedPayload": {
"position": {
"x": 30538.352941176472,
"y": 19536
"x": 30882.352941176472,
"y": 29000
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1441,12 +1336,12 @@
"id": "3fa791bd-0c1b-4b7b-816f-eb1b995cb953",
"savedPayload": {
"position": {
"x": 29693.97817248664,
"y": 19723.5
"x": 30037.97817248664,
"y": 29187.5
},
"targetPosition": {
"x": 29888.83388833814,
"y": 19611
"x": 30232.83388833814,
"y": 29075
},
"floatingObject": {
"isPinned": false,
@@ -1464,12 +1359,12 @@
"id": "72c2c3b4-c615-4142-b4d1-e8cd7be78331",
"savedPayload": {
"position": {
"x": 29888.83388833814,
"y": 19611
"x": 30232.83388833814,
"y": 29075
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19386
"x": 30622.54532004114,
"y": 28850
},
"floatingObject": {
"isPinned": false,
@@ -1487,12 +1382,12 @@
"id": "5dca1e4e-5fa1-4b07-b6a3-b12782221e0b",
"savedPayload": {
"position": {
"x": 30278.54532004114,
"y": 19386
"x": 30622.54532004114,
"y": 28850
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1525,12 +1420,12 @@
"id": "a851317c-1283-40e1-9434-a78c5c88caaa",
"savedPayload": {
"position": {
"x": 29758.930077770474,
"y": 18786
"x": 30102.930077770474,
"y": 28250
},
"targetPosition": {
"x": 30018.737698905807,
"y": 18936
"x": 30362.737698905807,
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -1548,12 +1443,12 @@
"id": "663a7d1a-bb5d-42b4-93c7-a2387f5daae5",
"savedPayload": {
"position": {
"x": 30018.737698905807,
"y": 18936
"x": 30362.737698905807,
"y": 28400
},
"targetPosition": {
"x": 30278.54532004114,
"y": 19086
"x": 30622.54532004114,
"y": 28550
},
"floatingObject": {
"isPinned": false,
@@ -1572,12 +1467,12 @@
"id": "46d76b2d-c54a-4f77-b206-03ac9afa095e",
"savedPayload": {
"position": {
"x": 30278.54532004114,
"y": 19086
"x": 30622.54532004114,
"y": 28550
},
"targetPosition": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1595,12 +1490,12 @@
"id": "b70247f5-4442-4433-b35f-aa64a2f7c174",
"savedPayload": {
"position": {
"x": 30538.352941176472,
"y": 19236
"x": 30882.352941176472,
"y": 28700
},
"targetPosition": {
"x": 30538.352941176472,
"y": 18936
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -1622,12 +1517,12 @@
"id": "899f92f8-5e00-42a0-8316-10c95dd2a6b1",
"savedPayload": {
"position": {
"x": 30238.352941176472,
"y": 18936
"x": 30582.352941176472,
"y": 28400
},
"targetPosition": {
"x": 30538.352941176472,
"y": 18936
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -1645,12 +1540,12 @@
"id": "96ccf2bc-e544-4b27-aa23-a7a734798fb4",
"savedPayload": {
"position": {
"x": 30538.352941176472,
"y": 18936
"x": 30882.352941176472,
"y": 28400
},
"targetPosition": {
"x": 30538.352941176472,
"y": 18936
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": true,
@@ -452,16 +452,16 @@ function newGovernanceUserProfileSpace() {
waitingForResponses++
waitingForResponses++
waitingForResponses++
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 5 * 1, userProfile, blockchainAccount, 'BTCB', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BTCB_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 5 * 2, userProfile, blockchainAccount, 'BNB', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BNB_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 5 * 3, userProfile, blockchainAccount, 'BUSD', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BUSD_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 5 * 4, userProfile, blockchainAccount, 'ETH', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_ETH_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 6 * 1, userProfile, blockchainAccount, 'BTCB', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BTCB_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 6 * 2, userProfile, blockchainAccount, 'BNB', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BNB_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 6 * 3, userProfile, blockchainAccount, 'BUSD', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_BUSD_CONTRACT_ADDRESS)
setTimeout(getBPancakeTokens, BSC_SCAN_RATE_LIMIT_DELAY / 6 * 4, userProfile, blockchainAccount, 'ETH', UI.projects.governance.globals.saToken.SA_TOKEN_BSC_PANCAKE_LIQUIDITY_POOL_ETH_CONTRACT_ADDRESS)
/*
Now we get the SA Tokens Balance.
*/
waitingForResponses++
setTimeout(getBlockchainTokens, BSC_SCAN_RATE_LIMIT_DELAY / 5 * 5, userProfile, blockchainAccount)
setTimeout(getBlockchainTokens, BSC_SCAN_RATE_LIMIT_DELAY / 6 * 5, userProfile, blockchainAccount)
}
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+98
View File
@@ -0,0 +1,98 @@
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8"/>
<title>Console Logs</title>
<style>
/* #log-container { overflow: auto; } */
.log-warn { color: orange }
.log-error { color: red }
.log-info { color: skyblue }
.log-log { color: silver }
.log-warn, .log-error { font-weight: bold; }
</style>
</head>
<body>
<div id="log-container">
<pre id="log"></pre>
</div>
<script>
window.onload = () => {
window.api.receive('fromMain', (data) => {
//const consoleLine = document.createElement('span')
//const consoleLineText = document.createTextNode(data)
//consoleLine.appendChild(consoleLineText)
if(data.includes('[ERROR]')) {
//const consoleLine = document.createElement('span')
document.getElementById('log').insertAdjacentHTML('beforeend', "<span class=\"log-error\">" + data + "</span><br>");
}
if(data.includes('[WARN]')) {
//consoleLineText.style.cssText = "color: orange; font-weight: bold;"
document.getElementById('log').insertAdjacentHTML('beforeend',"<span class=\"log-warn\">" + data + "</span><br>");
}
document.getElementById('log').insertAdjacentHTML('beforeend',"<span class=\"log-info\">" + data + "</span><br>");
//document.getElementById('log').insertAdjacentHTML('beforeend', consoleLineText);
})
window.api.send("toMain", "ImAlive!")
}
</script>
<!-- <script>
rewireLoggingToElement(
() => document.getElementById("log"),
() => document.getElementById("log-container"), true);
function rewireLoggingToElement(eleLocator, eleOverflowLocator, autoScroll) {
fixLoggingFunc('log');
fixLoggingFunc('debug');
fixLoggingFunc('warn');
fixLoggingFunc('error');
fixLoggingFunc('info');
function fixLoggingFunc(name) {
console['old' + name] = console[name];
console[name] = function(...arguments) {
//const output = produceOutput(name, arguments);
output = window.api.receive('fromMain', (message, arguments) => {
produceOutput(message, arguments)
})
const eleLog = eleLocator();
if (autoScroll) {
const eleContainerLog = eleOverflowLocator();
const isScrolledToBottom = eleContainerLog.scrollHeight - eleContainerLog.clientHeight <= eleContainerLog.scrollTop + 1;
eleLog.innerHTML += output + "<br>";
if (isScrolledToBottom) {
eleContainerLog.scrollTop = eleContainerLog.scrollHeight - eleContainerLog.clientHeight;
}
} else {
eleLog.innerHTML += output + "<br>";
}
console['old' + name].apply(undefined, arguments);
};
}
function produceOutput(name, args) {
return args.reduce((output, arg) => {
return output +
"<span class=\"log-" + (typeof arg) + " log-" + name + "\">" +
(typeof arg === "object" && (JSON || {}).stringify ? JSON.stringify(arg) : arg) +
"</span>&nbsp;";
}, '');
}
}
/* setInterval(() => {
const method = (['log', 'debug', 'warn', 'error', 'info'][Math.floor(Math.random() * 5)]);
console[method](method, 'logging something...');
}, 200); */
</script> -->
</body>
</html>
+123 -16
View File
@@ -1,9 +1,10 @@
const {app, Menu, BrowserWindow} = require('electron')
const {app, Menu, BrowserWindow, ipcMain} = require('electron')
const path = require('path')
const fs = require('fs')
// To check for update on Github repo
const {autoUpdater} = require("electron-updater")
const { windowsStore } = require('process')
// Enable non contribution mode (test)
process.env.SA_MODE = 'gitDisable'
@@ -13,7 +14,7 @@ process.env.DATA_PATH = app.getPath('documents')
const WINDOW_WIDTH = null
const WINDOW_HEIGHT = null
var w
let mainWindow, consoleWindow, platform
var app_ready = false
var server_ready = false
@@ -22,42 +23,100 @@ const port = 34248 // Default HTTP port
run()
//var platform = null
function run() {
const { fork } = require('child_process')
const platform = fork(path.join(__dirname, '/PlatformRoot.js'), ["noBrowser"], {stdio: ['pipe', 'pipe', 'pipe', 'ipc'], env: process.env})
platform.on('message', message => {
if(message == "Running") {
open()
}
platform = fork(path.join(__dirname, '/PlatformRoot.js'), ["noBrowser"], {stdio: ['pipe', 'pipe', 'pipe', 'ipc'], env: process.env})
//var consoleOutput = ""
platform.on('message', _ => {
open()
})
}
ipcMain.on("toMain", (event, args) => {
platform.stdout.setEncoding('utf8')
platform.stdout.on('data', (data) => {
//data = data.toString()
//consoleOutput += data
consoleWindow.webContents.send("fromMain", data);
})
})
function open () {
let bw_options = {
width: WINDOW_WIDTH ? WINDOW_WIDTH : 1280,
height: WINDOW_HEIGHT ? WINDOW_HEIGHT : 768,
resizable: true
resizable: true,
webPreferences: {
nodeIntegration: false, // is default value after Electron v5
contextIsolation: true, // protect against prototype pollution
enableRemoteModule: false, // turn off remote
}
}
w = new BrowserWindow(
mainWindow = new BrowserWindow(
bw_options
)
w.setResizable(true)
//mainWindow.setResizable(true)
w.loadURL("http://localhost:" + port)
mainWindow.loadURL("http://localhost:" + port)
// w.webContents.openDevTools()
w.on('closed', function () {
w = null
mainWindow.on('closed', function () {
mainWindow = null
})
}
function openConsoleWindow() {
createConsoleMenus()
if(consoleWindow) {
consoleWindow.focus()
return
}
newWindow =
consoleWindow = new BrowserWindow({
resizable: true,
title: 'Platform Logs',
minimizable: false,
fullscreenable: false,
width: 1024,
webPreferences: {
devTools: true,
nodeIntegration: false, // is default value after Electron v5
contextIsolation: true, // protect against prototype pollution
enableRemoteModule: false, // turn off remote
preload: path.join(__dirname, "preload.js") // use a preload script
}
})
consoleWindow.setBackgroundColor('#000000')
consoleWindow.loadFile('./console.html')
/* consoleWindow.on('ready'), _ => {
platform.stdout.setEncoding('utf8')
platform.stdout.on('data', (data) => {
//data = data.toString()
//consoleOutput += data
consoleWindow.webContents.send("fromMain", data);
})
} */
consoleWindow.on('closed', function() {
consoleWindow = null
})
}
app.on('ready', function () {
app_ready = true
autoUpdater.checkForUpdatesAndNotify();
create_menus()
createMainMenus()
if (server_ready) open()
})
@@ -69,7 +128,7 @@ app.on('activate', function () {
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
function create_menus () {
function createMainMenus () {
const template = [
{
label: 'File',
@@ -88,7 +147,6 @@ function create_menus () {
{role: 'cut'},
{role: 'copy'},
{role: 'paste'},
{role: 'pasteandmatchstyle'},
{role: 'delete'},
{role: 'selectall'}
]
@@ -115,6 +173,55 @@ function create_menus () {
{type: 'separator'},
{role: 'togglefullscreen'}
]
},
{
label: 'Logs',
click () {
openConsoleWindow()
}
}
]
const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)
}
function createConsoleMenus () {
const template = [
{
label: 'File',
submenu: [
{
role: 'quit'
}
]
},
{
label: 'Edit',
submenu: [
{role: 'undo'},
{role: 'redo'},
{type: 'separator'},
{role: 'cut'},
{role: 'copy'},
{role: 'paste'},
{role: 'delete'},
{role: 'selectall'}
]
},
{
label: 'View',
submenu: [
{role: 'reload'},
{role: 'forcereload'},
{role: 'toggledevtools'},
{type: 'separator'},
{role: 'resetzoom'},
{role: 'zoomin'},
{role: 'zoomout'},
{type: 'separator'},
{role: 'togglefullscreen'}
]
}
]
+25
View File
@@ -0,0 +1,25 @@
const {
contextBridge,
ipcRenderer
} = require("electron");
// Expose protected methods that allow the renderer process to use
// the ipcRenderer without exposing the entire object
contextBridge.exposeInMainWorld(
"api", {
send: (channel, data) => {
// whitelist channels
let validChannels = ["toMain"];
if (validChannels.includes(channel)) {
ipcRenderer.send(channel, data);
}
},
receive: (channel, func) => {
let validChannels = ["fromMain"];
if (validChannels.includes(channel)) {
// Deliberately strip event as it includes `sender`
ipcRenderer.on(channel, (event, ...args) => func(...args));
}
}
}
);