Add the UI Toolkit to edx-platform

UITK-75
This commit is contained in:
Andy Armstrong
2016-03-22 11:24:35 -04:00
parent 3332721948
commit 0177eeded4
14 changed files with 20 additions and 5 deletions

View File

@@ -0,0 +1 @@
../../common/static/edx-pattern-library

1
cms/static/edx-ui-toolkit Symbolic link
View File

@@ -0,0 +1 @@
../../common/static/edx-ui-toolkit

View File

@@ -78,6 +78,8 @@ src_paths:
- js/certificates
- js/factories
- common/js
- edx-pattern-library/js
- edx-ui-toolkit/js
# Paths to spec (test) JavaScript files
# We should define the custom path mapping in /coffee/spec/main.coffee as well e.g. certificates etc.

View File

@@ -73,6 +73,8 @@ src_paths:
- js/utils
- js/views
- common/js
- edx-pattern-library/js
- edx-ui-toolkit/js
# Paths to spec (test) JavaScript files
spec_paths:

View File

@@ -0,0 +1 @@
../../../node_modules/edx-ui-toolkit/src/js

View File

@@ -50,6 +50,8 @@ lib_paths:
# Paths to source JavaScript files
src_paths:
- common/js
- edx-pattern-library/js
- edx-ui-toolkit/js
# Paths to spec (test) JavaScript files
spec_paths:

View File

@@ -4,10 +4,11 @@
define(['backbone',
'underscore',
'gettext',
'edx-ui-toolkit/js/utils/string-utils',
'teams/js/views/team_utils',
'common/js/components/utils/view_utils',
'text!teams/templates/instructor-tools.underscore'],
function (Backbone, _, gettext, TeamUtils, ViewUtils, instructorToolbarTemplate) {
function (Backbone, _, gettext, StringUtils, TeamUtils, ViewUtils, instructorToolbarTemplate) {
return Backbone.View.extend({
events: {
@@ -53,8 +54,8 @@
});
Backbone.history.navigate('topics/' + self.team.get('topic_id'), {trigger: true});
TeamUtils.showMessage(
interpolate(
gettext('Team "%(team)s" successfully deleted.'),
StringUtils.interpolate(
gettext('Team "{team}" successfully deleted.'),
{team: self.team.get('name')},
true
),

View File

@@ -8,7 +8,7 @@
// ------------------------------
// #VARIABLES
// ------------------------------
$pattern-library-path: '../../pattern-library' !default;
$pattern-library-path: '../../edx-pattern-library' !default;
// certificate characteristics
$cert-base-color: palette(grayscale-cool, dark);

View File

@@ -0,0 +1 @@
../../common/static/edx-pattern-library

1
lms/static/edx-ui-toolkit Symbolic link
View File

@@ -0,0 +1 @@
../../common/static/edx-ui-toolkit

View File

@@ -75,9 +75,11 @@ src_paths:
- js
- coffee/src
- common/js
- edx-pattern-library/js
- edx-ui-toolkit/js
- support/js
- teams/js
- xmodule_js/common_static/coffee
- support/js
# Paths to spec (test) JavaScript files
spec_paths:

View File

@@ -4,6 +4,7 @@
"dependencies": {
"coffee-script": "1.6.1",
"edx-pattern-library": "0.10.4",
"edx-ui-toolkit": "~0.8.0",
"requirejs": "~2.1.22",
"uglify-js": "2.4.24",
"underscore": "~1.8.3"