1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Compare commits

..

No commits in common. "master" and "legacy-simple-layout" have entirely different histories.

289 changed files with 1997 additions and 25274 deletions

4
.bowerrc Normal file
View file

@ -0,0 +1,4 @@
{
"directory": "bower_components",
"analytics": false
}

View file

@ -1,3 +0,0 @@
node_modules/
doc/
npm-debug.log

View file

@ -1,17 +1,34 @@
# EditorConfig is awesome: http://EditorConfig.org
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.js]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace=true
[*.js]
indent_style = space
indent_size = 2
[*.hbs]
insert_final_newline = false
indent_style = space
indent_size = 2
[*.css]
indent_style = space
indent_size = 2
[*.html]
indent_style = space
indent_size = 2
[*.{diff,md}]
trim_trailing_whitespace = false

9
.ember-cli Normal file
View file

@ -0,0 +1,9 @@
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false
}

28
.gitignore vendored
View file

@ -1,21 +1,19 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
# dependencies
/node_modules
# testing
/coverage
# production
/build
/bower_components
# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log
testem.log
*.request
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode/
*.code-workspace
package-lock.json
.eslintcache

View file

@ -1,65 +0,0 @@
variables:
GIT_SUBMODULE_STRATEGY: normal
DOCKER_IMAGE: ${CI_REGISTRY_IMAGE}
stages:
- build
- deploy
build:
stage: build
image:
name: docker
variables:
BRANDING: villasweb
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
script:
- docker build --build-arg REACT_APP_BRAND=${BRANDING} --tag ${DOCKER_IMAGE}:${DOCKER_TAG} .
tags:
- docker
build.slew:
variables:
BRANDING: slew
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
extends: build
build.opalrt:
variables:
BRANDING: opalrt
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
extends: build
deploy:
stage: deploy
variables:
BRANDING: villasweb
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
script:
- docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
tags:
- docker
dependencies:
- build
deploy.slew:
extends: deploy
variables:
BRANDING: slew
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
deploy.opalrt:
extends: deploy
variables:
BRANDING: opalrt
DOCKER_TAG: ${CI_COMMIT_BRANCH}-${BRANDING}
deploy.latest:
extends: deploy
variables:
DOCKER_TAG: latest
only:
refs:
- master

33
.jshintrc Normal file
View file

@ -0,0 +1,33 @@
{
"predef": [
"server",
"document",
"window",
"-Promise"
],
"browser": true,
"boss": true,
"curly": true,
"debug": false,
"devel": true,
"eqeqeq": true,
"evil": true,
"forin": false,
"immed": false,
"laxbreak": false,
"newcap": true,
"noarg": true,
"noempty": false,
"nonew": false,
"nomen": false,
"onevar": false,
"plusplus": false,
"regexp": false,
"undef": true,
"sub": true,
"strict": false,
"white": false,
"eqnull": true,
"esnext": true,
"unused": true
}

23
.travis.yml Normal file
View file

@ -0,0 +1,23 @@
---
language: node_js
node_js:
- "0.12"
sudo: false
cache:
directories:
- node_modules
before_install:
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
- "npm config set spin false"
- "npm install -g npm@^2"
install:
- npm install -g bower
- npm install
- bower install
script:
- npm test

3
.watchmanconfig Normal file
View file

@ -0,0 +1,3 @@
{
"ignore_dirs": ["tmp"]
}

View file

@ -1,232 +0,0 @@
# Contributing guidelines
Thanks for taking the time to contribute to VILLASweb, every help is appreciated!
> **Note:** This guidelines may seem much, but they just try to describe as good as possible to help with most common questions and problems. If you are unsure about anything feel free to **ask**.
#### Table of contents
[Quickstart](#quickstart)
* [How to report a bug or request a feature](#report-a-bug-or-request-a-feature)
* [Fix a bug](#fix-a-bug)
[Issues](#issues)
* [Report bugs](#report-bugs)
* [Request features](#request-features)
* [Labels](#labels)
[Development](#development)
* [Branches](#branches)
* [Style guidelines](#style-guidelines)
- [Code guidelines](#code-guidelines)
- [Comment guidelines](#comment-guidelines)
- [Git commit guidelines](#git-commit-guidelines)
* [Merge requests](#merge-requests)
* [Hotfix](#hotfix)
## Quickstart
### Report a bug or request a feature
Simply create a new issue in gitlab with an appropriate title and description. For more information see [report bugs](#report-bugs).
### Fix a bug
Look at the list of bugs in the issue list. Pick the bug you want to work on, create a new branch with gitlab on that issue and start working in that branch. For more information see [Development](#development).
## Issues
All issues are tracked by the gitlab issue tracker. Every issue created will be read!
### Report bugs
Every issue related to a bug must follow this rules:
- Add the `bug` label.
- Add the version, if known the exact commit.
- If existing, add log messages.
- If possible, add screenshots or animated GIFs of the bug.
### Request features
Every issue related to a feature or enhancement must follow this rules:
- Add the `feature` or `enhancement` label.
- If possible, mockup pictures or animated GIFs to help understand the request.
### Labels
There are two types of labels: `type` and `state`.
**Type labels** define what type the issue is about:
- **Bug:** The issue is related to an existing bug in the system.
- **Feature:** The issue is requesting a **new** feature.
- **Enhancement:** The issue is requesting change or improving an **existing** feature.
- **Question:** The issue is asking a question about the system.
- **Invalid:** The issue was declared invalid by a project administrator.
- **Duplicate:** The reason the issue was created is already in the system, thus the issue is marked duplicated by a project administrator.
- **Help wanted:** This label is optional to request help by others.
**State labels** define in which state of development the issue is:
- **Backlog:** The issue was accepted by the project administrators but has not been worked on.
- **Development:** The issue is in active development.
- **Testing:** The development of the issue is (mostly) finished and it is tested to make sure everything works.
- **Doc-and-review:** The development of the issue is finished but the documentation is still missing and the project administrator want to review it before merging it into main code.
## Development
Before starting to develop you want to have completed the [setup](README.md#quick-start) steps.
### Branches
This are the type of branches you will/might see in this project:
- **Master:** The *master* branch only contains **stable** release versions which must always be merged from the *develop* branch or *release-branches*. Each commit to this branch must contain a tag with at least the version.
- **Develop:** The *develop* branch contains the current development version. Commits to this branch are prohibited (except [hotfixes](#hotfix)). See [merge requests](#merge-requests) on how to merge your working state into *develop*.
- **Working branches:** *Working branches*, often also called *bug-fix/feature branches*, contain the active development state of features and bug-fixes. For each new feature or bug-fix you are working on, create a new *working branch*. To create new branch use gitlab's build-in feature to create a branch related to an issue.
- **Legacy branches:** These branches must not be touched. The store legacy code from early development state.
- **Release branches:** When preparing a *develop* version for release it is sometimes necessary to clean up before releasing it. Thus you first create a *release branch* of *develop*, do clean up on this branch and then release to *master*.
For more information on branches and git usage see [Git workflow tutorial](https://www.atlassian.com/git/tutorials/comparing-workflows#gitflow-workflow).
### Style guidelines
#### Code guidelines
- Use **camelcase** by default for everything with respect to upper-camelcase (e.g. class names start with an upper case letter).
- File names are all in lower case and hyphen separated (e.g. sample-file.js).
- End files with an empty line.
- Use [ES6](http://es6-features.org/) (ES2015) features especially `const`, arrow functions and ES6 classes.
- Use *self-explaining names* for variables, methods and classes. **Don't** shorten names like `let ArrStr` instead of `class ArrayString`.
- Don't use `var` unless it can't be avoided. For more information see [const](http://es6-features.org/#Constants) and [let](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/let).
- Use [ES6 arrow functions](http://es6-features.org/#ExpressionBodies) for callbacks. If only one variable is used, **don't** bracket it.
```(javascript)
const increased = arr.map(v => v + 1);
const indexed = arr.map((v, index) => v += index);
```
- Use [ES6 property shorthand](http://es6-features.org/#PropertyShorthand) whenever possible.
```(javascript)
// Use
const obj = { x, y };
// Instead of
const obj = { x: x, y: y };
```
- Name *handler methods* `handleEventName` and *handler properties* `onEventName`.
```(javascript)
<Component onClick={this.handleClick} />
```
- Use autobind for event handlers and callbacks.
```(javascript)
handleClick = e => {
}
```
- Don't import react component (or similar) itself. Use `React.Component`.
```(javascript)
import React from 'react';
class CustomComponent extends React.Component {
}
```
- Align and sort HTML properties properly.
```(HTML)
// Do
<Component className="component-class" width="100%" />
<Component
className="component-class"
width="100%"
/>
// Don't
<Component className="component-class"
width="100%"
>
<Component
className="component-class"
width="100%" />
```
#### Comment guidelines
- At the top of each file must be the following header:
```(javascript)
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
```
- By default use `//` for comments. You may use `/* */` for uncommenting a block of code.
- Comment as many as neccessary, but don't comment obvious code which is obviously self-explaining.
```(javascript)
// self-explaining, don't do this:
// increase index
index++;
```
#### Git commit guidelines
- The first line should be a summary of the whole commit. The following lines should explain in detail what changed.
```
Add dynamic rendering
Add queue for dynamic renderer
Change renderer to use queue for assets
Add render priority to asset properties
```
- Use present tense in comments (add, fix, update, remove etc.).
### Merge requests
When finished working on a bug-fix or feature in your branch, create a merge request to merge your code into the *develop* branch. Before creating the request, make sure your changes meet the following requirements:
- The *code*, *documentation* and *git commits* follow all [style guidelines](#style-guidelines).
- All CI (Continues integration) tests, if existing, must succeed.
- Add screenshots and animated GIFs when appropriated to show changes.
- If the *develop* branch has newer commits the *working branch* **may** be rebased to catch-up these commits.
### Hotfix
Sometimes it is neccessary to patch an important, security relevant or system breaking bug as fast as possible. In this case it is allowed to commit directly in *master/develop*, as long as this commit is only relevant for the bug fix. It **must** follow all rules for [merge requests](#merge-requests).

View file

@ -1,675 +0,0 @@
### GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
### Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom
to share and change all versions of a program--to make sure it remains
free software for all its users. We, the Free Software Foundation, use
the GNU General Public License for most of our software; it applies
also to any other work released this way by its authors. You can apply
it to your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you
have certain responsibilities if you distribute copies of the
software, or if you modify it: responsibilities to respect the freedom
of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the
manufacturer can do so. This is fundamentally incompatible with the
aim of protecting users' freedom to change the software. The
systematic pattern of such abuse occurs in the area of products for
individuals to use, which is precisely where it is most unacceptable.
Therefore, we have designed this version of the GPL to prohibit the
practice for those products. If such problems arise substantially in
other domains, we stand ready to extend this provision to those
domains in future versions of the GPL, as needed to protect the
freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish
to avoid the special danger that patents applied to a free program
could make it effectively proprietary. To prevent this, the GPL
assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
### TERMS AND CONDITIONS
#### 0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds
of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of
an exact copy. The resulting work is called a "modified version" of
the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user
through a computer network, with no transfer of a copy, is not
conveying.
An interactive user interface displays "Appropriate Legal Notices" to
the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
#### 1. Source Code.
The "source code" for a work means the preferred form of the work for
making modifications to it. "Object code" means any non-source form of
a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users can
regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same
work.
#### 2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey,
without conditions so long as your license otherwise remains in force.
You may convey covered works to others for the sole purpose of having
them make modifications exclusively for you, or provide you with
facilities for running those works, provided that you comply with the
terms of this License in conveying all material for which you do not
control copyright. Those thus making or running the covered works for
you must do so exclusively on your behalf, under your direction and
control, on terms that prohibit them from making any copies of your
copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes
it unnecessary.
#### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such
circumvention is effected by exercising rights under this License with
respect to the covered work, and you disclaim any intention to limit
operation or modification of the work as a means of enforcing, against
the work's users, your or third parties' legal rights to forbid
circumvention of technological measures.
#### 4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
#### 5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these
conditions:
- a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
- b) The work must carry prominent notices stating that it is
released under this License and any conditions added under
section 7. This requirement modifies the requirement in section 4
to "keep intact all notices".
- c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
- d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
#### 6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of
sections 4 and 5, provided that you also convey the machine-readable
Corresponding Source under the terms of this License, in one of these
ways:
- a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
- b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the Corresponding
Source from a network server at no charge.
- c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
- d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
- e) Convey the object code using peer-to-peer transmission,
provided you inform other peers where the object code and
Corresponding Source of the work are being offered to the general
public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal,
family, or household purposes, or (2) anything designed or sold for
incorporation into a dwelling. In determining whether a product is a
consumer product, doubtful cases shall be resolved in favor of
coverage. For a particular product received by a particular user,
"normally used" refers to a typical or common use of that class of
product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected
to use, the product. A product is a consumer product regardless of
whether the product has substantial commercial, industrial or
non-consumer uses, unless such uses represent the only significant
mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to
install and execute modified versions of a covered work in that User
Product from a modified version of its Corresponding Source. The
information must suffice to ensure that the continued functioning of
the modified object code is in no case prevented or interfered with
solely because modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or
updates for a work that has been modified or installed by the
recipient, or for the User Product in which it has been modified or
installed. Access to a network may be denied when the modification
itself materially and adversely affects the operation of the network
or violates the rules and protocols for communication across the
network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
#### 7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders
of that material) supplement the terms of this License with terms:
- a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
- b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
- c) Prohibiting misrepresentation of the origin of that material,
or requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
- d) Limiting the use for publicity purposes of names of licensors
or authors of the material; or
- e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
- f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions
of it) with contractual assumptions of liability to the recipient,
for any liability that these contractual assumptions directly
impose on those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions; the
above requirements apply either way.
#### 8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
#### 9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run
a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
#### 10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
#### 11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned
or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within the
scope of its coverage, prohibits the exercise of, or is conditioned on
the non-exercise of one or more of the rights that are specifically
granted under this License. You may not convey a covered work if you
are a party to an arrangement with a third party that is in the
business of distributing software, under which you make payment to the
third party based on the extent of your activity of conveying the
work, and under which the third party grants, to any of the parties
who would receive the covered work from you, a discriminatory patent
license (a) in connection with copies of the covered work conveyed by
you (or copies made from those copies), or (b) primarily for and in
connection with specific products or compilations that contain the
covered work, unless you entered into that arrangement, or that patent
license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
#### 12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under
this License and any other pertinent obligations, then as a
consequence you may not convey it at all. For example, if you agree to
terms that obligate you to collect a royalty for further conveying
from those to whom you convey the Program, the only way you could
satisfy both those terms and this License would be to refrain entirely
from conveying the Program.
#### 13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
#### 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions
of the GNU General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in
detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies that a certain numbered version of the GNU General Public
License "or any later version" applies to it, you have the option of
following the terms and conditions either of that numbered version or
of any later version published by the Free Software Foundation. If the
Program does not specify a version number of the GNU General Public
License, you may choose any version ever published by the Free
Software Foundation.
If the Program specifies that a proxy can decide which future versions
of the GNU General Public License can be used, that proxy's public
statement of acceptance of a version permanently authorizes you to
choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
#### 15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
CORRECTION.
#### 16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
#### 17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
### How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively state
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper
mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands \`show w' and \`show c' should show the
appropriate parts of the General Public License. Of course, your
program's commands might be different; for a GUI interface, you would
use an "about box".
You should also get your employer (if you work as a programmer) or
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. For more information on this, and how to apply and follow
the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your
program into proprietary programs. If your program is a subroutine
library, you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Lesser General Public License instead of this License. But first,
please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

View file

@ -1,37 +0,0 @@
#
# This file is part of VILLASweb.
#
# VILLASweb is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# VILLASweb is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
# ******************************************************************************
FROM node:16.5 AS builder
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# use changes to package.json to force Docker not to use the cache
# when we change our application's nodejs dependencies:
ADD package.json /usr/src/app
RUN npm install --force
# Install app dependencies
ARG REACT_APP_BRAND
COPY . /usr/src/app
# Production build, CI=false prevents warnings from being treated as errors
RUN CI=false npm run build
FROM nginx
COPY --from=builder /usr/src/app/build /usr/share/nginx/html

View file

@ -1,50 +1,53 @@
# <img src="doc/pictures/villas_web.png" width=40 /> VILLASweb
[![pipeline status](https://git.rwth-aachen.de/acs/public/villas/web/badges/master/pipeline.svg)](https://git.rwth-aachen.de/acs/public/villas/web/-/commits/master)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
# Lab-mashup
VILLASweb is a tool to configure real-time co-simulations and display simulation real-time data in the web browser.
This README outlines the details of collaborating on this Ember application.
A short introduction of this app could easily go here.
## Documentation
## Prerequisites
More details on the setup and usage of VILLASweb is available [in the VILLAS documentation](https://villas.fein-aachen.org/docs/web).
You will need the following things properly installed on your computer.
## Copyright
* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/) (with NPM)
* [Bower](http://bower.io/)
* [Ember CLI](http://www.ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)
2022, Institute for Automation of Complex Power Systems, EONERC
## Installation
## License
* `git clone <repository-url>` this repository
* change into the new directory
* `npm install`
* `bower install`
This project is released under the terms of the [GPL version 3](COPYING.md).
## Running / Development
We kindly ask all academic publications employing components of VILLASframework to cite one of the following papers:
* `ember server`
* Visit your app at [http://localhost:4200](http://localhost:4200).
- A. Monti et al., "[A Global Real-Time Superlab: Enabling High Penetration of Power Electronics in the Electric Grid](https://ieeexplore.ieee.org/document/8458285/)," in IEEE Power Electronics Magazine, vol. 5, no. 3, pp. 35-44, Sept. 2018.
- S. Vogel, M. Mirz, L. Razik and A. Monti, "[An open solution for next-generation real-time power system simulation](http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=8245739&isnumber=8244404)," 2017 IEEE Conference on Energy Internet and Energy System Integration (EI2), Beijing, 2017, pp. 1-6.
### Code Generators
```
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
Make use of the many generators for code, try `ember help generate` for more details
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
### Running Tests
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
```
* `ember test`
* `ember test --server`
For other licensing options please consult [Prof. Antonello Monti](mailto:amonti@eonerc.rwth-aachen.de).
### Building
## Contact
* `ember build` (development)
* `ember build --environment production` (production)
[![EONERC ACS Logo](doc/pictures/eonerc_logo.png)](http://www.acs.eonerc.rwth-aachen.de)
### Deploying
- Steffen Vogel <post@steffenvogel.de>
- Iris Köster <ikoester@eonerc.rwth-aachen.de>
Specify what it takes to deploy your app.
## Further Reading / Useful Links
* [ember.js](http://emberjs.com/)
* [ember-cli](http://www.ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
[Institute for Automation of Complex Power Systems (ACS)](http://www.acs.eonerc.rwth-aachen.de)
[EON Energy Research Center (EONERC)](http://www.eonerc.rwth-aachen.de)
[RWTH University Aachen, Germany](http://www.rwth-aachen.de)

View file

@ -0,0 +1,46 @@
import DS from 'ember-data';
import ENV from '../config/environment';
export default DS.RESTAdapter.extend({
host: ENV.APP.API_HOST,
namespace: 'api/ngsi10',
headers: {
Accept: 'application/json'
},
findAll: function(store, type, sinceToken) {
var requestBody = {
entities: [
{
type: 'ElectricalGridMonitoring',
isPattern: true,
id: 'S?_ElectricalGrid'
}
]
};
return this.ajax(this.host + '/' + this.namespace + '/queryContext', 'POST', { data: requestBody });
},
findRecord: function(store, type, id, snapshot) {
var requestBody = {
entities: [
{
type: 'ElectricalGridMonitoring',
isPattern: false,
id: id
}
]
};
return this.ajax(this.host + '/' + this.namespace + '/queryContext', 'POST', { data: requestBody });
},
query: function(store, type, query) {
return this.ajax(this.host + '/' + this.namespace + '/queryContext', 'POST', { data: query });
},
updateRecord: function(store, type, snapshot) {
}
});

18
app/app.js Normal file
View file

@ -0,0 +1,18 @@
import Ember from 'ember';
import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
import config from './config/environment';
var App;
Ember.MODEL_FACTORY_INJECTIONS = true;
App = Ember.Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
Resolver: Resolver
});
loadInitializers(App, config.modulePrefix);
export default App;

0
app/components/.gitkeep Normal file
View file

View file

@ -0,0 +1,39 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'div',
classNames: ['layout-page'],
currentProperty: null,
visibleProperty: function() {
var properties = this.get('entity.properties');
var prop = properties.objectAt(0);
this.setCurrentProperty(prop);
return prop;
}.property('entity'),
entityAvailable: function() {
if (this.get('entity')) {
var properties = this.get('entity.properties');
return (properties.get('length') > 0);
} else {
return false;
}
}.property('entity'),
setCurrentProperty: function(property) {
if (this.currentProperty) {
this.currentProperty.set('visible', false);
}
this.currentProperty = property;
this.currentProperty.set('visible', true);
},
actions: {
showPropertyValues(_prop) {
this.set('visibleProperty', _prop);
this.setCurrentProperty(_prop);
}
}
});

View file

@ -0,0 +1,117 @@
import Ember from 'ember';
import ENV from '../config/environment';
export default Ember.Component.extend({
tagName: 'div',
classNames: ['line-chart'],
attributeBindings: ['style'],
xaxisLength: 120,
height: '100%',
useLabel: true,
init: function() {
this._super();
this.addObserver('data', this.dataDidChange);
},
didInsertElement: function() {
this._drawPlot();
Ember.run.later(this, function() {
this._drawPlot();
}, ENV.APP.UPDATE_RATE);
},
dataDidChange: function() {
this._drawPlot();
},
style: function() {
return "height: " + this.get('height') + ";";
}.property('height'),
_drawPlot: function() {
var element = this.get('element');
if (element && element.id) {
if (this.data) {
var values = this.data.get('values');
if (values.length > 0) {
// get first and last time stamp for plot
var firstTimestamp = values[0][0];
var lastTimestamp = values[values.length - 1][0];
var diff = lastTimestamp - firstTimestamp;
var diffValue = this.xaxisLength * 1000;
if (diff > diffValue) {
firstTimestamp = lastTimestamp - diffValue;
} else {
lastTimestamp = +firstTimestamp + +diffValue;
}
// generate plot options
var options = {
series: {
lines: {
show: true,
lineWidth: 2
},
shadowSize: 0
},
xaxis: {
mode: 'time',
timeformat: '%M:%S',
min: firstTimestamp,
max: lastTimestamp,
axisLabel: 'time [min]',
axisLabelUseCanvas: true
},
yaxis: {
tickDecimals: 1,
axisLabel: this.data.get('type'),
axisLabelUseCanvas: true
}
}
// set y axis scale
if (this.data.get('minValue')) {
options.yaxis.min = this.data.get('minValue');
}
if (this.data.get('maxValue')) {
options.yaxis.max = this.data.get('maxValue');
}
// setup plot data
var plotData = {
data: values,
color: "rgb(51, 153, 255)"
}
if (this.get('useLabel')) {
plotData.label = this.data.get('name');
}
// draw plot
$.plot('#' + element.id, [plotData], options);
} else {
// display empty chart
$.plot('#' + element.id, [[]], {
xaxis: {
show: false
},
yaxis: {
show: false
}
});
}
}
}
// try again
Ember.run.later(this, function() {
this._drawPlot();
}, ENV.APP.UPDATE_RATE);
}
});

View file

@ -0,0 +1,12 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'table',
classNames: ['data-table'],
actions: {
propertyClicked(property) {
this.sendAction('showProperty', property);
}
}
});

View file

@ -0,0 +1,57 @@
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'div',
classNames: ['line-chart'],
attributeBindings: ['style'],
xaxisLength: 300,
height: '100%',
didInsertElement: function() {
this._drawPlot();
},
style: function() {
return "height: " + this.get('height') + ";";
}.property('height'),
_drawPlot: function() {
var element = this.get('element');
if (element && element.id) {
// generate plot options
var options = {
series: {
lines: {
show: true,
lineWidth: 2
},
shadowSize: 0
},
xaxis: {
mode: 'time',
timeformat: '%M:%S'
},
yaxis: {
tickDecimals: 3
}
}
// setup plot data
var plotData = [
{
label: 'Total consumption [MW]',
data: [[900.0, 4.61], [1800.0, 4.49], [2700.0, 4.51], [3600.0, 4.45], [4500.0, 4.90], [5400.0, 4.76], [6300.0, 4.77], [7200.0, 4.70], [8100.0, 4.73], [9000.0, 4.80], [9900.0, 4.89], [10800.0, 4.81], [11700.0, 4.65], [12600.0, 4.59], [13500.0, 4.65], [14400.0, 4.82], [15300.0, 4.62], [16200.0, 4.73], [17100.0, 4.62], [18000.0, 4.65], [18900.0, 4.77], [19800.0, 4.79], [20700.0, 5.57], [21600.0, 6.14], [22500.0, 8.33], [23400.0, 9.56], [24300.0, 10.94], [25200.0, 11.03], [26100.0, 12.34], [27000.0, 13.36], [27900.0, 14.13], [28800.0, 15.00], [29700.0, 15.61], [30600.0, 16.70], [31500.0, 17.21], [32400.0, 18.31], [33300.0, 17.85], [34200.0, 18.04], [35100.0, 17.72], [36000.0, 18.02], [36900.0, 17.64], [37800.0, 18.26], [38700.0, 18.30], [39600.0, 18.72], [40500.0, 18.60], [41400.0, 18.54], [42300.0, 18.31], [43200.0, 16.91], [44100.0, 13.61], [45000.0, 12.47], [45900.0, 15.83], [46800.0, 15.73], [47700.0, 16.38], [48600.0, 16.19], [49500.0, 17.06], [50400.0, 16.71], [51300.0, 15.89], [52200.0, 15.99], [53100.0, 15.50], [54000.0, 15.58], [54900.0, 15.66], [55800.0, 15.50], [56700.0, 15.63], [57600.0, 15.67], [58500.0, 15.79], [59400.0, 15.39], [60300.0, 14.85], [61200.0, 13.97], [62100.0, 13.31], [63000.0, 12.83], [63900.0, 12.53], [64800.0, 11.78], [65700.0, 11.56], [66600.0, 11.67], [67500.0, 10.97], [68400.0, 10.20], [69300.0, 9.59], [70200.0, 8.94], [71100.0, 8.97], [72000.0, 9.86], [72900.0, 10.25], [73800.0, 9.54], [74700.0, 10.04], [75600.0, 9.98], [76500.0, 9.44], [77400.0, 8.91], [78300.0, 8.39], [79200.0, 7.00], [80100.0, 5.07], [81000.0, 4.80], [81900.0, 4.67], [82800.0, 4.19], [83700.0, 4.16], [84600.0, 4.25], [85500.0, 4.40], [86400.0, 4.38]],
color: "rgb(51, 153, 255)"
},
{
label: 'Total PV generation [MW]',
data: [[900.0, 0.00], [1800.0, 0.00], [2700.0, 0.00], [3600.0, 0.00], [4500.0, 0.00], [5400.0, 0.00], [6300.0, 0.00], [7200.0, 0.00], [8100.0, 0.00], [9000.0, 0.00], [9900.0, 0.00], [10800.0, 0.00], [11700.0, 0.00], [12600.0, 0.00], [13500.0, 0.00], [14400.0, 0.00], [15300.0, 0.00], [16200.0, 0.00], [17100.0, 0.00], [18000.0, 0.00], [18900.0, 0.00], [19800.0, 0.00], [20700.0, 0.00], [21600.0, 0.00], [22500.0, 0.00], [23400.0, 0.00], [24300.0, 0.00], [25200.0, 0.15], [26100.0, 0.63], [27000.0, 0.63], [27900.0, 0.54], [28800.0, 0.27], [29700.0, 0.43], [30600.0, 0.46], [31500.0, 0.19], [32400.0, 0.35], [33300.0, 0.47], [34200.0, 0.44], [35100.0, 0.62], [36000.0, 0.61], [36900.0, 0.85], [37800.0, 1.48], [38700.0, 2.35], [39600.0, 1.08], [40500.0, 1.20], [41400.0, 2.71], [42300.0, 1.84], [43200.0, 1.83], [44100.0, 1.48], [45000.0, 4.24], [45900.0, 0.43], [46800.0, 0.43], [47700.0, 0.23], [48600.0, 0.19], [49500.0, 0.09], [50400.0, 0.02], [51300.0, 0.73], [52200.0, 0.86], [53100.0, 0.85], [54000.0, 0.85], [54900.0, 1.76], [55800.0, 2.37], [56700.0, 2.37], [57600.0, 2.13], [58500.0, 1.76], [59400.0, 1.68], [60300.0, 2.57], [61200.0, 2.37], [62100.0, 1.59], [63000.0, 2.52], [63900.0, 1.58], [64800.0, 1.06], [65700.0, 0.89], [66600.0, 0.73], [67500.0, 0.86], [68400.0, 1.54], [69300.0, 0.85], [70200.0, 0.65], [71100.0, 0.43], [72000.0, 0.23], [72900.0, 0.19], [73800.0, 0.09], [74700.0, 0.02], [75600.0, 0.01], [76500.0, 0.00], [77400.0, 0.00], [78300.0, 0.00], [79200.0, 0.00], [80100.0, 0.00], [81000.0, 0.00], [81900.0, 0.00], [82800.0, 0.00], [83700.0, 0.00], [84600.0, 0.00], [85500.0, 0.00], [86400.0, 0.00]],
color: "rgb(255, 91, 51)"
}
];
// draw plot
$.plot('#' + element.id, plotData, options);
}
}
});

0
app/controllers/.gitkeep Normal file
View file

View file

@ -0,0 +1,46 @@
import Ember from 'ember';
export default Ember.Controller.extend({
S1Entity: function() {
return this.model.findBy('id', 'S1_ElectricalGrid');
}.property('model.[]'),
S2Entity: function() {
return this.model.findBy('id', 'S2_ElectricalGrid');
}.property('model.[]'),
S1Freq575: function() {
var entity = this.model.findBy('id', 'S1_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Freq_575');
}
}.property('model.[]'),
S2Voltage203937: function() {
var entity = this.model.findBy('id', 'S2_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Voltage203937');
}
}.property('model.[]'),
S2Flow1551412_204871: function() {
var entity = this.model.findBy('id', 'S2_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'Flow1551412_204871');
}
}.property('model.[]'),
S3LoadProfile: function() {
var entity = this.model.findBy('id', 'S3_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'LoadProfile');
}
}.property('model.[]'),
S3GenProfile: function() {
var entity = this.model.findBy('id', 'S3_ElectricalGrid');
if (entity) {
return entity.get('properties').findBy('name', 'GenProfile');
}
}.property('model.[]')
});

0
app/helpers/.gitkeep Normal file
View file

25
app/index.html Normal file
View file

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>LabMashup</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{content-for 'head'}}
<link rel="stylesheet" href="assets/vendor.css">
<link rel="stylesheet" href="assets/lab-mashup.css">
{{content-for 'head-footer'}}
</head>
<body>
{{content-for 'body'}}
<script src="assets/vendor.js"></script>
<script src="assets/lab-mashup.js"></script>
{{content-for 'body-footer'}}
</body>
</html>

38
app/mirage/config.js Normal file
View file

@ -0,0 +1,38 @@
export default function() {
this.namespace = '/api/ngsi10';
this.post('/queryContext', function(db, request) {
return {
contextResponses: db.entities.map(attrs => ({
contextElement: {
type: attrs.type,
isPattern: false,
id: attrs.name,
attributes: attrs.properties.map(props => ({
name: props.name,
type: props.type,
value: props.value,
metadatas: [
{
name: 'timestamp',
type: 'date',
value: props.timestamp
}
]
}))
},
statusCode: {
code: 200,
reasonPhrase: 'OK'
}
}))
};
});
}
/*
You can optionally export a config that is only loaded during tests
export function testConfig() {
}
*/

View file

@ -0,0 +1,17 @@
import Mirage, {faker} from 'ember-cli-mirage';
export default Mirage.Factory.extend({
name(i) { return `S${i + 1}_ElectricalGrid`; },
type: 'ElectricalGridMonitoring',
properties: function(i) {
var data = [];
data.push({name: 'Current', value: faker.finance.amount(-100, 100, 4), type: 'A', timestamp: faker.date.past()});
data.push({name: 'Voltage', value: faker.finance.amount(-100, 100, 4), type: 'kV', timestamp: faker.date.past()});
data.push({name: 'Power', value: faker.finance.amount(-100, 100, 4), type: 'MW', timestamp: faker.date.past()});
return data;
}
});

View file

@ -0,0 +1,3 @@
export default function(server) {
server.createList('entity', 5);
}

0
app/models/.gitkeep Normal file
View file

7
app/models/category.js Normal file
View file

@ -0,0 +1,7 @@
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('string'),
properties: DS.hasMany('property'),
entity: DS.belongsTo('entity')
});

8
app/models/entity.js Normal file
View file

@ -0,0 +1,8 @@
import Ember from 'ember';
import DS from 'ember-data';
export default DS.Model.extend({
type: DS.attr('string'),
properties: DS.hasMany('property'),
categories: DS.hasMany('category')
});

14
app/models/property.js Normal file
View file

@ -0,0 +1,14 @@
import DS from 'ember-data';
export default DS.Model.extend({
name: DS.attr('string'),
type: DS.attr('string'),
values: DS.attr(),
timestamp: DS.attr('date'),
visible: DS.attr('boolean', { defaultValue: false }),
source: DS.attr('string'),
minValue: DS.attr('number'),
maxValue: DS.attr('number'),
entity: DS.belongsTo('entity'),
category: DS.belongsTo('category')
});

12
app/router.js Normal file
View file

@ -0,0 +1,12 @@
import Ember from 'ember';
import config from './config/environment';
var Router = Ember.Router.extend({
location: config.locationType
});
Router.map(function() {
this.route('lab-mashup', { path: '/' });
});
export default Router;

0
app/routes/.gitkeep Normal file
View file

59
app/routes/lab-mashup.js Normal file
View file

@ -0,0 +1,59 @@
import Ember from 'ember';
import ENV from '../config/environment';
export default Ember.Route.extend({
model() {
return this.store.query('entity', { entities: [
{
id: 'S1_ElectricalGrid',
isPattern: false,
type: ''
},
{
id: 'S2_ElectricalGrid',
isPattern: false,
type: ''
},
{
id: 'S3_ElectricalGrid',
isPattern: false,
type: ''
}
]});
//return this.store.findAll('entity');
},
afterModel() {
// first time call poll
Ember.run.later(this, function() {
this.refreshEntities();
}, ENV.APP.UPDATE_RATE);
},
refreshEntities: function() {
// fetch new data from server
this.store.query('entity', { entities: [
{
id: 'S1_ElectricalGrid',
isPattern: false,
type: ''
},
{
id: 'S2_ElectricalGrid',
isPattern: false,
type: ''
},
{
id: 'S3_ElectricalGrid',
isPattern: false,
type: ''
}
]});
//this.store.findAll('entity');
// reschedule refresh
Ember.run.later(this, function() {
this.refreshEntities();
}, ENV.APP.UPDATE_RATE);
}
});

View file

@ -0,0 +1,197 @@
import DS from 'ember-data';
export default DS.RESTSerializer.extend({
normalizeFindAllResponse: function(store, primaryModelClass, payload, id, requestType) {
var json = { data: [] };
var _this = this;
this._normalizePayload(payload, function(item) {
if (item.type === 'entity') {
json.data.push(item);
} else if (item.type === 'property') {
_this._updateProperty(item);
}
return true;
});
return json;
},
normalizeFindRecordResponse: function(store, primaryModelClass, payload, id, requestType) {
var json = { data: {} };
var _this = this;
this._normalizePayload(payload, function(item) {
if (item.type === 'entity') {
json.data = item;
} else if (item.type === 'property') {
_this._updateProperty(item);
}
return true;
});
return json;
},
normalizeQueryResponse: function(store, primaryModelClass, payload, id, requestType) {
var json = { data: [] };
var _this = this;
this._normalizePayload(payload, function(item) {
if (item.type === 'entity') {
json.data.push(item);
} else if (item.type === 'property') {
_this._updateProperty(item);
}
return true;
});
return json;
},
_normalizePayload: function(payload, handleItem) {
var propertyIndex = 0;
// check if payload has context responses
if (payload.contextResponses) {
payload.contextResponses.forEach(function(item) {
// check if item has context element
if (item.contextElement) {
// create new entity object
var entity = {
type: 'entity',
id: item.contextElement.id,
attributes: {
type: item.contextElement.type
},
relationships: {
properties: {
data: []
}
}
}
if (item.contextElement.attributes) {
var timestamp = 0;
item.contextElement.attributes.forEach(function(attribute) {
if (attribute.name === 'timestamp') {
timestamp = attribute.value;
}
});
item.contextElement.attributes.forEach(function(attribute) {
if (attribute.type !== 'category' && attribute.name !== 'timestamp') {
// find metadata
var source = "";
var minValue;
var maxValue;
if (attribute.metadatas) {
attribute.metadatas.forEach(function(metadata) {
if (metadata.name === 'timestamp') {
timestamp = Date.parse(metadata.value);
} else if (metadata.name === 'source') {
source = metadata.value;
} else if (metadata.name === 'min') {
minValue = metadata.value;
} else if (metadata.name === 'max') {
maxValue = metadata.value;
}
});
}
// create property
var property = {
type: 'property',
id: 'property_' + propertyIndex++,
attributes: {
name: attribute.name,
type: attribute.type,
timestamp: timestamp,
visible: false,
source: source,
minValue: minValue,
maxValue: maxValue,
values: []
},
relationships: {
entity: {
data: { type: 'entity', id: entity.id }
}
}
}
// add values
if (attribute.value) {
if ($.isArray(attribute.value)) {
attribute.value.forEach(function (value) {
// fix for second to millisecond
value[0] = +value[0] * 1000;
property.attributes.values.push(value);
});
} else {
property.attributes.values.push([(new Date()).getTime(), attribute.value]);
}
}
entity.relationships.properties.data.push({ type: 'property', id: property.id });
handleItem(property);
} else {
var category = {
type: 'category',
id: 'category_' + propertyIndex++,
attributes: {
name: attribute.name,
},
relationships: {
entity: {
data: { type: 'entity', id: entity.id }
}
}
}
handleItem(category);
}
});
}
// pass entity to caller function
if (handleItem(entity) == false) {
// if false returned the caller needs no more entites
return;
}
}
});
}
},
_updateProperty: function(item) {
// create record if needed, otherwise add to current one
var record = this.store.peekRecord('property', item.id);
if (record) {
if (record.timestamp !== item.attributes.timestamp) {
item.attributes.values.forEach(function (value) {
record.get('values').push(value);
});
while (record.get('values').length > 500) {
record.get('values').shift();
}
record.set('timestamp', item.attributes.timestamp);
}
} else {
// add new item
this.store.push(item);
}
}
});

254
app/styles/app.css Normal file
View file

@ -0,0 +1,254 @@
@import "normalize.css";
/*
* Skeleton
*/
.ember-application {
min-width: 1350px;
background: #6EA2B0;
color: #4d4d4d;
/*font: 16px 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
font: 1.6em Helvetica;
font-weight: 300;
font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
}
.hidden {
display: none;
}
.vertical-text {
transform: rotate(270deg);
transform-origin: left top 0;
}
/*
* Application
*/
header {
color: #103B7D;
background-color: #fff;
height: 80px;
border-bottom: 3px solid #bbb;
}
header #title {
font-size: 30px;
font-weight: 100;
text-align: left;
text-rendering: optimizeLegibility;
-webkit-text-rendering: optimizeLegiblity;
-moz-text-rendering: optimizeLegibitliy;
padding: 25px 0 20px 30px;
float: left;
}
header #logos {
height: 80px;
padding-top: 8px;
float: right;
}
.logo {
width: auto;
height: 60px;
padding-right: 30px;
float: left;
}
#rwth-logo {
margin-top: 15px;
height: 30px !important;
}
h1 {
font-size: 1.4em;
margin: 0;
padding: 0;
}
h2 {
font-size: 1.2em;
text-align: left;
}
h3 {
font-size: 0.9em;
}
h4 {
font-size: 0.8em;
}
p {
font-size: 0.75em;
}
/*
* Layout
*/
.grid {
width: 100%;
height: 100%;
margin: 0;
/*padding: 0;*/
padding-top: 10px;
padding-bottom: 10px;
border: 0;
border-collapse: collapse;
}
.grid td {
/*padding: 20px 10px 20px 10px;*/
padding: 10px;
}
.layout-page {
/*background-color: #f2f2f2;*/
background-color: #fff;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2),
0 9px 18px 0 rgba(0, 0, 0, 0.1);
width: 99%;
height: 99%;
padding: 20px;
overflow: hidden;
}
.layout-page h2 {
text-align: center;
margin: 0;
margin-bottom: 5px;
}
.layout-page h3 {
text-align: center;
}
.page-grid {
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
padding: 0;
margin: 0;
}
.page-grid tr {
padding: 0;
margin: 0;
}
.page-grid td {
padding: 0;
margin: 0;
}
/*
* Content
*/
.property-cell {
}
.chart-cell {
padding-left: 10px !important;
}
#simulation-page {
}
#consumer-page h2 {
margin: 10px 0 0 0 !important;
}
/*
* Components
*/
.line-chart {
width: 100%;
height: 90%;
}
.data-table {
/*background: #eee;*/
background: #fff;
margin: 0;
padding: 0;
border: 1px solid #999;
border-collapse: collapse;
vertical-align: top;
}
.data-table th {
background: #ddd;
border: 1px solid #999;
border-collapse: collapse;
padding: 2px 4px;
font-size: 0.7em;
}
.data-table td {
border: 1px solid #999;
border-collapse: collapse;
padding: 2px 4px;
font-size: 0.6em;
}
.label-source {
text-align: left;
margin: 0;
padding: 0;
float: left;
}
.label-type {
text-align: right;
margin: 0;
padding: 0;
float: right;
}
/*
* Flot charts
*/
.flot-tick-label {
font-size: 0.75em;
}

View file

@ -0,0 +1,14 @@
<section id="lapMashupApp">
<header>
<div id="title">
European Real-Time Integrated Co-Simulation Demo
</div>
<div id="logos">
<img src={{"assets/images/eu.png"}} class="logo" />
<img src={{"assets/images/rwth.png"}} class="logo" id="rwth-logo" />
<img src={{"assets/images/polito.png"}} class="logo" />
</div>
</header>
{{outlet}}
</section>

View file

View file

@ -0,0 +1,27 @@
<table class="page-grid">
<tr>
<td valign="top" class="property-cell" style="padding-top: 30px;">
{{#if entityAvailable}}
{{property-table model=entity showProperty="showPropertyValues"}}
{{/if}}
</td>
<td valign="top" width="100%" height="100%" class="chart-cell">
<h1 style="text-align: center">{{entityName}}</h1>
{{#if entityAvailable}}
<p style="float: left; margin-top: 185px; margin-left: -8px;" class="vertical-text">[{{visibleProperty.type}}]</p>
<div style="padding-left: 10px">
{{line-chart data=visibleProperty height="350px"}}
</div>
<p style="float: right">[min]</p>
<!-- {{#if visibleProperty}}
<h4 class="label-source">Source: {{visibleProperty.source}}</h4>
{{/if}} -->
{{else}}
<h3>Data not available</h3>
{{/if}}
</td>
</tr>
</table>

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,16 @@
<tr>
<th>Attributes</th>
</tr>
{{#each model.properties as |property|}}
<tr>
<td>
<a href="#" {{action "propertyClicked" property}}>
{{#if property.visible}}
<strong>{{property.name}}</strong>
{{else}}
{{property.name}}
{{/if}}
</a>
</td>
</tr>
{{/each}}

View file

@ -0,0 +1 @@
{{yield}}

View file

@ -0,0 +1,49 @@
<section id="main">
<table class="grid">
<tr style="height: 50%">
<td colspan="2" style="padding-top: 20px; padding-right: 5px;">
<div class="layout-page" id="simulation-page">
<img src={{"assets/images/ts_ds_grid_withsimulators_web.png"}} width="100%" />
</div>
</td>
<td width="33%" style="padding-top: 20px;">
<div class="layout-page">
<h1>Control Center</h1>
<h2>Voltage203937</h2>
<p style="float: left; margin-top: 85px; margin-left: -15px" class="vertical-text">[pu]</p>
{{line-chart data=S2Voltage203937 height="150px" useLabel=false}}
<p style="float: right">[min]</p>
<h2 style="margin-top: 20px;">Frequency at the substation bus</h2>
<p style="float: left; margin-top: 85px; margin-left: -15px" class="vertical-text">[Hz]</p>
{{line-chart data=S1Freq575 height="150px" useLabel=false}}
<p style="float: right">[min]</p>
</div>
</td>
</tr>
<tr style="height: 50%">
<td width="33%" style="padding-bottom: 20px;">
{{entity-chart entity=S1Entity entityName="Transmission system simulation"}}
</td>
<td width="33%" style="padding-bottom: 20px;">
{{entity-chart entity=S2Entity entityName="Distribution system simulation"}}
</td>
<td style="width: 33%; padding-bottom: 20px;">
<div class="layout-page" id="consumer-page">
<h1 style="text-align: center">Prosumer behavior</h1>
<h2>Total consumption</h2>
<p style="float: left; margin-top: 85px; margin-left: -15px" class="vertical-text">[MW]</p>
{{line-chart data=S3LoadProfile height="150px" useLabel=false}}
<p style="float: right;">[min]</p>
<h2>Total PV generation</h2>
<p style="float: left; margin-top: 85px; margin-left: -15px;" class="vertical-text">[MW]</p>
{{line-chart data=S3GenProfile height="150px" useLabel=false}}
<p style="float: right;">[min]</p>
</div>
</td>
</tr>
</table>
</section>

25
bower.json Normal file
View file

@ -0,0 +1,25 @@
{
"name": "lab-mashup",
"dependencies": {
"ember": "2.0.0",
"ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
"ember-cli-test-loader": "ember-cli-test-loader#0.1.3",
"ember-data": "2.0",
"ember-load-initializers": "ember-cli/ember-load-initializers#0.1.5",
"ember-qunit": "0.4.9",
"ember-qunit-notifications": "0.0.7",
"ember-resolver": "~0.1.18",
"jquery": "1.11.3",
"loader.js": "ember-cli/loader.js#3.2.1",
"qunit": "~1.18.0",
"pretender": "~0.9.0",
"lodash": "~3.7.0",
"Faker": "~3.0.0",
"bootstrap": "~3.3.2",
"flot": "*",
"normalize.css": "3.0.3"
},
"resolutions": {
"ember": "^2.0.0"
}
}

76
config/environment.js Normal file
View file

@ -0,0 +1,76 @@
/* jshint node: true */
module.exports = function(environment) {
/*********************************
* This variable must be set to the address the server should be available on.
*/
var hostAddress = process.env.HOST_ADDRESS || 'localhost';
/*
*
*********************************/
var ENV = {
modulePrefix: 'lab-mashup',
environment: environment,
baseURL: '/',
locationType: 'none',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},
APP: {
UPDATE_RATE: 200,
},
contentSecurityPolicy: {
'default-src': "'none'",
'script-src': "'self' 'unsafe-eval'",
'font-src': "'self'",
'connect-src': "'self'",
'img-src': "'self'",
'style-src': "'self' 'unsafe-inline'",
'media-src': "'self'"
},
'ember-cli-mirage': {
enabled: false
}
};
if (environment === 'development') {
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.contentSecurityPolicy['script-src'] += " " + hostAddress + ":80";
ENV.contentSecurityPolicy['connect-src'] += " ws://" + hostAddress + ":49152";
}
if (environment === 'test') {
// Testem prefers this...
ENV.baseURL = '/';
ENV.locationType = 'none';
// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;
ENV.APP.rootElement = '#ember-testing';
}
if (environment === 'production') {
}
ENV.APP.API_HOST = 'http://' + hostAddress + ':80';
// add api host to allowed connect src
ENV.contentSecurityPolicy['connect-src'] += " " + hostAddress + ":80";
return ENV;
};

54
deploy.sh Executable file
View file

@ -0,0 +1,54 @@
#! /bin/sh
######################################
# Description
######################################
# Program:
# Pulls latest state from git repository
# and deploys them to the webserver.
#
# Arguments:
# -b - Branch name for git
# -r - Remote name for git
# -d - Path to destination where code is
# deployed into
#
######################################
# default arguments
remoteName=origin
branchName=master
deployPath=/var/www/html/
# read arguments
usage() {
echo "Usage: $0 [-b <branch_name>] [-r <remote_name>] [-p /path/to/destination]" 1>&2
exit 1
}
while getopts ":b:r:d:" o
do
case "${o}" in
b)
branchName=${OPTARG}
;;
r)
remoteName=${OPTARG}
;;
d)
deployPath=${OPTARG}
;;
*)
usage
;;
esac
done
# pull changes from git
git pull $remoteName $branchName
# build webapp
ember build -prod
# deploy website
cp -ar dist/* /var/www/html/mashup

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -1,158 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="149.71165mm"
height="149.71165mm"
viewBox="0 0 149.71165 149.71165"
version="1.1"
id="svg8"
inkscape:version="0.92.1 r"
sodipodi:docname="villasweb.svg"
inkscape:export-filename="/home/markus/Development/Projects/VILLASweb/doc/villasweb.svg.png"
inkscape:export-xdpi="21.299999"
inkscape:export-ydpi="21.299999">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient4611">
<stop
style="stop-color:#00a2b0;stop-opacity:1"
offset="0"
id="stop4607" />
<stop
style="stop-color:#6ec5b0;stop-opacity:1"
offset="1"
id="stop4609" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4611"
id="linearGradient4613"
x1="65.497406"
y1="153.88686"
x2="65.497406"
y2="13.88037"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.0941748"
inkscape:cx="96.131516"
inkscape:cy="285.10587"
inkscape:document-units="mm"
inkscape:current-layer="g5005"
showgrid="false"
inkscape:snap-smooth-nodes="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:bbox-nodes="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="false"
inkscape:bbox-paths="false"
inkscape:snap-midpoints="true"
inkscape:window-width="1920"
inkscape:window-height="951"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:measure-start="37.9039,424.38"
inkscape:measure-end="101.386,461.031"
inkscape:snap-global="true" />
<metadata
id="metadata5">
<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>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(9.2667999,-9.6854979)">
<g
id="g5005"
transform="matrix(0.9623191,0,0,0.9623191,2.7484651,3.9385684)">
<path
inkscape:connector-curvature="0"
id="path4329"
d="M 65.519531,7.6875 C 30.952342,7.2288821 -1.7559504,32.928216 -9.0985572,66.77029 c -8.9441948,34.36253 9.91032274,73.19316 42.4331002,87.43912 31.90533,15.5955 73.697367,4.8306 94.125297,-24.21303 C 149.0773,101.82081 146.84579,58.724642 122.42805,32.933531 108.17012,16.922072 86.915542,7.695183 65.519531,7.6875 Z"
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
sodipodi:type="star"
style="fill:none;stroke:url(#linearGradient4613);stroke-width:20.38569832;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4572"
sodipodi:sides="6"
sodipodi:cx="65.497406"
sodipodi:cy="83.983902"
sodipodi:r1="58.333843"
sodipodi:r2="50.518589"
sodipodi:arg1="-0.52359878"
sodipodi:arg2="-4.4017012e-09"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 116.016,54.81698 0,58.33384 -50.518594,29.16693 -50.51859,-29.16693 0,-58.333839 50.51859,-29.166922 z"
transform="matrix(0.83725065,0,0,0.85461295,10.659664,12.436674)" />
<path
sodipodi:type="star"
style="fill:#007da9;fill-opacity:1;stroke:none;stroke-width:17.67682076;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4576-3"
sodipodi:sides="3"
sodipodi:cx="-80.89846"
sodipodi:cy="-21.019157"
sodipodi:r1="15.401051"
sodipodi:r2="7.7005253"
sodipodi:arg1="2.0943951"
sodipodi:arg2="3.1415927"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -88.598986,-7.6814564 0,-26.6754016 23.101576,13.337701 z"
transform="matrix(-1,0,0,-1.0094199,3.7691891,-0.07235845)"
inkscape:transform-center-x="3.7051813" />
<path
d="m 42.395834,161.35432 0,-26.6754 23.101576,13.3377 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="true"
sodipodi:arg2="3.1415927"
sodipodi:arg1="2.0943951"
sodipodi:r2="7.7005253"
sodipodi:r1="15.401051"
sodipodi:cy="148.01662"
sodipodi:cx="50.096359"
sodipodi:sides="3"
id="path4593"
style="fill:#007da9;fill-opacity:1;stroke:none;stroke-width:17.67682076;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:type="star"
inkscape:transform-center-x="-3.7051807"
transform="matrix(1,0,0,1.0094199,-4.2717477,-1.5199394)"
inkscape:transform-center-y="1.8921547e-06" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.8 KiB

24
docker-compose-dev.yml Normal file
View file

@ -0,0 +1,24 @@
nginx:
image: nginx
volumes:
- ./nginx-conf.d/:/etc/nginx/conf.d/
links:
- orion
ports:
- "80:80"
mongo:
image: mongo:3.2
command: --smallfiles --nojournal
orion:
image: fiware/orion
links:
- mongo
command: -dbhost mongo
playback:
image: acs/playback
links:
- orion
command: orion:1026 m1_S1_ElectricalGrid_data.txt 200 3

34
docker-compose.yml Normal file
View file

@ -0,0 +1,34 @@
nginx:
image: nginx
volumes:
- ./nginx-conf.d/:/etc/nginx/conf.d/
- ./dist/:/www/
links:
- orion
- ember
ports:
- "80:80"
ember:
environment:
HOST_ADDRESS: 'localhost'
image: danlynn/ember-cli
volumes:
- ./:/myapp/
command: build -prod
mongo:
image: mongo:3.2
command: --smallfiles --nojournal
orion:
image: fiware/orion
links:
- mongo
command: -dbhost mongo
playback:
image: acs/playback
links:
- orion
command: orion:1026 m1_S1_ElectricalGrid_data.txt 200 3

25
ember-cli-build.js Normal file
View file

@ -0,0 +1,25 @@
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function(defaults) {
var app = new EmberApp(defaults, {
// Add options here
});
// Use `app.import` to add additional libraries to the generated
// output files.
//
// If you need to use different assets in different
// environments, specify an object as the first parameter. That
// object's keys should be the environment name and the values
// should be the asset to use in that environment.
//
// If the library that you are including contains AMD or ES6
// modules that you would like to import into your application
// please specify an object with the list of modules as keys
// along with the exports of each module as its value.
app.import('bower_components/flot/jquery.flot.time.js');
return app.toTree();
};

45
nginx-conf.d/default.conf Normal file
View file

@ -0,0 +1,45 @@
server {
listen 80 default_server;
server_name labmashup;
# proxy for orion context broker
location /api/ {
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if ($request_method = 'OPTIONS') {
add_header Access-Control-Allow-Origin '$http_origin' always;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS, PUT, DELETE' always;
add_header Access-Control-Allow-Credentials 'true' always;
add_header Access-Control-Allow-Headers 'Origin,Content-Type,Accept' always;
add_header Content-Length 0;
add_header Content-Type text/plain;
return 204;
}
# rewrite url to exclude /api on context broker side
rewrite ^/api/?(.*) /$1 break;
add_header Access-Control-Allow-Origin '*' always;
add_header Access-Control-Allow-Credentials 'true' always;
proxy_pass http://orion:1026/;
}
# website location
location / {
root /www;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View file

@ -1,88 +1,51 @@
{
"name": "villasweb-frontend",
"name": "lab-mashup",
"version": "0.1.0",
"description": "Lab Mashup Visualization",
"private": true,
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.9",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
"@fortawesome/free-solid-svg-icons": "^6.1.1",
"@fortawesome/react-fontawesome": "^0.1.18",
"@reduxjs/toolkit": "^2.2.3",
"@rjsf/core": "^4.1.1",
"babel-runtime": "^6.26.0",
"bootstrap": "^5.1.3",
"classnames": "^2.3.1",
"d3": "^7.4.4",
"d3-array": "^3.1.6",
"d3-axis": "^3.0.0",
"d3-scale": "^4.0.2",
"d3-scale-chromatic": "^3.0.0",
"d3-selection": "^3.0.0",
"d3-shape": "^3.1.0",
"d3-time-format": "^4.1.0",
"es6-promise": "^4.2.8",
"file-saver": "^2.0.5",
"gaugeJS": "^1.3.7",
"handlebars": "^4.7.7",
"isomorphic-form-data": "^2.0.0",
"jsonwebtoken": "^8.5.1",
"jszip": "^3.9.1",
"lodash": "^4.17.21",
"moment": "^2.29.3",
"moment-duration-format": "^2.3.2",
"multiselect-react-dropdown": "^2.0.21",
"prop-types": "^15.8.1",
"rc-slider": "^10.0.0",
"react": "^17.0.2",
"react-bootstrap": "^2.2.3",
"react-collapse": "^5.1.1",
"react-color": "^2.19.3",
"react-contexify": "^5.0.0",
"react-copy-to-clipboard": "^5.1.0",
"react-datetime-picker": "^3.5.0",
"react-dnd": "^14.0.5",
"react-dnd-html5-backend": "^14.1.0",
"react-dom": "^17.0.2",
"react-fullscreenable": "^2.5.1-0",
"react-json-view": "^1.21.3",
"react-notification-system": "^0.4.0",
"react-redux": "^7.2.8",
"react-rnd": "^10.3.7",
"react-router-dom": "^5.3.1",
"react-svg-pan-zoom": "^3.11.0",
"react-syntax-highlighter": "^15.5.0",
"react-trafficlight": "^5.2.1",
"superagent": "^7.1.2",
"swagger-client": "3.19.10",
"swagger-ui-react": "4.13.0",
"typescript": "^4.6.3",
"xstate": "^4.31.0"
},
"optionalDependencies": {
"libcimsvg": "git+https://git.rwth-aachen.de/acs/public/cim/pintura-npm-package.git"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"react-scripts": "^4.0.3"
"directories": {
"doc": "doc",
"test": "tests"
},
"scripts": {
"start": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
"build": "ember build",
"start": "ember server",
"test": "ember test"
},
"proxy": "https://villas.k8s.eonerc.rwth-aachen.de",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
"repository": "",
"engines": {
"node": ">= 0.10.0"
},
"author": "",
"license": "MIT",
"devDependencies": {
"broccoli-asset-rev": "^2.1.2",
"ember-bootstrap": "0.4.0",
"ember-cli": "1.13.8",
"ember-cli-app-version": "0.5.0",
"ember-cli-babel": "^5.1.3",
"ember-cli-content-security-policy": "0.4.0",
"ember-cli-dependency-checker": "^1.0.1",
"ember-cli-htmlbars": "0.7.9",
"ember-cli-htmlbars-inline-precompile": "^0.2.0",
"ember-cli-ic-ajax": "0.2.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-mirage": "0.1.8",
"ember-cli-qunit": "^1.0.0",
"ember-cli-release": "0.2.3",
"ember-cli-sri": "^1.0.3",
"ember-cli-uglify": "^1.2.0",
"ember-data": "1.13.8",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.3",
"ember-normalize": "0.0.9",
"glob": "^4.5.3",
"http-proxy": "^1.11.2",
"mirage": "0.0.5",
"morgan": "^1.6.1"
},
"dependencies": {
"ember-cli-cors": "0.0.1",
"ember-cli-flot": "0.0.3"
}
}

BIN
public/assets/images/eu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 KiB

15
public/crossdomain.xml Normal file
View file

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
<!-- Most restrictive policy: -->
<site-control permitted-cross-domain-policies="none"/>
<!-- Least restrictive policy: -->
<!--
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
-->
</cross-domain-policy>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,31 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link id="dynamic-favicon" rel="shortcut icon" type=image/x-icon href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tag above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>VILLASweb</title>
</head>
<body>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start`.
To create a production bundle, use `npm run build`.
-->
</body>
</html>

3
public/robots.txt Normal file
View file

@ -0,0 +1,3 @@
# http://www.robotstxt.org
User-agent: *
Disallow:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -1,116 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
import { DndProvider } from 'react-dnd';
import { HTML5Backend }from 'react-dnd-html5-backend';
import NotificationSystem from 'react-notification-system';
import { Redirect, Route } from 'react-router-dom';
import jwt from 'jsonwebtoken';
import NotificationsDataManager from './common/data-managers/notifications-data-manager';
import Home from './common/home';
import Header from './common/header';
import Menu from './common/menu';
import InfrastructureComponent from './pages/infrastructure/ic';
import Scenarios from './pages/scenarios/scenarios';
import APIBrowser from './common/api-browser';
import Scenario from './pages/scenarios/scenario';
import Users from './pages/users/users';
import Dashboard from './pages/dashboards/dashboard';
import Account from './pages/account/account';
import './styles/app.css';
import './styles/login.css';
import branding from './branding/branding';
import Logout from './pages/login/logout';
import Infrastructure from './pages/infrastructure/infrastructure';
import { useSelector } from 'react-redux';
const App = () => {
const isTokenExpired = (token) => {
let decodedToken = jwt.decode(token);
let timeNow = (new Date().getTime() + 1) / 1000;
return decodedToken.exp < timeNow;
}
const { isAuthenticated, token, user } = useSelector((state) => state.auth);
if (!isAuthenticated || isTokenExpired(token)) {
console.log("APP redirecting to logout/login");
return (<Redirect to="/logout" />);
} else {
console.log("APP rendering app");
const pages = branding.values.pages;
return (<DndProvider backend={HTML5Backend} >
<div className="app">
<NotificationSystem />
<Header />
<div className='app-body app-body-spacing'>
<Menu currentRole={user.role} />
<div className='app-content app-content-margin-left'>
<Route exact path="/" component={Home} />
{ pages.home ? <Route path="/home" component={Home} /> : '' }
{ pages.scenarios ? <>
<Route exact path="/scenarios">
<Scenarios />
</Route>
<Route exact path="/logout">
<Logout />
</Route>
<Route path="/scenarios/:scenario">
<Scenario />
</Route>
<Route path="/dashboards/:dashboard">
<Dashboard />
</Route>
<Route path="/dashboards-new/:dashboard">
<Dashboard />
</Route>
</>
: '' }
{ user.role === "Admin" || pages.infrastructure ? <>
<Route exact path="/infrastructure">
<Infrastructure />
</Route>
<Route path="/infrastructure/:ic">
<InfrastructureComponent />
</Route>
</>
: '' }
{ pages.account ? <Route path="/account"><Account /></Route> : '' }
{ user.role === "Admin" ?
<Route path="/users">
<Users />
</Route>
: '' }
{ user.role === "Admin" || pages.api ?
<Route path="/api" component={APIBrowser} />
: '' }
</div>
</div>
{branding.getFooter()}
</div>
</DndProvider>)
}
}
export default App;

View file

@ -1,219 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import { villasweb_footer, villasweb_home, villasweb_welcome } from './villasweb/villasweb-functions';
import villasweb_values from './villasweb/villasweb-values';
import { slew_home, slew_welcome } from './slew/slew-functions';
import slew_values from './slew/slew-values';
import { opalrt_footer, opalrt_home, opalrt_welcome } from './opalrt/opalrt-functions';
import opalrt_values from './opalrt/opalrt-values';
import { template_welcome, template_home, template_footer } from './template/template-functions';
import template_values from './template/template-values';
class Branding {
constructor(brand) {
this.brand = brand;
this.setValues();
this.checkValues();
this.applyStyle();
Branding.branding = this;
}
setValues() {
switch (this.brand) {
case 'villasweb':
this.values = villasweb_values;
break;
case 'slew':
this.values = slew_values;
break;
case 'opalrt':
this.values = opalrt_values;
break;
case 'template':
this.values = template_values;
break;
default:
console.error("Branding '" + this.brand + "' not available, will use 'villasweb' branding");
this.brand = 'villasweb';
this.values = villasweb_values;
break;
}
}
getHome(username = '', userid = '', role = '') {
var homepage = '';
switch (this.brand) {
case 'villasweb':
homepage = villasweb_home(this.getTitle(), username, userid, role);
break;
case 'slew':
homepage = slew_home();
break;
case 'opalrt':
homepage = opalrt_home(this.getTitle(), username, userid, role);
break;
case 'template':
homepage = template_home();
break;
default:
homepage = villasweb_home(this.getTitle(), username, userid, role);
break;
}
return homepage;
}
getFooter() {
var footer = '';
switch (this.brand) {
case 'template':
footer = template_footer();
break;
case 'opalrt':
footer = opalrt_footer();
break;
default:
footer = villasweb_footer();
break;
}
return footer;
}
getWelcome() {
var welcome = '';
switch (this.brand) {
case 'villasweb':
welcome = villasweb_welcome();
break;
case 'slew':
welcome = slew_welcome();
break;
case 'opalrt':
welcome = opalrt_welcome();
break;
case 'template':
welcome = template_welcome();
break;
default:
welcome = this.defaultWelcome();
break;
}
return welcome;
}
defaultWelcome() {
return (<div><h1>Welcome!</h1><p>This is the welcome page and you are very welcome here.</p></div>);
}
// if icon cannot be found, the default favicon will be used
changeHead() {
// set title of document
let title = this.getTitle();
if (this.getSubtitle()) {
title += " " + this.getSubtitle();
}
document.title = title;
// set document icon
if (!this.values.icon) {
return;
}
var oldlink = document.getElementById('dynamic-favicon');
var link = document.createElement('link');
link.id = 'dynamic-favicon';
link.rel = 'shortcut icon'
link.href = '/' + this.values.icon;
if (oldlink) {
document.head.removeChild(oldlink);
}
document.head.appendChild(link);
}
checkValues() {
if (!this.values.hasOwnProperty('pages')) {
let pages = {};
pages.home = true;
pages.scenarios = true;
pages.infrastructure = true;
pages.users = true;
pages.account = true;
pages.api = true;
this.values.pages = pages;
} else {
if (!this.values.pages.hasOwnProperty('home')) {
this.values.pages['home'] = false;
}
if (!this.values.pages.hasOwnProperty('scenarios')) {
this.values.pages['scenarios'] = false;
}
if (!this.values.pages.hasOwnProperty('infrastructure')) {
this.values.pages['infrastructure'] = false;
}
if (!this.values.pages.hasOwnProperty('users')) {
this.values.pages['users'] = false;
}
if (!this.values.pages.hasOwnProperty('account')) {
this.values.pages['account'] = false;
}
if (!this.values.pages.hasOwnProperty('api')) {
this.values.pages['api'] = false;
}
}
}
applyStyle() {
this.changeHead();
const rootEl = document.querySelector(':root');
for (const [key, value] of Object.entries(this.values.style)) {
rootEl.style.setProperty('--' + key, value);
}
}
getLogo(style) {
let image = null;
try {
image = <img style={style} src={require('./' + this.brand + '/img/' + this.values.logo).default} alt={'Logo ' + this.values.title} />
} catch (err) {
console.error("cannot find './" + this.brand + '/img/' + this.values.logo + "'");
}
return image;
}
getTitle() {
return this.values.title ? this.values.title : "No Title!";
}
getSubtitle() {
return this.values.subtitle ? this.values.subtitle : null;
}
};
var branding = new Branding(process.env.REACT_APP_BRAND);
export default branding;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 27 KiB

View file

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.1"
id="svg2"
width="701.40002"
height="130.14667"
viewBox="0 0 701.40002 130.14667"
sodipodi:docname="Logo_OPAL-RT_Horizontal_Color.eps"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs6" />
<sodipodi:namedview
id="namedview4"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1" />
<g
id="g8"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.3333333,0,0,-1.3333333,0,130.14667)">
<g
id="g10"
transform="scale(0.1)">
<path
d="M 900.691,359.191 0,200.41 v -67.051 l 935.426,164.922 c -10.84,20.754 -22.336,41.114 -34.735,60.91"
style="fill:#193050;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path12" />
<path
d="M 951.465,266.32 0,98.5469 V 0 h 1029.37 c -11.92,94.2383 -38.722,183.594 -77.905,266.32"
style="fill:#193050;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path14" />
<path
d="M 0,819.387 V 235.195 L 880.18,390.391 C 695.293,660.117 366.098,831.508 0,819.387"
style="fill:#193050;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path16" />
<path
d="M 0,976.094 V 907.367 C 400.563,906.703 748.902,701.539 929.246,399.043 l 90.414,15.937 c -3.72,6.719 -7.36,13.477 -11.25,20.051 l 250.52,4.785 -213.73,-73.195 c -2.76,5.567 -5.65,11.035 -8.53,16.594 l -89.529,-15.832 c 10.996,-20.137 21.332,-40.664 30.839,-61.59 l 88.41,15.566 c -2.76,6.289 -5.35,12.657 -8.23,18.836 l 244.41,4.715 -215.77,-73.933 c -2.28,6.035 -4.68,11.964 -7.04,17.949 L 992.051,273.457 C 1027.26,187.434 1049.78,95.6172 1057.38,0 H 1342.7 V 976.098 L 0,976.094"
style="fill:#193050;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path18" />
<path
d="M 1698.06,775.063 V 515.137 h 315.06 v 259.926 z m -95.6,-23.696 c 0,37.317 7.02,62.813 21.01,76.559 13.98,13.633 40.95,20.594 80.82,20.594 h 302.17 c 39.92,0 66.83,-6.961 80.81,-20.594 14,-13.746 21.02,-39.242 21.02,-76.559 V 535.078 c 0,-37.644 -7.02,-63.16 -21.02,-76.785 -13.98,-13.566 -40.89,-20.391 -80.81,-20.391 h -302.17 c -39.87,0 -66.84,6.825 -80.82,20.391 -13.99,13.625 -21.01,39.141 -21.01,76.785 v 216.289"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path20" />
<path
d="M 2577.42,777.484 H 2362.58 V 668.66 h 214.84 c 16.62,0 27.87,2.379 33.98,7.106 6.1,4.8 9.1,13.445 9.1,25.449 v 43.961 c 0,11.949 -3,20.258 -9.1,25.027 -6.11,4.86 -17.36,7.281 -33.98,7.281 M 2268.66,437.902 V 848.52 h 351.08 c 32.67,0 56.3,-6.262 70.9,-18.797 14.68,-12.7 21.99,-32.95 21.99,-60.852 v -91.785 c 0,-27.672 -7.31,-47.711 -21.99,-60.231 -14.6,-12.601 -38.23,-18.953 -70.9,-18.953 h -257.16 v -160 h -93.92"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path22" />
<path
d="m 2937.16,601.777 h 179.78 l -88.46,167.094 z M 2753.37,437.902 2985.69,848.52 h 92.09 l 235.39,-410.618 h -107.18 l -49.33,89.735 h -260.28 l -47.82,-89.735 h -95.19"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path24" />
<path
d="M 3462.22,437.902 V 848.52 h 95.5 V 515.137 h 308.1 v -77.235 h -403.6"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path26" />
<path
d="m 3936.79,690.836 v -81.984 h 126.71 v 81.984 h -126.71"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path28" />
<path
d="m 4529.14,777.484 h -214.8 V 663.313 h 214.8 c 16.69,0 27.93,2.375 34.06,7.101 6.07,4.742 9.17,13.242 9.17,25.41 v 49.352 c 0,11.949 -3.1,20.258 -9.17,25.027 -6.13,4.86 -17.37,7.281 -34.06,7.281 M 4220.37,437.902 V 848.52 h 351.16 c 32.63,0 56.33,-6.262 70.96,-18.797 14.56,-12.746 21.89,-33.004 21.89,-60.852 v -96.32 c 0,-27.746 -7.33,-47.832 -21.89,-60.621 -14.63,-12.676 -38.33,-19.028 -70.96,-19.028 h -53.66 l 189.67,-155 h -137.23 l -165.41,155 h -90.56 v -155 h -93.97"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path30" />
<path
d="M 5071.43,775.137 V 437.902 h -95.66 v 337.235 h -188.42 v 73.383 h 473.15 v -73.383 h -189.07"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path32" />
<path
d="m 1745.33,284.016 v -168.43 h -47.67 v 168.43 h -94.15 v 36.543 h 236.36 v -36.543 h -94.54"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path34" />
<path
d="m 1898.26,115.586 v 204.973 h 209.75 v -34.954 h -162.07 v -45.683 h 94.54 v -34.961 h -94.54 V 154.113 H 2110 v -38.527 h -211.74"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path36" />
<path
d="M 2370.19,284.016 H 2241.48 V 154.113 h 128.71 v 44.102 l 47.67,-9.934 v -24.226 c 0,-19.075 -3.57,-31.926 -10.72,-38.535 -7.15,-6.633 -20.53,-9.934 -40.12,-9.934 h -122.36 c -19.6,0 -32.97,3.301 -40.12,9.934 -7.15,6.609 -10.73,19.46 -10.73,38.535 V 272.09 c 0,19.07 3.58,31.926 10.73,38.535 7.15,6.633 20.52,9.934 40.12,9.934 h 122.36 c 19.59,0 32.97,-3.301 40.12,-9.934 7.15,-6.609 10.72,-19.465 10.72,-38.535 v -19.461 l -47.67,-7.539 v 38.926"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path38" />
<path
d="m 2516.38,115.586 v 204.973 h 47.67 v -79.446 h 148.97 v 79.446 h 48.06 V 115.586 h -48.06 v 88.184 h -148.97 v -88.184 h -47.67"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path40" />
<path
d="m 2865.56,115.586 v 204.973 h 32.57 l 144.21,-120.762 c 10.33,-8.742 18.13,-16.152 23.44,-22.246 -1.34,19.07 -2,30.847 -2,35.359 v 107.649 h 42.89 V 115.586 h -32.57 l -150.54,126.719 c -6.37,5.293 -12.06,10.859 -17.08,16.691 1.3,-13.254 1.98,-24.101 1.98,-32.59 v -110.82 h -42.9"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path42" />
<path
d="m 3254.45,154.113 h 157.33 v 129.903 h -157.33 z m -47.66,117.977 c 0,19.07 3.57,31.926 10.73,38.535 7.15,6.633 20.52,9.934 40.13,9.934 h 150.95 c 19.59,0 32.96,-3.301 40.11,-9.934 7.15,-6.609 10.73,-19.465 10.73,-38.535 V 164.055 c 0,-19.075 -3.58,-31.926 -10.73,-38.535 -7.15,-6.633 -20.52,-9.934 -40.11,-9.934 h -150.95 c -19.61,0 -32.98,3.301 -40.13,9.934 -7.16,6.609 -10.73,19.46 -10.73,38.535 V 272.09"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path44" />
<path
d="m 3559.95,115.586 v 204.973 h 47.67 V 154.113 h 153.72 v -38.527 h -201.39"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path46" />
<path
d="m 3874.56,154.113 h 157.32 v 129.903 h -157.32 z m -47.67,117.977 c 0,19.07 3.59,31.926 10.74,38.535 7.15,6.633 20.51,9.934 40.12,9.934 h 150.96 c 19.59,0 32.96,-3.301 40.11,-9.934 7.15,-6.609 10.73,-19.465 10.73,-38.535 V 164.055 c 0,-19.075 -3.58,-31.926 -10.73,-38.535 -7.15,-6.633 -20.52,-9.934 -40.11,-9.934 h -150.96 c -19.61,0 -32.97,3.301 -40.12,9.934 -7.15,6.609 -10.74,19.46 -10.74,38.535 V 272.09"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path48" />
<path
d="M 4372.31,284.016 H 4223.34 V 154.113 h 148.97 v 45.684 h -77.85 v 34.969 h 124.33 v -70.711 c 0,-19.075 -3.57,-31.926 -10.71,-38.535 -7.15,-6.633 -20.54,-9.934 -40.13,-9.934 h -141.42 c -19.61,0 -32.98,3.301 -40.12,9.934 -7.15,6.609 -10.74,19.46 -10.74,38.535 V 272.09 c 0,19.07 3.59,31.926 10.74,38.535 7.14,6.633 20.51,9.934 40.12,9.934 h 141.42 c 19.07,0 32.31,-3.243 39.72,-9.731 7.41,-6.5 11.12,-18.738 11.12,-36.746 v -4.754 l -46.48,-8.359 v 23.047"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path50" />
<path
d="m 4519.7,115.586 v 204.973 h 47.67 V 115.586 h -47.67"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path52" />
<path
d="m 4672.24,115.586 v 204.973 h 209.74 V 285.605 H 4719.9 v -45.683 h 94.54 v -34.961 h -94.54 v -50.848 h 164.07 v -38.527 h -211.73"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path54" />
<path
d="m 5149.72,284.816 h -134.67 v -44.101 h 128.19 c 19.64,0 33.12,-3.313 40.41,-9.922 7.31,-6.633 10.95,-19.484 10.95,-38.535 v -28.203 c 0,-19.075 -3.64,-31.926 -10.92,-38.535 -7.28,-6.633 -20.72,-9.934 -40.32,-9.934 h -126.72 c -19.61,0 -33.06,3.301 -40.33,9.934 -7.29,6.609 -10.92,19.46 -10.92,38.535 v 5.547 l 42.11,8.75 v -24.239 h 145 v 46.875 h -127.93 c -19.59,0 -32.96,3.309 -40.11,9.93 -7.16,6.613 -10.73,19.465 -10.73,38.535 v 22.637 c 0,19.07 3.57,31.926 10.73,38.535 7.15,6.633 20.52,9.934 40.11,9.934 h 116.4 c 18.81,0 31.98,-3.176 39.53,-9.524 7.55,-6.355 11.33,-18.144 11.33,-35.359 v -4.367 l -42.11,-9.93 v 23.437"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path56" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -1,224 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="38.204632mm"
height="38.362537mm"
viewBox="0 0 38.204632 38.362537"
version="1.1"
id="svg526"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="logo_opalrt_square.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview528"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.914906"
inkscape:cx="271.0661"
inkscape:cy="361.7858"
inkscape:window-width="3440"
inkscape:window-height="1377"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="g132" />
<defs
id="defs523">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath138">
<path
d="M 475.811,66.248 H 584.806 V 179.684 H 475.811 Z"
id="path136" />
</clipPath>
</defs>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-33.2414,-52.538299)">
<g
id="g132"
transform="matrix(0.35277777,0,0,-0.35277777,-134.73758,115.92682)">
<g
id="g134"
clip-path="url(#clipPath138)">
<g
id="g140"
transform="translate(548.5841,130.0806)">
<path
d="m 0,0 -72.423,-12.77 v -5.389 L 2.794,-4.897 C 1.922,-3.23 0.998,-1.592 0,0"
style="fill:#003057;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path142" />
</g>
<g
id="g144"
transform="translate(552.6679,122.6127)">
<path
d="m 0,0 -76.506,-13.49 -0.001,-7.926 H 6.263 C 5.304,-13.838 3.151,-6.652 0,0"
style="fill:#003057;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path146" />
</g>
<g
id="g148"
transform="translate(476.1624,167.0828)">
<path
d="m 0,0 -0.001,-46.973 70.774,12.479 C 55.907,-12.807 29.437,0.977 0,0"
style="fill:#003057;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path150" />
</g>
<g
id="g152"
transform="translate(476.1624,179.684)">
<path
d="M 0,0 V -5.529 C 32.207,-5.58 60.218,-22.078 74.719,-46.4 l 7.27,1.283 c -0.299,0.539 -0.592,1.081 -0.907,1.611 l 20.145,0.385 -17.185,-5.886 c -0.221,0.447 -0.455,0.888 -0.686,1.333 l -7.199,-1.271 c 0.884,-1.62 1.716,-3.27 2.48,-4.953 l 7.108,1.253 c -0.22,0.504 -0.43,1.016 -0.661,1.514 l 19.652,0.377 -17.349,-5.943 c -0.182,0.485 -0.378,0.963 -0.567,1.444 l -7.052,-1.244 c 2.832,-6.917 4.643,-14.3 5.253,-21.99 h 22.942 V 0 Z"
style="fill:#003057;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path154" />
</g>
<path
d="m 479.03,83.212 h 9.324 v 7.692 h -9.324 z m -2.83,6.99 c 0,1.105 0.208,1.859 0.622,2.266 0.414,0.404 1.212,0.61 2.392,0.61 h 8.942 c 1.182,0 1.978,-0.206 2.392,-0.61 0.414,-0.407 0.622,-1.161 0.622,-2.266 v -6.4 c 0,-1.115 -0.208,-1.869 -0.622,-2.273 -0.414,-0.401 -1.21,-0.603 -2.392,-0.603 h -8.942 c -1.18,0 -1.978,0.202 -2.392,0.603 -0.414,0.404 -0.622,1.158 -0.622,2.273 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path156" />
<g
id="g158"
transform="translate(505.0534,90.9755)">
<path
d="M 0,0 H -6.358 V -3.221 H 0 c 0.492,0 0.825,0.071 1.006,0.21 0.18,0.143 0.269,0.398 0.269,0.754 v 1.301 c 0,0.353 -0.089,0.599 -0.269,0.74 C 0.825,-0.072 0.492,0 0,0 M -9.137,-10.05 V 2.102 H 1.253 C 2.219,2.102 2.919,1.916 3.351,1.546 3.785,1.17 4.002,0.571 4.002,-0.255 V -2.971 C 4.002,-3.79 3.785,-4.383 3.351,-4.754 2.919,-5.127 2.219,-5.315 1.253,-5.315 h -7.611 v -4.735 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path160" />
</g>
<g
id="g162"
transform="translate(515.6996,85.7754)">
<path
d="M 0,0 H 5.321 L 2.703,4.945 Z M -5.439,-4.85 1.436,7.302 H 4.162 L 11.128,-4.85 H 7.956 l -1.46,2.656 H -1.207 L -2.622,-4.85 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path164" />
</g>
<g
id="g166"
transform="translate(531.2385,80.9256)">
<path
d="M 0,0 V 12.152 H 2.826 V 2.286 h 9.118 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path168" />
</g>
<path
d="m 545.283,85.985 h 3.75 v 2.426 h -3.75 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path170" />
<g
id="g172"
transform="translate(562.8129,90.9755)">
<path
d="M 0,0 H -6.357 V -3.379 H 0 c 0.494,0 0.827,0.07 1.008,0.21 0.18,0.141 0.272,0.392 0.272,0.752 v 1.461 c 0,0.353 -0.092,0.599 -0.272,0.74 C 0.827,-0.072 0.494,0 0,0 M -9.138,-10.05 V 2.102 H 1.255 c 0.966,0 1.667,-0.186 2.1,-0.556 0.431,-0.378 0.648,-0.977 0.648,-1.801 v -2.85 C 4.003,-3.927 3.786,-4.521 3.355,-4.9 2.922,-5.275 2.221,-5.463 1.255,-5.463 H -0.334 L 5.28,-10.05 H 1.219 l -4.895,4.587 h -2.681 v -4.587 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path174" />
</g>
<g
id="g176"
transform="translate(578.8615,90.9057)">
<path
d="M 0,0 V -9.98 H -2.831 V 0 H -8.407 V 2.172 H 5.596 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path178" />
</g>
<g
id="g180"
transform="translate(480.4592,75.9135)">
<path
d="M 0,0 V -4.973 H -1.408 V 0 h -2.78 v 1.079 h 6.98 L 2.792,0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path182" />
</g>
<g
id="g184"
transform="translate(484.9752,70.94)">
<path
d="M 0,0 V 6.052 H 6.194 V 5.02 H 1.408 V 3.671 H 4.2 V 2.639 H 1.408 V 1.138 H 6.252 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path186" />
</g>
<g
id="g188"
transform="translate(498.9108,75.9135)">
<path
d="M 0,0 H -3.801 V -3.836 H 0 v 1.302 L 1.408,-2.827 V -3.543 C 1.408,-4.106 1.302,-4.485 1.091,-4.681 0.88,-4.877 0.485,-4.973 -0.094,-4.973 h -3.613 c -0.578,0 -0.973,0.096 -1.184,0.292 -0.212,0.196 -0.317,0.575 -0.317,1.138 v 3.191 c 0,0.563 0.105,0.942 0.317,1.137 0.211,0.196 0.606,0.294 1.184,0.294 h 3.613 C 0.485,1.079 0.88,0.981 1.091,0.785 1.302,0.59 1.408,0.211 1.408,-0.352 V -0.927 L 0,-1.15 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path190" />
</g>
<g
id="g192"
transform="translate(503.2275,70.94)">
<path
d="M 0,0 V 6.052 H 1.408 V 3.706 H 5.807 V 6.052 H 7.226 V 0 H 5.807 V 2.603 H 1.408 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path194" />
</g>
<g
id="g196"
transform="translate(513.5384,70.94)">
<path
d="M 0,0 V 6.052 H 0.962 L 5.221,2.486 C 5.525,2.228 5.756,2.009 5.913,1.829 5.873,2.392 5.853,2.74 5.853,2.873 V 6.052 H 7.12 V 0 H 6.158 L 1.713,3.741 C 1.525,3.898 1.357,4.063 1.209,4.234 1.247,3.843 1.267,3.523 1.267,3.272 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path198" />
</g>
<path
d="m 525.022,72.078 h 4.646 v 3.836 h -4.646 z m -1.407,3.483 c 0,0.563 0.105,0.943 0.317,1.138 0.211,0.196 0.605,0.293 1.185,0.293 h 4.457 c 0.578,0 0.973,-0.097 1.184,-0.293 0.211,-0.195 0.317,-0.575 0.317,-1.138 v -3.19 c 0,-0.563 -0.106,-0.943 -0.317,-1.138 -0.211,-0.196 -0.606,-0.293 -1.184,-0.293 h -4.457 c -0.58,0 -0.974,0.097 -1.185,0.293 -0.212,0.195 -0.317,0.575 -0.317,1.138 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path200" />
<g
id="g202"
transform="translate(534.0432,70.94)">
<path
d="M 0,0 V 6.052 H 1.407 V 1.138 h 4.54 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path204" />
</g>
<path
d="m 543.333,72.078 h 4.646 v 3.836 h -4.646 z m -1.407,3.483 c 0,0.563 0.106,0.943 0.317,1.138 0.211,0.196 0.606,0.293 1.185,0.293 h 4.457 c 0.578,0 0.973,-0.097 1.185,-0.293 0.211,-0.195 0.316,-0.575 0.316,-1.138 v -3.19 c 0,-0.563 -0.105,-0.943 -0.316,-1.138 -0.212,-0.196 -0.607,-0.293 -1.185,-0.293 h -4.457 c -0.579,0 -0.974,0.097 -1.185,0.293 -0.211,0.195 -0.317,0.575 -0.317,1.138 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path206" />
<g
id="g208"
transform="translate(558.0313,75.9135)">
<path
d="M 0,0 H -4.398 V -3.836 H 0 v 1.349 h -2.298 v 1.032 h 3.671 v -2.088 c 0,-0.563 -0.106,-0.942 -0.317,-1.138 -0.211,-0.196 -0.607,-0.292 -1.185,-0.292 h -4.176 c -0.579,0 -0.974,0.096 -1.185,0.292 -0.21,0.196 -0.316,0.575 -0.316,1.138 v 3.191 c 0,0.563 0.106,0.942 0.316,1.137 0.211,0.196 0.606,0.294 1.185,0.294 h 4.176 C 0.435,1.079 0.825,0.983 1.044,0.791 1.263,0.599 1.373,0.238 1.373,-0.293 V -0.434 L 0,-0.681 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path210" />
</g>
<path
d="m 562.383,76.992 h 1.408 V 70.94 h -1.408 z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path212" />
<g
id="g214"
transform="translate(566.8877,70.94)">
<path
d="M 0,0 V 6.052 H 6.194 V 5.02 H 1.407 V 3.671 H 4.199 V 2.639 H 1.407 V 1.138 H 6.252 V 0 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path216" />
</g>
<g
id="g218"
transform="translate(580.9873,75.9368)">
<path
d="m 0,0 h -3.976 v -1.302 h 3.784 c 0.581,0 0.979,-0.098 1.194,-0.293 0.216,-0.196 0.323,-0.575 0.323,-1.138 V -3.566 C 1.325,-4.129 1.218,-4.508 1.003,-4.704 0.788,-4.9 0.391,-4.997 -0.188,-4.997 H -3.93 c -0.579,0 -0.976,0.097 -1.19,0.293 -0.216,0.196 -0.323,0.575 -0.323,1.138 v 0.164 l 1.243,0.258 v -0.715 h 4.282 v 1.383 h -3.777 c -0.579,0 -0.974,0.099 -1.185,0.294 -0.211,0.195 -0.317,0.574 -0.317,1.138 v 0.668 c 0,0.564 0.106,0.943 0.317,1.138 0.211,0.196 0.606,0.293 1.185,0.293 h 3.436 C 0.297,1.055 0.686,0.962 0.909,0.774 1.132,0.586 1.243,0.238 1.243,-0.27 V -0.399 L 0,-0.692 Z"
style="fill:#231f20;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path220" />
</g>
</g>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 11 KiB

View file

@ -1,75 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
import { Button } from 'react-bootstrap';
import { NavLink } from 'react-router-dom';
export function opalrt_welcome() {
let url = 'https://villas.fein-aachen.org/doc/web.html';
return (
<div >
<h1>Welcome!</h1>
<p>VILLASweb is a tool to configure real-time co-simulations and display simulation real-time data.
It enables the management and monitoring of simulators, models and simulations.</p>
<span className='solid-button'>
<Button key="learnmore" onClick={e => window.location = url}>Learn more</Button>
</span>
</div>)
}
export function opalrt_home(title, username, userid, role) {
return (
<div className="home-container">
<h1>Home</h1>
<p>
Welcome to <b>{title}</b>!
</p>
<p>
You are logged in as user <b>{username}</b> with <b>ID {userid}</b> and role <b>{role}</b>.
</p>
<h3>Contacts</h3>
<ul>
<li><a href="mailto:steffen.vogel@opal-rt.com">Steffen Vogel</a> (OPAL-RT)</li>
<li><a href="mailto:ikoester@eonerc.rwth-aachen.de">Iris Köster</a> (RWTH)</li>
</ul>
<h3>Links</h3>
<ul>
<li><a href="https://opal-rt.com/">OPAL-RT Technologies</a></li>
<li><NavLink to="/api">API browser</NavLink></li>
<li><a href="https://fein-aachen.org/projects/villas-framework/">Project page of VILLASframework</a></li>
<li><a href="https://villas.fein-aachen.org/docs/web">Documentation</a></li>
<li>Source Code of <a href="https://github.com/VILLASframework/web">frontend</a> &amp; <a href="https://github.com/VILLASframework/web-backend">backend</a></li>
</ul>
<h3>Credits</h3>
<p>
VILLASweb is an open source project developed by the <a href="http://acs.eonerc.rwth-aachen.de">Institute for Automation of Complex Power Systems</a> at <a href="https;//www.rwth-aachen.de">RWTH Aachen University</a> with the support of other open-source contributors.<br />
This instance is operated by OPAL-RT Technologies Inc.
</p>
<p>
<a href="https://opal-rt.com/"><img height={60} src={require('./img/logo_opalrt.svg').default} alt="Logo OPAL-RT" style={{marginRight: 15}} /></a>
<a href="https://www.acs.rwth-aachen.de"><img height={60} src={require('./img/eonerc_rwth.svg').default} alt="Logo ACS" /></a>
</p>
</div>)
}
export function opalrt_footer() {
return (
<footer className="app-footer">
Copyright &copy; {new Date().getFullYear()} - <a href="https://opal-rt.com/">OPAL-RT Technologies</a> - <a href="https://www.acs.rwth-aachen.de">RWTH Aachen University</a>
</footer>
);
}

View file

@ -1,40 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
const villasweb_values = {
title: 'OPAL-RT VILLASweb',
// subtitle: 'OPAL-RT Web Dashboards',
logo: 'logo_opalrt_square.svg',
pages: {
home: true,
scenarios: true,
infrastructure: true,
account: true,
api: true,
},
style: {
background: '#f0f4f7',
backgroundText: '#000000',
highlights: '#1158a2',
main: '#092f56',
secondaryText: '#c4c4c4',
fontFamily: 'Open Sans',
// borderRadius: ''
}
}
export default villasweb_values;

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View file

@ -1,272 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
version="1.1"
width="300"
height="207.72354"
id="svg15656">
<defs
id="defs15658" />
<metadata
id="metadata15661">
<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>
<g
transform="translate(-206.87716,-301.85899)"
id="layer1">
<g
transform="matrix(4.5286013,0,0,4.5286013,-1067.5668,-2047.9402)"
id="g15525">
<path
d="m 281.42172,530.9313 c 0,0 19.6275,-2.54 20.18125,-2.63 0.85,-0.13875 1.60375,-0.30125 2.3075,-0.495 1.5875,-0.435 3.04875,-1.09875 4.3425,-1.97375 1.24125,-0.83125 2.395,-2.04125 3.53875,-3.36875 0.72625,-0.845 1.49,-1.94625 2.2025,-3.00875 l 0,-0.51375 c -0.845,1.25125 -1.6775,2.33 -2.53375,3.28125 -1.135,1.26375 -2.325,2.29625 -3.53875,3.07125 -1.2525,0.8075 -2.66125,1.40875 -4.19,1.79 -0.685,0.1725 -1.4175,0.3125 -2.2425,0.4275 -0.5425,0.0762 -1.1025,0.135 -1.64375,0.19125 -0.21625,0.0238 -18.42375,1.955 -18.42375,1.955 l 0,1.27375 z"
id="path5555"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.74272,527.64055 c -1.22875,0.70625 -2.6475,1.22375 -4.2175,1.53625 -0.67,0.13625 -1.40125,0.24625 -2.23375,0.33625 -0.49,0.0537 -0.9825,0.0962 -1.47625,0.13875 -0.26625,0.0225 -0.5325,0.0462 -0.79875,0.07 -6.015,0.54 -11.99875,1.11375 -17.595,1.65625 l 0,1.27375 c 5.64,-0.68 11.66625,-1.40125 17.67875,-2.08125 0.2675,-0.0312 0.535,-0.0612 0.8025,-0.09 0.4925,-0.0538 0.98625,-0.10875 1.48,-0.17375 0.85625,-0.11375 1.605,-0.245 2.28875,-0.4 1.63125,-0.365 3.10375,-0.94 4.3775,-1.71125 1.265,-0.75875 2.3825,-1.8225 3.585,-3.1225 0.74875,-0.80875 1.58125,-1.95125 2.36125,-3.02375 l 0,-0.4675 c -0.91875,1.245 -1.79,2.29125 -2.65125,3.18375 -1.17375,1.21625 -2.385,2.1825 -3.60125,2.875"
id="path5559"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.1776,527.32868 c -1.1975,1.09875 -2.4475,1.9625 -3.71625,2.5675 -1.24125,0.59875 -2.62875,1.01875 -4.245,1.28375 -0.66625,0.11125 -1.39125,0.20125 -2.215,0.27625 l -19.58,1.6075 0,1.27 17.405,-1.84625 2.25125,-0.23625 c 0.84875,-0.0987 1.58875,-0.20875 2.26125,-0.33625 1.67375,-0.31625 3.11,-0.7875 4.38875,-1.4425 1.3075,-0.66125 2.61375,-1.76125 3.82875,-2.92625 0.815,-0.78125 1.6,-1.79 2.43875,-2.8475 l 0,-0.42375 c -0.96875,1.205 -1.89375,2.2075 -2.8175,3.05375"
id="path5563"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.4431,533.92568 c -1.14,0.6375 -1.9925,1.005 -3.62,1.175 -0.98375,0.10625 -1.995,0.15625 -2.97375,0.205 -0.4725,0.0237 -0.94625,0.0475 -1.42,0.0775 -2.9575,0.16875 -5.8625,0.35625 -8.82625,0.54875 l -8.18125,0.55125 0,1.27 8.26375,-0.7575 c 2.67,-0.24 5.7725,-0.51625 8.80125,-0.76375 l 2.2025,-0.17 c 0.86,-0.0662 1.565,-0.13625 2.2175,-0.22125 1.675,-0.21625 3.10625,-0.555 4.37375,-1.03375 1.365,-0.51 2.6525,-1.3025 3.94125,-2.235 1.1625,-0.84 2.77125,-2.49625 2.7725,-2.5175 l 0,-0.44875 c -1.05125,1.025 -1.65625,1.60125 -2.8075,2.36 -1.37625,0.90625 -3.72125,1.38875 -4.74375,1.96"
id="path5567"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.85935,536.33993 c -1.235,0.3625 -2.625,0.6075 -4.25,0.74875 -0.65875,0.0575 -1.36875,0.10125 -2.17125,0.13375 l -2.19,0.0962 c -5.44125,0.2525 -10.8575,0.535 -16.82625,0.85125 l 0,1.26625 c 5.7025,-0.44125 11.29,-0.87 16.87625,-1.2675 l 2.1825,-0.14875 c 0.84375,-0.0563 1.5425,-0.11625 2.2,-0.19 1.665,-0.18625 3.09,-0.47375 4.355,-0.87875 1.40125,-0.44375 2.7675,-1.0875 4.06,-1.9125 0.95375,-0.6075 1.90875,-1.3325 2.89875,-2.19625 l 0,-0.0225 c -1.09125,0.93125 -2.13125,1.13875 -3.1675,1.76375 -1.27,0.77 -2.605,1.36 -3.9675,1.75625"
id="path5571"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.65735,538.44468 c -1.24375,0.29125 -2.5925,0.4775 -4.24375,0.58875 -0.63625,0.0425 -1.32125,0.0738 -2.155,0.1 l -2.16875,0.0775 c -5.465,0.20625 -11.00625,0.44375 -16.66875,0.69 l 0,1.26625 c 5.62625,-0.38375 11.145,-0.7575 16.71125,-1.105 l 2.16375,-0.13 c 0.84875,-0.0488 1.54,-0.0975 2.17625,-0.15625 1.68125,-0.155 3.0575,-0.38125 4.33,-0.71 1.4275,-0.3675 2.815,-0.9075 4.12375,-1.6025 1.0125,-0.53625 2.0225,-1.18125 3.06875,-1.95875 l 0,-0.54125 c -1.13125,0.81625 -2.21625,1.4825 -3.30125,2.025 -1.28625,0.64375 -2.64375,1.13375 -4.03625,1.45625"
id="path5575"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.4721,540.50831 c -1.24875,0.22875 -2.5925,0.375 -4.23125,0.45875 -0.61625,0.0325 -1.27625,0.055 -2.13875,0.075 l -18.68,0.505 0,1.26625 16.56375,-0.865 2.14625,-0.10875 c 0.8375,-0.04 1.5225,-0.08 2.15625,-0.12875 1.66125,-0.1275 3.0275,-0.31 4.3,-0.57625 1.445,-0.3 2.8475,-0.7375 4.1675,-1.3 1.06375,-0.45125 2.12875,-1.00125 3.23875,-1.67 l 0,-0.50875 c -1.185,0.69 -2.3125,1.2425 -3.4325,1.68625 -1.30125,0.5175 -2.6775,0.91 -4.09,1.16625"
id="path5579"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.32547,542.58081 c -2.2925,0.30625 -4.65125,0.34125 -6.93375,0.375 -0.5225,0.007 -1.04625,0.015 -1.56875,0.0263 l -16.40125,0.295 0,1.26375 16.43,-0.7075 c 0.52,-0.0237 1.0425,-0.045 1.565,-0.065 2.2975,-0.0925 4.67375,-0.1875 6.9975,-0.55625 1.47,-0.23125 2.885,-0.575 4.20625,-1.01875 1.09375,-0.36625 2.22625,-0.84 3.37375,-1.4 l 0,-0.485 c -1.20625,0.56125 -2.3925,1.02875 -3.53125,1.37875 -1.305,0.4025 -2.69625,0.70375 -4.1375,0.89375"
id="path5583"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.19522,544.6663 c -2.1475,0.1775 -4.345,0.1775 -6.47125,0.1775 -0.66125,0 -1.3225,0 -1.98375,0.005 -5.43375,0.0238 -10.82375,0.0688 -16.31875,0.11625 l 0,1.26375 c 5.23375,-0.1775 10.785,-0.3625 16.3375,-0.5275 0.65875,-0.0225 1.3175,-0.0387 1.9775,-0.0562 2.1375,-0.0537 4.3475,-0.10875 6.5175,-0.34375 1.515,-0.1625 2.895,-0.40125 4.21625,-0.7275 1.1525,-0.28375 2.33625,-0.66125 3.525,-1.115 l 0,-0.465 c -1.2275,0.44 -2.45,0.8 -3.64125,1.0625 -1.30875,0.28875 -2.66875,0.4875 -4.15875,0.61"
id="path5587"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.11223,546.72218 c -0.895,0.035 -1.86375,0.0525 -2.9625,0.0525 -0.415,0 -0.83125,-0.002 -1.245,-0.006 l -4.2275,-0.0512 c -2.88375,-0.0213 -5.7575,-0.0263 -8.45375,-0.0287 l -7.80125,0.007 0,1.2625 7.82,-0.20375 c 2.68625,-0.0662 5.5675,-0.135 8.44375,-0.18625 l 4.22375,-0.0563 c 1.15875,-0.0175 2.6875,-0.0525 4.23625,-0.15375 1.5175,-0.0987 2.89875,-0.25 4.2225,-0.46125 1.19125,-0.19 2.40875,-0.44625 3.62625,-0.7575 l 0,-0.4475 c -1.25125,0.2875 -2.495,0.51875 -3.70125,0.68 -1.31625,0.17625 -2.68375,0.29 -4.18125,0.35"
id="path5591"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 301.8556,548.7088 -4.2125,-0.045 c -5.375,-0.0763 -10.74375,-0.17375 -16.22125,-0.27625 l 0,1.26375 c 5.2275,-0.0337 10.765,-0.0738 16.225,-0.135 l 4.215,-0.0625 c 1.42,-0.025 2.81125,-0.0512 4.2175,-0.0975 2.89625,-0.0925 5.49125,-0.29625 7.915,-0.6175 l 0,-0.44 c -2.43375,0.2625 -5.03125,0.4 -7.93,0.41875 -1.40125,0.0125 -2.805,0.003 -4.20875,-0.009"
id="path5595"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.99473,550.94356 -32.5725,-0.82625 0,1.26375 32.5725,0 0,-0.4375 z"
id="path5599"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.06173,529.71581 c -1.2375,0.99375 -2.1925,1.7 -3.7075,2.30125 -1.31875,0.525 -2.735,0.73875 -4.35375,0.96 -1.04125,0.14625 -2.13,0.36125 -3.17,0.43125 -0.4275,0.0287 -0.855,0.0562 -1.28125,0.09 l -17.1275,1.24875 0,1.2675 17.19625,-1.6675 2.23,-0.20875 c 0.82625,-0.0788 1.56125,-0.16875 2.24375,-0.28 1.66625,-0.2675 3.1025,-0.675 4.39,-1.24875 1.335,-0.58875 2.68625,-1.55375 3.9425,-2.61 0.85375,-0.7175 1.67625,-1.62 2.57,-2.60625 l 0,-0.45375 c -1.08125,1.1175 -1.97875,2.01125 -2.9325,2.77625"
id="path5603"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 294.96035,563.49518 28.5325,0 0,-12.68875 -28.5325,0 0,12.68875 z"
id="path5605"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 323.49785,532.29018 -28.5375,0 0,19.09 28.5375,0 0,-19.09 z"
id="path5607"
style="fill:#254aa5;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.53872,535.00493 0.9925,0 -0.8,0.62375 0.31125,0.98875 -0.7975,-0.60875 -0.7975,0.60875 0.315,-0.98875 -0.8075,-0.62375 0.99,0 0.3,-0.965 0.29375,0.965 z"
id="path5611"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.57373,547.73581 0.995,0 -0.80125,0.60125 0.31125,0.95 -0.7975,-0.585 -0.79625,0.585 0.31375,-0.95 -0.80875,-0.60125 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5615"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 312.72285,546.8928 0.995,0 -0.80125,0.6 0.31125,0.95125 -0.7975,-0.5875 -0.79625,0.5875 0.31375,-0.95125 -0.80875,-0.6 0.99125,0 0.3,-0.92875 0.2925,0.92875 z"
id="path5619"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 312.72285,535.85418 0.995,0 -0.80125,0.6 0.31125,0.95125 -0.7975,-0.58625 -0.79625,0.58625 0.31375,-0.95125 -0.80875,-0.6 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5623"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.06097,538.19205 0.9925,0 -0.8,0.59875 0.31125,0.9525 -0.7975,-0.58625 -0.795,0.58625 0.31375,-0.9525 -0.80875,-0.59875 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5627"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.06097,544.58668 0.9925,0 -0.8,0.60125 0.31125,0.9525 -0.7975,-0.5875 -0.795,0.5875 0.31375,-0.9525 -0.80875,-0.60125 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5631"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.93698,541.34055 0.995,0 -0.80125,0.6 0.31125,0.9525 -0.7975,-0.5875 -0.79625,0.5875 0.31375,-0.9525 -0.80875,-0.6 0.99,0 0.30125,-0.9275 0.2925,0.9275 z"
id="path5635"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.3281,535.86193 0.9925,0 -0.8,0.60125 0.31125,0.95125 -0.7975,-0.5875 -0.7975,0.5875 0.315,-0.95125 -0.8075,-0.60125 0.99,0 0.3,-0.9275 0.29375,0.9275 z"
id="path5639"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.05485,538.1998 0.995,0 -0.80125,0.6 0.31,0.9525 -0.79625,-0.5875 -0.79625,0.5875 0.3125,-0.9525 -0.8075,-0.6 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5643"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 303.2111,541.34843 0.99375,0 -0.8,0.6 0.31,0.9525 -0.79625,-0.58625 -0.7975,0.58625 0.31375,-0.9525 -0.80625,-0.6 0.99,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5647"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.05485,544.59456 0.995,0 -0.80125,0.60125 0.31,0.9525 -0.79625,-0.5875 -0.79625,0.5875 0.3125,-0.9525 -0.8075,-0.60125 0.99125,0 0.3,-0.92625 0.2925,0.92625 z"
id="path5651"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.36122,546.90068 0.9925,0 -0.8,0.6 0.30875,0.95125 -0.795,-0.58625 -0.7975,0.58625 0.315,-0.95125 -0.8075,-0.6 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5655"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 294.96035,564.74893 28.54,0 0,-1.62875 -28.54,0 0,1.62875 z"
id="path5657"
style="fill:#254aa5;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,518.87968 c 0,0 5.95,9.26625 7.03875,10.97 1.0875,1.7025 2.33125,3.05 6.73375,3.965 4.4025,0.915 6.31875,1.3475 6.31875,1.3475 l 0,0.33 c 0,0 -2.7975,-0.585 -6.3975,-1.3725 -3.59875,-0.7875 -5.07,-1.05375 -6.71125,-3.29125 -1.36625,-1.8625 -6.9825,-9.77875 -6.9825,-9.77875 l 0,-2.17 z"
id="path5661"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,521.51443 c 0,0 6.14875,8.80875 6.965,9.88875 0.81625,1.08 1.915,2.82 6.775,3.8475 1.255,0.265 6.3675,1.27125 6.3675,1.27125 l 0,0.27875 c 0,0 -3.885,-0.74875 -6.3675,-1.27125 -2.48375,-0.5225 -5.0925,-0.99875 -6.7575,-3.09875 -1.5125,-1.9075 -6.99375,-8.9425 -6.99375,-8.9425 l 0.0112,-1.97375 z"
id="path5665"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,524.16068 c 0,0 5.79375,7.48625 6.965,8.98375 1.17,1.49625 2.78375,2.7325 6.775,3.49875 2.30125,0.4425 6.35,1.18375 6.35,1.18375 l 0,0.27875 c 0,0 -3.5475,-0.66125 -6.35,-1.16625 -2.8025,-0.505 -5.11625,-0.99375 -6.775,-2.855 -1.455,-1.63375 -6.97625,-8.055 -6.97625,-8.055 l 0.0112,-1.86875 z"
id="path5669"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54773,526.76056 c 0,0 5.86625,6.79125 6.99375,8.0025 1.75625,1.88625 2.6075,2.53625 6.7575,3.325 1.66,0.31625 6.35,1.1325 6.35,1.1325 l 0,0.295 c 0,0 -3.88375,-0.69625 -6.35,-1.13125 -2.465,-0.435 -4.55125,-0.5975 -6.775,-2.73375 -1.69375,-1.62625 -6.965,-7.1375 -6.965,-7.1375 l -0.0113,-1.7525 z"
id="path5673"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,529.46493 c 0,0 5.41625,5.56375 6.9825,7.16125 1.66125,1.69375 3.79,2.32125 6.74,2.8375 2.81625,0.4925 6.3675,1.0625 6.3675,1.0625 l 0,0.3125 c 0,0 -3.335,-0.535 -6.3675,-1.04375 -2.97375,-0.5 -5.055,-0.7775 -6.7575,-2.31625 -1.525,-1.3775 -6.965,-6.3775 -6.965,-6.3775 l 0,-1.63625 z"
id="path5677"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,531.9718 c 0,0 5.15125,4.68875 6.9825,6.29125 1.685,1.47375 3.05125,1.9325 6.7575,2.57625 3.7075,0.64375 6.35,1.04375 6.35,1.04375 l 0,0.33125 c 0,0 -3.3525,-0.54 -6.3675,-1.01 -3.015,-0.47 -4.93625,-0.655 -6.74,-2.08875 -2.08125,-1.655 -6.9825,-5.61125 -6.9825,-5.61125 l 0,-1.5325 z"
id="path5681"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54748,534.65293 c 0,0 5.87625,4.5675 6.97625,5.3675 1.1,0.80125 2.55375,1.735 6.775,2.33375 4.18625,0.5925 6.3325,0.8875 6.3325,0.8875 l 0,0.34875 c 0,0 -3.795,-0.54125 -6.3325,-0.85375 -2.53625,-0.31375 -4.48125,-0.44625 -6.7575,-1.9325 -2.21625,-1.44625 -6.9825,-4.735 -6.9825,-4.735 l -0.0113,-1.41625 z"
id="path5685"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54748,537.21793 c 0,0 5.89375,3.8475 7.01125,4.4575 1.11875,0.60875 2.43125,1.60125 6.74,2.14125 4.31,0.53875 6.3325,0.7825 6.3325,0.7825 l 0,0.33125 c 0,0 -3.565,-0.3825 -6.35,-0.67875 -2.785,-0.29625 -4.6825,-0.69625 -6.7575,-1.81125 -2.075,-1.11375 -6.965,-3.91125 -6.965,-3.91125 l -0.0113,-1.31125 z"
id="path5689"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,539.78293 c 0,0 5.21625,2.78125 6.9825,3.65 1.96875,0.96875 3.67125,1.43375 6.7575,1.7925 3.03,0.355 6.35,0.6975 6.35,0.6975 l 0,0.31375 c 0,0 -3.07,-0.3225 -6.35,-0.6275 -3.25125,-0.30125 -4.41,-0.44125 -6.7575,-1.4625 -2.1,-0.9125 -6.99375,-3.145 -6.99375,-3.145 l 0.0112,-1.21875 z"
id="path5693"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,542.39431 c 0,0 4.10375,1.7225 7,2.84875 2.85,1.10875 5.02625,1.2025 6.7575,1.39375 0.7625,0.0838 6.315,0.64375 6.315,0.64375 l 0,0.3125 c 0,0 -3.3175,-0.26 -6.3325,-0.52125 -3.015,-0.26125 -4.31625,-0.37125 -6.7575,-1.16625 -2.47125,-0.80375 -6.99375,-2.35 -6.99375,-2.35 l 0.0112,-1.16125 z"
id="path5697"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,545.04056 c 0,0 4.1625,1.265 7,1.99625 2.8375,0.73125 5.445,1.0275 6.7575,1.11375 1.3125,0.0875 6.315,0.4875 6.315,0.4875 l 0,0.29625 c 0,0 -2.8375,-0.19 -6.3325,-0.435 -2.82625,-0.1975 -5.09625,-0.40625 -6.7575,-0.76625 -1.84125,-0.39875 -6.99375,-1.60125 -6.99375,-1.60125 l 0.0112,-1.09125 z"
id="path5701"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54773,547.65218 c 0,0 3.415,0.57625 7.01125,1.16 2.69625,0.43875 6.35,0.715 6.74,0.73125 0.39,0.0175 6.35,0.41875 6.35,0.41875 l 0,0.3125 c 0,0 -3.81375,-0.1925 -6.35,-0.33 -2.64125,-0.14375 -5.26625,-0.3 -6.7575,-0.4525 -3.34,-0.3425 -6.99375,-0.795 -6.99375,-0.795 l 0,-1.045 z"
id="path5705"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,550.35593 c 0,0 5.36875,0.1975 7,0.2325 1.63125,0.035 13.09,0.4875 13.09,0.4875 l 0,0.31375 -20.09,-0.0125 0,-1.02125 z"
id="path5709"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 296.6286,553.26193 c 0,-0.0588 0.0275,-0.09 0.09,-0.09 l 1.65625,0 c 0.0538,0 0.0863,0.0312 0.0863,0.085 l 0,0.28 c 0,0.0538 -0.0225,0.0813 -0.09,0.0813 l -1.22875,0 0,0.77375 1.08875,0 c 0.0587,0 0.09,0.0275 0.09,0.0812 l 0,0.27875 c 0,0.0538 -0.0225,0.0812 -0.09,0.0812 l -1.08875,0 0,0.88625 1.26,0 c 0.0537,0 0.0813,0.0275 0.0813,0.0863 l 0,0.27375 c 0,0.0588 -0.0225,0.0812 -0.0863,0.0812 l -1.67875,0 c -0.0625,0 -0.09,-0.0275 -0.09,-0.0812 l 0,-2.8175 z"
id="path5713"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 300.5711,556.16093 -0.32,0 c -0.0675,0 -0.085,-0.0312 -0.085,-0.085 l 0,-0.14 -0.009,-0.005 c -0.17625,0.1225 -0.4825,0.27 -0.75625,0.27 -0.6075,0 -0.66625,-0.36 -0.66625,-0.8325 l 0,-1.32375 c 0,-0.0537 0.0225,-0.0888 0.085,-0.0888 l 0.32875,0 c 0.0588,0 0.0813,0.0312 0.0813,0.0888 l 0,1.265 c 0,0.27125 0.0537,0.44125 0.32875,0.44125 0.19375,0 0.49,-0.14375 0.6075,-0.2025 l 0,-1.50375 c 0,-0.0537 0.0175,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,2.03125 c 0,0.0575 -0.0225,0.085 -0.085,0.085"
id="path5717"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 301.5336,556.07543 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.325,0 c -0.0625,0 -0.085,-0.0263 -0.085,-0.085 l 0,-2.03 c 0,-0.0588 0.0225,-0.09 0.085,-0.09 l 0.32,0 c 0.0675,0 0.09,0.0362 0.09,0.09 l 0,0.1975 0.009,0.009 c 0.135,-0.125 0.455,-0.27875 0.66625,-0.31875 0.0588,-0.0138 0.0987,0 0.10875,0.0762 l 0.0312,0.30125 c 0.004,0.0638 0.009,0.09 -0.0862,0.10875 -0.25125,0.0488 -0.57125,0.13875 -0.72875,0.20625 l 0,1.45 z"
id="path5721"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 303.42835,554.3423 c -0.3825,0 -0.46875,0.24375 -0.46875,0.71125 0,0.4775 0.0862,0.71125 0.46375,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5725"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 305.76373,554.36943 c -0.185,0 -0.46875,0.13 -0.60375,0.2025 l 0,1.125 c 0.2025,0.0588 0.365,0.0763 0.51875,0.0763 0.32375,0 0.43625,-0.16625 0.43625,-0.7325 0,-0.5725 -0.1125,-0.67125 -0.35125,-0.67125 m -0.0362,1.8325 c -0.14875,0 -0.355,-0.0275 -0.5625,-0.1 l -0.005,0.005 0,0.7925 c 0,0.0487 -0.0125,0.09 -0.085,0.09 l -0.32,0 c -0.0712,0 -0.085,-0.0312 -0.085,-0.09 l 0,-2.85375 c 0,-0.0587 0.0225,-0.09 0.085,-0.09 l 0.32,0 c 0.0638,0 0.0813,0.035 0.0813,0.09 l 0,0.135 0.0138,0.009 c 0.16125,-0.1125 0.45,-0.27 0.71125,-0.27 0.58875,0 0.7425,0.445 0.7425,1.125 0,0.73375 -0.185,1.1575 -0.89625,1.1575"
id="path5729"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.4016,554.85555 0.89125,0 c 0,-0.275 -0.0725,-0.54 -0.445,-0.54 -0.33375,0 -0.42375,0.2025 -0.44625,0.54 m -0.005,0.3375 c 0.0138,0.455 0.17625,0.58125 0.545,0.58125 0.1625,0 0.41375,-0.0325 0.585,-0.05 0.0813,-0.009 0.10875,-0.009 0.1225,0.0763 l 0.0263,0.14875 c 0.0138,0.0675 0.005,0.10375 -0.0762,0.14 -0.17625,0.0675 -0.50375,0.1125 -0.725,0.1125 -0.86,0 -0.98625,-0.54875 -0.98625,-1.135 0,-0.43625 0.0813,-1.15625 0.96,-1.15625 0.805,0 0.94875,0.5225 0.9625,1.0075 0.005,0.1625 -0.04,0.275 -0.22,0.275 l -1.19375,0 z"
id="path5733"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 310.40323,555.15693 -0.54875,0 c -0.225,0 -0.37,0.0813 -0.37,0.37875 0,0.1975 0.0675,0.26125 0.28,0.26125 0.19375,0 0.4675,-0.11375 0.63875,-0.2125 l 0,-0.4275 z m 0.0275,0.7475 c -0.225,0.17125 -0.5275,0.2925 -0.82875,0.2925 -0.4775,0 -0.61625,-0.26125 -0.61625,-0.63875 -0.005,-0.5275 0.27875,-0.7525 0.84625,-0.7525 l 0.57625,0 0,-0.11625 c 0,-0.27 -0.1,-0.365 -0.46875,-0.365 -0.14875,0 -0.4325,0.0225 -0.6125,0.04 -0.09,0.0138 -0.1125,0.009 -0.125,-0.0537 l -0.0412,-0.16625 c -0.009,-0.0588 0.005,-0.095 0.10375,-0.135 0.19375,-0.0675 0.54875,-0.0987 0.76125,-0.0987 0.77875,0 0.8725,0.31875 0.8725,0.82375 l 0,0.86875 c 0,0.18375 0.0225,0.18875 0.1625,0.20625 0.0675,0.005 0.085,0.0187 0.085,0.0675 l 0,0.19 c 0,0.0488 -0.0312,0.08 -0.1075,0.0937 -0.0725,0.0138 -0.14375,0.0225 -0.21125,0.0225 -0.2125,0 -0.3425,-0.0625 -0.3875,-0.27375 l -0.009,-0.005 z"
id="path5737"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.10785,556.16093 -0.32375,0 c -0.0588,0 -0.0863,-0.0275 -0.0863,-0.085 l 0.005,-1.265 c 0,-0.26625 -0.0625,-0.44125 -0.32375,-0.44125 -0.18,0 -0.495,0.14375 -0.6175,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32,0 c -0.0625,0 -0.085,-0.0275 -0.085,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,0.13625 c 0.005,0 0.01,0.004 0.0138,0.004 0.16625,-0.11625 0.48125,-0.27 0.75625,-0.27 0.6075,0 0.6625,0.40125 0.6625,0.855 l 0,1.30625 c 0,0.0538 -0.0188,0.085 -0.0863,0.085"
id="path5741"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 297.80335,557.89043 c 0.22,0 0.585,0.0312 0.82375,0.13 0.0725,0.0325 0.0987,0.0688 0.085,0.14 l -0.04,0.185 c -0.0138,0.0538 -0.0362,0.0763 -0.1175,0.0675 -0.22,-0.0275 -0.49,-0.0587 -0.72375,-0.0587 -0.6125,0 -0.7025,0.495 -0.7025,1.08 0,0.59 0.1125,1.05375 0.7025,1.05375 0.26,0 0.48125,-0.0275 0.72375,-0.0588 0.0863,-0.009 0.10375,0.0138 0.1225,0.0725 l 0.035,0.17125 c 0.0187,0.0713 -0.004,0.1125 -0.0763,0.14375 -0.22,0.0937 -0.6125,0.135 -0.8325,0.135 -1.00375,0 -1.215,-0.7425 -1.215,-1.50875 0,-0.76875 0.18875,-1.5525 1.215,-1.5525"
id="path5745"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 299.73385,559.0923 c -0.3825,0 -0.46875,0.24375 -0.46875,0.71125 0,0.4775 0.0863,0.71125 0.46375,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5749"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.12648,560.91093 -0.32375,0 c -0.0637,0 -0.0863,-0.0275 -0.0863,-0.085 l 0,-1.27875 c 0,-0.33375 -0.08,-0.4275 -0.30625,-0.4275 -0.16625,0 -0.43625,0.13 -0.575,0.2025 0,0.045 0.004,0.12625 0.004,0.22875 l 0,1.275 c 0,0.0538 -0.0175,0.085 -0.085,0.085 l -0.32875,0 c -0.0587,0 -0.0763,-0.0275 -0.0763,-0.085 l 0,-1.30125 c 0,-0.275 -0.0725,-0.405 -0.2975,-0.405 -0.1575,0 -0.41,0.1125 -0.58125,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32375,0 c -0.0588,0 -0.0813,-0.0275 -0.0813,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.0813,-0.0888 l 0.31875,0 c 0.0675,0 0.09,0.035 0.09,0.0888 l 0,0.13125 0.005,0.005 c 0.175,-0.1225 0.4225,-0.2575 0.67125,-0.26625 0.26,0 0.47625,0.0538 0.61625,0.315 0.225,-0.16625 0.50375,-0.315 0.7925,-0.315 0.59375,0 0.6525,0.3875 0.6525,0.8375 l 0,1.32375 c 0,0.0538 -0.0188,0.085 -0.0813,0.085"
id="path5753"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.65447,560.91093 -0.32375,0 c -0.0637,0 -0.0863,-0.0275 -0.0863,-0.085 l 0,-1.27875 c 0,-0.33375 -0.08,-0.4275 -0.30625,-0.4275 -0.16625,0 -0.43625,0.13 -0.575,0.2025 0,0.045 0.004,0.12625 0.004,0.22875 l 0,1.275 c 0,0.0538 -0.0175,0.085 -0.085,0.085 l -0.32875,0 c -0.0587,0 -0.0763,-0.0275 -0.0763,-0.085 l 0,-1.30125 c 0,-0.275 -0.0725,-0.405 -0.2975,-0.405 -0.1575,0 -0.41,0.1125 -0.58125,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32375,0 c -0.0588,0 -0.0813,-0.0275 -0.0813,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.0813,-0.0888 l 0.31875,0 c 0.0675,0 0.09,0.035 0.09,0.0888 l 0,0.13125 0.005,0.005 c 0.175,-0.1225 0.4225,-0.2575 0.67125,-0.26625 0.26,0 0.47625,0.0538 0.61625,0.315 0.225,-0.16625 0.50375,-0.315 0.7925,-0.315 0.59375,0 0.6525,0.3875 0.6525,0.8375 l 0,1.32375 c 0,0.0538 -0.0188,0.085 -0.0813,0.085"
id="path5757"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 308.59422,560.82543 c 0,0.0488 -0.0175,0.085 -0.0813,0.085 l -0.32,0 c -0.0625,0 -0.09,-0.0263 -0.09,-0.085 l 0,-2.035 c 0,-0.0625 0.0275,-0.085 0.09,-0.085 l 0.32,0 c 0.0638,0 0.0813,0.0362 0.0813,0.085 l 0,2.035 z m -0.23875,-2.44375 c -0.23375,0 -0.265,-0.13125 -0.265,-0.26125 0,-0.14375 0.0488,-0.2575 0.265,-0.2575 0.22125,0 0.26625,0.10375 0.26625,0.2575 0,0.13875 -0.0412,0.26125 -0.26625,0.26125"
id="path5761"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.71023,560.94705 c -0.225,0 -0.52625,-0.0312 -0.6975,-0.0987 -0.09,-0.0362 -0.10875,-0.0775 -0.095,-0.14875 l 0.0312,-0.14875 c 0.0138,-0.0725 0.045,-0.0762 0.1175,-0.0675 0.1975,0.0312 0.48625,0.0538 0.63875,0.0538 0.28875,0 0.40625,-0.0763 0.40625,-0.25625 0,-0.2075 -0.0775,-0.2525 -0.36125,-0.2925 -0.44125,-0.0638 -0.8275,-0.1575 -0.8275,-0.64875 0,-0.445 0.34125,-0.67875 0.84625,-0.67875 0.18375,0 0.495,0.0263 0.68375,0.0987 0.0763,0.0312 0.10875,0.0675 0.095,0.135 l -0.0362,0.16125 c -0.0138,0.0638 -0.04,0.0725 -0.12125,0.0638 -0.19375,-0.0225 -0.44625,-0.05 -0.6125,-0.05 -0.2875,0 -0.355,0.0812 -0.355,0.2525 0,0.175 0.1075,0.1975 0.3825,0.2425 0.4275,0.0637 0.81375,0.14875 0.81375,0.685 0,0.52625 -0.445,0.6975 -0.90875,0.6975"
id="path5765"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.59573,560.94705 c -0.225,0 -0.52625,-0.0312 -0.6975,-0.0987 -0.09,-0.0362 -0.10875,-0.0775 -0.095,-0.14875 l 0.0312,-0.14875 c 0.0138,-0.0725 0.045,-0.0762 0.1175,-0.0675 0.1975,0.0312 0.48625,0.0538 0.63875,0.0538 0.28875,0 0.40625,-0.0763 0.40625,-0.25625 0,-0.2075 -0.0775,-0.2525 -0.36125,-0.2925 -0.44125,-0.0638 -0.8275,-0.1575 -0.8275,-0.64875 0,-0.445 0.34125,-0.67875 0.84625,-0.67875 0.18375,0 0.495,0.0263 0.68375,0.0987 0.0763,0.0312 0.10875,0.0675 0.095,0.135 l -0.0362,0.16125 c -0.0137,0.0638 -0.04,0.0725 -0.12125,0.0638 -0.19375,-0.0225 -0.44625,-0.05 -0.6125,-0.05 -0.2875,0 -0.355,0.0812 -0.355,0.2525 0,0.175 0.1075,0.1975 0.3825,0.2425 0.4275,0.0637 0.81375,0.14875 0.81375,0.685 0,0.52625 -0.445,0.6975 -0.90875,0.6975"
id="path5769"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.29685,560.82543 c 0,0.0488 -0.0175,0.085 -0.0813,0.085 l -0.32,0 c -0.0625,0 -0.09,-0.0263 -0.09,-0.085 l 0,-2.035 c 0,-0.0625 0.0275,-0.085 0.09,-0.085 l 0.32,0 c 0.0638,0 0.0813,0.0362 0.0813,0.085 l 0,2.035 z m -0.23875,-2.44375 c -0.23375,0 -0.265,-0.13125 -0.265,-0.26125 0,-0.14375 0.0488,-0.2575 0.265,-0.2575 0.22125,0 0.26625,0.10375 0.26625,0.2575 0,0.13875 -0.0412,0.26125 -0.26625,0.26125"
id="path5773"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 314.59735,559.0923 c -0.3825,0 -0.4675,0.24375 -0.4675,0.71125 0,0.4775 0.085,0.71125 0.4625,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5777"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 317.66673,560.91093 -0.32375,0 c -0.0588,0 -0.0863,-0.0275 -0.0863,-0.085 l 0.005,-1.265 c 0,-0.26625 -0.0625,-0.44125 -0.32375,-0.44125 -0.18,0 -0.495,0.14375 -0.6175,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32,0 c -0.0625,0 -0.085,-0.0275 -0.085,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,0.13625 c 0.005,0 0.009,0.004 0.0138,0.004 0.16625,-0.11625 0.4825,-0.27 0.75625,-0.27 0.6075,0 0.6625,0.40125 0.6625,0.855 l 0,1.30625 c 0,0.0538 -0.0187,0.085 -0.0863,0.085"
id="path5781"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 94 KiB

View file

@ -1,66 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
import './slew.css'
export function slew_home() {
return (
<div className="home-container">
<h1>Home</h1>
<p>
Welcome to <b>SLEW</b>!
</p>
<p>SLEW is a learning platform for running experiments in a virtual power engineering world.
The platform enables interaction with the experiments in real time and performing analysis on the experimental results.</p>
<p>The motivation behind SLEW is the ongoing transformation of the energy system, which is making the system more and more complex.
Hence, understanding new phenomena and underlying interactions is getting more challenging, also because real experimental
activities for obtaining a better understanding are not possible for obvious reasons of security and safety.</p>
<p>The SLEW platform gives the possibility to perform experiments in a virtual infrastructure and to learn from the execution
of complex models. It provides a virtual power engineering world where complex phenomena take place while users can interact
with the system in real time.</p>
<p>The platform is based on the real-time simulation tool DPsim developed in RWTH,
which is available as open-source software project to the power engineering community. Besides, it integrates the interactive
computing environment Jupyter for further analysis of experimental results.</p>
<h3>Contacts</h3>
<ul>
<li><a href="mailto:jdinkelbach@eonerc.rwth-aachen.de">Jan Dinkelbach</a></li>
<li><a href="mailto:ikoester@eonerc.rwth-aachen.de">Iris Köster</a></li>
<li><a href="mailto:post@steffenvogel.de">Steffen Vogel</a></li>
</ul>
<h3>Credits</h3>
<div>
<img id="images" height={70} src={require('./img/eonerc_rwth.svg').default} alt="Logo EONERC" />
<img id="images" height={70} src={require('./img/erigrid2.png').default} alt="Logo Erigrid" />
<img id="images" height={70} src={require('./img/european_commission.svg').default} alt="Logo EU" />
</div>
</div>)
}
export function slew_welcome() {
return (
<div >
<h1>Welcome!</h1>
<p>SLEW is a learning platform for running experiments in a virtual power engineering world.
The platform enables to interact with the experiments in real time and perform analyses on the experimental results.</p>
</div>)
}

View file

@ -1,44 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
const slew_values = {
title: 'SLEW',
subtitle: 'Second Life for Energiewende',
icon: "slew_blue.png",
logo: "slew_logo.png",
pages: {
home: true,
scenarios: true,
infrastructure: false,
account: false,
api: false
},
links: {
"DPsim Simulator": "https://dpsim.fein-aachen.org",
"VILLASframework": "https://villas.fein-aachen.org/doc"
},
style: {
background: 'rgba(207,209,210, 1)',
highlights: 'rgba(0,84,159, 0.75)',
main: 'rgba(80,80,80, 1)',
secondaryText: 'rgba(80,80,80, 0.9)',
fontFamily: "Roboto, sans-serif",
borderRadius: "10px"
}
}
export default slew_values;

View file

@ -1,4 +0,0 @@
#images {
margin-left: 2em;
margin-right: 2em
}

View file

@ -1,109 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg8"
inkscape:version="0.92.3 (2405546, 2018-03-11)">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="400"
inkscape:cy="560"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1853"
inkscape:window-height="921"
inkscape:window-x="67"
inkscape:window-y="27"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<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>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<ellipse
id="path3713"
cx="107.34524"
cy="152.6131"
rx="93.738091"
ry="90.714287"
style="fill:#ffb380;stroke-width:0.46149299" />
<path
style="fill:#d45500;stroke-width:0.46149299"
id="path3717"
sodipodi:type="arc"
sodipodi:cx="108.74432"
sodipodi:cy="175.60233"
sodipodi:rx="30.779675"
sodipodi:ry="24.231895"
sodipodi:start="0"
sodipodi:end="0.17905702"
sodipodi:open="true"
d="m 139.524,175.60233 a 30.779675,24.231895 0 0 1 -0.4921,4.31574" />
<ellipse
style="fill:#d45500;stroke-width:0.46149299"
id="path3722"
cx="108.74432"
cy="178.08763"
rx="33.577824"
ry="26.71722" />
<ellipse
style="fill:#008080;stroke-width:0.46149299"
id="path3729"
cx="76.565552"
cy="128.38118"
rx="9.7935324"
ry="10.562623" />
<ellipse
style="fill:#008080;stroke-width:0.46149299"
id="path3729-3"
cx="135.32677"
cy="127.75985"
rx="9.7935324"
ry="10.562623" />
<ellipse
style="fill:#552200;stroke-width:0.46149299"
id="path3748"
cx="96.152611"
cy="183.0583"
rx="4.197228"
ry="5.5919766" />
<ellipse
style="fill:#552200;stroke-width:0.46149299"
id="path3748-6"
cx="117.1388"
cy="183.67961"
rx="4.197228"
ry="5.5919766" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -1,52 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
export function template_home() {
return (
<div className="home-container">
<img style={{ height: 120, float: 'right' }} src={require('./img/template_logo.svg').default} alt="Template Logo" />
<h1>Home</h1>
<p>
Welcome to <b>BRAND</b>!
</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
</div>)
}
export function template_welcome() {
return (
<div >
<h1>Welcome!</h1>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
labore et dolore magna aliquyam erat, sed diam voluptua.</p>
</div>)
}
export function template_footer() {
return (
<footer className="app-footer">
<p>HELLO WORLD, THIS IS MY FOOTER!</p>
</footer>)
}

View file

@ -1,44 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
const template_values = {
title: 'Template',
subtitle: 'change me!',
icon: "template_logo.svg",
pages: {
home: true,
scenarios: true,
infrastructure: true,
users: true,
account: true,
api: true
},
links: {
"Google": "https://www.google.com/",
"StackOverFlow": "https://stackoverflow.com/"
},
style: {
background: 'rgba(50,30,90, 0.6)',
highlights: 'rgba(0,230,5, 0.75)',
main: 'rgba(255,0,0, 1)',
secondaryText: 'rgba(0,0,100, 0.8)',
fontFamily: "Comic Sans, sans-serif",
borderRadius: "60px"
}
}
export default template_values;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View file

@ -1,272 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
version="1.1"
width="300"
height="207.72354"
id="svg15656">
<defs
id="defs15658" />
<metadata
id="metadata15661">
<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>
<g
transform="translate(-206.87716,-301.85899)"
id="layer1">
<g
transform="matrix(4.5286013,0,0,4.5286013,-1067.5668,-2047.9402)"
id="g15525">
<path
d="m 281.42172,530.9313 c 0,0 19.6275,-2.54 20.18125,-2.63 0.85,-0.13875 1.60375,-0.30125 2.3075,-0.495 1.5875,-0.435 3.04875,-1.09875 4.3425,-1.97375 1.24125,-0.83125 2.395,-2.04125 3.53875,-3.36875 0.72625,-0.845 1.49,-1.94625 2.2025,-3.00875 l 0,-0.51375 c -0.845,1.25125 -1.6775,2.33 -2.53375,3.28125 -1.135,1.26375 -2.325,2.29625 -3.53875,3.07125 -1.2525,0.8075 -2.66125,1.40875 -4.19,1.79 -0.685,0.1725 -1.4175,0.3125 -2.2425,0.4275 -0.5425,0.0762 -1.1025,0.135 -1.64375,0.19125 -0.21625,0.0238 -18.42375,1.955 -18.42375,1.955 l 0,1.27375 z"
id="path5555"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.74272,527.64055 c -1.22875,0.70625 -2.6475,1.22375 -4.2175,1.53625 -0.67,0.13625 -1.40125,0.24625 -2.23375,0.33625 -0.49,0.0537 -0.9825,0.0962 -1.47625,0.13875 -0.26625,0.0225 -0.5325,0.0462 -0.79875,0.07 -6.015,0.54 -11.99875,1.11375 -17.595,1.65625 l 0,1.27375 c 5.64,-0.68 11.66625,-1.40125 17.67875,-2.08125 0.2675,-0.0312 0.535,-0.0612 0.8025,-0.09 0.4925,-0.0538 0.98625,-0.10875 1.48,-0.17375 0.85625,-0.11375 1.605,-0.245 2.28875,-0.4 1.63125,-0.365 3.10375,-0.94 4.3775,-1.71125 1.265,-0.75875 2.3825,-1.8225 3.585,-3.1225 0.74875,-0.80875 1.58125,-1.95125 2.36125,-3.02375 l 0,-0.4675 c -0.91875,1.245 -1.79,2.29125 -2.65125,3.18375 -1.17375,1.21625 -2.385,2.1825 -3.60125,2.875"
id="path5559"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.1776,527.32868 c -1.1975,1.09875 -2.4475,1.9625 -3.71625,2.5675 -1.24125,0.59875 -2.62875,1.01875 -4.245,1.28375 -0.66625,0.11125 -1.39125,0.20125 -2.215,0.27625 l -19.58,1.6075 0,1.27 17.405,-1.84625 2.25125,-0.23625 c 0.84875,-0.0987 1.58875,-0.20875 2.26125,-0.33625 1.67375,-0.31625 3.11,-0.7875 4.38875,-1.4425 1.3075,-0.66125 2.61375,-1.76125 3.82875,-2.92625 0.815,-0.78125 1.6,-1.79 2.43875,-2.8475 l 0,-0.42375 c -0.96875,1.205 -1.89375,2.2075 -2.8175,3.05375"
id="path5563"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.4431,533.92568 c -1.14,0.6375 -1.9925,1.005 -3.62,1.175 -0.98375,0.10625 -1.995,0.15625 -2.97375,0.205 -0.4725,0.0237 -0.94625,0.0475 -1.42,0.0775 -2.9575,0.16875 -5.8625,0.35625 -8.82625,0.54875 l -8.18125,0.55125 0,1.27 8.26375,-0.7575 c 2.67,-0.24 5.7725,-0.51625 8.80125,-0.76375 l 2.2025,-0.17 c 0.86,-0.0662 1.565,-0.13625 2.2175,-0.22125 1.675,-0.21625 3.10625,-0.555 4.37375,-1.03375 1.365,-0.51 2.6525,-1.3025 3.94125,-2.235 1.1625,-0.84 2.77125,-2.49625 2.7725,-2.5175 l 0,-0.44875 c -1.05125,1.025 -1.65625,1.60125 -2.8075,2.36 -1.37625,0.90625 -3.72125,1.38875 -4.74375,1.96"
id="path5567"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.85935,536.33993 c -1.235,0.3625 -2.625,0.6075 -4.25,0.74875 -0.65875,0.0575 -1.36875,0.10125 -2.17125,0.13375 l -2.19,0.0962 c -5.44125,0.2525 -10.8575,0.535 -16.82625,0.85125 l 0,1.26625 c 5.7025,-0.44125 11.29,-0.87 16.87625,-1.2675 l 2.1825,-0.14875 c 0.84375,-0.0563 1.5425,-0.11625 2.2,-0.19 1.665,-0.18625 3.09,-0.47375 4.355,-0.87875 1.40125,-0.44375 2.7675,-1.0875 4.06,-1.9125 0.95375,-0.6075 1.90875,-1.3325 2.89875,-2.19625 l 0,-0.0225 c -1.09125,0.93125 -2.13125,1.13875 -3.1675,1.76375 -1.27,0.77 -2.605,1.36 -3.9675,1.75625"
id="path5571"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.65735,538.44468 c -1.24375,0.29125 -2.5925,0.4775 -4.24375,0.58875 -0.63625,0.0425 -1.32125,0.0738 -2.155,0.1 l -2.16875,0.0775 c -5.465,0.20625 -11.00625,0.44375 -16.66875,0.69 l 0,1.26625 c 5.62625,-0.38375 11.145,-0.7575 16.71125,-1.105 l 2.16375,-0.13 c 0.84875,-0.0488 1.54,-0.0975 2.17625,-0.15625 1.68125,-0.155 3.0575,-0.38125 4.33,-0.71 1.4275,-0.3675 2.815,-0.9075 4.12375,-1.6025 1.0125,-0.53625 2.0225,-1.18125 3.06875,-1.95875 l 0,-0.54125 c -1.13125,0.81625 -2.21625,1.4825 -3.30125,2.025 -1.28625,0.64375 -2.64375,1.13375 -4.03625,1.45625"
id="path5575"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.4721,540.50831 c -1.24875,0.22875 -2.5925,0.375 -4.23125,0.45875 -0.61625,0.0325 -1.27625,0.055 -2.13875,0.075 l -18.68,0.505 0,1.26625 16.56375,-0.865 2.14625,-0.10875 c 0.8375,-0.04 1.5225,-0.08 2.15625,-0.12875 1.66125,-0.1275 3.0275,-0.31 4.3,-0.57625 1.445,-0.3 2.8475,-0.7375 4.1675,-1.3 1.06375,-0.45125 2.12875,-1.00125 3.23875,-1.67 l 0,-0.50875 c -1.185,0.69 -2.3125,1.2425 -3.4325,1.68625 -1.30125,0.5175 -2.6775,0.91 -4.09,1.16625"
id="path5579"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.32547,542.58081 c -2.2925,0.30625 -4.65125,0.34125 -6.93375,0.375 -0.5225,0.007 -1.04625,0.015 -1.56875,0.0263 l -16.40125,0.295 0,1.26375 16.43,-0.7075 c 0.52,-0.0237 1.0425,-0.045 1.565,-0.065 2.2975,-0.0925 4.67375,-0.1875 6.9975,-0.55625 1.47,-0.23125 2.885,-0.575 4.20625,-1.01875 1.09375,-0.36625 2.22625,-0.84 3.37375,-1.4 l 0,-0.485 c -1.20625,0.56125 -2.3925,1.02875 -3.53125,1.37875 -1.305,0.4025 -2.69625,0.70375 -4.1375,0.89375"
id="path5583"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.19522,544.6663 c -2.1475,0.1775 -4.345,0.1775 -6.47125,0.1775 -0.66125,0 -1.3225,0 -1.98375,0.005 -5.43375,0.0238 -10.82375,0.0688 -16.31875,0.11625 l 0,1.26375 c 5.23375,-0.1775 10.785,-0.3625 16.3375,-0.5275 0.65875,-0.0225 1.3175,-0.0387 1.9775,-0.0562 2.1375,-0.0537 4.3475,-0.10875 6.5175,-0.34375 1.515,-0.1625 2.895,-0.40125 4.21625,-0.7275 1.1525,-0.28375 2.33625,-0.66125 3.525,-1.115 l 0,-0.465 c -1.2275,0.44 -2.45,0.8 -3.64125,1.0625 -1.30875,0.28875 -2.66875,0.4875 -4.15875,0.61"
id="path5587"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.11223,546.72218 c -0.895,0.035 -1.86375,0.0525 -2.9625,0.0525 -0.415,0 -0.83125,-0.002 -1.245,-0.006 l -4.2275,-0.0512 c -2.88375,-0.0213 -5.7575,-0.0263 -8.45375,-0.0287 l -7.80125,0.007 0,1.2625 7.82,-0.20375 c 2.68625,-0.0662 5.5675,-0.135 8.44375,-0.18625 l 4.22375,-0.0563 c 1.15875,-0.0175 2.6875,-0.0525 4.23625,-0.15375 1.5175,-0.0987 2.89875,-0.25 4.2225,-0.46125 1.19125,-0.19 2.40875,-0.44625 3.62625,-0.7575 l 0,-0.4475 c -1.25125,0.2875 -2.495,0.51875 -3.70125,0.68 -1.31625,0.17625 -2.68375,0.29 -4.18125,0.35"
id="path5591"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 301.8556,548.7088 -4.2125,-0.045 c -5.375,-0.0763 -10.74375,-0.17375 -16.22125,-0.27625 l 0,1.26375 c 5.2275,-0.0337 10.765,-0.0738 16.225,-0.135 l 4.215,-0.0625 c 1.42,-0.025 2.81125,-0.0512 4.2175,-0.0975 2.89625,-0.0925 5.49125,-0.29625 7.915,-0.6175 l 0,-0.44 c -2.43375,0.2625 -5.03125,0.4 -7.93,0.41875 -1.40125,0.0125 -2.805,0.003 -4.20875,-0.009"
id="path5595"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.99473,550.94356 -32.5725,-0.82625 0,1.26375 32.5725,0 0,-0.4375 z"
id="path5599"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.06173,529.71581 c -1.2375,0.99375 -2.1925,1.7 -3.7075,2.30125 -1.31875,0.525 -2.735,0.73875 -4.35375,0.96 -1.04125,0.14625 -2.13,0.36125 -3.17,0.43125 -0.4275,0.0287 -0.855,0.0562 -1.28125,0.09 l -17.1275,1.24875 0,1.2675 17.19625,-1.6675 2.23,-0.20875 c 0.82625,-0.0788 1.56125,-0.16875 2.24375,-0.28 1.66625,-0.2675 3.1025,-0.675 4.39,-1.24875 1.335,-0.58875 2.68625,-1.55375 3.9425,-2.61 0.85375,-0.7175 1.67625,-1.62 2.57,-2.60625 l 0,-0.45375 c -1.08125,1.1175 -1.97875,2.01125 -2.9325,2.77625"
id="path5603"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 294.96035,563.49518 28.5325,0 0,-12.68875 -28.5325,0 0,12.68875 z"
id="path5605"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 323.49785,532.29018 -28.5375,0 0,19.09 28.5375,0 0,-19.09 z"
id="path5607"
style="fill:#254aa5;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.53872,535.00493 0.9925,0 -0.8,0.62375 0.31125,0.98875 -0.7975,-0.60875 -0.7975,0.60875 0.315,-0.98875 -0.8075,-0.62375 0.99,0 0.3,-0.965 0.29375,0.965 z"
id="path5611"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.57373,547.73581 0.995,0 -0.80125,0.60125 0.31125,0.95 -0.7975,-0.585 -0.79625,0.585 0.31375,-0.95 -0.80875,-0.60125 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5615"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 312.72285,546.8928 0.995,0 -0.80125,0.6 0.31125,0.95125 -0.7975,-0.5875 -0.79625,0.5875 0.31375,-0.95125 -0.80875,-0.6 0.99125,0 0.3,-0.92875 0.2925,0.92875 z"
id="path5619"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 312.72285,535.85418 0.995,0 -0.80125,0.6 0.31125,0.95125 -0.7975,-0.58625 -0.79625,0.58625 0.31375,-0.95125 -0.80875,-0.6 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5623"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.06097,538.19205 0.9925,0 -0.8,0.59875 0.31125,0.9525 -0.7975,-0.58625 -0.795,0.58625 0.31375,-0.9525 -0.80875,-0.59875 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5627"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.06097,544.58668 0.9925,0 -0.8,0.60125 0.31125,0.9525 -0.7975,-0.5875 -0.795,0.5875 0.31375,-0.9525 -0.80875,-0.60125 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5631"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 315.93698,541.34055 0.995,0 -0.80125,0.6 0.31125,0.9525 -0.7975,-0.5875 -0.79625,0.5875 0.31375,-0.9525 -0.80875,-0.6 0.99,0 0.30125,-0.9275 0.2925,0.9275 z"
id="path5635"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.3281,535.86193 0.9925,0 -0.8,0.60125 0.31125,0.95125 -0.7975,-0.5875 -0.7975,0.5875 0.315,-0.95125 -0.8075,-0.60125 0.99,0 0.3,-0.9275 0.29375,0.9275 z"
id="path5639"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.05485,538.1998 0.995,0 -0.80125,0.6 0.31,0.9525 -0.79625,-0.5875 -0.79625,0.5875 0.3125,-0.9525 -0.8075,-0.6 0.99125,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5643"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 303.2111,541.34843 0.99375,0 -0.8,0.6 0.31,0.9525 -0.79625,-0.58625 -0.7975,0.58625 0.31375,-0.9525 -0.80625,-0.6 0.99,0 0.3,-0.9275 0.2925,0.9275 z"
id="path5647"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.05485,544.59456 0.995,0 -0.80125,0.60125 0.31,0.9525 -0.79625,-0.5875 -0.79625,0.5875 0.3125,-0.9525 -0.8075,-0.60125 0.99125,0 0.3,-0.92625 0.2925,0.92625 z"
id="path5651"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 306.36122,546.90068 0.9925,0 -0.8,0.6 0.30875,0.95125 -0.795,-0.58625 -0.7975,0.58625 0.315,-0.95125 -0.8075,-0.6 0.99,0 0.3,-0.92875 0.29375,0.92875 z"
id="path5655"
style="fill:#fff200;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 294.96035,564.74893 28.54,0 0,-1.62875 -28.54,0 0,1.62875 z"
id="path5657"
style="fill:#254aa5;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,518.87968 c 0,0 5.95,9.26625 7.03875,10.97 1.0875,1.7025 2.33125,3.05 6.73375,3.965 4.4025,0.915 6.31875,1.3475 6.31875,1.3475 l 0,0.33 c 0,0 -2.7975,-0.585 -6.3975,-1.3725 -3.59875,-0.7875 -5.07,-1.05375 -6.71125,-3.29125 -1.36625,-1.8625 -6.9825,-9.77875 -6.9825,-9.77875 l 0,-2.17 z"
id="path5661"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,521.51443 c 0,0 6.14875,8.80875 6.965,9.88875 0.81625,1.08 1.915,2.82 6.775,3.8475 1.255,0.265 6.3675,1.27125 6.3675,1.27125 l 0,0.27875 c 0,0 -3.885,-0.74875 -6.3675,-1.27125 -2.48375,-0.5225 -5.0925,-0.99875 -6.7575,-3.09875 -1.5125,-1.9075 -6.99375,-8.9425 -6.99375,-8.9425 l 0.0112,-1.97375 z"
id="path5665"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,524.16068 c 0,0 5.79375,7.48625 6.965,8.98375 1.17,1.49625 2.78375,2.7325 6.775,3.49875 2.30125,0.4425 6.35,1.18375 6.35,1.18375 l 0,0.27875 c 0,0 -3.5475,-0.66125 -6.35,-1.16625 -2.8025,-0.505 -5.11625,-0.99375 -6.775,-2.855 -1.455,-1.63375 -6.97625,-8.055 -6.97625,-8.055 l 0.0112,-1.86875 z"
id="path5669"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54773,526.76056 c 0,0 5.86625,6.79125 6.99375,8.0025 1.75625,1.88625 2.6075,2.53625 6.7575,3.325 1.66,0.31625 6.35,1.1325 6.35,1.1325 l 0,0.295 c 0,0 -3.88375,-0.69625 -6.35,-1.13125 -2.465,-0.435 -4.55125,-0.5975 -6.775,-2.73375 -1.69375,-1.62625 -6.965,-7.1375 -6.965,-7.1375 l -0.0113,-1.7525 z"
id="path5673"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,529.46493 c 0,0 5.41625,5.56375 6.9825,7.16125 1.66125,1.69375 3.79,2.32125 6.74,2.8375 2.81625,0.4925 6.3675,1.0625 6.3675,1.0625 l 0,0.3125 c 0,0 -3.335,-0.535 -6.3675,-1.04375 -2.97375,-0.5 -5.055,-0.7775 -6.7575,-2.31625 -1.525,-1.3775 -6.965,-6.3775 -6.965,-6.3775 l 0,-1.63625 z"
id="path5677"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,531.9718 c 0,0 5.15125,4.68875 6.9825,6.29125 1.685,1.47375 3.05125,1.9325 6.7575,2.57625 3.7075,0.64375 6.35,1.04375 6.35,1.04375 l 0,0.33125 c 0,0 -3.3525,-0.54 -6.3675,-1.01 -3.015,-0.47 -4.93625,-0.655 -6.74,-2.08875 -2.08125,-1.655 -6.9825,-5.61125 -6.9825,-5.61125 l 0,-1.5325 z"
id="path5681"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54748,534.65293 c 0,0 5.87625,4.5675 6.97625,5.3675 1.1,0.80125 2.55375,1.735 6.775,2.33375 4.18625,0.5925 6.3325,0.8875 6.3325,0.8875 l 0,0.34875 c 0,0 -3.795,-0.54125 -6.3325,-0.85375 -2.53625,-0.31375 -4.48125,-0.44625 -6.7575,-1.9325 -2.21625,-1.44625 -6.9825,-4.735 -6.9825,-4.735 l -0.0113,-1.41625 z"
id="path5685"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54748,537.21793 c 0,0 5.89375,3.8475 7.01125,4.4575 1.11875,0.60875 2.43125,1.60125 6.74,2.14125 4.31,0.53875 6.3325,0.7825 6.3325,0.7825 l 0,0.33125 c 0,0 -3.565,-0.3825 -6.35,-0.67875 -2.785,-0.29625 -4.6825,-0.69625 -6.7575,-1.81125 -2.075,-1.11375 -6.965,-3.91125 -6.965,-3.91125 l -0.0113,-1.31125 z"
id="path5689"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,539.78293 c 0,0 5.21625,2.78125 6.9825,3.65 1.96875,0.96875 3.67125,1.43375 6.7575,1.7925 3.03,0.355 6.35,0.6975 6.35,0.6975 l 0,0.31375 c 0,0 -3.07,-0.3225 -6.35,-0.6275 -3.25125,-0.30125 -4.41,-0.44125 -6.7575,-1.4625 -2.1,-0.9125 -6.99375,-3.145 -6.99375,-3.145 l 0.0112,-1.21875 z"
id="path5693"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,542.39431 c 0,0 4.10375,1.7225 7,2.84875 2.85,1.10875 5.02625,1.2025 6.7575,1.39375 0.7625,0.0838 6.315,0.64375 6.315,0.64375 l 0,0.3125 c 0,0 -3.3175,-0.26 -6.3325,-0.52125 -3.015,-0.26125 -4.31625,-0.37125 -6.7575,-1.16625 -2.47125,-0.80375 -6.99375,-2.35 -6.99375,-2.35 l 0.0112,-1.16125 z"
id="path5697"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,545.04056 c 0,0 4.1625,1.265 7,1.99625 2.8375,0.73125 5.445,1.0275 6.7575,1.11375 1.3125,0.0875 6.315,0.4875 6.315,0.4875 l 0,0.29625 c 0,0 -2.8375,-0.19 -6.3325,-0.435 -2.82625,-0.1975 -5.09625,-0.40625 -6.7575,-0.76625 -1.84125,-0.39875 -6.99375,-1.60125 -6.99375,-1.60125 l 0.0112,-1.09125 z"
id="path5701"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.54773,547.65218 c 0,0 3.415,0.57625 7.01125,1.16 2.69625,0.43875 6.35,0.715 6.74,0.73125 0.39,0.0175 6.35,0.41875 6.35,0.41875 l 0,0.3125 c 0,0 -3.81375,-0.1925 -6.35,-0.33 -2.64125,-0.14375 -5.26625,-0.3 -6.7575,-0.4525 -3.34,-0.3425 -6.99375,-0.795 -6.99375,-0.795 l 0,-1.045 z"
id="path5705"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 327.55922,550.35593 c 0,0 5.36875,0.1975 7,0.2325 1.63125,0.035 13.09,0.4875 13.09,0.4875 l 0,0.31375 -20.09,-0.0125 0,-1.02125 z"
id="path5709"
style="fill:#bdbcbc;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 296.6286,553.26193 c 0,-0.0588 0.0275,-0.09 0.09,-0.09 l 1.65625,0 c 0.0538,0 0.0863,0.0312 0.0863,0.085 l 0,0.28 c 0,0.0538 -0.0225,0.0813 -0.09,0.0813 l -1.22875,0 0,0.77375 1.08875,0 c 0.0587,0 0.09,0.0275 0.09,0.0812 l 0,0.27875 c 0,0.0538 -0.0225,0.0812 -0.09,0.0812 l -1.08875,0 0,0.88625 1.26,0 c 0.0537,0 0.0813,0.0275 0.0813,0.0863 l 0,0.27375 c 0,0.0588 -0.0225,0.0812 -0.0863,0.0812 l -1.67875,0 c -0.0625,0 -0.09,-0.0275 -0.09,-0.0812 l 0,-2.8175 z"
id="path5713"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 300.5711,556.16093 -0.32,0 c -0.0675,0 -0.085,-0.0312 -0.085,-0.085 l 0,-0.14 -0.009,-0.005 c -0.17625,0.1225 -0.4825,0.27 -0.75625,0.27 -0.6075,0 -0.66625,-0.36 -0.66625,-0.8325 l 0,-1.32375 c 0,-0.0537 0.0225,-0.0888 0.085,-0.0888 l 0.32875,0 c 0.0588,0 0.0813,0.0312 0.0813,0.0888 l 0,1.265 c 0,0.27125 0.0537,0.44125 0.32875,0.44125 0.19375,0 0.49,-0.14375 0.6075,-0.2025 l 0,-1.50375 c 0,-0.0537 0.0175,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,2.03125 c 0,0.0575 -0.0225,0.085 -0.085,0.085"
id="path5717"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 301.5336,556.07543 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.325,0 c -0.0625,0 -0.085,-0.0263 -0.085,-0.085 l 0,-2.03 c 0,-0.0588 0.0225,-0.09 0.085,-0.09 l 0.32,0 c 0.0675,0 0.09,0.0362 0.09,0.09 l 0,0.1975 0.009,0.009 c 0.135,-0.125 0.455,-0.27875 0.66625,-0.31875 0.0588,-0.0138 0.0987,0 0.10875,0.0762 l 0.0312,0.30125 c 0.004,0.0638 0.009,0.09 -0.0862,0.10875 -0.25125,0.0488 -0.57125,0.13875 -0.72875,0.20625 l 0,1.45 z"
id="path5721"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 303.42835,554.3423 c -0.3825,0 -0.46875,0.24375 -0.46875,0.71125 0,0.4775 0.0862,0.71125 0.46375,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5725"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 305.76373,554.36943 c -0.185,0 -0.46875,0.13 -0.60375,0.2025 l 0,1.125 c 0.2025,0.0588 0.365,0.0763 0.51875,0.0763 0.32375,0 0.43625,-0.16625 0.43625,-0.7325 0,-0.5725 -0.1125,-0.67125 -0.35125,-0.67125 m -0.0362,1.8325 c -0.14875,0 -0.355,-0.0275 -0.5625,-0.1 l -0.005,0.005 0,0.7925 c 0,0.0487 -0.0125,0.09 -0.085,0.09 l -0.32,0 c -0.0712,0 -0.085,-0.0312 -0.085,-0.09 l 0,-2.85375 c 0,-0.0587 0.0225,-0.09 0.085,-0.09 l 0.32,0 c 0.0638,0 0.0813,0.035 0.0813,0.09 l 0,0.135 0.0138,0.009 c 0.16125,-0.1125 0.45,-0.27 0.71125,-0.27 0.58875,0 0.7425,0.445 0.7425,1.125 0,0.73375 -0.185,1.1575 -0.89625,1.1575"
id="path5729"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.4016,554.85555 0.89125,0 c 0,-0.275 -0.0725,-0.54 -0.445,-0.54 -0.33375,0 -0.42375,0.2025 -0.44625,0.54 m -0.005,0.3375 c 0.0138,0.455 0.17625,0.58125 0.545,0.58125 0.1625,0 0.41375,-0.0325 0.585,-0.05 0.0813,-0.009 0.10875,-0.009 0.1225,0.0763 l 0.0263,0.14875 c 0.0138,0.0675 0.005,0.10375 -0.0762,0.14 -0.17625,0.0675 -0.50375,0.1125 -0.725,0.1125 -0.86,0 -0.98625,-0.54875 -0.98625,-1.135 0,-0.43625 0.0813,-1.15625 0.96,-1.15625 0.805,0 0.94875,0.5225 0.9625,1.0075 0.005,0.1625 -0.04,0.275 -0.22,0.275 l -1.19375,0 z"
id="path5733"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 310.40323,555.15693 -0.54875,0 c -0.225,0 -0.37,0.0813 -0.37,0.37875 0,0.1975 0.0675,0.26125 0.28,0.26125 0.19375,0 0.4675,-0.11375 0.63875,-0.2125 l 0,-0.4275 z m 0.0275,0.7475 c -0.225,0.17125 -0.5275,0.2925 -0.82875,0.2925 -0.4775,0 -0.61625,-0.26125 -0.61625,-0.63875 -0.005,-0.5275 0.27875,-0.7525 0.84625,-0.7525 l 0.57625,0 0,-0.11625 c 0,-0.27 -0.1,-0.365 -0.46875,-0.365 -0.14875,0 -0.4325,0.0225 -0.6125,0.04 -0.09,0.0138 -0.1125,0.009 -0.125,-0.0537 l -0.0412,-0.16625 c -0.009,-0.0588 0.005,-0.095 0.10375,-0.135 0.19375,-0.0675 0.54875,-0.0987 0.76125,-0.0987 0.77875,0 0.8725,0.31875 0.8725,0.82375 l 0,0.86875 c 0,0.18375 0.0225,0.18875 0.1625,0.20625 0.0675,0.005 0.085,0.0187 0.085,0.0675 l 0,0.19 c 0,0.0488 -0.0312,0.08 -0.1075,0.0937 -0.0725,0.0138 -0.14375,0.0225 -0.21125,0.0225 -0.2125,0 -0.3425,-0.0625 -0.3875,-0.27375 l -0.009,-0.005 z"
id="path5737"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.10785,556.16093 -0.32375,0 c -0.0588,0 -0.0863,-0.0275 -0.0863,-0.085 l 0.005,-1.265 c 0,-0.26625 -0.0625,-0.44125 -0.32375,-0.44125 -0.18,0 -0.495,0.14375 -0.6175,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32,0 c -0.0625,0 -0.085,-0.0275 -0.085,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,0.13625 c 0.005,0 0.01,0.004 0.0138,0.004 0.16625,-0.11625 0.48125,-0.27 0.75625,-0.27 0.6075,0 0.6625,0.40125 0.6625,0.855 l 0,1.30625 c 0,0.0538 -0.0188,0.085 -0.0863,0.085"
id="path5741"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 297.80335,557.89043 c 0.22,0 0.585,0.0312 0.82375,0.13 0.0725,0.0325 0.0987,0.0688 0.085,0.14 l -0.04,0.185 c -0.0138,0.0538 -0.0362,0.0763 -0.1175,0.0675 -0.22,-0.0275 -0.49,-0.0587 -0.72375,-0.0587 -0.6125,0 -0.7025,0.495 -0.7025,1.08 0,0.59 0.1125,1.05375 0.7025,1.05375 0.26,0 0.48125,-0.0275 0.72375,-0.0588 0.0863,-0.009 0.10375,0.0138 0.1225,0.0725 l 0.035,0.17125 c 0.0187,0.0713 -0.004,0.1125 -0.0763,0.14375 -0.22,0.0937 -0.6125,0.135 -0.8325,0.135 -1.00375,0 -1.215,-0.7425 -1.215,-1.50875 0,-0.76875 0.18875,-1.5525 1.215,-1.5525"
id="path5745"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 299.73385,559.0923 c -0.3825,0 -0.46875,0.24375 -0.46875,0.71125 0,0.4775 0.0863,0.71125 0.46375,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5749"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 304.12648,560.91093 -0.32375,0 c -0.0637,0 -0.0863,-0.0275 -0.0863,-0.085 l 0,-1.27875 c 0,-0.33375 -0.08,-0.4275 -0.30625,-0.4275 -0.16625,0 -0.43625,0.13 -0.575,0.2025 0,0.045 0.004,0.12625 0.004,0.22875 l 0,1.275 c 0,0.0538 -0.0175,0.085 -0.085,0.085 l -0.32875,0 c -0.0587,0 -0.0763,-0.0275 -0.0763,-0.085 l 0,-1.30125 c 0,-0.275 -0.0725,-0.405 -0.2975,-0.405 -0.1575,0 -0.41,0.1125 -0.58125,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32375,0 c -0.0588,0 -0.0813,-0.0275 -0.0813,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.0813,-0.0888 l 0.31875,0 c 0.0675,0 0.09,0.035 0.09,0.0888 l 0,0.13125 0.005,0.005 c 0.175,-0.1225 0.4225,-0.2575 0.67125,-0.26625 0.26,0 0.47625,0.0538 0.61625,0.315 0.225,-0.16625 0.50375,-0.315 0.7925,-0.315 0.59375,0 0.6525,0.3875 0.6525,0.8375 l 0,1.32375 c 0,0.0538 -0.0188,0.085 -0.0813,0.085"
id="path5753"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 307.65447,560.91093 -0.32375,0 c -0.0637,0 -0.0863,-0.0275 -0.0863,-0.085 l 0,-1.27875 c 0,-0.33375 -0.08,-0.4275 -0.30625,-0.4275 -0.16625,0 -0.43625,0.13 -0.575,0.2025 0,0.045 0.004,0.12625 0.004,0.22875 l 0,1.275 c 0,0.0538 -0.0175,0.085 -0.085,0.085 l -0.32875,0 c -0.0587,0 -0.0763,-0.0275 -0.0763,-0.085 l 0,-1.30125 c 0,-0.275 -0.0725,-0.405 -0.2975,-0.405 -0.1575,0 -0.41,0.1125 -0.58125,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32375,0 c -0.0588,0 -0.0813,-0.0275 -0.0813,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.0813,-0.0888 l 0.31875,0 c 0.0675,0 0.09,0.035 0.09,0.0888 l 0,0.13125 0.005,0.005 c 0.175,-0.1225 0.4225,-0.2575 0.67125,-0.26625 0.26,0 0.47625,0.0538 0.61625,0.315 0.225,-0.16625 0.50375,-0.315 0.7925,-0.315 0.59375,0 0.6525,0.3875 0.6525,0.8375 l 0,1.32375 c 0,0.0538 -0.0188,0.085 -0.0813,0.085"
id="path5757"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 308.59422,560.82543 c 0,0.0488 -0.0175,0.085 -0.0813,0.085 l -0.32,0 c -0.0625,0 -0.09,-0.0263 -0.09,-0.085 l 0,-2.035 c 0,-0.0625 0.0275,-0.085 0.09,-0.085 l 0.32,0 c 0.0638,0 0.0813,0.0362 0.0813,0.085 l 0,2.035 z m -0.23875,-2.44375 c -0.23375,0 -0.265,-0.13125 -0.265,-0.26125 0,-0.14375 0.0488,-0.2575 0.265,-0.2575 0.22125,0 0.26625,0.10375 0.26625,0.2575 0,0.13875 -0.0412,0.26125 -0.26625,0.26125"
id="path5761"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 309.71023,560.94705 c -0.225,0 -0.52625,-0.0312 -0.6975,-0.0987 -0.09,-0.0362 -0.10875,-0.0775 -0.095,-0.14875 l 0.0312,-0.14875 c 0.0138,-0.0725 0.045,-0.0762 0.1175,-0.0675 0.1975,0.0312 0.48625,0.0538 0.63875,0.0538 0.28875,0 0.40625,-0.0763 0.40625,-0.25625 0,-0.2075 -0.0775,-0.2525 -0.36125,-0.2925 -0.44125,-0.0638 -0.8275,-0.1575 -0.8275,-0.64875 0,-0.445 0.34125,-0.67875 0.84625,-0.67875 0.18375,0 0.495,0.0263 0.68375,0.0987 0.0763,0.0312 0.10875,0.0675 0.095,0.135 l -0.0362,0.16125 c -0.0138,0.0638 -0.04,0.0725 -0.12125,0.0638 -0.19375,-0.0225 -0.44625,-0.05 -0.6125,-0.05 -0.2875,0 -0.355,0.0812 -0.355,0.2525 0,0.175 0.1075,0.1975 0.3825,0.2425 0.4275,0.0637 0.81375,0.14875 0.81375,0.685 0,0.52625 -0.445,0.6975 -0.90875,0.6975"
id="path5765"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 311.59573,560.94705 c -0.225,0 -0.52625,-0.0312 -0.6975,-0.0987 -0.09,-0.0362 -0.10875,-0.0775 -0.095,-0.14875 l 0.0312,-0.14875 c 0.0138,-0.0725 0.045,-0.0762 0.1175,-0.0675 0.1975,0.0312 0.48625,0.0538 0.63875,0.0538 0.28875,0 0.40625,-0.0763 0.40625,-0.25625 0,-0.2075 -0.0775,-0.2525 -0.36125,-0.2925 -0.44125,-0.0638 -0.8275,-0.1575 -0.8275,-0.64875 0,-0.445 0.34125,-0.67875 0.84625,-0.67875 0.18375,0 0.495,0.0263 0.68375,0.0987 0.0763,0.0312 0.10875,0.0675 0.095,0.135 l -0.0362,0.16125 c -0.0137,0.0638 -0.04,0.0725 -0.12125,0.0638 -0.19375,-0.0225 -0.44625,-0.05 -0.6125,-0.05 -0.2875,0 -0.355,0.0812 -0.355,0.2525 0,0.175 0.1075,0.1975 0.3825,0.2425 0.4275,0.0637 0.81375,0.14875 0.81375,0.685 0,0.52625 -0.445,0.6975 -0.90875,0.6975"
id="path5769"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 313.29685,560.82543 c 0,0.0488 -0.0175,0.085 -0.0813,0.085 l -0.32,0 c -0.0625,0 -0.09,-0.0263 -0.09,-0.085 l 0,-2.035 c 0,-0.0625 0.0275,-0.085 0.09,-0.085 l 0.32,0 c 0.0638,0 0.0813,0.0362 0.0813,0.085 l 0,2.035 z m -0.23875,-2.44375 c -0.23375,0 -0.265,-0.13125 -0.265,-0.26125 0,-0.14375 0.0488,-0.2575 0.265,-0.2575 0.22125,0 0.26625,0.10375 0.26625,0.2575 0,0.13875 -0.0412,0.26125 -0.26625,0.26125"
id="path5773"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 314.59735,559.0923 c -0.3825,0 -0.4675,0.24375 -0.4675,0.71125 0,0.4775 0.085,0.71125 0.4625,0.71125 0.41,0 0.49125,-0.23 0.49125,-0.71125 0,-0.4775 -0.0763,-0.71125 -0.48625,-0.71125 m -0.005,1.855 c -0.90375,0 -0.9625,-0.6625 -0.9625,-1.175 0,-0.42375 0.0937,-1.1125 0.9625,-1.1125 0.87375,0 0.995,0.58125 0.995,1.1125 0,0.5125 -0.0625,1.175 -0.995,1.175"
id="path5777"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
<path
d="m 317.66673,560.91093 -0.32375,0 c -0.0588,0 -0.0863,-0.0275 -0.0863,-0.085 l 0.005,-1.265 c 0,-0.26625 -0.0625,-0.44125 -0.32375,-0.44125 -0.18,0 -0.495,0.14375 -0.6175,0.2025 l 0,1.50375 c 0,0.0538 -0.0225,0.085 -0.085,0.085 l -0.32,0 c -0.0625,0 -0.085,-0.0275 -0.085,-0.085 l 0,-2.03125 c 0,-0.0575 0.0225,-0.0888 0.085,-0.0888 l 0.32,0 c 0.0625,0 0.085,0.0312 0.085,0.0888 l 0,0.13625 c 0.005,0 0.009,0.004 0.0138,0.004 0.16625,-0.11625 0.4825,-0.27 0.75625,-0.27 0.6075,0 0.6625,0.40125 0.6625,0.855 l 0,1.30625 c 0,0.0538 -0.0187,0.085 -0.0863,0.085"
id="path5781"
style="fill:#5a5758;fill-opacity:1;fill-rule:nonzero;stroke:none" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 30 KiB

View file

@ -1,157 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
version="1.1"
width="400"
height="105"
id="svg2985"
xml:space="preserve"><metadata
id="metadata2991"><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="defs2989"><linearGradient
x1="-128"
y1="0"
x2="128"
y2="0"
id="linearGradient3509"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,0.0852966,2.3663025,0,343.026,855.076)"><stop
id="stop3511"
style="stop-color:white;stop-opacity:1"
offset="0" /><stop
id="stop3513"
style="stop-color:#f9ac73;stop-opacity:1"
offset="0.5" /><stop
id="stop3515"
style="stop-color:#f36717;stop-opacity:1"
offset="1" /></linearGradient><linearGradient
x1="-128"
y1="0"
x2="128"
y2="0"
id="linearGradient3593"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,0.0852966,2.3663025,0,-260.886,855.076)"><stop
id="stop3595"
style="stop-color:white;stop-opacity:1"
offset="0" /><stop
id="stop3597"
style="stop-color:#f9ac73;stop-opacity:1"
offset="0.5" /><stop
id="stop3599"
style="stop-color:#f36717;stop-opacity:1"
offset="1" /></linearGradient></defs><g
transform="matrix(1.2232225,0,0,-1.2234375,0,105)"
id="g2993"><g
transform="matrix(2.6332484,0,0,2.6332484,-1060.8763,-547.07195)"
id="g5001"
style="fill:#3f80b0;fill-opacity:1"><path
d="m 483.97399,225.734 c 0.45,0 0.601,0.014 0.779,0.079 0.25,0.093 0.4,0.329 0.4,0.629 0,0.243 -0.107,0.443 -0.307,0.558 -0.186,0.107 -0.315,0.121 -0.936,0.121 l -0.265,0 0,-1.387 0.329,0 z m -0.058,2.166 c 0.844,0 1.165,-0.05 1.495,-0.228 0.429,-0.229 0.679,-0.687 0.679,-1.237 0,-0.622 -0.286,-1.073 -0.844,-1.323 l 1.094,-1.981 -1.065,0 -0.973,1.824 -0.657,0 0,-1.824 -0.916,0 0,4.769 1.187,0"
id="path3313"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 488.90699,225.262 c -0.071,0.458 -0.286,0.679 -0.672,0.679 -0.386,0 -0.63,-0.221 -0.744,-0.679 l 1.416,0 z m -1.437,-0.643 c 0.028,-0.558 0.329,-0.873 0.822,-0.873 0.322,0 0.544,0.122 0.658,0.379 l 0.779,-0.036 c -0.15,-0.65 -0.708,-1.051 -1.459,-1.051 -1.029,0 -1.68,0.68 -1.68,1.752 0,1.101 0.658,1.831 1.652,1.831 0.958,0 1.552,-0.701 1.552,-1.831 l 0,-0.171 -2.324,0"
id="path3317"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 492.324,225.498 c -0.043,0.322 -0.214,0.472 -0.543,0.472 -0.272,0 -0.472,-0.15 -0.472,-0.351 0,-0.1 0.05,-0.193 0.143,-0.243 0.1,-0.064 0.172,-0.086 0.686,-0.236 0.515,-0.15 0.73,-0.257 0.866,-0.436 0.128,-0.15 0.192,-0.35 0.192,-0.572 0,-0.686 -0.507,-1.094 -1.38,-1.094 -0.993,0 -1.508,0.422 -1.508,1.23 l 0.829,0 c 0.029,-0.4 0.222,-0.565 0.644,-0.565 0.336,0 0.536,0.143 0.536,0.365 0,0.136 -0.057,0.2 -0.243,0.279 -0.1,0.043 -0.1,0.043 -0.7,0.221 -0.372,0.115 -0.566,0.208 -0.701,0.343 -0.15,0.151 -0.236,0.372 -0.236,0.615 0,0.658 0.543,1.102 1.358,1.102 0.83,0 1.33,-0.415 1.38,-1.13 l -0.851,0"
id="path3321"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 496.057,225.262 c -0.071,0.458 -0.286,0.679 -0.672,0.679 -0.386,0 -0.63,-0.221 -0.744,-0.679 l 1.416,0 z m -1.437,-0.643 c 0.028,-0.558 0.329,-0.873 0.822,-0.873 0.322,0 0.544,0.122 0.658,0.379 l 0.779,-0.036 c -0.15,-0.65 -0.708,-1.051 -1.459,-1.051 -1.029,0 -1.68,0.68 -1.68,1.752 0,1.101 0.658,1.831 1.652,1.831 0.958,0 1.552,-0.701 1.552,-1.831 l 0,-0.171 -2.324,0"
id="path3325"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 499.525,224.747 c -0.579,-0.071 -0.801,-0.129 -0.951,-0.236 -0.129,-0.093 -0.201,-0.229 -0.201,-0.372 0,-0.236 0.215,-0.407 0.515,-0.407 0.265,0 0.487,0.128 0.573,0.329 0.05,0.1 0.064,0.243 0.064,0.493 l 0,0.193 z m -1.931,0.765 c 0.05,0.386 0.158,0.601 0.4,0.786 0.258,0.194 0.644,0.301 1.081,0.301 0.585,0 1.008,-0.186 1.164,-0.508 0.101,-0.2 0.137,-0.407 0.137,-0.836 l 0,-1.366 c 0,-0.407 0.028,-0.579 0.114,-0.758 l -0.801,0 c -0.035,0.136 -0.042,0.215 -0.042,0.386 -0.186,-0.307 -0.487,-0.457 -0.937,-0.457 -0.779,0 -1.237,0.357 -1.237,0.965 0,0.472 0.272,0.829 0.772,1.015 0.308,0.122 0.357,0.129 1.28,0.293 l 0,0.057 c 0,0.372 -0.143,0.515 -0.515,0.515 -0.336,0 -0.529,-0.128 -0.579,-0.393 l -0.837,0"
id="path3329"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 502.128,226.527 c 0.036,-0.15 0.057,-0.336 0.057,-0.529 0,-0.036 0,-0.1 -0.008,-0.179 0.273,0.551 0.566,0.78 0.981,0.78 0.093,0 0.121,-0.008 0.264,-0.043 l 0,-0.894 c -0.165,0.107 -0.343,0.164 -0.53,0.164 -0.464,0 -0.679,-0.357 -0.679,-1.115 l 0,-1.58 -0.879,0 0,2.352 c 0,0.15 0,0.351 -0.007,0.601 0,0.193 -0.007,0.257 -0.036,0.443 l 0.837,0"
id="path3333"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 505.953,225.40499 c -0.051,0.336 -0.237,0.508 -0.544,0.508 -0.45,0 -0.743,-0.429 -0.743,-1.087 0,-0.679 0.272,-1.08 0.729,-1.08 0.351,0 0.543,0.194 0.593,0.594 l 0.851,0 c -0.043,-0.78 -0.622,-1.301 -1.444,-1.301 -0.973,0 -1.63,0.722 -1.63,1.787 0,1.08 0.657,1.795 1.644,1.795 0.808,0 1.302,-0.429 1.409,-1.216 l -0.865,0"
id="path3337"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 508.40499,227.929 0,-1.773 c 0.265,0.293 0.586,0.443 0.98,0.443 0.429,0 0.815,-0.193 0.993,-0.5 0.129,-0.215 0.158,-0.415 0.158,-1.009 l 0,-1.959 -0.88,0 0,1.766 c 0,0.343 -0.021,0.508 -0.093,0.644 -0.093,0.186 -0.264,0.286 -0.486,0.286 -0.25,0 -0.479,-0.143 -0.586,-0.372 -0.057,-0.136 -0.086,-0.307 -0.086,-0.586 l 0,-1.738 -0.879,0 0,4.798 0.879,0"
id="path3341"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 484.302,218.26899 -0.608,-1.945 1.223,0 -0.615,1.945 z m 0.465,1.051 1.622,-4.769 -0.95,0 -0.293,0.994 -1.681,0 -0.3,-0.994 -0.936,0 1.608,4.769 0.93,0"
id="path3345"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 486.955,214.551 0.879,0 0,4.798 -0.879,0 0,-4.798 z"
id="path3347"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 488.82,214.551 0.88,0 0,4.798 -0.88,0 0,-4.798 z"
id="path3349"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 490.68701,217.94799 0.879,0 0,-3.397 -0.879,0 0,3.397 z m 0.879,0 z m 0.071,0.958 c 0,-0.315 -0.2,-0.515 -0.507,-0.515 -0.315,0 -0.514,0.193 -0.514,0.501 0,0.314 0.214,0.521 0.528,0.521 0.293,0 0.493,-0.207 0.493,-0.507"
id="path3353"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 494.39801,216.167 c -0.579,-0.071 -0.801,-0.128 -0.952,-0.236 -0.128,-0.093 -0.2,-0.229 -0.2,-0.371 0,-0.237 0.215,-0.409 0.515,-0.409 0.265,0 0.486,0.129 0.573,0.33 0.049,0.1 0.064,0.243 0.064,0.493 l 0,0.193 z m -1.931,0.765 c 0.05,0.386 0.157,0.601 0.4,0.787 0.258,0.193 0.644,0.3 1.081,0.3 0.585,0 1.008,-0.186 1.164,-0.508 0.101,-0.2 0.137,-0.407 0.137,-0.836 l 0,-1.366 c 0,-0.407 0.028,-0.579 0.114,-0.758 l -0.801,0 c -0.036,0.136 -0.042,0.215 -0.042,0.387 -0.186,-0.308 -0.487,-0.458 -0.938,-0.458 -0.779,0 -1.237,0.357 -1.237,0.965 0,0.472 0.273,0.829 0.773,1.015 0.307,0.122 0.357,0.129 1.28,0.293 l 0,0.057 c 0,0.373 -0.143,0.516 -0.515,0.516 -0.336,0 -0.529,-0.129 -0.579,-0.394 l -0.837,0"
id="path3357"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 496.957,217.94799 c 0.05,-0.107 0.072,-0.25 0.072,-0.436 0.25,0.336 0.593,0.507 1.008,0.507 0.422,0 0.793,-0.186 0.973,-0.493 0.128,-0.229 0.156,-0.4 0.156,-1.015 l 0,-1.96 -0.879,0 0,1.766 c 0,0.358 -0.022,0.53 -0.085,0.659 -0.086,0.178 -0.251,0.271 -0.466,0.271 -0.25,0 -0.471,-0.136 -0.564,-0.365 -0.065,-0.129 -0.079,-0.271 -0.079,-0.593 l 0,-1.738 -0.88,0 0,2.181 c 0,0.823 -0.007,0.887 -0.107,1.216 l 0.851,0"
id="path3361"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 502.06201,216.82499 c -0.05,0.336 -0.236,0.508 -0.543,0.508 -0.45,0 -0.743,-0.43 -0.743,-1.087 0,-0.679 0.271,-1.08 0.729,-1.08 0.35,0 0.543,0.193 0.593,0.593 l 0.851,0 c -0.043,-0.779 -0.622,-1.3 -1.444,-1.3 -0.973,0 -1.631,0.721 -1.631,1.787 0,1.08 0.658,1.795 1.645,1.795 0.808,0 1.301,-0.43 1.408,-1.216 l -0.865,0"
id="path3365"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 505.74501,216.682 c -0.072,0.458 -0.287,0.679 -0.673,0.679 -0.386,0 -0.629,-0.221 -0.743,-0.679 l 1.416,0 z m -1.438,-0.643 c 0.029,-0.559 0.329,-0.873 0.823,-0.873 0.322,0 0.543,0.122 0.658,0.379 l 0.779,-0.036 c -0.151,-0.651 -0.708,-1.051 -1.459,-1.051 -1.03,0 -1.68,0.679 -1.68,1.752 0,1.101 0.658,1.83 1.652,1.83 0.958,0 1.551,-0.701 1.551,-1.83 l 0,-0.171 -2.324,0"
id="path3369"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 484.47599,236.28199 0,-3.797 c 0,-0.879 -0.029,-1.094 -0.172,-1.358 -0.221,-0.393 -0.665,-0.572 -1.43,-0.572 -0.057,0 -0.15,0 -0.271,0.007 l 0,0.765 0.156,0 c 0.415,0.007 0.637,0.072 0.723,0.222 0.071,0.107 0.079,0.214 0.079,0.915 l 0,3.818 0.915,0"
id="path3373"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 488.122,235.917 c 0,-0.265 -0.215,-0.486 -0.486,-0.486 -0.265,0 -0.486,0.221 -0.486,0.486 0,0.272 0.215,0.486 0.493,0.486 0.264,0 0.479,-0.222 0.479,-0.486 z m -1.273,0 c 0,-0.265 -0.214,-0.486 -0.486,-0.486 -0.264,0 -0.486,0.221 -0.486,0.486 0,0.272 0.214,0.486 0.493,0.486 0.265,0 0.479,-0.222 0.479,-0.486 z m -0.479,-1.008 0,-1.931 c 0,-0.536 0.172,-0.765 0.58,-0.765 0.45,0 0.672,0.286 0.672,0.88 l 0,1.816 0.879,0 0,-2.345 c 0,-0.751 0,-0.751 0.086,-1.051 l -0.829,0 c -0.036,0.078 -0.065,0.236 -0.072,0.393 -0.265,-0.336 -0.536,-0.465 -0.951,-0.465 -0.465,0 -0.865,0.208 -1.065,0.544 -0.122,0.2 -0.179,0.522 -0.179,0.944 l 0,1.98 0.879,0"
id="path3377"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 489.488,231.513 0.88,0 0,4.798 -0.88,0 0,-4.798 z"
id="path3379"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 491.354,234.90901 0.879,0 0,-3.396 -0.879,0 0,3.396 z m 0.879,0 z m 0.072,0.958 c 0,-0.314 -0.2,-0.515 -0.508,-0.515 -0.315,0 -0.514,0.193 -0.514,0.501 0,0.314 0.214,0.522 0.529,0.522 0.293,0 0.493,-0.208 0.493,-0.508"
id="path3383"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 495.151,233.787 c -0.051,0.336 -0.237,0.508 -0.543,0.508 -0.451,0 -0.744,-0.429 -0.744,-1.087 0,-0.679 0.272,-1.08 0.729,-1.08 0.351,0 0.544,0.193 0.593,0.594 l 0.851,0 c -0.043,-0.78 -0.622,-1.301 -1.444,-1.301 -0.972,0 -1.63,0.722 -1.63,1.787 0,1.08 0.658,1.795 1.645,1.795 0.807,0 1.301,-0.429 1.408,-1.216 l -0.865,0"
id="path3387"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 497.602,236.311 0,-1.773 c 0.265,0.293 0.586,0.443 0.98,0.443 0.429,0 0.815,-0.193 0.993,-0.5 0.129,-0.215 0.158,-0.415 0.158,-1.009 l 0,-1.959 -0.88,0 0,1.766 c 0,0.343 -0.021,0.508 -0.093,0.644 -0.092,0.186 -0.264,0.286 -0.485,0.286 -0.251,0 -0.479,-0.143 -0.587,-0.372 -0.057,-0.136 -0.086,-0.307 -0.086,-0.586 l 0,-1.738 -0.879,0 0,4.798 0.879,0"
id="path3391"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 503.58,235.231 -0.607,-1.945 1.222,0 -0.615,1.945 z m 0.465,1.051 1.623,-4.769 -0.951,0 -0.293,0.994 -1.68,0 -0.3,-0.994 -0.937,0 1.609,4.769 0.929,0"
id="path3395"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 508.03401,233.12899 c -0.579,-0.071 -0.801,-0.129 -0.951,-0.236 -0.129,-0.093 -0.2,-0.229 -0.2,-0.372 0,-0.236 0.214,-0.407 0.515,-0.407 0.264,0 0.485,0.129 0.572,0.329 0.05,0.1 0.064,0.243 0.064,0.493 l 0,0.193 z m -1.93,0.765 c 0.05,0.386 0.156,0.601 0.4,0.786 0.257,0.194 0.644,0.301 1.08,0.301 0.586,0 1.008,-0.186 1.165,-0.508 0.1,-0.2 0.136,-0.407 0.136,-0.836 l 0,-1.366 c 0,-0.407 0.028,-0.579 0.114,-0.758 l -0.801,0 c -0.035,0.136 -0.042,0.215 -0.042,0.386 -0.186,-0.307 -0.487,-0.457 -0.938,-0.457 -0.778,0 -1.236,0.357 -1.236,0.965 0,0.472 0.272,0.829 0.772,1.015 0.308,0.122 0.358,0.129 1.28,0.293 l 0,0.057 c 0,0.372 -0.143,0.515 -0.515,0.515 -0.336,0 -0.529,-0.128 -0.578,-0.393 l -0.837,0"
id="path3399"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 511.781,233.787 c -0.05,0.336 -0.236,0.508 -0.543,0.508 -0.45,0 -0.744,-0.429 -0.744,-1.087 0,-0.679 0.272,-1.08 0.73,-1.08 0.35,0 0.543,0.193 0.593,0.594 l 0.851,0 c -0.043,-0.78 -0.622,-1.301 -1.444,-1.301 -0.973,0 -1.631,0.722 -1.631,1.787 0,1.08 0.658,1.795 1.645,1.795 0.808,0 1.301,-0.429 1.408,-1.216 l -0.865,0"
id="path3403"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 514.23201,236.311 0,-1.773 c 0.265,0.293 0.587,0.443 0.98,0.443 0.429,0 0.815,-0.193 0.993,-0.5 0.13,-0.215 0.158,-0.415 0.158,-1.009 l 0,-1.959 -0.879,0 0,1.766 c 0,0.343 -0.022,0.508 -0.093,0.644 -0.093,0.186 -0.265,0.286 -0.486,0.286 -0.251,0 -0.479,-0.143 -0.587,-0.372 -0.057,-0.136 -0.086,-0.307 -0.086,-0.586 l 0,-1.738 -0.879,0 0,4.798 0.879,0"
id="path3407"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 519.38101,233.64399 c -0.071,0.458 -0.287,0.679 -0.672,0.679 -0.387,0 -0.629,-0.221 -0.744,-0.679 l 1.416,0 z m -1.438,-0.643 c 0.029,-0.558 0.33,-0.873 0.823,-0.873 0.322,0 0.544,0.122 0.657,0.379 l 0.78,-0.035 c -0.15,-0.651 -0.708,-1.052 -1.459,-1.052 -1.029,0 -1.68,0.68 -1.68,1.752 0,1.101 0.658,1.831 1.652,1.831 0.958,0 1.552,-0.701 1.552,-1.831 l 0,-0.171 -2.325,0"
id="path3411"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 521.747,234.90901 c 0.049,-0.107 0.071,-0.25 0.071,-0.436 0.25,0.336 0.594,0.508 1.009,0.508 0.421,0 0.793,-0.186 0.972,-0.494 0.129,-0.228 0.157,-0.4 0.157,-1.015 l 0,-1.959 -0.879,0 0,1.766 c 0,0.357 -0.022,0.529 -0.086,0.658 -0.086,0.178 -0.25,0.271 -0.465,0.271 -0.25,0 -0.472,-0.136 -0.565,-0.364 -0.064,-0.129 -0.078,-0.272 -0.078,-0.594 l 0,-1.737 -0.88,0 0,2.181 c 0,0.822 -0.007,0.886 -0.106,1.215 l 0.85,0"
id="path3415"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 414.82,236.759 0,-17.911 c 0,-4.149 -0.135,-5.162 -0.81,-6.409 -1.045,-1.855 -3.137,-2.698 -6.747,-2.698 -0.269,0 -0.707,0 -1.281,0.033 l 0,3.609 0.742,0 c 1.956,0.034 3.002,0.338 3.408,1.047 0.337,0.505 0.37,1.01 0.37,4.317 l 0,18.012 4.318,0"
id="path3419"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 426.61599,231.8 -2.867,-9.175 5.769,0 -2.902,9.175 z m 2.194,4.959 7.656,-22.5 -4.485,0 -1.385,4.689 -7.926,0 -1.417,-4.689 -4.419,0 7.591,22.5 4.385,0"
id="path3423"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 443.721,226.53801 c 2.126,0 2.834,0.068 3.677,0.371 1.181,0.438 1.889,1.551 1.889,2.969 0,1.146 -0.506,2.091 -1.45,2.631 -0.877,0.506 -1.485,0.573 -4.419,0.573 l -1.248,0 0,-6.544 1.551,0 z m -0.27,10.221 c 3.98,0 5.499,-0.236 7.051,-1.08 2.023,-1.078 3.204,-3.238 3.204,-5.835 0,-2.935 -1.349,-5.06 -3.98,-6.24 l 5.16,-9.345 -5.025,0 -4.588,8.603 -3.103,0 0,-8.603 -4.318,0 0,22.5 5.599,0"
id="path3427"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 465.72399,231.8 -2.867,-9.175 5.768,0 -2.901,9.175 z m 2.193,4.959 7.657,-22.5 -4.486,0 -1.384,4.689 -7.926,0 -1.416,-4.689 -4.421,0 7.591,22.5 4.385,0"
id="path3431"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 478.65901,238.25801 0,-25.377"
id="path3435"
style="fill:#3f80b0;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
d="m 478.65901,238.25801 0,-25.377"
id="path3439"
style="fill:#3f80b0;fill-opacity:1;stroke:#467ab0;stroke-width:0.20886751;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /></g></g></svg>

Before

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,81 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
xml:space="preserve"
width="211.29625"
height="75.737503"
viewBox="0 0 211.29625 75.7375"
sodipodi:docname="_Logo_RESERVE_Vector.svg"><metadata
id="metadata8"><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="defs6"><clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath16"><path
d="m 0,0 595.276,0 0,841.89 L 0,841.89 0,0 Z"
id="path18"
inkscape:connector-curvature="0" /></clipPath><linearGradient
x1="0"
y1="0"
x2="1"
y2="0"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(96.590553,96.590553,96.590553,-96.590553,200.12012,709.50873)"
spreadMethod="pad"
id="linearGradient38"><stop
style="stop-opacity:1;stop-color:#0075be"
offset="0"
id="stop40" /><stop
style="stop-opacity:1;stop-color:#09255c"
offset="1"
id="stop42" /></linearGradient></defs><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1440"
inkscape:window-height="856"
id="namedview4"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="4.8415436"
inkscape:cx="105.64813"
inkscape:cy="37.86875"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g10" /><g
id="g10"
inkscape:groupmode="layer"
inkscape:label="styles_RESERVE_1612"
transform="matrix(1.25,0,0,-1.25,-266.22375,946.0625)"><path
d="m 262.678,739.468 7.476,0 0,-14.898 -7.476,0 0,14.898 z m 24.848,10.759 7.477,0 0,-25.657 -7.477,0 0,25.657 z m -12.426,6.622 7.478,0 0,-32.279 -7.478,0 0,32.279 z m 24.851,-3.313 7.476,0 0,-28.966 -7.476,0 0,28.966 z m 24.848,-14.068 7.476,0 0,-14.898 -7.476,0 0,14.898 z m -12.425,4.137 7.477,0 0,-19.035 -7.477,0 0,19.035 z m 37.272,0.004 7.474,0 0,-19.039 -7.474,0 0,19.039 z m -12.422,9.931 7.474,0 0,-28.97 -7.474,0 0,28.97 z m 37.271,-17.381 7.476,0 0,-11.589 -7.476,0 0,11.589 z m -12.424,20.691 7.476,0 0,-32.28 -7.476,0 0,32.28 z m -136.666,-13.241 7.477,0 0,-19.039 -7.477,0 0,19.039 z m -12.426,6.618 7.478,0 0,-25.657 -7.478,0 0,25.657 z m 37.274,-6.618 7.477,0 0,-19.039 -7.477,0 0,19.039 z m -12.423,13.241 7.475,0 0,-32.28 -7.475,0 0,32.28 z"
style="fill:#b7d69a;fill-opacity:1;fill-rule:nonzero;stroke:none"
id="path24"
inkscape:connector-curvature="0" /><g
id="g26"><g
id="g28"><g
id="g34"><g
id="g36"><path
d="m 268.367,720.677 c -1.361,-0.349 -2.515,-0.85 -3.465,-1.503 l 0,0 c -0.947,-0.654 -1.673,-1.455 -2.173,-2.403 l 0,0 c -0.5,-0.948 -0.752,-2.022 -0.752,-3.219 l 0,0 c 0,-2.442 0.758,-4.311 2.271,-5.607 l 0,0 c 1.517,-1.297 3.918,-2.131 7.206,-2.5 l 0,0 c 1.354,-0.175 2.305,-0.408 2.864,-0.703 l 0,0 c 0.555,-0.294 0.832,-0.725 0.832,-1.291 l 0,0 c 0,-0.502 -0.267,-0.845 -0.8,-1.03 l 0,0 c -0.532,-0.186 -1.487,-0.277 -2.863,-0.277 l 0,0 c -1.328,0 -2.76,0.085 -4.295,0.261 l 0,0 c -1.538,0.174 -3.349,0.469 -5.443,0.882 l 0,0 0,-6.08 c 0.761,-0.131 1.59,-0.257 2.485,-0.376 l 0,0 c 0.892,-0.119 1.796,-0.222 2.711,-0.31 l 0,0 c 0.915,-0.086 1.809,-0.151 2.681,-0.195 l 0,0 c 0.872,-0.044 1.667,-0.066 2.387,-0.066 l 0,0 c 3.814,0 6.641,0.649 8.48,1.945 l 0,0 c 1.843,1.295 2.764,3.295 2.764,5.998 l 0,0 c 0,2.069 -0.72,3.677 -2.157,4.821 l 0,0 c -1.439,1.143 -3.771,1.965 -6.999,2.467 l 0,0 c -1.477,0.218 -2.519,0.495 -3.118,0.836 l 0,0 c -0.599,0.335 -0.898,0.821 -0.898,1.453 l 0,0 c 0,1.024 1.274,1.535 3.824,1.535 l 0,0 c 1.197,0 2.516,-0.104 3.955,-0.31 l 0,0 c 1.437,-0.206 2.766,-0.495 3.988,-0.865 l 0,0 0,6.045 c -1.113,0.198 -2.087,0.36 -2.929,0.492 l 0,0 c -0.837,0.129 -1.6,0.234 -2.286,0.31 l 0,0 c -0.685,0.075 -1.319,0.13 -1.896,0.163 l 0,0 c -0.577,0.033 -1.157,0.049 -1.748,0.049 l 0,0 c -1.722,0 -3.263,-0.173 -4.626,-0.522 m 41.561,0 0,-24.027 7.683,0 0,7.225 0.947,0 c 0.435,0 0.86,0.005 1.276,0.018 l 0,0 c 0.412,0.01 0.815,0.026 1.206,0.047 l 0,0 4.087,-7.29 8.793,0 -6.145,8.73 c 3.181,1.439 4.774,3.834 4.774,7.19 l 0,0 c 0,1.503 -0.274,2.8 -0.819,3.89 l 0,0 c -0.544,1.088 -1.389,1.983 -2.534,2.681 l 0,0 c -1.143,0.696 -2.602,1.209 -4.379,1.536 l 0,0 c -1.775,0.326 -3.907,0.489 -6.39,0.489 l 0,0 c -2.571,0 -5.406,-0.163 -8.499,-0.489 m 8.549,-10.984 c -0.316,0.022 -0.604,0.077 -0.866,0.164 l 0,0 0,5.362 c 0.347,0.043 0.795,0.075 1.337,0.096 l 0,0 c 0.548,0.022 1.004,0.033 1.374,0.033 l 0,0 c 0.872,0 1.597,-0.043 2.176,-0.129 l 0,0 c 0.577,-0.088 1.03,-0.236 1.354,-0.443 l 0,0 c 0.327,-0.208 0.556,-0.496 0.687,-0.865 l 0,0 c 0.132,-0.372 0.197,-0.829 0.197,-1.373 l 0,0 c 0,-0.566 -0.076,-1.03 -0.229,-1.39 l 0,0 c -0.152,-0.359 -0.41,-0.654 -0.767,-0.882 l 0,0 c -0.362,-0.23 -0.852,-0.386 -1.473,-0.475 l 0,0 c -0.621,-0.088 -1.4,-0.131 -2.337,-0.131 l 0,0 c -0.654,0 -1.137,0.011 -1.453,0.033 m -105.498,10.984 0,-24.027 7.684,0 0,7.225 0.948,0 c 0.434,0 0.86,0.005 1.275,0.018 l 0,0 c 0.41,0.01 0.815,0.026 1.208,0.047 l 0,0 4.085,-7.29 8.795,0 -6.147,8.73 c 3.181,1.439 4.773,3.834 4.773,7.19 l 0,0 c 0,1.503 -0.274,2.8 -0.818,3.89 l 0,0 c -0.544,1.088 -1.389,1.983 -2.535,2.681 l 0,0 c -1.143,0.696 -2.601,1.209 -4.379,1.536 l 0,0 c -1.775,0.326 -3.904,0.489 -6.389,0.489 l 0,0 c -2.573,0 -5.403,-0.163 -8.5,-0.489 m 8.549,-10.984 c -0.317,0.022 -0.604,0.077 -0.865,0.164 l 0,0 0,5.362 c 0.347,0.043 0.796,0.075 1.34,0.096 l 0,0 c 0.545,0.022 1.001,0.033 1.372,0.033 l 0,0 c 0.87,0 1.595,-0.043 2.174,-0.129 l 0,0 c 0.578,-0.088 1.027,-0.236 1.355,-0.443 l 0,0 c 0.325,-0.208 0.558,-0.496 0.687,-0.865 l 0,0 c 0.132,-0.372 0.197,-0.829 0.197,-1.373 l 0,0 c 0,-0.566 -0.076,-1.03 -0.229,-1.39 l 0,0 c -0.152,-0.359 -0.408,-0.654 -0.768,-0.882 l 0,0 c -0.36,-0.23 -0.851,-0.386 -1.471,-0.475 l 0,0 c -0.621,-0.088 -1.403,-0.131 -2.338,-0.131 l 0,0 c -0.653,0 -1.137,0.011 -1.454,0.033 m 140.308,11.147 0,-24.19 20.18,0 0,5.755 -12.499,0 0,3.464 11.146,0 0,5.753 -11.146,0 0,3.465 12.454,0 0,5.753 -20.135,0 z m -10.103,0 -3.823,-11.768 -1.274,-5.197 -0.326,0 -1.274,5.197 -3.826,11.768 -8.333,0 8.464,-24.19 10.1,0 8.466,24.19 -8.174,0 z m -65.567,0 0,-24.19 20.461,0 0,5.755 -12.779,0 0,3.464 11.145,0 0,5.753 -11.145,0 0,3.465 12.452,0 0,5.753 -20.134,0 z m -47.264,0 0,-24.19 20.46,0 0,5.755 -12.779,0 0,3.464 11.146,0 0,5.753 -11.146,0 0,3.465 12.453,0 0,5.753 -20.134,0 z"
style="fill:url(#linearGradient38);stroke:none"
id="path44"
inkscape:connector-curvature="0" /></g></g></g></g></g></svg>

Before

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View file

@ -1,158 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="149.71165mm"
height="149.71165mm"
viewBox="0 0 149.71165 149.71165"
version="1.1"
id="svg8"
inkscape:version="0.92.1 r"
sodipodi:docname="villasweb.svg"
inkscape:export-filename="/home/markus/Development/Projects/VILLASweb/doc/villasweb.svg.png"
inkscape:export-xdpi="21.299999"
inkscape:export-ydpi="21.299999">
<defs
id="defs2">
<linearGradient
inkscape:collect="always"
id="linearGradient4611">
<stop
style="stop-color:#00a2b0;stop-opacity:1"
offset="0"
id="stop4607" />
<stop
style="stop-color:#6ec5b0;stop-opacity:1"
offset="1"
id="stop4609" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4611"
id="linearGradient4613"
x1="65.497406"
y1="153.88686"
x2="65.497406"
y2="13.88037"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.0941748"
inkscape:cx="96.131516"
inkscape:cy="285.10587"
inkscape:document-units="mm"
inkscape:current-layer="g5005"
showgrid="false"
inkscape:snap-smooth-nodes="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-edge-midpoints="true"
inkscape:bbox-nodes="true"
inkscape:object-paths="true"
inkscape:snap-intersection-paths="false"
inkscape:bbox-paths="false"
inkscape:snap-midpoints="true"
inkscape:window-width="1920"
inkscape:window-height="951"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:measure-start="37.9039,424.38"
inkscape:measure-end="101.386,461.031"
inkscape:snap-global="true" />
<metadata
id="metadata5">
<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>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(9.2667999,-9.6854979)">
<g
id="g5005"
transform="matrix(0.9623191,0,0,0.9623191,2.7484651,3.9385684)">
<path
inkscape:connector-curvature="0"
id="path4329"
d="M 65.519531,7.6875 C 30.952342,7.2288821 -1.7559504,32.928216 -9.0985572,66.77029 c -8.9441948,34.36253 9.91032274,73.19316 42.4331002,87.43912 31.90533,15.5955 73.697367,4.8306 94.125297,-24.21303 C 149.0773,101.82081 146.84579,58.724642 122.42805,32.933531 108.17012,16.922072 86.915542,7.695183 65.519531,7.6875 Z"
style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:3.70000005;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
sodipodi:type="star"
style="fill:none;stroke:url(#linearGradient4613);stroke-width:20.38569832;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4572"
sodipodi:sides="6"
sodipodi:cx="65.497406"
sodipodi:cy="83.983902"
sodipodi:r1="58.333843"
sodipodi:r2="50.518589"
sodipodi:arg1="-0.52359878"
sodipodi:arg2="-4.4017012e-09"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 116.016,54.81698 0,58.33384 -50.518594,29.16693 -50.51859,-29.16693 0,-58.333839 50.51859,-29.166922 z"
transform="matrix(0.83725065,0,0,0.85461295,10.659664,12.436674)" />
<path
sodipodi:type="star"
style="fill:#007da9;fill-opacity:1;stroke:none;stroke-width:17.67682076;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4576-3"
sodipodi:sides="3"
sodipodi:cx="-80.89846"
sodipodi:cy="-21.019157"
sodipodi:r1="15.401051"
sodipodi:r2="7.7005253"
sodipodi:arg1="2.0943951"
sodipodi:arg2="3.1415927"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m -88.598986,-7.6814564 0,-26.6754016 23.101576,13.337701 z"
transform="matrix(-1,0,0,-1.0094199,3.7691891,-0.07235845)"
inkscape:transform-center-x="3.7051813" />
<path
d="m 42.395834,161.35432 0,-26.6754 23.101576,13.3377 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="true"
sodipodi:arg2="3.1415927"
sodipodi:arg1="2.0943951"
sodipodi:r2="7.7005253"
sodipodi:r1="15.401051"
sodipodi:cy="148.01662"
sodipodi:cx="50.096359"
sodipodi:sides="3"
id="path4593"
style="fill:#007da9;fill-opacity:1;stroke:none;stroke-width:17.67682076;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
sodipodi:type="star"
inkscape:transform-center-x="-3.7051807"
transform="matrix(1,0,0,1.0094199,-4.2717477,-1.5199394)"
inkscape:transform-center-y="1.8921547e-06" />
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.8 KiB

View file

@ -1,86 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
import { Button } from 'react-bootstrap';
import { NavLink } from 'react-router-dom';
export function villasweb_welcome() {
let url = 'https://villas.fein-aachen.org/doc/web.html';
return (
<div >
<h1>Welcome!</h1>
<p>VILLASweb is a tool to configure real-time co-simulations and display simulation real-time data.
It enables the management and monitoring of simulators, models and simulations.</p>
<span className='solid-button'>
<Button key="learnmore" onClick={e => window.location = url}>Learn more</Button>
</span>
</div>)
}
export function villasweb_home(title, username, userid, role) {
return (
<div className="home-container">
<img style={{ height: 120, float: 'right' }} src={require('./img/villas_web.svg').default} alt="Logo VILLASweb" />
<h1>Home</h1>
<p>
Welcome to <b>{title}</b>!
</p>
<p>
You are logged in as user <b>{username}</b> with <b>ID {userid}</b> and role <b>{role}</b>.
</p>
<h3>Credits</h3>
<p>VILLASweb is an open source project developed by the <a href="http://acs.eonerc.rwth-aachen.de">Institute for Automation of Complex Power Systems</a> at <a href="https;//www.rwth-aachen.de">RWTH Aachen University</a> with the support of other open-source contributors.</p>
<img height={60} src={require('./img/eonerc_rwth.svg').default} alt="Logo ACS" />
<ul>
<li><a href="mailto:ikoester@eonerc.rwth-aachen.de">Iris Köster</a></li>
<li><a href="mailto:post@steffenvogel.de">Steffen Vogel</a></li>
</ul>
<h3>Links</h3>
<ul>
<li><NavLink to="/api">API browser</NavLink></li>
<li><a href="http://fein-aachen.org/projects/villas-framework/">Project page of VILLASframework</a></li>
<li><a href="https://villas.fein-aachen.org/docs/web">Documentation</a></li>
<li>Source Code of <a href="https://github.com/VILLASframework/web">frontend</a> &amp; <a href="https://github.com/VILLASframework/web-backend">backend</a></li>
</ul>
<h3>Funding</h3>
<p>The development of <a href="http://fein-aachen.org/projects/villas-framework/">VILLASframework</a> projects has received funding from</p>
<ul>
<li><a href="https://www.acs.eonerc.rwth-aachen.de/cms/E-ON-ERC-ACS/Forschung/Forschungsprojekte/Bildungsprojekte/~mikmu/SLEW-SECOND-LIFE-FOR-ENERGIEWENDE/">SLEW:</a> Second Life for Energiewende, an Exploratory Teaching Space project funded by RWTH Aachen University</li>
<li><a href="https://erigrid2.eu/">ERIgrid 2.0:</a> An EU Horizon 2020 research and innovation action project for connecting European Smart Grid Infrastructures (grant agreement No 870620)</li>
<li><a href="http://www.uel4-0.de/">Urban Energy Lab 4.0:</a> A project funded by EFRE.NRW (European Regional Development Fund) for the setup of a novel energy research infrastructure.</li>
<li><a href="http://www.re-serve.eu">RESERVE:</a> An EU Horizon 2020 research and innovation project (grant agreement No 727481)</li>
<li><a href="http://www.jara.org/en/research/energy">JARA-ENERGY:</a> Jülich-Aachen Research Alliance (JARA) is an initiative of RWTH Aachen University and Forschungszentrum Jülich.</li>
</ul>
<p className="funding-logos">
<img src={require('./img/uel_efre.jpeg').default} alt="Logo UEL OP EFRE NRW" />
<img src={require('./img/uel.png').default} alt="Logo UEL" />
<img src={require('./img/european_commission.svg').default} alt="Logo EU" />
<img src={require('./img/reserve.svg').default} alt="Logo RESERVE" />
<img src={require('./img/european_commission.svg').default} alt="Logo EU" />
<img src={require('./img/erigrid2.png').default} alt="Logo ERIgrid 2.0" />
</p>
</div>)
}
export function villasweb_footer() {
return (
<footer className="app-footer">
Copyright &copy; {new Date().getFullYear()} - <a href="https://www.acs.eonerc.rwth-aachen.de">Institute for Automation of Complex Power Systems</a> - <a href="https://www.rwth-aachen.de">RWTH Aachen University</a>
</footer>
);
}

View file

@ -1,37 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
const villasweb_values = {
title: 'VILLASweb',
subtitle: 'ACS',
logo: 'villas_web.svg',
pages: {
home: true,
scenarios: true,
infrastructure: true,
account: true,
api: true,
},
style: {
background: '#6EA2B0',
highlights: '#527984',
main: '#4d4d4d',
secondaryText: '#818181',
}
}
export default villasweb_values;

View file

@ -1,81 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React from 'react';
import SwaggerUI from 'swagger-ui-react'
import 'swagger-ui-react/swagger-ui.css'
import '../styles/swagger-ui.css';
import RestAPI from './api/rest-api';
class APIBrowser extends React.Component {
constructor(props) {
super(props);
this.state = {
'spec': null
};
}
mangleSpec(spec) {
spec.host = window.location.host;
return spec;
}
componentDidMount() {
this._asyncRequest = RestAPI.get('/api/v2/openapi')
.then((spec) => {
this._asyncRequest = null;
this.setState({
'spec': this.mangleSpec(spec)
});
});
}
componentWillUnmount() {
if (this._asyncRequest) {
this._asyncRequest.cancel();
}
}
requestInterceptor(req) {
var token = localStorage.getItem('token');
if (token)
req.headers.Authorization = 'Bearer ' + token;
return req
}
render() {
return (
<div>
{ this.state.spec &&
<SwaggerUI
spec={this.state.spec}
tryItOutEnabled={true}
requestInterceptor={this.requestInterceptor}
/> }
</div>
);
}
}
export default APIBrowser;

View file

@ -1,91 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import { ReduceStore } from 'flux/utils';
import AppDispatcher from '../common/app-dispatcher';
import UsersDataManager from './users-data-manager';
import ICDataDataManager from '../ic/ic-data-data-manager';
import ConfigReader from '../config-reader';
class LoginStore extends ReduceStore {
constructor() {
super(AppDispatcher);
}
getInitialState() {
return {
currentUser: null,
token: null,
loginMessage: null,
config: null,
};
}
reduce(state, action) {
switch (action.type) {
case 'config/load':
ConfigReader.loadConfig();
return state;
case 'config/loaded':
return Object.assign({}, state, { config: action.data });
case 'config/load-error':
return Object.assign({}, state, { config: null});
case 'users/login':
UsersDataManager.login(action.username, action.password);
return Object.assign({}, state, { loginMessage: null });
case 'users/extlogin':
UsersDataManager.login();
return Object.assign({}, state, { loginMessage: null });
case 'users/logout':
// disconnect from all infrastructure components
ICDataDataManager.closeAll();
//remove token and current user from local storage
localStorage.clear();
// delete user, token and loginMessage
return Object.assign({}, state, { token: null, currentUser: null, loginMessage: null});
case 'users/logged-in':
// save login data in local storage and loginStore
let newState = state
if (action.token != null){
localStorage.setItem('token', action.token);
newState = Object.assign({}, state, {token: action.token})
}
localStorage.setItem('currentUser', JSON.stringify(action.currentUser));
return Object.assign({}, newState, { currentUser: action.currentUser});
case 'users/login-error':
if (action.error && !action.error.handled) {
// If it was an error and hasn't been handled, the credentials must have been wrong.
state = Object.assign({}, state, { loginMessage: 'Wrong credentials! Please try again.' });
}
return state;
default:
return state;
}
}
}
export default new LoginStore();

View file

@ -1,200 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import request from 'superagent/lib/client';
import Promise from 'es6-promise';
import NotificationsDataManager from '../data-managers/notifications-data-manager';
import NotificationsFactory from "../data-managers/notifications-factory";
// Check if the error was due to network failure, timeouts, etc.
// Can be used for the rest of requests
function isNetworkError(err, url) {
let result = false;
if (err.status === 500 && err.response != null){
console.log("500 error:", err.response)
if (err.response.text.includes("ECONNREFUSED")){
let notification = NotificationsFactory.SERVER_NOT_REACHABLE(err.response.text, url)
NotificationsDataManager.addNotification(notification);
result = true;
} else {
let notification = NotificationsFactory.INTERNAL_SERVER_ERROR(err.response)
NotificationsDataManager.addNotification(notification);
}
} else if (err.status == null || err.status === 500 || err.response == null) {
// If not status nor response fields, it is a network error. TODO: Handle timeouts
result = true;
let notification = err.timeout? NotificationsFactory.REQUEST_TIMEOUT : NotificationsFactory.SERVER_NOT_REACHABLE("", url);
NotificationsDataManager.addNotification(notification);
}
return result;
}
let prevURL = null;
class RestAPI {
get(url, token) {
return new Promise(function (resolve, reject) {
let req = request.get(url);
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
if (req.url !== prevURL) error.handled = isNetworkError(error, url);
prevURL = req.url;
reject(error);
} else {
resolve(JSON.parse(res.text));
}
});
});
}
post(url, body, token, timeout = 5000) {
return new Promise(function (resolve, reject) {
let req = request.post(url).send(body).timeout({ response: timeout }); // Simple response start timeout
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
error.handled = isNetworkError(error, url);
reject(error);
} else {
resolve(JSON.parse(res.text));
}
});
});
}
delete(url, token) {
return new Promise(function (resolve, reject) {
let req = request.delete(url);
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
error.handled = isNetworkError(error);
reject(error);
} else {
resolve(JSON.parse(res.text));
}
});
});
}
put(url, body, token) {
return new Promise(function (resolve, reject) {
let req = request.put(url).send(body);
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
error.handled = isNetworkError(error);
reject(error);
} else {
resolve(JSON.parse(res.text));
}
});
});
}
upload(url, data, token, progressCallback, scenarioID) {
return new Promise(function (resolve, reject) {
const req = request.post(url + "?scenarioID=" + scenarioID).send(data).on('progress', progressCallback);
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
error.handled = isNetworkError(error);
reject(error);
} else {
resolve(JSON.parse(res.text));
}
});
});
}
download(url, token, fileID) {
return new Promise(function (resolve, reject) {
let completeURL = url + "/" + fileID;
if (token != null){
completeURL = completeURL + "?token=" + token
}
let req = request.get(completeURL).buffer(true).responseType("blob")
// use blob response type and buffer
// Do not use auth header for file download
req.end(function (error, res) {
if (error !== null || res.status !== 200) {
error.handled = isNetworkError(error);
reject(error);
} else {
// file data is contained in res.body (because of blob response type)
let parts = url.split("/");
resolve({data: res.body, type: res.type, id: parts[parts.length-1]})
}
});
});
}
apiDownload(url, token) {
return new Promise(function (resolve, reject) {
let req = request.get(url).buffer(true).responseType("blob");
if (token != null) {
req.set('Authorization', "Bearer " + token);
}
req.end(function (error, res) {
if (res == null || res.status !== 200) {
if (req.url !== prevURL) error.handled = isNetworkError(error);
prevURL = req.url;
reject(error);
} else {
let parts = url.split("/");
resolve({data: res.body, type: res.type, id: parts[parts.length-1]})
}
});
});
}
}
export default new RestAPI();

View file

@ -1,144 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
const OFFSET_TYPE = 2;
const OFFSET_VERSION = 4;
class WebSocketManager {
constructor() {
this.sockets = []; // Array to store multiple socket objects
}
connect(id, url, onMessage, onOpen, onClose) {
const existingSocket = this.sockets.find(s => s.id === id);
if (existingSocket && existingSocket.socket.readyState === WebSocket.OPEN) {
console.log('Already connected to:', url);
return;
}
const socket = new WebSocket(url, 'live');
socket.binaryType = 'arraybuffer';
socket.onopen = onOpen;
socket.onmessage = (event) => {
const msgs = this.bufferToMessageArray(event.data);
onMessage(msgs, id);
};
socket.onclose = onClose;
// Store the new socket along with its id
this.sockets.push({ id, socket });
}
disconnect(id) {
const socket = this.sockets.find(s => s.id === id);
if (socket) {
socket.socket.close();
this.sockets = this.sockets.filter(s => s.id !== id);
console.log('WebSocket connection closed for id:', id);
}
}
send(id, message) {
const socket = this.sockets.find(s => s.id === id);
if (socket == null) {
return false;
}
console.log("Sending to IC", id, "message: ", message);
const data = this.messageToBuffer(message);
socket.socket.send(data);
return true;
}
messageToBuffer(message) {
const buffer = new ArrayBuffer(16 + 4 * message.length);
const view = new DataView(buffer);
let bits = 0;
bits |= (message.version & 0xF) << OFFSET_VERSION;
bits |= (message.type & 0x3) << OFFSET_TYPE;
let source_index = 0;
source_index |= (message.source_index & 0xFF);
const sec = Math.floor(message.timestamp / 1e3);
const nsec = (message.timestamp - sec * 1e3) * 1e6;
view.setUint8(0x00, bits, true);
view.setUint8(0x01, source_index, true);
view.setUint16(0x02, message.length, true);
view.setUint32(0x04, message.sequence, true);
view.setUint32(0x08, sec, true);
view.setUint32(0x0C, nsec, true);
const data = new Float32Array(buffer, 0x10, message.length);
data.set(message.values);
return buffer;
}
bufferToMessageArray(blob) {
let offset = 0;
const msgs = [];
while (offset < blob.byteLength) {
const msg = this.bufferToMessage(new DataView(blob, offset));
if (msg !== undefined) {
msgs.push(msg);
offset += msg.blob.byteLength;
}
}
return msgs;
}
bufferToMessage(data) {
if (data.byteLength === 0) {
return null;
}
const source_index = data.getUint8(1);
const bits = data.getUint8(0);
const length = data.getUint16(0x02, 1);
const bytes = length * 4 + 16;
return {
version: (bits >> OFFSET_VERSION) & 0xF,
type: (bits >> OFFSET_TYPE) & 0x3,
source_index: source_index,
length: length,
sequence: data.getUint32(0x04, 1),
timestamp: data.getUint32(0x08, 1) * 1e3 + data.getUint32(0x0C, 1) * 1e-6,
values: new Float32Array(data.buffer, data.byteOffset + 0x10, length),
blob: new DataView(data.buffer, data.byteOffset + 0x00, bytes),
};
}
getSocketById(id) {
const socketEntry = this.sockets.find(s => s.id === id);
return socketEntry ? socketEntry.socket : null;
}
isConnected(id) {
const socket = this.getSocketById(id);
return socket && socket.readyState === WebSocket.OPEN;
}
}
export const wsManager = new WebSocketManager();

Some files were not shown because too many files have changed in this diff Show more