mumuki-laboratory 9.0.5 → 9.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d72de447465b6716ee6b249aae76c6158aaa6ca02c87d58ea4e19fcf783ad85e
4
- data.tar.gz: 387fef678b907e118266847df85eada3fb2aaea616162bb00e136776f2010629
3
+ metadata.gz: 1923025a623999bd5e8c2c802f024660f71d980865e5b436cfdf7ee27a361445
4
+ data.tar.gz: 368eace9064bfe944f5abecce4f36c5b5f55e15f08f3d7ee949eca7033adb0c2
5
5
  SHA512:
6
- metadata.gz: ae0f9022a999d502065a58c4fca2224c4ea3f21562c56d55489889793d70c7d561554bbd2eeb0f940295a7fc071adac35cf439219b228aa150799c62ed9f6a25
7
- data.tar.gz: 5e40cd1dc2accffef46a0a6981d0ad588f031070c611d67d8c0811cdd6919a6d4733b8363b1bf6d02018c41f9d72945c4b6b497bc465ebe6621c00e17087d6c5
6
+ metadata.gz: 126c58ab5c3d42c0055c85886cfdb49ae6714b797c7b2fb206417f97cdfd3bf3edd14bd66f268acc1ad79fcb1f6fa659073522a8ed91726ceda9a84fbee7b4a2
7
+ data.tar.gz: 43e8f6368254c0dff68d2194a68d7a4511c2732226463d1a77ba6e0cfe76b6b0ee0610a096480fc116ad8feec491a457657296316ab2b4e6039e72b5ec7883d3
@@ -20,12 +20,20 @@ mumuki.page.editors = [];
20
20
  $("#exercise_language_id").change(updateCodeMirrorLanguage);
21
21
  }
22
22
 
23
- function resetEditor() {
23
+ function resetSimpleEditor() {
24
24
  mumuki.page.dynamicEditors.forEach(function (e) {
25
25
  setDefaultContent(e, $('#default_content').val());
26
26
  });
27
27
  }
28
28
 
29
+ function resetEditor(isMultipleFiles) {
30
+ if (!isMultipleFiles) {
31
+ resetSimpleEditor();
32
+ } else {
33
+ mumuki.multipleFileEditor.resetEditor();
34
+ }
35
+ }
36
+
29
37
  function formatContent() {
30
38
  mumuki.page.editors.each(function (_, editor) {
31
39
  editor.setSelection({line: 0, ch: 0}, {line: editor.lineCount()});
@@ -87,7 +95,7 @@ mumuki.page.editors = [];
87
95
  $('.editor-reset').click(function (event) {
88
96
  event.stopPropagation();
89
97
  const selection = confirm(this.getAttribute('data-confirm'));
90
- if(selection) resetEditor();
98
+ if (selection) resetEditor($(event.target).parent().data('multiple-files'));
91
99
  });
92
100
 
93
101
  $('.editor-resize').click(function () {
@@ -135,6 +135,13 @@ mumuki.load(() => {
135
135
  });
136
136
  }
137
137
 
138
+ resetEditor() {
139
+ const defaultContents = this._getDataFromHiddenInput('#multifile-default-content');
140
+ mumuki.page.editors.each(function (i, editor) {
141
+ editor.getDoc().setValue(defaultContents[i].content);
142
+ });
143
+ }
144
+
138
145
  _addFile() {
139
146
  let name = prompt(this.locales.insert_file_name);
140
147
  const alreadyExists = this.files.toArray().some(it => it.name === name);
@@ -31,6 +31,9 @@
31
31
  }
32
32
  .terms-card-body {
33
33
  padding: 1.25rem;
34
+ p {
35
+ text-align: justify;
36
+ }
34
37
  }
35
38
 
36
39
  .terms-acceptance {
@@ -41,5 +44,3 @@
41
44
  display: block
42
45
  }
43
46
  }
44
-
45
-
@@ -9,6 +9,7 @@ module MultipleFileEditorHelper
9
9
 
10
10
  def multifile_hidden_inputs
11
11
  hidden_field_tag('highlight-modes', highlight_modes.to_json) +
12
- hidden_field_tag('multifile-locales', multifile_locales.to_json)
12
+ hidden_field_tag('multifile-locales', multifile_locales.to_json) +
13
+ hidden_field_tag('multifile-default-content', @files.to_json)
13
14
  end
14
15
  end
@@ -9,6 +9,7 @@
9
9
  <%= discussions_user_menu_link %>
10
10
  <%= user_menu_divider %>
11
11
  <%= activity_user_menu_link %>
12
+ <%= certificates_user_menu_link %>
12
13
  </div>
13
14
  </div>
14
15
  <div class="mu-user-menu-divider vertical hidden-sm hidden-xs"></div>
@@ -29,7 +29,7 @@
29
29
  <div class="mu-overlapped multiple-files">
30
30
  <a class="editor-resize"> <%= expand_icon %></a>
31
31
  <a class="editor-format"><%= format_icon %></a>
32
- <!--<a class="editor-reset submission-reset" data-confirm="<%= t(:confirm_reset) %>"><%= restart_icon %></a> -->
32
+ <a class="editor-reset submission-reset" data-confirm="<%= t(:confirm_reset) %>" data-multiple-files="true"><%= restart_icon %></a>
33
33
  </div>
34
34
  </div>
35
35
  </div>
@@ -0,0 +1,3 @@
1
+ ActiveSupport::Inflector.inflections(:en) do |inflect|
2
+ inflect.acronym 'FAQs'
3
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '9.0.5'
3
+ VERSION = '9.0.6'
4
4
  end
5
5
  end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20210308145910) do
13
+ ActiveRecord::Schema.define(version: 20210330175706) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -79,14 +79,16 @@ ActiveRecord::Schema.define(version: 20210308145910) do
79
79
  t.bigint "organization_id"
80
80
  t.datetime "created_at", null: false
81
81
  t.datetime "updated_at", null: false
82
+ t.datetime "start_date"
83
+ t.datetime "end_date"
82
84
  t.index ["organization_id"], name: "index_certificate_programs_on_organization_id"
83
85
  end
84
86
 
85
87
  create_table "certificates", force: :cascade do |t|
86
88
  t.bigint "user_id"
87
89
  t.bigint "certificate_program_id"
88
- t.datetime "start_date"
89
- t.datetime "end_date"
90
+ t.datetime "started_at"
91
+ t.datetime "ended_at"
90
92
  t.string "code"
91
93
  t.datetime "created_at", null: false
92
94
  t.datetime "updated_at", null: false
@@ -121,6 +123,8 @@ ActiveRecord::Schema.define(version: 20210308145910) do
121
123
  t.integer "organization_id"
122
124
  t.datetime "created_at", null: false
123
125
  t.datetime "updated_at", null: false
126
+ t.datetime "period_start"
127
+ t.datetime "period_end"
124
128
  end
125
129
 
126
130
  create_table "discussions", force: :cascade do |t|
@@ -199,6 +203,13 @@ ActiveRecord::Schema.define(version: 20210308145910) do
199
203
  t.index ["exam_registration_id"], name: "index_exam_registrations_exams_on_exam_registration_id"
200
204
  end
201
205
 
206
+ create_table "exam_registrations_users", id: false, force: :cascade do |t|
207
+ t.bigint "exam_registration_id", null: false
208
+ t.bigint "user_id", null: false
209
+ t.index ["exam_registration_id"], name: "index_exam_registrations_users_on_exam_registration_id"
210
+ t.index ["user_id"], name: "index_exam_registrations_users_on_user_id"
211
+ end
212
+
202
213
  create_table "exams", id: :serial, force: :cascade do |t|
203
214
  t.integer "organization_id"
204
215
  t.integer "guide_id"
@@ -510,6 +521,8 @@ ActiveRecord::Schema.define(version: 20210308145910) do
510
521
  t.datetime "forum_terms_accepted_at"
511
522
  t.boolean "banned_from_forum"
512
523
  t.boolean "uppercase_mode"
524
+ t.string "delete_account_token"
525
+ t.datetime "delete_account_token_expiration_date"
513
526
  t.index ["avatar_type", "avatar_id"], name: "index_users_on_avatar_type_and_avatar_id"
514
527
  t.index ["disabled_at"], name: "index_users_on_disabled_at"
515
528
  t.index ["last_organization_id"], name: "index_users_on_last_organization_id"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.0.5
4
+ version: 9.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 9.0.5
33
+ version: 9.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 9.0.5
40
+ version: 9.0.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -719,6 +719,7 @@ files:
719
719
  - app/views/users/terms.html.erb
720
720
  - config/i18n-tasks.yml
721
721
  - config/initializers/form_builder.rb
722
+ - config/initializers/inflections.rb
722
723
  - config/initializers/omniauth.rb
723
724
  - config/initializers/session_store.rb
724
725
  - config/routes.rb
@@ -955,134 +956,134 @@ signing_key:
955
956
  specification_version: 4
956
957
  summary: Code assement web application for the Mumuki Platform.
957
958
  test_files:
958
- - spec/dummy/config/cable.yml
959
- - spec/dummy/config/application.rb
960
- - spec/dummy/config/spring.rb
961
- - spec/dummy/config/database.yml
962
- - spec/dummy/config/environment.rb
963
- - spec/dummy/config/rabbit.yml
964
- - spec/dummy/config/puma.rb
965
- - spec/dummy/config/locales/en.yml
966
- - spec/dummy/config/secrets.yml
967
- - spec/dummy/config/environments/development.rb
968
- - spec/dummy/config/environments/test.rb
969
- - spec/dummy/config/boot.rb
970
- - spec/dummy/config/initializers/cookies_serializer.rb
971
- - spec/dummy/config/initializers/wrap_parameters.rb
972
- - spec/dummy/config/initializers/filter_parameter_logging.rb
973
- - spec/dummy/config/initializers/assets.rb
974
- - spec/dummy/config/routes.rb
975
959
  - spec/dummy/package.json
976
- - spec/dummy/Rakefile
977
- - spec/dummy/config.ru
978
- - spec/dummy/bin/rails
979
- - spec/dummy/bin/yarn
980
- - spec/dummy/bin/rake
981
- - spec/dummy/bin/bundle
982
- - spec/dummy/bin/update
983
- - spec/dummy/bin/setup
960
+ - spec/dummy/db/schema.rb
961
+ - spec/dummy/db/seeds.rb
984
962
  - spec/dummy/public/character/animations.json
963
+ - spec/dummy/public/character/kibi/jump.svg
964
+ - spec/dummy/public/character/kibi/passed_with_warnings.svg
965
+ - spec/dummy/public/character/kibi/context.svg
985
966
  - spec/dummy/public/character/kibi/failure.svg
986
967
  - spec/dummy/public/character/kibi/success_l.svg
987
- - spec/dummy/public/character/kibi/passed_with_warnings.svg
988
968
  - spec/dummy/public/character/kibi/success2_l.svg
989
- - spec/dummy/public/character/kibi/jump.svg
990
- - spec/dummy/public/character/kibi/context.svg
991
969
  - spec/dummy/public/character/magnifying_glass/apparition.svg
992
970
  - spec/dummy/public/character/magnifying_glass/loop.svg
971
+ - spec/dummy/public/error/timeout_1.svg
993
972
  - spec/dummy/public/error/timeout_2.svg
973
+ - spec/dummy/public/error/410.svg
994
974
  - spec/dummy/public/error/401.svg
995
- - spec/dummy/public/error/403.svg
996
- - spec/dummy/public/error/timeout_1.svg
997
975
  - spec/dummy/public/error/timeout_3.svg
998
- - spec/dummy/public/error/404.svg
999
- - spec/dummy/public/error/410.svg
1000
976
  - spec/dummy/public/error/500.svg
977
+ - spec/dummy/public/error/404.svg
978
+ - spec/dummy/public/error/403.svg
1001
979
  - spec/dummy/public/medal/outline.svg
1002
- - spec/dummy/db/seeds.rb
1003
- - spec/dummy/db/schema.rb
980
+ - spec/dummy/Rakefile
981
+ - spec/dummy/config.ru
982
+ - spec/dummy/config/environment.rb
983
+ - spec/dummy/config/secrets.yml
984
+ - spec/dummy/config/boot.rb
985
+ - spec/dummy/config/spring.rb
986
+ - spec/dummy/config/database.yml
987
+ - spec/dummy/config/routes.rb
988
+ - spec/dummy/config/cable.yml
989
+ - spec/dummy/config/application.rb
990
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
991
+ - spec/dummy/config/initializers/assets.rb
992
+ - spec/dummy/config/initializers/wrap_parameters.rb
993
+ - spec/dummy/config/initializers/cookies_serializer.rb
994
+ - spec/dummy/config/environments/test.rb
995
+ - spec/dummy/config/environments/development.rb
996
+ - spec/dummy/config/puma.rb
997
+ - spec/dummy/config/locales/en.yml
998
+ - spec/dummy/config/rabbit.yml
999
+ - spec/dummy/bin/rake
1000
+ - spec/dummy/bin/bundle
1001
+ - spec/dummy/bin/yarn
1002
+ - spec/dummy/bin/rails
1003
+ - spec/dummy/bin/update
1004
+ - spec/dummy/bin/setup
1005
+ - spec/capybara_helper.rb
1006
+ - spec/controllers/organizations_api_controller_spec.rb
1007
+ - spec/controllers/discussions_controller_spec.rb
1008
+ - spec/controllers/exercise_solutions_controller_spec.rb
1009
+ - spec/controllers/chapters_controller_spec.rb
1010
+ - spec/controllers/exam_registrations_controller_spec.rb
1011
+ - spec/controllers/exam_authorization_requests_controller_spec.rb
1012
+ - spec/controllers/users_controller_spec.rb
1013
+ - spec/controllers/confirmations_controller_spec.rb
1014
+ - spec/controllers/discussions_messages_controller_spec.rb
1015
+ - spec/controllers/certificates_controller_spec.rb
1016
+ - spec/controllers/courses_api_controller_spec.rb
1017
+ - spec/controllers/students_api_controller_spec.rb
1018
+ - spec/controllers/invitations_controller_spec.rb
1019
+ - spec/controllers/api_clients_controller.rb
1020
+ - spec/controllers/guide_progress_controller_spec.rb
1021
+ - spec/controllers/messages_controller_spec.rb
1022
+ - spec/controllers/users_api_controller_spec.rb
1023
+ - spec/login_helper.rb
1024
+ - spec/mailers/user_mailer_spec.rb
1025
+ - spec/mailers/previews/user_mailer_preview.rb
1004
1026
  - spec/features/notifications_flow_spec.rb
1005
- - spec/features/menu_bar_spec.rb
1006
- - spec/features/user_activity_flow_spec.rb
1007
1027
  - spec/features/standard_flow_spec.rb
1028
+ - spec/features/home_private_flow_spec.rb
1029
+ - spec/features/home_public_flow_spec.rb
1030
+ - spec/features/user_activity_flow_spec.rb
1031
+ - spec/features/not_found_private_flow_spec.rb
1032
+ - spec/features/certificate_programs_flow_spec.rb
1033
+ - spec/features/complements_flow_spec.rb
1008
1034
  - spec/features/exams_flow_spec.rb
1009
- - spec/features/discussion_flow_spec.rb
1010
- - spec/features/login_flow_spec.rb
1011
1035
  - spec/features/links_flow_spec.rb
1012
- - spec/features/terms_flow_spec.rb
1013
- - spec/features/progressive_tips_spec.rb
1014
- - spec/features/immersive_redirection_spec.rb
1015
- - spec/features/not_found_public_flow_spec.rb
1036
+ - spec/features/guide_reset_spec.rb
1037
+ - spec/features/exercise_flow_spec.rb
1038
+ - spec/features/runner_assets_spec.rb
1039
+ - spec/features/discussion_flow_spec.rb
1040
+ - spec/features/disable_user_flow_spec.rb
1041
+ - spec/features/dynamic_exam_spec.rb
1042
+ - spec/features/topic_flow_spec.rb
1016
1043
  - spec/features/guides_flow_spec.rb
1044
+ - spec/features/immersive_redirection_spec.rb
1017
1045
  - spec/features/chapters_flow_spec.rb
1018
- - spec/features/dynamic_exam_spec.rb
1019
- - spec/features/home_private_flow_spec.rb
1020
- - spec/features/complements_flow_spec.rb
1021
- - spec/features/disable_user_flow_spec.rb
1022
1046
  - spec/features/disabled_organization_flow_spec.rb
1023
- - spec/features/runner_assets_spec.rb
1024
- - spec/features/home_public_flow_spec.rb
1025
- - spec/features/topic_flow_spec.rb
1026
- - spec/features/guide_reset_spec.rb
1027
- - spec/features/not_found_private_flow_spec.rb
1047
+ - spec/features/lessons_flow_spec.rb
1048
+ - spec/features/not_found_public_flow_spec.rb
1028
1049
  - spec/features/invitations_flow_spec.rb
1029
- - spec/features/certificate_programs_flow_spec.rb
1050
+ - spec/features/login_flow_spec.rb
1051
+ - spec/features/menu_bar_spec.rb
1030
1052
  - spec/features/profile_flow_spec.rb
1031
- - spec/features/lessons_flow_spec.rb
1032
- - spec/features/exercise_flow_spec.rb
1033
- - spec/teaspoon_env.rb
1034
- - spec/login_helper.rb
1035
- - spec/mailers/user_mailer_spec.rb
1036
- - spec/mailers/previews/user_mailer_preview.rb
1037
- - spec/evaluation_helper.rb
1038
- - spec/spec_helper.rb
1053
+ - spec/features/terms_flow_spec.rb
1054
+ - spec/features/progressive_tips_spec.rb
1055
+ - spec/javascripts/speech-bubble-renderer-spec.js
1039
1056
  - spec/javascripts/timeout-spec.js
1040
- - spec/javascripts/sync-mode-spec.js
1041
1057
  - spec/javascripts/kids-button-spec.js
1042
1058
  - spec/javascripts/csrf-token-spec.js
1059
+ - spec/javascripts/spec-helper.js
1060
+ - spec/javascripts/timer-spec.js
1043
1061
  - spec/javascripts/editors-spec.js
1044
- - spec/javascripts/i18n-spec.js
1045
- - spec/javascripts/submissions-store-spec.js
1046
- - spec/javascripts/exercise-spec.js
1047
- - spec/javascripts/speech-bubble-renderer-spec.js
1048
- - spec/javascripts/events-spec.js
1049
- - spec/javascripts/elipsis-spec.js
1062
+ - spec/javascripts/sync-mode-spec.js
1063
+ - spec/javascripts/gamification-spec.js
1050
1064
  - spec/javascripts/upload-spec.js
1051
1065
  - spec/javascripts/results-renderers-spec.js
1052
- - spec/javascripts/timer-spec.js
1053
- - spec/javascripts/spec-helper.js
1054
- - spec/javascripts/bridge-spec.js
1055
1066
  - spec/javascripts/global-spec.js
1056
- - spec/javascripts/gamification-spec.js
1057
- - spec/controllers/users_api_controller_spec.rb
1058
- - spec/controllers/exercise_solutions_controller_spec.rb
1059
- - spec/controllers/guide_progress_controller_spec.rb
1060
- - spec/controllers/exam_registrations_controller_spec.rb
1061
- - spec/controllers/courses_api_controller_spec.rb
1062
- - spec/controllers/organizations_api_controller_spec.rb
1063
- - spec/controllers/discussions_messages_controller_spec.rb
1064
- - spec/controllers/confirmations_controller_spec.rb
1065
- - spec/controllers/exam_authorization_requests_controller_spec.rb
1066
- - spec/controllers/students_api_controller_spec.rb
1067
- - spec/controllers/certificates_controller_spec.rb
1068
- - spec/controllers/chapters_controller_spec.rb
1069
- - spec/controllers/api_clients_controller.rb
1070
- - spec/controllers/discussions_controller_spec.rb
1071
- - spec/controllers/users_controller_spec.rb
1072
- - spec/controllers/invitations_controller_spec.rb
1073
- - spec/controllers/messages_controller_spec.rb
1074
- - spec/api_helper.rb
1075
- - spec/capybara_helper.rb
1076
- - spec/helpers/authors_helper_spec.rb
1077
- - spec/helpers/exercise_input_helper_spec.rb
1078
- - spec/helpers/avatar_helper_spec.rb
1079
- - spec/helpers/certificate_helper_spec.rb
1080
- - spec/helpers/breadcrumbs_helper_spec.rb
1067
+ - spec/javascripts/exercise-spec.js
1068
+ - spec/javascripts/bridge-spec.js
1069
+ - spec/javascripts/i18n-spec.js
1070
+ - spec/javascripts/submissions-store-spec.js
1071
+ - spec/javascripts/elipsis-spec.js
1072
+ - spec/javascripts/events-spec.js
1081
1073
  - spec/helpers/with_choices_spec.rb
1074
+ - spec/helpers/breadcrumbs_helper_spec.rb
1075
+ - spec/helpers/application_helper_spec.rb
1076
+ - spec/helpers/certificate_helper_spec.rb
1082
1077
  - spec/helpers/with_navigation_spec.rb
1083
- - spec/helpers/email_helper_spec.rb
1084
1078
  - spec/helpers/user_activity_helper_spec.rb
1085
1079
  - spec/helpers/page_title_helper_spec.rb
1086
- - spec/helpers/application_helper_spec.rb
1087
- - spec/helpers/icons_helper_spec.rb
1080
+ - spec/helpers/authors_helper_spec.rb
1081
+ - spec/helpers/avatar_helper_spec.rb
1082
+ - spec/helpers/exercise_input_helper_spec.rb
1088
1083
  - spec/helpers/test_results_rendering_spec.rb
1084
+ - spec/helpers/icons_helper_spec.rb
1085
+ - spec/helpers/email_helper_spec.rb
1086
+ - spec/evaluation_helper.rb
1087
+ - spec/spec_helper.rb
1088
+ - spec/teaspoon_env.rb
1089
+ - spec/api_helper.rb