@windward/core 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/README.md +2 -1
  2. package/components/Content/Blocks/ClickableIcons.vue +10 -1
  3. package/components/Content/Blocks/Feedback.vue +12 -4
  4. package/components/Content/Blocks/FeedbackTemplates/FeedbackQuestionOpenResponse.vue +10 -9
  5. package/components/Navigation/Items/AskTheExpert.vue +173 -0
  6. package/components/Settings/ClickableIconsSettings.vue +10 -5
  7. package/components/utils/ContentViewer.vue +15 -4
  8. package/components/utils/FillInBlank/FillInBlankInput.vue +208 -0
  9. package/components/utils/FillInBlank/FillInTheBlanksManager.vue +98 -0
  10. package/components/utils/MathExpressionEditor.vue +8 -6
  11. package/components/utils/TinyMCEWrapper.vue +48 -8
  12. package/components/utils/assets/tinymce/css/content.scss +9 -0
  13. package/components/utils/glossary/CourseGlossary.vue +12 -8
  14. package/components/utils/glossary/CourseGlossaryForm.vue +24 -5
  15. package/helpers/FillInBlankHelper.ts +55 -0
  16. package/helpers/GlossaryHelper.ts +4 -4
  17. package/helpers/tinymce/plugin.ts +99 -4
  18. package/i18n/en-US/components/content/blocks/feedback.ts +3 -0
  19. package/i18n/en-US/components/index.ts +0 -1
  20. package/i18n/en-US/components/navigation/ask_the_expert.ts +11 -0
  21. package/i18n/en-US/components/navigation/index.ts +2 -0
  22. package/i18n/en-US/components/utils/FillInBlank/FillInBlankInput.ts +13 -0
  23. package/i18n/en-US/components/utils/FillInBlank/FillInTheBlanksManager.ts +11 -0
  24. package/i18n/en-US/components/utils/FillInBlank/index.ts +6 -0
  25. package/i18n/en-US/components/utils/index.ts +2 -1
  26. package/i18n/en-US/components/utils/tiny_mce_wrapper.ts +1 -0
  27. package/i18n/en-US/shared/menu.ts +1 -0
  28. package/i18n/es-ES/components/content/blocks/feedback.ts +29 -0
  29. package/i18n/es-ES/components/content/blocks/image.ts +5 -0
  30. package/i18n/es-ES/components/content/blocks/index.ts +15 -0
  31. package/i18n/es-ES/components/content/blocks/tab.ts +4 -0
  32. package/i18n/es-ES/components/content/blocks/table.ts +4 -0
  33. package/i18n/es-ES/components/content/blocks/user_upload.ts +13 -0
  34. package/i18n/es-ES/components/content/blocks/video.ts +55 -0
  35. package/i18n/es-ES/components/content/index.ts +5 -0
  36. package/i18n/es-ES/components/index.ts +12 -0
  37. package/i18n/es-ES/components/navigation/ask_the_expert.ts +11 -0
  38. package/i18n/es-ES/components/navigation/image.ts +4 -0
  39. package/i18n/es-ES/components/navigation/index.ts +7 -0
  40. package/i18n/es-ES/components/navigation/user_upload.ts +3 -0
  41. package/i18n/es-ES/components/settings/clickable_icon.ts +10 -0
  42. package/i18n/es-ES/components/settings/image.ts +1 -0
  43. package/i18n/es-ES/components/settings/index.ts +13 -0
  44. package/i18n/es-ES/components/settings/text_editor.ts +7 -0
  45. package/i18n/es-ES/components/settings/user_upload.ts +11 -0
  46. package/i18n/es-ES/components/settings/video.ts +13 -0
  47. package/i18n/es-ES/components/utils/index.ts +5 -0
  48. package/i18n/es-ES/components/utils/tiny_mce_wrapper.ts +18 -0
  49. package/i18n/es-ES/index.ts +16 -0
  50. package/i18n/es-ES/modules/index.ts +5 -0
  51. package/i18n/es-ES/pages/glossary.ts +7 -0
  52. package/i18n/es-ES/pages/index.ts +7 -0
  53. package/i18n/es-ES/pages/user_upload.ts +3 -0
  54. package/i18n/es-ES/shared/content_blocks.ts +20 -0
  55. package/i18n/es-ES/shared/index.ts +11 -0
  56. package/i18n/es-ES/shared/menu.ts +3 -0
  57. package/i18n/es-ES/shared/permission.ts +15 -0
  58. package/i18n/es-ES/shared/settings.ts +16 -0
  59. package/i18n/sv-SE/components/content/blocks/feedback.ts +29 -0
  60. package/i18n/sv-SE/components/content/blocks/image.ts +5 -0
  61. package/i18n/sv-SE/components/content/blocks/index.ts +15 -0
  62. package/i18n/sv-SE/components/content/blocks/tab.ts +4 -0
  63. package/i18n/sv-SE/components/content/blocks/table.ts +4 -0
  64. package/i18n/sv-SE/components/content/blocks/user_upload.ts +13 -0
  65. package/i18n/sv-SE/components/content/blocks/video.ts +53 -0
  66. package/i18n/sv-SE/components/content/index.ts +5 -0
  67. package/i18n/sv-SE/components/index.ts +12 -0
  68. package/i18n/sv-SE/components/navigation/ask_the_expert.ts +11 -0
  69. package/i18n/sv-SE/components/navigation/image.ts +4 -0
  70. package/i18n/sv-SE/components/navigation/index.ts +7 -0
  71. package/i18n/sv-SE/components/navigation/user_upload.ts +3 -0
  72. package/i18n/sv-SE/components/settings/clickable_icon.ts +10 -0
  73. package/i18n/sv-SE/components/settings/image.ts +1 -0
  74. package/i18n/sv-SE/components/settings/index.ts +13 -0
  75. package/i18n/sv-SE/components/settings/text_editor.ts +7 -0
  76. package/i18n/sv-SE/components/settings/user_upload.ts +11 -0
  77. package/i18n/sv-SE/components/settings/video.ts +13 -0
  78. package/i18n/sv-SE/components/utils/index.ts +5 -0
  79. package/i18n/sv-SE/components/utils/tiny_mce_wrapper.ts +18 -0
  80. package/i18n/sv-SE/index.ts +16 -0
  81. package/i18n/sv-SE/modules/index.ts +5 -0
  82. package/i18n/sv-SE/pages/glossary.ts +7 -0
  83. package/i18n/sv-SE/pages/index.ts +7 -0
  84. package/i18n/sv-SE/pages/user_upload.ts +3 -0
  85. package/i18n/sv-SE/shared/content_blocks.ts +20 -0
  86. package/i18n/sv-SE/shared/index.ts +11 -0
  87. package/i18n/sv-SE/shared/menu.ts +3 -0
  88. package/i18n/sv-SE/shared/permission.ts +15 -0
  89. package/i18n/sv-SE/shared/settings.ts +15 -0
  90. package/package.json +1 -1
  91. package/plugin.js +25 -0
@@ -0,0 +1,13 @@
1
+ import image from './image'
2
+ import user_upload from './user_upload'
3
+ import text_editor from './text_editor'
4
+ import video from './video'
5
+ import clickable_icon from './clickable_icon'
6
+
7
+ export default {
8
+ image,
9
+ user_upload,
10
+ text_editor,
11
+ video,
12
+ clickable_icon
13
+ }
@@ -0,0 +1,7 @@
1
+ export default {
2
+ glossary: 'Ordlista',
3
+ Text_editor: 'Editor',
4
+ verified_terms: 'verifierade villkor',
5
+ unverified_terms: 'overifierade termer',
6
+ no_glossary: 'Ingen ordlista Termer upptäckt',
7
+ }
@@ -0,0 +1,11 @@
1
+ export default {
2
+ accept_multiple: 'Flera filer',
3
+ accept_types: 'Tillåtna filtyper ',
4
+ types: {
5
+ all: 'Alla filtyper',
6
+ all_image: 'Bilder - .jpg, .png, .gif',
7
+ all_word: 'Dokument - .doc och .docx',
8
+ all_excel: 'Kalkylblad - .xls och .xlsx',
9
+ all_zip: 'Komprimerad - .zip',
10
+ },
11
+ }
@@ -0,0 +1,13 @@
1
+ export default {
2
+ title: 'Videotitel',
3
+ sources: 'Källor',
4
+ playback: 'Uppspelning',
5
+ no_sources: 'Inga källor konfigurerade',
6
+ default_filename: 'Video',
7
+ playlist: 'Videos in Playlist',
8
+ playlist_name: 'Namn i spellista',
9
+ playlist_name_source_required:
10
+ 'Välj en källa innan du namnger detta spellistaobjekt',
11
+ playlist_add: 'Lägg till en spellista Artikel',
12
+ playlist_remove: 'Ta bort detta spellistobjekt',
13
+ }
@@ -0,0 +1,5 @@
1
+ import tiny_mce_wrapper from './tiny_mce_wrapper'
2
+
3
+ export default {
4
+ tiny_mce_wrapper,
5
+ }
@@ -0,0 +1,18 @@
1
+ export default {
2
+ glossary: 'Ordlista',
3
+ term: 'Ordlista Term',
4
+ alternate_forms: 'Alternativa formulär',
5
+ definition: 'definition',
6
+ related_terms: 'relaterade termer',
7
+ table: {
8
+ default: 'Standardtabell',
9
+ default_white_line: 'Standard tabell vita linjer',
10
+ excel: 'Excel-tabell',
11
+ ledger: 'Ledger Table',
12
+ ledger_right: 'Right Aligned Ledger Tabell',
13
+ ledger_left: 'Vänsterjusterad reskontratabell',
14
+ project_management: 'Project Management',
15
+ t_chart: 'T Chart',
16
+ subject_report: 'Ämnesrapport',
17
+ },
18
+ }
@@ -0,0 +1,16 @@
1
+ import pages from './pages/index'
2
+ import components from './components/index'
3
+ import shared from './shared/index'
4
+ import modules from './modules/index'
5
+
6
+ export default {
7
+ windward: {
8
+ core: {
9
+ name: 'Windward Core',
10
+ pages,
11
+ components,
12
+ shared,
13
+ modules,
14
+ },
15
+ },
16
+ }
@@ -0,0 +1,5 @@
1
+ // import example from './example'
2
+
3
+ export default {
4
+ // example,
5
+ }
@@ -0,0 +1,7 @@
1
+ export default {
2
+ title: 'Kursordlista',
3
+ term: 'Term',
4
+ related_term: 'Relaterad term',
5
+ definition: 'definition',
6
+ alternate_forms: 'Alternativa formulär',
7
+ }
@@ -0,0 +1,7 @@
1
+ import user_upload from './user_upload'
2
+ import glossary from './glossary'
3
+
4
+ export default {
5
+ user_upload,
6
+ glossary,
7
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ title: 'User Upload Overview',
3
+ }
@@ -0,0 +1,20 @@
1
+ export default {
2
+ title: {
3
+ assessment: 'Bedömning',
4
+ video: 'Video / Audio',
5
+ default_table: 'Standardtabell',
6
+ tab: 'Tab',
7
+ rich_text: 'Rich Text',
8
+ math: 'Math',
9
+ accordion: 'Accordion',
10
+ image: 'Bild',
11
+ user_upload: 'User Upload',
12
+ clickable_icons: 'Klickbara ikoner',
13
+ feedback: 'Feedback',
14
+ },
15
+ grouping: {
16
+ basic: 'Basic Components',
17
+ multimedia: 'Multimedia Files',
18
+ placeholder: 'Skriv in text här',
19
+ },
20
+ }
@@ -0,0 +1,11 @@
1
+ import content_blocks from './content_blocks'
2
+ import settings from './settings'
3
+ import menu from './menu'
4
+ import permission from './permission'
5
+
6
+ export default {
7
+ content_blocks,
8
+ settings,
9
+ menu,
10
+ permission,
11
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ course_glossary: 'Kursordlista',
3
+ }
@@ -0,0 +1,15 @@
1
+ export default {
2
+ type_title: {
3
+ 'plugin->windward->core->organization->course->user->feedback':
4
+ 'Feedback access for the current user',
5
+ 'plugin->windward->core->organization->course->user->userUpload':
6
+ 'User upload block access for the current user',
7
+ },
8
+
9
+ type_description: {
10
+ 'plugin->windward->core->organization->course->user->feedback':
11
+ 'The current users access to the feedback block',
12
+ 'plugin->windward->core->organization->course->user->userUpload':
13
+ 'The current users access to the user upload block',
14
+ },
15
+ }
@@ -0,0 +1,15 @@
1
+ export default {
2
+ title: {
3
+ assessment: 'Bedömningsinställningar',
4
+ image: 'Bildinställningar',
5
+ user_upload: 'User Upload Settings',
6
+ tab_settings: 'Flikinställningar',
7
+ text_editor: 'Textredigeringsinställningar',
8
+ clickable_icons: 'Inställningar för klickbara ikoner',
9
+ accordion: 'Accordion Settings',
10
+ video: 'Videoinställningar',
11
+ table: 'Tabellinställningar',
12
+ math: 'Matematiska inställningar',
13
+ feedback: 'Feedback-inställningar',
14
+ },
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/core",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Windward UI Core Plugins",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
package/plugin.js CHANGED
@@ -17,6 +17,7 @@ import UserUpload from './components/Content/Blocks/UserUpload'
17
17
  import GlossaryPage from './pages/glossary.vue'
18
18
  import CourseGlossaryToolNav from './components/Navigation/Items/CourseGlossaryToolNav.vue'
19
19
  import GlossaryNav from './components/Navigation/Items/GlossaryNav.vue'
20
+ import AskTheExpert from './components/Navigation/Items/AskTheExpert.vue'
20
21
  // Entrypoint for npm
21
22
  import ImageSettings from './components/Settings/ImageSettings.vue'
22
23
  import UserUploadSettings from './components/Settings/UserUploadSettings.vue'
@@ -30,6 +31,8 @@ import UserUploadPage from './pages/userUpload.vue'
30
31
  import GlossaryToolTip from './components/utils/glossary/GlossaryToolTip.vue'
31
32
  import TextEditorSettings from './components/Settings/TextEditorSettings.vue'
32
33
  import MathSettings from './components/Settings/MathSettings.vue'
34
+ import FillInTheBlanks from './components/utils/FillInBlank/FillInTheBlanksManager.vue'
35
+ import FillInBlankInput from './components/utils/FillInBlank/FillInBlankInput.vue'
33
36
 
34
37
  export default {
35
38
  name: 'windward.core.name',
@@ -75,6 +78,14 @@ export default {
75
78
  tag: 'core-math-expression-editor',
76
79
  template: MathExpressionEditor,
77
80
  },
81
+ {
82
+ tag: 'core-fill-blanks-tool',
83
+ template: FillInTheBlanks,
84
+ },
85
+ {
86
+ tag: 'core-fill-in-blank-input',
87
+ template: FillInBlankInput,
88
+ },
78
89
  ],
79
90
  menu: [
80
91
  {
@@ -99,6 +110,20 @@ export default {
99
110
  },
100
111
  },
101
112
  },
113
+ {
114
+ tag: 'core-ask-the-expert',
115
+ i18n: 'windward.core.shared.menu.ask_the_expert',
116
+ template: AskTheExpert,
117
+ icon: 'mdi-head-question-outline',
118
+ path: '/course/{course.id}',
119
+ context: ['course'],
120
+ display: ['course_tools'],
121
+ permissions: {
122
+ 'windward.organization.course.content': {
123
+ readable: true,
124
+ },
125
+ },
126
+ },
102
127
  {
103
128
  tag: 'core-course-glossary-tool-nav',
104
129
  page: 'course glossary',