Commit b78059ec authored by Pavel Taskov's avatar Pavel Taskov

updated from gitlab

parent b2a9c6a0
......@@ -18,7 +18,7 @@ services:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ES_JAVA_OPTS: "-Xmx4g -Xms4g"
ELASTIC_PASSWORD: changeme
networks:
- elk
......@@ -41,7 +41,7 @@ services:
- "5000:5000"
- "9600:9600"
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
LS_JAVA_OPTS: "-Xmx4g -Xms4g"
networks:
- elk
depends_on:
......
test
\ No newline at end of file
.idea/
.vscode/
node_modules/
build
.DS_Store
*.tgz
my-app*
template/src/__tests__/__snapshots__/
lerna-debug.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.changelog
.npm/
yarn.lock
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br />
You will also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
### Analyzing the Bundle Size
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
### Making a Progressive Web App
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
### Advanced Configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
### Deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
### `npm run build` fails to minify
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
This diff is collapsed.
{
"homepage": "http://mirsat1.github.io/articonf-ui",
"name": "articonf1",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"axios": "^0.19.2",
"elasticsearch": "^16.7.1",
"emailjs-com": "^2.6.3",
"firebase": "^7.17.2",
"https": "^1.0.0",
"js-yaml": "^3.14.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-iframe": "^1.8.0",
"react-json-prettify": "^0.2.0",
"react-loader-spinner": "^3.1.14",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"reactjs-heap": "^1.0.3",
"reactjs-popup": "^2.0.4",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^1.2.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"gh-pages": "^3.1.0"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/emailjs-com@2.4.1/dist/email.min.js"></script>
<script type="text/javascript">
(function(){
emailjs.init('user_ngGaDPIoYOmfyhxEzDTPE');
})();
</script>
<script type="text/javascript">
window.onload = function() {
document.getElementById('contact-form').addEventListener('submit', function(event) {
event.preventDefault();
// generate the contact number value
this.contact_number.value = Math.random() * 100000 | 0;
emailjs.sendForm('contact_service', 'contact_form', this);
});
}
</script> -->
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/images/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Powered by UNIVERSITY OF INFORMATION SCIENCE AND TECHNOLOGY
'ST. PAUL THE APOSTLE' and ARTICONF"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="stylesheet" href="%PUBLIC_URL%/styles.css" />
<link rel="stylesheet" href="https://unpkg.com/purecss@2.0.3/build/pure-min.css" integrity="sha384-cg6SkqEOCV1NbJoCu11+bm0NvBRc8IYLRGXkmNrqUBfTjmMYwNKPWBTIKyw9mHNJ" crossorigin="anonymous">
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags 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>ARTICONF</title>
<script type="text/javascript">
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
heap.load("3168635468");
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<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` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro);
.contactForm {
margin-left:auto;
margin-right:auto;
width: 343px;
height: 333px;
padding:30px;
border: 1px solid rgba(0,0,0,.2);
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
background: #08335e;
-moz-box-shadow: 0 0 13px 3px rgba(0,0,0,.5);
-webkit-box-shadow: 0 0 13px 3px rgba(0,0,0,.5);
box-shadow: 0 0 13px 3px rgba(0,0,0,.5);
overflow: hidden;
}
.contactTextarea{
background: rgba(255, 255, 255, 0.4) url(http://luismruiz.com/img/gemicon_message.png) no-repeat scroll 16px 16px;
width: 276px;
height: 110px;
border: 1px solid rgba(255,255,255,.6);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
display:block;
font-family: 'Source Sans Pro', sans-serif;
font-size:18px;
color:#fff;
padding-left:45px;
padding-right:20px;
padding-top:12px;
margin-bottom:20px;
overflow:hidden;
}
.contactInput {
width: 276px;
height: 48px;
border: 1px solid rgba(255,255,255,.4);
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
display:block;
font-family: 'Source Sans Pro', sans-serif;
font-size:18px;
color:#fff;
padding-left:20px;
padding-right:20px;
margin-bottom:20px;
}
.contactInput[type=submit] {
cursor:pointer;
}
.contactInput.name {
background: rgba(255, 255, 255, 0.4) url(http://luismruiz.com/img/gemicon_name.png) no-repeat scroll 16px 16px;
padding-left:45px;
}
.contactInput.email {
background: rgba(255, 255, 255, 0.4) url(http://luismruiz.com/img/gemicon_email.png) no-repeat scroll 16px 20px;
padding-left:45px;
}
.contactInput.message {
background: rgba(255, 255, 255, 0.4) url(http://luismruiz.com/img/gemicon_message.png) no-repeat scroll 16px 16px;
padding-left:45px;
}
::-webkit-input-placeholder {
color: #fff;
}
:-moz-placeholder{
color: #fff;
}
::-moz-placeholder {
color: #fff;
}
:-ms-input-placeholder {
color: #fff;
}
.contactInput:focus, .contactTextarea:focus {
background-color: rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 0 5px 1px rgba(255,255,255,.5);
-webkit-box-shadow: 0 0 5px 1px rgba(255,255,255,.5);
box-shadow: 0 0 5px 1px rgba(255,255,255,.5);
overflow: hidden;
}
.contactInput.btn {
width: 138px;
height: 44px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
float:right;
border: 1px solid #253737;
background: #416b68;
background: -webkit-gradient(linear, left top, left bottom, from(#6da5a3), to(#416b68));
background: -webkit-linear-gradient(top, #6da5a3, #416b68);
background: -moz-linear-gradient(top, #6da5a3, #416b68);
background: -ms-linear-gradient(top, #6da5a3, #416b68);
background: -o-linear-gradient(top, #6da5a3, #416b68);
background-image: -ms-linear-gradient(top, #6da5a3 0%, #416b68 100%);
padding: 10.5px 21px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: rgba(255,255,255,0.1) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
-moz-box-shadow: rgba(255,255,255,0.1) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
box-shadow: rgba(255,255,255,0.1) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
text-shadow: #333333 0 1px 0;
color: #e1e1e1;
}
.contactInput.btn:hover {
border: 1px solid #253737;
text-shadow: #333333 0 1px 0;
background: #416b68;
background: -webkit-gradient(linear, left top, left bottom, from(#77b2b0), to(#416b68));
background: -webkit-linear-gradient(top, #77b2b0, #416b68);
background: -moz-linear-gradient(top, #77b2b0, #416b68);
background: -ms-linear-gradient(top, #77b2b0, #416b68);
background: -o-linear-gradient(top, #77b2b0, #416b68);
background-image: -ms-linear-gradient(top, #77b2b0 0%, #416b68 100%);
color: #fff;
}
.contactInput.btn:active {
margin-top:1px;
text-shadow: #333333 0 -1px 0;
border: 1px solid #253737;
background: #6da5a3;
background: -webkit-gradient(linear, left top, left bottom, from(#416b68), to(#416b68));
background: -webkit-linear-gradient(top, #416b68, #609391);
background: -moz-linear-gradient(top, #416b68, #6da5a3);
background: -ms-linear-gradient(top, #416b68, #6da5a3);
background: -o-linear-gradient(top, #416b68, #6da5a3);
background-image: -ms-linear-gradient(top, #416b68 0%, #6da5a3 100%);
color: #fff;
-webkit-box-shadow: rgba(255,255,255,0) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
-moz-box-shadow: rgba(255,255,255,0) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
box-shadow: rgba(255,255,255,0) 0 1px 0, inset rgba(255,255,255,0.7) 0 1px 0;
}
\ No newline at end of file
@import 'https://cdn.jsdelivr.net/npm/remixicon@2.3.0/fonts/remixicon.css';
.footer {
right: 0;
bottom: 0;
left: 0;
padding: 1rem;
height: 249px;
background-color: #08335e;
align-content: center;
text-align: left;
padding-bottom: 15px;;
}
.footer .footerImg {
float: left;
margin-top: 15px;
}
.footer p {
text-align: left;
color: #FFF;
}
.footer i {
font-size: xx-large;
margin-left: 5px;
}
.footer a:link {
text-decoration: none;
}
\ No newline at end of file
@import 'https://fonts.googleapis.com/css?family=Raleway';
html, body
{
background: #FFF !important;
margin: 0px;
}
div.container
{
font-family: Raleway;
margin: 0 auto;
padding: 2em 3em;
text-align: left;
}
div.container .a
{
color: #FFF;
text-decoration: none;
font: 20px Raleway;
margin: 0px 10px;
padding: 10px 10px;
position: relative;
z-index: 0;
cursor: pointer;
}
.blue
{
background: #08335e;
}
div.circleBehind a:before, div.circleBehind a:after
{
position: absolute;
top: 22px;
left: 50%;
width: 50px;
height: 50px;
border: 4px solid #0277bd;
transform: translateX(-50%) translateY(-50%) scale(0.8);
border-radius: 50%;
background: transparent;
content: "";
opacity: 0;
transition: all 0.3s;
z-index: -1;
}
div.circleBehind a:after
{
border-width: 2px;
transition: all 0.4s;
}
div.circleBehind a:hover:before
{
opacity: 1;
transform: translateX(-50%) translateY(-50%) scale(1);
}
div.circleBehind a:hover:after
{
opacity: 1;
transform: translateX(-50%) translateY(-50%) scale(1.3);
}
\ No newline at end of file
.theBody {
margin-left: 10%;
margin-right: 10%;
margin-top: 1%;
align-content: center;
text-align: justify;
}
.theBody .bank {
margin-left: 30%;
margin-right: 30%;
margin-bottom: 3%;
}
.theBody .login-form {
margin-left: 30%;
margin-right: 30%;
margin-top: 1.5em;
}
.text-section {
margin: 3em auto;
}
.theBody .deployLinks {
text-align: right;
}
.theBody .deployLinks button {
margin-right: 5px;
}
.theBody .homeDeploy {
text-align: center;
}
.theBody .deployed {
text-align: center;
}
.theBody .deployed button {
margin-right: 5px;
}
.theBody .btncontactus {
color: blue;
background: brown;
}
\ No newline at end of file
@charset 'UTF-8';
@import "./style/header.css";
@import "./style/home.css";
@import "./style/home1.css";
@import "./style/footer.css";
@import "./style/contactus.css";
@import "./style//timer.css";
@import "./style/modal.css";
\ No newline at end of file
import React, { memo, useEffect } from "react"
import { Route } from "react-router-dom"
import Header from "./components/Header"
import Footer from "./components/Footer"
import Dashboard from "./pages/Dashboard"
import Deploy from "./pages/Deploy"
import Deployment from "./pages/Deployment"
import Deployed from "./pages/Deployed"
import ContactUs from "./pages/ContactUs"
import Home from "./pages/Home"
import PrivateRoute from "./PrivateRoute"
import Login from "./pages/Login"
import SingUp from "./pages/SingUp"
import TokenBank from "./pages/TokenBank"
import Heap from "reactjs-heap"
function App() {
Heap.initialize('3168635468');
useEffect(() => {
window.$crisp=[];
window.CRISP_WEBSITE_ID="6d88474b-e371-4d77-bf41-8e0a5500e3d7";
(function(){
const d=document;
const s=d.createElement("script");
s.src="https://client.crisp.chat/l.js";
s.async=1;
d.getElementsByTagName("head")[0].appendChild(s);
})();
}, [])
return (
<div>
<Header />
<PrivateRoute exact path="/" component={Home} />
<PrivateRoute exact path="/beta/testing" component={Home} />
<PrivateRoute exact path="/beta/testing/dashboard" component={Dashboard} />
<PrivateRoute exact path="/beta/testing/deploy" component={Deploy} />
<PrivateRoute exact path="/beta/testing/deploy/deployment" component={Deployment} />
<PrivateRoute exact path="/beta/testing/deployed" component={Deployed} />
<PrivateRoute exact path="/beta/testing/bank" component={TokenBank} />
<Route exact path="/beta/testing/contact" component={ContactUs} />
<Route exact path="/login" component={Login} />
<Route exact path="/singup" component={SingUp} />
<Footer />
</div>
)
}
export default memo(App)
This diff is collapsed.
import axios from "axios"
const instance = axios.create({
baseURL: "http://fry.lab.uvalight.net:30000/manager/",
})
export default instance
\ No newline at end of file
import React from "react"
import useToggler from "../hooks/useToggler"
import { Button } from 'semantic-ui-react'
// import {Context} from "../Context"
export default function Dummy(props) {
const [show, toggle] = useToggler()
return (
<div>
<Button style={{marginRight: '5px'}} onClick={props.callApi}>{props.btnName}</Button>
<Button onClick={toggle}>Show Info</Button><br />
<p style={{display: show ? "block" : "none"}}>{props.info}</p><hr />
</div>
)
}
\ No newline at end of file
import React from "react"
import flag from "../eu-flag.jpg"
// import logo from "../articonf-logo.jpg"
function Footer() {
return (
<footer className="footer">
<img className="footerImg" src={flag} alt="Flag"/>
<p className="footerP"><strong>This project has received funding from the European Unions Horizon 2020 research
and innovation programme under grant agreement No 825134, the ARTICONF Project.</strong></p>
<div>
<p>Follow us on Twitter:
<a style={{color: "#00acee"}} href="https://twitter.com/articonf/"><i className="ri-twitter-fill"></i></a>
</p>
<p>Subscribe on YouTube:
<a style={{color: "#FF0000"}} href="https://www.youtube.com/channel/UCPvfXuOgmtrq8psLQb9yFVA"><i className="ri-youtube-fill"></i></a>
</p>
<p>Visit our page for more details about us: <a href={"https://articonf.eu/"}><img src="https://i.imgur.com/tgkmCTc.png" alt="articonflogo" /></a></p>
</div>
</footer>
)
}
export default Footer
\ No newline at end of file