Skip to content

Commit

Permalink
add contest.disallowNoFace checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vdvibhu20 committed Apr 29, 2024
1 parent 5086e7b commit e1cfb05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions app/pods/components/full-screen-contest-view/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
</div>
<div class="col-xl-5 col-lg-5 col-md-4 col-sm-12 col-12 mt-sm-0 mt-4">
<div class="d-flex justify-content-end align-items-center">
<div class="col-3 br-15">
<video id="monitorer_live_feed" class="w-100 br-15 {{if monitorer.noFaceDetected 'border-dark-pink' 'border-green'}}"></video>
</div>
{{#if contest.disallowNoFace}}
<div class="col-3 br-15">
<video id="monitorer_live_feed" class="w-100 br-15 {{if monitorer.noFaceDetected 'border-dark-pink' 'border-green'}}"></video>
</div>
{{/if}}
<div class="mr-4 flex-col align-items-center">
<Timer @to={{attempt.end_time_moment}} @onEnd={{action (or onTimerEnd (perform submitTask))}} as |time|>
<ul class="divided-list timer font-xs d-inline">
Expand Down
2 changes: 1 addition & 1 deletion app/pods/components/intermediate-contest-view/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<li>&#8226; Resize the browser window</li>
</ul>
{{/if}}
{{#if contest.disallowWindowResize}}
{{#if contest.disallowNoFace}}
<i class="fas fa-info-circle font-sm"></i> Face detection is enabled on this contest. You will face a penalty of 10 mins every 5 secs in case :-
<ul>
<li>&#8226; Your face is not visible in camera.</li>
Expand Down
8 changes: 4 additions & 4 deletions config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ module.exports = function (environment) {
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
ENV.nuxtPublicUrl = "http://localhost:8081"
ENV.publicUrl = 'http://test.hackerblocks/app/';
// ENV.publicUrl = "http://localhost:4200/app/";
ENV.apiHost = 'http://test.hackbackend';
// ENV.apiHost = "http://localhost:3000";
// ENV.publicUrl = 'http://test.hackerblocks/app/';
ENV.publicUrl = "http://localhost:4200/app/";
// ENV.apiHost = 'http://test.hackbackend';
ENV.apiHost = "http://localhost:3000";
ENV.oneauthURL = "http://localhost:3838";
ENV.clientId = 3680446660;
}
Expand Down

0 comments on commit e1cfb05

Please sign in to comment.