WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export default defineConfig({
apiUrl: process.env.CYPRESS_API_URL || 'http://localhost:4000/graphql',
},
setupNodeEvents(on, config) {
// Setup code coverage task - must be called before other task registrations
// This registers the coverageReport task that @cypress/code-coverage/support uses
codeCoverageTask(on, config);

// Custom task to log messages and read files
on('task', {
log(message: string) {
Expand Down Expand Up @@ -83,9 +86,6 @@ export default defineConfig({
return launchOptions;
});

// Custom plugins can be registered here
// Example: require('@cypress/code-coverage/task')(on, config);

return config;
},
},
Expand Down
8 changes: 6 additions & 2 deletions docker/Dockerfile.deploy
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ ARG PORT=4321
ENV PORT=${PORT}

WORKDIR /usr/src/app
RUN corepack enable && corepack prepare [email protected] --activate

COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

RUN corepack enable \
&& corepack prepare [email protected] --activate \
&& pnpm install --frozen-lockfile --reporter=append-only

COPY . .
RUN pnpm run build
ENV NODE_ENV=production
Expand Down
9 changes: 7 additions & 2 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ ENV PORT=${PORT}

WORKDIR /usr/src/app

RUN corepack enable && corepack prepare [email protected] --activate
# Enable pnpm globally
RUN corepack enable

# Copy dependency manifests only
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

RUN corepack prepare [email protected] --activate \
&& pnpm install --frozen-lockfile --reporter=append-only

COPY . .

Expand Down
10 changes: 8 additions & 2 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
FROM node:24-slim AS builder
WORKDIR /talawa-admin

RUN corepack enable && corepack prepare [email protected] --activate
# Enable pnpm globally
RUN corepack enable

# Copy dependency manifests
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

# Install dependencies
RUN corepack prepare [email protected] --activate \
&& pnpm install --frozen-lockfile --reporter=append-only

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/auto-docs/App/functions/default.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(): `ReactElement`

Defined in: [src/App.tsx:122](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/App.tsx#L122)
Defined in: [src/App.tsx:126](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/App.tsx#L126)

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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(`__namedParameters`): `Element`

Defined in: [src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx:69](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx#L69)
Defined in: [src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx:70](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/Advertisements/core/AdvertisementRegister/AdvertisementRegister.tsx#L70)

## Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(): `Element`

Defined in: [src/components/SecuredRoute/SecuredRoute.tsx:47](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/SecuredRoute/SecuredRoute.tsx#L47)
Defined in: [src/components/SecuredRoute/SecuredRoute.tsx:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/SecuredRoute/SecuredRoute.tsx#L49)

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **default**(): `Element`

Defined in: [src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx:44](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx#L44)
Defined in: [src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx:46](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/components/UserPortal/SecuredRouteForUser/SecuredRouteForUser.tsx#L46)

## Returns

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

# Class: LifecycleManager

Defined in: [src/plugin/managers/lifecycle.ts:12](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L12)
Defined in: [src/plugin/managers/lifecycle.ts:13](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L13)

## Constructors

### Constructor

> **new LifecycleManager**(`discoveryManager`, `extensionRegistry`, `eventManager`): `LifecycleManager`
Defined in: [src/plugin/managers/lifecycle.ts:15](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L15)
Defined in: [src/plugin/managers/lifecycle.ts:16](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L16)

#### Parameters

Expand All @@ -38,7 +38,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:15](https://github.com/PalisadoesF

> **activatePlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:141](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L141)
Defined in: [src/plugin/managers/lifecycle.ts:142](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L142)

#### Parameters

Expand All @@ -56,7 +56,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:141](https://github.com/Palisadoes

> **deactivatePlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:177](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L177)
Defined in: [src/plugin/managers/lifecycle.ts:178](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L178)

#### Parameters

Expand All @@ -74,7 +74,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:177](https://github.com/Palisadoes

> **getActivePluginCount**(): `number`
Defined in: [src/plugin/managers/lifecycle.ts:52](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L52)
Defined in: [src/plugin/managers/lifecycle.ts:53](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L53)

#### Returns

Expand All @@ -86,7 +86,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:52](https://github.com/PalisadoesF

> **getLoadedPlugin**(`pluginId`): [`ILoadedPlugin`](../../../types/interfaces/ILoadedPlugin.md)
Defined in: [src/plugin/managers/lifecycle.ts:25](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L25)
Defined in: [src/plugin/managers/lifecycle.ts:26](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L26)

#### Parameters

Expand All @@ -104,7 +104,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:25](https://github.com/PalisadoesF

> **getLoadedPlugins**(): [`ILoadedPlugin`](../../../types/interfaces/ILoadedPlugin.md)[]
Defined in: [src/plugin/managers/lifecycle.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L21)
Defined in: [src/plugin/managers/lifecycle.ts:22](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L22)

#### Returns

Expand All @@ -116,7 +116,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:21](https://github.com/PalisadoesF

> **getPluginComponent**(`pluginId`, `componentName`): `ComponentType`\<\{ \}\>
Defined in: [src/plugin/managers/lifecycle.ts:32](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L32)
Defined in: [src/plugin/managers/lifecycle.ts:33](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L33)

#### Parameters

Expand All @@ -138,7 +138,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:32](https://github.com/PalisadoesF

> **getPluginCount**(): `number`
Defined in: [src/plugin/managers/lifecycle.ts:48](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L48)
Defined in: [src/plugin/managers/lifecycle.ts:49](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L49)

#### Returns

Expand All @@ -150,7 +150,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:48](https://github.com/PalisadoesF

> **installPlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:213](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L213)
Defined in: [src/plugin/managers/lifecycle.ts:214](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L214)

#### Parameters

Expand All @@ -168,7 +168,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:213](https://github.com/Palisadoes

> **loadPlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:58](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L58)
Defined in: [src/plugin/managers/lifecycle.ts:59](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L59)

#### Parameters

Expand All @@ -186,7 +186,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:58](https://github.com/PalisadoesF

> **togglePluginStatus**(`pluginId`, `status`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:130](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L130)
Defined in: [src/plugin/managers/lifecycle.ts:131](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L131)

#### Parameters

Expand All @@ -208,7 +208,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:130](https://github.com/Palisadoes

> **uninstallPlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:267](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L267)
Defined in: [src/plugin/managers/lifecycle.ts:268](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L268)

#### Parameters

Expand All @@ -226,7 +226,7 @@ Defined in: [src/plugin/managers/lifecycle.ts:267](https://github.com/Palisadoes

> **unloadPlugin**(`pluginId`): `Promise`\<`boolean`\>
Defined in: [src/plugin/managers/lifecycle.ts:102](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L102)
Defined in: [src/plugin/managers/lifecycle.ts:103](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/plugin/managers/lifecycle.ts#L103)

#### Parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

> **usePluginActions**(`__namedParameters`): `object`
Defined in: [src/screens/PluginStore/hooks/usePluginActions.ts:20](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/PluginStore/hooks/usePluginActions.ts#L20)
Defined in: [src/screens/PluginStore/hooks/usePluginActions.ts:21](https://github.com/PalisadoesFoundation/talawa-admin/blob/main/src/screens/PluginStore/hooks/usePluginActions.ts#L21)

## Parameters

Expand Down
39 changes: 37 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,43 @@
},
"pnpm": {
"overrides": {
"@apollo/client": "3.14.0"
}
"@apollo/client": "3.14.0",
"@pdfme/common": "5.4.8",
"@pdfme/schemas": "5.4.8",
"@pdfme/generator": "5.4.8",
"rc-color-picker>react": "^19.1.0",
"rc-color-picker>react-dom": "^19.1.0",
"virtualizedtableforantd4>react": "^19.1.0",
"virtualizedtableforantd4>react-dom": "^19.1.0",
"@types/react": "^19.1.1",
"@types/react-dom": "^19.1.1",
"whatwg-url": "^14.0.0",
"core-js": "^3.40.0",
"sync-fetch": "npm:@ardatan/[email protected]",
"gulp-header": "^2.0.9",
"rimraf": "^6.1.2",
"glob": "^13.0.0",
"nyc": "17.1.0"
},
"peerDependencyRules": {
"allowedVersions": {
"react": ">=16",
"react-dom": ">=16"
},
"ignoreMissing": [
"react",
"react-dom",
"@pdfme/common",
"@pdfme/schemas"
]
},
"onlyBuiltDependencies": [
"esbuild",
"@parcel/watcher",
"core-js",
"cypress",
"sharp"
]
},
"engines": {
"node": ">=24.x"
Expand Down
Loading
Loading