-
-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto docs using husky pre-commit (#3290)
* auto-docs * yarn to npm * broken links fixed and code refactored * github action created * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * docs removed * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * github action removed & husky used * auto docs in gitignore * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated * pull-request.yml updated
- Loading branch information
1 parent
82e2180
commit dd4a08e
Showing
955 changed files
with
20,381 additions
and
4,853 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
|
||
npm run generate-docs | ||
npm run format:fix | ||
# npm run lint:fix | ||
npm run lint-staged | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Function: default() | ||
|
||
> **default**(): `JSX.Element` | ||
Defined in: [src/App.tsx:74](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/App.tsx#L74) | ||
|
||
This is the main function for our application. It sets up all the routes and components, | ||
defining how the user can navigate through the app. The function uses React Router's `Routes` | ||
and `Route` components to map different URL paths to corresponding screens and components. | ||
|
||
## Important Details | ||
- **UseEffect Hook**: This hook checks user authentication status using the `CHECK_AUTH` GraphQL query. | ||
- **Plugins**: It dynamically loads additional routes for any installed plugins. | ||
- **Routes**: | ||
- The root route ("/") takes the user to the `LoginPage`. | ||
- Protected routes are wrapped with the `SecuredRoute` component to ensure they are only accessible to authenticated users. | ||
- Admin and Super Admin routes allow access to organization and user management screens. | ||
- User portal routes allow end-users to interact with organizations, settings, chat, events, etc. | ||
|
||
## Returns | ||
|
||
`JSX.Element` | ||
|
||
The rendered routes and components of the application. |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/AUTH_TOKEN.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: AUTH\_TOKEN | ||
|
||
> `const` **AUTH\_TOKEN**: `""` = `''` | ||
Defined in: [src/Constant/constant.ts:1](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L1) |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/BACKEND_URL.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: BACKEND\_URL | ||
|
||
> `const` **BACKEND\_URL**: `string` = `process.env.REACT_APP_TALAWA_URL` | ||
Defined in: [src/Constant/constant.ts:2](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L2) |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/REACT_APP_BACKEND_WEBSOCKET_URL.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: REACT\_APP\_BACKEND\_WEBSOCKET\_URL | ||
|
||
> `const` **REACT\_APP\_BACKEND\_WEBSOCKET\_URL**: `string` | ||
Defined in: [src/Constant/constant.ts:6](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L6) |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/REACT_APP_CUSTOM_PORT.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: REACT\_APP\_CUSTOM\_PORT | ||
|
||
> `const` **REACT\_APP\_CUSTOM\_PORT**: `string` = `process.env.PORT` | ||
Defined in: [src/Constant/constant.ts:5](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L5) |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/REACT_APP_USE_RECAPTCHA.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: REACT\_APP\_USE\_RECAPTCHA | ||
|
||
> `const` **REACT\_APP\_USE\_RECAPTCHA**: `string` = `process.env.REACT_APP_USE_RECAPTCHA` | ||
Defined in: [src/Constant/constant.ts:4](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L4) |
9 changes: 9 additions & 0 deletions
9
docs/docs/auto-docs/Constant/constant/variables/RECAPTCHA_SITE_KEY.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: RECAPTCHA\_SITE\_KEY | ||
|
||
> `const` **RECAPTCHA\_SITE\_KEY**: `string` = `process.env.REACT_APP_RECAPTCHA_SITE_KEY` | ||
Defined in: [src/Constant/constant.ts:3](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/Constant/constant.ts#L3) |
23 changes: 23 additions & 0 deletions
23
...s/ActionItemCategoryMutations/variables/CREATE_ACTION_ITEM_CATEGORY_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: CREATE\_ACTION\_ITEM\_CATEGORY\_MUTATION | ||
|
||
> `const` **CREATE\_ACTION\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/ActionItemCategoryMutations.ts:11](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/ActionItemCategoryMutations.ts#L11) | ||
|
||
GraphQL mutation to create an action item category. | ||
|
||
## Param | ||
|
||
Name of the ActionItemCategory. | ||
|
||
## Param | ||
|
||
Disabled status of the ActionItemCategory. | ||
|
||
## Param | ||
|
||
Organization to which the ActionItemCategory belongs. |
23 changes: 23 additions & 0 deletions
23
...s/ActionItemCategoryMutations/variables/UPDATE_ACTION_ITEM_CATEGORY_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: UPDATE\_ACTION\_ITEM\_CATEGORY\_MUTATION | ||
|
||
> `const` **UPDATE\_ACTION\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/ActionItemCategoryMutations.ts:35](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/ActionItemCategoryMutations.ts#L35) | ||
|
||
GraphQL mutation to update an action item category. | ||
|
||
## Param | ||
|
||
The id of the ActionItemCategory to be updated. | ||
|
||
## Param | ||
|
||
Updated name of the ActionItemCategory. | ||
|
||
## Param | ||
|
||
Updated disabled status of the ActionItemCategory. |
35 changes: 35 additions & 0 deletions
35
.../GraphQl/Mutations/ActionItemMutations/variables/CREATE_ACTION_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: CREATE\_ACTION\_ITEM\_MUTATION | ||
|
||
> `const` **CREATE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:14](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/ActionItemMutations.ts#L14) | ||
|
||
GraphQL mutation to create an action item. | ||
|
||
## Param | ||
|
||
ActionItemCategory to which the ActionItem is related. | ||
|
||
## Param | ||
|
||
User to whom the ActionItem is assigned. | ||
|
||
## Param | ||
|
||
Notes prior to completion. | ||
|
||
## Param | ||
|
||
Due date. | ||
|
||
## Param | ||
|
||
Event to which the ActionItem is related. | ||
|
||
## Param | ||
|
||
Hours allotted for the ActionItem. |
15 changes: 15 additions & 0 deletions
15
.../GraphQl/Mutations/ActionItemMutations/variables/DELETE_ACTION_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: DELETE\_ACTION\_ITEM\_MUTATION | ||
|
||
> `const` **DELETE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:88](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/ActionItemMutations.ts#L88) | ||
|
||
GraphQL mutation to delete an action item. | ||
|
||
## Param | ||
|
||
Id of the ActionItem to be updated. |
39 changes: 39 additions & 0 deletions
39
.../GraphQl/Mutations/ActionItemMutations/variables/UPDATE_ACTION_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: UPDATE\_ACTION\_ITEM\_MUTATION | ||
|
||
> `const` **UPDATE\_ACTION\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/ActionItemMutations.ts:52](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/ActionItemMutations.ts#L52) | ||
|
||
GraphQL mutation to update an action item. | ||
|
||
## Param | ||
|
||
Id of the ActionItem to be updated. | ||
|
||
## Param | ||
|
||
User to whom the ActionItem is assigned. | ||
|
||
## Param | ||
|
||
Notes prior to completion. | ||
|
||
## Param | ||
|
||
Notes on completion. | ||
|
||
## Param | ||
|
||
Due date. | ||
|
||
## Param | ||
|
||
Completion date. | ||
|
||
## Param | ||
|
||
Whether the ActionItem has been completed. |
15 changes: 15 additions & 0 deletions
15
...tions/AgendaCategoryMutations/variables/CREATE_AGENDA_ITEM_CATEGORY_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: CREATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION | ||
|
||
> `const` **CREATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:9](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L9) | ||
|
||
GraphQL mutation to create an agenda category. | ||
|
||
## Param | ||
|
||
Name, Description, OrganizationID of the AgendaCategory. |
15 changes: 15 additions & 0 deletions
15
...tions/AgendaCategoryMutations/variables/DELETE_AGENDA_ITEM_CATEGORY_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: DELETE\_AGENDA\_ITEM\_CATEGORY\_MUTATION | ||
|
||
> `const` **DELETE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:23](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L23) | ||
|
||
GraphQL mutation to delete an agenda category. | ||
|
||
## Param | ||
|
||
The ID of the AgendaCategory to be deleted. |
19 changes: 19 additions & 0 deletions
19
...tions/AgendaCategoryMutations/variables/UPDATE_AGENDA_ITEM_CATEGORY_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: UPDATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION | ||
|
||
> `const` **UPDATE\_AGENDA\_ITEM\_CATEGORY\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaCategoryMutations.ts:36](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaCategoryMutations.ts#L36) | ||
|
||
GraphQL mutation to update an agenda category. | ||
|
||
## Param | ||
|
||
The ID of the AgendaCategory to be updated. | ||
|
||
## Param | ||
|
||
Updated Name, Description, OrganizationID of the AgendaCategory. |
9 changes: 9 additions & 0 deletions
9
.../GraphQl/Mutations/AgendaItemMutations/variables/CREATE_AGENDA_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: CREATE\_AGENDA\_ITEM\_MUTATION | ||
|
||
> `const` **CREATE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:3](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaItemMutations.ts#L3) |
9 changes: 9 additions & 0 deletions
9
.../GraphQl/Mutations/AgendaItemMutations/variables/DELETE_AGENDA_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: DELETE\_AGENDA\_ITEM\_MUTATION | ||
|
||
> `const` **DELETE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:12](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaItemMutations.ts#L12) |
9 changes: 9 additions & 0 deletions
9
.../GraphQl/Mutations/AgendaItemMutations/variables/UPDATE_AGENDA_ITEM_MUTATION.md
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Admin Docs](/) | ||
|
||
*** | ||
|
||
# Variable: UPDATE\_AGENDA\_ITEM\_MUTATION | ||
|
||
> `const` **UPDATE\_AGENDA\_ITEM\_MUTATION**: `DocumentNode` | ||
Defined in: [src/GraphQl/Mutations/AgendaItemMutations.ts:20](https://github.com/gautam-divyanshu/talawa-admin/blob/69cd9f147d3701d1db7821366b2c564d1fb49f77/src/GraphQl/Mutations/AgendaItemMutations.ts#L20) |
Oops, something went wrong.