Skip to content

Commit

Permalink
Merge branch 'develop-postgres' into issue#3073
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhil2k4 authored Dec 31, 2024
2 parents 9b9b8c8 + 6349f3f commit 80b4e61
Show file tree
Hide file tree
Showing 30 changed files with 1,532 additions and 611 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
.eslintignore
.prettierrc
.prettierignore
.nojekyll
vite.config.ts
docker-compose.yaml
Dockerfile
Expand All @@ -133,6 +132,11 @@ jobs:
*.password
*.secret
*.credentials
.nojekyll
yarn.lock
docs/docusaurus.config.ts
docs/sidebar*
CNAME
- name: List all changed unauthorized files
if: steps.changed-unauth-files.outputs.any_changed == 'true' || steps.changed-unauth-files.outputs.any_deleted == 'true'
Expand Down
16 changes: 8 additions & 8 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Talawa-Admin Documentation Website
# Talawa Admin Documentation Website

[![N|Solid](static/img/markdown/misc/logo.png)](https://github.com/PalisadoesFoundation/docs-admin)
[![N|Solid](static/img/markdown/misc/logo.png)](https://github.com/PalisadoesFoundation/talawa-admin)

# Installation

This document provides instructions on how to set up and start a running instance of docs-admin website on your local system. The instructions are written to be followed in sequence so make sure to go through each of them step by step without skipping any sections.
This document provides instructions on how to set up and start a running instance of the [talawa-admin documentation website](https://docs-admin.talawa.io/) on your local system. The instructions are written to be followed in sequence so make sure to go through each of them step by step without skipping any sections.

# Table of Contents

<!-- /TOC -->

- [Developer-Docs Installation](#docs-admin-installation)
- [Developer-Docs Installation](#talawa-admin-installation)
- [Table of Contents](#table-of-contents)
- [Prerequisites for Developers](#prerequisites-for-developers)
- [Install node.js](#install-nodejs)
Expand All @@ -25,7 +25,7 @@ This document provides instructions on how to set up and start a running instanc

# Prerequisites for Developers

The contents of the `docs-admin` repo is used to automatically create [the Talawa-Admin Documentation website](https://docs-admin.talawa.io/). The automation uses [Docusaurus](https://docusaurus.io/docs/), a modern static website generator.
The contents of the `talawa-admin` repo is used to automatically create [the talawa-admin Documentation website](https://docs-admin.talawa.io/). The automation uses [Docusaurus](https://docusaurus.io/docs/), a modern static website generator.

We recommend that you follow these steps before beginning development work in this repository.

Expand All @@ -46,8 +46,8 @@ $ yarn -version
**Note:** Please bear in mind that to install docusaurus in your system, a Node.js version 16.14 or above (which can be checked by running node -v) is required. Other requirements that pertains to the installation of docusaurus can be found [here](https://docusaurus.io/docs/installation)

```console
$ git clone https://github.com/PalisadoesFoundation/docs-admin.git
$ cd docs-admin
$ git clone https://github.com/PalisadoesFoundation/talawa-admin.git
$ cd talawa-admin
$ yarn add docusaurus
```

Expand Down Expand Up @@ -173,4 +173,4 @@ If you need to generate static HTML pages (unlikely), then follow these steps.
$ yarn run build
```

This command generates static content into the `/build` directory and can be served using any static contents hosting service.
This command generates static content into the `/build` directory and can be served using any static contents hosting service.
12 changes: 0 additions & 12 deletions docs/blog/2019-05-28-first-blog-post.md

This file was deleted.

44 changes: 0 additions & 44 deletions docs/blog/2019-05-29-long-blog-post.md

This file was deleted.

24 changes: 0 additions & 24 deletions docs/blog/2021-08-01-mdx-blog-post.mdx

This file was deleted.

Binary file not shown.
29 changes: 0 additions & 29 deletions docs/blog/2021-08-26-welcome/index.md

This file was deleted.

23 changes: 0 additions & 23 deletions docs/blog/authors.yml

This file was deleted.

19 changes: 0 additions & 19 deletions docs/blog/tags.yml

This file was deleted.

10 changes: 8 additions & 2 deletions src/GraphQl/Queries/AgendaCategoryQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ import gql from 'graphql-tag';
*/

export const AGENDA_ITEM_CATEGORY_LIST = gql`
query AgendaItemCategoriesByOrganization($organizationId: ID!) {
agendaItemCategoriesByOrganization(organizationId: $organizationId) {
query AgendaItemCategoriesByOrganization(
$organizationId: ID!
$where: AgendaItemCategoryWhereInput
) {
agendaItemCategoriesByOrganization(
organizationId: $organizationId
where: $where
) {
_id
name
description
Expand Down
6 changes: 3 additions & 3 deletions src/components/AgendaCategory/AgendaCategoryContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ function agendaCategoryContainer({
<div className="ms-3">{t('name')}</div>
</Col>
<Col
className="align-self-center fw-bold d-none d-md-block"
className={` align-self-center fw-bold d-none d-md-block`}
md={6}
lg={2}
lg={6}
>
{t('description')}
</Col>
Expand Down Expand Up @@ -242,7 +242,7 @@ function agendaCategoryContainer({
</Col>
<Col
md={6}
lg={2}
lg={6}
className="p-1 d-none d-md-block align-self-center text-body-secondary"
>
{agendaCategory.description}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';
import { Modal, Form, Button } from 'react-bootstrap';
import type { ChangeEvent } from 'react';
import styles from './OrganizationAgendaCategory.module.css';

import styles from 'style/app.module.css';
/**
* InterfaceFormStateType is an object containing the form state
*/
Expand Down Expand Up @@ -48,12 +47,14 @@ const AgendaCategoryCreateModal: React.FC<
}) => {
return (
<Modal
className={styles.AgendaCategoryModal}
className={`mt-5 ${styles.campaignModal}`}
show={agendaCategoryCreateModalIsOpen}
onHide={hideCreateModal}
>
<Modal.Header>
<p className={styles.titlemodal}>{t('agendaCategoryDetails')}</p>
<p className={styles.titlemodalOrganizationEvents}>
{t('agendaCategoryDetails')}
</p>
<Button
variant="danger"
onClick={hideCreateModal}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Modal, Button } from 'react-bootstrap';
import styles from './OrganizationAgendaCategory.module.css';
import styles from 'style/app.module.css';

/**
* InterfaceAgendaCategoryDeleteModalProps is an object containing the props for AgendaCategoryDeleteModal component
Expand Down Expand Up @@ -35,7 +35,7 @@ const AgendaCategoryDeleteModal: React.FC<
<Modal
size="sm"
id={`deleteAgendaCategoryModal`}
className={styles.agendaCategoryModal}
className={styles.campaignModal}
show={agendaCategoryDeleteModalIsOpen}
onHide={toggleDeleteModal}
backdrop="static"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Modal, Form, Button } from 'react-bootstrap';

import styles from './OrganizationAgendaCategory.module.css';
import styles from 'style/app.module.css';

/**
* InterfaceFormStateType is an object containing the form state
Expand Down Expand Up @@ -47,12 +47,14 @@ const AgendaCategoryPreviewModal: React.FC<
}) => {
return (
<Modal
className={styles.AgendaCategoryModal}
className={styles.campaignModal}
show={agendaCategoryPreviewModalIsOpen}
onHide={hidePreviewModal}
>
<Modal.Header>
<p className={styles.titlemodal}>{t('agendaCategoryDetails')}</p>
<p className={styles.titlemodalOrganizationEvents}>
{t('agendaCategoryDetails')}
</p>
<Button
onClick={hidePreviewModal}
data-testid="previewAgendaCategoryModalCloseBtn"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Modal, Form, Button } from 'react-bootstrap';
import type { ChangeEvent } from 'react';

import styles from './OrganizationAgendaCategory.module.css';
import styles from 'style/app.module.css';

/**
* InterfaceFormStateType is an object containing the form state
Expand Down Expand Up @@ -49,12 +49,14 @@ const AgendaCategoryUpdateModal: React.FC<
}) => {
return (
<Modal
className={styles.AgendaCategoryModal}
className={styles.campaignModal}
show={agendaCategoryUpdateModalIsOpen}
onHide={hideUpdateModal}
>
<Modal.Header>
<p className={styles.titlemodal}>{t('updateAgendaCategory')}</p>
<p className={styles.titlemodalOrganizationEvents}>
{t('updateAgendaCategory')}
</p>
<Button
onClick={hideUpdateModal}
data-testid="updateAgendaCategoryModalCloseBtn"
Expand Down
Loading

0 comments on commit 80b4e61

Please sign in to comment.