store.main. state

The state of the main store

Members

(static) account_doc

Properties
NameTypeDescription
account_docObject

The authenticated user's document from the users collection in firestore

Default Value
  • null
See
  • active_doc

(static) classes

Properties
NameTypeDescription
classesArray

Collection of the firebase document ids of classes that the user is in

Default Value
  • []
See
  • fetch_classes
  • get_tasks
  • tasks

(static) linked_account_doc

Properties
NameTypeDescription
linked_account_docObject

The linked account document from the users collection in firestore

Default Value
  • null
See
  • active_doc

(static) loaded_classes

Properties
NameTypeDescription
loaded_classesArray

The classes that have been loaded for the loaded_email (for previews in AddClass.vue)

Default Value
  • null
See
  • loaded_email
  • fetch_classes_by_email

(static) loaded_email

Properties
NameTypeDescription
loaded_emailString

The email of the user that the classes have been loaded for (for previews in AddClass.vue)

Default Value
  • null
See
  • loaded_classes
  • fetch_classes_by_email

(static) logout_prompt

Properties
NameTypeDescription
logout_promptBoolean

If the app is showing a logout prompt (true) or not (false)

Default Value
  • false

(static) paused

Properties
NameTypeDescription
pausedBoolean

If the app is paused (true) or not (false)

Default Value
  • false
See
  • show_timeout
  • hide_timeout

(static) personal_account

Properties
NameTypeDescription
personal_accountBoolean

If the user is using their personal account (true) or a valid org account (false)

Default Value
  • false
See
  • linked_account_doc
  • linked_account_ref
  • active_doc
  • active_ref

(static) tasks

Properties
NameTypeDescription
tasksArray

Collection of the processed task objects

Default Value
  • []
See
  • get_tasks

(static) teacher

Properties
NameTypeDescription
teacherObject

The teacher object, with doc_ref and collection_ref

Default Value
  • {doc_ref: null, collection_ref: null}
See
  • is_teacher
  • create_teacher_doc

(static) theme

Properties
NameTypeDescription
themeTheme

The theme of the app, either Theme.Light or Theme.Dark

Default Value
  • null
See
  • get_theme
  • toggle_theme
  • clear

(static) user

Properties
NameTypeDescription
userObject

The user object from firebase auth

Default Value
  • null