init vault app
This commit is contained in:
6
apps/vault/app/index.html
Normal file
6
apps/vault/app/index.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<!doctype>
|
||||
<html>
|
||||
<body>
|
||||
<h1>Hello world!</h1>
|
||||
</body>
|
||||
</html>
|
||||
18
apps/vault/app/script.js
Normal file
18
apps/vault/app/script.js
Normal 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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user