Commit Graph

1006 Commits

Author SHA1 Message Date
Benjamin Bellamy 2379826352 fix: update .htaccess for shared hosting config 2020-10-15 14:41:48 +00:00
Benjamin Bellamy 1ef55d7315 fix: correct php-fpm issues 2020-10-15 14:41:47 +00:00
Yassine Doghri cbc5d0891d ci: define app bundle script in .gitlab-ci.yml
set `bundle/` folder in .gitignore

closes #8
2020-10-15 14:41:46 +00:00
Yassine Doghri 02e4441f98 feat: create optimized & resized images upon upload
- resize uploaded image to thumbnail, medium, large, feed, and id3 formats
- set image url formats where adapted in views
- set format sizes and extensions in Images config file for customization
- add validation for image uploads: `min_dims` and `is_image_squared`
- update codeigniter4 and myth-auth php packages to latest develop versions
- update npm packages to latest versions
- update public/.htaccess

closes #6
2020-10-15 14:41:45 +00:00
Yassine Doghri 40a0535fc1 feat(public-ui): adapt public podcast and episode pages to wireframes
- adapt wireframes with responsive design
- refactor models methods to cache requests for faster queries
- update public controllers to cache pages while retaining analytics hits
- add platform links to podcast page
- add previous / next episodes in episode page
- update npm packages to latest versions

closes #30, #13
2020-10-15 14:41:43 +00:00
Yassine Doghri 2517808cd4 refactor: remove unnecessary permissions and update route filters
- add missing pages-manage permission
- remove some instance wide permissions for superadmin

closes #29
2020-10-15 14:41:41 +00:00
Yassine Doghri 043f49c784 feat: add platforms form in podcast settings
- set and remove platform links for a podcast
- remove unnecessary fields from platforms and platform_links tables
- add platforms svg icons to show in form
- update platform and auth seeders
- update svgo config for images
2020-10-15 14:41:39 +00:00
Benjamin Bellamy 9a5d5a15b4 feat: import podcast from an rss feed url
* add podcast import form
* add League\\HTMLToMarkdown
* add guid field in podcast table
* change podcast category from string to id

closes #21
2020-10-15 14:41:36 +00:00
Yassine Doghri 9c224a8ac6 feat: add pages table to store custom instance pages (eg. legal-notice, cookie policy, etc.)
- add pages  migration, model and entity
- add page controllers
- update routes config to input page forms and page view in public
- fix markdow editor focus area
- show pages links in public side footer

closes #24
2020-10-15 14:41:34 +00:00
Yassine Doghri a1a28de702 refactor: rewrite form pages using form helper
- add installGateway to app config
- update route names and groups
- remove `author_name` and `author_email` from `episodes` table
- remove `author_name` and `author_email` from `podcasts` table
- remove `owner_id` + add `created_by` and `updated_by` fields in `podcasts` and `episodes` tables
- remove unnecessary comments in database fields
- remove confirm password inputs from auth forms for better ux
- rename `pub_date` field to `published_at` and add publication time field in episode form

closes #14, #28
2020-10-15 14:41:32 +00:00
Benjamin Bellamy 012de2072e docs: add translation keys for tooltips helper messages 2020-10-15 14:41:29 +00:00
Yassine Doghri cba871c5df feat: add install wizard form to bootstrap database and create the first superadmin user
- generate .env file to configure instance's environment
- add phpdotenv dependency to verify .env file
- add AppSeeder to call all required seeds at once
- add env and superadmin form views using form helpers

closes #2
2020-10-15 14:41:28 +00:00
Yassine Doghri 14dd44d03d fix: declare typed properties in PHPDoc for php<7.4
- fixes error when running castopod on php<7.4

fixes #23
2020-10-15 14:41:26 +00:00
Yassine Doghri 7fb1de2cf3 feat: add breadcrumb in admin area
- add Breadcrumb library and service
- update authorizations
- add missing routes to avoid 404 links in breadcrumb
- add svg_helper globally in base controller
- update purgecss config to check .ts files

closes #17
2020-10-15 14:41:25 +00:00
Yassine Doghri ed6e953010 refactor: add php_codesniffer to define castopod's coding style based on psr-1
- add .editorconfig file
- format all files to comply with castopod's coding style
- switch parsedown dependency with commonmark library to better follow commonmark spec for markdown
- add prettier command to format all project files at once

closes #16
2020-10-15 14:41:22 +00:00
Yassine Doghri 58364bfed1 refactor(auth): change contributor's role logic to have it included in the users_podcasts table
- update myth-auth and codeigniter to latest develop changes
- improve permission check: remove all
dynamic permissions per podcast and overwrite myth-auth services and permission filter
- remove
unnecessary code because of myth-auth upgrade
- refactor some controller code for better clarity
-
add remaining seeders in docs

closes #19, #20
2020-10-15 14:41:14 +00:00
Yassine Doghri e0da11517d refactor: update js files to typescript and replace parcel with rollup
- add basic rollup config to bundle minified and browser compatible js
- use babel to transpile
typescript files to js
- add static code checkers: eslint and stylelint
- update package.json
scripts
- update DEPENDENCIES.md file to include rollup and popper
- set html in rss feed
description fields
- update Podcast and Episode entities to add description_html attribute
generated by parsing markdown to html using parsedown

#9
2020-10-15 14:41:12 +00:00
Yassine Doghri c0e66d5f70 feat: enhance ui using javascript in admin area
- bundle js using parcel
- add markdown editor, html editor, dropdown and tooltip features using third-party packages
- integrate optimized inline svg icons from RemixIcon using svgo and a php helper
- add scripts in package.json to bundle icons, images, css and js
- update tailwind config to add purgecss lookups and typography plugin
- refactor views to add missing pages in user journey
- update admin's holy grail layout using css grid
2020-10-15 14:41:09 +00:00
Yassine Doghri d58e51874a feat: add user permissions and basic groups to handle authorizations
- add AuthSeeder to bootstrap authorization data and remove UserSeeder
- create a superadmin group having all authorizations
- refactor routes and controller methods to separate get and post requests
- refactor admin views with a title section in layout
- add contributors section to podcasts to manage contributions (add, edit roles and remove)

closes #3, #18
2020-10-15 14:41:06 +00:00
Yassine Doghri c63a077618 feat(users): add myth-auth to handle users crud + add admin gateway only accessible by login
- overwrite myth/auth config with castopod app needs
- create custom views for users authentication
- add admin area bootstrapped by admin controller
- shift podcast and episodes crud to admin area
- reorganize view layouts
- update docs for database migration
- add myth-auth to DEPENDENCIES.md

closes #11
2020-10-15 14:41:03 +00:00
Yassine Doghri da0f047281 feat(cache): add podcast and episode pages to cache + clear them after insert or update
- throw not found page error if no podcast in podcast controller
- delete unnecessary unknownuseragents view
2020-10-15 14:40:58 +00:00
Yassine Doghri ac5f0c7328 feat: edit + delete podcast and episode
- refactor model / entity and controller logic for DRY code
- update episodes and podcasts
migrations
- define callbacks for podcast and episode models for enclosure update and cache
clearing
2020-10-15 14:40:57 +00:00
Yassine Doghri c815ecd664 feat(rss): generate rss feed from podcast entity
- refactor episode, podcast and category entities to add dynamic properties
- refactor Routes when adding feed route
- update migration files to better fit itunes' and rss' specs
- update podcast and episode forms
- add SimpleRSSElement class to Libraries
- add rss_helper
- update home controller to redirect if system has only one podcast
2020-10-15 14:40:55 +00:00
Benjamin Bellamy d31191732e fix: move analytics to helper 2020-10-15 14:40:52 +00:00
Benjamin Bellamy 13be386842 fix: minor corrections 2020-10-15 14:40:52 +00:00
Benjamin Bellamy ec92e65aa4 feat: add analytics and unknown useragents 2020-10-15 14:40:51 +00:00
Yassine Doghri 4651d01a84 feat: write id3v2 tags to episode's audio file
- add $mediaRoot parameter in app config
- add and refactor helpers : id3, media and url
- add basic vscode settings for code formatting in devcontainer.json
- set post_max_size to Dockerfile
2020-10-15 14:40:49 +00:00
Benjamin Bellamy d2dc6e6418 docs(dependencies): add GeoIP2 2020-10-15 14:40:48 +00:00
Yassine Doghri f3b2c8b84f 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
2020-10-15 14:40:47 +00:00
Yassine Doghri 044482174e feat(episodes): add migrations, model and entity for episodes table 2020-10-15 14:40:44 +00:00
Benjamin Bellamy a333d29196 feat: add platform models 2020-10-15 14:40:18 +00:00
Benjamin Bellamy ce5934419a feat: add platforms tables 2020-10-15 14:39:17 +00:00
Benjamin Bellamy 97cd94b474 feat: add ISO 3166 country codes 2020-10-15 14:08:04 +00:00
Benjamin Bellamy 0c90db44c4 fix: update iso-369 language table seeder 2020-10-15 14:07:07 +00:00
Yassine Doghri 21413f8af3 fix(package.json): update destination of postcss generation scripts 2020-10-15 14:06:41 +00:00
Benjamin Bellamy 0be28c50bf style: update favicon 2020-10-15 14:06:16 +00:00
Benjamin Bellamy 7cf35bc9bd docs(readme): add NLnet support 2020-10-15 14:05:37 +00:00
Yassine Doghri 75da3fde33 docs(authors): set authors info as list 2020-10-15 14:05:37 +00:00
Yassine Doghri cbb83a6f30 feat: add npm for js dependencies + move src/ files to root folder
- add node service in docker-compose.yml
- update .devcontainer Dockerfile by adding node, npm and vim
- init package.json for npm with tailwindcss, postcss, commitlint and commitizen as dev dependencies
- update default layout main header and footer
- replace CI's welcome_message.php with home.php listing all podcasts
- add AUTHORS.md file
- add docs folder in which to place castopod's technical documentation
2020-10-15 14:05:36 +00:00
Benjamin Bellamy 3bf9420b59 feat: minor corrections to some tables 2020-10-15 14:05:03 +00:00
Benjamin Bellamy d9c790d3fa docs(dependencies): replace TinyMCE by Quill Rich Text Editor 2020-10-15 14:04:32 +00:00
Benjamin Bellamy 11f16db77b docs(dependencies): remove MaxMind DB Reader PHP API 2020-10-15 14:03:53 +00:00
Yassine Doghri 12ce905799 feat(podcast-form): update routes and redirect to podcast page 2020-10-15 14:03:52 +00:00
Benjamin Bellamy 3234224369 docs(dependencies): add WhichBrowser 2020-10-15 14:03:21 +00:00
Yassine Doghri a80adb2295 fix: use slash instead of backslash to call layout 2020-10-15 14:03:20 +00:00
Benjamin Bellamy 4ff23ad308 docs(dependencies): add TinyMCE 2020-10-15 14:03:02 +00:00
Yassine Doghri 1202ba3545 feat(podcast): create a podcast using form 2020-10-15 14:03:01 +00:00
Benjamin Bellamy 9daa0df006 docs: update DEPENDENCIES.md 2020-10-15 14:02:42 +00:00
Yassine Doghri f73b042cc0 feat(categories): create model, entity, migrations and seeds 2020-10-15 14:02:26 +00:00
Yassine Doghri 69e7266736 feat(devcontainer): add devcontainer settings for dev environment 2020-10-15 14:02:25 +00:00