Merge pull request #261 from openHPI/feature/la-dashboard

Add LA dashboard architecture
This commit is contained in:
rteusner
2019-03-12 14:30:25 +01:00
committed by GitHub
60 changed files with 4120 additions and 3042 deletions

View File

@@ -28,5 +28,7 @@ module CodeOcean
config.autoload_paths << Rails.root.join('lib')
config.eager_load_paths << Rails.root.join('lib')
config.assets.precompile += %w( markdown-buttons.png )
config.action_cable.mount_path = '/cable'
end
end

View File

@@ -1,10 +1,14 @@
development:
adapter: async
adapter: postgresql
test:
adapter: async
adapter: postgresql
staging:
adapter: postgresql
production:
adapter: redis
url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
channel_prefix: code_ocean_production
adapter: postgresql # redis
# all other options below are only used for redis
# url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %>
# channel_prefix: code_ocean_production

View File

@@ -101,6 +101,7 @@ de:
files: Dateien
score: Punktzahl
user: Autor
study_group: Lerngruppe
study_group:
name: Name
external_id: Externe ID
@@ -347,6 +348,7 @@ de:
implement: Implementieren
test_files: Test-Dateien
feedback: Feedback
study_group_dashboard: Live Dashboard
statistics:
average_score: Durchschnittliche Punktzahl
final_submissions: Finale Abgaben
@@ -365,6 +367,13 @@ de:
failure: Beim Übermitteln Ihrer Punktzahl ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.
full_score_redirect_to_rfc: Herzlichen Glückwunsch! Sie haben die maximale Punktzahl für diese Aufgabe an den Kurs übertragen. Ein anderer Teilnehmer hat eine Frage zu der von Ihnen gelösten Aufgabe. Er würde sich sicherlich sehr über ihre Hilfe und Kommentare freuen.
full_score_redirect_to_own_rfc: Herzlichen Glückwunsch! Sie haben die maximale Punktzahl für diese Aufgabe an den Kurs übertragen. Ihre Frage ist damit wahrscheinlich gelöst? Falls ja, fügen Sie doch den entscheidenden Kniff als Antwort hinzu und markieren die Frage als gelöst, bevor sie das Fenster schließen.
study_group_dashboard:
live_dashboard: Live Dashboard
time_spent_per_learner: Verwendete Zeit pro Lerner
related_requests_for_comments: Zugehörige Kommentaranfragen
learner: Lerner
time_spent_in_minutes: benötigte Zeit in Minuten
no_data_yet: Bisher sind keine Daten verfügbar
external_users:
statistics:
no_data_available: Keine Daten verfügbar.
@@ -373,7 +382,7 @@ de:
score: Punktzahl
tests: Unit Tests
time_difference: 'Arbeitszeit bis hier*'
addendum: '* Differenzen von mehr als 10 Minuten werden ignoriert.'
addendum: '* Differenzen von mehr als %{delta} Minuten werden ignoriert.'
proxy_exercises:
index:
clone: Duplizieren

View File

@@ -101,6 +101,7 @@ en:
files: Files
score: Score
user: Author
study_group: Study Group
study_group:
name: Name
external_id: External ID
@@ -347,6 +348,7 @@ en:
implement: Implement
test_files: Test Files
feedback: Feedback
study_group_dashboard: Live Dashboard
statistics:
average_score: Average Score
final_submissions: Final Submissions
@@ -365,6 +367,13 @@ en:
failure: An error occurred while transmitting your score. Please try again later.
full_score_redirect_to_rfc: Congratulations! You achieved and submitted the highest possible score for this exercise. Another participant has a question concerning the exercise you just solved. Your help and comments will be greatly appreciated!
full_score_redirect_to_own_rfc: Congratulations! You achieved and submitted the highest possible score for this exercise. Your question concerning the exercise is solved? If so, please share the essential insight with your fellows and mark the question as solved, before you close this window!
study_group_dashboard:
live_dashboard: Live Dashboard
time_spent_per_learner: Time spent per Learner
related_requests_for_comments: Related Requests for Comments
learner: Learner
time_spent_in_minutes: Time spent in Minutes
no_data_yet: No data available yet
external_users:
statistics:
no_data_available: No data available.
@@ -373,7 +382,7 @@ en:
score: Score
tests: Unit Test Results
time_difference: 'Working Time until here*'
addendum: '* Deltas longer than 10 minutes are ignored.'
addendum: "* Deltas longer than %{delta} minutes are ignored."
proxy_exercises:
index:
clone: Duplicate

View File

@@ -83,6 +83,7 @@ Rails.application.routes.draw do
get :feedback
get :reload
post :submit
get 'study_group_dashboard/:study_group_id', to: 'exercises#study_group_dashboard'
end
end
@@ -151,4 +152,5 @@ Rails.application.routes.draw do
post "/evaluate", to: 'remote_evaluation#evaluate', via: [:post]
mount ActionCable.server => '/cable'
end

View File

@@ -18,6 +18,7 @@ environment.plugins.prepend('Provide', new webpack.ProvidePlugin({
_: 'underscore',
vis: 'vis',
hljs: 'highlight.js',
d3: 'd3',
})
);

View File

@@ -3,8 +3,11 @@
default: &default
source_path: app/javascript
source_entry_path: packs
public_root_path: public
public_output_path: packs
cache_path: tmp/cache/webpacker
check_yarn_integrity: false
webpack_compile_output: false
# Additional paths webpack should lookup modules
# ['app/assets', 'engine/foo/app/assets']
@@ -13,7 +16,25 @@ default: &default
# Reload manifest.json on all requests so we reload latest compiled packs
cache_manifest: false
# Extract and emit a css file
extract_css: true
static_assets_extensions:
- .jpg
- .jpeg
- .png
- .gif
- .tiff
- .ico
- .svg
- .eot
- .otf
- .ttf
- .woff
- .woff2
extensions:
- .mjs
- .js
- .sass
- .scss
@@ -31,6 +52,9 @@ development:
<<: *default
compile: true
# Verifies that versions and hashed value of the package contents in the project's package.json
check_yarn_integrity: true
# Reference: https://webpack.js.org/configuration/dev-server/
dev_server:
https: false
@@ -66,5 +90,8 @@ production:
# Production depends on precompilation of packs prior to booting for performance.
compile: false
# Extract and emit a css file
extract_css: true
# Cache manifest.json for performance
cache_manifest: true