CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/app-framework/actions-and-stores.ts
Views: 687
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
// page
53
export { PageActions } from "@cocalc/frontend/app/actions";
54
export { PageStore } from "@cocalc/frontend/app/store";
55
export type { PageState } from "@cocalc/frontend/app/store";
56
// projects
57
export { ProjectsActions } from "@cocalc/frontend/projects/actions";
58
export { ProjectsStore } from "@cocalc/frontend/projects/store";
59
export type { ProjectsState } from "@cocalc/frontend/projects/store";
60
// users
61
export { UsersStore } from "@cocalc/frontend/users/store";
62
export { UsersActions } from "@cocalc/frontend/users/actions";
63
export type { UsersState } from "@cocalc/frontend/users/types";
64
// news
65
export type { NewsState } from "@cocalc/frontend/notifications/news/init";
66
export { NewsStore } from "@cocalc/frontend/notifications/news/init";
67
export { NewsActions } from "@cocalc/frontend/notifications/news/init";
68
69