This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 611e751f authored by Johannes Kainz's avatar Johannes Kainz
Browse files

Merge remote-tracking branch 'origin/development' into monitoring

parents 7a53ca5d d6f85169
2 merge requests!120Bringing monitoring to production,!100Monitoring
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="target/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path=".apt_generated">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path=".apt_generated_tests">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
...@@ -26,12 +26,12 @@ ...@@ -26,12 +26,12 @@
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name> <name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
<buildCommand> <buildCommand>
<name>net.sourceforge.pmd.eclipse.plugin.pmdBuilder</name> <name>org.eclipse.m2e.core.maven2Builder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
......
...@@ -19,6 +19,7 @@ services: ...@@ -19,6 +19,7 @@ services:
- SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTSECRET=${SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTSECRET} - SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTSECRET=${SECURITY_OAUTH2_CLIENT_REGISTRATION_GITLABOIDC_CLIENTSECRET}
- APPLICATION_GITLAB_GENERALACCESSTOKEN=${APPLICATION_GITLAB_GENERALACCESSTOKEN} - APPLICATION_GITLAB_GENERALACCESSTOKEN=${APPLICATION_GITLAB_GENERALACCESSTOKEN}
- APPLICATION_GITLAB_ADMINACCESSTOKEN=${APPLICATION_GITLAB_ADMINACCESSTOKEN} - APPLICATION_GITLAB_ADMINACCESSTOKEN=${APPLICATION_GITLAB_ADMINACCESSTOKEN}
- CONNECTOR_ARTEMIS_TOKEN=${CONNECTOR_ARTEMIS_TOKEN}
- gitBranch=${GIT_BRANCH} - gitBranch=${GIT_BRANCH}
- gitCommitId=${COMMIT_ID} - gitCommitId=${COMMIT_ID}
- gitCommitDate=${COMMIT_DATE} - gitCommitDate=${COMMIT_DATE}
......
...@@ -150,7 +150,7 @@ jhipster: ...@@ -150,7 +150,7 @@ jhipster:
application: application:
registeredConnectors: registeredConnectors:
- url: 'https://artemis.codeability.uibk.ac.at/api/sharing/config' - url: 'https://artemis.codeability.uibk.ac.at/api/sharing/config'
accessToken: 'notYet' accessToken: ${CONNECTOR_ARTEMIS_TOKEN}
registeredConnectorsCallBackURL: https://search.sharing-codeability.uibk.ac.at//api registeredConnectorsCallBackURL: https://search.sharing-codeability.uibk.ac.at//api
installationName: Sharing Plattform installationName: Sharing Plattform
# applicationName: Sharing Plattform # applicationName: Sharing Plattform
......
...@@ -145,7 +145,7 @@ jhipster: ...@@ -145,7 +145,7 @@ jhipster:
application: application:
registeredConnectors: registeredConnectors:
- url: 'https://artemis.codeability-austria.uibk.ac.at/api/sharing/config' - url: 'https://artemis.codeability-austria.uibk.ac.at/api/sharing/config'
accessToken: 'notYet' accessToken: ${CONNECTOR_ARTEMIS_TOKEN}
registeredConnectorsCallBackURL: https://dev-exchange.codeability-austria.uibk.ac.at/api registeredConnectorsCallBackURL: https://dev-exchange.codeability-austria.uibk.ac.at/api
installationName: Sharing Plattform (Staging) installationName: Sharing Plattform (Staging)
gitlab: gitlab:
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
<!-- modal rating--> <!-- modal rating-->
<div *ngIf="exercise.rating" class="positionRating"> <div *ngIf="exercise.rating" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForRating" style="float: left">
<p class="card-text" jhiTranslate="exercise.details.rating"></p> <p class="card-text" jhiTranslate="exercise.details.accuracy"></p>
</div> </div>
<div class="star-container"> <div class="star-container">
<span <span
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
> >
</span> </span>
</div> </div>
<ng-template #helpForRating> {{ 'exercise.details.rating' | translate }} </ng-template>
</div> </div>
<!-- modal rating end--> <!-- modal rating end-->
...@@ -100,7 +101,7 @@ ...@@ -100,7 +101,7 @@
<div *ngIf="exercise.views" class="positionRating"> <div *ngIf="exercise.views" class="positionRating">
<div style="float: left"> <div style="float: left">
<div> <div [ngbTooltip]="helpForViews">
<fa-icon icon="eye"></fa-icon> <fa-icon icon="eye"></fa-icon>
</div> </div>
</div> </div>
...@@ -109,11 +110,12 @@ ...@@ -109,11 +110,12 @@
{{ exercise.views }} {{ exercise.views }}
</span> </span>
</div> </div>
<ng-template #helpForViews> {{ 'exercise.details.views' | translate }}</ng-template>
</div> </div>
<!-- modal views end--> <!-- modal views end-->
<div *ngIf="exercise.downloads >= 0" class="positionRating"> <div *ngIf="exercise.downloads >= 0" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForDownloads" style="float: left">
<fa-icon icon="download"></fa-icon> <fa-icon icon="download"></fa-icon>
</div> </div>
<div class="star-container"> <div class="star-container">
...@@ -121,11 +123,12 @@ ...@@ -121,11 +123,12 @@
{{ exercise.downloads }} {{ exercise.downloads }}
</span> </span>
</div> </div>
<ng-template #helpForDownloads> {{ 'exercise.details.downloads' | translate }}</ng-template>
</div> </div>
<!-- modal views end--> <!-- modal views end-->
<div *ngIf="exercise.numberOfWatchlistEntries >= 0" class="positionRating"> <div *ngIf="exercise.numberOfWatchlistEntries >= 0" class="positionRating">
<div style="float: left"> <div [ngbTooltip]="helpForWatchlists" style="float: left">
<fa-icon icon="star"></fa-icon> <fa-icon icon="star"></fa-icon>
</div> </div>
<div class="star-container"> <div class="star-container">
...@@ -133,6 +136,7 @@ ...@@ -133,6 +136,7 @@
{{ exercise.numberOfWatchlistEntries }} {{ exercise.numberOfWatchlistEntries }}
</span> </span>
</div> </div>
<ng-template #helpForWatchlists> {{ 'exercise.details.watchlists' | translate }}</ng-template>
</div> </div>
<!-- modal bookmark--> <!-- modal bookmark-->
...@@ -155,7 +159,7 @@ ...@@ -155,7 +159,7 @@
<!-- modal bookmark end--> <!-- modal bookmark end-->
<div *ngIf="exercise.originalResult.file.parentId" style="float: left; width: 100%; padding-top: 15px; margin-bottom: 25px"> <div *ngIf="exercise.originalResult.file.parentId" style="float: left; width: 100%; padding-top: 15px; margin-bottom: 25px">
<ng-template #helpToParent data-container="body"> {{ 'exercise.help.toParent' | translate }}</ng-template> <ng-template #helpToParent data-container="body"> {{ 'exercise.help.toParent' | translate }} </ng-template>
<fa-icon <fa-icon
style="padding: 5px 0px 0px 5px; float: left" style="padding: 5px 0px 0px 5px; float: left"
[ngbTooltip]="helpToParent" [ngbTooltip]="helpToParent"
...@@ -200,49 +204,41 @@ ...@@ -200,49 +204,41 @@
<div class="col-12"> <div class="col-12">
<p style="text-align: left; margin-top: 20px"><strong jhiTranslate="exercise.export.export"></strong></p> <p style="text-align: left; margin-top: 20px"><strong jhiTranslate="exercise.export.export"></strong></p>
<hr /> <hr />
<table> </div>
<tr> <div class="col-6">
<td> <span>
<a <a
class="btn btn-outline-secondary" class="btn btn-outline-secondary"
role="button" role="button"
aria-pressed="true" aria-pressed="true"
style="float: left; margin-right: 5px; margin-top: 5px" style="float: left; margin-right: 5px; margin-top: 5px"
(click)="download()" (click)="download()"
jhiTranslate="exercise.export.download" jhiTranslate="exercise.export.download"
></a> ></a>
</td> <label style="padding-top: 10px" for="withChildren">
<td style="vertical-align: middle"> {{ 'exercise.details.withChildren' | translate }}
<input <input type="checkbox" [hidden]="false" [(ngModel)]="downloadWithChildren" id="withChildren" />
type="checkbox" </label>
[checked]="downloadWithChildren" </span>
(change)="toggleWithChildren()" </div>
value="" <a
value="" *ngFor="let action of exercise.originalResult.supportedActions"
id="withChildren" class="btn btn-outline-secondary positionAction col-6"
/> role="button"
<label class="form-check-label" for="withChildren" jhiTranslate="exercise.details.withChildren"></label> aria-pressed="true"
</td> (click)="startAction(action, exercise)"
</tr> >{{ action.commandName }}</a
</table> >
<a <div class="col-6" placement="bottom">
*ngFor="let action of exercise.originalResult.supportedActions" <span [ngbTooltip]="helpComingSoon">
class="btn btn-outline-secondary positionAction"
role="button"
aria-pressed="true"
(click)="startAction(action, exercise)"
>{{ action.commandName }}</a
>
<div [ngbTooltip]="helpComingSoon" placement="bottom">
<button <button
*ngIf="hasChildren()" *ngIf="hasChildren()"
type="button" type="button"
class="btn btn-outline-secondary positionAction" class="btn btn-outline-secondary positionAction"
jhiTranslate="exercise.export.latex" jhiTranslate="exercise.export.latex"
title="{{ 'exercise.comingSoon' | translate }}"
disabled disabled
></button> ></button>
</div> </span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -73,3 +73,7 @@ ...@@ -73,3 +73,7 @@
margin-right: 5px; margin-right: 5px;
margin-top: 5px; margin-top: 5px;
} }
#myModal {
overflow-y: scroll;
}
...@@ -3,15 +3,17 @@ ...@@ -3,15 +3,17 @@
"comingSoon": "demnächst verfügbar :-)", "comingSoon": "demnächst verfügbar :-)",
"details": { "details": {
"details": "Details", "details": "Details",
"rating": "Trefferqualität", "accuracy": "Trefferübereinstimmung",
"rating": "Diese Metrik zeigt wie gut die Suchanfrage mit den gefundenen Treffern übereinstimmt.",
"bookmark": "Merken", "bookmark": "Merken",
"withChildren": "mit Unteraufgaben", "withChildren": "mit Unteraufgaben",
"hitDetails": "Suchergebnis Details", "hitDetails": "Suchergebnis Details",
"allExercises": "Alle Aufgaben für diesen Kurs anzeigen", "allExercises": "Alle Aufgaben für diesen Kurs anzeigen",
"git": "In GitLab öffnen", "git": "In GitLab öffnen",
"editOEResource": "In OEResource bearbeiten", "editOEResource": "In OEResource bearbeiten",
"views": "Anzahl der Aufrufe", "views": "Anzahl der Aufrufe!",
"downloads": "Anzahl der Downloads", "downloads": "Anzahl der Downloads!",
"watchlists": "Anzahl der Merklisten, in welchen diese Resource vorkommt!",
"readmeNotFound": "# Keine README.md Datei (oder Alternative) gefunden!", "readmeNotFound": "# Keine README.md Datei (oder Alternative) gefunden!",
"toParent": "zum übergeordneten Objekt", "toParent": "zum übergeordneten Objekt",
"like": "Wenn Ihnen diese Aufgabe gefällt, dann klicken Sie auf das Herz!", "like": "Wenn Ihnen diese Aufgabe gefällt, dann klicken Sie auf das Herz!",
......
...@@ -3,15 +3,17 @@ ...@@ -3,15 +3,17 @@
"comingSoon": "coming soon", "comingSoon": "coming soon",
"details": { "details": {
"details": "Details", "details": "Details",
"rating": "Hit quality", "accuracy": "Search accuracy",
"rating": "This metric shows how well the search term overlaps with the found resources!",
"bookmark": "Bookmark", "bookmark": "Bookmark",
"withChildren": "with children", "withChildren": "with children",
"hitDetails": "Show hit details", "hitDetails": "Show hit details",
"allExercises": "Show all exercises for this course", "allExercises": "Show all exercises for this course",
"git": "Open in GitLab", "git": "Open in GitLab",
"editOEResource": "Edit in OEResource", "editOEResource": "Edit in OEResource",
"views": "Number of views", "views": "Number of views!",
"downloads": "Number of downloads", "downloads": "Number of downloads!",
"watchlists": "Number of times this resource was saved in a watchlist!",
"readmeNotFound": "# No README.md (or alternatives) found!", "readmeNotFound": "# No README.md (or alternatives) found!",
"toParent": "to parent object", "toParent": "to parent object",
"like": "If you like this exercise, you can click here!", "like": "If you like this exercise, you can click here!",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment