@windward/integrations 0.1.0 → 0.2.0

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 (93) hide show
  1. package/components/Content/Blocks/ExternalIntegration/LtiConsumer.vue +4 -4
  2. package/components/ExternalIntegration/Driver/Lti1p1/ManageConsumers.vue +6 -6
  3. package/components/ExternalIntegration/Driver/Lti1p1/ManageProviders.vue +11 -6
  4. package/components/ExternalIntegration/Driver/Lti1p3/ManageConsumers.vue +8 -8
  5. package/components/ExternalIntegration/Driver/Lti1p3/ManageProviders.vue +11 -6
  6. package/components/FileImport/FileImportMenu.vue +4 -4
  7. package/components/Integration/Driver/ManageAtutor.vue +7 -13
  8. package/components/Integration/Driver/ManageBase.vue +0 -7
  9. package/components/Integration/Driver/ManageResourcespace.vue +6 -0
  10. package/components/Integration/JobLog.vue +4 -3
  11. package/components/Integration/JobTable.vue +2 -2
  12. package/components/Navigation/Items/CourseJobLog.vue +2 -2
  13. package/i18n/en-US/components/integration/driver.ts +2 -2
  14. package/i18n/es-ES/components/content/blocks/external_integration/index.ts +5 -0
  15. package/i18n/es-ES/components/content/blocks/external_integration/lti_consumer.ts +17 -0
  16. package/i18n/es-ES/components/content/blocks/index.ts +5 -0
  17. package/i18n/es-ES/components/content/index.ts +5 -0
  18. package/i18n/es-ES/components/external_integration/driver/lti1p1.ts +14 -0
  19. package/i18n/es-ES/components/external_integration/driver/lti1p3.ts +23 -0
  20. package/i18n/es-ES/components/external_integration/index.ts +31 -0
  21. package/i18n/es-ES/components/external_integration/provider_target.ts +9 -0
  22. package/i18n/es-ES/components/file_import/index.ts +5 -0
  23. package/i18n/es-ES/components/file_import/resourcespace.ts +4 -0
  24. package/i18n/es-ES/components/index.ts +15 -0
  25. package/i18n/es-ES/components/integration/driver.ts +45 -0
  26. package/i18n/es-ES/components/integration/index.ts +9 -0
  27. package/i18n/es-ES/components/integration/job.ts +23 -0
  28. package/i18n/es-ES/components/integration/job_log.ts +24 -0
  29. package/i18n/es-ES/components/navigation/index.ts +5 -0
  30. package/i18n/es-ES/components/navigation/integrations.ts +8 -0
  31. package/i18n/es-ES/components/settings/external_integration/index.ts +5 -0
  32. package/i18n/es-ES/components/settings/external_integration/lti_consumer.ts +10 -0
  33. package/i18n/es-ES/components/settings/index.ts +5 -0
  34. package/i18n/es-ES/index.ts +16 -0
  35. package/i18n/es-ES/modules/index.ts +5 -0
  36. package/i18n/es-ES/pages/course/external_integration/index.ts +6 -0
  37. package/i18n/es-ES/pages/course/index.ts +5 -0
  38. package/i18n/es-ES/pages/importContent.ts +3 -0
  39. package/i18n/es-ES/pages/importCourse.ts +13 -0
  40. package/i18n/es-ES/pages/index.ts +13 -0
  41. package/i18n/es-ES/pages/login/index.ts +5 -0
  42. package/i18n/es-ES/pages/login/lti.ts +21 -0
  43. package/i18n/es-ES/pages/vendor.ts +11 -0
  44. package/i18n/es-ES/shared/content_blocks.ts +8 -0
  45. package/i18n/es-ES/shared/error.ts +10 -0
  46. package/i18n/es-ES/shared/file.ts +5 -0
  47. package/i18n/es-ES/shared/index.ts +15 -0
  48. package/i18n/es-ES/shared/menu.ts +3 -0
  49. package/i18n/es-ES/shared/permission.ts +31 -0
  50. package/i18n/es-ES/shared/settings.ts +5 -0
  51. package/i18n/index.ts +11 -0
  52. package/i18n/sv-SE/components/content/blocks/external_integration/index.ts +5 -0
  53. package/i18n/sv-SE/components/content/blocks/external_integration/lti_consumer.ts +17 -0
  54. package/i18n/sv-SE/components/content/blocks/index.ts +5 -0
  55. package/i18n/sv-SE/components/content/index.ts +5 -0
  56. package/i18n/sv-SE/components/external_integration/driver/lti1p1.ts +14 -0
  57. package/i18n/sv-SE/components/external_integration/driver/lti1p3.ts +22 -0
  58. package/i18n/sv-SE/components/external_integration/index.ts +31 -0
  59. package/i18n/sv-SE/components/external_integration/provider_target.ts +9 -0
  60. package/i18n/sv-SE/components/file_import/index.ts +5 -0
  61. package/i18n/sv-SE/components/file_import/resourcespace.ts +4 -0
  62. package/i18n/sv-SE/components/index.ts +15 -0
  63. package/i18n/sv-SE/components/integration/driver.ts +44 -0
  64. package/i18n/sv-SE/components/integration/index.ts +9 -0
  65. package/i18n/sv-SE/components/integration/job.ts +23 -0
  66. package/i18n/sv-SE/components/integration/job_log.ts +24 -0
  67. package/i18n/sv-SE/components/navigation/index.ts +5 -0
  68. package/i18n/sv-SE/components/navigation/integrations.ts +8 -0
  69. package/i18n/sv-SE/components/settings/external_integration/index.ts +5 -0
  70. package/i18n/sv-SE/components/settings/external_integration/lti_consumer.ts +10 -0
  71. package/i18n/sv-SE/components/settings/index.ts +5 -0
  72. package/i18n/sv-SE/index.ts +16 -0
  73. package/i18n/sv-SE/modules/index.ts +5 -0
  74. package/i18n/sv-SE/pages/course/external_integration/index.ts +6 -0
  75. package/i18n/sv-SE/pages/course/index.ts +5 -0
  76. package/i18n/sv-SE/pages/importContent.ts +3 -0
  77. package/i18n/sv-SE/pages/importCourse.ts +13 -0
  78. package/i18n/sv-SE/pages/index.ts +13 -0
  79. package/i18n/sv-SE/pages/login/index.ts +5 -0
  80. package/i18n/sv-SE/pages/login/lti.ts +21 -0
  81. package/i18n/sv-SE/pages/vendor.ts +11 -0
  82. package/i18n/sv-SE/shared/content_blocks.ts +8 -0
  83. package/i18n/sv-SE/shared/error.ts +9 -0
  84. package/i18n/sv-SE/shared/file.ts +5 -0
  85. package/i18n/sv-SE/shared/index.ts +15 -0
  86. package/i18n/sv-SE/shared/menu.ts +3 -0
  87. package/i18n/sv-SE/shared/permission.ts +31 -0
  88. package/i18n/sv-SE/shared/settings.ts +5 -0
  89. package/package.json +7 -2
  90. package/pages/admin/vendors.vue +5 -5
  91. package/plugin.js +3 -4
  92. package/test/Feature/LocaleKeys.spec.js +9 -0
  93. package/test/__mocks__/componentsMock.js +12 -0
@@ -0,0 +1,10 @@
1
+ export default {
2
+ title: 'titel',
3
+ instructions: 'instruktioner',
4
+ launch_type: 'Starttyp',
5
+ launch_type_new_window: 'Nytt fönster',
6
+ launch_type_inline_frame: 'Inline Frame',
7
+ launch_type_modal: 'Modal',
8
+ link_select: 'Välj en länk:',
9
+ link_disabled: 'Länk inaktiverad',
10
+ }
@@ -0,0 +1,5 @@
1
+ import externalIntegration from './external_integration'
2
+
3
+ export default {
4
+ external_integration: externalIntegration,
5
+ }
@@ -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
+ integrations: {
9
+ name: 'Windward Plugin-integrationer',
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,6 @@
1
+ export default {
2
+ title: 'Externa integrationer',
3
+ lti_1p1: 'LTI 1.1',
4
+ lti_1p3: 'LTI 1.3',
5
+ scorm_1p2: 'SCORM 1.2',
6
+ }
@@ -0,0 +1,5 @@
1
+ import externalIntegration from './external_integration'
2
+
3
+ export default {
4
+ external_integration: externalIntegration,
5
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ title: 'Importera innehåll',
3
+ }
@@ -0,0 +1,13 @@
1
+ export default {
2
+ title: 'Importera kurs',
3
+ recent_import_title: 'Senaste importer',
4
+ select_vendor: 'Välj en leverantör',
5
+ select_remote_organization: 'Välj en fjärrorganisation',
6
+ select_remote_course: 'Välj en fjärrkurs',
7
+ select_remote_content: 'Välj individuella innehållssidor',
8
+ start_import: 'Starta import',
9
+ import_started: 'Import påbörjad',
10
+ notify: 'Meddela mig när det är klart',
11
+ no_vendors:
12
+ 'Det finns inga konfigurerade leverantörer. Gå tillbaka och konfigurera en integrationsleverantör',
13
+ }
@@ -0,0 +1,13 @@
1
+ import vendor from './vendor'
2
+ import importCourse from './importCourse'
3
+ import importContent from './importContent'
4
+ import login from './login'
5
+ import course from './course'
6
+
7
+ export default {
8
+ vendor,
9
+ import_course: importCourse,
10
+ import_content: importContent,
11
+ login,
12
+ course,
13
+ }
@@ -0,0 +1,5 @@
1
+ import lti from './lti'
2
+
3
+ export default {
4
+ lti,
5
+ }
@@ -0,0 +1,21 @@
1
+ export default {
2
+ lti_error: 'LTI-fel',
3
+ launch_error: 'LTI-länken misslyckades att avfyra',
4
+ missing_title: 'Fälten nedan saknas:',
5
+ error_title: 'Fel nedan uppstod:',
6
+ error: {
7
+ unknown: 'Ett okänt kommunikationsfel inträffade',
8
+ organization: 'Ogiltig organisation',
9
+ tool: 'Ogiltigt verktygs-id',
10
+ tool_organization: 'Detta verktyg tillhör inte denna organisation',
11
+ oauth: 'Ogiltig OAuth. Kontrollera din nyckel och hemlighet.',
12
+ },
13
+ missing: {
14
+ context_label:
15
+ 'Kontextetikettfältet `context_label` saknas eller är ogiltigt.',
16
+ resource_link_title:
17
+ 'Resurslänktiteln `resurslänktitel` saknas eller är ogiltig.',
18
+ lis_person_contact_email_primary:
19
+ 'Användarens e-postmeddelande saknas och ett anonymt e-postmeddelande kunde inte genereras.',
20
+ },
21
+ }
@@ -0,0 +1,11 @@
1
+ export default {
2
+ title: 'Integrationer',
3
+ vendor_disabled: 'Denna leverantör är inte tillgänglig för integrationer',
4
+ vendor_not_configured: 'Denna integrationsleverantör är inte konfigurerad',
5
+ organization_integration_disabled:
6
+ 'Denna organisationsintegrering är inaktiverad',
7
+ vendor_name: 'Vendor Name',
8
+ configured: 'Integration Configured',
9
+ enabled: 'Integration Enabled',
10
+ manage: 'Hantera integration',
11
+ }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ title: {
3
+ lti_consumer: 'LTI Link',
4
+ },
5
+ grouping: {
6
+ integrations: 'Integrationer',
7
+ },
8
+ }
@@ -0,0 +1,9 @@
1
+ export default {
2
+ save_failed: 'Det gick inte att spara den här konfigurationen',
3
+ load_remote_organization_failed: 'Kunde inte ladda fjärrorganisationer',
4
+ load_remote_course_failed: 'Kunde inte ladda fjärrbanor',
5
+ load_remote_content_failed: 'Kunde inte ladda fjärrinnehåll',
6
+ connect_success: 'Ansluten framgångsrikt',
7
+ connect_fail: 'Det gick inte att ansluta ',
8
+ unknown: 'Ett okänt fel inträffade vid försök att ansluta',
9
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ import_resourcespace: 'Importera från Resourcespace',
3
+ import_google_drive: 'Importera från Google Drive',
4
+ import_dropbox: 'Importera från Dropbox',
5
+ }
@@ -0,0 +1,15 @@
1
+ import contentBlocks from './content_blocks'
2
+ import settings from './settings'
3
+ import menu from './menu'
4
+ import permission from './permission'
5
+ import file from './file'
6
+ import error from './error'
7
+
8
+ export default {
9
+ content_blocks: contentBlocks,
10
+ settings,
11
+ menu,
12
+ permission,
13
+ file,
14
+ error,
15
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ integrations: 'Integrationer',
3
+ }
@@ -0,0 +1,31 @@
1
+ export default {
2
+ type_title: {
3
+ 'plugin->windward->integrations->vendor': 'Integrationsleverantörer',
4
+ 'plugin->windward->integrations->jobs': 'Integrationsjobb',
5
+ 'plugin->windward->integrations->organization->jobs':
6
+ 'Organisationsintegrationsjobb',
7
+ 'plugin->windward->integrations->organization->integration':
8
+ 'Organisationsintegrationer',
9
+ 'plugin->windward->integrations->course': 'Kursintegrationer',
10
+ 'plugin->windward->integrations->content': 'Innehållsintegrationer',
11
+ 'plugin->windward->integrations->course->externalIntegration':
12
+ 'Externa integrationer (LTI / SCORM / etc)',
13
+ },
14
+
15
+ type_description: {
16
+ 'plugin->windward->integrations->vendor':
17
+ 'Få åtkomst till alla integrationsleverantörer över hela systemet',
18
+ 'plugin->windward->integrations->jobs':
19
+ 'Få tillgång till integrationsjobb',
20
+ 'plugin->windward->integrations->organization->jobs':
21
+ 'Få tillgång till integrationsjobb i den nuvarande organisationen',
22
+ 'plugin->windward->integrations->organization->integration':
23
+ 'Få åtkomst till och hantera integrationer i den nuvarande organisationen',
24
+ 'plugin->windward->integrations->course':
25
+ 'Åtkomst till och hantera kursimport',
26
+ 'plugin->windward->integrations->content':
27
+ 'Åtkomst till och hantera innehållsimport',
28
+ 'plugin->windward->integrations->course->externalIntegration':
29
+ 'Få åtkomst till och hantera externa integrationer som LTI och SCORM',
30
+ },
31
+ }
@@ -0,0 +1,5 @@
1
+ export default {
2
+ title: {
3
+ lti_consumer: 'LTI konsument',
4
+ },
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@windward/integrations",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Windward UI Plugin Integrations for 3rd Party Systems",
5
5
  "main": "plugin.js",
6
6
  "scripts": {
@@ -12,7 +12,12 @@
12
12
  "type": "git",
13
13
  "url": "git+ssh://git@bitbucket.org:mindedge/windward-ui-plugin-integrations.git"
14
14
  },
15
- "author": "Jacob Rogaishio",
15
+ "author": "Jacob Rogaishio <jrogaishio@mindedge.com>",
16
+ "contributors": [
17
+ "Jacob Rogaishio <jrogaishio@mindedge.com>",
18
+ "Ted Celestin <tcelestin@mindedge.com>",
19
+ "Christina Passafaro <cpassafaro@mindedge.com>"
20
+ ],
16
21
  "license": "MIT",
17
22
  "homepage": "https://bitbucket.org/mindedge/windward-ui-plugin-integrations#readme",
18
23
  "dependencies": {
@@ -125,7 +125,7 @@
125
125
  </template>
126
126
  </v-simple-table>
127
127
 
128
- <Dialog v-model="manageDialog" :trigger="false" action-save>
128
+ <DialogBox v-model="manageDialog" :trigger="false" action-save>
129
129
  <template #title>{{
130
130
  $t(
131
131
  'windward.integrations.components.integration.driver.' +
@@ -142,7 +142,7 @@
142
142
  @update:integration="onUpdateIntegration"
143
143
  ></component>
144
144
  </template>
145
- </Dialog>
145
+ </DialogBox>
146
146
  </v-col>
147
147
  </v-row>
148
148
  </div>
@@ -151,14 +151,14 @@
151
151
  <script>
152
152
  import _ from 'lodash'
153
153
  import { mapGetters } from 'vuex'
154
- import Breadcrumbs from '~/components/Breadcrumbs.vue'
155
- import Dialog from '~/components/Dialog.vue'
156
154
  import Organization from '../../models/Organization'
157
155
  import IntegrationJobTable from '../../components/Integration/JobTable.vue'
156
+ import Breadcrumbs from '~/components/Breadcrumbs.vue'
157
+ import DialogBox from '~/components/DialogBox.vue'
158
158
 
159
159
  export default {
160
160
  name: 'PluginIntegrationsAdminVendorsPage',
161
- components: { Dialog, IntegrationJobTable, Breadcrumbs },
161
+ components: { DialogBox, IntegrationJobTable, Breadcrumbs },
162
162
  layout: 'authenticated',
163
163
  meta: {
164
164
  privilege: {
package/plugin.js CHANGED
@@ -1,4 +1,5 @@
1
- import enUS from './i18n/en-US'
1
+ import locales from './i18n'
2
+
2
3
  import AdminVendorsPage from './pages/admin/vendors.vue'
3
4
  import AdminImportCoursePage from './pages/admin/importCourse.vue'
4
5
  import ImportContentPage from './pages/course/importContent.vue'
@@ -28,9 +29,7 @@ export default {
28
29
  onLoad: (_page) => {},
29
30
  onContent: () => {},
30
31
  },
31
- i18n: {
32
- 'en-US': enUS,
33
- },
32
+ i18n: locales.messages,
34
33
  pages: [
35
34
  {
36
35
  page: 'admin-integrations',
@@ -0,0 +1,9 @@
1
+ import localeTest from '@windward/core/test/locales'
2
+ import locales from '../../i18n'
3
+
4
+ describe('LocaleKeys', () => {
5
+ test('Confirm that all localizations are equal aka not missing keys between them', () => {
6
+ const messages = locales.messages
7
+ localeTest.test(messages)
8
+ })
9
+ })
@@ -11,6 +11,18 @@ jest.mock(
11
11
  { virtual: true }
12
12
  )
13
13
 
14
+ jest.mock(
15
+ '~/components/Form',
16
+ () => {
17
+ return {
18
+ data() {
19
+ return { validation: {} }
20
+ },
21
+ }
22
+ },
23
+ { virtual: true }
24
+ )
25
+
14
26
  jest.mock(
15
27
  '~/components/Breadcrumbs.vue',
16
28
  () => {