Files
habitica/website/client/store/state.js
Matteo Pagliazzi dc8598ae81 Client: Guilds Discovery (#8529)
* wip: add guilds discovery page

* add public guilds page

* fix and add tests for the groups utilities mixin
2017-03-03 19:38:17 +01:00

15 lines
547 B
JavaScript

import deepFreeze from '../libs/deepFreeze';
import content from '../../common/script/content/index';
const state = {
title: 'Habitica',
user: null,
tasks: null, // user tasks
guilds: null, // list of public guilds, not fetched initially
// 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;