mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 18:56:22 +00:00
refactor Actions & add logout action
This commit is contained in:
7
browser/main/Actions/AuthActions.js
Normal file
7
browser/main/Actions/AuthActions.js
Normal file
@@ -0,0 +1,7 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
module.exports = Reflux.createActions([
|
||||
'login',
|
||||
'register',
|
||||
'logout'
|
||||
])
|
||||
11
browser/main/Actions/PlanetActions.js
Normal file
11
browser/main/Actions/PlanetActions.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
module.exports = Reflux.createActions([
|
||||
'fetchPlanet',
|
||||
'createSnippet',
|
||||
'createBlueprint',
|
||||
'updateSnippet',
|
||||
'updateBlueprint',
|
||||
'destroySnippet',
|
||||
'destroyBlueprint'
|
||||
])
|
||||
@@ -1,5 +0,0 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
var fetchPlanet = Reflux.createAction()
|
||||
|
||||
module.exports = fetchPlanet
|
||||
@@ -1,5 +0,0 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
var login = Reflux.createAction()
|
||||
|
||||
module.exports = login
|
||||
@@ -1,5 +0,0 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
var register = Reflux.createAction()
|
||||
|
||||
module.exports = register
|
||||
@@ -1,6 +0,0 @@
|
||||
var Reflux = require('reflux')
|
||||
|
||||
// Creating an Action
|
||||
var updateSnippet = Reflux.createAction()
|
||||
|
||||
module.exports = updateSnippet
|
||||
Reference in New Issue
Block a user