* http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * TodoConstants */ var Fluxy = require('fluxy'); //These are just EVENTS managed in more consistent way var TodoConstants = Fluxy.createConstants({ serviceMessages: [ 'TODO_CREATE', 'TODO_UPDATE_TEXT', 'TODO_TOGGLE_COMPLETION', 'TODO_COMPLETE_ALL', 'TODO_DESTROY', 'TODO_DESTROY_COMPLETED_TODOS' ], messages: [], values: {} }); module.exports = TodoConstants;
var Fluxy = require('fluxy'); var ItemConstants = Fluxy.createConstants({ messages: [ 'ITEMS_FETCH', 'ITEMS_FETCH_SUCCESS', 'ITEMS_FETCH_FAIL' ] }); module.exports = ItemConstants;
var Fluxy = require('fluxy'); var AppConstants = Fluxy.createConstants({ serviceMessages: [ ] }); module.exports = AppConstants;