-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #751 from adaptlearning/release/0.1.1
Release/0.1.1
- Loading branch information
Showing
58 changed files
with
1,659 additions
and
1,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- "0.10.2" | ||
- "0.10.33" | ||
services: mongodb | ||
before_install: | ||
- "npm install adapt-cli -g" | ||
- "npm install -g npm" | ||
- "npm cache clean" | ||
- "npm install -g adapt-cli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,13 +42,18 @@ git config --global user.email "[email protected]" | |
|
||
#### MongoDB | ||
|
||
[MongoDB](https://www.mongodb.org) is a document based database. Download and install the version appropriate for your system [here](https://www.mongodb.org/downloads). | ||
[MongoDB](https://www.mongodb.org) is a document based database. Download and install the version appropriate for your system [here](https://www.mongodb.org/downloads). | ||
|
||
|
||
#### NodeJS & NPM | ||
|
||
[NodeJS](http://nodejs.org/) and [NPM](https://www.npmjs.org/) are required. Installing Node.js will also install NPM. | ||
|
||
<<<<<<< HEAD | ||
IMPORTANT: The NodeJS version should be 0.10.33. Earlier versions of NodeJS are less stable and the code currently has issues with 0.12.x. | ||
======= | ||
The NodeJS version should must be 0.10.33. Earlier versions of NodeJS are less stable and the code is currently not compatibile with 0.12.x. | ||
>>>>>>> develop | ||
You should use a NodeJS version manager. We recommend using [NVM](https://github.com/creationix/nvm) on non-Windows machines. On Windows, try [nodist](https://github.com/marcelklehr/nodist) | ||
|
||
|
@@ -60,10 +65,10 @@ Install [grunt-cli](http://gruntjs.com/) and [adapt-cli](https://github.com/adap | |
npm install -g grunt-cli | ||
npm install -g adapt-cli | ||
``` | ||
Read more about [grunt](http://gruntjs.com/getting-started) | ||
Read more about [Grunt](http://gruntjs.com/getting-started) | ||
|
||
|
||
#### FFMPEG (optional) | ||
#### FFMPEG (optional, but recommended) | ||
|
||
[FFmpeg](https://www.ffmpeg.org/index.html) is not required to use the tool, but it will produce nice thumbnails for images and videos you upload. | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
frontend/src/core/assetManagement/templates/assetManagementModalAutofill.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fa fa-magic"></i>Autofill |
16 changes: 8 additions & 8 deletions
16
frontend/src/core/assetManagement/templates/assetManagementPreview.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
frontend/src/core/assetManagement/views/assetManagementModalAutofillView.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// LICENCE https://github.com/adaptlearning/adapt_authoring/blob/master/LICENSE | ||
define(function(require) { | ||
|
||
var Origin = require('coreJS/app/origin'); | ||
var Backbone = require('backbone'); | ||
|
||
var AssetManagementModalAutofillView = Backbone.View.extend({ | ||
|
||
className: 'asset-management-modal-autofill', | ||
|
||
tagName: 'button', | ||
|
||
events: { | ||
'click': 'onAutofillClicked' | ||
}, | ||
|
||
initialize: function(options) { | ||
this.options = options; | ||
this.listenTo(Origin, 'modal:closed', this.remove); | ||
this.listenTo(Origin, 'remove:views', this.remove); | ||
this.render(); | ||
}, | ||
|
||
render: function() { | ||
var data = this.options; | ||
var template = Handlebars.templates['assetManagementModalAutofill']; | ||
this.$el.html(template(data)).prependTo('.model-popup-toolbar-buttons'); | ||
_.defer(_.bind(this.postRender, this)); | ||
|
||
return this; | ||
}, | ||
|
||
postRender: function() { | ||
}, | ||
|
||
onAutofillClicked: function(event) { | ||
event.preventDefault(); | ||
// Sometimes the button can be clicked without selecting an asset | ||
if (this.options.modalView.data) { | ||
this.options.modalView.data._shouldAutofill = true; | ||
Origin.trigger('modal:onUpdate'); | ||
} else { | ||
Origin.trigger('modal:onCancel'); | ||
} | ||
} | ||
|
||
}); | ||
|
||
return AssetManagementModalAutofillView; | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.