A plugin for registrering time in Leantime.
Clone this repository into your Leantime plugins folder:
git clone https://github.com/ITK-Leantime/leantime-timetable.git app/Plugins/TimeTableInstall the plugin through Leantime in your web browser.
The install process symlinks the built file dist/timeTable.js with public/dist/js/timeTable.js in leantime.
Run this to watch files
docker compose run --rm php npm install
docker compose run --rm php npm run devRun composer install
docker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer installdocker run --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer normalizedocker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-checkdocker run --interactive --rm --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-applydocker run --rm -v "$(pwd):/work" tmknom/prettier:latest --check assetsdocker run --rm -v "$(pwd):/work" tmknom/prettier:latest --write assetsdocker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md'docker run --rm --volume "$PWD:/md" itkdev/markdownlint '**/*.md' --fixdocker run --rm --volume "$PWD:/app" -w /app shufo/blade-formatter:1.11.11 Templates/*.blade.php --writedocker run --rm --volume "$PWD:/app" -w /app shufo/blade-formatter:1.11.11 Templates/*.blade.php --check-formatteddocker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/create-release
docker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/deploy
docker run --rm --volume "$PWD:/app" --workdir /app peterdavehello/shellcheck shellcheck bin/local.create-release# This analysis takes a bit more than the default allocated ram.
docker run --interactive --rm --volume ${PWD}:/app --env PHP_MEMORY_LIMIT=256M itkdev/php8.3-fpm:latest composer code-analysisdocker compose build && docker compose run --rm php bin/create-release dev-testThe create-release script replaces @@VERSION@@ in
register.php and
Services/TimeTable.php
with the tag provided (in the above it is dev-test).
The deploy script downloads a release from Github and unzips it. The script should be passed a tag as argument. In the process the script deletes itself, but the script finishes because it is still in memory.