Skip to content

Commit 41fd1df

Browse files
Merge pull request #2323 from adaptlearning/release/theme-editing
Release/theme editing
2 parents f5adc19 + 6dc0d8f commit 41fd1df

46 files changed

Lines changed: 1631 additions & 869 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ All notable changes to the Adapt authoring tool are documented in this file.
55
**IMPORTANT**: For information on how to **correctly and safely** update your installation, please consult **INSTALL.md**.<br/>
66
_Note that we adhere to the [semantic versioning](http://semver.org/) scheme for release numbering._
77

8+
## [0.8.0] - 2019-05-03
9+
10+
Adds a UI to allow the editing of a supported theme.
11+
12+
### Fixed
13+
- Custom LESS doesn't work in authoring tools which are running framework version 4 ([#2240](https://github.com/adaptlearning/adapt_authoring/issues/2240))
14+
15+
### Added
16+
- Add UI for theme editing ([#2187](https://github.com/adaptlearning/adapt_authoring/issues/2187))
17+
818
## [0.7.1] - 2019-04-09
919

1020
Bugfix release.
@@ -575,6 +585,7 @@ Initial release.
575585
- Loading screen of death
576586
- Session cookie security issues
577587

588+
[0.8.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.7.1...v0.8.0
578589
[0.7.1]: https://github.com/adaptlearning/adapt_authoring/compare/v0.7.0...v0.7.1
579590
[0.7.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.6.5...v0.7.0
580591
[0.6.5]: https://github.com/adaptlearning/adapt_authoring/compare/v0.6.4...v0.6.5

frontend/src/core/helpers.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ define(function(require){
116116
return new Handlebars.SafeString(html);
117117
},
118118

119+
escapeText: function(text) {
120+
var div = document.createElement('div');
121+
div.appendChild(document.createTextNode(text));
122+
return div.innerHTML;
123+
},
124+
119125
bytesToSize: function(bytes) {
120126
if (bytes === 0) return '0 B';
121127

frontend/src/modules/editor/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define([
1111
'./course/index',
1212
'./extensions/index',
1313
'./menuSettings/index',
14-
'./selectTheme/index'
14+
'./themeEditor/index'
1515
], function(require, Origin, EditorData) {
1616
// loads editor data
1717
Origin.on('origin:dataReady login:changed', EditorData.loadGlobalData);
-1.12 KB
Binary file not shown.
Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +0,0 @@
1-
// LICENCE https://github.com/adaptlearning/adapt_authoring/blob/master/LICENSE
2-
define(function(require) {
3-
var Origin = require('core/origin');
4-
var EditorData = require('../global/editorDataLoader');
5-
6-
var ConfigModel = require('core/models/configModel');
7-
var EditorThemeCollectionView = require('./views/editorThemeCollectionView');
8-
var EditorThemeCollectionSidebarView = require('./views/editorThemeCollectionSidebarView');
9-
var Helpers = require('../global/helpers');
10-
11-
Origin.on('editor:selecttheme', function(data) {
12-
var route1 = Origin.location.route1;
13-
(new ConfigModel({ _courseId: route1 })).fetch({
14-
success: function(model) {
15-
Helpers.setPageTitle(model);
16-
17-
var backButtonRoute = "/#/editor/" + route1 + "/menu";
18-
var backButtonText = Origin.l10n.t('app.backtomenu');
19-
if (Origin.previousLocation.route2 === "page") {
20-
backButtonRoute = "/#/editor/" + route1 + "/page/" + Origin.previousLocation.route3;
21-
backButtonText = Origin.l10n.t('app.backtopage');
22-
}
23-
Origin.sidebar.addView(new EditorThemeCollectionSidebarView().$el, {
24-
"backButtonText": backButtonText,
25-
"backButtonRoute": backButtonRoute
26-
});
27-
Origin.contentPane.setView(EditorThemeCollectionView, { model: model });
28-
}
29-
});
30-
});
31-
});

frontend/src/modules/editor/selectTheme/less/editorTheme.less

Lines changed: 0 additions & 93 deletions
This file was deleted.

frontend/src/modules/editor/selectTheme/templates/editorThemeCollection.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/src/modules/editor/selectTheme/templates/editorThemeCollectionSidebar.hbs

Lines changed: 0 additions & 5 deletions
This file was deleted.

frontend/src/modules/editor/selectTheme/templates/editorThemeEdit.hbs

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/src/modules/editor/selectTheme/templates/editorThemeEditSidebar.hbs

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)