-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-formio): changing naming convention for Type (prefix by Typ…
…e instead Schema)
- Loading branch information
Showing
78 changed files
with
299 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-formio-stores/src/stores/action-info/action-info.reducers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
packages/react-formio-stores/src/stores/action-info/action-info.selectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
import type { ActionSchema } from "@tsed/react-formio"; | ||
import type { ActionType } from "@tsed/react-formio"; | ||
|
||
import { selectRoot } from "../root"; | ||
import { ACTION_INFO } from "./action-info.constant"; | ||
import { ActionInfoState } from "./action-info.reducers"; | ||
|
||
export const selectActionInfo = (state: Record<string, any>): Partial<ActionSchema> => | ||
selectRoot<ActionInfoState>(ACTION_INFO, state).data!; | ||
export const selectActionInfo = (state: Record<string, any>): Partial<ActionType> => selectRoot<ActionInfoState>(ACTION_INFO, state).data!; |
4 changes: 2 additions & 2 deletions
4
packages/react-formio-stores/src/stores/action/action.reducers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/react-formio-stores/src/stores/action/action.selectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { ActionSchema } from "@tsed/react-formio"; | ||
import type { ActionType } from "@tsed/react-formio"; | ||
|
||
import { selectRoot } from "../root"; | ||
import { ACTION } from "./action.constant"; | ||
import { ActionState } from "./action.reducers"; | ||
|
||
export const selectAction = (state: Record<string, any>): ActionSchema => selectRoot<ActionState>(ACTION, state).data; | ||
export const selectAction = (state: Record<string, any>): ActionType => selectRoot<ActionState>(ACTION, state).data; |
6 changes: 3 additions & 3 deletions
6
packages/react-formio-stores/src/stores/actions/actions.reducers.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import type { FormSchema, RoleSchema, Submission } from "@tsed/react-formio"; | ||
import type { FormType, RoleType, SubmissionType } from "@tsed/react-formio"; | ||
import { createAction } from "@tsed/redux-utils"; | ||
|
||
export const requestUser = createAction(); | ||
export const receiveUser = createAction<{ user: Submission }>(); | ||
export const receiveUser = createAction<{ user: SubmissionType }>(); | ||
export const failUser = createAction<{ error: Error }>(); | ||
export const logoutUser = createAction(); | ||
export const submissionAccessUser = createAction<{ submissionAccess: any }>(); | ||
export const formAccessUser = createAction<{ formAccess: any }>(); | ||
export const projectAccessUser = createAction<{ projectAccess: any }>(); | ||
export const userRoles = createAction<{ roles: Record<string, RoleSchema> }>(); | ||
export const userForms = createAction<{ forms: Record<string, FormSchema> }>(); | ||
export const userRoles = createAction<{ roles: Record<string, RoleType> }>(); | ||
export const userForms = createAction<{ forms: Record<string, FormType> }>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.