Merge pull request #2494 from Superalgos/develop

Develop into Plugins-Docs
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2021-11-03 13:23:38 -04:00
commit d6b1de3eeb
1868 files changed
+691677 -501035

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
+30
View File
@@ -0,0 +1,30 @@
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence, these will be requested for
# review when someone opens a pull request.
* @Superalgos/foundations-project
# Project Teams
/Projects/Algorithmic-Trading/ @Superalgos/algorithmic-trading-project
/Projects/Community-Plugins/ @Superalgos/community-plugins-project
/Projects/Data-Mining/ @Superalgos/data-mining-project
/Projects/Ethereum/ @Superalgos/ethereum-project
/Projects/Foundations/ @Superalgos/foundations-project
/Projects/Governance/ @Superalgos/governance-project
/Projects/Machine-Learning/ @Superalgos/machine-learning-project
/Projects/Network/ @Superalgos/network-project
/Projects/Social-Bots/ @Superalgos/social-bots-project
/Projects/Social-Trading/ @Superalgos/social-trading-project
/Projects/TensorFlow/ @Superalgos/tensorflow-project
/Projects/Visual-Scripting/ @Superalgos/visual-scripting-project
/Projects/Education/ @Superalgos/education-project
Docs*/ @Superalgos/education-project
/.github/ @Superalgos/sysadmins-team
/Docker/ @Superalgos/sysadmins-team
.git* @Superalgos/sysadmins-team
.docker* @Superalgos/sysadmins-team
package*.json @Superalgos/sysadmins-team
+69
View File
@@ -0,0 +1,69 @@
name: Build/release Binaries
on:
pull_request:
branches: [master]
#release:
# types: [published, created]
workflow_dispatch:
jobs:
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]
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.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/v') }}
release: true
+78
View File
@@ -0,0 +1,78 @@
name: Nightly develop Binaries
on:
schedule:
- cron: '20 3 * * *'
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Download a file
run: curl "https://raw.githubusercontent.com/${{ github.repository }}/develop/package.json" -o package.json
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: get-version
id: version
uses: nyaa8/package-version@v1
with:
path: './package.json'
- name: Create nightly release
id: create_release
uses: viperproject/create-nightly-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.PACKAGE_VERSION }}.${{ steps.date.outputs.date }}
release_name: Superalgos ${{ env.PACKAGE_VERSION }} Snapshot ${{ steps.date.outputs.date }}
keep_num: 5
keep_tags: false
build-release:
runs-on: ${{ matrix.os }}
needs: create-release
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- 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.extraMetadata.version=${{ env.PACKAGE_VERSION }}.${{ steps.date.outputs.date }} -c build/electron-builder.json -p onTagOrDraft"
# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
# release: ${{ startsWith(github.ref, 'refs/tags/v') }}
release: true
+3
View File
@@ -4,6 +4,8 @@ My-Workspaces
My-Social-Trading-Data
My-Network-Nodes-Data
My-Secrets
My-Data-Storage
My-Log-Files
debug.log
.DS_Store
*.db
@@ -17,3 +19,4 @@ node_modules
launch.json
package-lock.json
.idea
dist
+11 -5
View File
@@ -1,19 +1,25 @@
{
"files.exclude": {
"**/Data-Storage": true,
"**/Documentation": true,
"**/Log-Files": true,
"**/node_modules": true,
"**/Deprecated-Code": true,
"**/My-Social-Trading-Data": true,
"**/My-Network-Nodes-Data": true,
"**/My-Workspaces": true,
"**/My-Secrets": true,
"**/My-Data-Storage": true,
"**/My-Log-Files": true,
},
"search.exclude": {
"**/Data-Storage": true,
"**/Documentation": true,
"**/Log-Files": true,
"**/node_modules": true,
"**/Deprecated-Code": true,
"**/My-Social-Trading-Data": true
"**/My-Social-Trading-Data": true,
"**/My-Network-Nodes-Data": true,
"**/My-Workspaces": true,
"**/My-Secrets": true,
"**/My-Data-Storage": true,
"**/My-Log-Files": true,
},
"search.maintainFileSearchCache": true
}
+4
View File
@@ -0,0 +1,4 @@
brew "git"
brew "node"
brew "npm"
brew "python@3.9"
+9 -11
View File
@@ -8,28 +8,26 @@ exports.newDesktopApp = function newDesktopApp() {
async function run() {
/*
Heree we will store our running objects:
Here we will store our running objects:
*/
DK.running = {}
/*
This is the Web Sockets client that interacts with the Superalgos Network.
This is the Personal Social Graph for the user running this App.
*/
DK.running.socialGraph = DK.projects.socialTrading.modules.socialGraph.newSocialTradingModulesSocialGraph()
await DK.running.socialGraph.initialize()
/*
This is the Web Sockets client that interacts with the Superalgos Network.
*/
DK.running.webSocketsClient = SA.projects.network.modules.webSocketsClient.newNetworkModulesWebSocketsClient()
DK.running.webSocketsClient = SA.projects.network.modules.webSocketsAppClient.newNetworkModulesWebSocketsAppClient()
await DK.running.webSocketsClient.initialize()
console.log('Desktop Client Connected to Network Node via Web Sockets ................... Connected to port ' + global.env.NETWORK_WEB_SOCKETS_INTERFACE_PORT)
/* These are the Network Interfaces by which the UI interacts with the Desktop App.*/
/* These are the Network Interfaces by which the Web App interacts with this Desktop Client.*/
DK.running.webSocketsInterface = DK.projects.socialTrading.modules.webSocketsInterface.newDesktopModulesWebSocketsInterface()
DK.running.webSocketsInterface.initialize()
console.log('Desktop Client Web Sockets Interface ....................................... Listening at port ' + global.env.CLIENT_WEB_SOCKETS_INTERFACE_PORT)
console.log('Desktop Client Web Sockets Interface ....................................... Listening at port ' + global.env.DESKTOP_WEB_SOCKETS_INTERFACE_PORT)
DK.running.httpInterface = DK.projects.socialTrading.modules.httpInterface.newDesktopModulesHttpInterface()
@@ -45,7 +43,7 @@ exports.newDesktopApp = function newDesktopApp() {
*/
queryMessage = {
queryType: SA.projects.socialTrading.globals.queryTypes.USER_PROFILES,
emitterUserProfileId: SA.secrets.map.get('Social Trading Desktop').userProfileId,
emitterUserProfileId: SA.secrets.map.get(global.env.DESKTOP_APP_SIGNING_ACCOUNT).userProfileId,
initialIndex: 'Last',
amountRequested: 10,
direction: 'Past'
@@ -74,7 +72,7 @@ exports.newDesktopApp = function newDesktopApp() {
let eventMessage = {
eventId: SA.projects.foundations.utilities.miscellaneousFunctions.genereteUniqueId(),
eventType: SA.projects.socialTrading.globals.eventTypes.FOLLOW_USER_PROFILE,
emitterUserProfileId: SA.secrets.map.get('Social Trading Desktop').userProfileId,
emitterUserProfileId: SA.secrets.map.get(global.env.DESKTOP_APP_SIGNING_ACCOUNT).userProfileId,
targetUserProfileId: profile.userProfileId
}
@@ -99,8 +97,8 @@ exports.newDesktopApp = function newDesktopApp() {
*/
queryMessage = {
queryType: SA.projects.socialTrading.globals.queryTypes.USER_PROFILE_STATS,
emitterUserProfileId: SA.secrets.map.get('Social Trading Desktop').userProfileId,
targetUserProfileId: SA.secrets.map.get('Social Trading Desktop').userProfileId
emitterUserProfileId: SA.secrets.map.get(global.env.DESKTOP_APP_SIGNING_ACCOUNT).userProfileId,
targetUserProfileId: SA.secrets.map.get(global.env.DESKTOP_APP_SIGNING_ACCOUNT).userProfileId
}
query = {
+9 -6
View File
@@ -1,5 +1,9 @@
function newWebApp() {
/*
In it's current state of development, the Web App only has one module.
Everything is being coded here until some structure emerges.
*/
let thisObject = {
initialize: initialize,
finalize: finalize
@@ -15,7 +19,7 @@ function newWebApp() {
try {
setupRootObject(UI, 'UI')
setupRootObject(SA, 'SA')
await UI.projects.socialTrading.modules.webSocketsClient.initialize()
await UI.projects.socialTrading.modules.webSocketsWebClient.initialize()
loadWUserProfileTimeline()
loadWhoToFollow()
setupEventHandlers()
@@ -109,7 +113,7 @@ function newWebApp() {
queryMessage: JSON.stringify(queryMessage)
}
await UI.projects.socialTrading.modules.webSocketsClient.sendMessage(
await UI.projects.socialTrading.modules.webSocketsWebClient.sendMessage(
JSON.stringify(query)
)
.then(addToContentDiv)
@@ -123,7 +127,6 @@ function newWebApp() {
function addToContentDiv(events) {
try {
let contentDiv = document.getElementById('content-div')
/*
Delete al current content.
*/
@@ -180,7 +183,7 @@ function newWebApp() {
queryMessage: JSON.stringify(queryMessage)
}
await UI.projects.socialTrading.modules.webSocketsClient.sendMessage(
await UI.projects.socialTrading.modules.webSocketsWebClient.sendMessage(
JSON.stringify(query)
)
.then(addWhoToFollowTable)
@@ -357,7 +360,7 @@ function newWebApp() {
eventMessage: JSON.stringify(eventMessage)
}
await UI.projects.socialTrading.modules.webSocketsClient.sendMessage(
await UI.projects.socialTrading.modules.webSocketsWebClient.sendMessage(
JSON.stringify(event)
)
.then(resolve)
@@ -393,7 +396,7 @@ function newWebApp() {
eventMessage: JSON.stringify(eventMessage)
}
await UI.projects.socialTrading.modules.webSocketsClient.sendMessage(
await UI.projects.socialTrading.modules.webSocketsWebClient.sendMessage(
JSON.stringify(event)
)
.then(resolve)
+5 -6
View File
@@ -12,17 +12,17 @@ exports.newDesktopRoot = function newDesktopRoot() {
async function run() {
/*
The DK object is accesible everywhere at the Superalgos Desktop App.
The DK object is accessible everywhere at the Superalgos Desktop App.
It provides access to all modules built for this App.
*/
global.DK = {}
/*
The SA object is accesible everywhere at the Superalgos Desktop App.
The SA object is accessible everywhere at the Superalgos Desktop App.
It provides access to all modules built for Superalgos in general.
*/
global.SA = {}
/* Load Environment Variables */
let ENVIRONMENT = require('./EnvironmentForDebug.js');
let ENVIRONMENT = require('./Environment.js');
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
global.env = ENVIRONMENT_MODULE
/*
@@ -51,17 +51,16 @@ exports.newDesktopRoot = function newDesktopRoot() {
simpleGit: require('simple-git'),
nodeFetch: require('node-fetch')
}
/*
Setting up Secrets.
*/
SA.secrets = {
array: require('./My-Secrets/Secrets.json'),
array: require('./My-Secrets/Secrets.json').secrets,
map: new Map()
}
for (let i = 0; i < SA.secrets.array.length; i++) {
let secret = SA.secrets.array[i]
SA.secrets.map.set (secret.codeName, secret)
SA.secrets.map.set (secret.signingAccountChildCodeName, secret)
}
run()
+2 -2
View File
@@ -4,7 +4,7 @@ COPY . .
RUN apk add --no-cache --virtual .build-deps make g++ \
&& apk add --no-cache python3 \
&& if [ "$(uname -m)" = "x86_64" ]; then node setup noShortcuts tensorflow; else node setup noShortcuts; fi \
&& mkdir -p Data-Storage Log-Files My-Workspaces \
&& mkdir -p ./Platform/My-Data-Storage ./Platform/My-Log-Files ./Platform/My-Workspaces \
&& addgroup superalgos \
&& adduser --disabled-password --no-create-home --ingroup superalgos superalgos \
&& chown -R superalgos:superalgos /app \
@@ -12,5 +12,5 @@ RUN apk add --no-cache --virtual .build-deps make g++ \
USER superalgos
EXPOSE 34248
EXPOSE 18041
VOLUME ["/app/Data-Storage", "/app/Log-Files", "/app/My-Workspaces"]
VOLUME ["/app/Platform/My-Data-Storage", "/app/Platform/My-Log-Files", "/app/Platform/My-Workspaces"]
ENTRYPOINT ["node", "platform", "noBrowser"]
+273
View File
@@ -0,0 +1,273 @@
# Superalgos Docker Guide
## Table of Contents
- [Introduction](#introduction)
- [Installation](#installation)
- [Mac OS](#mac-os)
- [Windows](#windows)
- [Linux and BSD](#linux-and-bsd)
- [Running Superalgos](#running-superalgos)
- [Using Docker-Compose](#using-docker-compose)
- [Docker Best Practices](#docker-best-practices)
- [Docker Development Best Practices](#docker-development-best-practices)
- [Dockerfile Best Practices](#dockerfile-best-practices)
- [Twelve Factor App](#twelve-factor-app)
## Introduction
This walkthrough is broken up into to parts: a quick-start guide to running [Superalgos](https://github.com/Superalgos/Superalgos) with Docker and a deeper, more theoretical dive into containers with the hopes of explaining some of the design decisions.
[Superalgos](https://github.com/Superalgos/Superalgos), at its core, is a web application which also means it can be deployed inside a container like many other web applications. One of the leading platforms for operating containers is Docker. Docker can run on many different operatng systems and compute platforms. The containers provide an easy, fast, repeatable, and secure way to deploy and distribute applications. While it doesn't take much experience to run containers or Docker, there are some basics that any user should learn in order to use the technology effectively.
Before getting started, be aware that Docker is not the originally intended method of running the [Superalgos](https://github.com/Superalgos/Superalgos) application and as such there are some drawbacks to doing so. Namely, you won't be able contribute back to the project or configure your Governance profile. We'll discuss this more later. Therefore, you should only consider using the Docker container for production deployments.
It is also worth noting that [Superalgos](https://github.com/Superalgos/Superalgos) is very resource intense so it is best to get acquainted with the software by running it on a fast computer with a good amount of RAM as opposed to a tiny, slow Raspberry Pi. But, once you are ready to run a production deployment, then a more economical server is preferred.
Docker container images are hosted on `ghcr`. You can browse the containers in the [Packages section of the code repository](https://github.com/users/Superalgos/packages/container/package/superalgos).
> **Note:** The container and the application are still under heavy development and testing. Please join the [Superalgos SysAdmins Group](https://t.me/superalgossysadmins) to discuss any issues you may run into.
## Installation
First, Docker Desktop needs to be installed on a Mac or Windows computer in order to run the containers. Linux and BSD users will need Docker Engine. Docker-compose is also recommended and it should be included with Docker Desktop, but it may need to be installed separately.
### Mac OS
Docker can be downloaded from the Docker Store following the [directions in the official Docker Docs](https://docs.docker.com/desktop/mac/install/). It can also be installed from the command line using Homebrew.
```shell
brew cask install docker
brew install docker-compose
```
Then, make sure Docker Desktop is running. An easy way to check is to push `Cmd + space` then type `docker.app` in the search bar. You should also see the little whale icon in the top menu bar near the clock.
### Windows
Windows requires a few more steps than Mac OS, but it can also be downloaded from the Docker Store following the [directions in the official Docker Docs](https://docs.docker.com/desktop/windows/install/). It can also be installed from the command line using Chocolatey.
```shell
choco install docker-desktop
```
Docker should automatically start after installation. If you don't see the whale icon in the tray by the clock, then find `Docker` in the start menu.
### Linux and BSD
On Linux and BSD systems, Docker can be installed using the prefered package manager. [Step by step instructions for many different distributions](https://docs.docker.com/engine/install/debian/) of Linux can be found in the official Docker Docs. Since [Superalgos](https://github.com/Superalgos/Superalgos) runs well on Raspberry Pi 4 single-board computers, I'm going to illustrate the commands necessary to run [Superalgos](https://github.com/Superalgos/Superalgos) on the Raspbian Linux distribution.
```shell
# install the requirements
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
# add the gpg keys to verify the packages
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# confgure the official repository
echo \
"deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# install docker engine
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose
```
Docker should automatically start when it is done installing. You can check its status with `systemctl status docker`. To make things easier, ensure your user is added to the `docker` group. Type `id` at the command prompt and you should see something like `groups=...999(docker)`. If you don't see it listed, you can add yourself with `sudo usermod -a -G docker <username>`.
## Running Superalgos
Now that we have Docker installed and running, we can run the container. The option `--rm` will remove the isntance of the container when it is exited.
```shell
docker run --rm ghcr.io/superalgos/superalgos:latest
```
You'll see some messages showing the container being downloaded and then some messages from the application itself showing that it is starting up and ready to accept connections. We'll stop the container now and add in a few more options so make it more useful, so press `ctrl + c` to exit.
We'll need to expose some ports so we can actually connect to it from our browser. Also, we'll want to create a few directories on our host file system so we can save, or persist, data between container reboots.
- `-d` to run the container daemonized, in the background
- `-p` to map ports to the host system to allow connections
- `-v` to mount local directories inside the container to persist data
- `--name` to assign a name to the container for easier reference
```shell
# create the data directories
mkdir -p Data-Storage Log-Files My-Workspaces
# run the container with the extra options
docker run \
-d \
--rm \
--name superalgos \
--user $(id -u):$(id -g) \
-p 18041:18041 \
-p 34248:34248 \
-v $(pwd)/Data-Storage:/app/Platform/Data-Storage \
-v $(pwd)/Log-Files:/app/Platform/Log-Files \
-v $(pwd)/My-Workspaces:/app/Platform/My-Workspaces \
ghcr.io/superalgos/superalgos:latest
```
You can check the status of the container with `docker ps -a` and view the logs with `docker logs superalgos`.
Note that you will see one error in the log output informing you that `git` is not installed. This is intentional and is not required for the bot to function properly.
Now you can open your browser and load the application front end. Try loading `http://localhost:34248` if you are on the same computer that is running the container, otherwise use the host ip, for example `http://192.168.1.10:34248`.
If you want to stop the container, you can run `docker stop superalgos`. When you want to upgrade the container, use:
```shell
docker pull ghcr.io/superalgos/superalgos:latest
docker stop superalgos
docker run \
-d \
--rm \
--name superalgos \
--user $(id -u):$(id -g) \
-p 18041:18041 \
-p 34248:34248 \
-v $(pwd)/Data-Storage:/app/Platform/Data-Storage \
-v $(pwd)/Log-Files:/app/Platform/Log-Files \
-v $(pwd)/My-Workspaces:/app/Platform/My-Workspaces \
ghcr.io/superalgos/superalgos:latest
```
Let's stop the container for now (`docker stop superalgos`) and we'll run it again using `docker-compose`.
Continue reading the [Docker Command Line documentation](https://docs.docker.com/engine/reference/commandline/cli/) for more details.
### Using Docker-Compose
Docker-compose is a wrapper for the Docker API which makes it a little easier to maintain a declaritive configuration for an application instead of using the direct command line commands. There is a sample docker-compose configuration included in the [Superalgos](https://github.com/Superalgos/Superalgos) which you can as the basis for your own configuration.
Let's download the sample and edit it. If you don't use `vim`, change that command for your preferred editor.
```shell
wget https://raw.githubusercontent.com/Superalgos/Superalgos/master/Docker/docker-compose.yml
vim docker-compose.yml
```
Now, let's change some of the settings:
```yaml
version: "3"
services:
superalgos:
image: ghcr.io/superalgos/superalgos:latest
command: ["minMemo"]
user: "$UID:$GID"
ports:
- '34248:34248'
- '18041:18041'
volumes:
- ./Data-Storage:/app/Platform/Data-Storage
- ./Log-Files:/app/Platform/Log-Files
- ./My-Workspaces:/app/Platform/My-Workspaces
restart: on-failure
```
You can see we have the same ports and volumes mapped. We also get a few extra settings like `command`, `environment`, and `restart`.
- `command` adds an extra setting to the main startup, so the application ends up running with the full command `node platform noBrowser minMemo`. The base of that command is defined as the `ENTRYPOINT` in the `Dockerfile` that builds the container.
- `user` defines the UID and GID the container should run as so that the data can be persisted with the correct permissions in the Data-Storage, Log-Files, and My-Workspaces directories that we created on the host. If you leave this out, the container will use the built in `superalgos` user which has `uid: 1001` and `gid: 1001`. Instead of using variables, you could also hard-code these UID and GID numbers into the configuration.
- `restart` tells Docker to restart the container if an error occurs.
Save the file and exit the editor. If you are using `vim`, hit escape and then type `:wq!` or press `shift + Z + Z` (two capital Z's).
Now, start the container with `docker-compose up`. This will start the container in the foreground and you'll connect to the log output. Hit `ctrl + c` to exit. Going forward, you'll want to add the `-d` option to start the container and keep it running in the background.
```shell
# some preliminary configuration to set up the persistent data directories
mkdir -p Data-Storage Log-Files My-Workspaces
export UID=$(id -u)
export GID=$(id -g)
# run the container in the background
docker-compose up -d
```
Now you have several `docker-compose` commands at your disposal to interact with the container:
- `docker-compose ps` to see details of the container
- `docker-compose logs` to see the logs
- `docker-compose down` to stop and remove the instance of the container
- `docker-compose pull` to pull the container, or a new version of the `latest` tag
Putting some of those concepts together, you can keep the running container up to date with this one-liner:
```shell
docker-compose pull && docker-compose down && docker-compose up -d
```
Explore the full [Docker Compose documentation](https://docs.docker.com/compose/) for more information.
## Docker Best Practices
As with any technology, there are lots of ways of doing things. A lot of them will give the same end result, but some may have fewer steps, or be more secure, or be more maintainable. That is where "best practices" come in. They aren't there to necessarily tell you what to do and what not to do, but they are there to help guide you in the right direction. A lot of times, they help you avoid making architectural mistakes that could come back and bite you further down the road.
One general best practice when running a production deployment is to avoid breaking changes by pinning to specific container tags. The `shasum hash` and the `release` tags are the best to use. These will generally ensure you are always running the same code and it will only upgrade when configured to do so. The other tags will change which code they are pointing to more frequently and without notice.
- `latest` : the absolute latest build
- `master` : the latest master branch build
- `develop` : the latest develop branch build
- `<shasum hash>` : a specific git commit hash
- `<release>` : corresponds with a Github Release (git tag), i.e. `beta-10`
## Docker Development Best Practices
Docker has many advantages which can aid in every step from development through production deployment. There are some useful tips located directly in the [Docker documentation](https://docs.docker.com/develop/dev-best-practices/). Concisely, they are to keep the build images small, a few tips on when and how to persist data, and to use CI/CD for testing and deployment. All of these tips are used in one way or another as a part of the [Superalgos](https://github.com/Superalgos/Superalgos) project.
- Use a minimal base image and multi-stage build. Superalgos is currently using an [alpine](https://www.alpinelinux.org/) base image but [distroless](https://github.com/GoogleContainerTools/distroless) is becoming more common and some times using a base image like [python-slim](https://hub.docker.com/_/python) is the bast that can be achieved.
- The images are quite large (around 2 GB in size), unfortunately, because the codebase itself is large. We've recently put in a lot of effort to make these images as small as possible.
- The images are built automatically using Github Actions when pull requests are merged.
- With the correct configuration, data, like data mine and trading bot information, is persisted to the host using volume mounts
### Dockerfile Best Practices
Docker maintains a list of [Dockerfile best practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) in their main documentation. These tips dictate many of the decisions around the Superalgos Dockerfile. Some of the tips that are used by [Superalgos](https://github.com/Superalgos/Superalgos) are listed below.
- Use `.dockerignore` to prevent unwanted data from entering the container. This keeps the container small but also enhances security to prevent secrets from leaking into a container by accident.
- Don't install unneccesary packages. In lieu of multi-stage builds, build caches and build dependencies are removed before finalizing the container. Only packages that are necessary for the execution of the application are installed. This is why `git` is not present.
- Minimize the number of layers. Many `RUN` commands are combined into one using `&&` in order to reduce the number of layers.
- Sort multiline arguments. This mostly enhances readability and maintainability.
- Leverage build cache. When testing locally, several of the tips above help levarage the build cache and speed up build times.
### Twelve Factor App
[Superalgos](https://github.com/Superalgos/Superalgos) is a web app but it was originally designed to be run on a local workstation or server on a trusted network. However, I don't think it would be prudent to talk about Docker best practices without mentioning the [Twelve Factor App](https://12factor.net/) manifesto. Over time, [Superalgos](https://github.com/Superalgos/Superalgos) itself may iterate and implement more and more of these principles as more people get involved and more people deploy production environments.
The Twelve Factors:
- Codebase: One codebase tracked in revision control, many deploys
- Superalgos utilizes one GitHub repository
- Dependencies: Explicitly declare and isolate dependencies
- Superalgos is a node.js app and uses npm to track and install dependencies
- Config: Store config in the environment
- Superalgos does not use environment variables the moment for configuration. Options are passed on the command line at run time. Other configuration is hard coded into the Workspaces.
- Backing services: Treat backing services as attached resources
- Superalgos connects to external services via API calls over HTTP (TCP)
- Build, release, run: Strictly separate build and run stages
- Superalgos is deployed by end users in their own local environments
- Processes: Execute the app as one or more stateless processes
- Superalgos is one application
- Port binding: Export services via port binding
- Superalgos exposes an HTTP frontend port and a Websockets backend port (TCP)
- Concurrency: Scale out via the process model
- Superalgos can be clustered but the front end and backend do not necessarily scale out independently from each other
- Disposability: Maximize robustness with fast startup and graceful shutdown
- Superalgos is not stateless in that the data files must be persisted to disk. Also, Superalgos cannot run behind a load balancer and have requests randomly distributed to different backend servers.
- Dev/prod parity: Keep development, staging, and production as similar as possible
- Superalgos doesn't have its own production environment but the container makes it easy to ensure development environments are the same as what a user will see when they deploy it for themselves in their own production environment.
- Logs: Treat logs as event streams
- Superalgos sends its own application logs to standard out. The trading mine logs are sent to flat files (persisted through volume mounts)
- Admin processes: Run admin/management tasks as one-off processes
- Superalgos does not have any admin or management tasks outside of what is used to create the container at build time.
+4 -6
View File
@@ -6,14 +6,12 @@ services:
dockerfile: ./Docker/Dockerfile
image: ghcr.io/superalgos/superalgos:latest
command: ["minMemo"]
user: "$UID:$GID"
ports:
- '34248:34248'
- '18041:18041'
volumes:
- ../Data-Storage:/app/Data-Storage
- ../Log-Files:/app/Log-Files
- ../My-Workspaces:/app/My-Workspaces
environment:
PUID: '1000'
PGID: '1000'
- ../Platform/My-Data-Storage:/app/Platform/My-Data-Storage
- ../Platform/My-Log-Files:/app/Platform/My-Log-Files
- ../Platform/My-Workspaces:/app/Platform/My-Workspaces
restart: on-failure
+36 -11
View File
@@ -1,18 +1,43 @@
const path = require("path")
if (process.env.PACKAGED_PATH) {
basePath = process.env.PACKAGED_PATH
} else {
basePath = __dirname
}
exports.newEnvironment = function () {
let thisObject = {
DEMO_MODE: false,
BASE_PATH: basePath,
WEB_SERVER_URL: 'localhost',
CLIENT_WEB_SOCKETS_INTERFACE_PORT: 18041,
CLIENT_HTTP_INTERFACE_PORT: 34248,
PATH_TO_DATA_STORAGE: './Data-Storage',
PATH_TO_PROJECTS: './Projects',
PATH_TO_LOG_FILES: './Log-Files',
PATH_TO_PROJECTS_REQUIRED: './Projects',
PATH_TO_PROJECT_SCHEMA: './Projects/ProjectsSchema.json',
PATH_TO_CLIENT: './Platform',
PATH_TO_DEFAULT_WORKSPACE: './Projects/Foundations/Plugins/Workspaces',
PATH_TO_MY_WORKSPACES: './My-Workspaces',
PATH_TO_FONTS: './Platform/WebServer/Fonts'
PLATFORM_WEB_SOCKETS_INTERFACE_PORT: 18041,
NETWORK_WEB_SOCKETS_INTERFACE_PORT: 18042,
DESKTOP_WEB_SOCKETS_INTERFACE_PORT: 18043,
DESKTOP_WEB_SOCKETS_INTERFACE_HOST: 'localhost',
PLATFORM_HTTP_INTERFACE_PORT: 34248,
DESKTOP_HTTP_INTERFACE_PORT: 34249,
PATH_TO_DATA_STORAGE: path.join(basePath, './Platform/My-Data-Storage'),
PATH_TO_PROJECTS: path.join(basePath, './Projects'),
PATH_TO_LOG_FILES: path.join(basePath, './Platform/My-Log-Files'),
PATH_TO_PROJECTS_REQUIRED: path.join(basePath, './Projects'),
PATH_TO_PROJECT_SCHEMA: path.join(basePath, './Projects/ProjectsSchema.json'),
PATH_TO_PLATFORM: path.join(basePath, './Platform'),
PATH_TO_DESKTOP: './Desktop',
PATH_TO_DEFAULT_WORKSPACE: path.join(basePath, './Projects/Foundations/Plugins/Workspaces'),
PATH_TO_MY_WORKSPACES: path.join(basePath, './Platform/My-Workspaces'),
PATH_TO_FONTS: path.join(basePath, './Platform/WebServer/Fonts'),
DESKTOP_APP_SIGNING_ACCOUNT: 'Social-Trading-Desktop-App-1',
MOBILE_APP_SIGNING_ACCOUNT: 'Social-Trading-Mobile-App-1',
SERVER_APP_SIGNING_ACCOUNT: 'Social-Trading-Server-App-1',
PLATFORM_APP_SIGNING_ACCOUNT: 'Algo-Traders-Platform-1',
P2P_NETWORK_NODE_SIGNING_ACCOUNT: 'P2P-Network-Node-1',
}
if (process.env.DATA_PATH) {
thisObject.PATH_TO_DATA_STORAGE = path.join(process.env.DATA_PATH, '/Superalgos_Data/My-Data-Storage')
thisObject.PATH_TO_LOG_FILES = path.join(process.env.DATA_PATH, '/Superalgos_Data/My-Log-Files')
thisObject.PATH_TO_MY_WORKSPACES = path.join(process.env.DATA_PATH, '/Superalgos_Data/My-Workspaces')
}
return thisObject
-24
View File
@@ -1,24 +0,0 @@
exports.newEnvironment = function () {
let thisObject = {
WEB_SERVER_URL: 'localhost',
CLIENT_WEB_SOCKETS_INTERFACE_PORT: 18041,
NETWORK_WEB_SOCKETS_INTERFACE_PORT: 18042,
DESKTOP_WEB_SOCKETS_INTERFACE_PORT: 18043,
DESKTOP_WEB_SOCKETS_INTERFACE_HOST: 'localhost',
CLIENT_HTTP_INTERFACE_PORT: 34248,
DESKTOP_HTTP_INTERFACE_PORT: 34249,
PATH_TO_DATA_STORAGE: './Data-Storage',
PATH_TO_PROJECTS: './Projects',
PATH_TO_LOG_FILES: './Log-Files',
PATH_TO_PROJECTS_REQUIRED: './Projects',
PATH_TO_PROJECT_SCHEMA: './Projects/ProjectsSchema.json',
PATH_TO_CLIENT: './Platform',
PATH_TO_DESKTOP: './Desktop',
PATH_TO_DEFAULT_WORKSPACE: './Projects/Foundations/Plugins/Workspaces',
PATH_TO_MY_WORKSPACES: './My-Workspaces',
PATH_TO_FONTS: './Platform/WebServer/Fonts'
}
return thisObject
}
-14
View File
@@ -1,14 +0,0 @@
{
"folders": [
{
"path": "C:\\Superalgos\\Network"
},
{
"path": "C:\\Superalgos\\Projects\\Network"
},
{
"path": "C:\\Superalgos\\Projects\\Social-Trading"
}
],
"settings": {}
}
-17
View File
@@ -1,17 +0,0 @@
{
"files.exclude": {
"**/Data-Storage": true,
"**/Documentation": true,
"**/Log-Files": true,
"**/node_modules": true,
"**/Deprecated-Code": true
},
"search.exclude": {
"**/Data-Storage": true,
"**/Documentation": true,
"**/Log-Files": true,
"**/node_modules": true,
"**/Deprecated-Code": true
},
"search.maintainFileSearchCache": true
}
+7 -3
View File
@@ -10,14 +10,18 @@ exports.newNetworkNode = function newNetworkNode() {
async function run() {
/*
Let's start the Network Interfaces
Other Network Nodes and Client Apps will communicate with this Network Node via it's Websocket Interface.
*/
NT.webSocketsInterface = NT.projects.network.modules.webSocketsInterface.newNetworkModulesWebSocketsInterface()
NT.webSocketsInterface.initialize()
/*
The Social Graph Service is the first and for now, the only service this Network Node provides.
*/
thisObject.socialGraphService = NT.projects.socialTrading.modules.socialGraph.newNetworkModulesSocialGraph()
await thisObject.socialGraphService.initialize()
/*
The Sotrage deals with persisting the Social Graph.
*/
thisObject.storage = NT.projects.socialTrading.modules.storage.newSocialTradingModulesStorage()
thisObject.storage.initialize()
}
+5 -5
View File
@@ -12,17 +12,17 @@ exports.newNetworkRoot = function newNetworkRoot() {
async function run() {
/*
The NT object is accesible everywhere at the Superalgos Network.
The NT object is accessible everywhere at the Superalgos Network.
It provides access to all modules built for this Network.
*/
global.NT = {}
/*
The SA object is accesible everywhere at the Superalgos Network.
The SA object is accessible everywhere at the Superalgos Network.
It provides access to all modules built for Superalgos in general.
*/
global.SA = {}
/* Load Environment Variables */
let ENVIRONMENT = require('./EnvironmentForDebug.js');
let ENVIRONMENT = require('./Environment.js');
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
global.env = ENVIRONMENT_MODULE
/*
@@ -52,12 +52,12 @@ exports.newNetworkRoot = function newNetworkRoot() {
Setting up Secrets.
*/
SA.secrets = {
array: require('./My-Secrets/Secrets.json'),
array: require('./My-Secrets/Secrets.json').secrets,
map: new Map()
}
for (let i = 0; i < SA.secrets.array.length; i++) {
let secret = SA.secrets.array[i]
SA.secrets.map.set(secret.codeName, secret)
SA.secrets.map.set(secret.signingAccountChildCodeName, secret)
}
NT.app = require('./Network/NetwokNode.js').newNetworkNode()
+10 -13
View File
@@ -1,8 +1,5 @@
exports.newEventServer = function newEventServer() {
const MODULE = "Events Server"
const LOG_INFO = false
let thisObject = {
initialize: initialize,
finalize: finalize,
@@ -37,7 +34,7 @@
if (eventHandler === undefined) {
/*
We will only create event handlers which were not created before. Remember that someone trying to listen events
at an event handler that does not exist, will create that eventhandler, so it is possible that the emitter
at an event handler that does not exist, will create that event handler, so it is possible that the emitter
when trying to create the event handler in fact was late and the event handler is already there if the listener
arrived here first. An event handler created with this method is not destroyed if there are no listeners or they
all leave.
@@ -53,8 +50,8 @@
let eventHandler = eventHandlers.get(command.eventHandlerName)
if (eventHandler !== undefined) {
/*
We will only delete event handlers which have noone listening, allowing a listener to continue listening even
when the event emitter is gone, asuming that it could come back at some point in time and resume emitting.
We will only delete event handlers which have no one listening, allowing a listener to continue listening even
when the event emitter is gone, assuming that it could come back at some point in time and resume emitting.
*/
if (eventHandler.listeners.length === 0) {
eventHandlers.delete(command.eventHandlerName)
@@ -71,8 +68,8 @@
if (eventHandler === undefined) {
/*
We will create event handlers which were not created before if a listener tries to listen to a handler that does not
exist before the emitter comes and create it. This is to aviod syncronization problems and also problems with emitters life
cycles with higher frecuency that the ones of listeners. Created in this way, event handlers are marked for deletion if
exist before the emitter comes and create it. This is to avoid synchronization problems and also problems with emitters life
cycles with higher frequency that the ones of listeners. Created in this way, event handlers are marked for deletion if
all listeners stop listening at one point in time.
*/
eventHandler = newEventHandler()
@@ -107,7 +104,7 @@
if (eventHandler === undefined) {
/* If the event handler does not exist anymore, then there is no need to perform further actiions. */
/* If the event handler does not exist anymore, then there is no need to perform further actions. */
sendResponse(global.DEFAULT_OK_RESPONSE)
return
}
@@ -115,7 +112,7 @@
eventHandler.stopListening(command.eventHandlerName, command.eventType, command.callerId, command.eventSubscriptionId)
/*
We check here if there are no more listeners and the event handler original emmiter is also gone, then we need to delete
We check here if there are no more listeners and the event handler original emitter is also gone, then we need to delete
this event handlers since chances are that is not needed anymore.
*/
if (eventHandler.listeners.length === 0 && eventHandler.deleteWhenAllListenersAreGone === true) {
@@ -133,7 +130,7 @@
eventHandler = newEventHandler()
eventHandlers.set(command.eventHandlerName, eventHandler)
/* No matter if it is the listener or the emiter the one that acts first, if an event handler does not exist we just create it acan keep it there. */
/* No matter if it is the listener or the emitter the one that acts first, if an event handler does not exist we just create it and keep it there. */
}
//console.log("[INFO] Client -> Events Server -> Raising Event " + command.eventHandlerName + " " + command.eventType)
@@ -166,7 +163,7 @@
let thisObject = {
name: undefined, // This is for debugging purposes only.
deleteWhenAllListenersAreGone: false,
listeners: [], // Here we store all the functions we will call when an event is raiseed.
listeners: [], // Here we store all the functions we will call when an event is raised.
listenToEvent: listenToEvent,
stopListening: stopListening,
raiseEvent: raiseEvent,
@@ -184,7 +181,7 @@
/*
We can not allow to have the exact same listener more than once. In case that we find a listener trying to listen again, the first record will
be deleted and we are just going to consider the last one comming in.
be deleted and we are just going to consider the last one coming in.
*/
for (let i = 0; i < thisObject.listeners.length; i++) {
if (eventHandlerName === thisObject.listeners[i][0] && eventType === thisObject.listeners[i][1] && callerId === thisObject.listeners[i][2]) {
+16 -15
View File
@@ -79,7 +79,7 @@ exports.newGithubServer = function newGithubServer() {
const octokit = new Octokit({
auth: token,
userAgent: 'Superalgos Beta 11'
userAgent: 'Superalgos Beta 12'
})
await getList()
@@ -207,7 +207,7 @@ exports.newGithubServer = function newGithubServer() {
const { Octokit } = SA.nodeModules.octokit
const octokit = new Octokit({
auth: token,
userAgent: 'Superalgos Beta 11'
userAgent: 'Superalgos Beta 12'
})
await getPrList()
await mergePrs()
@@ -295,7 +295,7 @@ exports.newGithubServer = function newGithubServer() {
let fileContent // File content of the only file at the PR
let userProfile // User Profile Object
let githubUsername // The Github user name of who is submitting the Pull Request
let mergeResponse // The response received from the call to Gihub to merge the Pull Request
let mergeResponse // The response received from the call to Github to merge the Pull Request
if (await validatePrHasMoreThanOneFile() === false) { continue }
if (await validateFileNameEqualsGithubUsername() === false) { continue }
@@ -310,13 +310,13 @@ exports.newGithubServer = function newGithubServer() {
if (await mergePullRequest() === false) {
console.log('[WARN] Github Server -> mergeGithubPullRequests -> Merge Failed -> Pull Request "' + pullRequest.title + '" not merged because Github could not merge it. -> mergeResponse.message = ' + mergeResponse.data.message)
} else {
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Merge Succed -> Pull Request "' + pullRequest.title + '" successfully merged. -> mergeResponse.message = ' + mergeResponse.data.message)
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Merge Succeed -> Pull Request "' + pullRequest.title + '" successfully merged. -> mergeResponse.message = ' + mergeResponse.data.message)
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
await octokit.rest.issues.createComment({
owner: owner,
repo: repo,
issue_number: pullRequest.number,
body: 'This Pull Request was automatically merged by the Superalgos Governance System because it was detected that the Github User " ' + githubUsername + '" who submitted it, modified its own User Profile Plugin File and nothning else but that file. All validations were successfull.'
body: 'This Pull Request was automatically merged by the Superalgos Governance System because it was detected that the Github User " ' + githubUsername + '" who submitted it, modified its own User Profile Plugin File and nothing else but that file. All validations were successful.'
});
}
@@ -340,7 +340,7 @@ exports.newGithubServer = function newGithubServer() {
owner: owner,
repo: repo,
issue_number: pullRequest.number,
body: 'This Pull Request could not be automatically merged and was closed by the Superalgos Governance System because it was detected that a User Profile file... \n\n' + fileContentUrl + '\n\n...was submitted together with ' + (filesChanged.length - 1) + ' other file/s. User Profiles files as per the Governance System rules, must be the only file present at a Pull Request in order to pass all the validations and be automatically merged.'
body: 'This Pull Request could not be automatically merged and was closed by the Superalgos Governance System because it was detected that a User Profile file... \n\n' + fileContentUrl + '\n\n...was submitted together with ' + (filesChanged.length - 1) + ' other file/s. User Profiles files as per the Governance System rules, must be the only file present at a Pull Request in order to pass all the validations and be automatically merged. \n\n If you intentionally submitted the extra files, the way to get your work merged is by first removing your User Profile file from the Plugins folder at your local installation and executing an app.contribute again. Then wait until the PR is merged (manually reviewed) and after that you put your User Profile file again and create a new PR only with that file with an app.contribute. That last PR should be merged automatically.'
});
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -378,7 +378,7 @@ exports.newGithubServer = function newGithubServer() {
fileName = splittedFileName[0]
githubUsername = pullRequest.user.login
if (githubUsername !== fileName) {
if (githubUsername.toLowerCase() !== fileName.toLowerCase()) {
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Validation #2 Failed -> Pull Request "' + pullRequest.title + '" not merged because the Github Username is not equal to the File Name. -> Github Username = ' + githubUsername + '-> fileName = ' + fileName)
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -420,7 +420,7 @@ exports.newGithubServer = function newGithubServer() {
*/
let config = JSON.parse(userProfile.config)
let messageSigned = config.signature.message
if (messageSigned !== githubUsername) {
if (messageSigned.toLowerCase() !== githubUsername.toLowerCase()) {
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Validation #4 Failed -> Pull Request "' + pullRequest.title + '" not merged because the Github Username is not equal to the Message Signed at the User Profile. -> Github Username = ' + githubUsername + '-> messageSigned = ' + messageSigned)
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -480,7 +480,7 @@ exports.newGithubServer = function newGithubServer() {
/*
Validation #6: The name of the User Profile node is not the Github Username.
*/
if (userProfile.name !== githubUsername) {
if (userProfile.name.toLowerCase() !== githubUsername.toLowerCase()) {
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Validation #6 Failed -> Pull Request "' + pullRequest.title + '" not merged because the Github Username is not equal to the User Profile node\'s name. -> Github Username = ' + githubUsername + '-> userProfile.name = ' + userProfile.name)
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -508,14 +508,14 @@ exports.newGithubServer = function newGithubServer() {
unless the existing one belongs to the same Github username.
*/
let userProfileIdMap = new Map()
let pluginFileNames = await SA.projects.foundations.utilities.plugins.getPluginFileNames(
let pluginFileNames = await SA.projects.communityPlugins.utilities.plugins.getPluginFileNames(
'Governance',
'User-Profiles'
)
for (let i = 0; i < pluginFileNames.length; i++) {
let pluginFileName = pluginFileNames[i]
let pluginFileContent = await SA.projects.foundations.utilities.plugins.getPluginFileContent(
let pluginFileContent = await SA.projects.communityPlugins.utilities.plugins.getPluginFileContent(
'Governance',
'User-Profiles',
pluginFileName
@@ -558,13 +558,13 @@ exports.newGithubServer = function newGithubServer() {
unless the existing one belongs to the same Github username.
*/
let userProfileIdMap = new Map()
let pluginFileNames = await SA.projects.foundations.utilities.plugins.getPluginFileNames(
let pluginFileNames = await SA.projects.communityPlugins.utilities.plugins.getPluginFileNames(
'Governance',
'User-Profiles'
)
for (let i = 0; i < pluginFileNames.length; i++) {
let pluginFileName = pluginFileNames[i]
let pluginFileContent = await SA.projects.foundations.utilities.plugins.getPluginFileContent(
let pluginFileContent = await SA.projects.communityPlugins.utilities.plugins.getPluginFileContent(
'Governance',
'User-Profiles',
pluginFileName
@@ -628,7 +628,7 @@ exports.newGithubServer = function newGithubServer() {
*/
let messageSigned = config.signature.message
if (messageSigned !== githubUsername) {
if (messageSigned.toLowerCase() !== githubUsername.toLowerCase()) {
console.log('[INFO] Github Server -> mergeGithubPullRequests -> Validation #9 Failed -> Pull Request "' + pullRequest.title + '" not merged because the Signing Account ' + signingAccount.name + ' has not signed the current Github User Account, but something else. -> messageSigned = ' + messageSigned + '-> githubUsername = ' + githubUsername)
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -743,7 +743,7 @@ exports.newGithubServer = function newGithubServer() {
owner: owner,
repo: repo,
issue_number: pullRequest.number,
body: 'Hi, this is the Superalgos Governance System taking notice that you have submitted a pull request directly to the master branch.\n\nThanks for submitting a PR to the Superalgos Project. We value every contribution and everyone is welcome to send PRs. Unfortunatelly we are not merging pull requests directly into the master branch. Consider resubmitting to the develop branch intstead. For your convinienve, you can swithch branches from within the app, at the footer of the Docs tab. \n\n I will close this pull request now and look forward for your next contribution either to the develop branch or any other branch available for this purpose.'
body: 'Hi, this is the Superalgos Governance System taking notice that you have submitted a pull request directly to the master branch.\n\nThanks for submitting a PR to the Superalgos Project. We value every contribution and everyone is welcome to send PRs. Unfortunately we are not merging pull requests directly into the master branch. Consider resubmitting to the develop branch instead. For your convenience, you can switch branches from within the app, at the footer of the Docs tab. \n\n I will close this pull request now and look forward for your next contribution either to the develop branch or any other branch available for this purpose.'
});
await PL.projects.foundations.utilities.asyncFunctions.sleep(GITHUB_API_WAITING_TIME)
@@ -775,6 +775,7 @@ exports.newGithubServer = function newGithubServer() {
}
} catch (err) {
if (err === undefined) { return }
console.log('[ERROR] Github Server -> mergeGithubPullRequests -> doGithub -> err.stack = ' + err.stack)
}
}
+437 -38
View File
@@ -20,16 +20,20 @@ exports.newHttpInterface = function newHttpInterface() {
webhook = undefined
}
function initialize() {
function initialize(initialWorkspace) {
/*
We will create an HTTP Server and leave it running forever.
*/
SA.nodeModules.http.createServer(onHttpRequest).listen(global.env.CLIENT_HTTP_INTERFACE_PORT)
SA.nodeModules.http.createServer(onHttpRequest).listen(global.env.PLATFORM_HTTP_INTERFACE_PORT)
/* Starting the browser now is optional */
if (process.argv.includes("noBrowser")) {
//Running Client only with no UI.
} else {
SA.nodeModules.open('http://localhost:' + global.env.CLIENT_HTTP_INTERFACE_PORT)
let queryString = ''
if (initialWorkspace.name !== undefined) {
queryString = '/?initialWorkspaceName=' + initialWorkspace.name + '&initialWorkspaceProject=' + initialWorkspace.project + '&initialWorkspaceType=' + initialWorkspace.type
}
SA.nodeModules.open('http://localhost:' + global.env.PLATFORM_HTTP_INTERFACE_PORT + queryString)
}
}
@@ -40,7 +44,11 @@ exports.newHttpInterface = function newHttpInterface() {
let endpointOrFile = requestPath[1]
switch (endpointOrFile) {
case 'Environment':
{
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.env), httpResponse)
}
break
case 'WEB3':
{
SA.projects.foundations.utilities.httpRequests.getRequestBody(httpRequest, httpResponse, processRequest)
@@ -244,7 +252,7 @@ exports.newHttpInterface = function newHttpInterface() {
}
console.log('[INFO] httpInterface -> Webhook -> Fetch-Messages -> Exchange-Market = ' + exchange + '-' + market)
console.log('[INFO] httpInterface -> Webhook -> Fetch-Messages -> Messeges Fetched by Webhooks Sensor Bot = ' + webhookMessages.length)
console.log('[INFO] httpInterface -> Webhook -> Fetch-Messages -> Messages Fetched by Webhooks Sensor Bot = ' + webhookMessages.length)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(webhookMessages), httpResponse)
webhookMessages = []
@@ -292,7 +300,7 @@ exports.newHttpInterface = function newHttpInterface() {
console.log('[INFO] httpInterface -> Webhook -> New-Message -> Exchange-Market = ' + exchange + '-' + market)
console.log('[INFO] httpInterface -> Webhook -> New-Message -> messageReceived = ' + messageReceived)
console.log('[INFO] httpInterface -> Webhook -> New-Message -> Messeges waiting to be Fetched by Webhooks Sensor Bot = ' + webhookMessages.length)
console.log('[INFO] httpInterface -> Webhook -> New-Message -> Messages waiting to be Fetched by Webhooks Sensor Bot = ' + webhookMessages.length)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
}
break
@@ -594,7 +602,7 @@ exports.newHttpInterface = function newHttpInterface() {
function createNewDir(path) {
try {
fs.mkdirSync(path)
fs.mkdirSync(path, {recursive: true})
} catch (err) {
if (err.message.indexOf('file already exists') < 0) {
throw (err)
@@ -631,7 +639,13 @@ exports.newHttpInterface = function newHttpInterface() {
break
case 'App':
{
// 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('[WARN] No contributions on binary distributions. Do manual installation')
break
}
switch (requestPath[2]) { // switch by command
case 'Contribute': {
try {
let commitMessage = unescape(requestPath[3])
@@ -641,7 +655,7 @@ exports.newHttpInterface = function newHttpInterface() {
const contributionsBranch = unescape(requestPath[7])
let error
/* Unsavping # */
/* Unsaving # */
for (let i = 0; i < 10; i++) {
commitMessage = commitMessage.replace('_SLASH_', '/')
commitMessage = commitMessage.replace('_HASHTAG_', '#')
@@ -709,7 +723,7 @@ exports.newHttpInterface = function newHttpInterface() {
console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> currentBranch = ' + currentBranch)
console.log('[ERROR] httpInterface -> App -> Contribute -> doGit -> contributionsBranch = ' + contributionsBranch)
console.log('')
console.log('Torubleshooting Tips:')
console.log('Troubleshooting Tips:')
console.log('')
console.log('1. Make sure that you have set up your Github Username and Token at the APIs -> Github API node at the workspace.')
console.log('2. Make sure you are running the latest version of Git available for your OS.')
@@ -725,7 +739,7 @@ exports.newHttpInterface = function newHttpInterface() {
const octokit = new Octokit({
auth: token,
userAgent: 'Superalgos Beta 11'
userAgent: 'Superalgos Beta 12'
})
const repo = 'Superalgos'
@@ -864,6 +878,9 @@ exports.newHttpInterface = function newHttpInterface() {
await doGit()
if (error === undefined) {
// Run node setup to prepare instance for branch change
await runNodeSetup()
// Return to UI that Branch is successfully changed
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
} else {
let docs = {
@@ -889,6 +906,27 @@ exports.newHttpInterface = function newHttpInterface() {
const git = simpleGit(options)
try {
await git.checkout(currentBranch)
// Check to see it main repo has been set as upstream
let remotes = await git.getRemotes();
let isUpstreamSet
for (let remote in remotes) {
if (remotes[remote].name === 'upstream') {
isUpstreamSet = true
} else {
isUpstreamSet = false
}
}
// If upstream has not been set. Set it now
if (isUpstreamSet === false) {
await git.addRemote('upstream', 'https://github.com/Superalgos/Superalgos');
}
// Pull branch from main repo
await git.pull('upstream', currentBranch);
// Reset branch to match main repo
let upstreamLocation = `upstream/${currentBranch}`
await git.reset('hard', [upstreamLocation])
} catch (err) {
console.log('[ERROR] Error changing current branch to ' + currentBranch)
console.log(err.stack)
@@ -896,6 +934,21 @@ exports.newHttpInterface = function newHttpInterface() {
}
}
async function runNodeSetup() {
console.log("Running Node setup to adjust for new Branch")
const process = SA.nodeModules.process
const childProcess = SA.nodeModules.childProcess
let dir = process.cwd()
let command = "node setup noShortcuts";
let stdout = childProcess.execSync(command,
{
cwd: dir
}).toString();
console.log("Node Setup has completed with the following result:", stdout)
}
} catch (err) {
console.log('[ERROR] httpInterface -> App -> Update -> Method call produced an error.')
console.log('[ERROR] httpInterface -> App -> Update -> err.stack = ' + err.stack)
@@ -971,6 +1024,148 @@ exports.newHttpInterface = function newHttpInterface() {
}
break
}
case 'FixAppSchema': {
/*
We will use this process when we have moved APP SCHEMA files from one project to another, and we need to fix the
actions where this node was referenced, so that it points to the new project where the node has moved to.
*/
let customResponse = {
result: global.CUSTOM_OK_RESPONSE.result,
message: ''
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(customResponse), httpResponse)
console.log('Fixing App Schemas...')
let projects = SA.projects.foundations.utilities.filesAndDirectories.getDirectories(global.env.PATH_TO_PROJECTS)
let PROJECTS_MAP = new Map()
let directoryCount = 0
let allAppSchemas = []
let allAppSchemasFilePaths = []
let allAppSchemasFileProjects = []
for (let i = 0; i < projects.length; i++) {
let project = projects[i]
const fs = SA.nodeModules.fs
let folder = 'App-Schema'
let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/'
SA.projects.foundations.utilities.filesAndDirectories.getAllFilesInDirectoryAndSubdirectories(filePath + folder, onFilesReady)
function onFilesReady(files) {
try {
let SCHEMA_MAP = new Map()
console.log('files.length... ' + files.length)
for (let k = 0; k < files.length; k++) {
let name = files[k]
let nameSplitted = name.split(folder)
let fileName = nameSplitted[1]
for (let i = 0; i < 10; i++) {
fileName = fileName.replace('\\', '/')
}
let fileToRead = filePath + folder + fileName
console.log('Reading file... ' + fileToRead)
let fileContent = fs.readFileSync(fileToRead)
let schemaDocument
try {
schemaDocument = JSON.parse(fileContent)
SCHEMA_MAP.set(schemaDocument.type, schemaDocument)
allAppSchemas.push(schemaDocument)
allAppSchemasFilePaths.push(fileToRead)
allAppSchemasFileProjects.push(project)
} catch (err) {
console.log('[ERROR] sendSchema -> Error Parsing JSON File: ' + fileToRead + ' .Error = ' + err.stack)
return
}
}
PROJECTS_MAP.set(project, SCHEMA_MAP)
directoryCount++
console.log('directoryCount = ' + directoryCount, 'projects.length = ' + projects.length)
//console.log(Array.from(PROJECTS_MAP.get(project).keys()))
if (directoryCount === projects.length) {
fixSchemas()
}
} catch (err) {
console.log(err.stack)
}
}
}
function fixSchemas() {
try {
console.log('fixSchemas...' + allAppSchemas.length)
let projects = SA.projects.foundations.utilities.filesAndDirectories.getDirectories(global.env.PATH_TO_PROJECTS)
const fs = SA.nodeModules.fs
let needFixing = 0
for (let i = 0; i < allAppSchemas.length; i++) {
let schemaDocument = allAppSchemas[i]
let wasUpdated = false
for (let j = 0; j < schemaDocument.menuItems.length; j++) {
let menuItem = schemaDocument.menuItems[j]
if (menuItem.relatedUiObject !== undefined && menuItem.relatedUiObjectProject === undefined) {
needFixing++
let hits = 0
let foundProject
let multiProject = ''
for (let k = 0; k < projects.length; k++) {
let project = projects[k]
let testDocument = PROJECTS_MAP.get(project).get(menuItem.relatedUiObject)
if (testDocument !== undefined) {
hits++
foundProject = project
multiProject = multiProject + ' -> ' + project
let fileProject = allAppSchemasFileProjects[i]
//console.log(fileProject, project)
if (fileProject === project) {
/* If the project of the file is the same as the project found, then we consider this a match*/
hits = 1
continue
}
}
}
if (hits === 0) {
console.log('Problem With No Solution #' + needFixing, ' Type: ' + schemaDocument.type, ' Action: ' + menuItem.action, ' Related UI Object: ' + menuItem.relatedUiObject)
console.log('This Node Type was NOT FOUND at any project. ' + menuItem.relatedUiObject)
continue
}
if (hits === 1) {
console.log('Problem With One Solution #' + needFixing, ' Type: ' + schemaDocument.type, ' Action: ' + menuItem.action, ' Related UI Object: ' + menuItem.relatedUiObject, ' Found Project:' + foundProject)
menuItem.relatedUiObjectProject = foundProject
wasUpdated = true
continue
}
console.log('Problem With MULTIPLE Solutions #' + needFixing, ' Type: ' + schemaDocument.type, ' Action: ' + menuItem.action, ' Related UI Object: ' + menuItem.relatedUiObject, ' Found at these Projects:' + multiProject)
}
}
if (wasUpdated === true) {
let fileContent = JSON.stringify(schemaDocument, undefined, 4)
let filePath = allAppSchemasFilePaths[i]
//console.log('Saving File at ' + filePath)
//console.log(fileContent)
//fs.writeFileSync(filePath, fileContent)
}
}
} catch (err) {
console.log(err.stack)
}
}
break
}
}
function respondWithDocsObject(docs, error) {
@@ -1067,7 +1262,7 @@ exports.newHttpInterface = function newHttpInterface() {
)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(serverResponse), httpResponse)
setInterval(
PL.servers.GITHUB_SERVER.mergePullRequests,
60000,
@@ -1075,19 +1270,218 @@ exports.newHttpInterface = function newHttpInterface() {
params.username,
params.token
)
return
}
case 'payContributors': {
let serverResponse = await PL.servers.WEB3_SERVER.payContributors(
case 'UserProfile': {
try {
let mess = unescape(params.commitMessage)
const username = unescape(params.username)
const token = unescape(params.token)
const currentBranch = unescape(params.currentBranch)
const contributionsBranch = unescape(params.contributionsBranch)
let error
await updateUser()
async function updateUser() {
await doGithubUser()
if (error !== undefined) {
let docs = {
project: 'Governance',
category: 'Topic',
type: 'Gov Error - Contribution Not Sent',
anchor: undefined,
placeholder: {}
}
console.log('respond with docs ')
respondWithDocsObject(docs, error)
return
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
}
async function doGithubUser() {
const { Octokit } = SA.nodeModules.octokit
const octokit = new Octokit({
auth: token,
userAgent: 'Superalgos Beta 12'
})
const repo = 'Superalgos'
const owner = 'Superalgos'
const head = username + ':' + contributionsBranch
const base = currentBranch
const title = 'Contribution: ' + mess
const path = 'Projects/Governance/Plugins/User-Profiles/' + username + '.json' ;
const sha = await getSHA(path);
if (sha === undefined){
console.log('***** Abort GOV.USERPROFILE *****')
return
}
let file = await SA.projects.communityPlugins.utilities.plugins.getPluginFileContent(
'Governance',
'User-Profiles',
username + '.json'
)
let buff = new Buffer.from(file, 'utf-8');
let encodedFile = buff.toString('base64');
try {
await octokit.repos.createOrUpdateFileContents({
owner: username,
repo: "Superalgos",
path,
message: title,
content: encodedFile,
sha,
branch: base
});
} catch (err) {
if (err.stack.indexOf('Error User Commit') >= 0) {
return
} else {
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10))
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch)
error = err
}
}
try {
await octokit.pulls.create({
owner,
repo,
title,
head,
base,
});
} catch (err) {
if (err.stack.indexOf('A pull request already exists') >= 0) {
return
} else {
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10))
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch)
error = err
}
}
}
async function getSHA(path) {
let sha = ''
const { graphql } = SA.nodeModules.graphql
try{
const { repository } = await graphql(
'{ ' +
' repository(name: "SuperAlgos", owner: "' + username + '") {' +
' object(expression: "develop:' + path +'") {' +
' ... on Blob {' +
' oid' +
' }' +
' }' +
' name' +
' }' +
'}',
{
headers: {
authorization: 'token ' + token
},
}
)
if (repository.name === undefined){
console.log('***** Token permission needed : User:READ *****')
sha = undefined
error = '***** Token permission needed : User:READ *****'
return sha
}
if(repository.object === null ){
console.log("[User Not Found] -> Creating new user")
return sha
}
sha = repository.object.oid
return sha
} catch (err) {
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> Method call produced an error.')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> err.stack = ' + err.stack)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> commitMessage = ' + mess)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> username = ' + username)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token starts with = ' + token.substring(0, 10) + '...')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> token ends with = ' + '...' + token.substring(token.length - 10))
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> currentBranch = ' + currentBranch)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> doGithub -> contributionsBranch = ' + contributionsBranch)
return sha
}
}
} catch (err) {
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> Method call produced an error.')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> err.stack = ' + err.stack)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> commitMessage = ' + mess)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> username = ' + username)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> token starts with = ' + token.substring(0, 10) + '...')
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> token ends with = ' + '...' + token.substring(token.length - 10))
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> currentBranch = ' + currentBranch)
console.log('[ERROR] httpInterface -> Gov -> contributeUserProfile -> contributionsBranch = ' + contributionsBranch)
let error = {
result: 'Fail Because',
message: err.message,
stack: err.stack
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
}
break
}
case 'payContributors': {
console.log('----------------------------------------------------------------------------------------------')
console.log('DISTRIBUTION PROCESS STARTED')
console.log('----------------------------------------------------------------------------------------------')
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse)
await PL.servers.WEB3_SERVER.payContributors(
params.contractAddress,
params.contractAbi,
params.paymentsArray,
params.mnemonic
)
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(serverResponse), httpResponse)
return
}
default: {
@@ -1106,7 +1500,7 @@ exports.newHttpInterface = function newHttpInterface() {
}
try {
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
} catch(err) {
} catch (err) {
// we just try to reponnd to the web app, but maybe the response has already been sent.
}
}
@@ -1115,17 +1509,17 @@ exports.newHttpInterface = function newHttpInterface() {
break
case 'LegacyPlotter.js':
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/WebServer/LegacyPlotter.js', httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/WebServer/LegacyPlotter.js', httpResponse)
}
break
case 'PlotterPanel.js':
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/WebServer/PlotterPanel.js', httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/WebServer/PlotterPanel.js', httpResponse)
}
break
case 'Images': // This means the Images folder.
{
let path = global.env.PATH_TO_CLIENT + '/WebServer/Images/' + requestPath[2]
let path = global.env.PATH_TO_PLATFORM + '/WebServer/Images/' + requestPath[2]
if (requestPath[3] !== undefined) {
path = path + '/' + requestPath[3]
@@ -1207,12 +1601,12 @@ exports.newHttpInterface = function newHttpInterface() {
break
case 'WebServer': // This means the WebServer folder.
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/WebServer/' + requestPath[2], httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/WebServer/' + requestPath[2], httpResponse)
}
break
case 'externalScripts': // This means the WebServer folder.
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/WebServer/externalScripts/' + requestPath[2], httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/WebServer/externalScripts/' + requestPath[2], httpResponse)
}
break
case 'Plotters': // This means the plotter folder, not to be confused with the Plotters script!
@@ -1227,12 +1621,12 @@ exports.newHttpInterface = function newHttpInterface() {
break
case 'ChartLayers':
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/UI/' + endpointOrFile + '/' + requestPath[2], httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/UI/' + endpointOrFile + '/' + requestPath[2], httpResponse)
}
break
case 'Files':
{
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_CLIENT + '/UI/Data-Files/' + requestPath[2], httpResponse)
SA.projects.foundations.utilities.httpResponses.respondWithFile(global.env.PATH_TO_PLATFORM + '/UI/Data-Files/' + requestPath[2], httpResponse)
}
break
case 'Fonts':
@@ -1383,10 +1777,12 @@ exports.newHttpInterface = function newHttpInterface() {
let project = unescape(requestPath[2])
let folder = unescape(requestPath[3])
let response = await SA.projects.foundations.utilities.plugins.getPluginFileNames(
let response = await SA.projects.communityPlugins.utilities.plugins.getPluginFileNames(
project,
folder
)
).catch(err => {
console.log('[ERROR] httpInterface -> PluginFileNames -> err.stack = ' + err.stack)
})
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(response), httpResponse)
@@ -1415,25 +1811,28 @@ exports.newHttpInterface = function newHttpInterface() {
let folder = unescape(requestPath[3])
let fileName = unescape(requestPath[4])
/*Beta 12 Refactoring Code: Remove this before realeasing beta 12.*/
/*Beta 12 Refactoring Code: Remove this before releasing beta 12.*/
if (fileName === 'Superalgos-CL.json') {
fileName = 'Superalgos-PL.json'
}
let response = await SA.projects.foundations.utilities.plugins.getPluginFileContent(
await SA.projects.communityPlugins.utilities.plugins.getPluginFileContent(
project,
folder,
fileName
).catch(err => {
let error = {
result: 'Fail Because',
message: err
)
.then(response => {
SA.projects.foundations.utilities.httpResponses.respondWithContent(response, httpResponse)
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
return
})
SA.projects.foundations.utilities.httpResponses.respondWithContent(response, httpResponse)
)
.catch(err => {
let error = {
result: 'Fail Because',
message: err
}
SA.projects.foundations.utilities.httpResponses.respondWithContent(JSON.stringify(error), httpResponse)
return
})
} catch (err) {
console.log('[ERROR] httpInterface -> LoadPlugin -> Method call produced an error.')
@@ -1604,7 +2003,7 @@ exports.newHttpInterface = function newHttpInterface() {
/* Create Dir if it does not exist */
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
fs.mkdirSync(dir, {recursive: true});
}
fs.writeFile(filePath, fileContent, onFileWritten)
@@ -1742,7 +2141,7 @@ exports.newHttpInterface = function newHttpInterface() {
break
default:
{
SA.projects.foundations.utilities.httpResponses.respondWithWebFile(httpResponse, endpointOrFile, global.env.PATH_TO_CLIENT)
SA.projects.foundations.utilities.httpResponses.respondWithWebFile(httpResponse, endpointOrFile, global.env.PATH_TO_PLATFORM)
}
}
} catch (err) {
+1 -1
View File
@@ -63,7 +63,7 @@
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Name = ' + message.event.taskName)
//console.log('[INFO] Client -> Task Manager Server -> runTask -> Task Id = ' + message.event.taskId)
let path = './TaskServerRoot.js'
let path = global.env.BASE_PATH + '/TaskServerRoot.js'
/* Workarround to avoid having the same debug port at the forked process which makes it crash. */
for (let i = 0; i < process.execArgv.length; i++) {
+33 -6
View File
@@ -285,10 +285,14 @@ exports.newWeb3Server = function newWeb3Server() {
let response = await mnemonicToPrivateKey(mnemonic)
let privateKey = response.privateKey
console.log('----------------------------------------------------------------------------------------------')
console.log('PAYING CONTRIBUTORS')
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]
sendTokens(
await sendTokens(
i + 1,
payment.userProfile,
payment.from,
@@ -299,15 +303,31 @@ exports.newWeb3Server = function newWeb3Server() {
async function sendTokens(number, userProfile, fromAddress, toAddress, tokenAmount) {
try {
tokenAmount = Math.trunc(tokenAmount / 1000000000000000000)
console.log('')
console.log('---------------------------------------------------------------------------------------------------------------------------------------------------')
console.log(' Payment # ' + number + ' - User Profile: ' + userProfile + ' - SA Tokens Amount: ' + tokenAmount / 1000000000000000000 + ' - Address: ' + toAddress)
console.log(' Payment # ' + number + ' - User Profile: ' + userProfile + ' - SA Tokens Amount: ' + parseFloat(tokenAmount).toLocaleString('en') + ' - Address: ' + toAddress)
console.log('---------------------------------------------------------------------------------------------------------------------------------------------------')
console.log('')
if (tokenAmount === 0) {
console.log('No need to send a transaction in this case.')
return
}
const Tx = SA.nodeModules.ethereumjsTx.Transaction;
const web3 = new Web3(new Web3.providers.HttpProvider('https://bsc-dataseed.binance.org/'))
const amount = web3.utils.toHex(tokenAmount)
/*
Token Amount
*/
tokenAmount = web3.utils.toWei(tokenAmount.toString(), 'ether')
var amountBigNumber = web3.utils.toBN(tokenAmount)
//const amount = web3.utils.toHex(tokenAmount)
if (privateKey === undefined) { privateKey = 'No Privete Key - Just Testing' }
privateKey = privateKey.replace('0x', '')
const privateKeyBuffer = Buffer.from(privateKey, 'hex')
const contractAbiObject = JSON.parse(contractAbi)
@@ -325,13 +345,14 @@ exports.newWeb3Server = function newWeb3Server() {
);
const nonce = await web3.eth.getTransactionCount(fromAddress);
console.log('Nonce:', nonce)
const rawTransaction = {
"from": fromAddress,
"gasPrice": web3.utils.toHex(5000000000),
"gasLimit": web3.utils.toHex(210000),
"to": contractAddress, "value": "0x0",
"data": contract.methods.transfer(toAddress, amount).encodeABI(),
"data": contract.methods.transfer(toAddress, amountBigNumber).encodeABI(),
"nonce": web3.utils.toHex(nonce)
};
@@ -339,7 +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) {
+34 -5
View File
@@ -9,7 +9,7 @@
const WEB_SOCKET = SA.nodeModules.ws
let socketServer
let port = global.env.CLIENT_WEB_SOCKETS_INTERFACE_PORT
let port = global.env.PLATFORM_WEB_SOCKETS_INTERFACE_PORT
return thisObject
@@ -36,13 +36,42 @@
socket.on('message', onMenssage)
function onMenssage(message){
function onMenssage(message) {
try {
if (LOG_INFO === true) {
console.log('Message Received: ' + message.substring(0, 1000))
if (global.env.DEMO_MODE === true) {
/*
In DEMO MODE we will accept Task / Sessioins Running or Stopping if you are requesting this from localhost only.
*/
if (socket._socket.remoteAddress !== "::1") {
if (
message.toString().indexOf('"eventType":"Run Task"') >= 0
||
message.toString().indexOf('"eventType":"Stop Task"') >= 0
||
message.toString().indexOf('"eventType":"Run Trading Session"') >= 0
||
message.toString().indexOf('"eventType":"Stop Trading Session"') >= 0
||
message.toString().indexOf('"eventType":"Resume Trading Session"') >= 0
||
message.toString().indexOf('"eventType":"Run Learning Session"') >= 0
||
message.toString().indexOf('"eventType":"Stop Learning Session"') >= 0
||
message.toString().indexOf('"eventType":"Resume Learning Session"') >= 0
) {
console.log('Trying to execute a Task while in DEMO MODE. Some hacking has taken place!')
console.log('Hacker IP Address is: ' + socket._socket.remoteAddress)
return
}
}
}
if (LOG_INFO === true) {
console.log('Message Received: ' + message.toString().substring(0, 10000))
}
let messageArray = message.toString().split('|*|')
let origin = messageArray[0]
+5 -6
View File
@@ -6,7 +6,7 @@ exports.newPlatformApp = function newPlatformApp() {
return thisObject
async function run() {
async function run(initialWorkspace) {
process.on('uncaughtException', function (err) {
if (err.message && err.message.indexOf("EADDRINUSE") > 0) {
@@ -133,17 +133,16 @@ exports.newPlatformApp = function newPlatformApp() {
console.log('')
console.log('SUPERALGOS PLATFORM CLIENT INTERFACES:')
console.log('')
WEB_SOCKETS_INTERFACE = WEB_SOCKETS_INTERFACE.newWebSocketsInterface()
WEB_SOCKETS_INTERFACE.initialize()
console.log('Web Sockets Interface ....................................... Listening at port ' + global.env.CLIENT_WEB_SOCKETS_INTERFACE_PORT)
console.log('Web Sockets Interface ....................................... Listening at port ' + global.env.PLATFORM_WEB_SOCKETS_INTERFACE_PORT)
HTTP_INTERFACE = HTTP_INTERFACE.newHttpInterface()
HTTP_INTERFACE.initialize()
console.log('Http Interface .............................................. Listening at port ' + global.env.CLIENT_HTTP_INTERFACE_PORT)
HTTP_INTERFACE.initialize(initialWorkspace)
console.log('Http Interface .............................................. Listening at port ' + global.env.PLATFORM_HTTP_INTERFACE_PORT)
console.log('')
console.log("You are running Superalgos Beta 11")
console.log("You are running Superalgos Beta 12")
console.log('')
console.log("What's new? These are the main new features in this version:")
console.log('')
+2 -2
View File
@@ -149,12 +149,12 @@ function newAnimation() {
}
}
/* We request the next frame to be drawn, and stablishing a loop */
/* We request the next frame to be drawn, and establish a loop */
/* Use this code for full animation speed. */
animationLoopHandle = window.requestAnimationFrame(animationLoop)
/* Use this code for max 10 frames per second animation speed, if the app is consumming too much of your CPU. */
/* Use this code for max 10 frames per second animation speed, if the app is consuming too much of your CPU. */
/*
setTimeout(nextLoop, 100)
function nextLoop () {
+12 -3
View File
@@ -4,7 +4,7 @@ function newAppPostLoader() {
const MODULE_NAME = 'Post Loader'
const ERROR_LOG = true
const logger = newWebDebugLog()
let thisObject = {
start: start
@@ -14,9 +14,18 @@ function newAppPostLoader() {
function start() {
try {
// autoSaveWhenClosingTheBrowser()
setupProjectsSchema()
setupEnvironment()
function setupEnvironment() {
httpRequest(undefined, 'Environment', onResponse)
function onResponse(err, file) {
UI.environment = JSON.parse(file)
setupProjectsSchema()
}
}
function setupProjectsSchema() {
httpRequest(undefined, 'ProjectsSchema', onResponse)
+2 -2
View File
@@ -47,7 +47,7 @@ function loadSuperalgos() {
loadDebugModule()
if ((browser.name !== "Chrome" && browser.name!=="Safari") || (browser.name === "Chrome" && parseInt(browser.version) < 85) || (browser.name === "Safari" && parseInt(browser.version) < 13)) {
alert("Superalgos is officially supported on Google Chrome 85 or Safari 13.1 and above. Your browser version has been detected as potentially beneath this. If you continue you may experience some functionaility issues.\n\nDetected Browser: " + browser.name + "\nVersion: " + browser.version)
alert("Superalgos is officially supported on Google Chrome 85 or Safari 13.1 and above. Your browser version has been detected as potentially beneath this. If you continue you may experience some functionality issues.\n\nDetected Browser: " + browser.name + "\nVersion: " + browser.version)
}
function checkBrowserVersion () {
@@ -131,7 +131,7 @@ function loadSuperalgos() {
}
}
/* And Finally, we start loading all the scripts we will inmediatelly need. */
/* And Finally, we start loading all the scripts we will immediately need. */
function loadModules() {
let path = "AppLoader.js"
REQUIREJS([path], onRequired)
+25 -12
View File
@@ -172,7 +172,7 @@ function newCanvas() {
spaceDefinitionDrawMap.set(spaceDefinition.animationDrawIndex, spaceDefinition)
}
/* Build the maps that defines the secuence of execution of different events. */
/* Build the maps that defines the sequence of execution of different events. */
if (spaceDefinition.onMouseWheelIndex !== undefined) {
projectInstance.events.onMouseWheelMap.set(spaceDefinition.onMouseWheelIndex, spaceInstance)
}
@@ -373,7 +373,7 @@ function newCanvas() {
if (EDITOR_ON_FOCUS === true) {
/*
We will fordward the event to whoever is
We will forward the event to whoever is
controlling the editor.
*/
if (window.editorController !== undefined) {
@@ -485,6 +485,19 @@ function newCanvas() {
return
}
if (
event.shiftKey === true &&
(event.ctrlKey === true || event.metaKey === true) &&
(event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.rescueFloatingObjectToMouse || event.key === UI.projects.foundations.spaces.floatingSpace.settings.shortcuts.rescueFloatingObjectToMouse.toLowerCase())
) {
UI.projects.foundations.spaces.floatingSpace.rescueFloatingObjectToMouse(thisObject.mouse.position)
if (event.preventDefault !== undefined) {
event.preventDefault()
}
return
}
let nodeOnFocus = await UI.projects.foundations.spaces.designSpace.workspace.getNodeThatIsOnFocus()
if (nodeOnFocus !== undefined) {
if (nodeOnFocus.payload.uiObject.codeEditor !== undefined) {
@@ -637,7 +650,7 @@ function newCanvas() {
if ((event.ctrlKey === true || event.metaKey === true) && event.altKey === true) {
/* Shortcuts to nodes */
if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 65 && event.keyCode <= 90)) {
/* From here we prevent the default behaviour. Putting it earlier prevents imput box and text area to receive keystrokes */
/* From here we prevent the default behaviour. Putting it earlier prevents input box and text area to receive keystrokes */
event.preventDefault()
let nodeUsingThisKey = await UI.projects.foundations.spaces.designSpace.workspace.getNodeByShortcutKey(event.key)
@@ -758,11 +771,11 @@ function newCanvas() {
/*
We will go through all the spaces defined at the project schema for each project
and we are going to query each space to see if they have the container that is at
the mouse position. We will order firt the spaces by the sequence order defined
the mouse position. We will order first the spaces by the sequence order defined
at the project schema specifically for this mouse event.
The order of the projects for events evaluations has intentionally been inverted,
because the latest project is drwan the last, on top of the others, that means that
because the latest project is drawn the last, on top of the others, that means that
events should belong to the last first.
*/
for (let i = PROJECTS_SCHEMA.length - 1; i >= 0; i--) {
@@ -868,11 +881,11 @@ function newCanvas() {
/*
We will go through all the spaces defined at the project schema for each project
and we are going to query each space to see if they have the container that is at
the mouse position. We will order firt the spaces by the sequence order defined
the mouse position. We will order first the spaces by the sequence order defined
at the project schema specifically for this mouse event.
The order of the projects for events evaluations has intentionally been inverted,
because the latest project is drwan the last, on top of the others, that means that
because the latest project is drawn the last, on top of the others, that means that
events should belong to the last first.
*/
for (let i = PROJECTS_SCHEMA.length - 1; i >= 0; i--) {
@@ -979,18 +992,18 @@ function newCanvas() {
return
}
/* Then we check who is the current object underneeth the mounse. */
/* Then we check who is the current object underneath the mouse. */
let container
/*
We will go through all the spaces defined at the project schema for each project
and we are going to query each space to see if they have the container that is at
the mouse position. We will order firt the spaces by the sequence order defined
the mouse position. We will order first the spaces by the sequence order defined
at the project schema specifically for this mouse event.
The order of the projects for events evaluations has intentionally been inverted,
because the latest project is drwan the last, on top of the others, that means that
because the latest project is drawn the last, on top of the others, that means that
events should belong to the last first.
*/
for (let i = PROJECTS_SCHEMA.length - 1; i >= 0; i--) {
@@ -1050,11 +1063,11 @@ function newCanvas() {
/*
We will go through all the spaces defined at the project schema for each project
and we are going to query each space to see if they have the container that is at
the mouse position. We will order firt the spaces by the sequence order defined
the mouse position. We will order first the spaces by the sequence order defined
at the project schema specifically for this mouse event.
The order of the projects for events evaluations has intentionally been inverted,
because the latest project is drwan the last, on top of the others, that means that
because the latest project is drawn the last, on top of the others, that means that
events should belong to the last first.
*/
for (let i = PROJECTS_SCHEMA.length - 1; i >= 0; i--) {
+2 -2
View File
@@ -45,7 +45,7 @@ function newDailyFiles() {
}
}
function initialize(pMine, pBot, pSession, pProduct, pDataset, pExchange, pMarket, pDatetime, pTimeFrame, pHost, pPort, pEventsServerClient, callBackFunction) {
function initialize(pMine, pBot, pSession, pProduct, pDataset, pExchange, pMarket, pDatetime, pTimeFrame, pHost, pPort, pEventsServerClient, callBackFunction, scheme='http') {
try {
callBackWhenFileReceived = callBackFunction
@@ -55,7 +55,7 @@ function newDailyFiles() {
let timeFrames
fileCloud = newFileCloud()
fileCloud.initialize(pBot, pHost, pPort)
fileCloud.initialize(pBot, pHost, pPort, scheme)
/* Config Validations */
if (pDataset.config.validTimeFrames === undefined) {
+5 -5
View File
@@ -17,8 +17,8 @@ function newFileCloud () {
let fileStorage
return thisObject
function initialize (pBot, pHost, pPort) {
fileStorage = newFileStorage(pHost, pPort)
function initialize (pBot, pHost, pPort, scheme='http') {
fileStorage = newFileStorage(pHost, pPort, scheme)
}
function getFile (pMine, pBot, pSession, pProduct, pDataset, pExchange, pMarket, ptimeFrameLabel, pDatetime, pSequence, pDataRange, pTimeFrames, callBackFunction) {
@@ -77,7 +77,7 @@ function newFileCloud () {
}
if (fileName === undefined) {
logger.write('[ERROR] getFile -> getFileRecursively -> Inconsistant data. Check the following: ')
logger.write('[ERROR] getFile -> getFileRecursively -> Inconsistent data. Check the following: ')
logger.write('[ERROR] getFile -> getFileRecursively -> pMine = ' + JSON.stringify(pMine))
logger.write('[ERROR] getFile -> getFileRecursively -> pBot = ' + JSON.stringify(pBot))
logger.write('[ERROR] getFile -> getFileRecursively -> pDataset = ' + JSON.stringify(pDataset))
@@ -85,7 +85,7 @@ function newFileCloud () {
logger.write('[ERROR] getFile -> getFileRecursively -> pMarket = ' + JSON.stringify(pMarket))
logger.write('[ERROR] getFile -> getFileRecursively -> ptimeFrameLabel = ' + JSON.stringify(ptimeFrameLabel))
throw ('Inconsistant data received.')
throw ('Inconsistent data received.')
}
if (pMarket !== undefined) {
@@ -152,7 +152,7 @@ function newFileCloud () {
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> filePath = ' + filePath) }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> fileName = ' + fileName) }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> Unexpected Error Ocurred.') }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> Unexpected Error Occurred.') }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> err = ' + err.stack) }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> text = ' + text) }
if (ERROR_LOG === true) { logger.write('[ERROR] getFile -> getFileRecursively -> onFileReceived -> response = ' + response) }
+2 -2
View File
@@ -195,7 +195,7 @@ function newFileCursor() {
/*
We are implementing here an algorithm designed to save bandwidth, memory and processing power at the browser.
We say there is a saving mode where the cursor is running at a minimum size. When the end user aproaches the time period the cursor
We say there is a saving mode where the cursor is running at a minimum size. When the end user approaches the time period the cursor
is set, then it should exit the saving mode and go to its actual size.
To do this we are going to measure the distance from the Time Frame received to the one the cursors was initialized with.
@@ -427,7 +427,7 @@ function newFileCursor() {
let targetDate = new Date(cursorDate)
targetDate.setUTCDate(targetDate.getUTCDate() + j)
/* Small algorith to allow load first the current date, then alternate between the most forwad and the most backwards ones. */
/* Small algorithm to allow load first the current date, then alternate between the most forward and the most backwards ones. */
if (j === 0) { j++ } else {
if (j < 0) {
j = -j
+4 -4
View File
@@ -1,4 +1,4 @@
function newFileStorage(host, port) {
function newFileStorage(host, port, scheme='http') {
const MODULE_NAME = 'File Storage'
const INFO_LOG = false
const logger = newWebDebugLog()
@@ -40,12 +40,12 @@ function newFileStorage(host, port) {
let url
if (host !== undefined && port !== undefined) {
url = 'http://' + host + ':' + port + '/' + folder + filePath
url = scheme + '://' + host + ':' + port + '/' + folder + filePath
} else {
url = folder + filePath
}
/* Scaping # since it breaks the URL */
/* Escaping # since it breaks the URL */
url = url.replaceAll('#', '_HASHTAG_')
httpRequest(undefined, url, (response, fileContent) => {
@@ -64,7 +64,7 @@ function newFileStorage(host, port) {
let err = { code: 'The specified key does not exist.' }
callBackFunction(err)
} else {
console.log('Error geting the file from the serever:', err)
console.log('Error getting the file from the server:', err)
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
}
}
+3 -2
View File
@@ -80,7 +80,8 @@ function newMarketFiles() {
pHost,
pPort,
pEventsServerClient,
callBackFunction) {
callBackFunction,
scheme='http') {
try {
let timeFrames
@@ -94,7 +95,7 @@ function newMarketFiles() {
eventsServerClient = pEventsServerClient
fileCloud = newFileCloud()
fileCloud.initialize(pBot, pHost, pPort)
fileCloud.initialize(pBot, pHost, pPort, scheme)
/* Some Validations */
if (dataset.config.validTimeFrames === undefined) {
+1 -1
View File
@@ -8,7 +8,7 @@ function newEventHandler() {
finalize: finalize
}
let eventHandlers = [] // Here we store all the functions we will call when an event is raiseed.
let eventHandlers = [] // Here we store all the functions we will call when an event is raised.
return thisObject
+9 -4
View File
@@ -218,13 +218,14 @@ function newEventsServerClient(lanNetworkNode) {
try {
let host
let port
/* At this point the node does not have the payload property yet, that is why we have to do this manually */
let extwsurl
try {
let config = JSON.parse(lanNetworkNode.config)
host = config.host
port = config.webSocketsPort
extwsurl = config.webSocketsExternalURL
/* Check if we really have to stablish the connection. */
/* Check if we really have to establish the connection. */
if (config.autoConnect === false) { return }
} catch (err) {
lanNetworkNode.payload.uiObject.setErrorMessage(
@@ -268,8 +269,12 @@ function newEventsServerClient(lanNetworkNode) {
return
}
const WEB_SOCKETS_URL = 'ws://' + host + ':' + port + ''
let wsurl = 'ws://' + host + ':' + port + ''
if (extwsurl !== undefined) {
wsurl = extwsurl
}
const WEB_SOCKETS_URL = wsurl
WEB_SOCKETS_CONNECTION = new WebSocket(WEB_SOCKETS_URL)
WEB_SOCKETS_CONNECTION.onerror = error => {
console.log('WebSocket error:' + JSON.stringify(error))
@@ -280,7 +285,7 @@ function newEventsServerClient(lanNetworkNode) {
}
}
WEB_SOCKETS_CONNECTION.onmessage = e => {
// console.log('Websoked Message Received: ' + e.data)
// console.log('WEB_SOCKET Message Received: ' + e.data)
let message = JSON.parse(e.data)
+8 -8
View File
@@ -6,7 +6,7 @@ function newFrame() {
let thisObject = {
type: 'Rectangle',
containerName: '', // This is for debugging purposes only.
parentFrame: undefined, // Here we store the parent cointainer zoom object.
parentFrame: undefined, // Here we store the parent container zoom object.
radius: 0,
offset: undefined,
position: undefined,
@@ -53,7 +53,7 @@ function newFrame() {
}
function isInViewPort() {
/* This function is usefull to know if the object who has this frame is currently appearing at least in part at the UI.projects.foundations.spaces.chartingSpace.viewport */
/* This function is useful to know if the object who has this frame is currently appearing at least in part at the UI.projects.foundations.spaces.chartingSpace.viewport */
point1 = {
x: 0,
@@ -78,7 +78,7 @@ function newFrame() {
}
function isCenterInViewPort() {
/* This function is usefull to know if the object who has this frame is currently appearing at least in part at the UI.projects.foundations.spaces.chartingSpace.viewport */
/* This function is useful to know if the object who has this frame is currently appearing at least in part at the UI.projects.foundations.spaces.chartingSpace.viewport */
point1 = {
x: thisObject.width * 40 / 100,
@@ -187,8 +187,8 @@ function newFrame() {
}
function isThisPointHere(point, outsideViewPort, dontTransform, padding) {
// The second parameter is usefull when you want to check a point that you already know is outside the viewport.
// The padding is a distance to the borders of the container. Can be either negative (outside, to increase the cointainer size) or positive (inside to decrease the cointainer size)
// The second parameter is useful when you want to check a point that you already know is outside the viewport.
// The padding is a distance to the borders of the container. Can be either negative (outside, to increase the container size) or positive (inside to decrease the cointainer size)
if (padding === undefined) { padding = 0 }
@@ -199,7 +199,7 @@ function newFrame() {
}
/* The point received is on the screen coordinates system, which already has zoom and displacement applied. We need to remove the zoom and displacement
in order to have the point on the containers coordinate system and be able to compare it with its dimmensions. */
in order to have the point on the containers coordinate system and be able to compare it with its dimensions. */
if (dontTransform === false || dontTransform === undefined) {
if (outsideViewPort === true) {
checkPoint = thisObject.container.frame.unframeThisPoint(checkPoint)
@@ -208,7 +208,7 @@ function newFrame() {
}
}
/* Now we check if the resulting point is whin the current Frame. */
/* Now we check if the resulting point is within the current Frame. */
if (isNaN(checkPoint.x) || isNaN(checkPoint.y)) { return false }
if (thisObject.type === 'Circle') {
let distance = Math.sqrt(Math.pow(thisObject.position.x - checkPoint.x, 2) + Math.pow(thisObject.position.y - checkPoint.y, 2))
@@ -244,7 +244,7 @@ function newFrame() {
thisPoint = thisObject.parentFrame.frameThisPoint(thisPoint)
}
/* Now we check if the resulting point is whin the current Frame. */
/* Now we check if the resulting point is within the current Frame. */
if (thisObject.type === 'Circle') {
let distance = Math.sqrt(Math.pow(thisPoint.x - checkPoint.x, 2) + Math.pow(thisPoint.y - checkPoint.y, 2))
+6 -5
View File
@@ -1,11 +1,12 @@
/* Global Constatns */
/* Global Constants */
let canvas
let PROJECTS_SCHEMA
let SCHEMAS_BY_PROJECT = new Map()
/* New Root object*/
let UI = {
projects: {}
projects: {},
environment: {}
}
/* User Interface Colors */
@@ -203,9 +204,9 @@ const _1_MINUTE_IN_MILISECONDS = 1 * 60 * 1000;
let NEW_SESSION_INITIAL_DATE = new Date(); // This value will be overwritten at the UI.projects.foundations.spaces.chartingSpace.viewport.initialize if the user had a prevous session with this same browser.
let NEW_SESSION_INITIAL_DATE = new Date(); // This value will be overwritten at the UI.projects.foundations.spaces.chartingSpace.viewport.initialize if the user had a previous session with this same browser.
let INITIAL_ZOOM_LEVEL = -28.25 // This is the zoom level at the view port in which the APP starts.
let INITIAL_TIME_PERIOD = ONE_DAY_IN_MILISECONDS // This value will be overwritten at the UI.projects.foundations.spaces.chartingSpace.viewport.initialize if the user had a prevous session with this same browser.
let INITIAL_TIME_PERIOD = ONE_DAY_IN_MILISECONDS // This value will be overwritten at the UI.projects.foundations.spaces.chartingSpace.viewport.initialize if the user had a previous session with this same browser.
let VERY_LARGE_NUMBER = 100000000000000
const TOP_MARGIN = 0
@@ -245,7 +246,7 @@ const PERIOD_05_MIN = "05-min";
const PERIOD_01_MIN = "01-min";
/*
We define here the size of the chartingSpace. It has to bee enough big in order to accomodate all the charts we expect to display in this space.
We define here the size of the chartingSpace. It has to bee enough big in order to accommodate all the charts we expect to display in this space.
*/
const TIME_MACHINE_WIDTH = 8;
+5 -5
View File
@@ -74,7 +74,7 @@ function newProductStorage(name) {
}
}
function initialize(mine, bot, session, product, exchange, market, pDatetime, pTimeFrame, host, port, eventsServerClient, callBackFunction) {
function initialize(mine, bot, session, product, exchange, market, pDatetime, pTimeFrame, host, port, eventsServerClient, callBackFunction, scheme='http') {
try {
datetime = pDatetime
timeFrame = pTimeFrame
@@ -90,7 +90,7 @@ function newProductStorage(name) {
dataSetsToLoad++
let marketFiles = newMarketFiles()
marketFiles.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onMarketFileReady)
marketFiles.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onMarketFileReady, scheme)
thisObject.marketFiles.push(marketFiles)
}
break
@@ -99,7 +99,7 @@ function newProductStorage(name) {
dataSetsToLoad++
let dailyFiles = newDailyFiles()
dailyFiles.initialize(mine, bot, session, product, dataset, exchange, market, pDatetime, pTimeFrame, host, port, eventsServerClient, onDailyFileReady)
dailyFiles.initialize(mine, bot, session, product, dataset, exchange, market, pDatetime, pTimeFrame, host, port, eventsServerClient, onDailyFileReady, scheme)
thisObject.dailyFiles.push(dailyFiles)
}
break
@@ -108,7 +108,7 @@ function newProductStorage(name) {
dataSetsToLoad++
let singleFile = newSingleFile()
singleFile.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onSingleFileReady)
singleFile.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onSingleFileReady, scheme)
thisObject.singleFile.push(singleFile)
}
break
@@ -117,7 +117,7 @@ function newProductStorage(name) {
dataSetsToLoad++
let fileSequences = newFileSequence()
fileSequences.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onFileSequenceReady)
fileSequences.initialize(mine, bot, session, product, dataset, exchange, market, host, port, eventsServerClient, onFileSequenceReady, scheme)
thisObject.fileSequences.push(fileSequences)
}
break
+35 -13
View File
@@ -1,4 +1,4 @@
function getSchemaDocument (node, project) {
function getSchemaDocument(node, project) {
if (node === null || node === undefined) {
console.log('[ERROR] Can not get the schema document of a null or undefined node ')
return
@@ -7,13 +7,35 @@ function getSchemaDocument (node, project) {
let APP_SCHEMA = SCHEMAS_BY_PROJECT.get(project)
if (APP_SCHEMA !== undefined) {
return SCHEMAS_BY_PROJECT.get(project).map.appSchema.get(node.type)
let schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.appSchema.get(node.type)
/*
As of today, we are still splitting the codebase into multiple projects and there are Menu Actions which do not
have a well defined relatedUIObjectProject. There are a few techniques in place to try to guess it, but
even those can fail. For that reason, we will temporally see if we can find the schema document at any of the
available projects.
TODO: We need to explictly declare the project of a relatedUIObject in order to avoid potential name collision
between nodes belonging to more than one project.
*/
if (schemaDocument === undefined) {
for (let j = 0; j < PROJECTS_SCHEMA.length; j++) {
let project = PROJECTS_SCHEMA[j].name
schemaDocument = SCHEMAS_BY_PROJECT.get(project).map.appSchema.get(node.type)
if (schemaDocument !== undefined) {
break
}
}
}
return schemaDocument
} else {
console.log('[ERROR] Could not get APP Scchema for project ' + node.project)
console.log('[ERROR] Could not get APP Schema for project ' + node.project)
}
}
function dynamicDecimals (value, minDecimals) {
function dynamicDecimals(value, minDecimals) {
if (minDecimals === undefined) {
minDecimals = 0
}
@@ -26,7 +48,7 @@ function dynamicDecimals (value, minDecimals) {
return returnValue
}
function convertTimeFrameToName (pTimeFrame) {
function convertTimeFrameToName(pTimeFrame) {
for (let i = 0; i < dailyTimeFramesArray.length; i++) {
let period = dailyTimeFramesArray[i]
if (period[0] === pTimeFrame) {
@@ -42,7 +64,7 @@ function convertTimeFrameToName (pTimeFrame) {
}
}
function nextPorwerOf10 (number) {
function nextPorwerOf10(number) {
for (let i = -10; i <= 10; i++) {
if (number < Math.pow(10, i)) {
return Math.pow(10, i)
@@ -50,18 +72,18 @@ function nextPorwerOf10 (number) {
}
}
function pad (str, max) {
function pad(str, max) {
str = str.toString()
return str.length < max ? pad('0' + str, max) : str
}
function moveToUserPosition (container, currentDate, currentRate, coordinateSystem, ignoreX, ignoreY, mousePosition, fitFunction) {
function moveToUserPosition(container, currentDate, currentRate, coordinateSystem, ignoreX, ignoreY, mousePosition, fitFunction) {
let targetPoint = {
x: currentDate.valueOf(),
y: currentRate
}
/* Put this point in the coordinate system of the UI.projects.foundations.spaces.chartingSpace.viewport */
/* Put this point in the coordinate system of the UI.projects.foundations.spaces.chartingSpace.viewport */
targetPoint = coordinateSystem.transformThisPoint(targetPoint)
targetPoint = UI.projects.foundations.utilities.coordinateTransformations.transformThisPoint(targetPoint, container)
@@ -81,7 +103,7 @@ function moveToUserPosition (container, currentDate, currentRate, coordinateSyst
container.displace(displaceVector)
}
function removeTime (datetime) {
function removeTime(datetime) {
if (datetime === undefined) { return }
let dateOnly = new Date(Math.trunc(datetime.valueOf() / ONE_DAY_IN_MILISECONDS) * ONE_DAY_IN_MILISECONDS)
@@ -89,14 +111,14 @@ function removeTime (datetime) {
return dateOnly
}
function newUniqueId () {
function newUniqueId() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8)
return v.toString(16)
})
}
function splitTextIntoPhrases (text, wordsPerLine) {
function splitTextIntoPhrases(text, wordsPerLine) {
try {
if (text.split === undefined) {
return []
@@ -128,7 +150,7 @@ function splitTextIntoPhrases (text, wordsPerLine) {
}
}
function getTextWidth (text) {
function getTextWidth(text) {
var metrics = browserCanvasContext.measureText(text)
return metrics.width
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

+7
View File
@@ -826,6 +826,13 @@ display: table-cell;
width: 100%;
}
::placeholder, /* Chrome, Firefox, Opera, Safari 10.1+ */
:-ms-input-placeholder, /* Internet Explorer 10-11 */
::-ms-input-placeholder { /* Microsoft Edge */
color: #dbdbdb;
opacity: 1; /* Firefox */
}
.docs-search-results-header-tabs-container {
display: table;
text-align: right;
+2 -1
View File
@@ -888,7 +888,8 @@
#governance-tab13:checked ~ .governance-search-result-content #content13,
#governance-tab14:checked ~ .governance-search-result-content #content14,
#governance-tab15:checked ~ .governance-search-result-content #content15,
#governance-tab16:checked ~ .governance-search-result-content #content16 {
#governance-tab16:checked ~ .governance-search-result-content #content16,
#governance-tab17:checked ~ .governance-search-result-content #content17 {
display: block;
}
+21
View File
@@ -25,6 +25,27 @@ content: "Summary: ";
font-weight: bold;
}
.tutorial-content-div {
overflow-y: auto;
overflow-x: clip;
}
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
.tutorial-definitionTable {
background-color: #f3f3f3;
border-top-color: #a6e1ec;
+36 -4
View File
@@ -15,6 +15,7 @@ The SA object is accesible everywhere at the Superalgos Desktop App.
It provides access to all modules built for Superalgos in general.
*/
global.SA = {}
/* Load Environment Variables */
let ENVIRONMENT = require('./Environment.js');
let ENVIRONMENT_MODULE = ENVIRONMENT.newEnvironment()
@@ -47,14 +48,45 @@ SA.nodeModules = {
http: require('http'),
ccxt: require('ccxt'),
octokit: require("@octokit/rest"),
graphql: require("@octokit/graphql"),
simpleGit: require('simple-git'),
lookpath: require('lookpath')
lookpath: require('lookpath'),
process: require('process'),
childProcess: require('child_process')
}
/*
Check if we are starting from a particular workspace.
*/
let initialWorkspace = {}
for (let i = 0; i < process.argv.length; i++) {
let arg = process.argv[i]
if (arg === 'noBrowser') { continue }
if (arg === 'minMemo') { continue }
if (arg.indexOf(':') >= 0) { continue }
if (arg.indexOf('/') >= 0) { continue }
if (initialWorkspace.project === undefined) {
if (arg !== 'My-Workspaces') {
initialWorkspace.type = 'Plugin'
initialWorkspace.project = arg
} else {
initialWorkspace.type = 'My-Workspaces'
initialWorkspace.project = ''
}
} else {
initialWorkspace.name = arg
}
}
run()
run(initialWorkspace)
async function run() {
async function run(initialWorkspace) {
PL.app = require('./Platform/PlatformApp.js').newPlatformApp()
await PL.app.run()
await PL.app.run(initialWorkspace)
console.log('Superalgos Platform App is Running!')
if(process.send) {
process.send("Running")
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@@ -0,0 +1,63 @@
{
"type": "Algorithmic-Trading Project",
"menuItems": [
{
"action": "Add Missing Children",
"label": "Add Missing Children",
"iconPathOn": "algorithmic-trading-project",
"iconPathOff": "algorithmic-trading-project",
"iconProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Trading Mine",
"relatedUiObject": "Trading Mine",
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Trading Engine",
"relatedUiObject": "Trading Engine",
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Trading System",
"relatedUiObject": "Trading System",
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"actionFunction": "payload.executeAction",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity"
}
],
"isProjectHead": true,
"isTitleAllwaysVisible": false,
"addLeftIcons": true,
"isPinned": true,
"positionLocked": true,
"icon": "algorithmic-trading-project",
"childrenNodesProperties": [
{
"name": "projectDefinition",
"type": "node",
"childType": "Project Definition",
"project": "Foundations",
"autoAdd": true
}
]
}
@@ -7,28 +7,36 @@
"iconPathOn": "configuration",
"iconPathOff": "configuration",
"dontShowAtFullscreen": true,
"actionFunction": "uiObject.configEditor.activate"
"actionFunction": "uiObject.configEditor.activate",
"actionProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Process Definition",
"relatedUiObject": "Process Definition",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Product Definition",
"relatedUiObject": "Product Definition",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Product Definition Folder",
"relatedUiObject": "Product Definition Folder",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
@@ -54,19 +62,22 @@
"name": "processes",
"type": "array",
"childType": "Process Definition",
"autoAdd": true
"autoAdd": true,
"project": "Foundations"
},
{
"name": "products",
"type": "array",
"childType": "Product Definition",
"autoAdd": true
"autoAdd": true,
"project": "Foundations"
},
{
"name": "productDefinitionFolders",
"type": "array",
"childType": "Product Definition Folder",
"autoAdd": true
"autoAdd": true,
"project": "Foundations"
}
],
"propertyNameAtParent": "tradingBots"
@@ -5,10 +5,13 @@
"action": "Add Missing Children",
"label": "Add Missing Children",
"relatedUiObject": "Trading Engine",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Algorithmic-Trading"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
@@ -25,19 +28,22 @@
"name": "tradingCurrent",
"type": "node",
"childType": "Trading Current",
"autoAdd": true
"autoAdd": false,
"project": "Foundations"
},
{
"name": "tradingLast",
"type": "node",
"childType": "Trading Last",
"autoAdd": true
"autoAdd": false,
"project": "Foundations"
},
{
"name": "exchangeOrders",
"type": "node",
"childType": "Exchange Orders",
"autoAdd": true
"autoAdd": false,
"project": "Foundations"
}
]
}
@@ -6,23 +6,30 @@
"label": "Configure",
"iconPathOn": "configuration",
"iconPathOff": "configuration",
"iconProject": "Foundations",
"dontShowAtFullscreen": true,
"actionFunction": "uiObject.configEditor.activate"
"actionFunction": "uiObject.configEditor.activate",
"actionProject": "Foundations"
},
{
"action": "Add UI Object",
"label": "Add Trading Bot",
"relatedUiObject": "Trading Bot",
"actionFunction": "payload.executeAction"
"relatedUiObjectProject": "Algorithmic-Trading",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Add UI Object",
"label": "Add Plotter",
"relatedUiObject": "Plotter",
"actionFunction": "payload.executeAction"
"relatedUiObjectProject": "Foundations",
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
@@ -45,12 +52,14 @@
{
"name": "tradingBots",
"type": "array",
"childType": "Trading Bot"
"childType": "Trading Bot",
"project": "Algorithmic-Trading"
},
{
"name": "plotters",
"type": "array",
"childType": "Plotter"
"childType": "Plotter",
"project": "Foundations"
}
]
}
@@ -5,7 +5,9 @@
"action": "Add UI Object",
"label": "Add Trading Strategy",
"relatedUiObject": "Trading Strategy",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Add UI Object",
@@ -13,10 +15,13 @@
"propertyToCheckFor": "dynamicIndicators",
"label": "Add Dynamic Indicators",
"relatedUiObject": "Dynamic Indicators",
"actionFunction": "payload.executeAction"
"actionFunction": "payload.executeAction",
"actionProject": "Visual-Scripting",
"relatedUiObjectProject": "Foundations"
},
{
"action": "Delete UI Object",
"actionProject": "Visual-Scripting",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
@@ -33,13 +38,15 @@
"name": "tradingStrategies",
"type": "array",
"childType": "Trading Strategy",
"autoAdd": true
"autoAdd": true,
"project": "Foundations"
},
{
"name": "dynamicIndicators",
"type": "node",
"childType": "Dynamic Indicators",
"autoAdd": true
"autoAdd": true,
"project": "Foundations"
}
]
}
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesExchangeAPI = function (processIndex) {
exports.newAlgorithmicTradingBotModulesExchangeAPI = function (processIndex) {
let MODULE_NAME = "Exchange API";
@@ -228,7 +228,7 @@
logError('key.length:' + exchangeApiKey.config.codeName.length)
logError('secret.length:' + exchangeApiKey.config.secret.length)
logError('Double check that you copied the key at the codeName property and the secret at secret property without bringing any invisible caracter from the exchange web site, or leaving any character from the sample text. Also check that the keys are not disabled at the exchange ot that they are not restricted by IP.')
logError('As a remainder. Binance key and secret are 64 bytes in lenght each one. ')
logError('As a remainder. Binance key and secret are 64 bytes in length each one. ')
}
}
}
@@ -1,8 +1,7 @@
exports.newFoundationsBotModulesOrdersCalculations = function (processIndex) {
exports.newAlgorithmicTradingBotModulesOrdersCalculations = function (processIndex) {
/*
When we are live trading, we need to syncronize with the exchange.
*/
const MODULE_NAME = 'Orders Calculations'
let thisObject = {
actualSizeCalculation: actualSizeCalculation,
@@ -1,8 +1,7 @@
exports.newFoundationsBotModulesOrdersSimulations = function (processIndex) {
exports.newAlgorithmicTradingBotModulesOrdersSimulations = function (processIndex) {
/*
When we are backtesting or paper trading, we need to simulate what would have happened at the exchange.
*/
const MODULE_NAME = 'Orders Simulations'
let thisObject = {
actualSizeSimulation: actualSizeSimulation,
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesSnapshots = function(processIndex) {
exports.newAlgorithmicTradingBotModulesSnapshots = function(processIndex) {
/*
This module encapsulates the snapshots functionality.
*/
@@ -1,9 +1,9 @@
exports.newFoundationsBotModulesTradingEngine = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingEngine = function (processIndex) {
/*
We call the Trading Engine to the data structure that is needed in order to exevute the
trading protocol with the specific rules defined at the Trading System.
*/
const MODULE_NAME = 'Trading Engine'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -1,8 +1,7 @@
exports.newFoundationsBotModulesTradingEpisode = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingEpisode = function (processIndex) {
/*
This module packages all functions related to Episodes.
*/
const MODULE_NAME = 'Trading Episode'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingExecution = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingExecution = function (processIndex) {
/*
The Trading Execution modules manages the execution nodes and execution algoritms.
*/
@@ -16,7 +16,7 @@ exports.newFoundationsBotModulesTradingExecution = function (processIndex) {
let tradingSystem
let sessionParameters
let tradingOrdersModuleObject = TS.projects.foundations.botModules.tradingOrders.newFoundationsBotModulesTradingOrders(processIndex)
let tradingOrdersModuleObject = TS.projects.algorithmicTrading.botModules.tradingOrders.newAlgorithmicTradingBotModulesTradingOrders(processIndex)
return thisObject
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingOrders = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingOrders = function (processIndex) {
/*
The Trading Orders modules manages the execution of orders against the exchanges.
*/
@@ -16,8 +16,8 @@ exports.newFoundationsBotModulesTradingOrders = function (processIndex) {
let tradingSystem
let sessionParameters
let exchangeAPIModuleObject = TS.projects.foundations.botModules.exchangeAPI.newFoundationsBotModulesExchangeAPI(processIndex)
let announcementsModuleObject = TS.projects.foundations.botModules.announcements.newFoundationsBotModulesAnnouncements(processIndex)
let exchangeAPIModuleObject = TS.projects.algorithmicTrading.botModules.exchangeAPI.newAlgorithmicTradingBotModulesExchangeAPI(processIndex)
let announcementsModuleObject = TS.projects.socialBots.botModules.announcements.newSocialBotsBotModulesAnnouncements(processIndex)
return thisObject
@@ -843,7 +843,7 @@ exports.newFoundationsBotModulesTradingOrders = function (processIndex) {
let previousBaseAssetFeesPaid = tradingEngineOrder.orderBaseAsset.feesPaid.value
let previousQuotedAssetFeesPaid = tradingEngineOrder.orderQuotedAsset.feesPaid.value
let ordersSimulationsModuleObject = TS.projects.foundations.botModules.ordersSimulations.newFoundationsBotModulesOrdersSimulations(processIndex)
let ordersSimulationsModuleObject = TS.projects.algorithmicTrading.botModules.ordersSimulations.newAlgorithmicTradingBotModulesOrdersSimulations(processIndex)
ordersSimulationsModuleObject.initialize()
ordersSimulationsModuleObject.actualSizeSimulation(tradingEngineStage, tradingSystemOrder, tradingEngineOrder, applyFeePercentage)
@@ -874,7 +874,7 @@ exports.newFoundationsBotModulesTradingOrders = function (processIndex) {
let previousBaseAssetFeesPaid = tradingEngineOrder.orderBaseAsset.feesPaid.value
let previousQuotedAssetFeesPaid = tradingEngineOrder.orderQuotedAsset.feesPaid.value
let ordersCalculationsModuleObject = TS.projects.foundations.botModules.ordersCalculations.newFoundationsBotModulesOrdersCalculations(processIndex)
let ordersCalculationsModuleObject = TS.projects.algorithmicTrading.botModules.ordersCalculations.newAlgorithmicTradingBotModulesOrdersCalculations(processIndex)
ordersCalculationsModuleObject.initialize()
await ordersCalculationsModuleObject.actualSizeCalculation(tradingEngineStage, tradingSystemOrder, tradingEngineOrder, order, applyFeePercentage)
@@ -1262,7 +1262,7 @@ exports.newFoundationsBotModulesTradingOrders = function (processIndex) {
tradingSystem.highlights.push(executionAlgorithm.id)
tradingSystem.highlights.push(executionNode.id)
announcementsModuleObject.makeAnnoucements(event)
announcementsModuleObject.makeAnnouncements(event)
return situation.name // if the event is triggered, we return the name of the situation that passed
}
}
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingOutput = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingOutput = function (processIndex) {
/*
This module will load if necesary all the data outputs so that they can be appended with new
records if needed. After running the simulation, it will save all the data outputs.
@@ -29,9 +29,9 @@ exports.newFoundationsBotModulesTradingOutput = function (processIndex) {
}
/* Preparing everything for the Simulation */
let tradingSimulationModuleObject = TS.projects.foundations.botModules.tradingSimulation.newFoundationsBotModulesTradingSimulation(processIndex)
let tradingSimulationModuleObject = TS.projects.algorithmicTrading.botModules.tradingSimulation.newAlgorithmicTradingBotModulesTradingSimulation(processIndex)
let outputDatasets = TS.projects.foundations.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processOutput, 'Output Dataset')
let outputDatasets = TS.projects.visualScripting.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processOutput, 'Output Dataset')
let outputDatasetsMap = new Map()
await TS.projects.foundations.functionLibraries.outputManagementFunctions.readFiles(
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingPosition = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingPosition = function (processIndex) {
/*
This module packages all functions related to Positions.
*/
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingProcess = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingProcess = function (processIndex) {
/*
This Module will load all the process data dependencies from files and send them downstream.
After execution, will save the time range and status report of the process.
@@ -16,8 +16,8 @@
let dataFiles = new Map()
let multiTimeFrameDataFiles = new Map()
TS.projects.foundations.globals.processModuleObjects.MODULE_OBJECTS_BY_PROCESS_INDEX_MAP.get(processIndex).TRADING_ENGINE_MODULE_OBJECT = TS.projects.foundations.botModules.tradingEngine.newFoundationsBotModulesTradingEngine(processIndex)
let tradingOutputModuleObject = TS.projects.foundations.botModules.tradingOutput.newFoundationsBotModulesTradingOutput(processIndex)
TS.projects.foundations.globals.processModuleObjects.MODULE_OBJECTS_BY_PROCESS_INDEX_MAP.get(processIndex).TRADING_ENGINE_MODULE_OBJECT = TS.projects.algorithmicTrading.botModules.tradingEngine.newAlgorithmicTradingBotModulesTradingEngine(processIndex)
let tradingOutputModuleObject = TS.projects.algorithmicTrading.botModules.tradingOutput.newAlgorithmicTradingBotModulesTradingOutput(processIndex)
let currentTimeFrame = {}
@@ -290,7 +290,7 @@
}
}
catch (err) {
/* An unhandled exception occured. in this case we return Fail and log the stack. */
/* An unhandled exception occurred. in this case we return Fail and log the stack. */
if (err.stack) {
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).UNEXPECTED_ERROR = err
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
@@ -307,7 +307,7 @@
return
}
/* Some other handled exception occured. We return Fail and move on. */
/* Some other handled exception occurred. We return Fail and move on. */
if (err.result !== TS.projects.foundations.globals.standardResponses.DEFAULT_OK_RESPONSE.result) {
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).UNEXPECTED_ERROR = err
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME,
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingRecords = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingRecords = function (processIndex) {
/*
This module facilitates the appending of records to the output of the process.
*/
@@ -37,7 +37,7 @@ exports.newFoundationsBotModulesTradingRecords = function (processIndex) {
we have a pointer to the node that have the information we need to extract.
Later, based on the product record definition we will extract each individual value.
*/
let outputDatasets = TS.projects.foundations.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processOutput, 'Output Dataset')
let outputDatasets = TS.projects.visualScripting.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processOutput, 'Output Dataset')
for (let i = 0; i < outputDatasets.length; i++) {
let outputDatasetNode = outputDatasets[i]
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingSimulation = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingSimulation = function (processIndex) {
/*
This Module represents the trading simulacion. Escentially a loop through a set of candles and
the execution at each loop cycle of the Trading System Protocol.
@@ -34,13 +34,13 @@ exports.newFoundationsBotModulesTradingSimulation = function (processIndex) {
'[INFO] runSimulation -> finalDatetime = ' + sessionParameters.timeRange.config.finalDatetime)
/* These are the Modules we will need to run the Simulation */
let tradingRecordsModuleObject = TS.projects.foundations.botModules.tradingRecords.newFoundationsBotModulesTradingRecords(processIndex)
let tradingRecordsModuleObject = TS.projects.algorithmicTrading.botModules.tradingRecords.newAlgorithmicTradingBotModulesTradingRecords(processIndex)
tradingRecordsModuleObject.initialize(outputDatasetsMap)
let tradingSystemModuleObject = TS.projects.foundations.botModules.tradingSystem.newFoundationsBotModulesTradingSystem(processIndex)
let tradingSystemModuleObject = TS.projects.algorithmicTrading.botModules.tradingSystem.newAlgorithmicTradingBotModulesTradingSystem(processIndex)
tradingSystemModuleObject.initialize()
let tradingEpisodeModuleObject = TS.projects.foundations.botModules.tradingEpisode.newFoundationsBotModulesTradingEpisode(processIndex)
let tradingEpisodeModuleObject = TS.projects.algorithmicTrading.botModules.tradingEpisode.newAlgorithmicTradingBotModulesTradingEpisode(processIndex)
tradingEpisodeModuleObject.initialize()
/* Setting up the candles array: The whole simulation is based on the array of candles at the time-frame defined at the session parameters. */
@@ -372,8 +372,8 @@ exports.newFoundationsBotModulesTradingSimulation = function (processIndex) {
}
function positionChart(chart) {
let dataDependencies = TS.projects.foundations.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processDependencies, 'Data Dependency')
dataDependencies = TS.projects.foundations.utilities.nodeFunctions.filterOutNodeWihtoutReferenceParentFromNodeArray(dataDependencies)
let dataDependencies = TS.projects.visualScripting.utilities.nodeFunctions.nodeBranchToArray(TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.processDependencies, 'Data Dependency')
dataDependencies = TS.projects.visualScripting.utilities.nodeFunctions.filterOutNodeWihtoutReferenceParentFromNodeArray(dataDependencies)
/* Finding the Current Element on Daily Files */
if (TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).TRADING_PROCESSING_DAILY_FILES) {
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingStages = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingStages = function (processIndex) {
/*
This module packages all functions related to Stages.
*/
@@ -21,12 +21,12 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
finalize: finalize
}
let tradingStrategyModuleObject = TS.projects.foundations.botModules.tradingStrategy.newFoundationsBotModulesTradingStrategy(processIndex)
let tradingPositionModuleObject = TS.projects.foundations.botModules.tradingPosition.newFoundationsBotModulesTradingPosition(processIndex)
let tradingExecutionModuleObject = TS.projects.foundations.botModules.tradingExecution.newFoundationsBotModulesTradingExecution(processIndex)
let announcementsModuleObject = TS.projects.foundations.botModules.announcements.newFoundationsBotModulesAnnouncements(processIndex)
let snapshotsModuleObject = TS.projects.foundations.botModules.snapshots.newFoundationsBotModulesSnapshots(processIndex)
let tradingEpisodeModuleObject = TS.projects.foundations.botModules.tradingEpisode.newFoundationsBotModulesTradingEpisode(processIndex)
let tradingStrategyModuleObject = TS.projects.algorithmicTrading.botModules.tradingStrategy.newAlgorithmicTradingBotModulesTradingStrategy(processIndex)
let tradingPositionModuleObject = TS.projects.algorithmicTrading.botModules.tradingPosition.newAlgorithmicTradingBotModulesTradingPosition(processIndex)
let tradingExecutionModuleObject = TS.projects.algorithmicTrading.botModules.tradingExecution.newAlgorithmicTradingBotModulesTradingExecution(processIndex)
let announcementsModuleObject = TS.projects.socialBots.botModules.announcements.newSocialBotsBotModulesAnnouncements(processIndex)
let snapshotsModuleObject = TS.projects.algorithmicTrading.botModules.snapshots.newAlgorithmicTradingBotModulesSnapshots(processIndex)
let tradingEpisodeModuleObject = TS.projects.algorithmicTrading.botModules.tradingEpisode.newAlgorithmicTradingBotModulesTradingEpisode(processIndex)
let tradingEngine
let tradingSystem
@@ -147,8 +147,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
/* Initialize this */
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOn.value = 1
announcementsModuleObject.makeAnnoucements(triggerStage.triggerOn)
announcementsModuleObject.makeAnnoucements(triggerStage)
announcementsModuleObject.makeAnnouncements(triggerStage.triggerOn)
if (TS.projects.foundations.globals.processConstants.CONSTANTS_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_NODE.type === 'Backtesting Session') {
if (sessionParameters.snapshots !== undefined) {
@@ -159,6 +158,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
}
changeStageStatus('Trigger Stage', 'Open')
}
}
}
@@ -194,7 +194,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingSystem.highlights.push(triggerStage.id)
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.triggerOff.value = 1
announcementsModuleObject.makeAnnoucements(triggerStage.triggerOff)
announcementsModuleObject.makeAnnouncements(triggerStage.triggerOff)
changeStageStatus('Trigger Stage', 'Closed', 'Trigger Off Event')
tradingStrategyModuleObject.closeStrategy('Trigger Off')
}
@@ -233,8 +233,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingPositionModuleObject.openPosition(situation.name)
announcementsModuleObject.makeAnnoucements(triggerStage.takePosition)
announcementsModuleObject.makeAnnoucements(strategy.openStage)
announcementsModuleObject.makeAnnouncements(triggerStage.takePosition)
if (TS.projects.foundations.globals.processConstants.CONSTANTS_BY_PROCESS_INDEX_MAP.get(processIndex).SESSION_NODE.type === 'Backtesting Session') {
if (sessionParameters.snapshots !== undefined) {
@@ -436,7 +435,6 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
/* Now we switch to the Open status. */
changeStageStatus('Manage Stage', 'Open')
announcementsModuleObject.makeAnnoucements(manageStage)
}
}
@@ -487,7 +485,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingPositionModuleObject.applyStopLossFormula(tradingSystem.formulas, phase.formula.id)
if (tradingEngine.tradingCurrent.position.stopLoss.value !== previousValue) {
announcementsModuleObject.makeAnnoucements(phase)
announcementsModuleObject.makeAnnouncements(phase)
}
}
}
@@ -510,7 +508,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingPositionModuleObject.applyTakeProfitFormula(tradingSystem.formulas, phase.formula.id)
if (tradingEngine.tradingCurrent.position.takeProfit.value !== previousValue) {
announcementsModuleObject.makeAnnoucements(phase)
announcementsModuleObject.makeAnnouncements(phase)
}
}
}
@@ -591,7 +589,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingPositionModuleObject.updateStopLoss(tradingEngine.tradingCurrent.position.stopLoss.stopLossPhase.value + 1)
announcementsModuleObject.makeAnnoucements(nextPhaseEvent)
announcementsModuleObject.makeAnnouncements(nextPhaseEvent)
/* Reset this counter */
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.nextPhase.value = 1
@@ -642,7 +640,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
continue
}
announcementsModuleObject.makeAnnoucements(moveToPhaseEvent)
announcementsModuleObject.makeAnnouncements(moveToPhaseEvent)
/* Reset this counter */
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.moveToPhase.value = 1
@@ -698,7 +696,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingPositionModuleObject.updateTakeProfit(tradingEngine.tradingCurrent.position.takeProfit.takeProfitPhase.value + 1)
announcementsModuleObject.makeAnnoucements(nextPhaseEvent)
announcementsModuleObject.makeAnnouncements(nextPhaseEvent)
/* Reset this counter */
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.nextPhase.value = 1
@@ -749,7 +747,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
continue
}
announcementsModuleObject.makeAnnoucements(moveToPhaseEvent)
announcementsModuleObject.makeAnnouncements(moveToPhaseEvent)
/* Reset this counter */
tradingEngine.tradingCurrent.tradingEpisode.distanceToTradingEvent.moveToPhase.value = 1
@@ -762,54 +760,50 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
}
function checkStopLossOrTakeProfitWasHit() {
{
let strategy = tradingSystem.tradingStrategies[tradingEngine.tradingCurrent.strategy.index.value]
/*
Checking what happened since the last execution. We need to know if the Stop Loss
or our Take Profit were hit.
*/
let strategy = tradingSystem.tradingStrategies[tradingEngine.tradingCurrent.strategy.index.value]
/*
Checking what happened since the last execution. We need to know if the Stop Loss
or our Take Profit were hit.
*/
/* Stop Loss condition: Here we verify if the Stop Loss was hit or not. */
if (
(
tradingEngine.tradingCurrent.position.stopLoss.stopLossPosition.value === 'Above' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.max.value >= tradingEngine.tradingCurrent.position.stopLoss.value
) ||
(
tradingEngine.tradingCurrent.position.stopLoss.stopLossPosition.value === 'Below' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.min.value <= tradingEngine.tradingCurrent.position.stopLoss.value
)
) {
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] checkStopLossOrTakeProfitWasHit -> Stop Loss was hit.')
/* Stop Loss condition: Here we verify if the Stop Loss was hit or not. */
if (
(
tradingEngine.tradingCurrent.position.stopLoss.stopLossPosition.value === 'Above' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.max.value >= tradingEngine.tradingCurrent.position.stopLoss.value
) ||
(
tradingEngine.tradingCurrent.position.stopLoss.stopLossPosition.value === 'Below' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.min.value <= tradingEngine.tradingCurrent.position.stopLoss.value
)
) {
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] checkStopLossOrTakeProfitWasHit -> Stop Loss was hit.')
tradingPositionModuleObject.closingPosition('Stop Loss')
changeStageStatus('Close Stage', 'Opening')
changeStageStatus('Manage Stage', 'Closed', 'Stop Loss Hit')
announcementsModuleObject.makeAnnoucements(strategy.closeStage)
return
}
/* Take Profit condition: Here we verify if the Take Profit was hit or not. */
if (
(
tradingEngine.tradingCurrent.position.takeProfit.takeProfitPosition.value === 'Below' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.min.value <= tradingEngine.tradingCurrent.position.takeProfit.value
) ||
(
tradingEngine.tradingCurrent.position.takeProfit.takeProfitPosition.value === 'Above' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.max.value >= tradingEngine.tradingCurrent.position.takeProfit.value
)
) {
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] checkStopLossOrTakeProfitWasHit -> Take Profit was hit.')
tradingPositionModuleObject.closingPosition('Take Profit')
changeStageStatus('Close Stage', 'Opening')
changeStageStatus('Manage Stage', 'Closed', 'Take Profit Hit')
announcementsModuleObject.makeAnnoucements(strategy.closeStage)
return
}
tradingPositionModuleObject.closingPosition('Stop Loss')
changeStageStatus('Close Stage', 'Opening')
changeStageStatus('Manage Stage', 'Closed', 'Stop Loss Hit')
return
}
/* Take Profit condition: Here we verify if the Take Profit was hit or not. */
if (
(
tradingEngine.tradingCurrent.position.takeProfit.takeProfitPosition.value === 'Below' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.min.value <= tradingEngine.tradingCurrent.position.takeProfit.value
) ||
(
tradingEngine.tradingCurrent.position.takeProfit.takeProfitPosition.value === 'Above' &&
tradingEngine.tradingCurrent.tradingEpisode.candle.max.value >= tradingEngine.tradingCurrent.position.takeProfit.value
)
) {
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] checkStopLossOrTakeProfitWasHit -> Take Profit was hit.')
tradingPositionModuleObject.closingPosition('Take Profit')
changeStageStatus('Close Stage', 'Opening')
changeStageStatus('Manage Stage', 'Closed', 'Take Profit Hit')
return
}
return
}
}
}
@@ -1114,7 +1108,7 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
tradingSystem.highlights.push(closeStageEvent.id)
tradingSystem.highlights.push(stage.id)
announcementsModuleObject.makeAnnoucements(closeStageEvent)
announcementsModuleObject.makeAnnouncements(closeStageEvent)
return true
}
}
@@ -1148,10 +1142,12 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
if (stage.status.value === 'Open') {
openStage(stage)
checkUserDefinedCode(stageName, 'Open')
checkAnnounce(stageName, stage.status.value)
}
if (stage.status.value === 'Closed') {
checkUserDefinedCode(stageName, 'Closed')
closeStage(stage, stageName)
checkAnnounce(stageName, stage.status.value)
}
/*
@@ -1186,7 +1182,6 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
if (stageName === 'Close Stage') {
if (tradingEngine.tradingCurrent.position.status.value === 'Open') {
tradingPositionModuleObject.closingPosition('Close Stage Closed')
/* NOTE:TODO: Announcement May need added Here */
}
}
}
@@ -1271,33 +1266,41 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
/* checkUserDefinedCode(): Checks if User Defined Code exists and processes if applicable. */
function checkUserDefinedCode(stage, status, when) {
let tradingSystemStage = getTradingSystemStage(stage);
let tradingSystemStage = getTradingSystemStage(stage);
if (tradingSystemStage !== undefined &&
tradingSystemStage.userDefinedCode !== undefined) {
if (status === 'Running' && when !== tradingSystemStage.userDefinedCode.config.whileAtStageWhenToRun) { return; }
if (tradingSystemStage !== undefined &&
tradingSystemStage.userDefinedCode !== undefined) {
if (status === 'Running' && when !== tradingSystemStage.userDefinedCode.config.whileAtStageWhenToRun) { return; }
switch(status) {
case 'Open' : {
if (tradingSystemStage.userDefinedCode.config.runWhenEnteringStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
switch(status) {
case 'Open' : {
if (tradingSystemStage.userDefinedCode.config.runWhenEnteringStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
}
break;
}
case 'Running' : {
if (tradingSystemStage.userDefinedCode.config.runWhileAtStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
}
break;
}
case 'Closed' : {
if (tradingSystemStage.userDefinedCode.config.runWhenExitingStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
}
break;
}
}
break;
}
case 'Running' : {
if (tradingSystemStage.userDefinedCode.config.runWhileAtStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
}
break;
}
case 'Closed' : {
if (tradingSystemStage.userDefinedCode.config.runWhenExitingStage) {
tradingSystem.evalUserCode(tradingSystemStage, 'User Defined Code');
}
break;
}
}
}
}
// checkAnnounce(): Check if stage announcement should be made
function checkAnnounce(stage, status) {
let tradingSystemStage = getTradingSystemStage(stage);
if (status === 'Open' || status === 'Closed') {
announcementsModuleObject.makeAnnouncements(tradingSystemStage, status)
}
}
/* getTradingSystemStage(): takes stage name returns stage object. */
@@ -1321,4 +1324,4 @@ exports.newFoundationsBotModulesTradingStages = function (processIndex) {
}
}
}
}
}
@@ -1,8 +1,8 @@
exports.newFoundationsBotModulesTradingStrategy = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingStrategy = function (processIndex) {
/*
This module packages all functions related to Strategies.
*/
const MODULE_NAME = 'Trading Strategy'
let thisObject = {
mantain: mantain,
reset: reset,
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingSystem = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingSystem = function (processIndex) {
/*
The Trading System is the user defined set of rules compliant with the Trading Protocol that
defines the trading logic to be applied during each cycle of the Simulation.
@@ -26,7 +26,7 @@ exports.newFoundationsBotModulesTradingSystem = function (processIndex) {
let sessionParameters
let dynamicIndicators
let tradingStagesModuleObject = TS.projects.foundations.botModules.tradingStages.newFoundationsBotModulesTradingStages(processIndex)
let tradingStagesModuleObject = TS.projects.algorithmicTrading.botModules.tradingStages.newAlgorithmicTradingBotModulesTradingStages(processIndex)
let taskParameters = {
market: TS.projects.foundations.globals.taskConstants.TASK_NODE.parentNode.parentNode.parentNode.referenceParent.baseAsset.referenceParent.config.codeName +
@@ -348,13 +348,13 @@ exports.newFoundationsBotModulesTradingSystem = function (processIndex) {
}
if (errorMessage !== undefined) {
tradingSystem.addError([node.id, errorMessage, docs])
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[ERROR] evalCondition -> errorMessage = ' + errorMessage)
}
if (value !== undefined) {
tradingSystem.values.push([node.id, value])
}
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] evalCondition -> value = ' + value)
TS.projects.foundations.globals.loggerVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).BOT_MAIN_LOOP_LOGGER_MODULE_OBJECT.write(MODULE_NAME, '[INFO] evalCondition -> errorMessage = ' + errorMessage)
}
function evalFormula(node) {
@@ -1,8 +1,8 @@
exports.newFoundationsBotModulesSingleMarketTradingBot = function (processIndex) {
exports.newAlgorithmicTradingBotModulesSingleMarketTradingBot = function (processIndex) {
const MODULE_NAME = "Single Market Trading Bot";
let session = TS.projects.foundations.botModules.tradingSession.newFoundationsBotModulesTradingSession(processIndex)
let session = TS.projects.algorithmicTrading.botModules.tradingSession.newAlgorithmicTradingBotModulesTradingSession(processIndex)
let nextLoopTimeoutHandle;
let thisObject = {
@@ -282,7 +282,7 @@
"[INFO] run -> loop -> initializeDataDependencies -> onInizialized -> Execution finished well.")
switch (TS.projects.foundations.globals.taskConstants.TASK_NODE.bot.processes[processIndex].referenceParent.config.framework.name) {
case 'Low-Frequency-Trading-Process': {
processFramework = TS.projects.foundations.botModules.tradingProcess.newFoundationsBotModulesTradingProcess(processIndex);
processFramework = TS.projects.algorithmicTrading.botModules.tradingProcess.newAlgorithmicTradingBotModulesTradingProcess(processIndex);
startProcessFramework();
break;
}
@@ -1,4 +1,4 @@
exports.newFoundationsBotModulesTradingSession = function (processIndex) {
exports.newAlgorithmicTradingBotModulesTradingSession = function (processIndex) {
const MODULE_NAME = "Trading Session"
@@ -7,7 +7,7 @@
}
TS.projects.foundations.globals.processVariables.VARIABLES_BY_PROCESS_INDEX_MAP.get(processIndex).SOCIAL_BOTS_MODULE =
TS.projects.foundations.botModules.socialBots.newFoundationsBotModulesSocialBots(processIndex)
TS.projects.socialBots.botModules.socialBots.newSocialBotsBotModulesSocialBots(processIndex)
return thisObject;
@@ -0,0 +1,42 @@
function newAlgorithmicTradingActionSwitch() {
let thisObject = {
executeAction: executeAction,
initialize: initialize,
finalize: finalize
}
return thisObject
function finalize() {
}
function initialize() {
/* Nothing to initialize since a Function Library does not hold any state. */
}
async function executeAction(action) {
switch (action.name) {
case 'Run Trading Session':
{
UI.projects.algorithmicTrading.functionLibraries.tradingSessionFunctions.runSession(action.node, false, action.callBackFunction)
}
break
case 'Resume Trading Session':
{
UI.projects.algorithmicTrading.functionLibraries.tradingSessionFunctions.runSession(action.node, true, action.callBackFunction)
}
break
case 'Stop Trading Session':
{
UI.projects.algorithmicTrading.functionLibraries.tradingSessionFunctions.stopSession(action.node, action.callBackFunction)
}
break
default: {
console.log("[WARN] Action sent to Algorithmic-Trading Action Switch does not belong here. Verify at the App Schema file of the node that triggered this action that the actionProject is pointing to the right project. -> Action = " + action.name + " -> Action Node Name = " + action.node.name)
}
}
}
}
@@ -1,4 +1,4 @@
function newFoundationsFunctionLibraryTradingSessionFunctions() {
function newAlgorithmicTradingFunctionLibraryTradingSessionFunctions() {
let thisObject = {
syncronizeSessionWithBackEnd: syncronizeSessionWithBackEnd,
runSession: runSession,
@@ -42,6 +42,15 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
}
function runSession(node, resume, callBackFunction) {
if (UI.environment.DEMO_MODE === true) {
if (window.location.hostname !== 'localhost') {
node.payload.uiObject.setWarningMessage('Superalgos is running is DEMO MODE. This means that you can not RUN Sessions.', 5)
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
return
}
}
let validationsResult = validations(node)
if (validationsResult === undefined) {
/* If something fails at validations we just quit. */
@@ -110,7 +119,7 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
'Simulated Exchange Events->Simulated Partial Fill->Simulated Actual Rate->Simulated Fees Paid->Formula->' +
'User Defined Code->Javascript Code->'
let tradingSystem = UI.projects.foundations.functionLibraries.protocolNode.getProtocolNode(node.tradingSystemReference.payload.referenceParent, false, true, true, false, false, lightingPath)
let tradingSystem = UI.projects.visualScripting.functionLibraries.protocolNode.getProtocolNode(node.tradingSystemReference.payload.referenceParent, false, true, true, false, false, lightingPath)
lightingPath = '' +
'Trading Engine->' +
@@ -149,7 +158,7 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
'Index->Situation Name->Formula->Periods->' +
'User Defined Variables->User Defined Variable->'
let tradingEngine = UI.projects.foundations.functionLibraries.protocolNode.getProtocolNode(node.tradingEngineReference.payload.referenceParent, false, true, true, false, false, lightingPath)
let tradingEngine = UI.projects.visualScripting.functionLibraries.protocolNode.getProtocolNode(node.tradingEngineReference.payload.referenceParent, false, true, true, false, false, lightingPath)
lightingPath = '' +
'Backtesting Session->Paper Trading Session->Forward Testing Session->Live Trading Session->' +
@@ -159,13 +168,13 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
'Social Bot Command->Formula->' +
'Exchange Account Asset->Asset->'
let session = UI.projects.foundations.functionLibraries.protocolNode.getProtocolNode(node, false, true, true, false, false, lightingPath)
let session = UI.projects.visualScripting.functionLibraries.protocolNode.getProtocolNode(node, false, true, true, false, false, lightingPath)
let defaultExchange = UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(validationsResult.exchange.payload, 'codeName')
let defaultExchange = UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(validationsResult.exchange.payload, 'codeName')
let defaultMarket =
UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(validationsResult.market.baseAsset.payload.referenceParent.payload, 'codeName')
+ '-' +
UI.projects.foundations.utilities.nodeConfig.loadConfigProperty(validationsResult.market.quotedAsset.payload.referenceParent.payload, 'codeName')
UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(validationsResult.market.baseAsset.payload.referenceParent.payload, 'codeName')
+ '-' +
UI.projects.visualScripting.utilities.nodeConfig.loadConfigProperty(validationsResult.market.quotedAsset.payload.referenceParent.payload, 'codeName')
let dependencyFilter = UI.projects.foundations.functionLibraries.dependenciesFilter.createDependencyFilter(
defaultExchange,
@@ -195,6 +204,15 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
}
function stopSession(node, callBackFunction) {
if (UI.environment.DEMO_MODE === true) {
if (window.location.hostname !== 'localhost') {
node.payload.uiObject.setWarningMessage('Superalgos is running is DEMO MODE. This means that you can not STOP Sessions.', 5)
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
return
}
}
let validationsResult = validations(node)
if (validationsResult === undefined) {
/* If something fails at validations we just quit. */
@@ -266,7 +284,7 @@ function newFoundationsFunctionLibraryTradingSessionFunctions() {
return
}
result.lanNetworkNode = UI.projects.foundations.utilities.meshes.findNodeInNodeMesh(result.taskManager, 'LAN Network Node', undefined, true, false, true, false)
result.lanNetworkNode = UI.projects.visualScripting.utilities.meshes.findNodeInNodeMesh(result.taskManager, 'LAN Network Node', undefined, true, false, true, false)
if (node.tradingSystemReference === undefined) {
node.payload.uiObject.setErrorMessage('Session needs a child Trading System Reference.')
@@ -0,0 +1,238 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="96 11 512 512"
style="enable-background:new 96 11 512 512;"
xml:space="preserve"
sodipodi:docname="disable-saving-with-workspace.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\disable-saving-with-workspace.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100"><metadata
id="metadata33"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
id="defs31" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview29"
showgrid="false"
inkscape:zoom="0.83007813"
inkscape:cx="52.865353"
inkscape:cy="305.68259"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" />
<style
type="text/css"
id="style2">
.st0{fill:#FFD1A9;}
.st1{fill:none;stroke:#4ACFD9;stroke-width:26;stroke-linecap:round;stroke-miterlimit:10;}
.st2{fill:#9BAAAB;}
.st3{fill:#FD6A33;}
.st4{fill:#FF8C29;}
.st5{fill:#4ACFD9;}
.st6{fill:#0295AA;}
.st7{fill:#365558;}
</style>
<path
class="st0"
d="M96.1,171.9c0-7.9,6.5-14.3,14.3-14.3h81.1c7.9,0,14.3,6.5,14.3,14.3c0,0,0-0.8,0,9c0,9.9,3.5,17.5,17.5,17.5 c14,0,342.8,0,342.8,0c7.9,0,14.3,6.5,14.3,14.3v295.9c0,7.9-6.5,14.3-14.3,14.3H110.3c-7.9,0-14.3-6.5-14.3-14.3V171.9"
id="path4" />
<path
class="st1"
d="M343.9,420.5c20.9-31.3,49-71.2,43.7-111.6s-27.5-66.7-21-101.9"
id="path6" />
<circle
class="st2"
cx="366.7"
cy="206.9"
r="27.9"
id="circle8" />
<path
class="st3"
d="M384.9,86.3l-0.1-54.4c0-2.8,2.3-5.2,5.2-5.2h2.6c2.8,0,5.2,2.3,5.2,5.2v54.3c0,2.8-2.3,5.2-5.2,5.2H390 C387.2,91.4,384.9,89.1,384.9,86.3z"
id="path10" />
<path
class="st4"
d="M359.2,75.8V21.5c0-2.8,2.3-5.2,5.2-5.2h2.6c2.8,0,5.2,2.3,5.2,5.2v54.3c0,2.8-2.3,5.2-5.2,5.2h-2.6 C361.5,80.9,359.2,78.6,359.2,75.8z"
id="path12" />
<path
class="st3"
d="M342.4,85l-0.1-51.8c0-3.5-2.9-6.5-6.5-6.5l0,0c-3.5,0-6.5,2.9-6.5,6.5v51.7c0,3.5,2.9,6.5,6.5,6.5l0,0 C339.6,91.4,342.4,88.5,342.4,85z"
id="path14" />
<path
class="st5"
d="M414.7,206.1c12.7,0,23.1-10.4,23.1-23.1v-64.6c0-12.7-10.4-23.1-23.1-23.1h-49.8v110.8H414.7z"
id="path16" />
<path
class="st6"
d="M291.9,118.4V183c0,12.7,10.4,23.1,23.1,23.1l49.8,0l0-110.8H315C302.3,95.3,291.9,105.6,291.9,118.4z"
id="path18" />
<path
class="st6"
d="M398,106.4c6,0,11.1-5,11.1-11.1V86c0-6-5-11.1-11.1-11.1h-33.3v31.4L398,106.4z"
id="path20" />
<path
class="st7"
d="M320.5,86v9.3c0,6,5,11.1,11.1,11.1h33.3V75h-33.3C325.5,75,320.5,79.9,320.5,86z"
id="path22" />
<path
class="st4"
d="M564.9,523H109.2c-7.9,0-13.2-6.5-11.8-14.3l26.1-147.9c1.4-7.9,8.9-14.3,16.8-14.3H596 c7.9,0,13.2,6.5,11.8,14.3l-26.1,147.9C580.4,516.5,572.8,523,564.9,523z"
id="path24" />
<path
class="st7"
d="M123.3,505.4c-1.9,0-3.5-0.7-4.6-2c-1.1-1.4-1.5-3.3-1.2-5.4l1.3-6.9c1.8-5.4,5.6-9.5,8.2-9.5h434.8 c1.9,0,3.5,0.7,4.6,2c1.1,1.4,1.5,3.3,1.2,5.4l-1.3,6.9c-0.8,5.1-4.6,9.5-9.4,9.5H123.3z"
id="path26" />
<g
id="g938"><rect
x="-517.32117"
y="-7.1964717"
class="st1"
width="128"
height="128"
id="rect14"
style="fill:#f0353d" /><rect
x="-389.32117"
y="-7.1964717"
class="st2"
width="128"
height="128"
id="rect16"
style="fill:#fd6a33" /><rect
x="-261.32117"
y="-7.1964717"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" /><rect
x="-133.32117"
y="-7.1964717"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" /><rect
x="-517.32117"
y="120.80353"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" /><rect
x="-389.32117"
y="120.80353"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" /><rect
x="-261.32117"
y="120.80353"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" /><rect
x="-517.32117"
y="248.80353"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" /><rect
x="-389.32117"
y="248.80353"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" /><rect
x="-261.32117"
y="248.80353"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" /><rect
x="-133.32117"
y="248.80353"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" /><rect
x="-517.32117"
y="376.80353"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" /></g><g
id="g969"
transform="matrix(0.77038955,0,0,0.77038955,-261.71998,171.77067)"><path
id="rect948"
style="opacity:1;fill:#365558;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
d="m 706.00706,-16.708235 h 302.55714 c 20.2631,0.223428 36.757,16.39992772 61.4379,41.427977 35.2757,35.77189 40.8092,44.366126 41.005,64.415093 V 388.29176 c 0,24.93 -20.07,45 -45,45 H 706.00706 c -24.93,0 -45,-20.07 -45,-45 V 28.291765 c 0,-24.9300003 20.07,-45 45,-45 z"
sodipodi:nodetypes="scscssssss" /><rect
style="opacity:1;fill:#e6eaea;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect959"
width="349.36472"
height="210.82353"
x="711.60474"
y="207.36705" /><rect
style="opacity:1;fill:#0295aa;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect953"
width="260.21646"
height="161.43059"
x="747.74591"
y="-1.0470586"
rx="20"
ry="20" /><rect
style="opacity:1;fill:#e6eaea;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect963"
width="53.007057"
height="119.26588"
x="920.01886"
y="20.637648" /></g><g
id="g1017"
transform="translate(132.693,140.52896)"><rect
style="opacity:1;fill:#f0353d;fill-opacity:1;stroke-width:10.9366;stroke-linejoin:round"
id="rect991"
width="101.24419"
height="377.13632"
x="291.71393"
y="-248.67224"
rx="19.248959"
ry="25.844498"
transform="rotate(45)" /><rect
style="opacity:1;fill:#f0353d;fill-opacity:1;stroke-width:10.9366;stroke-linejoin:round"
id="rect991-3"
width="101.24419"
height="377.13632"
x="-110.72624"
y="-530.90424"
rx="19.248959"
ry="25.844498"
transform="rotate(135)" /></g></svg>

After

Width:  |  Height:  |  Size: 7.2 KiB

@@ -0,0 +1,222 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="Layer_1"
x="0px"
y="0px"
viewBox="96 11 512 512"
style="enable-background:new 96 11 512 512;"
xml:space="preserve"
sodipodi:docname="enable-saving-with-workspace.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\enable-saving-with-workspace.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100"><metadata
id="metadata33"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs31" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview29"
showgrid="false"
inkscape:zoom="0.83007813"
inkscape:cx="52.865353"
inkscape:cy="305.68259"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1"
inkscape:document-rotation="0" />
<style
type="text/css"
id="style2">
.st0{fill:#FFD1A9;}
.st1{fill:none;stroke:#4ACFD9;stroke-width:26;stroke-linecap:round;stroke-miterlimit:10;}
.st2{fill:#9BAAAB;}
.st3{fill:#FD6A33;}
.st4{fill:#FF8C29;}
.st5{fill:#4ACFD9;}
.st6{fill:#0295AA;}
.st7{fill:#365558;}
</style>
<path
class="st0"
d="M96.1,171.9c0-7.9,6.5-14.3,14.3-14.3h81.1c7.9,0,14.3,6.5,14.3,14.3c0,0,0-0.8,0,9c0,9.9,3.5,17.5,17.5,17.5 c14,0,342.8,0,342.8,0c7.9,0,14.3,6.5,14.3,14.3v295.9c0,7.9-6.5,14.3-14.3,14.3H110.3c-7.9,0-14.3-6.5-14.3-14.3V171.9"
id="path4" />
<path
class="st1"
d="M343.9,420.5c20.9-31.3,49-71.2,43.7-111.6s-27.5-66.7-21-101.9"
id="path6" />
<circle
class="st2"
cx="366.7"
cy="206.9"
r="27.9"
id="circle8" />
<path
class="st3"
d="M384.9,86.3l-0.1-54.4c0-2.8,2.3-5.2,5.2-5.2h2.6c2.8,0,5.2,2.3,5.2,5.2v54.3c0,2.8-2.3,5.2-5.2,5.2H390 C387.2,91.4,384.9,89.1,384.9,86.3z"
id="path10" />
<path
class="st4"
d="M359.2,75.8V21.5c0-2.8,2.3-5.2,5.2-5.2h2.6c2.8,0,5.2,2.3,5.2,5.2v54.3c0,2.8-2.3,5.2-5.2,5.2h-2.6 C361.5,80.9,359.2,78.6,359.2,75.8z"
id="path12" />
<path
class="st3"
d="M342.4,85l-0.1-51.8c0-3.5-2.9-6.5-6.5-6.5l0,0c-3.5,0-6.5,2.9-6.5,6.5v51.7c0,3.5,2.9,6.5,6.5,6.5l0,0 C339.6,91.4,342.4,88.5,342.4,85z"
id="path14" />
<path
class="st5"
d="M414.7,206.1c12.7,0,23.1-10.4,23.1-23.1v-64.6c0-12.7-10.4-23.1-23.1-23.1h-49.8v110.8H414.7z"
id="path16" />
<path
class="st6"
d="M291.9,118.4V183c0,12.7,10.4,23.1,23.1,23.1l49.8,0l0-110.8H315C302.3,95.3,291.9,105.6,291.9,118.4z"
id="path18" />
<path
class="st6"
d="M398,106.4c6,0,11.1-5,11.1-11.1V86c0-6-5-11.1-11.1-11.1h-33.3v31.4L398,106.4z"
id="path20" />
<path
class="st7"
d="M320.5,86v9.3c0,6,5,11.1,11.1,11.1h33.3V75h-33.3C325.5,75,320.5,79.9,320.5,86z"
id="path22" />
<path
class="st4"
d="M564.9,523H109.2c-7.9,0-13.2-6.5-11.8-14.3l26.1-147.9c1.4-7.9,8.9-14.3,16.8-14.3H596 c7.9,0,13.2,6.5,11.8,14.3l-26.1,147.9C580.4,516.5,572.8,523,564.9,523z"
id="path24" />
<path
class="st7"
d="M123.3,505.4c-1.9,0-3.5-0.7-4.6-2c-1.1-1.4-1.5-3.3-1.2-5.4l1.3-6.9c1.8-5.4,5.6-9.5,8.2-9.5h434.8 c1.9,0,3.5,0.7,4.6,2c1.1,1.4,1.5,3.3,1.2,5.4l-1.3,6.9c-0.8,5.1-4.6,9.5-9.4,9.5H123.3z"
id="path26" />
<g
id="g938"><rect
x="-517.32117"
y="-7.1964717"
class="st1"
width="128"
height="128"
id="rect14"
style="fill:#f0353d" /><rect
x="-389.32117"
y="-7.1964717"
class="st2"
width="128"
height="128"
id="rect16"
style="fill:#fd6a33" /><rect
x="-261.32117"
y="-7.1964717"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" /><rect
x="-133.32117"
y="-7.1964717"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" /><rect
x="-517.32117"
y="120.80353"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" /><rect
x="-389.32117"
y="120.80353"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" /><rect
x="-261.32117"
y="120.80353"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" /><rect
x="-517.32117"
y="248.80353"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" /><rect
x="-389.32117"
y="248.80353"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" /><rect
x="-261.32117"
y="248.80353"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" /><rect
x="-133.32117"
y="248.80353"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" /><rect
x="-517.32117"
y="376.80353"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" /></g><g
id="g969"
transform="matrix(0.77038955,0,0,0.77038955,-261.71998,171.77067)"><path
id="rect948"
style="opacity:1;fill:#365558;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
d="m 706.00706,-16.708235 h 302.55714 c 20.2631,0.223428 36.757,16.39992772 61.4379,41.427977 35.2757,35.77189 40.8092,44.366126 41.005,64.415093 V 388.29176 c 0,24.93 -20.07,45 -45,45 H 706.00706 c -24.93,0 -45,-20.07 -45,-45 V 28.291765 c 0,-24.9300003 20.07,-45 45,-45 z"
sodipodi:nodetypes="scscssssss" /><rect
style="opacity:1;fill:#e6eaea;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect959"
width="349.36472"
height="210.82353"
x="711.60474"
y="207.36705" /><rect
style="opacity:1;fill:#0295aa;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect953"
width="260.21646"
height="161.43059"
x="747.74591"
y="-1.0470586"
rx="20"
ry="20" /><rect
style="opacity:1;fill:#e6eaea;fill-opacity:1;stroke-width:10;stroke-linejoin:round"
id="rect963"
width="53.007057"
height="119.26588"
x="920.01886"
y="20.637648" /></g><path
id="rect989"
style="opacity:1;fill:#bcd643;fill-opacity:1;stroke-width:8.16418;stroke-linejoin:round"
d="m 549.56859,244.40334 c -6.03717,-6.03718 -16.85955,-4.93428 -24.26623,2.4724 L 383.81719,388.36091 318.96535,323.50907 c -6.75261,-6.75261 -17.06733,-7.31168 -23.12622,-1.25278 l -36.09859,36.09858 c -6.05888,6.05888 -5.49982,16.37361 1.25279,23.12623 l 109.97976,109.97975 c 6.75261,6.75262 17.06735,7.31168 23.12623,1.25279 l 20.16509,-20.16509 15.93349,-15.93349 152.4219,-152.42189 c 7.40666,-7.40667 8.50846,-18.23016 2.47129,-24.26733 z" /></svg>

After

Width:  |  Height:  |  Size: 7.2 KiB

@@ -0,0 +1,253 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512 512"
fill="none"
version="1.1"
id="svg20"
sodipodi:docname="plugin-assets.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\plugins\plugin-assets.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<metadata
id="metadata26">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs24" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview22"
showgrid="false"
inkscape:zoom="0.84765625"
inkscape:cx="170.95892"
inkscape:cy="319.19258"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg20"
inkscape:document-rotation="0" />
<path
d="M465.597 170.772C451.908 135.12 429.079 103.698 399.402 79.6613C369.726 55.625 334.247 39.8209 296.529 33.8364L279.477 141.309C298.336 144.301 316.075 152.203 330.914 164.221C345.752 176.239 357.167 191.95 364.011 209.776L465.597 170.772Z"
fill="#0295AA"
id="path2" />
<path
d="M279.701 37.7552C242.02 31.7765 203.418 36.4398 168.244 51.2195C133.071 65.9993 102.723 90.3081 80.6219 121.407L164.111 180.741C175.162 165.192 190.335 153.037 207.922 145.647C225.509 138.258 244.81 135.926 263.651 138.915L279.701 37.7552Z"
fill="#F0353D"
id="path4" />
<path
d="M72.5959 143.961C55.063 168.632 43.6372 197.112 39.2582 227.06C34.8793 257.008 37.6722 287.567 47.4074 316.225L137.929 285.474C133.061 271.145 131.665 255.866 133.854 240.892C136.044 225.918 141.757 211.678 150.523 199.342L72.5959 143.961Z"
fill="#BCD643"
id="path6" />
<path
d="M56.1413 336.123C70.7195 379.037 99.5975 415.641 137.941 439.805C176.284 463.97 221.765 474.229 266.769 468.865L255.067 370.694C232.565 373.376 209.825 368.246 190.653 356.164C171.482 344.082 157.043 325.78 149.753 304.323L56.1413 336.123Z"
fill="#9BAAAB"
id="path8" />
<path
d="m 286.266,471.334 c 33.727,-4.02 66.091,-15.687 94.626,-34.111 28.534,-18.424 52.486,-43.119 70.03,-72.203 17.544,-29.084 28.217,-61.789 31.205,-95.623 2.988,-33.834 -1.787,-67.903 -13.962,-99.612 l -104.154,39.991 c 6.087,15.854 8.475,32.889 6.981,49.806 -1.494,16.917 -6.831,33.269 -15.603,47.811 -8.772,14.542 -20.748,26.89 -35.015,36.102 -14.267,9.212 -30.449,15.045 -47.313,17.055 z"
fill="#4acfd9"
id="path10" />
<path
d="M399.544 84.3453L436.296 38.9697L489.657 38.9697"
stroke="#0295AA"
stroke-width="14"
id="path12" />
<path
d="M422 21H493"
stroke="#F0353D"
stroke-width="12"
stroke-linecap="round"
stroke-linejoin="round"
id="path14" />
<g
id="g900"
transform="matrix(1.5816277,0,0,1.5816277,-148.89669,-145.76707)">
<circle
cx="256"
cy="256"
r="103"
fill="#E6EAEA"
id="circle16" />
<g
id="g1296-7-4"
transform="rotate(90,105.8491,238.03695)">
<g
id="g1027-55-3-7"
transform="rotate(45,1342.5065,-1213.1529)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-3-4"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027-3-0"
transform="rotate(45,1527.1072,-1095.7609)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58-6-6"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-6-1"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-2-1"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-5-5"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66-2-6"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68-5-4"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-4-4"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-3-1"
style="fill:#365558" />
</g>
</g>
</g>
<rect
x="-526.15668"
y="2.3594437"
class="st1"
width="128"
height="128"
id="rect14"
style="fill:#f0353d" />
<rect
x="-398.15668"
y="2.3594437"
class="st2"
width="128"
height="128"
id="rect16"
style="fill:#fd6a33" />
<rect
x="-270.15668"
y="2.3594437"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" />
<rect
x="-142.15668"
y="2.3594437"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" />
<rect
x="-526.15668"
y="130.35944"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" />
<rect
x="-398.15668"
y="130.35944"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" />
<rect
x="-270.15668"
y="130.35944"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" />
<rect
x="-526.15668"
y="258.35944"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" />
<rect
x="-398.15668"
y="258.35944"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" />
<rect
x="-270.15668"
y="258.35944"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" />
<rect
x="-142.15668"
y="258.35944"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" />
<rect
x="-526.15668"
y="386.35944"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" />
</svg>

After

Width:  |  Height:  |  Size: 9.7 KiB

@@ -0,0 +1,292 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512 512"
fill="none"
version="1.1"
id="svg32"
sodipodi:docname="plugin-features.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\plugins\plugin-features.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<metadata
id="metadata38">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs36" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview34"
showgrid="false"
inkscape:zoom="0.59938348"
inkscape:cx="134.79507"
inkscape:cy="281.7441"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg32" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M83.0332 13.9705C78.6149 13.9705 75.0332 17.5522 75.0332 21.9705V489.029C75.0332 493.448 78.6149 497.029 83.0332 497.029H333.813V396.17L435.999 390.862L436 390.862V21.9705C436 17.5522 432.419 13.9705 428 13.9705H83.0332Z"
fill="#0295AA"
id="path2" />
<path
d="M75 21.5469C75 17.3789 78.3889 14 82.5694 14H256V497H82.5694C78.3889 497 75 493.621 75 489.453V21.5469Z"
fill="#365558"
id="path4" />
<rect
x="186"
y="95"
width="225"
height="20"
fill="#CDD4D5"
id="rect6" />
<rect
x="186"
y="159"
width="225"
height="21"
fill="#CDD4D5"
id="rect8" />
<rect
x="186"
y="223"
width="225"
height="21"
fill="#CDD4D5"
id="rect10" />
<rect
x="186"
y="288"
width="225"
height="20"
fill="#CDD4D5"
id="rect12" />
<rect
x="186"
y="352"
width="225"
height="21"
fill="#CDD4D5"
id="rect14" />
<rect
x="186"
y="416"
width="180"
height="21"
fill="#CDD4D5"
id="rect16" />
<path
d="M331 396V497L334.987 495.662L434.671 395.35L436 390H337C333.686 390 331 392.686 331 396Z"
fill="#4ACFD9"
id="path18" />
<path
d="M108 103.313L127.28 118L173 72"
stroke="#BCD643"
stroke-width="16"
id="path20" />
<path
d="M108 167.313L127.28 182L173 136"
stroke="#BCD643"
stroke-width="16"
id="path22" />
<path
d="M108 231.313L127.28 246L173 200"
stroke="#BCD643"
stroke-width="16"
id="path24" />
<path
d="M108 296.313L127.28 311L173 265"
stroke="#BCD643"
stroke-width="16"
id="path26" />
<path
d="M108 360.313L127.28 375L173 329"
stroke="#BCD643"
stroke-width="16"
id="path28" />
<path
d="M108 424.313L127.28 439L173 393"
stroke="#BCD643"
stroke-width="16"
id="path30" />
<rect
x="-520.12756"
y="0.42218161"
class="st1"
width="128"
height="128"
id="rect14-3"
style="fill:#f0353d" />
<rect
x="-392.12759"
y="0.42218161"
class="st2"
width="128"
height="128"
id="rect16-8"
style="fill:#fd6a33" />
<rect
x="-264.12759"
y="0.42218161"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" />
<rect
x="-136.12758"
y="0.42218161"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" />
<rect
x="-520.12756"
y="128.42218"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" />
<rect
x="-392.12759"
y="128.42218"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" />
<rect
x="-264.12759"
y="128.42218"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" />
<rect
x="-520.12756"
y="256.42218"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" />
<rect
x="-392.12759"
y="256.42218"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" />
<rect
x="-264.12759"
y="256.42218"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" />
<rect
x="-136.12758"
y="256.42218"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" />
<rect
x="-520.12756"
y="384.42218"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" />
<g
id="g1027-55"
transform="matrix(0,1.4446065,-1.4446065,0,1175.199,-1668.2868)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027"
transform="matrix(0,1.4446065,-1.4446065,0,1413.4374,-1626.4793)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72"
style="fill:#365558" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.2 KiB

@@ -0,0 +1,416 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512 512"
fill="none"
version="1.1"
id="svg34"
sodipodi:docname="plugin-pools.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\plugin-pools.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<metadata
id="metadata40">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs38" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview36"
showgrid="false"
inkscape:zoom="1.6953125"
inkscape:cx="373.76832"
inkscape:cy="425.14139"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g1296"
inkscape:document-rotation="0" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M248 136.049C181.411 137.902 128 192.464 128 259.5C128 326.537 181.411 381.099 248 382.952V136.049Z"
fill="#0295AA"
id="path10" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M248 136.049C314.589 137.902 368 192.464 368 259.5C368 326.537 314.589 381.099 248 382.952V136.049Z"
fill="#4ACFD9"
id="path12" />
<circle
cx="250.5"
cy="259.5"
r="109.5"
stroke="#E6EAEA"
stroke-width="28"
id="circle22" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M217.979 365.319L199.04 349L154 401.272L172.939 417.591L217.979 365.319ZM381.979 147.319L363.04 131L318 183.272L336.939 199.591L381.979 147.319ZM341.968 310.693L324.146 328.225L364.975 369.73L382.797 352.198L341.968 310.693ZM97.1953 184.729L113.675 165.93L157.456 204.308L140.976 223.107L97.1953 184.729Z"
fill="#E6EAEA"
id="path32" />
<g
id="g1296"
transform="rotate(45,-118.91803,582.50429)">
<g
id="g1027-55"
transform="rotate(45,1342.5065,-1213.1529)"
style="fill:#365558;fill-opacity:1"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\g1027-55.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<path
id="circle58-7"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027"
transform="rotate(45,1527.1072,-1095.7609)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72"
style="fill:#365558" />
</g>
</g>
<g
id="g1296-7"
transform="rotate(-45,290.29339,-238.26136)">
<g
id="g1027-55-3"
transform="rotate(45,1342.5065,-1213.1529)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-3"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027-3"
transform="rotate(45,1527.1072,-1095.7609)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58-6"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-6"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-2"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-5"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66-2"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68-5"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-4"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-3"
style="fill:#365558" />
</g>
</g>
<g
id="g1296-7-4"
transform="rotate(-135,135.15061,134.65071)">
<g
id="g1027-55-3-7"
transform="rotate(45,1342.5065,-1213.1529)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-3-4"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027-3-0"
transform="rotate(45,1527.1072,-1095.7609)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58-6-6"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-6-1"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-2-1"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-5-5"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66-2-6"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68-5-4"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-4-4"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-3-1"
style="fill:#365558" />
</g>
</g>
<g
id="g1296-7-4-0"
transform="rotate(135,78.950537,254.04452)">
<g
id="g1027-55-3-7-3"
transform="rotate(45,1342.5065,-1213.1529)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-3-4-7"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027-3-0-1"
transform="rotate(45,1527.1072,-1095.7609)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58-6-6-3"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-6-1-9"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-2-1-2"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-5-5-9"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66-2-6-5"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68-5-4-6"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-4-4-7"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-3-1-5"
style="fill:#365558" />
</g>
</g>
<rect
x="-521.27258"
y="0.096461862"
class="st1"
width="128"
height="128"
id="rect14"
style="fill:#f0353d" />
<rect
x="-393.27258"
y="0.096461862"
class="st2"
width="128"
height="128"
id="rect16"
style="fill:#fd6a33" />
<rect
x="-265.27255"
y="0.096461862"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" />
<rect
x="-137.27257"
y="0.096461862"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" />
<rect
x="-521.27258"
y="128.09647"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" />
<rect
x="-393.27258"
y="128.09647"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" />
<rect
x="-265.27255"
y="128.09647"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" />
<rect
x="-521.27258"
y="256.0965"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" />
<rect
x="-393.27258"
y="256.0965"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" />
<rect
x="-265.27255"
y="256.0965"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" />
<rect
x="-137.27257"
y="256.0965"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" />
<rect
x="-521.27258"
y="384.0965"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" />
</svg>

After

Width:  |  Height:  |  Size: 21 KiB

@@ -0,0 +1,335 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512 512"
fill="none"
version="1.1"
id="svg50"
sodipodi:docname="plugin-positions.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\plugins\plugin-positions.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<g
id="g1080">
<g
id="g1027-55-3"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1439.1625,-128.03235)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-5"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027-5"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1520.9666,-11.406506)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58-2"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-4"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-0"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-3"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66-8"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68-1"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-2"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-5"
style="fill:#365558" />
</g>
</g>
<metadata
id="metadata56">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs54" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview52"
showgrid="false"
inkscape:zoom="0.59938348"
inkscape:cx="-314.67389"
inkscape:cy="505.80392"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg50" />
<path
d="M331 235.04L330.998 235.471L331 256.154H181L181.002 235.471L181 235.04V231.162H181.076C182.868 186.08 215.726 150.154 256 150.154C296.274 150.154 329.132 186.08 330.924 231.162H331V235.04Z"
fill="#4ACFD9"
id="path8" />
<path
d="M474 319.272L473.999 319.634L474 337H348L348.001 319.634L348 319.272V316.016H348.064C349.569 278.164 377.17 248 411 248C444.83 248 472.431 278.164 473.936 316.016H474V319.272Z"
fill="#4ACFD9"
id="path10" />
<path
d="M150 386.858L149.999 387.146L150 401H50L50.0011 387.146L50 386.858V384.26H50.0508C51.2453 354.064 73.1507 330 100 330C126.849 330 148.755 354.064 149.949 384.26H150V386.858Z"
fill="#4ACFD9"
id="path12" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M253.765 149.764C214.522 151.032 182.834 186.656 181.076 231.156H181V235.054L181.002 235.488L181 256.278H253.765V149.764Z"
fill="#0295AA"
id="path14" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M409.123 247.424C376.159 248.489 349.541 278.413 348.064 315.794H348V319.068L348.001 319.432L348 336.896H409.123V247.424Z"
fill="#0295AA"
id="path16" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M98.5104 329.85C72.3483 330.695 51.2226 354.445 50.0508 384.111H50V386.71L50.0011 386.999L50 400.859H98.5104V329.85Z"
fill="#0295AA"
id="path18" />
<ellipse
cx="256"
cy="117.154"
rx="52"
ry="53"
fill="#FFD1A9"
id="ellipse20" />
<ellipse
cx="411"
cy="220.5"
rx="44"
ry="44.5"
fill="#FFD1A9"
id="ellipse22" />
<ellipse
cx="100"
cy="308.5"
rx="35"
ry="35.5"
fill="#FFD1A9"
id="ellipse24" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M210.042 141.745C228.775 136.513 254.094 119.319 260.262 100.815C275.29 118.269 287.085 126.474 305.748 132.726C307.429 127.59 308.338 122.105 308.338 116.408C308.338 87.4639 284.874 64 255.93 64C226.985 64 203.521 87.4639 203.521 116.408C203.521 125.598 205.887 134.235 210.042 141.745Z"
fill="#365558"
id="path26" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M372.395 240.688C388.131 236.293 409.4 221.85 414.58 206.306C427.204 220.968 437.111 227.86 452.788 233.111C454.2 228.798 454.964 224.191 454.964 219.406C454.964 195.093 435.254 175.383 410.941 175.383C386.628 175.383 366.918 195.093 366.918 219.406C366.918 227.125 368.905 234.38 372.395 240.688Z"
fill="#365558"
id="path28" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M69.36 324.503C81.8492 321.015 98.7286 309.552 102.84 297.216C112.859 308.853 120.722 314.323 133.165 318.49C134.285 315.067 134.891 311.41 134.891 307.613C134.891 288.316 119.249 272.674 99.9525 272.674C80.6563 272.674 65.0137 288.316 65.0137 307.613C65.0137 313.739 66.5903 319.497 69.36 324.503Z"
fill="#365558"
id="path30" />
<path
d="M245.875 185.154H262.125L267 170.154H241L245.875 185.154Z"
fill="#FD6A33"
id="path32" />
<path
d="M402.125 277H415.875L420 265H398L402.125 277Z"
fill="#FD6A33"
id="path34" />
<path
d="M93.1875 353H103.812L107 344H90L93.1875 353Z"
fill="#FD6A33"
id="path36" />
<path
d="M247.684 185.154H260.316L262 239.756L254 246.154L246 239.756L247.684 185.154Z"
fill="#FD6A33"
id="path38" />
<path
d="M404.368 277H414.632L416 322.65L409.5 328L403 322.65L404.368 277Z"
fill="#FD6A33"
id="path40" />
<path
d="M95.0526 353H102.947L104 389.699L99 394L94 389.699L95.0526 353Z"
fill="#FD6A33"
id="path42" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M253.766 246.004L254.199 246.346L262.428 239.849L260.696 184.409H262.428L267.626 168.816H253.766V246.004Z"
fill="#FF8C29"
id="path44" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M409.123 328.265L409.488 328.552L416.4 323.095L414.945 276.525H416.4L420.766 263.428H409.123V328.265Z"
fill="#FF8C29"
id="path46" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M98.5117 394.01L98.7997 394.237L104.286 389.906L103.131 352.946H104.286L107.751 342.551H98.5117V394.01Z"
fill="#FF8C29"
id="path48" />
<g
id="g1080-7"
transform="translate(153.08206,93.243036)">
<g
id="g1027-55-3-3"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1439.1625,-128.03235)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-5-2"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 l 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 v 10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 0.1264,0.13222 0.2544,0.26298 0.3839,0.39223 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 0.1322,-0.12646 0.263,-0.25444 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 28.8149,-28.81491 15.8565,-15.85653 -123.1378,-123.13781 -16.204,16.20231 z"
sodipodi:nodetypes="csccssssssccsscsscccccccsccccc" />
</g>
<g
id="g1027-5-7"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1520.9666,-11.406506)">
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-4-9"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-0-0"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-3-5"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1354.7502,659.67651 -36.6178,36.61779 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 50.8986,-50.89858 c -44.8808,-44.71921 -0.2541,0.25411 -44.8808,-44.71921 z"
id="path66-8-0"
style="fill:#4acfd9"
sodipodi:nodetypes="cssccc" />
<path
class="st4"
d="m 1399.5502,704.47651 -50.9178,50.91779 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 36.6178,-36.61779 c -44.8192,-44.98079 0,0 -44.9,-44.9 z"
id="path68-1-4"
style="fill:#0295aa"
sodipodi:nodetypes="cccscc" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70-2-1"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-5-7"
style="fill:#365558" />
</g>
</g>
<g
id="g1080-7-8"
transform="translate(-155.83361,151.82887)">
<g
id="g1027-55-3-3-6"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1439.1625,-128.03235)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7-5-2-5"
style="fill:#365558;fill-opacity:1"
d="m 1326.7507,518.58054 c -1.3982,1.71447 -1.7926,2.65721 -2.906,4.54395 v 0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 v 10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 0.1264,0.13222 0.2544,0.26298 0.3839,0.39223 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 0.1322,-0.12646 0.263,-0.25444 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 8.326,3.39258 21.839,-0.0801 30.5813,-1.91937 3.3784,-0.71076 6.6845,-1.81772 9.8385,-3.32517 z"
sodipodi:nodetypes="cccssssssccsscsscccccccscc" />
</g>
<g
id="g1027-5-7-1"
transform="matrix(-0.60161027,0.60161027,-0.60161027,-0.60161027,1520.9666,-11.406506)">
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60-4-9-4"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62-0-0-2"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64-3-5-3"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1310.2179,712.52595 c 0,5.14847 4.0062,8.26006 7.9145,12.16835 l 30.6,30.6 2.1269,-2.12694 c -40.6414,-40.64141 0,0 -40.6414,-40.64141 z"
id="path66-8-0-9"
style="fill:#4acfd9"
sodipodi:nodetypes="csccc" />
<path
class="st4"
d="m 1350.8593,753.16736 -2.2269,2.22694 30.6,30.6 c 3.454,3.36763 6.7845,6.29946 11.2262,6.7723 -39.5993,-39.59924 0,0 -39.5993,-39.59924 z"
id="path68-1-4-2"
style="fill:#0295aa"
sodipodi:nodetypes="ccccc" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 14.7269,-14.72694 c -26.949,-26.94909 0,0 -26.949,-26.94909 -0.9277,0.44591 -1.7921,1.03053 -2.5779,1.77603 z"
id="path70-2-1-8"
style="fill:#0295aa"
sodipodi:nodetypes="csccccc" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72-5-7-6"
style="fill:#365558" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 17 KiB

@@ -0,0 +1,246 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="512"
viewBox="0 0 512 512"
fill="none"
version="1.1"
id="svg12"
sodipodi:docname="plugin-user-profiles.svg"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
inkscape:export-filename="E:\Superalgos\Projects\Community-Plugins\Icons\plugin-user-profiles.png"
inkscape:export-xdpi="100"
inkscape:export-ydpi="100">
<metadata
id="metadata18">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs16" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1017"
id="namedview14"
showgrid="false"
inkscape:zoom="0.84765625"
inkscape:cx="318.72475"
inkscape:cy="236.36394"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g1296"
inkscape:document-rotation="0" />
<circle
cx="256"
cy="256"
r="237"
fill="#FD6A33"
id="circle2" />
<path
d="M391 374.955L390.997 375.732L391 413H121L121.003 375.732L121 374.955V367.967H121.137C124.362 286.734 183.507 222 256 222C328.493 222 387.638 286.734 390.863 367.967H391V374.955Z"
fill="#4ACFD9"
id="path4" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M252.136 221.172C181.498 223.454 124.457 287.579 121.293 367.68H121.156V374.697L121.159 375.477L121.156 412.899H252.136V221.172Z"
fill="#0295AA"
id="path6" />
<ellipse
cx="256"
cy="162.5"
rx="93"
ry="95.5"
fill="#FFD1A9"
id="ellipse8" />
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M173.433 206.736C207.154 197.318 252.729 166.369 263.83 133.061C290.881 164.48 312.112 179.249 345.707 190.502C348.733 181.258 350.369 171.385 350.369 161.131C350.369 109.031 308.133 66.7949 256.033 66.7949C203.933 66.7949 161.697 109.031 161.697 161.131C161.697 177.672 165.955 193.219 173.433 206.736Z"
fill="#365558"
id="path10" />
<rect
x="-552.9718"
y="-2.4061174"
class="st1"
width="128"
height="128"
id="rect14"
style="fill:#f0353d" />
<rect
x="-424.9718"
y="-2.4061174"
class="st2"
width="128"
height="128"
id="rect16"
style="fill:#fd6a33" />
<rect
x="-296.97183"
y="-2.4061174"
class="st3"
width="128"
height="128"
id="rect18"
style="fill:#ff8c29" />
<rect
x="-168.97182"
y="-2.4061174"
class="st4"
width="128"
height="128"
id="rect20"
style="fill:#ffd1a9" />
<rect
x="-552.9718"
y="125.59388"
class="st5"
width="128"
height="128"
id="rect22"
style="fill:#365558" />
<rect
x="-424.9718"
y="125.59388"
class="st6"
width="128"
height="128"
id="rect24"
style="fill:#0295aa" />
<rect
x="-296.97183"
y="125.59388"
class="st7"
width="128"
height="128"
id="rect26"
style="fill:#4acfd9" />
<rect
x="-552.9718"
y="253.59389"
class="st8"
width="128"
height="128"
id="rect28"
style="fill:#9baaab" />
<rect
x="-424.9718"
y="253.59389"
class="st9"
width="128"
height="128"
id="rect30"
style="fill:#cdd4d5" />
<rect
x="-296.97183"
y="253.59389"
class="st10"
width="128"
height="128"
id="rect32"
style="fill:#e6eaea" />
<rect
x="-168.97182"
y="253.59389"
class="st11"
width="128"
height="128"
id="rect34"
style="fill:#ffffff" />
<rect
x="-552.9718"
y="381.59387"
class="st12"
width="128"
height="128"
id="rect36"
style="fill:#bcd643" />
<g
id="g1027-5"
transform="rotate(45,1459.6238,-250.95129)" />
<g
id="g1027-2"
transform="rotate(45,1236.3627,-21.540309)" />
<g
id="g1296"
transform="translate(225.32719,265.43779)">
<g
id="g1027-55"
transform="matrix(0.89392232,0.89392232,-0.89392232,0.89392232,-615.73464,-1669.3517)"
style="fill:#365558;fill-opacity:1">
<path
id="circle58-7"
style="fill:#365558;fill-opacity:1"
d="m 1330.6078,514.40305 c -1.0764,1.07643 -2.0733,2.18605 -2.9914,3.3118 -1.3982,1.71447 -2.6583,3.5229 -3.7717,5.40964 a 23.648492,23.648492 0 0 0 0,0.003 c -0.361,0.61183 -0.7146,1.2446 -1.0565,1.8962 -1.3415,2.55691 -2.4152,5.22036 -3.2151,7.93838 -0.3984,1.35342 -0.73,2.72435 -0.9958,4.11144 -0.2643,1.37961 -0.4619,2.76429 -0.5925,4.16116 a 23.648492,23.648492 0 0 0 0,10e-4 c -0.5208,5.57632 0.03,11.20019 1.6393,16.59354 0.425,1.42424 1.072,2.79 1.6463,4.17634 -1.8589,4.32266 -2.7836,8.93989 -2.7387,13.57175 l -16.6225,16.62254 c -11.2091,11.20909 -11.2091,28.53252 0,39.74161 l 1.1242,1.12419 c -0.3644,7.56395 2.3288,15.22804 8.2767,21.17591 l 1.5993,1.59928 c 6.0511,6.05109 13.8772,8.72023 21.5681,8.23807 0.6425,0.82797 1.2088,1.6956 1.9487,2.47073 a 23.648492,23.648492 0 0 0 0.3839,0.39223 c 11.6538,11.65372 29.4298,11.37928 40.9487,0.38393 a 23.648492,23.648492 0 0 0 0.3922,-0.38393 l 17.523,-17.52299 c 3.4931,-0.30163 6.9254,-1.20699 10.1937,-2.60885 15.8893,6.47437 35.0578,3.55688 47.883,-9.26834 l 39.7996,-39.79961 c 16.9306,-16.93061 16.8035,-45.03795 0,-61.84147 l -2.2815,-2.28152 c 1.2971,-4.36536 2.2067,-8.84004 2.2069,-13.39636 5e-4,-25.05276 -22.7943,-47.84755 -47.8471,-47.8471 a 23.648492,23.648492 0 0 0 0,-0.001 c -4.5026,4.1e-4 -8.9262,0.88989 -13.2445,2.15723 l -0.032,-0.0318 a 23.648492,23.648492 0 0 0 -3.0632,-2.58259 c -0.1112,-0.0929 -0.2134,-0.1987 -0.3245,-0.2914 -0.2843,-0.23201 -0.5342,-0.41252 -0.8038,-0.62149 a 23.648492,23.648492 0 0 0 -0.9626,-0.74716 23.648492,23.648492 0 0 0 0,-10e-4 c -0.6061,-0.44565 -1.2123,-0.86572 -1.8092,-1.25954 v -0.003 c -1.2301,-0.81157 -2.4836,-1.54817 -3.7524,-2.21386 -5.1186,-2.68569 -10.6402,-4.28253 -16.2137,-4.80335 -1.4,-0.13079 -2.7972,-0.19395 -4.1819,-0.19059 -2.7935,0.007 -5.5793,0.28103 -8.3237,0.81898 -1.3653,0.26773 -2.7319,0.6035 -4.0838,1.0068 v -10e-4 c -4.0481,1.2076 -7.9667,3.01514 -11.5982,5.41655 -1.8143,1.19998 -3.5553,2.54797 -5.1984,4.03271 -0.5639,0.50983 -1.1017,1.02167 -1.6103,1.53022 z" />
</g>
<g
id="g1027"
transform="matrix(0.89392232,0.89392232,-0.89392232,0.89392232,-442.44234,-1790.9031)">
<circle
class="st12"
cx="1416.4324"
cy="685.39429"
r="24.200001"
id="circle58"
style="fill:#9baaab" />
<path
class="st7"
d="m 1329.2324,740.5943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path60"
style="fill:#fd6a33" />
<path
class="st10"
d="m 1338.6324,762.8943 c -1.7,-1.7 -4.6,-1.7 -6.3,0 l -33.5,33.5 c -1.7,1.7 -1.7,4.6 0,6.3 l 1.6,1.6 c 1.7,1.7 4.6,1.7 6.3,0 l 33.5,-33.5 c 1.8,-1.8 1.8,-4.5 0,-6.3 z"
id="path62"
style="fill:#ff8c29" />
<path
class="st7"
d="m 1356.2324,775.5943 -31.9,31.9 c -2.1,2.1 -2.1,5.7 0,7.9 2.1,2.1 5.7,2.1 7.9,0 l 31.9,-31.9 c 2.1,-2.1 2.1,-5.7 0,-7.9 -2.3,-2.3 -5.6,-2.3 -7.9,0 z"
id="path64"
style="fill:#fd6a33" />
<path
class="st6"
d="m 1386.3324,656.4943 c -7.9,-7.9 -20.6,-7.8 -28.4,0 l -39.8,39.8 c -7.9,7.9 -7.8,20.6 0,28.4 l 30.6,30.6 68.3,-68.3 -30.6,-30.6 z"
id="path66"
style="fill:#4acfd9" />
<path
class="st4"
d="m 1416.9324,687.0943 -68.3,68.3 30.6,30.6 c 8,7.8 20.7,7.9 28.6,0 l 39.8,-39.8 c 7.9,-7.9 7.8,-20.6 0,-28.4 z"
id="path68"
style="fill:#0295aa" />
<path
class="st4"
d="m 1321.3324,727.9943 -5.7,5.7 c -3.7,3.7 -3.7,9.8 0,13.7 l 20.5,20.5 19.4,-19.4 -20.4,-20.6 c -3.8,-3.6 -9.9,-3.6 -13.8,0.1 z"
id="path70"
style="fill:#0295aa" />
<path
class="st5"
d="m 1355.6324,748.3943 -19.3,19.4 20.5,20.5 c 3.7,3.7 9.8,3.7 13.5,0 l 5.7,-5.7 c 3.7,-3.7 3.7,-9.8 0,-13.7 z"
id="path72"
style="fill:#365558" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Loaded 100 of 1868 files, more files were not shown because too many files have changed in this diff. Show more