Commit Graph

17463 Commits

Author SHA1 Message Date
Jonas L d3c37ce162
chore: move and clean logo to website (#1590) 2022-02-11 12:20:45 +02:00
jo 94d3c5e496 docs: fix prose linting errors
- Properly enclose code between triple backticks
- Put paths and url between backticks
- Remove links <> enclosing
- Libretime styled name is LibreTime
- Put urls and paths betwen backticks
- Use sentence like capitalization for headings
- Put tools name between backticks
- Update links
2022-02-11 10:12:07 +01:00
jo 75e3760f2e ci: setup docs prose linting with vale
- only deploy if prose lint passes
- rework styles download
- add vale anotations matcher
- set MinAlertLevel to warning
- add website pages to the prose linter
- do not fail on docs linting
2022-02-11 10:12:07 +01:00
jo 2d644561bf docs: fix broken links 2022-02-10 08:40:38 +01:00
jo dae1420a5b ci: add link-checker workflow
- merge closed-references and link-checker
- add issue number to update
2022-02-10 08:40:38 +01:00
jo 328e36168d ci: only cancel same worklow 2022-02-10 08:40:38 +01:00
dependabot[bot] 864df4874b chore: bump @types/node from 17.0.16 to 17.0.17 in /website
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.16 to 17.0.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 08:24:52 +01:00
dependabot[bot] 89214966c2 chore: bump amannn/action-semantic-pull-request from 4.1.0 to 4.2.0
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v4.1.0...v4.2.0)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 08:21:23 +01:00
jo 17f3aab7cb ci: add dependabot check on website 2022-02-10 08:17:02 +01:00
jo 270fef3cbc ci: add website deploy workflow
Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo 6d9e7a6765 docs: rework docs into the new website
- multipass docs moved to local-dev.md
- add documentation to website
- rework fogotten files
- disable fogotten files

Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo 2fa10793ec docs: restructure and backup pictures
Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo 9a88617e73 chore: delete jplayer zip file
Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo c4cdb94fab docs: rename documentation files
Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo 8d8e55f236 docs: replace jekyll with docusaurus
- jsnon5 not handled by pre-commit

Co-authored-by: Zachary Klosko <zklosko@users.noreply.github.com>
2022-02-10 08:17:02 +01:00
jo 9eab3b8d17 chore: update pre-commit to handle js/ts/css files 2022-02-10 08:17:02 +01:00
jo 6419435601 style: format code using black 2022-02-09 17:24:36 +02:00
jo c56492357b chore: remove unmaintained utils folder
Fixes #561
2022-02-09 17:24:36 +02:00
jo 89c845b269 chore: upgrade black pre-commit hook 2022-02-09 17:24:36 +02:00
Jonas L ae5746d26d
style: fix php-cs-fixer linting (#1575) 2022-02-08 11:14:59 +02:00
dependabot[bot] b43cb62a2e chore: bump composer/semver from 3.2.7 to 3.2.9 in /legacy
Bumps [composer/semver](https://github.com/composer/semver) from 3.2.7 to 3.2.9.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.2.7...3.2.9)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:27:16 +01:00
dependabot[bot] 94ca1b3e41 chore: bump amannn/action-semantic-pull-request from 3.6.0 to 4.1.0
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 3.6.0 to 4.1.0.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/master/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/v3.6.0...v4.1.0)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:17:48 +01:00
Jonas L c80f520d76
fix(legacy): update setup with new db config schema (#1567) 2022-02-05 09:48:36 +02:00
Jonas L 3245216869
feat(legacy): add db config defaults and allow custom port (#1559)
* feat(legacy): allow custom port for database connection

- fix heredoc for php72

* update test config db section

* update sample config db section

* update api db config

* use defaults for database config section

* update documentation

* more documentation for migration
2022-02-04 16:03:01 +02:00
Jonas L 71b3e6aa9d
docs: recommend current LTS or stable distro (#1564)
Fixes #1561
2022-02-04 15:58:07 +02:00
Jonas L 173ec6b334
fix(legacy): revert default storage path (#1563)
The installer hasn't been updated to create the default storage path.
2022-02-04 15:57:09 +02:00
Jonas L 729a7b99e0
feat(legacy): consolidate constants (#1558)
* remove unused file

* fix paths leading slash

* remove useless imports

* refactor(legacy): use constants everywhere

* fix path leading slash

* remove useless import

* consolidate legacy contants

* format code

* reuse LIBRETIME_CONFIG_DIR

* fix test config path

* remove ci legacy log dir creation

* some logs improvements
2022-02-04 12:00:41 +02:00
Jonas L e106858fd8
feat: remove locale generation from installer (#1560)
Fixes #317
2022-02-04 09:16:00 +02:00
jo 9fc4552cfe fix(playout): properly populate scheduled_now_webstream
If scheduled_now_webstream is an empty array, the webstream will automatically be stopped, so we need to make sure the scheduled_now_webstream is aways properly populated.
2022-02-02 17:13:52 +02:00
jo 803152cb85 fix(api_client): properly enclose events in media dict 2022-02-02 17:13:52 +02:00
jo 51499f251f fix(api_client): use same date format as schedule key
The webstream end event are ignored by playout if they do not follow the right datetime format.
2022-02-02 15:15:24 +02:00
jo 51378e1e6f fix(playout): only exclude ended file event
The webstream schedule logic seem to rely on already ended events to check if the stream running is the right one.
We should not exclude these webstream events from the schedule.
2022-02-02 15:15:24 +02:00
jo 348d2d81f0 fix(playout): proper logger format string 2022-02-02 15:15:24 +02:00
Jonas L 784b9fb225
feat(shared): add url/dsn property to config classes (#1553) 2022-02-02 09:04:48 +02:00
jo 80dfbd3179 fix(shared): set logger encoding and dont assume encoding
Older versions of python might have ascii as default, we
should not assume that the default encoding always is "utf-8"
when opening files.
2022-02-01 04:23:05 +02:00
dependabot[bot] f6fe318278 chore: bump loguru from 0.5.3 to 0.6.0 in /shared
Bumps [loguru](https://github.com/Delgan/loguru) from 0.5.3 to 0.6.0.
- [Release notes](https://github.com/Delgan/loguru/releases)
- [Changelog](https://github.com/Delgan/loguru/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/Delgan/loguru/compare/0.5.3...0.6.0)

---
updated-dependencies:
- dependency-name: loguru
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 04:23:05 +02:00
Jonas L 0ce1634c9d
feat(legacy): rename log filepath (#1551)
BREAKING CHANGE: moved legacy log file from '/var/log/airtime/zendphp.log' to '/var/log/libretime/legacy.log'
2022-01-31 11:27:53 +02:00
Jonas L 81fc0c9afc
fix(legacy): clean sql migrations files (#1545)
* fix(legacy): do not fail on fresh sql migration

* fix(legacy): sql only drop if exists

* fix(legacy): remove unused in db locales

These inserts are making migration fail
2022-01-31 09:19:53 +00:00
jo a15e1fead5 chore(shared): add dependabot dependencies check 2022-01-31 11:17:02 +02:00
jo ca37322da4 chore: reorder dependabot entries 2022-01-31 11:17:02 +02:00
Jonas L 7ce6104806
chore: remove broken invite-contributors config (#1541)
Fixes #1323
2022-01-31 11:14:23 +02:00
Jonas L ff2c733170
feat(playout): change liquidsoap working dir (#1547)
BREAKING CHANGE: When running liquidsoap as a systemd service, the working directory is now /var/lib/libretime/playout.
2022-01-31 11:13:49 +02:00
Kyle Robbertze c266221165 fix(shared): pin loguru version
Pinned to 0.5.3 until https://github.com/Delgan/loguru/issues/581 is
fixed
2022-01-31 10:12:28 +01:00
Jonas L cba905e367
refactor(analyzer): improve analyzer pipeline module (#1542)
* rename steps to pipeline module

* move pipeline entrypoint to pipeline module

* rename steps test module to pipeline

* fix paths after renames

* move step protocol to pipeline

* create pipeline status enum

* use Protocol from typing extensions

* Fix linting
2022-01-28 07:09:19 +02:00
Jonas L 74c8d20284
fix(legacy): only render if img creation succeed (#1540)
Fixes #1489
2022-01-28 07:04:58 +02:00
jo 86948e7b93 fix(legacy): add more null check in api live info 2022-01-27 16:01:09 +02:00
jo ace167fe10 fix(legacy): do not catch too broad exceptions 2022-01-27 16:01:09 +02:00
jo 3f67d36909 fix(legacy): default values when array is null 2022-01-27 16:01:09 +02:00
jo 32cb67806a chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook
- add --py36-plus flag to pyupgrade hook
2022-01-27 10:37:48 +02:00
jo 21aaf9bca1 chore: upgrade pre-commit hooks 2022-01-27 10:37:48 +02:00