Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Store

The Store module provides methods to save, retrieve and manipulate store. It gathers all children modules and store their references in a single store class, which is provided as a Mixin

Hierarchy

Index

Properties

compare

compare: CompareCandidate[] = compare

display

display: Display = display

filter

filter: FilterStore = filter

modal

modal: Modal = modal

noti

noti: Notification = noti

palette

palette: Palette = palette

profile

profile: Profile = profile

schedule

schedule: ScheduleStore = schedule

semester

semester: Semesters = semester

status

status: Status = status

Static Vue

Vue: VueConstructor

Methods

generateSchedules

getGeneratorOptions

loadProfile

  • loadProfile(force?: boolean): Promise<void>
  • Load Profile.current, switch to the profile's semester. Recover all store modules' states from the localStorage, and assign a correct Catalog object to window.catalog,

    note

    if you want to switch to other profiles, assign the profile name to Profile.current first.

    Parameters

    • Default value force: boolean = false

      force update current semester data and load the given profile

    Returns Promise<void>

saveStatus

  • saveStatus(): void

selectSemester

  • Select a semester and fetch all its associated data, note that the first profile corresponding to the target semester will be loaded.

    Parameters

    • target: SemesterJSON | null

      the semester to switch to. If null, switch to the latest semester

    Returns Promise<void>

validateSortOptions

  • validateSortOptions(): boolean
  • Returns boolean

    true if the current combination of sort options is valid, false otherwise

Generated using TypeDoc