mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
* wip: add guilds discovery page * add public guilds page * fix and add tests for the groups utilities mixin
15 lines
547 B
JavaScript
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; |