adapt-authoring-ui 1.5.4 → 1.5.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.
- package/adapt-authoring.json +1 -3
- package/app/modules/editor/contentObject/views/editorMenuItemView.js +4 -4
- package/app/modules/frameworkImport/templates/frameworkImportSummary.hbs +15 -14
- package/docs/ui.md +38 -0
- package/package.json +1 -1
- package/docs/migrating-from-legacy.md +0 -19
- package/docs/ui-extensions.md +0 -15
package/adapt-authoring.json
CHANGED
|
@@ -85,10 +85,10 @@ define(function(require){
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Lang string keys used (for at-langcheck):
|
|
88
|
-
* - app.confirmdeletemenu
|
|
89
|
-
* - app.confirmdeletepage
|
|
90
|
-
* - app.deleteitemmenu
|
|
91
|
-
* - app.deleteitempage
|
|
88
|
+
* - 'app.confirmdeletemenu'
|
|
89
|
+
* - 'app.confirmdeletepage'
|
|
90
|
+
* - 'app.deleteitemmenu'
|
|
91
|
+
* - 'app.deleteitempage'
|
|
92
92
|
*/
|
|
93
93
|
Origin.Notify.confirm({
|
|
94
94
|
type: 'warning',
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
<p>Find below a summary of the course being imported.</p>
|
|
11
11
|
<div class="statusReport">
|
|
12
12
|
{{! Lang string keys used (for at-langcheck):
|
|
13
|
-
- app.import.status.ASSETS_IMPORTED_SUCCESSFULLY
|
|
14
|
-
- app.import.status.CONTENT_IMPORTED
|
|
15
|
-
- app.import.status.INSTALL_PLUGIN
|
|
16
|
-
- app.import.status.INSTALLED
|
|
17
|
-
- app.import.status.INVALID
|
|
18
|
-
- app.import.status.INVALID_PLUGIN_VERSION
|
|
19
|
-
- app.import.status.MANAGED_PLUGIN_UPDATE_DISABLED
|
|
20
|
-
- app.import.status.MIGRATE_CONTENT
|
|
21
|
-
- app.import.status.PLUGIN_INSTALL_MIGRATING
|
|
22
|
-
- app.import.status.NO_CHANGE
|
|
23
|
-
- app.import.status.OLDER
|
|
24
|
-
- app.import.status.TAGS_IMPORTED
|
|
25
|
-
- app.import.status.UPDATE_BLOCKED
|
|
26
|
-
- app.import.status.UPDATED
|
|
13
|
+
- 'app.import.status.ASSETS_IMPORTED_SUCCESSFULLY'
|
|
14
|
+
- 'app.import.status.CONTENT_IMPORTED'
|
|
15
|
+
- 'app.import.status.INSTALL_PLUGIN'
|
|
16
|
+
- 'app.import.status.INSTALLED'
|
|
17
|
+
- 'app.import.status.INVALID'
|
|
18
|
+
- 'app.import.status.INVALID_PLUGIN_VERSION'
|
|
19
|
+
- 'app.import.status.MANAGED_PLUGIN_UPDATE_DISABLED'
|
|
20
|
+
- 'app.import.status.MIGRATE_CONTENT'
|
|
21
|
+
- 'app.import.status.PLUGIN_INSTALL_MIGRATING'
|
|
22
|
+
- 'app.import.status.NO_CHANGE'
|
|
23
|
+
- 'app.import.status.OLDER'
|
|
24
|
+
- 'app.import.status.TAGS_IMPORTED'
|
|
25
|
+
- 'app.import.status.UPDATE_BLOCKED'
|
|
26
|
+
- 'app.import.status.UPDATED'
|
|
27
27
|
}}
|
|
28
28
|
{{> part_frameworkImportStatusMessages type='error' messages=statusReport.error heading='Errors'}}
|
|
29
29
|
{{> part_frameworkImportStatusMessages type='warn' messages=statusReport.warn heading='Warnings'}}
|
|
@@ -54,3 +54,4 @@
|
|
|
54
54
|
</table>
|
|
55
55
|
</div>
|
|
56
56
|
</div>
|
|
57
|
+
|
package/docs/ui.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Working with the UI
|
|
2
|
+
|
|
3
|
+
## Extending the UI
|
|
4
|
+
|
|
5
|
+
The UI can be extended easily from an Adapt authoring tool module.
|
|
6
|
+
|
|
7
|
+
### Register your plugin
|
|
8
|
+
Register your UI plugin by calling the [UIModule#addUiPlugin](https://tomtaylor.codes/ls/jsdoc3/UIModule.html#addUiPlugin) function from your own module's [init](https://tomtaylor.codes/ls/jsdoc3/AbstractModule.html#init) function, which ensures that your plugin code is included in the build of the front-end app.
|
|
9
|
+
|
|
10
|
+
Any files found in this folder will be included in the app build process, so make sure you include all front-end code, Handlebars templates and LESS/CSS in here.
|
|
11
|
+
|
|
12
|
+
### Define language strings
|
|
13
|
+
Add any translated language strings to the `/lang` folder in the root of your module
|
|
14
|
+
|
|
15
|
+
### Resources
|
|
16
|
+
|
|
17
|
+
- **GitHub template**: You can use the following GitHub template repository as a starting point:
|
|
18
|
+
[adapt-security/adapt-authoring-uiplugintemplate](https://github.com/adapt-security/adapt-authoring-uiplugintemplate)
|
|
19
|
+
|
|
20
|
+
## Migrating from legacy
|
|
21
|
+
|
|
22
|
+
> During development, set `adapt-authoring-ui.isProduction` to `false` in your config file for easier debugging (all .js files are served directly, rather using than the minified adapt.js file)
|
|
23
|
+
|
|
24
|
+
### Changes
|
|
25
|
+
|
|
26
|
+
#### Permissions
|
|
27
|
+
|
|
28
|
+
The permissions mechanism has been completely rewritten to use permissions 'scopes' which are human-readable strings. Permissions utilities are now accessed directly from the SessionModel.
|
|
29
|
+
|
|
30
|
+
- `Origin.permissions.hasPermission` => `Origin.sessionModel.hasScopes`
|
|
31
|
+
- `hasPermission` => `ifHasScopes`
|
|
32
|
+
|
|
33
|
+
#### APIs
|
|
34
|
+
|
|
35
|
+
##### TODO
|
|
36
|
+
|
|
37
|
+
#### Language strings
|
|
38
|
+
Language strings are now served directly from the back-end server, and therefore need to be stored in the root `lang` folder of your authoring tool module. The server will need to be restarted for any changes to these to be recognised.
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Migrating from legacy
|
|
2
|
-
|
|
3
|
-
> During development, set `adapt-authoring-ui.isProduction` to `false` in your config file for easier debugging (all .js files are served directly, rather using than the minified adapt.js file)
|
|
4
|
-
|
|
5
|
-
## Changes
|
|
6
|
-
|
|
7
|
-
### Permissions
|
|
8
|
-
|
|
9
|
-
The permissions mechanism has been completely rewritten to use permissions 'scopes' which are human-readable strings. Permissions utilities are now accessed directly from the SessionModel.
|
|
10
|
-
|
|
11
|
-
- `Origin.permissions.hasPermission` => `Origin.sessionModel.hasScopes`
|
|
12
|
-
- `hasPermission` => `ifHasScopes`
|
|
13
|
-
|
|
14
|
-
### APIs
|
|
15
|
-
|
|
16
|
-
#### TODO
|
|
17
|
-
|
|
18
|
-
### Language strings
|
|
19
|
-
Language strings are now served directly from the back-end server, and therefore need to be stored in the root `lang` folder of your authoring tool module. The server will need to be restarted for any changes to these to be recognised.
|
package/docs/ui-extensions.md
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Extending the UI
|
|
2
|
-
The UI can be extended easily from an Adapt authoring tool module.
|
|
3
|
-
|
|
4
|
-
## Register your plugin
|
|
5
|
-
Register your UI plugin by calling the [UIModule#addUiPlugin](https://tomtaylor.codes/ls/jsdoc3/UIModule.html#addUiPlugin) function from your own module's [init](https://tomtaylor.codes/ls/jsdoc3/AbstractModule.html#init) function, which ensures that your plugin code is included in the build of the front-end app.
|
|
6
|
-
|
|
7
|
-
Any files found in this folder will be included in the app build process, so make sure you include all front-end code, Handlebars templates and LESS/CSS in here.
|
|
8
|
-
|
|
9
|
-
## Define language strings
|
|
10
|
-
Add any translated language strings to the `/lang` folder in the root of your module
|
|
11
|
-
|
|
12
|
-
## Resources
|
|
13
|
-
|
|
14
|
-
- **GitHub template**: You can use the following GitHub template repository as a starting point:
|
|
15
|
-
[adapt-security/adapt-authoring-uiplugintemplate](https://github.com/adapt-security/adapt-authoring-uiplugintemplate)
|