Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
815f2f3
Fix #2240
canstudios-nicolaw Mar 6, 2019
ba6ee19
Merge pull request #2269 from CanStudios/issue/2240
canstudios-nicolaw Mar 29, 2019
6ccb7af
Back up theme editor
tomgreenfield Dec 13, 2018
f47a52d
Port theme editor (WIP)
tomgreenfield Dec 14, 2018
25d2f40
Merge in previous output manager code
tomgreenfield Dec 14, 2018
7a01e90
Fix course create
canstudios-nicolaw Jan 16, 2019
d614ab1
Only show restore default button when relevant
canstudios-nicolaw Jan 16, 2019
38cb4c2
Save modified LESS to override file rather than replacing
canstudios-nicolaw Jan 17, 2019
e1b95fd
Save asset path to theme variables
canstudios-nicolaw Jan 17, 2019
ab4c2f6
Include custom theme LESS in export
canstudios-nicolaw Jan 17, 2019
09d2b96
Save theme presets, fix populate preset dropdown, don't include prese…
canstudios-nicolaw Jan 18, 2019
a2325ca
Fix ability to group themeVariables
canstudios-nicolaw Jan 21, 2019
c292b57
Theme editor repopulates nested properties in form
canstudios-nicolaw Jan 24, 2019
7788580
Save data in way that matches form structure
canstudios-nicolaw Jan 24, 2019
7a56ab3
Fix title display, use saved preset
canstudios-nicolaw Jan 25, 2019
a941e99
Fix asset display, only apply previous work to theme editor
canstudios-nicolaw Jan 25, 2019
4910c21
Tidy
canstudios-nicolaw Jan 25, 2019
86407d6
Tidy
canstudios-nicolaw Jan 25, 2019
009f54a
Correctly delete theme preset if unselected
canstudios-nicolaw Jan 28, 2019
98efaee
Preset names should be unique per theme not unique per install
canstudios-nicolaw Jan 28, 2019
dd03c06
Preserve theme presets when theme is updated
canstudios-nicolaw Jan 28, 2019
69a15fc
Move save preset button to main page
canstudios-nicolaw Jan 28, 2019
30e5acd
Add border to fieldset groups
canstudios-nicolaw Jan 29, 2019
f0529bb
Move restore button
canstudios-nicolaw Jan 29, 2019
71dba59
Rename 'Restore defaults' to 'Restore to preset'
canstudios-nicolaw Jan 29, 2019
a9f0080
Update text
canstudios-nicolaw Jan 29, 2019
a4c637d
Code tidy
canstudios-nicolaw Jan 29, 2019
e6d1fc3
Remove support for theme preview images (no longer visible)
canstudios-nicolaw Jan 29, 2019
4616484
Check preset exists when loading select
canstudios-nicolaw Jan 29, 2019
847e531
Remove preset from select on delete
canstudios-nicolaw Jan 29, 2019
414c771
Fix preset select not remembering value
canstudios-nicolaw Jan 30, 2019
2a8b954
Tidy
canstudios-nicolaw Feb 1, 2019
5a98668
Add space
canstudios-nicolaw Feb 1, 2019
b48f432
Cleanup
canstudios-nicolaw Feb 11, 2019
88736af
Fix export
canstudios-nicolaw Feb 11, 2019
70918ad
Select new preset after save
canstudios-nicolaw Feb 11, 2019
083f8ea
Clear preset selection on cancel
canstudios-nicolaw Feb 11, 2019
8c6540b
Fix default asset thumbnail displaying
canstudios-nicolaw Feb 11, 2019
050384b
Clear unsaved preset selection when changing theme
canstudios-nicolaw Feb 12, 2019
06d4a55
Cleanup
canstudios-nicolaw Feb 12, 2019
d4f8fc3
Convert a tags to buttons
canstudios-nicolaw Feb 18, 2019
2f57033
Tidy manage presets modal
canstudios-nicolaw Feb 18, 2019
eb32ca0
Cleanup
canstudios-nicolaw Feb 19, 2019
718cd93
Move save and restore preset buttons to sidebar
canstudios-nicolaw Feb 21, 2019
5665b54
Update UI
canstudios-nicolaw Feb 21, 2019
e3771a4
Fix - saved settings won't be restored across themes which have varia…
canstudios-nicolaw Feb 21, 2019
a3b6fa7
Update frontend/src/modules/editor/themeEditor/views/editorThemingVie…
tomgreenfield Mar 6, 2019
21bd08b
Update frontend/src/modules/editor/themeEditor/views/editorThemingVie…
tomgreenfield Mar 6, 2019
c3f8eca
Cleanup
canstudios-nicolaw Mar 6, 2019
c0b6688
Add _themePreset to blacklist
canstudios-nicolaw Mar 27, 2019
fd048fd
Save custom theme variables to directory
canstudios-nicolaw Mar 29, 2019
bbb609b
Give custom less files better names and fix bug which caused customLe…
canstudios-nicolaw Apr 1, 2019
b8151ec
Fix - course builds when there are no themeVariables
canstudios-nicolaw Apr 1, 2019
7e6964c
Updates to filenames, change null to err
canstudios-nicolaw Apr 4, 2019
68210e6
Fix - persist save/restore preset buttons for nested and unnested themes
canstudios-nicolaw Apr 8, 2019
f5924db
Fix - Don't show restore to preset when preset already selected
canstudios-nicolaw Apr 9, 2019
97179a9
Improve detection for showing 'restore preset' button
canstudios-nicolaw Apr 17, 2019
6201831
Restore 'onFieldChanged', simplify shouldShow check
canstudios-nicolaw Apr 18, 2019
43a3a47
Add support for theme settings being inside variables object
canstudios-nicolaw Apr 23, 2019
2d152d6
Exclude preset from export and publish
canstudios-nicolaw Apr 23, 2019
2d29895
Support new variables property for assets
canstudios-nicolaw Apr 23, 2019
8a3f857
Fix for variables
canstudios-nicolaw Apr 23, 2019
7a10981
Fix preview for non-editable themes
canstudios-nicolaw Apr 25, 2019
426819f
Merge pull request #2209 from CanStudios/feature/theme-editing
tomgreenfield Apr 30, 2019
ff4bfa3
Merge branch 'master' into release/theme-editing
tomgreenfield Apr 30, 2019
11dc0f6
Fix typo introduced during merge
tomgreenfield Apr 30, 2019
5d103ca
Update CHANGELOG.md
taylortom May 1, 2019
92c270b
Update package.json
taylortom May 1, 2019
6dc0d8f
Bump date
tomgreenfield May 3, 2019
41fd1df
Merge pull request #2323 from adaptlearning/release/theme-editing
tomgreenfield May 3, 2019
0b18c11
Add recommended framework requirements
taylortom May 3, 2019
e19af78
Merge branch 'master' into resolveConflicts
tomgreenfield May 9, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ All notable changes to the Adapt authoring tool are documented in this file.
**IMPORTANT**: For information on how to **correctly and safely** update your installation, please consult **INSTALL.md**.<br/>
_Note that we adhere to the [semantic versioning](http://semver.org/) scheme for release numbering._

## [0.8.0] - 2019-05-03

Adds a UI to allow the editing of a supported theme.

#### Recommended requirements for full compatibility
Series | Framework | Vanilla
-- | -- | --
2.x | 2.4.0 | [3.1.0](https://github.com/adaptlearning/adapt-contrib-vanilla/releases/tag/v3.1.0)
4.x | 4.2.0 | [4.1.0](https://github.com/adaptlearning/adapt-contrib-vanilla/releases/tag/v4.1.0)

### Fixed
- Custom LESS doesn't work in authoring tools which are running framework version 4 ([#2240](https://github.com/adaptlearning/adapt_authoring/issues/2240))

### Added
- Add UI for theme editing ([#2187](https://github.com/adaptlearning/adapt_authoring/issues/2187))

## [0.7.1] - 2019-04-09

Bugfix release.
Expand Down Expand Up @@ -575,6 +591,7 @@ Initial release.
- Loading screen of death
- Session cookie security issues

[0.8.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.7.1...v0.8.0
[0.7.1]: https://github.com/adaptlearning/adapt_authoring/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/adaptlearning/adapt_authoring/compare/v0.6.5...v0.7.0
[0.6.5]: https://github.com/adaptlearning/adapt_authoring/compare/v0.6.4...v0.6.5
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/core/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ define(function(require){
return new Handlebars.SafeString(html);
},

escapeText: function(text) {
var div = document.createElement('div');
div.appendChild(document.createTextNode(text));
return div.innerHTML;
},

bytesToSize: function(bytes) {
if (bytes === 0) return '0 B';

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define([
'./course/index',
'./extensions/index',
'./menuSettings/index',
'./selectTheme/index'
'./themeEditor/index'
], function(require, Origin, EditorData) {
// loads editor data
Origin.on('origin:dataReady login:changed', EditorData.loadGlobalData);
Expand Down
Binary file not shown.
31 changes: 0 additions & 31 deletions frontend/src/modules/editor/selectTheme/index.js

This file was deleted.

93 changes: 0 additions & 93 deletions frontend/src/modules/editor/selectTheme/less/editorTheme.less

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading