Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

added beta endpoint and checks #2

Merged
merged 1 commit into from
Jul 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM nginx:alpine

WORKDIR /usr/share/nginx/html
COPY build ./

ENTRYPOINT ["nginx", "-g", "daemon off;"]
EXPOSE 80
Binary file modified public/favicon.ico
Binary file not shown.
23 changes: 2 additions & 21 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,18 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Parachute by OpenRegistry"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
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>React App</title>
<title>Parachute by OpenRegistry</title>
</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>
Binary file modified public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/parachute.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 0 additions & 25 deletions src/App.js

This file was deleted.

1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import LandingPage from "./pages/landing_page";
import Dashboard from "./pages/dashboard";
Expand Down
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

15 changes: 5 additions & 10 deletions src/pages/landing_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,18 @@ function LandingPage() {
let body = {
"email": email
}
axios.post('http://0.0.0.0:5000/beta/register',body)

axios.post('https://beta.openregistry.dev/beta/register', body)
.then(response => {
console.log(response.data,response.status)
setEmail("")
setResp(response.data.message)
setIsError(false)
// setShowBeta(false)
}).catch(err => {
setIsError(true)
setResp(err.response)
console.log("error %s",err.response)
setResp(err.response.data.message)
})
}
const handleEmail = async (e) => {
console.log(e.target.value)
await setEmail(e.target.value)
console.log("email: %s", e.target.value)
validateEmail(e.target.value)
}

Expand Down Expand Up @@ -86,9 +81,9 @@ function LandingPage() {
<img className="animated-logo" alt="parachute logo" src={parachute}/>
<h1>Parachute by Open Registry</h1>
<p>A decentralised container registry fully compliant with OCI Distribution Specification
Which means now you can use all the features of existing container registries on blockchain
which means now you can use all the features of existing container registries on OpenRegistry.
We are hosted on Akash and powered by SkyNet.
You see Sky is the limit, like literally!</p>
You see, Sky is the limit. Like literally!</p>
<OutlinedButton onClick={() => handleBeta()} label="Register for Beta"/>
{
showBeta ? <Beta isError={isError} type={"email"} errMsg={resp} onChange={handleEmail} onClick={() => handleSubmit()}/> :null
Expand Down