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

This commit is contained in:
Alexandru Stefan committed 2021-11-03 12:07:09 +02:00
commit 09e9b27b4d
29 files changed
+98558 -69227

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 -2
View File
@@ -1,4 +1,3 @@
const {graphql} = require("@octokit/graphql");
exports.newHttpInterface = function newHttpInterface() {
/*
@@ -642,7 +641,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);
}
}
}
}
@@ -127,12 +127,12 @@
"id": "09ae0e39-1e64-4ad5-8bdd-9f399158de72",
"savedPayload": {
"position": {
"x": 32473.681818181816,
"y": 18987.903810567666
"x": 32398.681818181816,
"y": 14059.602540378444
},
"targetPosition": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -571,12 +571,12 @@
"id": "923edd09-70dd-43b1-b7fa-40594299e37d",
"savedPayload": {
"position": {
"x": 32548.681818181816,
"y": 18684.79491924311
"x": 32398.681818181816,
"y": 13886.397459621556
},
"targetPosition": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -596,188 +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": "{}",
"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": 32929.046231854416,
"y": 18442.28024726807
},
"targetPosition": {
"x": 32903.164327344166,
"y": 18538.872829896976
},
"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"
],
[
"New Token Power Switch",
"Token Power Switch"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
],
[
"New Claims Program",
"Claims Program"
],
[
"New Position Claims Folder",
"Position Claims Folder"
],
[
"Team Leader Non-Tech-Users Community Team",
"Position Contribution Claim"
]
]
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "c093bb55-09a2-4a0a-a938-a2199fbf3dde",
"savedPayload": {
"position": {
"x": 32903.164327344166,
"y": 18538.872829896976
},
"targetPosition": {
"x": 32877.282422833916,
"y": 18635.465412525882
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"weightVotesSwitch": [],
"userProfileVotesSwitch": [],
"id": "28bd3c08-c744-448d-89f4-13625760525c",
"savedPayload": {
"position": {
"x": 32877.282422833916,
"y": 18635.465412525882
},
"targetPosition": {
"x": 32838.45956606854,
"y": 18780.354286469243
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"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": 32944.52558324652,
"y": 18886.420303647225
},
"targetPosition": {
"x": 32838.45956606854,
"y": 18780.354286469243
},
"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": 32838.45956606854,
"y": 18780.354286469243
},
"targetPosition": {
"x": 32548.681818181816,
"y": 18858
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 3,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"claimsProgram": {
"type": "Claims Program",
"name": "New Claims Program",
@@ -795,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": 33089.41445718988,
"y": 18713.11112605664
"x": 32628.585628749483,
"y": 13811.397459621556
},
"targetPosition": {
"x": 33128.23731395526,
"y": 18858
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -821,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": [
@@ -850,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"
@@ -866,12 +684,12 @@
"id": "c2c7fd17-ea3d-41f9-a2fd-97fb2e0f5f09",
"savedPayload": {
"position": {
"x": 33273.12618789862,
"y": 18819.17714323462
"x": 32765.188169127927,
"y": 13848
},
"targetPosition": {
"x": 33128.23731395526,
"y": 18858
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -931,12 +749,12 @@
"id": "223537f1-53b1-4e65-8ba4-b98e2a6c3a14",
"savedPayload": {
"position": {
"x": 33167.06017072064,
"y": 19002.88887394336
"x": 32728.585628749483,
"y": 13984.602540378444
},
"targetPosition": {
"x": 33128.23731395526,
"y": 18858
"x": 32678.585628749483,
"y": 13898
},
"floatingObject": {
"isPinned": false,
@@ -998,12 +816,12 @@
"id": "01e4c26e-e6a4-4688-bf6c-3c35fda086b8",
"savedPayload": {
"position": {
"x": 33128.23731395526,
"y": 18858
"x": 32678.585628749483,
"y": 13898
},
"targetPosition": {
"x": 32838.45956606854,
"y": 18935.645713530757
"x": 32548.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1026,12 +844,12 @@
"id": "38c01ff9-58e5-4827-927d-c700aaf8205f",
"savedPayload": {
"position": {
"x": 32877.282422833916,
"y": 19080.534587474118
"x": 32598.681818181816,
"y": 14059.602540378444
},
"targetPosition": {
"x": 32838.45956606854,
"y": 18935.645713530757
"x": 32548.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1049,12 +867,12 @@
"id": "3e15e7ab-6a1b-4a71-adbc-6fafbf6d9114",
"savedPayload": {
"position": {
"x": 32838.45956606854,
"y": 18935.645713530757
"x": 32548.681818181816,
"y": 13973
},
"targetPosition": {
"x": 32548.681818181816,
"y": 18858
"x": 32398.681818181816,
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1072,12 +890,12 @@
"id": "fe79f40b-9d30-4e86-bda2-1fd8a81599bf",
"savedPayload": {
"position": {
"x": 32548.681818181816,
"y": 18858
"x": 32398.681818181816,
"y": 13973
},
"targetPosition": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1109,12 +927,12 @@
"id": "6af397b6-cc73-4dc0-8c33-a2abd1745547",
"savedPayload": {
"position": {
"x": 28418.794484282324,
"y": 28594.81571533203
"x": 32565.863151232068,
"y": 14162.157857666016
},
"targetPosition": {
"x": 28236.166055579706,
"y": 28832.821717419403
"x": 32474.54893688076,
"y": 14281.160858709702
},
"floatingObject": {
"isPinned": false,
@@ -1132,12 +950,12 @@
"id": "59357272-6ca3-4539-be7a-6f57e58f2709",
"savedPayload": {
"position": {
"x": 28236.166055579706,
"y": 28832.821717419403
"x": 32474.54893688076,
"y": 14281.160858709702
},
"targetPosition": {
"x": 27823.927567458035,
"y": 28516.5
"x": 32268.429692819926,
"y": 14123
},
"floatingObject": {
"isPinned": false,
@@ -1165,12 +983,12 @@
"id": "805959aa-3810-43e8-8703-76736d28c526",
"savedPayload": {
"position": {
"x": 28053.537626877092,
"y": 29070.82771950677
"x": 32383.23472252945,
"y": 14400.163859753386
},
"targetPosition": {
"x": 27938.732597167564,
"y": 28793.663859753386
"x": 32325.832207674688,
"y": 14261.581929876693
},
"floatingObject": {
"isPinned": false,
@@ -1188,12 +1006,12 @@
"id": "2691fbbf-b284-4a88-8bd7-93a34e77413b",
"savedPayload": {
"position": {
"x": 27938.732597167564,
"y": 28793.663859753386
"x": 32325.832207674688,
"y": 14261.581929876693
},
"targetPosition": {
"x": 27823.927567458035,
"y": 28516.5
"x": 32268.429692819926,
"y": 14123
},
"floatingObject": {
"isPinned": false,
@@ -1211,12 +1029,12 @@
"id": "0f1c339b-84a7-4056-8be1-219cecf4498d",
"savedPayload": {
"position": {
"x": 32288.177567458035,
"y": 19158
"x": 32268.429692819926,
"y": 14123
},
"targetPosition": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1250,11 +1068,11 @@
"savedPayload": {
"position": {
"x": 31948.681818181816,
"y": 18338.384757729335
"y": 13453.384757729335
},
"targetPosition": {
"x": 32048.681818181816,
"y": 18511.589838486223
"y": 13626.589838486223
},
"floatingObject": {
"isPinned": false,
@@ -1273,11 +1091,11 @@
"savedPayload": {
"position": {
"x": 32048.681818181816,
"y": 18511.589838486223
"y": 13626.589838486223
},
"targetPosition": {
"x": 32148.681818181816,
"y": 18684.79491924311
"y": 13799.794919243112
},
"floatingObject": {
"isPinned": false,
@@ -1297,11 +1115,11 @@
"savedPayload": {
"position": {
"x": 32148.681818181816,
"y": 18684.79491924311
"y": 13799.794919243112
},
"targetPosition": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"floatingObject": {
"isPinned": false,
@@ -1320,14 +1138,14 @@
"savedPayload": {
"position": {
"x": 32248.681818181816,
"y": 18858
"y": 13973
},
"targetPosition": {
"x": 31818.181818181816,
"y": 18800
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": true,
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
@@ -1346,12 +1164,12 @@
"id": "f95822af-6480-47f6-9f64-93e3b0da64d5",
"savedPayload": {
"position": {
"x": 31518.181818181816,
"y": 18800
"x": 22577.272727272728,
"y": 14000.000000000002
},
"targetPosition": {
"x": 31818.181818181816,
"y": 18800
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -1369,19 +1187,19 @@
"id": "75a78d74-93f3-44c5-a96a-5b2b9f730afe",
"savedPayload": {
"position": {
"x": 31818.181818181816,
"y": 18800
"x": 22727.272727272728,
"y": 14000.000000000002
},
"targetPosition": {
"x": 31818.181818181816,
"y": 18800
"x": 22727.272727272728,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
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
}
}
}
@@ -128,11 +128,11 @@
"savedPayload": {
"position": {
"x": 22208.823529411766,
"y": 32940.19237886467
"y": 28140.192378864667
},
"targetPosition": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -150,7 +150,7 @@
"communityBuildingPrograms": {
"type": "Community Building Programs",
"name": "New Community Building Programs",
"config": "{ \"percentage\": 10}",
"config": "{\n \"percentage\": 5\n}",
"project": "Governance",
"referralProgram": {
"type": "Referral Program",
@@ -984,11 +984,11 @@
"savedPayload": {
"position": {
"x": 22508.823529411766,
"y": 32940.19237886467
"y": 28140.192378864667
},
"targetPosition": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -1011,7 +1011,7 @@
"votingProgram": {
"type": "Voting Program",
"name": "New Voting Program",
"config": "{\n \"percentage\":5\n}",
"config": "{\n \"percentage\": 0\n}",
"project": "Governance",
"votesSwitch": [
{
@@ -2380,11 +2380,11 @@
"savedPayload": {
"position": {
"x": 23133.60071553057,
"y": 32301.677721691292
"y": 27501.677721691292
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -4001,11 +4001,11 @@
"savedPayload": {
"position": {
"x": 23397.643386302265,
"y": 32341.47575081348
"y": 27541.47575081348
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -4115,11 +4115,11 @@
"savedPayload": {
"position": {
"x": 23618.269894780322,
"y": 32491.89635733745
"y": 27691.89635733745
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -4229,11 +4229,11 @@
"savedPayload": {
"position": {
"x": 23751.782455154113,
"y": 32723.146895353457
"y": 27923.146895353457
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -13870,11 +13870,11 @@
"savedPayload": {
"position": {
"x": 23771.737267417506,
"y": 32989.4253597057
"y": 28189.425359705703
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -13898,11 +13898,11 @@
"savedPayload": {
"position": {
"x": 23426.310403977226,
"y": 33068.996017419086
"y": 28268.996017419086
},
"targetPosition": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"floatingObject": {
"isPinned": false,
@@ -13921,16 +13921,16 @@
"savedPayload": {
"position": {
"x": 23178.438771682428,
"y": 32900
"y": 28100
},
"targetPosition": {
"x": 22658.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"isCollapsed": false,
"angleToParent": 2,
"distanceToParent": 5,
"arrangementStyle": 0
@@ -13943,7 +13943,7 @@
"claimsProgram": {
"type": "Claims Program",
"name": "New Claims Program",
"config": "{\n \"pecentage\": 95\n}",
"config": "{\n \"pecentage\": 100\n}",
"project": "Governance",
"assetClaimsFolders": [],
"featureClaimsFolders": [],
@@ -13964,11 +13964,11 @@
"savedPayload": {
"position": {
"x": 23320.95556376773,
"y": 33247.67558677937
"y": 28447.67558677937
},
"targetPosition": {
"x": 23108.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -14029,11 +14029,11 @@
"savedPayload": {
"position": {
"x": 23408.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"targetPosition": {
"x": 23108.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -14100,11 +14100,11 @@
"savedPayload": {
"position": {
"x": 23320.95556376773,
"y": 33671.9396554913
"y": 28871.939655491296
},
"targetPosition": {
"x": 23108.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -14167,11 +14167,11 @@
"savedPayload": {
"position": {
"x": 23108.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"targetPosition": {
"x": 22808.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -14195,11 +14195,11 @@
"savedPayload": {
"position": {
"x": 22658.823529411766,
"y": 33719.615242270665
"y": 28919.615242270665
},
"targetPosition": {
"x": 22808.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -14218,11 +14218,11 @@
"savedPayload": {
"position": {
"x": 22808.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"targetPosition": {
"x": 22658.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14241,11 +14241,11 @@
"savedPayload": {
"position": {
"x": 22658.823529411766,
"y": 33200
"y": 28400
},
"targetPosition": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14263,7 +14263,7 @@
"financialPrograms": {
"type": "Financial Programs",
"name": "New Financial Programs",
"config": "{\"percentage\": 25}",
"config": "{\n \"percentage\": 5\n}",
"project": "Governance",
"stakingProgram": {
"type": "Staking Program",
@@ -14324,11 +14324,11 @@
"savedPayload": {
"position": {
"x": 22508.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"targetPosition": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14464,11 +14464,11 @@
"savedPayload": {
"position": {
"x": 22208.823529411766,
"y": 33459.80762113533
"y": 28659.807621135333
},
"targetPosition": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14487,11 +14487,11 @@
"savedPayload": {
"position": {
"x": 22358.823529411766,
"y": 33200
"y": 28400
},
"targetPosition": {
"x": 22058.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14514,11 +14514,11 @@
"savedPayload": {
"position": {
"x": 21758.823529411766,
"y": 33200
"y": 28400
},
"targetPosition": {
"x": 22058.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -14537,11 +14537,11 @@
"savedPayload": {
"position": {
"x": 22058.823529411766,
"y": 33200
"y": 28400
},
"targetPosition": {
"x": 22058.823529411766,
"y": 33200
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -26,12 +26,12 @@
"id": "067a4281-671a-449a-9b72-14c42cae1ae8",
"savedPayload": {
"position": {
"x": 30662.737698905807,
"y": 37400
"x": 12683.678875376398,
"y": 22828
},
"targetPosition": {
"x": 30922.54532004114,
"y": 37550
"x": 12943.486496511729,
"y": 22978
},
"floatingObject": {
"isPinned": false,
@@ -49,12 +49,12 @@
"id": "68045aea-e5ec-4e9f-8cd7-e5008a86412c",
"savedPayload": {
"position": {
"x": 30922.54532004114,
"y": 37550
"x": 12943.486496511729,
"y": 22978
},
"targetPosition": {
"x": 31182.352941176472,
"y": 37700
"x": 13203.29411764706,
"y": 23128
},
"floatingObject": {
"isPinned": false,
@@ -81,12 +81,12 @@
"id": "da3f58c5-3bb3-455b-9544-550dee2d9fbc",
"savedPayload": {
"position": {
"x": 31701.968183447138,
"y": 37400
"x": 13722.909359917721,
"y": 22828
},
"targetPosition": {
"x": 31442.160562311805,
"y": 37550
"x": 13463.10173878239,
"y": 22978
},
"floatingObject": {
"isPinned": false,
@@ -104,12 +104,12 @@
"id": "ccd566d0-4fa9-4be0-bb81-179e6303522b",
"savedPayload": {
"position": {
"x": 31442.160562311805,
"y": 37550
"x": 13463.10173878239,
"y": 22978
},
"targetPosition": {
"x": 31182.352941176472,
"y": 37700
"x": 13203.29411764706,
"y": 23128
},
"floatingObject": {
"isPinned": false,
@@ -128,16 +128,16 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 37700
"y": 13700.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -167,11 +167,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 37700
"y": 13700.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 37700
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -208,11 +208,11 @@
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 37400
"y": 13400.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 37700
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -235,11 +235,11 @@
"savedPayload": {
"position": {
"x": 31782.352941176472,
"y": 37700
"y": 13700.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 37700
"y": 13700.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -258,11 +258,11 @@
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 37700
"y": 13700.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -291,12 +291,12 @@
"id": "ada671e7-03f8-4565-ac5c-d22e07f02462",
"savedPayload": {
"position": {
"x": 31782.352941176472,
"y": 37700
"x": 31632.352941176472,
"y": 13740.19237886467
},
"targetPosition": {
"x": 31782.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -323,6 +323,88 @@
]
]
}
},
{
"type": "User Supporter",
"name": "EvaMaria70",
"config": "{}",
"project": "Governance",
"id": "e6a1ab19-0a27-4ffc-98b2-3ff170ffe18a",
"savedPayload": {
"position": {
"x": 31932.352941176472,
"y": 13740.19237886467
},
"targetPosition": {
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "EvaMaria70",
"id": "75a78d74-93f3-44c5-a96a-5b2b9f730afe"
},
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile",
"Governance",
"75a78d74-93f3-44c5-a96a-5b2b9f730afe"
]
]
}
},
{
"type": "User Supporter",
"name": "gustavohcorradi",
"config": "{}",
"project": "Governance",
"id": "13015a17-d4db-40e8-a211-49641ea490f1",
"savedPayload": {
"position": {
"x": 32082.352941176472,
"y": 14000.000000000002
},
"targetPosition": {
"x": 31782.352941176472,
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "gustavohcorradi",
"id": "96ccf2bc-e544-4b27-aa23-a7a734798fb4"
},
"referenceParentCombinedNodePath": [
[
"gustavohcorradi",
"User Profile",
"Governance",
"96ccf2bc-e544-4b27-aa23-a7a734798fb4"
]
]
}
}
],
"tokensAwarded": {
@@ -332,12 +414,12 @@
"id": "fff18c7a-cd37-467c-8bdb-a036f2d2a9a0",
"savedPayload": {
"position": {
"x": 32082.352941176472,
"y": 38000
"x": 31932.352941176472,
"y": 14259.807621135333
},
"targetPosition": {
"x": 31782.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -359,12 +441,12 @@
"id": "a2ead972-dfc5-495b-8efc-f4aaa9f0e6c0",
"savedPayload": {
"position": {
"x": 31782.352941176472,
"y": 38300
"x": 31632.352941176472,
"y": 14259.807621135333
},
"targetPosition": {
"x": 31782.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -383,11 +465,11 @@
"savedPayload": {
"position": {
"x": 31782.352941176472,
"y": 38000
"y": 14000.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -416,12 +498,12 @@
"id": "443dbe81-af18-4699-befd-3c2bf5bcf257",
"savedPayload": {
"position": {
"x": 31782.352941176472,
"y": 38300
"x": 14883.843562387468,
"y": 23804.95305944238
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38300
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
@@ -448,6 +530,129 @@
]
]
}
},
{
"type": "User Mentor",
"name": "gustavohcorradi",
"config": "{}",
"project": "Governance",
"id": "f1e88e03-4294-4d0f-990f-9f68f3d0410f",
"savedPayload": {
"position": {
"x": 14941.772491301606,
"y": 24058.756280186895
},
"targetPosition": {
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "gustavohcorradi",
"id": "96ccf2bc-e544-4b27-aa23-a7a734798fb4"
},
"referenceParentCombinedNodePath": [
[
"gustavohcorradi",
"User Profile",
"Governance",
"96ccf2bc-e544-4b27-aa23-a7a734798fb4"
]
]
}
},
{
"type": "User Mentor",
"name": "EvaMaria70",
"config": "{}",
"project": "Governance",
"id": "e3eec697-20c0-4c22-9eb9-1b5fd9f81e7a",
"savedPayload": {
"position": {
"x": 14779.459239382328,
"y": 24262.290660370727
},
"targetPosition": {
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "EvaMaria70",
"id": "75a78d74-93f3-44c5-a96a-5b2b9f730afe"
},
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile",
"Governance",
"75a78d74-93f3-44c5-a96a-5b2b9f730afe"
]
]
}
},
{
"type": "User Mentor",
"name": "harrellbm",
"config": "{}",
"project": "Governance",
"id": "fac13a86-d505-4066-a6f5-1ba95c27ab78",
"savedPayload": {
"position": {
"x": 14519.128995911791,
"y": 24262.290660370727
},
"targetPosition": {
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "User Profile",
"name": "harrellbm",
"id": "3af73d3b-7c0e-4de7-a1e1-a72238081740"
},
"referenceParentCombinedNodePath": [
[
"harrellbm",
"User Profile",
"Governance",
"3af73d3b-7c0e-4de7-a1e1-a72238081740"
]
]
}
}
],
"tokensAwarded": {
@@ -457,12 +662,12 @@
"id": "f5ddff6e-0a6a-4d06-9c04-a40d406ca37b",
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 38600
"x": 14356.815743992513,
"y": 24058.756280186895
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38300
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
@@ -484,12 +689,12 @@
"id": "d799c41c-ba6b-42ec-9b5c-17cdb1bca814",
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 38300
"x": 14414.74467290665,
"y": 23804.95305944238
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38300
"x": 14649.29411764706,
"y": 23992
},
"floatingObject": {
"isPinned": false,
@@ -508,16 +713,16 @@
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 38300
"y": 14300.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
@@ -531,11 +736,11 @@
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 38000
"y": 14000.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -572,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": 31782.352941176472,
"y": 38600
"y": 14600.000000000002
},
"targetPosition": {
"x": 31482.352941176472,
"y": 38600
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -598,29 +803,39 @@
},
"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": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Education Teams",
"Position Class"
"Position Class",
"Governance",
"2fad4da0-ad26-4ce4-a779-5571aa7d6340"
],
[
"Translations Team",
"Position Class"
"Position Class",
"Governance",
"0cd21223-d49a-45b1-af83-ec2a31f8caaf"
],
[
"4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart",
"Position"
"5 Team Members : EvaMaria70 gitforkgit e-Nut Lennart MarinitaMarina",
"Position",
"Governance",
"6ed65be6-de6f-49a1-9c04-d2114e8763a1"
]
]
}
@@ -630,11 +845,11 @@
"savedPayload": {
"position": {
"x": 31482.352941176472,
"y": 38600
"y": 14600.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38600
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -655,19 +870,27 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Education Teams",
"Position Class"
"Position Class",
"Governance",
"2fad4da0-ad26-4ce4-a779-5571aa7d6340"
],
[
"Translations Team",
"Position Class"
"Position Class",
"Governance",
"0cd21223-d49a-45b1-af83-ec2a31f8caaf"
]
]
}
@@ -688,11 +911,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 39200
"y": 15200.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38900
"y": 14900.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -713,23 +936,33 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Education Teams",
"Position Class"
"Position Class",
"Governance",
"2fad4da0-ad26-4ce4-a779-5571aa7d6340"
],
[
"Docs Teams",
"Position Class"
"Position Class",
"Governance",
"edc33bd7-55db-4e8e-82df-81c976c83088"
],
[
"2 Team Member Tentacle23 quantum8",
"Position"
"Position",
"Governance",
"3275a849-7491-4f2b-92a7-85d8e6ff87a2"
]
]
}
@@ -739,11 +972,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 38900
"y": 14900.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38600
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -764,19 +997,27 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Education Teams",
"Position Class"
"Position Class",
"Governance",
"2fad4da0-ad26-4ce4-a779-5571aa7d6340"
],
[
"Docs Teams",
"Position Class"
"Position Class",
"Governance",
"edc33bd7-55db-4e8e-82df-81c976c83088"
]
]
}
@@ -797,11 +1038,11 @@
"savedPayload": {
"position": {
"x": 30582.352941176472,
"y": 38600
"y": 14600.000000000002
},
"targetPosition": {
"x": 30882.352941176472,
"y": 38600
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -822,27 +1063,39 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Other Teams",
"Position Class"
"Position Class",
"Governance",
"eab89bf2-76b7-4d03-ada9-9a5eb5f3cfb4"
],
[
"Community Teams",
"Position Class"
"Position Class",
"Governance",
"2c0e0545-3886-4209-ab2e-7123b89b2f03"
],
[
"Non-Tech-Users Community Team",
"Position Class"
"Position Class",
"Governance",
"9a30cf3a-1f96-4f43-836b-522e856f28ef"
],
[
"3 Team Members @gitforkgit @Soligann_Prepheadrus",
"Position"
"Position",
"Governance",
"3fb8793e-5bea-4d0f-8e04-80fed71911e3"
]
]
}
@@ -852,11 +1105,11 @@
"savedPayload": {
"position": {
"x": 30882.352941176472,
"y": 38600
"y": 14600.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38600
"y": 14600.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -877,23 +1130,33 @@
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Other Teams",
"Position Class"
"Position Class",
"Governance",
"eab89bf2-76b7-4d03-ada9-9a5eb5f3cfb4"
],
[
"Community Teams",
"Position Class"
"Position Class",
"Governance",
"2c0e0545-3886-4209-ab2e-7123b89b2f03"
],
[
"Non-Tech-Users Community Team",
"Position Class"
"Position Class",
"Governance",
"9a30cf3a-1f96-4f43-836b-522e856f28ef"
]
]
}
@@ -903,11 +1166,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 38600
"y": 14600.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38300
"y": 14300.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -926,11 +1189,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 38300
"y": 14300.000000000002
},
"targetPosition": {
"x": 31182.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -949,11 +1212,11 @@
"savedPayload": {
"position": {
"x": 31182.352941176472,
"y": 38000
"y": 14000.000000000002
},
"targetPosition": {
"x": 30882.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -976,11 +1239,11 @@
"savedPayload": {
"position": {
"x": 30582.352941176472,
"y": 38000
"y": 14000.000000000002
},
"targetPosition": {
"x": 30882.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -999,11 +1262,11 @@
"savedPayload": {
"position": {
"x": 30882.352941176472,
"y": 38000
"y": 14000.000000000002
},
"targetPosition": {
"x": 30882.352941176472,
"y": 38000
"y": 14000.000000000002
},
"floatingObject": {
"isPinned": false,
@@ -127,12 +127,12 @@
"id": "1cd251c3-5a87-435e-a262-42323aed0bc4",
"savedPayload": {
"position": {
"x": 26730.39585642945,
"y": 33350
"x": 31142.160562311805,
"y": 28550
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -819,19 +819,19 @@
"id": "b7c934fd-8031-4615-bf9c-94280e452511",
"savedPayload": {
"position": {
"x": 26860.299666997118,
"y": 33725
"x": 31012.25675174414,
"y": 28775
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": true,
"angleToParent": 1,
"distanceToParent": 4,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -856,28 +856,144 @@
"config": "{}",
"project": "Governance",
"votesSwitch": [],
"claimVotesSwitch": [
"claimVotesSwitch": [],
"weightVotesSwitch": [
{
"type": "Claim Votes Switch",
"name": "New Claim Votes Switch",
"type": "Weight Votes Switch",
"name": "New Weight Votes Switch",
"config": "{}",
"project": "Governance",
"claimVotesSwitch": [],
"positionClaimVotes": [
"weightVotesSwitch": [
{
"type": "Position Claim Vote",
"name": "EvaMaria70 4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart Translations Team",
"type": "Weight Votes Switch",
"name": "Weight Votes - Mentorship",
"config": "{}",
"project": "Governance",
"id": "52d4be66-7380-4f30-9ebb-d3af356e54ff",
"weightVotesSwitch": [],
"poolWeightVotes": [
{
"type": "Pool Weight Vote",
"name": "Mentorship Rewards Pool",
"config": "{\n\"percentage\": 90\n}",
"project": "Governance",
"id": "2a573cd8-f8d6-4b36-9f09-986902a25427",
"savedPayload": {
"position": {
"x": 31144.852941176472,
"y": 28870.096189432334
},
"targetPosition": {
"x": 31482.352941176472,
"y": 28870.096189432334
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "Pool",
"name": "Mentorship Rewards",
"id": "53ddcc36-f693-4193-8284-999a88f1c944"
},
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Pools"
],
[
"Governance Programs",
"Pool Class"
],
[
"Community Building Programs",
"Pool Class"
],
[
"Mentorship Program",
"Pool Class"
],
[
"Mentorship Rewards",
"Pool"
]
]
}
},
{
"type": "Pool Weight Vote",
"name": "Mentorship Bonus Pool",
"config": "{}",
"project": "Governance",
"id": "44ffa08c-ebcc-4ca2-833a-d7e4a4a96841",
"savedPayload": {
"position": {
"x": 31651.102941176472,
"y": 28577.812615655086
},
"targetPosition": {
"x": 31482.352941176472,
"y": 28870.096189432334
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "Pool",
"name": "Mentorship Bonus",
"id": "ff1e4a84-3363-4348-ad15-31a34898fa82"
},
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Pools"
],
[
"Governance Programs",
"Pool Class"
],
[
"Community Building Programs",
"Pool Class"
],
[
"Mentorship Program",
"Pool Class"
],
[
"Mentorship Bonus",
"Pool"
]
]
}
}
],
"assetWeightVotes": [],
"featureWeightVotes": [],
"positionWeightVotes": [],
"id": "af870025-4eac-4adf-b929-67b76bfac227",
"savedPayload": {
"position": {
"x": 26920.58823529412,
"y": 33459.80762113533
"x": 31482.352941176472,
"y": 28870.096189432334
},
"targetPosition": {
"x": 26920.58823529412,
"y": 33759.80762113533
"x": 31594.852941176472,
"y": 29064.951905283833
},
"floatingObject": {
"isPinned": false,
@@ -889,92 +1005,28 @@
},
"uiObject": {
"isRunning": false
},
"referenceParent": {
"type": "Position Contribution Claim",
"name": "4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart Translations Team",
"id": "7ed8d42e-a28d-4093-96c8-bc8bf6871404"
},
"referenceParentCombinedNodePath": [
[
"EvaMaria70",
"User Profile"
],
[
"New Token Power Switch",
"Token Power Switch"
],
[
"New Votes And Claims Programs",
"Votes And Claims Programs"
],
[
"New Claims Program",
"Claims Program"
],
[
"New Position Claims Folder",
"Position Claims Folder"
],
[
"4 Team Members : EvaMaria70 gitforkgit e-Nut Lennart Translations Team",
"Position Contribution Claim"
]
]
}
}
}
],
"assetClaimVotes": [],
"featureClaimVotes": [],
"id": "8db18298-8dda-445c-95ad-a9e88a9ec6d1",
"savedPayload": {
"position": {
"x": 26920.58823529412,
"y": 33759.80762113533
},
"targetPosition": {
"x": 26920.58823529412,
"y": 34059.80762113533
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"weightVotesSwitch": [
{
"type": "Weight Votes Switch",
"name": "New Weight Votes Switch",
"config": "{}",
"project": "Governance",
"weightVotesSwitch": [],
"poolWeightVotes": [],
"assetWeightVotes": [],
"featureWeightVotes": [],
"positionWeightVotes": [
{
"type": "Position Weight Vote",
"name": "Non-Tech-Users Community Team Team Leader",
"name": "Non-Tech-Users Community Team Team Leader @gustavohcorradi ",
"config": "{}",
"project": "Governance",
"id": "5b8b92d0-1df5-45f1-9ae7-75c87a8302db",
"savedPayload": {
"position": {
"x": 27520.58823529412,
"y": 34059.80762113533
"x": 31819.852941176472,
"y": 29064.951905283833
},
"targetPosition": {
"x": 27220.58823529412,
"y": 34059.80762113533
"x": 31594.852941176472,
"y": 29064.951905283833
},
"floatingObject": {
"isPinned": false,
@@ -989,33 +1041,45 @@
},
"referenceParent": {
"type": "Position",
"name": "Team Leader",
"name": "Team Leader @gustavohcorradi ",
"id": "89eee7fc-9472-48ce-b59d-6830208c7a7b"
},
"referenceParentCombinedNodePath": [
[
"Superalgos",
"Positions"
"Positions",
"Governance",
"50c68665-5da2-48a4-b229-7a1563ae82d2"
],
[
"Roles Played @ Beta-12",
"Position Class"
"Position Class",
"Governance",
"8b29fcb2-3b9a-444f-b3b0-05976da9a18f"
],
[
"Other Teams",
"Position Class"
"Position Class",
"Governance",
"eab89bf2-76b7-4d03-ada9-9a5eb5f3cfb4"
],
[
"Community Teams",
"Position Class"
"Position Class",
"Governance",
"2c0e0545-3886-4209-ab2e-7123b89b2f03"
],
[
"Non-Tech-Users Community Team",
"Position Class"
"Position Class",
"Governance",
"9a30cf3a-1f96-4f43-836b-522e856f28ef"
],
[
"Team Leader",
"Position"
"Team Leader @gustavohcorradi ",
"Position",
"Governance",
"89eee7fc-9472-48ce-b59d-6830208c7a7b"
]
]
}
@@ -1024,19 +1088,19 @@
"id": "37a9c875-a9bc-4ab1-a00e-f248f818f311",
"savedPayload": {
"position": {
"x": 27220.58823529412,
"y": 34059.80762113533
"x": 31594.852941176472,
"y": 29064.951905283833
},
"targetPosition": {
"x": 26920.58823529412,
"y": 34059.80762113533
"x": 31482.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1056,19 +1120,19 @@
"id": "e8e3f63a-b9fb-47d7-8fc9-c0634a0f2425",
"savedPayload": {
"position": {
"x": 26920.58823529412,
"y": 34359.80762113533
"x": 31594.852941176472,
"y": 29454.663336986832
},
"targetPosition": {
"x": 26920.58823529412,
"y": 34059.80762113533
"x": 31482.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1080,19 +1144,19 @@
"id": "352b5f30-d971-478b-9085-4c9ff9ddb388",
"savedPayload": {
"position": {
"x": 26920.58823529412,
"y": 34059.80762113533
"x": 31482.352941176472,
"y": 29259.807621135333
},
"targetPosition": {
"x": 26620.58823529412,
"y": 34059.80762113533
"x": 31032.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 4,
"arrangementStyle": 0
},
"uiObject": {
@@ -1108,12 +1172,12 @@
"id": "1e334525-2ffb-4808-bc7c-9e621cee282f",
"savedPayload": {
"position": {
"x": 26545.58823529412,
"y": 34189.711431703
"x": 30957.352941176472,
"y": 29389.711431703
},
"targetPosition": {
"x": 26620.58823529412,
"y": 34059.80762113533
"x": 31032.352941176472,
"y": 29259.807621135333
},
"floatingObject": {
"isPinned": false,
@@ -1131,12 +1195,12 @@
"id": "c063e64b-1c1e-48f6-bcfd-4fa747f779ae",
"savedPayload": {
"position": {
"x": 26620.58823529412,
"y": 34059.80762113533
"x": 31032.352941176472,
"y": 29259.807621135333
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33800
"x": 30882.352941176472,
"y": 29000
},
"floatingObject": {
"isPinned": false,
@@ -1174,12 +1238,12 @@
"id": "6dda0146-c5eb-4a8e-942c-630756f4add3",
"savedPayload": {
"position": {
"x": 26470.58823529412,
"y": 34400
"x": 30882.352941176472,
"y": 29600
},
"targetPosition": {
"x": 26210.780614158786,
"y": 34250
"x": 30622.54532004114,
"y": 29450
},
"floatingObject": {
"isPinned": false,
@@ -1233,18 +1297,18 @@
},
{
"type": "Position Contribution Claim",
"name": "Team Leader Non-Tech-Users Community Team",
"name": "Team Leader @gustavohcorradi Non-Tech-Users Community Team",
"config": "{}",
"project": "Governance",
"id": "1f64f90f-61a4-4592-bc05-3f5de5313683",
"savedPayload": {
"position": {
"x": 25950.972993023453,
"y": 34400
"x": 30362.737698905807,
"y": 29600
},
"targetPosition": {
"x": 26210.780614158786,
"y": 34250
"x": 30622.54532004114,
"y": 29450
},
"floatingObject": {
"isPinned": false,
@@ -1259,7 +1323,7 @@
},
"referenceParent": {
"type": "Position",
"name": "Team Leader",
"name": "Team Leader @gustavohcorradi ",
"id": "89eee7fc-9472-48ce-b59d-6830208c7a7b"
},
"referenceParentCombinedNodePath": [
@@ -1294,7 +1358,7 @@
"9a30cf3a-1f96-4f43-836b-522e856f28ef"
],
[
"Team Leader",
"Team Leader @gustavohcorradi ",
"Position",
"Governance",
"89eee7fc-9472-48ce-b59d-6830208c7a7b"
@@ -1306,12 +1370,12 @@
"id": "061bd94b-488e-4b40-8f89-fc5176407ec8",
"savedPayload": {
"position": {
"x": 26210.780614158786,
"y": 34250
"x": 30622.54532004114,
"y": 29450
},
"targetPosition": {
"x": 26210.780614158786,
"y": 33950
"x": 30622.54532004114,
"y": 29150
},
"floatingObject": {
"isPinned": false,
@@ -1334,12 +1398,12 @@
"id": "46a6d1f4-c357-4848-a71b-c20e66e4d2d8",
"savedPayload": {
"position": {
"x": 26080.87680359112,
"y": 33875
"x": 30492.641509473473,
"y": 29075
},
"targetPosition": {
"x": 26210.780614158786,
"y": 33950
"x": 30622.54532004114,
"y": 29150
},
"floatingObject": {
"isPinned": false,
@@ -1357,12 +1421,12 @@
"id": "87c55f3a-5d89-469c-90c0-798d369605d5",
"savedPayload": {
"position": {
"x": 26210.780614158786,
"y": 33950
"x": 30622.54532004114,
"y": 29150
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33800
"x": 30882.352941176472,
"y": 29000
},
"floatingObject": {
"isPinned": false,
@@ -1380,12 +1444,12 @@
"id": "b7006f04-6506-4871-a5e1-e28c2c86d7b4",
"savedPayload": {
"position": {
"x": 26470.58823529412,
"y": 33800
"x": 30882.352941176472,
"y": 29000
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1403,7 +1467,7 @@
"financialPrograms": {
"type": "Financial Programs",
"name": "New Financial Programs",
"config": "{\"percentage\": 35}",
"config": "{\n \"percentage\": 35\n}",
"project": "Governance",
"stakingProgram": {
"type": "Staking Program",
@@ -1417,12 +1481,12 @@
"id": "3fa791bd-0c1b-4b7b-816f-eb1b995cb953",
"savedPayload": {
"position": {
"x": 25626.213466604288,
"y": 33987.5
"x": 30037.97817248664,
"y": 29187.5
},
"targetPosition": {
"x": 25821.069182455787,
"y": 33875
"x": 30232.83388833814,
"y": 29075
},
"floatingObject": {
"isPinned": false,
@@ -1440,12 +1504,12 @@
"id": "72c2c3b4-c615-4142-b4d1-e8cd7be78331",
"savedPayload": {
"position": {
"x": 25821.069182455787,
"y": 33875
"x": 30232.83388833814,
"y": 29075
},
"targetPosition": {
"x": 26210.780614158786,
"y": 33650
"x": 30622.54532004114,
"y": 28850
},
"floatingObject": {
"isPinned": false,
@@ -1463,12 +1527,12 @@
"id": "5dca1e4e-5fa1-4b07-b6a3-b12782221e0b",
"savedPayload": {
"position": {
"x": 26210.780614158786,
"y": 33650
"x": 30622.54532004114,
"y": 28850
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1491,8 +1555,8 @@
"liquidityProgram": [
{
"type": "Liquidity Program",
"name": "New Liquidity Program",
"config": "{\n\"asset\": \"BTCB\"\n}",
"name": "SA/BUSD",
"config": "{\n \"asset\": \"BUSD\"\n}",
"project": "Governance",
"tokensAwarded": {
"type": "Tokens Awarded",
@@ -1501,19 +1565,19 @@
"id": "a851317c-1283-40e1-9434-a78c5c88caaa",
"savedPayload": {
"position": {
"x": 25691.16537188812,
"y": 33050
"x": 30232.83388833814,
"y": 28325
},
"targetPosition": {
"x": 25950.972993023453,
"y": 33200
"x": 30362.737698905807,
"y": 28400
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1524,12 +1588,12 @@
"id": "663a7d1a-bb5d-42b4-93c7-a2387f5daae5",
"savedPayload": {
"position": {
"x": 25950.972993023453,
"y": 33200
"x": 30362.737698905807,
"y": 28400
},
"targetPosition": {
"x": 26210.780614158786,
"y": 33350
"x": 30622.54532004114,
"y": 28550
},
"floatingObject": {
"isPinned": false,
@@ -1548,12 +1612,12 @@
"id": "46d76b2d-c54a-4f77-b206-03ac9afa095e",
"savedPayload": {
"position": {
"x": 26210.780614158786,
"y": 33350
"x": 30622.54532004114,
"y": 28550
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"floatingObject": {
"isPinned": false,
@@ -1571,12 +1635,12 @@
"id": "b70247f5-4442-4433-b35f-aa64a2f7c174",
"savedPayload": {
"position": {
"x": 26470.58823529412,
"y": 33500
"x": 30882.352941176472,
"y": 28700
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33200
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": false,
@@ -1598,19 +1662,19 @@
"id": "899f92f8-5e00-42a0-8316-10c95dd2a6b1",
"savedPayload": {
"position": {
"x": 26170.58823529412,
"y": 33200
"x": 30732.352941176472,
"y": 28400
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33200
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"distanceToParent": 2,
"arrangementStyle": 0
},
"uiObject": {
@@ -1621,12 +1685,12 @@
"id": "96ccf2bc-e544-4b27-aa23-a7a734798fb4",
"savedPayload": {
"position": {
"x": 26470.58823529412,
"y": 33200
"x": 30882.352941176472,
"y": 28400
},
"targetPosition": {
"x": 26470.58823529412,
"y": 33200
"x": 30882.352941176472,
"y": 28400
},
"floatingObject": {
"isPinned": true,
@@ -26,12 +26,12 @@
"id": "e2dec054-20c2-426e-8303-4a6f475a02e0",
"savedPayload": {
"position": {
"x": 19237,
"y": 8865.077136594007
"x": 18867.384757729335,
"y": 9044.5
},
"targetPosition": {
"x": 19387,
"y": 9124.884757729338
"x": 19127.192378864667,
"y": 9194.5
},
"floatingObject": {
"isPinned": false,
@@ -49,12 +49,12 @@
"id": "80ffa07e-7b69-4d76-a315-67ca38b1d340",
"savedPayload": {
"position": {
"x": 19387,
"y": 9124.884757729338
"x": 19127.192378864667,
"y": 9194.5
},
"targetPosition": {
"x": 19537,
"y": 9384.692378864669
"x": 19387,
"y": 9344.5
},
"floatingObject": {
"isPinned": false,
@@ -78,15 +78,15 @@
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "c4ed9b78-6a1f-44fc-b9dd-29b54a5b40a5",
"id": "96a3ff2b-49de-4fb5-9bbf-921973ce770f",
"savedPayload": {
"position": {
"x": 20137,
"y": 9384.692378864669
"x": 19906.615242270665,
"y": 9044.5
},
"targetPosition": {
"x": 19837,
"y": 9384.692378864669
"x": 19646.807621135333,
"y": 9194.5
},
"floatingObject": {
"isPinned": false,
@@ -104,12 +104,12 @@
"id": "22e35987-f640-40cf-b9e2-fe3af87b5bfd",
"savedPayload": {
"position": {
"x": 19837,
"y": 9384.692378864669
"x": 19646.807621135333,
"y": 9194.5
},
"targetPosition": {
"x": 19537,
"y": 9384.692378864669
"x": 19387,
"y": 9344.5
},
"floatingObject": {
"isPinned": false,
@@ -127,8 +127,8 @@
"id": "83f57cc3-8e3f-40a6-9f79-15ecd7732094",
"savedPayload": {
"position": {
"x": 19537,
"y": 9384.692378864669
"x": 19387,
"y": 9344.5
},
"targetPosition": {
"x": 19387,
@@ -530,8 +530,8 @@
"id": "cecc4fa4-4486-4785-8f98-27d5b4e6f6b8",
"savedPayload": {
"position": {
"x": 19537,
"y": 9904.307621135331
"x": 19687,
"y": 9644.5
},
"targetPosition": {
"x": 19387,
@@ -550,6 +550,91 @@
}
}
},
"liquidityPrograms": {
"type": "Liquidity Programs",
"name": "New Liquidity Programs",
"config": "{}",
"project": "Governance",
"liquidityProgram": [
{
"type": "Liquidity Program",
"name": "New Liquidity Program",
"config": "{\n \"asset\": \"BUSD\"\n}",
"project": "Governance",
"tokensAwarded": {
"type": "Tokens Awarded",
"name": "New Tokens Awarded",
"project": "Governance",
"id": "5dc56466-4214-467c-b3c1-13d38ebff7d8",
"savedPayload": {
"position": {
"x": 19387,
"y": 10544.5
},
"targetPosition": {
"x": 19387,
"y": 10244.5
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "a438ce8c-3836-4043-a171-143a009821ce",
"savedPayload": {
"position": {
"x": 19387,
"y": 10244.5
},
"targetPosition": {
"x": 19387,
"y": 9944.5
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
}
],
"id": "8ef4f8b3-42e2-4484-84e2-92292bba8415",
"savedPayload": {
"position": {
"x": 19387,
"y": 9944.5
},
"targetPosition": {
"x": 19387,
"y": 9644.5
},
"floatingObject": {
"isPinned": false,
"isFrozen": false,
"isCollapsed": false,
"angleToParent": 1,
"distanceToParent": 3,
"arrangementStyle": 0
},
"uiObject": {
"isRunning": false
}
}
},
"id": "2f247174-4c0a-4a8b-9b21-33504b7e6be7",
"savedPayload": {
"position": {
File diff suppressed because it is too large. Load diff
@@ -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
+45
View File
@@ -0,0 +1,45 @@
<!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) => {
if(data.includes('[ERROR]')) {
document.getElementById('log').insertAdjacentHTML('beforeend', "<span class=\"log-error\">" + data + "</span><br>");
}
else if(data.includes('[WARN]')) {
document.getElementById('log').insertAdjacentHTML('beforeend',"<span class=\"log-warn\">" + data + "</span><br>");
}
else if(data.includes('[INFO]')) {
document.getElementById('log').insertAdjacentHTML('beforeend',"<span class=\"log-info\">" + data + "</span><br>");
}
else {
document.getElementById('log').insertAdjacentHTML('beforeend',"<span class=\"log-log\">" + data + "</span><br>");
}
window.scrollTo(0, document.querySelector("#log-container").scrollHeight)
})
window.api.send("toMain", "ImAlive!")
}
</script>
</body>
</html>
+202 -31
View File
@@ -1,4 +1,4 @@
const {app, Menu, BrowserWindow} = require('electron')
const {app, Menu, BrowserWindow, ipcMain, dialog } = require('electron')
const path = require('path')
const fs = require('fs')
@@ -10,13 +10,10 @@ process.env.SA_MODE = 'gitDisable'
process.env.PACKAGED_PATH = app.getAppPath()
process.env.DATA_PATH = app.getPath('documents')
const WINDOW_WIDTH = null
const WINDOW_HEIGHT = null
const WINDOW_WIDTH = 1280
const WINDOW_HEIGHT = 768
var w
var app_ready = false
var server_ready = false
let mainWindow, consoleWindow, platform
const port = 34248 // Default HTTP port
@@ -24,41 +21,137 @@ run()
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})
platform.on('message', _ => {
openMain()
openConsoleWindow()
})
}
function open () {
ipcMain.on("toMain", (event, args) => {
if (args === "ImAlive!" && consoleWindow) {
platform.stdout.setEncoding('utf8')
platform.stdout.on('data', (data) => {
if(consoleWindow != null) {
consoleWindow.webContents.send("fromMain", data);
}
})
}
})
function openMain () {
let bw_options = {
width: WINDOW_WIDTH ? WINDOW_WIDTH : 1280,
height: WINDOW_HEIGHT ? WINDOW_HEIGHT : 768,
resizable: true
width: WINDOW_WIDTH,
height: WINDOW_HEIGHT,
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)
w.loadURL("http://localhost:" + port)
createMainMenus()
// w.webContents.openDevTools()
mainWindow.loadURL("http://localhost:" + port)
w.on('closed', function () {
w = null
mainWindow.on('close', function (e) {
if (consoleWindow.isVisible()) {
e.preventDefault()
mainWindow.hide()
} else {
let choice = dialog.showMessageBoxSync(
mainWindow,
{
type: 'question',
buttons: ['Yes', 'No'],
title: 'Confirm',
message: 'Do you really want to close Superalgos?'
}
)
// 0 for Yes
if (choice === 0) {
mainWindow = null
app.exit()
}
// 1 for No
if (choice === 1) {
e.preventDefault()
}
}
})
mainWindow.on('activate', function () {
mainWindow.show()
})
}
function openConsoleWindow() {
if(consoleWindow) {
consoleWindow.focus()
return
}
consoleWindow = new BrowserWindow({
resizable: true,
title: 'Platform Logs',
minimizable: false,
fullscreenable: true,
show: false,
width: WINDOW_WIDTH,
webPreferences: {
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('close', function (e) {
if (mainWindow.isVisible()) {
e.preventDefault()
createMainMenus()
consoleWindow.hide()
} else {
let choice = dialog.showMessageBoxSync(
mainWindow,
{
type: 'question',
buttons: ['Yes', 'No'],
title: 'Confirm',
message: 'Do you really want to close Superalgos?'
}
)
// 0 for Yes
if (choice === 0) {
consoleWindow = null
app.exit()
}
// 1 for No
if (choice === 1) {
e.preventDefault()
}
}
})
consoleWindow.on('show', function () {
createConsoleMenus()
})
}
app.on('ready', function () {
app_ready = true
autoUpdater.checkForUpdatesAndNotify();
create_menus()
if (server_ready) open()
createMainMenus()
})
app.on('window-all-closed', function () {
@@ -69,8 +162,16 @@ app.on('activate', function () {
if (BrowserWindow.getAllWindows().length === 0) createWindow()
})
function create_menus () {
const template = [
function createMainMenus() {
function logsActive() {
if(consoleWindow) {
return true
} else {
return false
}
}
const mainTemplate = [
{
label: 'File',
submenu: [
@@ -88,7 +189,6 @@ function create_menus () {
{role: 'cut'},
{role: 'copy'},
{role: 'paste'},
{role: 'pasteandmatchstyle'},
{role: 'delete'},
{role: 'selectall'}
]
@@ -115,9 +215,80 @@ function create_menus () {
{type: 'separator'},
{role: 'togglefullscreen'}
]
},
{
label: 'Logs',
enabled: logsActive(),
click () {
if(consoleWindow) {
consoleWindow.show()
} else {
openConsoleWindow()
}
}
}
]
const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)
const mainMenu = Menu.buildFromTemplate(mainTemplate)
Menu.setApplicationMenu(mainMenu)
}
function createConsoleMenus () {
function uiActive() {
if(mainWindow.isVisible()) {
return false
} else {
return true
}
}
const consoleTemplate = [
{
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'}
]
},
{
label: 'Show UI',
id: 'ui',
enabled: uiActive(),
click () {
mainWindow.show()
}
}
]
const consoleMenu = Menu.buildFromTemplate(consoleTemplate)
Menu.setApplicationMenu(consoleMenu)
}
+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));
}
}
}
);