Skip to content

Commit

Permalink
feat: add the Custom claim button (#161)
Browse files Browse the repository at this point in the history
* feat: add the `Custom` claim button

* fix: composer ^2.7 compatibility

* feat: add various custom-claim presets
  • Loading branch information
wazelin authored Jul 4, 2024
1 parent 45738a0 commit 829d310
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions config/devkit/claims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,22 @@ parameters:
Roles:
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_ROLES
value: ['http://purl.imsglobal.org/vocab/lis/v2/membership#Learner']
Custom – Review:
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_CUSTOM
value:
deliverySettings.review.enabled: 'true'
deliverySettings.review.showCorrect: 'true'
deliverySettings.review.showScore: 'true'
deliverySettings.review.showQuestion: 'false'
deliverySettings.review.showUnShuffled: 'true'
Custom – Proctored:
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_CUSTOM
value:
proctoringSettings.enableMonitoring: 'true'
proctoringSettings.requireProctorAuthorization: 'true'
Custom – Plugins:
name: !php/const \OAT\Library\Lti1p3Core\Message\Payload\LtiMessagePayloadInterface::CLAIM_LTI_CUSTOM
value:
deliverySettings.plugins.add: 'taoQtiNuiTest/runner/plugins/panel/a11y/plugin'
deliverySettings.plugins.remove: 'taoQtiNuiTest/runner/plugins/tools/highlighter/plugin,taoQtiNuiTest/runner/plugins/tools/scratchpad/plugin'
deliverySettings.plugins: "{\"readAloud\":{\"readAloudOption\":\"always-enabled\"},\"a11yMenuPanel\":{\"openOnStart\":true,\"contrastTheme\": {\"enabled\": true,\"themes\": [\"default\",\"whiteOnBlue\",\"yellowOnBlack\",\"blueOnYellow\",\"greyOnGreen\"]},\"groups\": [\"group-contrast\", \"group-pointer\", \"group-text\", \"group-zoom\"]}}"
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
application_env: '%env(resolve:APP_ENV)%'
application_api_key: '%env(resolve:APP_API_KEY)%'
application_vendors: '%kernel.project_dir%/vendor/composer/installed.php'
application_version: '2.9.0'
application_version: '2.10.0'
container.dumper.inline_factories: true
cache.redis.namespace: '%env(default:cache.redis.namespace.default:REDIS_CACHE_NAMESPACE)%'
cache.redis.namespace.default: 'devkit'
Expand Down
2 changes: 1 addition & 1 deletion docker/kube/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COPY . .

# Install required packages
RUN set -eux; \
composer self-update --2; \
composer self-update 2.6.6; # TODO update symfony/flex to the latest version instead \
composer install -n --optimize-autoloader --no-dev --prefer-dist; \
composer dump-autoload -n --optimize --no-dev --classmap-authoritative; \
rm -rf .build/;
Expand Down

0 comments on commit 829d310

Please sign in to comment.