Commit f3b2c8b8 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

feat(episodes): add create form and view pages for episode

- add james-heinrich/getid3 library as a dependency to composer.json
- update DEPENDENCIES.md file
- fix episodes table migration script
- add js devDependencies: prettier, @prettier/plugin-php and lint-staged to automatically format staged files before commit
- reformat all files to the prettier format
- refactor code by separating some logic as helper functions
- overwrite existing files when uploading new files with the same name

fixes #1
parent 04448217
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@
    "streetsidesoftware.code-spell-checker",
    "naumovs.color-highlight",
    "heybourn.headwind",
    "anish-m.ci-snippets2",
    "wayou.vscode-todo-highlight"
    "wayou.vscode-todo-highlight",
    "esbenp.prettier-vscode",
    "bradlc.vscode-tailwindcss"
  ]
}
+6 −5
Original line number Diff line number Diff line
@@ -125,15 +125,16 @@ nb-configuration.xml
/phpunit*.xml
/.phpunit.*.cache

# Media files
public/media/*

# npm
yarn.lock
node_modules

# potcss generated file
public/index.css
# public folder
public/*
!public/.htaccess
!public/favicon.ico
!public/index.php
!public/robots.txt

#-------------------------
# Docker volumes

.prettierrc.json

0 → 100644
+13 −0
Original line number Diff line number Diff line
{
  "trailingComma": "es5",
  "overrides": [
    {
      "files": "*.php",
      "options": {
        "phpVersion": "7.2",
        "singleQuote": true,
        "trailingCommaPHP": true
      }
    }
  ]
}
+1 −0
Original line number Diff line number Diff line
@@ -11,3 +11,4 @@ Castopod uses the following components:
- [User agent list](https://github.com/opawg/user-agents) ([by Open Podcast Analytics Working Group](https://github.com/opawg)) ([MIT license](https://github.com/opawg/user-agents/blob/master/LICENSE))
- [WhichBrowser/Parser-PHP](https://github.com/WhichBrowser/Parser-PHP) ([MIT License](https://github.com/WhichBrowser/Parser-PHP/blob/master/LICENSE))
- [Quill Rich Text Editor](https://github.com/quilljs/quill) ([BSD 3-Clause "New" or "Revised" License](https://github.com/quilljs/quill/blob/develop/LICENSE))
- [getID3](https://github.com/JamesHeinrich/getID3) ([GNU General Public License v3](https://github.com/JamesHeinrich/getID3/blob/2.0/licenses/license.gpl-30.txt))
+5 −0
Original line number Diff line number Diff line
@@ -12,3 +12,8 @@ RUN apt-get update && apt-get install -y \
    && docker-php-ext-install intl

RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli

RUN echo "file_uploads = On\n" \
         "memory_limit = 100M\n" \
         "upload_max_filesize = 100M\n" \
         > /usr/local/etc/php/conf.d/uploads.ini
Loading