diff --git a/.gitea/FUNDING.yml b/.gitea/FUNDING.yml new file mode 100644 index 0000000..c053319 --- /dev/null +++ b/.gitea/FUNDING.yml @@ -0,0 +1 @@ +custom: https://www.patreon.com/EuroCMS diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.md b/.gitea/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..b0fab0e --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,33 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Version:** + - Foliate version: + - OS/Distribution and version: [e.g. Ubuntu 18.04] + - Desktop environment: [e.g. GNOME 3.36] + - Installation method: [e.g. Flatpak] + +**Additional context** +Add any other context about the problem here. diff --git a/.gitea/ISSUE_TEMPLATE/feature_request.md b/.gitea/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..11fc491 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.gitea/ISSUE_TEMPLATE/question.md b/.gitea/ISSUE_TEMPLATE/question.md new file mode 100644 index 0000000..588fe63 --- /dev/null +++ b/.gitea/ISSUE_TEMPLATE/question.md @@ -0,0 +1,17 @@ +--- +name: Question +about: Ask a question +title: '' +labels: question +assignees: '' + +--- + +**Question:** +A clear and concise statement of your question. + +**Version:** + - Foliate version: + - OS/Distribution and version: [e.g. Ubuntu 18.04] + - Desktop environment: [e.g. GNOME 3.36] + - Installation method: [e.g. Flatpak] diff --git a/.gitea/workflows/eslint.yml b/.gitea/workflows/eslint.yml new file mode 100644 index 0000000..67eb508 --- /dev/null +++ b/.gitea/workflows/eslint.yml @@ -0,0 +1,50 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# ESLint is a tool for identifying and reporting on patterns +# found in ECMAScript/JavaScript code. +# More details at https://github.com/eslint/eslint +# and https://eslint.org + +name: ESLint + +on: + push: + branches: [ "gtk4" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "gtk4" ] + schedule: + - cron: '38 14 * * 6' + +jobs: + eslint: + name: Run eslint scanning + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install ESLint + run: | + npm install eslint@8.36.0 + npm install @microsoft/eslint-formatter-sarif@3.0.0 + + - name: Run ESLint + run: npx eslint . + --config src/.eslintrc.json + --ext .js,.jsx,.ts,.tsx + --format @microsoft/eslint-formatter-sarif + --output-file eslint-results.sarif + continue-on-error: true + + - name: Upload analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: eslint-results.sarif + wait-for-processing: true