Skip to content

Commit

Permalink
update module annotations and authors
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhi713 committed Jul 4, 2019
1 parent 5a44783 commit 0cc0a83
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 27 deletions.
7 changes: 7 additions & 0 deletions src/components/MainContent.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
/**
* @module components
*/
import { Component } from 'vue-property-decorator';
import Store from '../store';
import config from '../config';

/**
* the container for the notification and content right of the side bar
* @author Hanzhi Zhou
*/
@Component
export default class MainContent extends Store {
scrollable = false;
Expand Down
7 changes: 7 additions & 0 deletions src/components/URLModal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
/**
* @module components
*/
import $ from 'jquery';
import 'bootstrap';
import { Vue, Component, Prop } from 'vue-property-decorator';
/**
* component for displaying and copying URL created by [[ExportView]]
* @author Hanzhi Zhou
*/
@Component
export default class URLModal extends Vue {
@Prop(String) readonly url!: string;
Expand Down
8 changes: 2 additions & 6 deletions src/store/filter.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/**
* @module store
* @author Hanzhi Zhou
*/

/**
*
*/
import ScheduleEvaluator, {
SortMode,
Expand Down Expand Up @@ -165,7 +160,8 @@ function getDefaultOptions() {
window.scheduleEvaluator = new ScheduleEvaluator(getDefaultOptions(), window.timeMatrix);

/**
* the filter module handles the manipulation of filters
* the filter module handles the storage and manipulation of filters
* @author Hanzhi Zhou
*/
class FilterStore implements StoreModule<FilterState, FilterStateJSON> {
/**
Expand Down
11 changes: 11 additions & 0 deletions src/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/**
* 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
* @module store
* @preferred
*/

/**
*
*/
import Store from './store';
export default Store;
export * from './store';
Expand Down
4 changes: 0 additions & 4 deletions src/store/palette.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/**
* @module store
*/

/**
*
*/
import { StoreModule } from '.';

export interface PaletteState {
Expand Down
9 changes: 9 additions & 0 deletions src/store/profile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/**
* @module store
*/
import { SemesterJSON } from '@/models/Catalog';
import { SemesterStorage } from '.';

/**
* the profile class handles profiles adding, renaming and deleting
* @note profile selection is handled in the [[Store]] class
* because it also needs to manipulate other store modules
* @author Hanzhi Zhou
*/
class Profile {
/**
* a reactive property. whenever changed, the `currentProfile` in the `localStorage` will be updated
Expand Down
4 changes: 0 additions & 4 deletions src/store/semester.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/**
* @module store
*/

/**
*
*/
import { loadSemesterData } from '../data/CatalogLoader';
import { loadSemesterList } from '../data/SemesterListLoader';
import { SemesterJSON } from '../models/Catalog';
Expand Down
6 changes: 1 addition & 5 deletions src/store/status.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
/**
* @module store
*/

/**
*
*/
import Event from '../models/Event';

interface Sidebars {
Expand Down Expand Up @@ -51,7 +47,7 @@ class Status {
showInfo: false,
showExternal: false,
showLog: false,
showCompare: false,
showCompare: false
};

/**
Expand Down
8 changes: 0 additions & 8 deletions src/store/store.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
/**
* 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
* @module store
* @preferred
*/

/**
*
*/
import { Vue, Component } from 'vue-property-decorator';
import { EvaluatorOptions } from '../algorithm/ScheduleEvaluator';
Expand Down
4 changes: 4 additions & 0 deletions src/store/watch.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/**
* @module store
*/
import { Component, Watch } from 'vue-property-decorator';
import Store from './store';
import Schedule from '@/models/Schedule';
/**
* 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
*/
@Component
// tslint:disable-next-line: max-classes-per-file
Expand Down

0 comments on commit 0cc0a83

Please sign in to comment.