update .github

This commit is contained in:
Pas 2025-10-23 22:30:48 -06:00
parent 52c1162f3c
commit 2b95e544fc
11 changed files with 80 additions and 45 deletions

4
.github/CODEOWNERS vendored
View file

@ -1,2 +1,2 @@
* Maintainers: [MW-Exodus Team](https://github.com/MW-Legacy) * Founder: [@movie-web/project-leads](https://github.com/movie-web-archive)
* Founder: (P-Stream)[https://github.com/p-stream] * Maintainers: [@p-stream](https://github.com/p-stream)

View file

@ -1,21 +1,19 @@
# Contributing Guidelines for sudo-flix # Contributing Guidelines for P-Stream
Thank you for investing your time in contributing to our project! Your contribution will be reflected on all of the community hosted instances that are on the latest version. Thank you for investing your time in contributing to our project! Your contribution will be reflected on all of the community hosted instances that are on the latest version.
Please read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable. Please read our [Code of Conduct](./CODE_OF_CONDUCT.md) to keep our community approachable and respectable.
## Contents ## Contents
- [Contributing Guidelines for sudo-flix](#contributing-guidelines-for-sudo-flix) - [New Contributor Guide](#new-contributor-guide)
- [Contents](#contents) - [Requesting a feature or reporting a bug](#requesting-a-feature-or-reporting-a-bug)
- [New contributor guide](#new-contributor-guide) - [Discord Server](#discord-server)
- [Requesting a feature or reporting a bug](#requesting-a-feature-or-reporting-a-bug) - [GitHub Issues](#github-issues)
- [Discord Server](#discord-server) - [Before you start](#before-you-start)
- [GitHub Issues](#github-issues) - [Contributing](#before-you-start)
- [Before you start!](#before-you-start) - [Recommended Development Environment](#recommended-development-environment)
- [Contributing](#contributing) - [Tips](#tips)
- [Recommended Development Environment](#recommended-development-environment) - [Language Contributions](#language-contributions)
- [Tips](#tips)
- [Language Contributions](#language-contributions)
## New contributor guide ## New contributor guide
@ -29,15 +27,16 @@ To get an overview of the project, read the [README](README.md). Here are some r
## Requesting a feature or reporting a bug ## Requesting a feature or reporting a bug
There are two places where to request features or report bugs: There are two places where to request features or report bugs:
- The P-Stream Discord server
- GitHub Issues - GitHub Issues
- The sudo-flix Discord server
### Discord Server ### Discord Server
If you do not have a GitHub account or want to discuss a feature or bug with us before making an issue, you can join our Discord server. If you do not have a GitHub account or want to discuss a feature or bug with us before making an issue, you can join our Discord server.
[Join bruh](https://docs.pstream.mov/links/discord)
<a href="https://docs.pstream.mov/links/discord"><img src="https://discord.com/api/guilds/1267558147682205738/widget.png?style=banner2" alt="Discord Server"></a>
### GitHub Issues ### GitHub Issues
To make a GitHub issue for sudo-flix, please visit the [new issue page](https://github.com/p-stream/p-stream/issues/new/choose) where you can pick either the "Bug Report" or "Feature Request" template. To make a GitHub issue for P-Stream, please visit the [new issue page](https://github.com/p-stream/p-stream/issues/new/choose) where you can pick either the "Bug Report" or "Feature Request" template.
When filling out an issue template, please include as much detail as possible and any screenshots or console logs as appropriate. When filling out an issue template, please include as much detail as possible and any screenshots or console logs as appropriate.
@ -46,7 +45,7 @@ After an issue is created, it will be assigned either the https://github.com/p-s
## Before you start! ## Before you start!
Before starting a contribution, please check your contribution is part of an open issue on [our issues page](https://github.com/p-stream/p-stream/issues?q=is%3Aopen+is%3Aissue+label%3Aapproved). Before starting a contribution, please check your contribution is part of an open issue on [our issues page](https://github.com/p-stream/p-stream/issues?q=is%3Aopen+is%3Aissue+label%3Aapproved).
GitHub issues are how we track our bugs and feature requests that will be implemented into sudo-flix - all contributions **must** have an issue and be approved by a maintainer before a pull request can be worked on. GitHub issues are how we track our bugs and feature requests that will be implemented into P-Stream - all contributions **must** have an issue and be approved by a maintainer before a pull request can be worked on.
If a pull request is opened before an issue is created and accepted, you may risk having your pull request rejected! Always check with us before starting work on a feature - we don't want to waste your time! If a pull request is opened before an issue is created and accepted, you may risk having your pull request rejected! Always check with us before starting work on a feature - we don't want to waste your time!
@ -56,7 +55,7 @@ If a pull request is opened before an issue is created and accepted, you may ris
Also, make sure that the issue you would like to work on has been given the https://github.com/p-stream/p-stream/labels/approved label by a maintainer. Otherwise, if we reject the issue, it means your work will have gone to waste! Also, make sure that the issue you would like to work on has been given the https://github.com/p-stream/p-stream/labels/approved label by a maintainer. Otherwise, if we reject the issue, it means your work will have gone to waste!
## Contributing ## Contributing
If you're here because you'd like to work on an issue, amazing! Thank you for even considering contributing to sudo-flix; it means a lot :heart: If you're here because you'd like to work on an issue, amazing! Thank you for even considering contributing to P-Stream; it means a lot :heart:
Firstly, make sure you've read the [Before you start!](#before-you-start) section! Firstly, make sure you've read the [Before you start!](#before-you-start) section!
@ -65,7 +64,7 @@ When you have found a GitHub issue you would like to work on, you can request to
If you are assigned to an issue but can't complete it for whatever reason, no problem! Just let us know, and we will open up the issue to have someone else assigned. If you are assigned to an issue but can't complete it for whatever reason, no problem! Just let us know, and we will open up the issue to have someone else assigned.
### Recommended Development Environment ### Recommended Development Environment
Our recommended development environment to work on sudo-flix is: Our recommended development environment to work on P-Stream is:
- [Visual Studio Code](https://code.visualstudio.com/) - [Visual Studio Code](https://code.visualstudio.com/)
- [ESLint Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - [ESLint Extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
- [EditorConfig Extension](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) - [EditorConfig Extension](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
@ -79,13 +78,18 @@ Here are some tips to make sure that your pull requests are :pinched_fingers: fi
- KISS - Keep It Simple Soldier! - Simple code makes readable and efficient code! - KISS - Keep It Simple Soldier! - Simple code makes readable and efficient code!
- Follow standard best practices for TypeScript and React. - Follow standard best practices for TypeScript and React.
- Keep as much as possible to the style of sudo-flix. Look around our codebase to familiarise yourself with how we do things! - Keep as much as possible to the style of P-Stream. Look around our codebase to familiarise yourself with how we do things!
- Ensure to take note of the ESLint errors and warnings! **Do not ignore them!** They are there for a reason. - Ensure to take note of the ESLint errors and warnings! **Do not ignore them!** They are there for a reason.
- Test, test, test! Make sure you thoroughly test the features you are contributing. - Test, test, test! Make sure you thoroughly test the features you are contributing.
### Language Contributions ### Language Contributions
Language contributions help sudo-flix massively, allowing people worldwide to use our app! Language contributions help P-Stream massively, allowing people worldwide to use our app!
1. Create a new langague json file We use Weblate for crowdsourcing our translations. [Click here to go to our translation tool.](https://docs.pstream.mov/links/weblate)
2. Implement the langague file into settings
3. Thats it make a PR
1. First make sure you make an account. (click the link above)
2. Click the language you want to help translate, if it's not listed you can click the plus top left to add a new language.
3. In the top right of the screen, click "translate"
4. Here you will be prompted a key to translate, fill in a translation and proceed to the next item by pressing "save and continue".
5. Thats all there is to it, every translation will eventually come through and be pushed with an update. This usually doesn't take longer than a week.

BIN
.github/P-Stream.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 KiB

6
.github/SECURITY.md vendored
View file

@ -2,9 +2,9 @@
## Supported Versions ## Supported Versions
The latest version of sudo-flix is the only version that is supported, as it is the only version that is being actively developed. The latest version of P-Stream is the only version that is supported, as it is the only version that is being actively developed.
## Reporting a Vulnerability ## Reporting a Vulnerability
You can contact the sudo-flix maintainers to report a vulnerability: You can contact the P-Stream maintainers to report a vulnerability:
- Report the vulnerability in the [Discord](https://docs.pstream.mov/links/discord). - Report the vulnerability in the [P-Stream Discord server](https://docs.pstream.mov/links/discord)

BIN
.github/Sudo-Flix.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

1
.github/logo-dark.svg vendored Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="2147" height="1121" fill="none" viewBox="0 0 2147 1121"><path fill="#fff" d="M1663.06 591.678H1719.49C1745.2 591.678 1763.85 595.357 1775.42 602.716C1787.08 609.992 1792.91 621.609 1792.91 637.566C1792.91 648.398 1790.35 657.286 1785.22 664.231C1780.18 671.177 1773.44 675.352 1765.01 676.758V677.998C1776.5 680.561 1784.77 685.357 1789.81 692.385C1794.94 699.413 1797.5 708.756 1797.5 720.414C1797.5 736.951 1791.51 749.849 1779.52 759.109C1767.61 768.37 1751.4 773 1730.9 773H1663.06V591.678ZM1701.51 663.487H1723.83C1734.25 663.487 1741.77 661.875 1746.4 658.65C1751.12 655.426 1753.47 650.093 1753.47 642.651C1753.47 635.706 1750.91 630.745 1745.78 627.769C1740.74 624.709 1732.72 623.18 1721.72 623.18H1701.51V663.487ZM1701.51 693.997V741.25H1726.56C1737.14 741.25 1744.96 739.224 1750 735.173C1755.04 731.121 1757.56 724.92 1757.56 716.569C1757.56 701.521 1746.82 693.997 1725.32 693.997H1701.51Z"/><path fill="#fff" d="M1625.11 773H1520.68V591.678H1625.11V623.18H1559.13V662.991H1620.52V694.493H1559.13V741.25H1625.11V773Z"/><path fill="#fff" d="M1451.72 773H1407.94L1383.39 677.75C1382.48 674.36 1380.91 667.373 1378.67 656.79C1376.52 646.124 1375.28 638.972 1374.95 635.334C1374.46 639.799 1373.22 646.992 1371.23 656.914C1369.25 666.753 1367.72 673.781 1366.64 677.998L1342.21 773H1298.55L1252.29 591.678H1290.12L1313.31 690.648C1317.36 708.921 1320.3 724.755 1322.12 738.149C1322.61 733.437 1323.73 726.16 1325.47 716.321C1327.29 706.399 1328.98 698.71 1330.55 693.253L1356.97 591.678H1393.31L1419.72 693.253C1420.88 697.8 1422.33 704.746 1424.07 714.089C1425.8 723.432 1427.12 731.452 1428.03 738.149C1428.86 731.7 1430.18 723.68 1432 714.089C1433.82 704.415 1435.48 696.602 1436.96 690.648L1460.03 591.678H1497.86L1451.72 773Z"/><path fill="#fff" d="M1178 720.414V689.408H1244.6V720.414H1178Z"/><path fill="#fff" d="M1155.31 773H1050.88V591.678H1155.31V623.18H1089.33V662.991H1150.72V694.493H1089.33V741.25H1155.31V773Z"/><path fill="#fff" d="M966.791 773V591.678H1005.24V773H966.791Z"/><path fill="#fff" d="M905.027 591.678H943.847L882.207 773H840.287L778.771 591.678H817.591L851.697 699.578C853.599 705.945 855.542 713.386 857.526 721.902C859.593 730.336 860.875 736.206 861.371 739.514C862.281 731.907 865.381 718.595 870.673 699.578L905.027 591.678Z"/><path fill="#fff" d="M764.012 682.091C764.012 712.104 756.57 735.173 741.688 751.296C726.805 767.419 705.473 775.48 677.691 775.48C649.91 775.48 628.578 767.419 613.695 751.296C598.812 735.173 591.371 712.022 591.371 681.843C591.371 651.664 598.812 628.637 613.695 612.762C628.661 596.804 650.076 588.825 677.939 588.825C705.803 588.825 727.094 596.845 741.812 612.886C756.612 628.926 764.012 651.994 764.012 682.091ZM631.679 682.091C631.679 702.348 635.523 717.603 643.213 727.855C650.902 738.108 662.395 743.234 677.691 743.234C708.367 743.234 723.704 722.853 723.704 682.091C723.704 641.246 708.449 620.823 677.939 620.823C662.643 620.823 651.109 625.991 643.337 636.326C635.565 646.579 631.679 661.834 631.679 682.091Z"/><path fill="#fff" d="M436.591 773L392.935 630.745H391.818C393.389 659.684 394.175 678.99 394.175 688.664V773H359.82V591.678H412.158L455.07 730.336H455.814L501.331 591.678H553.669V773H517.826V687.176C517.826 683.124 517.868 678.453 517.95 673.161C518.116 667.869 518.694 653.813 519.687 630.993H518.57L471.813 773H436.591Z"/></svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

1
.github/logo-light.svg vendored Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="2147" height="1121" fill="none" viewBox="0 0 2147 1121"><path fill="#000" d="M1663.06 599.678H1719.49C1745.2 599.678 1763.85 603.357 1775.42 610.716C1787.08 617.992 1792.91 629.609 1792.91 645.566C1792.91 656.398 1790.35 665.286 1785.22 672.231C1780.18 679.177 1773.44 683.352 1765.01 684.758V685.998C1776.5 688.561 1784.77 693.357 1789.81 700.385C1794.94 707.413 1797.5 716.756 1797.5 728.414C1797.5 744.951 1791.51 757.849 1779.52 767.109C1767.61 776.37 1751.4 781 1730.9 781H1663.06V599.678ZM1701.51 671.487H1723.83C1734.25 671.487 1741.77 669.875 1746.4 666.65C1751.12 663.426 1753.47 658.093 1753.47 650.651C1753.47 643.706 1750.91 638.745 1745.78 635.769C1740.74 632.709 1732.72 631.18 1721.72 631.18H1701.51V671.487ZM1701.51 701.997V749.25H1726.56C1737.14 749.25 1744.96 747.224 1750 743.173C1755.04 739.121 1757.56 732.92 1757.56 724.569C1757.56 709.521 1746.82 701.997 1725.32 701.997H1701.51Z"/><path fill="#000" d="M1625.11 781H1520.68V599.678H1625.11V631.18H1559.13V670.991H1620.52V702.493H1559.13V749.25H1625.11V781Z"/><path fill="#000" d="M1451.72 781H1407.94L1383.39 685.75C1382.48 682.36 1380.91 675.373 1378.67 664.79C1376.52 654.124 1375.28 646.972 1374.95 643.334C1374.46 647.799 1373.22 654.992 1371.23 664.914C1369.25 674.753 1367.72 681.781 1366.64 685.998L1342.21 781H1298.55L1252.29 599.678H1290.12L1313.31 698.648C1317.36 716.921 1320.3 732.755 1322.12 746.149C1322.61 741.437 1323.73 734.16 1325.47 724.321C1327.29 714.399 1328.98 706.71 1330.55 701.253L1356.97 599.678H1393.31L1419.72 701.253C1420.88 705.8 1422.33 712.746 1424.07 722.089C1425.8 731.432 1427.12 739.452 1428.03 746.149C1428.86 739.7 1430.18 731.68 1432 722.089C1433.82 712.415 1435.48 704.602 1436.96 698.648L1460.03 599.678H1497.86L1451.72 781Z"/><path fill="#000" d="M1178 728.414V697.408H1244.6V728.414H1178Z"/><path fill="#000" d="M1155.31 781H1050.88V599.678H1155.31V631.18H1089.33V670.991H1150.72V702.493H1089.33V749.25H1155.31V781Z"/><path fill="#000" d="M966.791 781V599.678H1005.24V781H966.791Z"/><path fill="#000" d="M905.027 599.678H943.847L882.207 781H840.287L778.771 599.678H817.591L851.697 707.578C853.599 713.945 855.542 721.386 857.526 729.902C859.593 738.336 860.875 744.206 861.371 747.514C862.281 739.907 865.381 726.595 870.673 707.578L905.027 599.678Z"/><path fill="#000" d="M764.012 690.091C764.012 720.104 756.57 743.173 741.688 759.296C726.805 775.419 705.473 783.48 677.691 783.48C649.91 783.48 628.578 775.419 613.695 759.296C598.812 743.173 591.371 720.022 591.371 689.843C591.371 659.664 598.812 636.637 613.695 620.762C628.661 604.804 650.076 596.825 677.939 596.825C705.803 596.825 727.094 604.845 741.812 620.886C756.612 636.926 764.012 659.994 764.012 690.091ZM631.679 690.091C631.679 710.348 635.523 725.603 643.213 735.855C650.902 746.108 662.395 751.234 677.691 751.234C708.367 751.234 723.704 730.853 723.704 690.091C723.704 649.246 708.449 628.823 677.939 628.823C662.643 628.823 651.109 633.991 643.337 644.326C635.565 654.579 631.679 669.834 631.679 690.091Z"/><path fill="#000" d="M436.591 781L392.935 638.745H391.818C393.389 667.684 394.175 686.99 394.175 696.664V781H359.82V599.678H412.158L455.07 738.336H455.814L501.331 599.678H553.669V781H517.826V695.176C517.826 691.124 517.868 686.453 517.95 681.161C518.116 675.869 518.694 661.813 519.687 638.993H518.57L471.813 781H436.591Z"/></svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -1,6 +1,6 @@
This pull request resolves #XXX This pull request resolves #XXX
- [ ] I have read and agreed to the [code of conduct](https://github.com/p-stream/p-stream/blob/production/.github/CODE_OF_CONDUCT.md). - [ ] I have read and agreed to the [code of conduct](https://github.com/p-stream/p-stream/blob/dev/.github/CODE_OF_CONDUCT.md).
- [ ] I have read and complied with the [contributing guidelines](https://github.com/p-stream/p-stream/blob/production/.github/CONTRIBUTING.md). - [ ] I have read and complied with the [contributing guidelines](https://github.com/p-stream/p-stream/blob/dev/.github/CONTRIBUTING.md).
- [ ] What I'm implementing was assigned to me and is an [approved issue](https://github.com/p-stream/p-stream/issues?q=is%3Aopen+is%3Aissue+label%3Aapproved). For reference, please take a look at our [GitHub projects](https://github.com/p-stream/p-stream/projects).
- [ ] I have tested all of my changes. - [ ] I have tested all of my changes.
- Enter discord user: `` (we require this for the contributor role)

26
.github/workflows/broken-sync.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Sync fork
permissions:
contents: write
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
name: Sync fork
runs-on: ubuntu-latest
if: ${{ github.event.repository.fork }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Sync fork
run: gh repo sync ${{ github.repository }}
env:
GH_TOKEN: ${{ github.token }}
- uses: gautamkrishnar/keepalive-workflow@v1

View file

@ -3,7 +3,7 @@ name: Deploying
on: on:
push: push:
branches: branches:
- main - production
jobs: jobs:
build_pwa: build_pwa:
@ -82,7 +82,7 @@ jobs:
path: ./dist_pwa path: ./dist_pwa
- name: Zip PWA files - name: Zip PWA files
run: cd dist_pwa && zip -r ../movie-web.pwa.zip . run: cd dist_pwa && zip -r ../p-stream.pwa.zip .
- name: Download normal artifact - name: Download normal artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@ -91,7 +91,7 @@ jobs:
path: ./dist_normal path: ./dist_normal
- name: Zip normal files - name: Zip normal files
run: cd dist_normal && zip -r ../movie-web.zip . run: cd dist_normal && zip -r ../p-stream.zip .
- name: Get version - name: Get version
id: package-version id: package-version
@ -101,31 +101,31 @@ jobs:
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.package-version.outputs.current-version }} tag_name: ${{ steps.package-version.outputs.current-version }}
release_name: Movie web v${{ steps.package-version.outputs.current-version }} release_name: P-Stream v${{ steps.package-version.outputs.current-version }}
draft: false draft: false
prerelease: false prerelease: false
- name: Upload release (PWA) - name: Upload release (PWA)
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./movie-web.pwa.zip asset_path: ./p-stream.pwa.zip
asset_name: movie-web.pwa.zip asset_name: p-stream.pwa.zip
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release (Normal) - name: Upload Release (Normal)
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
env: env:
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./movie-web.zip asset_path: ./p-stream.zip
asset_name: movie-web.zip asset_name: p-stream.zip
asset_content_type: application/zip asset_content_type: application/zip
registry: registry:
@ -156,7 +156,7 @@ jobs:
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.PAT_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata - name: Extract Docker metadata
id: meta id: meta

View file

@ -3,7 +3,10 @@ name: Linting and Testing
on: on:
push: push:
branches: branches:
- main - production
- dev
- beta
- embed
pull_request: pull_request:
jobs: jobs: