From e2e06f6f4cd240485a92eb89a57c09ada37f7eef Mon Sep 17 00:00:00 2001 From: Zor0000 Date: Wed, 2 Oct 2024 01:19:24 +0530 Subject: [PATCH 01/13] Updated button style to rounded edges --- apps/frontend/src/components/auth/login.tsx | 2 +- apps/frontend/src/components/auth/register.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/auth/login.tsx b/apps/frontend/src/components/auth/login.tsx index 9810e5d6..13a458ec 100644 --- a/apps/frontend/src/components/auth/login.tsx +++ b/apps/frontend/src/components/auth/login.tsx @@ -89,7 +89,7 @@ export function Login() {
-
diff --git a/apps/frontend/src/components/auth/register.tsx b/apps/frontend/src/components/auth/register.tsx index 67fefbdf..e22b3653 100644 --- a/apps/frontend/src/components/auth/register.tsx +++ b/apps/frontend/src/components/auth/register.tsx @@ -198,7 +198,7 @@ export function RegisterAfter({
-
From 9c9c7329fcaf36aa283eb7a2878b4989113ddba9 Mon Sep 17 00:00:00 2001 From: Akash Jana <103350981+AkashJana18@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:16:54 +0530 Subject: [PATCH 02/13] doc: Update CONTRIBUTING.md --- CONTRIBUTING.md | 69 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 61 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 619dee9c..590ba55b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,20 +14,73 @@ As a general rule; - **If a change is less than 3 lines**: You're probably safe just to submit the change without a discussion. This includes typos, dependency changes, and quick fixes, etc. - **If a change is more than 3 lines**: It's probably best to discuss the change in an issue or on discord first. This is simply because you might not be aware of the roadmap for the project, or understand the impact this change might have. We're just trying to save you time here, and importantly, avoid you being disappointed if your change isn't accepted. +## Types of Contributions + +Contributions can include: +- **Code improvements:** Fixing bugs or adding new features. +- **Documentation updates:** Enhancing clarity or adding missing information. +- **Feature requests:** Suggesting new capabilities or integrations. +- **Bug reports:** Identifying and reporting issues. + ## How to contribute This project follows a Fork/Feature Branch/Pull Request model. If you're not familiar with this, here's how it works: -1. Fork the project to your GitHub account. -2. Clone your fork to your local machine. -3. Create a new branch for your changes. -4. Make your changes in this new branch. -5. Push your changes to your fork. -6. Create a pull request from your fork to this project. -7. We'll review your changes and approve or comment on them. +1. **Fork the project:** Create a personal copy of the repository on your GitHub account. +2. **Clone your fork:** Bring a copy of your fork to your local machine. + ```bash + git clone https://github.com/YOUR_USERNAME/postiz.git + ``` +3. **Create a new branch**: Start a new branch for your changes + ```bash + git checkout -b feature/your-feature-name + ``` +6. **Make your changes**: Implement the changes you wish to contribute. +7. **Push your changes**: Upload your changes to your fork. + ```bash + git push origin feature/your-feature-name + ``` +9. **Create a pull request**: Propose your changes to the main project. + ## Setting up your development environment +To contribute effectively, you’ll need to set up your development environment. Follow the instructions below: -Documentation on how to setup a development environment is available here; https://docs.postiz.com/installation/development +### Prerequisites +1. **Node.js** (version 18+): Install [Node.js](https://nodejs.org/en/download/package-manager) +2. **PostgreSQL**: Install PostgreSQL for your database. You can run it in Docker: +```bash +docker run -e POSTGRES_USER=root -e POSTGRES_PASSWORD=your_password --name postgres -p 5432:5432 -d postgres +``` +3. **Redis**: Also install Redis, which can be done using Docker: +```bash +docker run --name redis -p 6379:6379 -d redis +``` +4. **Cloud Services** + - Cloudflare R2: For image uploads and storage (optional). + - Social Media API Keys: Obtain various API keys and secrets for services you wish to integrate (e.g., Reddit, X, Instagram). + +### Setting Up the Project +1. **Clone the repository**: +```bash +git clone https://github.com/gitroomhq/gitroom +``` +2. **Set environment variables**: Copy `.env.example` to `.env` and fill in the required values. +3. **Install dependencies**: +```bash +npm install +``` +4. **Generate the Prisma client and run migrations**: +```bash +npm run prisma-db-push +``` +5. **Run the project**: +```bash +npm run dev +``` +If everything runs successfully, open http://localhost:4200 in your browser! + +Need Help? +If you encounter any issues, please visit our support page or check the community forums. Your contributions help make Postiz better! From c274e26b1778555961b41bd4317a37cab15ba094 Mon Sep 17 00:00:00 2001 From: Akash Jana <103350981+AkashJana18@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:42:24 +0530 Subject: [PATCH 03/13] doc: Changes according to review --- CONTRIBUTING.md | 40 ++++------------------------------------ 1 file changed, 4 insertions(+), 36 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 590ba55b..f04e4d88 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,49 +38,17 @@ This project follows a Fork/Feature Branch/Pull Request model. If you're not fam 6. **Make your changes**: Implement the changes you wish to contribute. 7. **Push your changes**: Upload your changes to your fork. ```bash - git push origin feature/your-feature-name + git push -u origin feature/your-feature-name ``` 9. **Create a pull request**: Propose your changes to the main project. ## Setting up your development environment -To contribute effectively, you’ll need to set up your development environment. Follow the instructions below: +To contribute effectively, you’ll need to set up your development environment. Follow the instructions on this page: https://docs.postiz.com/installation/development -### Prerequisites -1. **Node.js** (version 18+): Install [Node.js](https://nodejs.org/en/download/package-manager) -2. **PostgreSQL**: Install PostgreSQL for your database. You can run it in Docker: -```bash -docker run -e POSTGRES_USER=root -e POSTGRES_PASSWORD=your_password --name postgres -p 5432:5432 -d postgres -``` -3. **Redis**: Also install Redis, which can be done using Docker: -```bash -docker run --name redis -p 6379:6379 -d redis -``` -4. **Cloud Services** - - Cloudflare R2: For image uploads and storage (optional). - - Social Media API Keys: Obtain various API keys and secrets for services you wish to integrate (e.g., Reddit, X, Instagram). - -### Setting Up the Project -1. **Clone the repository**: -```bash -git clone https://github.com/gitroomhq/gitroom -``` -2. **Set environment variables**: Copy `.env.example` to `.env` and fill in the required values. -3. **Install dependencies**: -```bash -npm install -``` -4. **Generate the Prisma client and run migrations**: -```bash -npm run prisma-db-push -``` -5. **Run the project**: -```bash -npm run dev -``` -If everything runs successfully, open http://localhost:4200 in your browser! Need Help? -If you encounter any issues, please visit our support page or check the community forums. Your contributions help make Postiz better! +If you encounter any issues, please visit our [support page](https://docs.postiz.com/support) or check the community forums. Your contributions help make Postiz better! + From 969ea32c2ebe0263f9aad4c33c50f62a364a85d8 Mon Sep 17 00:00:00 2001 From: Vignesh J Date: Thu, 3 Oct 2024 10:38:29 +0530 Subject: [PATCH 04/13] Create SECURITY.md --- SECURITY.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..712082c0 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,44 @@ +# Security Policy + +## Introduction + +The Postiz app is committed to ensuring the security and integrity of our users' data. This security policy outlines our procedures for handling security vulnerabilities and our disclosure policy. + +## Reporting Security Vulnerabilities + +If you discover a security vulnerability in the Postiz app, please report it to us privately via email to one of the maintainers: + +* @nevo-david ([nevo.david@postiz.app](mailto:nevo.david@postiz.app)) +* @jamesread ([james.read@postiz.app](mailto:james.read@postiz.app)) +* @jonathan-irvin ([jonathan.irvin@postiz.app](mailto:jonathan.irvin@postiz.app)) + +When reporting a security vulnerability, please provide as much detail as possible, including: + +* A clear description of the vulnerability +* Steps to reproduce the vulnerability +* Any relevant code or configuration files + +## Supported Versions + +This project currently only supports the latest release. We recommend that users always use the latest version of the Postiz app to ensure they have the latest security patches. + +## Disclosure Guidelines + +We follow a private disclosure policy. If you discover a security vulnerability, please report it to us privately via email to one of the maintainers listed above. We will respond promptly to reports of vulnerabilities and work to resolve them as quickly as possible. + +We will not publicly disclose security vulnerabilities until a patch or fix is available to prevent malicious actors from exploiting the vulnerability before a fix is released. + +## Security Vulnerability Response Process + +We take security vulnerabilities seriously and will respond promptly to reports of vulnerabilities. Our response process includes: + +* Investigating the report and verifying the vulnerability. +* Developing a patch or fix for the vulnerability. +* Releasing the patch or fix as soon as possible. +* Notifying users of the vulnerability and the patch or fix. + +## Template Attribution + +This SECURITY.md file is based on the [GitHub Security Policy Template](https://github.com/github/security/blob/master/SECURITY.md). + +Thank you for helping to keep the `postiz-app` secure! From 70cdff4c7d31e6fcbb594bb6e08c46110da27a2b Mon Sep 17 00:00:00 2001 From: GURSAL PRATHAMESH APPASAHEB <135983263+prathamesh424@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:46:41 +0530 Subject: [PATCH 05/13] Updated the save button and add hover effect to the remove button --- apps/frontend/src/components/layout/settings.component.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/components/layout/settings.component.tsx b/apps/frontend/src/components/layout/settings.component.tsx index c229216b..436f7fe9 100644 --- a/apps/frontend/src/components/layout/settings.component.tsx +++ b/apps/frontend/src/components/layout/settings.component.tsx @@ -160,7 +160,7 @@ export const SettingsPopup: FC<{ getRef?: Ref }> = (props) => {
@@ -191,7 +191,7 @@ export const SettingsPopup: FC<{ getRef?: Ref }> = (props) => { {!getRef && (
- +
)} {!!user?.tier?.team_members && isGeneral && } From c081584ce8073282102a14738711cd601ec2c0e9 Mon Sep 17 00:00:00 2001 From: GURSAL PRATHAMESH APPASAHEB <135983263+prathamesh424@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:48:44 +0530 Subject: [PATCH 06/13] change the percentage color in the progress bar --- apps/frontend/src/app/global.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/frontend/src/app/global.scss b/apps/frontend/src/app/global.scss index 64dec72f..da791348 100644 --- a/apps/frontend/src/app/global.scss +++ b/apps/frontend/src/app/global.scss @@ -361,6 +361,7 @@ html { .uppy-ProgressBar-percentage { position: absolute; + color: red; top: 50%; left: 50%; transform: translate(-50%, -50%); @@ -383,4 +384,4 @@ div div .set-font-family { font-stretch: 100% !important; font-style: normal !important; font-weight: 400 !important; -} \ No newline at end of file +} From 79b81893416dce8ecd7a37283c0d5e9bda56517f Mon Sep 17 00:00:00 2001 From: JeevaRamanathan Date: Fri, 4 Oct 2024 03:22:14 +0530 Subject: [PATCH 07/13] updated faq descriptions --- apps/frontend/src/components/billing/faq.component.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/billing/faq.component.tsx b/apps/frontend/src/components/billing/faq.component.tsx index 97231547..89b21ca7 100644 --- a/apps/frontend/src/components/billing/faq.component.tsx +++ b/apps/frontend/src/components/billing/faq.component.tsx @@ -10,7 +10,7 @@ const useFaqList = () => { return [ { title: `Can I trust ${isGeneral ? 'Postiz' : 'Gitroom'}?`, - description: `${isGeneral ? 'Postiz' : 'Gitroom'} is proudly open-source! We believe in an ethical and transparent culture, meaning Postiz will live forever. You can check the entire code / or use it for your personal use. You can check the open-source repository click here.`, + description: `${isGeneral ? 'Postiz' : 'Gitroom'} is proudly open-source! We believe in an ethical and transparent culture, meaning that ${isGeneral ? 'Postiz' : 'Gitroom'} will forever. You can check out the entire code or use it for personal projects. To view the open-source repository, click here.`, }, { title: 'What are channels?', @@ -18,7 +18,7 @@ const useFaqList = () => { isGeneral ? 'Postiz' : 'Gitroom' } allows you to schedule your posts between different channels. A channel is a publishing platform where you can schedule your posts. -For example, you can schedule your posts on Twitter, Linkedin, DEV and Hashnode`, +For example, you can schedule your posts on X, Facebook, Instagram, TikTok, YouTube, Reddit, Linkedin, Dribbble, Threads and Pinterest.`, }, { title: 'What are team members?', From 8d48b071ad90a6960df61a6bbfabee365c36ca31 Mon Sep 17 00:00:00 2001 From: JeevaRamanathan Date: Fri, 4 Oct 2024 03:40:15 +0530 Subject: [PATCH 08/13] updated faq description --- apps/frontend/src/components/billing/billing.component.tsx | 2 +- apps/frontend/src/components/billing/faq.component.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/components/billing/billing.component.tsx b/apps/frontend/src/components/billing/billing.component.tsx index b726bb4b..97a5c54b 100644 --- a/apps/frontend/src/components/billing/billing.component.tsx +++ b/apps/frontend/src/components/billing/billing.component.tsx @@ -20,7 +20,7 @@ export const BillingComponent = () => { }, []); const load = useCallback(async (path: string) => { - return await (await fetch(path)).json(); + // return await (await fetch(path)).json(); }, []); const { isLoading: isLoadingTier, data: tiers } = useSWR( diff --git a/apps/frontend/src/components/billing/faq.component.tsx b/apps/frontend/src/components/billing/faq.component.tsx index 89b21ca7..fff38e76 100644 --- a/apps/frontend/src/components/billing/faq.component.tsx +++ b/apps/frontend/src/components/billing/faq.component.tsx @@ -10,7 +10,7 @@ const useFaqList = () => { return [ { title: `Can I trust ${isGeneral ? 'Postiz' : 'Gitroom'}?`, - description: `${isGeneral ? 'Postiz' : 'Gitroom'} is proudly open-source! We believe in an ethical and transparent culture, meaning that ${isGeneral ? 'Postiz' : 'Gitroom'} will forever. You can check out the entire code or use it for personal projects. To view the open-source repository, click here.`, + description: `${isGeneral ? 'Postiz' : 'Gitroom'} is proudly open-source! We believe in an ethical and transparent culture, meaning that ${isGeneral ? 'Postiz' : 'Gitroom'} will live forever. You can check out the entire code or use it for personal projects. To view the open-source repository, click here.`, }, { title: 'What are channels?', From 205ae034c3710822967c840dbef87492da6f2cb5 Mon Sep 17 00:00:00 2001 From: JeevaRamanathan Date: Fri, 4 Oct 2024 03:42:37 +0530 Subject: [PATCH 09/13] fix --- apps/frontend/src/components/billing/billing.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/src/components/billing/billing.component.tsx b/apps/frontend/src/components/billing/billing.component.tsx index 97a5c54b..b726bb4b 100644 --- a/apps/frontend/src/components/billing/billing.component.tsx +++ b/apps/frontend/src/components/billing/billing.component.tsx @@ -20,7 +20,7 @@ export const BillingComponent = () => { }, []); const load = useCallback(async (path: string) => { - // return await (await fetch(path)).json(); + return await (await fetch(path)).json(); }, []); const { isLoading: isLoadingTier, data: tiers } = useSWR( From 220cad308625ba887f873761a11ef0eec03450ce Mon Sep 17 00:00:00 2001 From: Mujtaba <126389386+Mujtaba500@users.noreply.github.com> Date: Fri, 4 Oct 2024 13:07:25 +0500 Subject: [PATCH 10/13] fix:Change button cursor to pointer on hover --- apps/frontend/src/components/launches/filters.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/components/launches/filters.tsx b/apps/frontend/src/components/launches/filters.tsx index f399ecbd..5dcc29a8 100644 --- a/apps/frontend/src/components/launches/filters.tsx +++ b/apps/frontend/src/components/launches/filters.tsx @@ -188,7 +188,7 @@ export const Filters = () => {
{betweenDates}
{
{
Date: Fri, 4 Oct 2024 21:19:16 +0100 Subject: [PATCH 11/13] Fix email addresses. --- SECURITY.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 712082c0..c0fafb4f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,9 +8,9 @@ The Postiz app is committed to ensuring the security and integrity of our users' If you discover a security vulnerability in the Postiz app, please report it to us privately via email to one of the maintainers: -* @nevo-david ([nevo.david@postiz.app](mailto:nevo.david@postiz.app)) -* @jamesread ([james.read@postiz.app](mailto:james.read@postiz.app)) -* @jonathan-irvin ([jonathan.irvin@postiz.app](mailto:jonathan.irvin@postiz.app)) +* @nevo-david +* @jamesread ([email](mailto:contact@jread.com)) +* @jonathan-irvin ([email](mailto:offendingcommit@gmail.com)) When reporting a security vulnerability, please provide as much detail as possible, including: From 635b9b396fa2e130faca845f110502a76af4202a Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 4 Oct 2024 22:27:08 +0100 Subject: [PATCH 12/13] doc: The pull request template needs a checklist to avoid common issues. --- .github/PULL_REQUEST_TEMPLATE.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b0e80b68..15092e71 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,8 +4,16 @@ eg: Bug fix, feature, docs update, ... # Why was this change needed? -Please link to related issues when possible. +Please link to related issues when possible, and explain WHY you changed things, not WHAT you changed. # Other information: -eg: Did you discuss this change with anybody before working on it (not required, but can be a good idea for bigger changes). Any plans for the future, etc? +eg: Did you discuss this change with anybody before working on it (not required, but can be a good idea for bigger changes). Any plans for the future, etc? + +# Checklist: + +Put a "X" in the boxes below to indicate you have followed the checklist; + +- [ ] I have read the [CONTRIBUTING](CONTRIBUTING.md) guide. +- [ ] I checked that there were not similar issues or PRs already open for this. +- [ ] This PR fixes just ONE issue (do not include multiple issues or types of change in the same PR) For example, don't try and fix a UI issue and include new dependencies in the same PR. From 71f85414637bf9428f9beca105b9fbd957723bcf Mon Sep 17 00:00:00 2001 From: jamesread Date: Fri, 4 Oct 2024 23:01:03 +0100 Subject: [PATCH 13/13] ci: Add /uploads to Docker containers [skip ci] --- Dockerfile.dev | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.dev b/Dockerfile.dev index 0162b4ef..71fe30fc 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -31,6 +31,7 @@ COPY var/docker/Caddyfile /app/Caddyfile COPY .env.example /config/postiz.env VOLUME /config +VOLUME /uploads LABEL org.opencontainers.image.source=https://github.com/gitroomhq/postiz-app @@ -55,6 +56,7 @@ COPY libraries /app/libraries/ RUN npm ci --no-fund && npx nx run-many --target=build --projects=frontend,backend,workers,cron VOLUME /config +VOLUME /uploads LABEL org.opencontainers.image.title="Postiz App (DevContainer)" @@ -70,6 +72,7 @@ COPY --from=devcontainer /app/libraries/ /app/libraries/ COPY package.json nx.json /app/ VOLUME /config +VOLUME /uploads ## Labels at the bottom, because CI will eventually add dates, commit hashes, etc. LABEL org.opencontainers.image.title="Postiz App (Production)"