forked from OmniFlix/insync
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Srikanth Reddy
authored and
Srikanth Reddy
committed
Oct 1, 2021
1 parent
4acac09
commit 868fb56
Showing
112 changed files
with
21,721 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"standard", | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"react" | ||
], | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"rules": { | ||
"indent": [ | ||
2, | ||
4 | ||
], | ||
"arrow-parens": [ | ||
2, | ||
"always" | ||
], | ||
"semi": [ | ||
2, | ||
"always" | ||
], | ||
"comma-dangle": [ | ||
2, | ||
"always-multiline" | ||
], | ||
"jsx-quotes": [ | ||
2 | ||
], | ||
"dot-notation": [ | ||
2, | ||
{ | ||
"allowPattern": "^[0-9A-Za-z]+(_[0-9A-Za-z]+)+$" | ||
} | ||
], | ||
"curly": [ | ||
2, | ||
"all" | ||
], | ||
"react/jsx-first-prop-new-line": [ | ||
2, | ||
"multiline-multiprop" | ||
], | ||
"react/jsx-indent-props": [ | ||
2, | ||
"first" | ||
], | ||
"react/sort-prop-types": [ | ||
2, | ||
{ | ||
"callbacksLast": true, | ||
"requiredFirst": true | ||
} | ||
], | ||
"react/jsx-sort-props": [ | ||
2, | ||
{ | ||
"callbacksLast": true, | ||
"reservedFirst": true, | ||
"shorthandFirst": true | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: publish | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc | ||
with: | ||
context: . | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# dependencies | ||
node_modules | ||
|
||
.idea | ||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:13.12.0-alpine | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
COPY package.json ./ | ||
COPY yarn.lock ./ | ||
RUN yarn | ||
|
||
COPY . ./ | ||
|
||
CMD ["yarn", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"name": "community", | ||
"version": "0.0.1", | ||
"main": "index.js", | ||
"repository": "[email protected]:OmniFlix/community-ui.git", | ||
"license": "MIT", | ||
"private": true, | ||
"dependencies": { | ||
"@cosmjs/amino": "^0.25.4", | ||
"@cosmjs/proto-signing": "^0.24.1", | ||
"@material-ui/core": "^4.11.3", | ||
"@material-ui/icons": "^4.11.2", | ||
"@material-ui/lab": "^4.0.0-alpha.58", | ||
"classnames": "^2.2.6", | ||
"history": "^5.0.0", | ||
"js-base64": "^3.6.0", | ||
"latest": "^0.2.0", | ||
"moment": "^2.29.1", | ||
"mui-datatables": "^3.7.7", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.13.1", | ||
"react-redux": "^7.2.0", | ||
"react-router": "^5.2.0", | ||
"react-router-dom": "^5.2.0", | ||
"react-scripts": "3.4.0", | ||
"redux": "^4.0.5", | ||
"redux-devtools-extension": "^2.13.8", | ||
"redux-thunk": "^2.3.0" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test", | ||
"eject": "react-scripts eject" | ||
}, | ||
"devDependencies": { | ||
"@cosmjs/launchpad": "^0.24.1", | ||
"@cosmjs/stargate": "^0.25.1", | ||
"axios": "^0.21.1", | ||
"env-cmd": "^10.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-react": "^7.18.3", | ||
"eslint-plugin-standard": "^4.0.1" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>OmniFlix Communities</title> | ||
<meta charset="utf-8"> | ||
<meta content="#000000" name="theme-color"> | ||
<meta content="IE=edge" http-equiv="X-UA-Compatible"> | ||
<meta content="yes" name="mobile-web-app-capable"> | ||
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' name='viewport'/> | ||
<meta content="OmniFlix, OmniFlix for Communities, DAOs, Decentralized Autonomous Organizations, OmniFlix Network, OmniFlix Media, Live Streams, web3, cosmos, blockchain, tendermint" | ||
name="keywords"> | ||
<meta content="OmniFlix.co is a solution for sovereign communities and blockchain networks to discover, interact & engage with fellow members for increased Community Extractable Value (CEV)" | ||
name="description"> | ||
<meta content="OmniFlix Communities" property="og:site_name"> | ||
<!-- <meta content="https://akashnet.omniflix.co" property="og:url">--> | ||
<!-- <meta content="https://akashnet.omniflix.co" property="al:web:url">--> | ||
<meta content="/assets/logos/logo_192x192.png" property="og:image"> | ||
<meta content="200" property="og:image:width"/> | ||
<meta content="200" property="og:image:height"/> | ||
<meta content="OmniFlix Communities" property="og:image:alt"/> | ||
<meta content="OmniFlix Communities" property="og:title"> | ||
<meta content="OmniFlix.co is a solution for sovereign communities and blockchain networks to discover, interact & engage with fellow members for increased Community Extractable Value (CEV)" | ||
property="og:description"> | ||
|
||
<link href="/manifest.json" rel="manifest"> | ||
<link href="/favicon.ico" rel="shortcut icon"> | ||
<link href="/assets/logos/logo_192x192.png" rel="apple-touch-icon"> | ||
|
||
<link href="https://fonts.gstatic.com" rel="preconnect"> | ||
<link href="https://fonts.googleapis.com/css2?family=Blinker:wght@100;200;300;400;600;700;800;900&display=swap" | ||
rel="stylesheet"> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app. | ||
</noscript> | ||
|
||
<div id="root"></div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"short_name": "OmniFlix Community", | ||
"name": "OmniFlix Community", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "64x64 32x32 24x24 16x16", | ||
"type": "image/x-icon" | ||
}, | ||
{ | ||
"src": "assets/logos/logo_192x192.png", | ||
"type": "image/png", | ||
"sizes": "192x192" | ||
}, | ||
{ | ||
"src": "assets/logos/logo_512x512.png", | ||
"type": "image/png", | ||
"sizes": "512x512" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import './app.css'; | ||
import Router from './Router'; | ||
import Snackbar from './containers/Snackbar'; | ||
|
||
const App = () => { | ||
return ( | ||
<div className="of_community"> | ||
<Router/> | ||
<Snackbar/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import { Route, Switch } from 'react-router-dom'; | ||
import Home from './containers/Home'; | ||
import Stake from './containers/Stake'; | ||
import Proposals from './containers/Proposals'; | ||
|
||
const routes = [{ | ||
path: '/', | ||
component: Home, | ||
}, { | ||
path: '/stake', | ||
component: Stake, | ||
}, { | ||
path: '/proposals', | ||
component: Proposals, | ||
}]; | ||
|
||
const Router = () => { | ||
return ( | ||
<div className="main_content"> | ||
<div className="content_div scroll_bar"> | ||
<Switch> | ||
{routes.map((route) => | ||
<Route | ||
key={route.path} | ||
exact | ||
component={route.component} | ||
path={route.path}/>, | ||
)} | ||
</Switch> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Router; |
Oops, something went wrong.