Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WatchFactory

the watch factory defines some watchers on the members in Store. these watchers are defined outside of the Store class because they should only be registered once.

author

Hanzhi Zhou

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

Methods

Private a

  • a(): void

Private b

  • b(): void

Private c

  • c(): void

Private d

  • d(): void

Private e

  • e(): void

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>

loadingWatch

  • loadingWatch(): 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

Private w0

  • w0(): void

Private w2

  • w2(): void

Private w3

  • w3(): void

Private w4

  • w4(): void

Generated using TypeDoc