From cd58c3c702987b3dd17b7fc03fc467e2c9b7c4e8 Mon Sep 17 00:00:00 2001 From: Riad Date: Wed, 19 Jun 2024 17:37:08 +0200 Subject: [PATCH] Release 1.0.0 --- .ddev/config.yaml | 2 +- Classes/Services/BiteJobsService.php | 8 ++-- Readme.md | 18 +++++++++ composer.json | 57 ++++++++++++++-------------- ext_emconf.php | 6 +-- 5 files changed, 55 insertions(+), 36 deletions(-) diff --git a/.ddev/config.yaml b/.ddev/config.yaml index aaa213b..0e45c5a 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -3,7 +3,7 @@ type: typo3 docroot: .Build/Web # Using 8.1 instead of 8.0 to use helhum/typo3-console 8. # Version 7 throws an error during install:setup script. -php_version: "8.1" +php_version: "7.4" webserver_type: nginx-fpm router_http_port: "80" router_https_port: "443" diff --git a/Classes/Services/BiteJobsService.php b/Classes/Services/BiteJobsService.php index 4347168..64dfc14 100644 --- a/Classes/Services/BiteJobsService.php +++ b/Classes/Services/BiteJobsService.php @@ -28,9 +28,11 @@ final class BiteJobsService implements LoggerAwareInterface protected string $url; - public function __construct( - private readonly RequestFactory $requestFactory - ) { + protected RequestFactory $requestFactory; + + public function __construct(RequestFactory $requestFactory) { + $this->requestFactory = $requestFactory ?? GeneralUtility::makeInstance(RequestFactory::class); + $this->url = 'https://jobs.b-ite.com/api/v1/'; $this->headers = ['Content-Type' => 'application/json']; } diff --git a/Readme.md b/Readme.md index 9467dda..06f5c84 100644 --- a/Readme.md +++ b/Readme.md @@ -2,6 +2,24 @@ This extension provides a basic structure for academic B-ite jobs. +German: + + +Im Rahmen der Bedarfsbündelung für die FGTCLB Academic Extensions ist die TYPO3 Extension “Academic Jobs b-ite” entstanden, welche lediglich den b-ite Schlüssel benötigt, um Stellenanzeigen der b-ite Plattform nahtlos in einer TYPO3 Website anzuzeigen. +Das entwickelte Plug-in unterstützt derzeit unterschiedliche Zuordnungen, welche aus b-ite ausgelesen werden, z.B. Berufungsverfahren, Wissenschaftliches Personal, Nicht-wissenschaftliches Personal, Ausbildungsstellen. +Als Darstellungsmodi sind derzeit Listenansicht, Kachelansicht und Tabellensicht verfügbar. +Weiterhin stehen Optionen zur Gruppierung und Sortierung sowie ein Limit für die Anzahl der darzustellenden Stellenanzeigen zur Verfügung. + + +English: + + +As part of the bundling of requirements for the FGTCLB Academic Extensions, the TYPO3 extension "Academic Jobs b-ite" was created, which only requires the b-ite key to seamlessly display job adverts from the b-ite platform on a TYPO3 website. +The developed plug-in currently supports different categorisations, which are read from b-ite, e.g. appointment procedures, academic staff, non-scientific staff, training positions. +List view, tile view and table view are currently available as display modes. +There are also options for grouping and sorting as well as a limit for the number of job adverts to be displayed. + + **This extension is currently in beta state - please notice that there might be changes to the structure** ## Installation diff --git a/composer.json b/composer.json index 84f2bbe..d414949 100644 --- a/composer.json +++ b/composer.json @@ -21,39 +21,38 @@ { "type": "git", "url": "https://github.com/andreaswolf/typo3-ext-migrations.git" } ], "require": { - "php" : "^8.1", - "typo3/cms-core": "^11.5" + "typo3/cms-core": "^10.4 || ^11.5 || ^12.4" }, "require-dev": { - "typo3/cms-adminpanel": "^11.5", - "typo3/cms-backend": "^11.5", - "typo3/cms-belog": "^11.5", - "typo3/cms-beuser": "^11.5", - "typo3/cms-dashboard": "^11.5", - "typo3/cms-extbase": "^11.5", - "typo3/cms-extensionmanager": "^11.5", - "typo3/cms-felogin": "^11.5", - "typo3/cms-filelist": "^11.5", - "typo3/cms-filemetadata": "^11.5", - "typo3/cms-fluid": "^11.5", - "typo3/cms-fluid-styled-content": "^11.5", - "typo3/cms-form": "^11.5", - "typo3/cms-frontend": "^11.5", - "typo3/cms-impexp": "^11.5", - "typo3/cms-indexed-search": "^11.5", - "typo3/cms-info": "^11.5", - "typo3/cms-install": "^11.5", - "typo3/cms-linkvalidator": "^11.5", - "typo3/cms-lowlevel": "^11.5", - "typo3/cms-seo": "^11.5", - "typo3/cms-setup": "^11.5", - "typo3/cms-tstemplate": "^11.5", - "typo3/minimal": "^11", - "typo3/cms-composer-installers": "v4.0.0-RC1", - "helhum/typo3-console": "^7.1 || ^8.0", + "typo3/cms-adminpanel": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-backend": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-belog": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-beuser": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-dashboard": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-extbase": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-extensionmanager": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-felogin": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-filelist": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-filemetadata": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-fluid": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-fluid-styled-content": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-form": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-frontend": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-impexp": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-indexed-search": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-info": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-install": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-linkvalidator": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-lowlevel": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-seo": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-setup": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-tstemplate": "^10.4 || ^11.5 || ^12.4", + "typo3/minimal": "^10.4 || ^11.5 || ^12.4", + "typo3/cms-composer-installers": "^3.0 || ^5.0", + "helhum/typo3-console": "^6.0 || ^7.1 || ^8.0", "saschaegerer/phpstan-typo3": "^1.8", "friendsofphp/php-cs-fixer": "^3.14", - "bk2k/bootstrap-package": "^14.0", + "bk2k/bootstrap-package": "^12.0 || ^14.0", "kaystrobach/migrations": "0.11.0", "andreaswolf/typo3-uuid": "^0.3.0", "cweagans/composer-patches": "^1.7" diff --git a/ext_emconf.php b/ext_emconf.php index 29a1a29..97b50f0 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -5,11 +5,11 @@ 'description' => 'The Academic Bite Jobs extension shows jobs from the B-Ite Job Board.', 'constraints' => [ 'depends' => [ - 'typo3' => '11.5.0-12.4.99', + 'typo3' => '10.4.0-12.4.99', ], ], - 'state' => 'beta', - 'version' => '0.1.3', + 'state' => 'stable', + 'version' => '1.0.0', 'clearCacheOnLoad' => true, 'category' => 'fe,be', 'author' => 'Riad Zejnilagic Trumic',