Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/app-framework/actions-and-stores.ts
1503 views
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
/*
7
Collecting together all of the named Actions and Stores interfaces,
8
so it's easier to use them elsewhere.
9
10
For every top level named store:
11
12
- add a section below importing/exporting it
13
- add to the States interface
14
- also add to the States, Stores and Actions interfaces in redux-hooks.ts
15
16
If you don't do this, then things don't get typechecked,
17
which is VERY BAD.
18
*/
19
20
// account
21
export { AccountStore, AccountActions } from "@cocalc/frontend/account";
22
export type { AccountState } from "@cocalc/frontend/account/types";
23
// admin-site-licenses
24
export { SiteLicensesActions } from "@cocalc/frontend/site-licenses/admin/actions";
25
export { SiteLicensesStore } from "@cocalc/frontend/site-licenses/admin/store";
26
export type { SiteLicensesState } from "@cocalc/frontend/site-licenses/admin/types";
27
// admin-users
28
export { AdminUsersActions } from "@cocalc/frontend/admin/users/actions";
29
export { AdminUsersStore } from "@cocalc/frontend/admin/users/store";
30
export type { StoreState as AdminUsersState } from "@cocalc/frontend/admin/users/store";
31
// billing
32
export { BillingActions } from "@cocalc/frontend/billing/actions";
33
export { BillingStore } from "@cocalc/frontend/billing/store";
34
export type { BillingStoreState as BillingState } from "@cocalc/frontend/billing/store";
35
36
// compute_images
37
export {
38
ComputeImagesActions,
39
ComputeImagesStore,
40
} from "../custom-software/init";
41
export type { ComputeImagesState } from "@cocalc/frontend/custom-software/init";
42
// customize
43
export { CustomizeActions, CustomizeStore } from "@cocalc/frontend/customize";
44
export type { CustomizeState } from "@cocalc/frontend/customize";
45
// file_use
46
export { FileUseStore } from "@cocalc/frontend/file-use/store";
47
export { FileUseActions } from "@cocalc/frontend/file-use/actions";
48
export type { FileUseState } from "@cocalc/frontend/file-use/store";
49
// mentions
50
export { MentionsActions, MentionsStore } from "@cocalc/frontend/notifications";
51
export type { MentionsState } from "@cocalc/frontend/notifications";
52
// messages
53
export {
54
MessagesActions,
55
MessagesStore,
56
} from "@cocalc/frontend/messages/redux";
57
export type { MessagesState } from "@cocalc/frontend/messages/redux";
58
// page
59
export { PageActions } from "@cocalc/frontend/app/actions";
60
export { PageStore } from "@cocalc/frontend/app/store";
61
export type { PageState } from "@cocalc/frontend/app/store";
62
// projects
63
export { ProjectsActions } from "@cocalc/frontend/projects/actions";
64
export { ProjectsStore } from "@cocalc/frontend/projects/store";
65
export type { ProjectsState } from "@cocalc/frontend/projects/store";
66
// users
67
export { UsersStore } from "@cocalc/frontend/users/store";
68
export { UsersActions } from "@cocalc/frontend/users/actions";
69
export type { UsersState } from "@cocalc/frontend/users/types";
70
// news
71
export type { NewsState } from "@cocalc/frontend/notifications/news/init";
72
export { NewsStore } from "@cocalc/frontend/notifications/news/init";
73
export { NewsActions } from "@cocalc/frontend/notifications/news/init";
74
75