Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ghostCMS and netlify #590

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 0 additions & 2 deletions .github/workflows/codeforafrica-deploy-review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:
MONGODB_URL=${{ secrets.CODEFORAFRICA_MONGO_URL }}/${{ env.APP_NAME }}
NEXT_PUBLIC_APP_URL=${{ env.NEXT_PUBLIC_APP_URL }}
PAYLOAD_SECRET=${{ secrets.CODEFORAFRICA_PAYLOAD_SECRET_KEY }}
GHOST_URL=${{ secrets.GHOST_URL }}
GHOST_API_KEY=${{ secrets.GHOST_API_KEY }}
NEXT_PUBLIC_APP_LOGO_URL=${{ secrets.NEXT_PUBLIC_APP_CFA_LOGO_URL }}
NEXT_PUBLIC_APP_NAME=${{ secrets.NEXT_PUBLIC_APP_CFA_NAME }}
cache-from: type=local,src=/tmp/.buildx-cache
Expand Down
6 changes: 1 addition & 5 deletions Dockerfile.codeforafrica
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ RUN pnpm install --recursive --offline --frozen-lockfile
ARG PORT=3000 \
MONGODB_URL \
PAYLOAD_SECRET \
NEXT_PUBLIC_APP_URL=http://localhost:3000 \
GHOST_URL \
GHOST_API_KEY
NEXT_PUBLIC_APP_URL=http://localhost:3000

RUN pnpm build-next --filter=codeforafrica

Expand All @@ -62,8 +60,6 @@ ENV NODE_ENV=production \
PAYLOAD_CONFIG_PATH=${PAYLOAD_CONFIG_PATH} \
PAYLOAD_SECRET=${PAYLOAD_SECRET} \
MONGODB_URL=${MONGODB_URL} \
GHOST_URL=${GHOST_URL} \
GHOST_API_KEY=${GHOST_API_KEY} \
NEXT_PUBLIC_APP_LOGO_URL=${NEXT_PUBLIC_APP_LOGO_URL} \
NEXT_PUBLIC_APP_NAME=${NEXT_PUBLIC_APP_NAME} \
NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
Expand Down
127 changes: 1 addition & 126 deletions apps/codeforafrica/src/components/TeamMembers/TeamMembers.snap.js
Original file line number Diff line number Diff line change
@@ -1,128 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<TeamMembers /> renders unchanged 1`] = `
<div>
<div
class="MuiContainer-root MuiContainer-maxWidthLg MuiContainer-fixed MuiContainer-disableGutters css-eoqn3z-MuiContainer-root"
>
<div
class="MuiTypography-root MuiTypography-h5Small css-1qwjj5w-MuiTypography-root"
>
Team
</div>
<div
class="MuiBox-root css-n6p80u"
>
<div
class="MuiGrid-root MuiGrid-container css-1p3emjt-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation0 MuiCard-root css-wixki0-MuiPaper-root-MuiCard-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiCardActionArea-root css-mfu8qg-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiCardActionArea-root"
href="/about/members/allan-cheboi"
tabindex="0"
>
<img
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-ys68yq-MuiCardMedia-root"
src="/images/image16.png"
/>
<div
class="MuiCardContent-root css-1bqtlyx-MuiCardContent-root"
>
<div
class="MuiTypography-root MuiTypography-body1SemiBold css-1nw8xqn-MuiTypography-root"
>
Allan Cheboi
</div>
<div
class="MuiTypography-root MuiTypography-body1 css-17e24dh-MuiTypography-root"
>
Senior investigations manager
</div>
</div>
<span
class="MuiCardActionArea-focusHighlight css-1v2exvi-MuiCardActionArea-focusHighlight"
/>
</a>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation0 MuiCard-root css-wixki0-MuiPaper-root-MuiCard-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiCardActionArea-root css-mfu8qg-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiCardActionArea-root"
href="/about/members/amanda-strydom"
tabindex="0"
>
<img
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-ys68yq-MuiCardMedia-root"
src="/images/amanda.jpg"
/>
<div
class="MuiCardContent-root css-1bqtlyx-MuiCardContent-root"
>
<div
class="MuiTypography-root MuiTypography-body1SemiBold css-1nw8xqn-MuiTypography-root"
>
Amanda Strydom
</div>
<div
class="MuiTypography-root MuiTypography-body1 css-17e24dh-MuiTypography-root"
>
Senior programme manager
</div>
</div>
<span
class="MuiCardActionArea-focusHighlight css-1v2exvi-MuiCardActionArea-focusHighlight"
/>
</a>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-elevation0 MuiCard-root css-wixki0-MuiPaper-root-MuiCard-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiCardActionArea-root css-mfu8qg-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiCardActionArea-root"
href="/about/members/anita-igbine"
tabindex="0"
>
<img
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-ys68yq-MuiCardMedia-root"
src="/images/image1.jpg"
/>
<div
class="MuiCardContent-root css-1bqtlyx-MuiCardContent-root"
>
<div
class="MuiTypography-root MuiTypography-body1SemiBold css-1nw8xqn-MuiTypography-root"
>
Anita Igbine
</div>
<div
class="MuiTypography-root MuiTypography-body1 css-17e24dh-MuiTypography-root"
>
Investigative data analyst
</div>
</div>
<span
class="MuiCardActionArea-focusHighlight css-1v2exvi-MuiCardActionArea-focusHighlight"
/>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
`;
exports[`<TeamMembers /> renders unchanged 1`] = `<div />`;
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import React from "react";

import TeamMembers from "./TeamMembers";

import { team } from "@/codeforafrica/lib";
import theme from "@/codeforafrica/theme";

// eslint-disable-next-line testing-library/render-result-naming-convention
const render = createRender({ theme });

const defaultProps = {
title: "Team",
team: team.slice(0, 3),
};

describe("<TeamMembers />", () => {
Expand Down
9 changes: 0 additions & 9 deletions apps/codeforafrica/src/lib/api.ghost/ghost.js

This file was deleted.

45 changes: 0 additions & 45 deletions apps/codeforafrica/src/lib/api.ghost/index.js

This file was deleted.

147 changes: 0 additions & 147 deletions apps/codeforafrica/src/lib/api.ghost/posts.js

This file was deleted.

10 changes: 0 additions & 10 deletions apps/codeforafrica/src/lib/api.netlify-cms/getBadges.js

This file was deleted.

Loading