Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
2fd committed Aug 27, 2020
1 parent d3d9f15 commit d868275
Show file tree
Hide file tree
Showing 100 changed files with 23,471 additions and 10,972 deletions.
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
REACT_APP_LOCAL_STORAGE_KEY=
REACT_APP_SEGMENT_KEY=

# Aragon
REACT_APP_ORGANIZATION_LOCATION=
REACT_APP_ORGANIZATION_CONNECTOR=
REACT_APP_ORGANIZATION_NETWORK=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.env
.ssl
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.cache
package.json
package-lock.json
public
node_modules
lib
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5"
}
45 changes: 1 addition & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn 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.

### `yarn 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.

### `yarn 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.

### `yarn 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/).
# Decentraland DAO
92 changes: 92 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
## Definitions
- `vote.appAddress` => to app name (catalys, voting)
- time to vote: `delay`, `sab`: 1d, `other`: 7d

## task
- [ ] vote button
- [ ] voted button
- [ ] connect vote button
- [ ] ask for tokens
- [ ] connect wallet
- [ ] connect wallet
- [ ] connect wallet
- [ ] connect wallet
- [ ] calculate voting power
- [ ] voting power total
- [ ] voting power total tooltip
- [ ] voting power land
- [ ] voting power state
- [ ] voting power mana
- [ ] voting power summary card
- [ ] filters by app
- [ ] filters by outcomes
- [ ] apply filters into url
- [ ] apply filters in UI
- [ ] new proposal button
- [ ] new proposal modal
- [ ] new proposal select type
- [ ] new proposal question form
- [ ] new proposal question confirmation form
- [ ] new proposal question request
- [ ] new proposal catalyst form
- [ ] new proposal catalyst confirmation form
- [ ] new proposal catalyst request
- [ ] new proposal POI form
- [ ] new proposal POI confirmation form
- [ ] new proposal POI request
- [ ] new proposal Ban Name form
- [ ] new proposal Ban Name confirmation form
- [ ] new proposal Ban Name request
- [ ] vote page
- [ ] vote history card
- [ ] vote history flow
- [ ] vote history tooltip
- [ ] vote detail
- [ ] collect votting appName
- [ ] voting appName map
- [ ] voting details category section
- [ ] voting details time section
- [ ] voting details support section
- [ ] voting details quorum section
- [ ] voting details status bar
- [ ] voting details yes description
- [ ] voting details no description
- [ ] voting details vote button
- [ ] voting details voted button
- [ ] voting details vote popup
- [ ] voting details vote saga
- [ ] voting details description
- [ ] voting power page
- [ ] voting power total
- [ ] ask for mana token
- [ ] ask for land token
- [ ] ask for estate token
- [ ] token cards
- [ ] convert tokens mana
- [ ] convert tokens vp
- [ ] get token button
- [ ] unwrap button
- [ ] wrap button
- [ ] wrap transaction
- [ ] unwrap popup
- [ ] unwrap form
- [ ] unwrap transaction
- [ ] land balance card
- [ ] land balance
- [ ] estate balance card
- [ ] estate balance
- [ ] get land button
- [ ] commit land
- [ ] commit land transaction
- [ ] commit estate
- [ ] commit estate transaction
- [ ] connection require page
- [ ] intercom
- [ ] ci build state
- [ ] ci deploy state
- [ ] pulumi setup
- [ ] pulumi prod environment
- [ ] pulumi stage environment
- [ ] pulumi release environment
- [ ] pulumi deploy scrip
- [ ] pulumi variable environment
53 changes: 53 additions & 0 deletions bin/ssl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
const fs = require('fs')
const { resolve, relative, dirname } = require('path')
const { promisify } = require('util')
const devcert = require('devcert')

/**
*
* @param {string} path
*/
const stat = (path) =>
new Promise((resolve) =>
fs.stat(path, (err, st) => (err ? resolve(null) : resolve(st)))
)

const writeFile = promisify(fs.writeFile)
const mkdir = promisify(fs.mkdir)

const ROOT_DIR = dirname(__dirname)
const SSL_DIR = resolve(ROOT_DIR, './.ssl')

Promise.resolve()
.then(() => stat(SSL_DIR))
.then((st) => {
if (!st) {
return mkdir(SSL_DIR)
}
})
.then(() =>
Promise.all([stat(SSL_DIR + '/cert.crt'), stat(SSL_DIR + '/cert.key')])
)
.then(([crt, key]) => {
if (!crt || !key) {
return devcert
.certificateFor('localhost')
.then(({ key, cert }) =>
Promise.all([
writeFile(SSL_DIR + '/cert.crt', cert).then(() =>
console.log(
'created: ',
relative(ROOT_DIR, SSL_DIR + '/cert.crt')
)
),
writeFile(SSL_DIR + '/cert.key', key).then(() =>
console.log(
'created: ',
relative(ROOT_DIR, SSL_DIR + '/cert.key')
)
)
])
)
}
})
.catch(console.error)
Loading

0 comments on commit d868275

Please sign in to comment.