init vault app

This commit is contained in:
2019-06-26 17:36:11 +01:00
parent d653b3715f
commit 22021f2d46
13 changed files with 249 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<!doctype>
<html>
<body>
<h1>Hello world!</h1>
</body>
</html>

18
apps/vault/app/script.js Normal file
View File

@@ -0,0 +1,18 @@
import Aragon from '@aragon/client'
const app = new Aragon()
const initialState = {
dummyValue: 0
}
app.store((state, event) => {
if (state === null) state = initialState
switch (event.event) {
case 'DummyEvent':
return { dummyValue: 1 }
default:
return state
}
})