Files
habitica/website/client/store/state.js
T
Matteo Pagliazzi 8805f81b96 Client/inventory WIP (#8527)
* some stable work and faster less recompilation

*  user with zero tasks can use the app

* wip work to show loading status of resources

* revert changes to sync
2017-03-03 15:40:21 +01:00

14 lines
483 B
JavaScript

import deepFreeze from '../libs/deepFreeze';
import content from '../../common/script/content/index';
const state = {
title: 'Habitica',
user: null,
tasks: null, // user tasks
// content data, frozen to prevent Vue from modifying it since it's static and never changes
// TODO apply freezing to the entire codebase (the server) and not only to the client side?
// NOTE this takes about 10-15ms on a fast computer
content: deepFreeze(content),
};
export default state;