2011-11-11 00:31:45 +08:00
|
|
|
{
|
|
|
|
"name": "canvas-lms",
|
2015-07-16 12:24:49 +08:00
|
|
|
"license": "AGPL-3.0",
|
2011-11-11 00:31:45 +08:00
|
|
|
"version": "0.0.0",
|
2015-07-16 12:24:49 +08:00
|
|
|
"engines": {
|
2018-03-09 04:33:46 +08:00
|
|
|
"node": ">=8.10.0",
|
2018-04-17 00:03:30 +08:00
|
|
|
"yarn": "1.6.0"
|
2015-07-16 12:24:49 +08:00
|
|
|
},
|
2014-02-11 02:29:11 +08:00
|
|
|
"dependencies": {
|
2018-05-02 01:28:45 +08:00
|
|
|
"@instructure/ui-alerts": "5.4.1-dev.1",
|
|
|
|
"@instructure/ui-buttons": "5.4.1-dev.1",
|
2018-03-28 01:19:12 +08:00
|
|
|
"@instructure/ui-core": "^4.8.0",
|
2018-05-02 01:28:45 +08:00
|
|
|
"@instructure/ui-menu": "5.4.1-dev.1",
|
|
|
|
"@instructure/ui-overlays": "5.4.1-dev.1",
|
|
|
|
"@instructure/ui-themeable": "5.4.1-dev.1",
|
|
|
|
"@instructure/ui-themes": "5.4.1-dev.1",
|
2018-03-27 01:32:21 +08:00
|
|
|
"apollo-boost": "^0.1.4",
|
2017-10-04 01:05:04 +08:00
|
|
|
"axios": "^0.16.0",
|
|
|
|
"backbone": "1.1.1",
|
2017-09-26 07:19:15 +08:00
|
|
|
"brandable_css": "0.1.0",
|
2018-02-06 04:41:27 +08:00
|
|
|
"canvas-planner": "file:./packages/canvas-planner/copy-of-what-gets-published-to-npm-registry",
|
2018-04-03 05:52:07 +08:00
|
|
|
"canvas-rce": "file:./packages/canvas-rce/canvas",
|
2017-08-09 03:40:06 +08:00
|
|
|
"canvas_offline_course_viewer": "https://github.com/instructure/canvas_offline_course_viewer.git#1.2.0",
|
2017-10-04 01:05:04 +08:00
|
|
|
"classnames": "^2.2.5",
|
|
|
|
"color-slicer": "0.8.0",
|
2017-12-04 23:24:41 +08:00
|
|
|
"d3": "3.5.17",
|
2018-03-02 07:12:40 +08:00
|
|
|
"formdata-polyfill": "^3.0.9",
|
2018-01-12 00:59:21 +08:00
|
|
|
"fullcalendar": "https://github.com/instructure/fullcalendar.git#1108dd1c991a029ec6fd7de3337737ec5295ba97",
|
2017-10-04 01:05:04 +08:00
|
|
|
"graphiql": "^0.11.2",
|
2018-03-27 01:32:21 +08:00
|
|
|
"graphql": "^0.13.2",
|
|
|
|
"graphql-tag": "^2.8.0",
|
2018-03-14 04:10:14 +08:00
|
|
|
"i18n-js": "^3",
|
2017-10-04 01:05:04 +08:00
|
|
|
"ic-ajax": "~2.0.1",
|
|
|
|
"ic-tabs": "0.1.3",
|
2018-02-23 03:58:38 +08:00
|
|
|
"immutability-helper": "^2",
|
|
|
|
"instructure-icons": "^4",
|
2017-11-22 04:03:43 +08:00
|
|
|
"jquery": "https://github.com/ryankshaw/jquery.git#a755a3e9c99d5a70d8ea570836f94ae1ba56046d",
|
2017-10-04 01:05:04 +08:00
|
|
|
"jquery-getscrollbarwidth": "^1.0.0",
|
|
|
|
"jquery-ui-touch-punch": "^0.2.3",
|
|
|
|
"jquery.cookie": "^1.4.1",
|
2018-01-03 06:24:44 +08:00
|
|
|
"jquery.elastic": "1.0.0",
|
2017-12-09 08:32:58 +08:00
|
|
|
"location-origin": "^1.1.4",
|
2017-10-04 01:05:04 +08:00
|
|
|
"lodash": "^4.16.4",
|
|
|
|
"md5": "^2.2.1",
|
2018-03-07 00:03:37 +08:00
|
|
|
"mediaelement": "https://github.com/instructure/mediaelement.git#master",
|
2017-10-04 01:05:04 +08:00
|
|
|
"moment": "~2.10.6",
|
2018-03-31 03:07:41 +08:00
|
|
|
"normalize-scroll-left": "^0.1.2",
|
2017-10-04 01:05:04 +08:00
|
|
|
"page": "visionmedia/page.js#1.6.4",
|
2018-01-17 00:52:42 +08:00
|
|
|
"parse-decimal-number": "1.0.0",
|
2018-02-23 03:58:38 +08:00
|
|
|
"prop-types": "^15",
|
2017-10-04 01:05:04 +08:00
|
|
|
"qs": "https://github.com/hapijs/qs.git#a341cdf2fadba5ede1ce6c95c7051f6f31f37b81",
|
|
|
|
"react": "0.14.9",
|
|
|
|
"react-addons-css-transition-group": "0.14.8",
|
|
|
|
"react-addons-pure-render-mixin": "0.14.8",
|
2018-03-27 01:32:21 +08:00
|
|
|
"react-apollo": "^2.1.1",
|
2017-10-04 01:05:04 +08:00
|
|
|
"react-crop": "^4.0.2",
|
|
|
|
"react-dnd": "2.1.4",
|
|
|
|
"react-dnd-html5-backend": "2.1.2",
|
|
|
|
"react-dom": "0.14.9",
|
|
|
|
"react-modal": "1.6.5",
|
|
|
|
"react-redux": "4.4.5",
|
|
|
|
"react-select-box": "https://github.com/instructure-react/react-select-box.git#b1ddd39223d48793fbe3dc4e87aca00d57197b5f",
|
|
|
|
"react-tokeninput": "2.4.0",
|
|
|
|
"redux": "^3.5.2",
|
|
|
|
"redux-actions": "0.11.0",
|
|
|
|
"redux-thunk": "2.1.0",
|
|
|
|
"spin.js": "2.3.2",
|
|
|
|
"swfobject": "^2.2.1",
|
|
|
|
"tablesorter": "^2.28.5",
|
2018-01-27 05:55:38 +08:00
|
|
|
"timezone": "1.0.13",
|
2017-10-04 01:05:04 +08:00
|
|
|
"tinycolor2": "1.4.1",
|
2018-03-14 05:52:57 +08:00
|
|
|
"tinymce": "4.7.9",
|
2018-03-13 05:58:48 +08:00
|
|
|
"tinymce-a11y-checker": "~1.4.0",
|
2017-10-04 01:05:04 +08:00
|
|
|
"tinymce-light-skin": "1.3.1"
|
2014-02-11 02:29:11 +08:00
|
|
|
},
|
2011-11-11 00:31:45 +08:00
|
|
|
"devDependencies": {
|
2018-02-23 03:58:38 +08:00
|
|
|
"axe-core": "~2.1.7",
|
|
|
|
"babel-cli": "^6",
|
|
|
|
"babel-core": "^6",
|
|
|
|
"babel-eslint": "^8",
|
|
|
|
"babel-jest": "^22",
|
|
|
|
"babel-loader": "^7",
|
2016-07-09 00:16:46 +08:00
|
|
|
"babel-plugin-add-module-exports": "0.2.1",
|
2018-02-23 03:58:38 +08:00
|
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.4",
|
|
|
|
"babel-plugin-transform-runtime": "^6",
|
|
|
|
"babel-polyfill": "^6",
|
|
|
|
"babel-preset-env": "^1",
|
|
|
|
"babel-preset-react": "^6",
|
|
|
|
"babel-preset-stage-1": "^6",
|
|
|
|
"babel-register": "^6",
|
|
|
|
"coffee-loader": "~0.7.2",
|
|
|
|
"coffee-script": "^1",
|
|
|
|
"concurrently": "^3",
|
|
|
|
"core-js-builder": "^2",
|
|
|
|
"css-loader": "^0.28",
|
2015-10-01 11:16:11 +08:00
|
|
|
"ember-template-compiler": "^1.8.0",
|
2018-02-23 03:58:38 +08:00
|
|
|
"enzyme": "^2",
|
2018-04-11 00:36:43 +08:00
|
|
|
"es-check": "^2",
|
2018-02-23 03:58:38 +08:00
|
|
|
"eslint": "^4",
|
2017-11-23 03:07:54 +08:00
|
|
|
"eslint-config-airbnb": "^16.1.0",
|
2018-02-23 03:58:38 +08:00
|
|
|
"eslint-config-prettier": "^2",
|
|
|
|
"eslint-plugin-import": "^2",
|
|
|
|
"eslint-plugin-jest": "^21",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6",
|
|
|
|
"eslint-plugin-notice": "^0.6",
|
|
|
|
"eslint-plugin-promise": "^3",
|
|
|
|
"eslint-plugin-qunit": "^3",
|
|
|
|
"eslint-plugin-react": "^7",
|
|
|
|
"exports-loader": "^0.7",
|
|
|
|
"expose-loader": "^0.7",
|
2018-03-02 06:35:05 +08:00
|
|
|
"file-loader": "^1.1.10",
|
2018-02-23 03:58:38 +08:00
|
|
|
"fontfaceobserver": "^2",
|
2016-08-09 07:39:19 +08:00
|
|
|
"gglobby": "0.0.3",
|
2018-02-23 03:58:38 +08:00
|
|
|
"glob": "^7",
|
|
|
|
"gulp": "^3",
|
|
|
|
"gulp-file": "^0.4",
|
|
|
|
"gulp-filter": "^5",
|
|
|
|
"gulp-insert": "^0.5",
|
|
|
|
"gulp-load-plugins": "^1",
|
|
|
|
"gulp-rename": "^1",
|
|
|
|
"gulp-rev": "^8",
|
|
|
|
"gulp-sourcemaps": "^2",
|
|
|
|
"gulp-uglify": "^3",
|
2017-02-15 05:54:51 +08:00
|
|
|
"handlebars": "1.3.0",
|
2018-02-23 03:58:38 +08:00
|
|
|
"handlebars-loader": "^1",
|
2017-08-15 07:07:13 +08:00
|
|
|
"happypack": "^3.1.0",
|
2018-02-23 03:58:38 +08:00
|
|
|
"imports-loader": "^0.8",
|
|
|
|
"istanbul-instrumenter-loader": "^3",
|
|
|
|
"jest": "^22",
|
|
|
|
"jest-junit": "^3",
|
|
|
|
"jest-localstorage-mock": "^2",
|
|
|
|
"json-loader": "^0.5.7",
|
2016-01-07 06:31:33 +08:00
|
|
|
"jsx-loader": "0.11.2",
|
2018-02-23 03:58:38 +08:00
|
|
|
"karma": "^2",
|
|
|
|
"karma-chrome-launcher": "^2",
|
|
|
|
"karma-coverage-istanbul-reporter": "^1",
|
2015-02-26 06:28:11 +08:00
|
|
|
"karma-firework-reporter": "~0.2.4",
|
2018-02-23 03:58:38 +08:00
|
|
|
"karma-junit-reporter": "^1",
|
2017-07-26 01:29:52 +08:00
|
|
|
"karma-qunit": "~1.2.1",
|
2018-02-23 03:58:38 +08:00
|
|
|
"karma-sourcemap-loader": "^0.3",
|
2017-12-18 23:21:42 +08:00
|
|
|
"karma-spec-reporter": "^0.0.32",
|
2017-07-26 01:29:52 +08:00
|
|
|
"karma-verbose-reporter": "^0.0.6",
|
2018-02-23 03:58:38 +08:00
|
|
|
"karma-webpack": "2.0.6",
|
|
|
|
"merge-stream": "^1",
|
|
|
|
"moxios": "^0.4",
|
|
|
|
"prettier": "^1",
|
2017-02-15 05:54:51 +08:00
|
|
|
"qunitjs": "^1.14.0",
|
2016-10-19 01:11:26 +08:00
|
|
|
"react-addons-test-utils": "0.14.8",
|
2017-11-23 02:57:48 +08:00
|
|
|
"redux-logger": "2.6.1",
|
2017-02-15 05:54:51 +08:00
|
|
|
"requirejs": "~2.2.0",
|
make feature flags for Right To Left layout
Closes: CORE-1154
There are 2 feature flags here. One a specific user (internal
employees, sales people, contractors, etc) can turn on to see where we
are and what would still need to be done. And the other is for an
account to be able to turn on to let the users in their account that
have their language set to an RTL language (eg: Arabic, Farsi or Hebrew)
see the interface in RTL
This commit is part of a chain of commits. you'll need to apply the ones
that follow-on after this to see most of the actual Right To Left
features, this commit is mainly just to create the feature flag.
Test plan:
* go to your user settings page
* you should see a feature option for Force RTL Layout”
* it should show that it is “in development”
* it should should be hidden: eg: only appears for site admins and not
For normal users
* turn it on
(if you have this checked out along with the others that follow beind
this commit)
* navigate around canvas, most things on most pages should be RTL
* you should be able to get an idea of how much more work and what
Kind of changes we’d still need to make to get it 100%
* now turn off that user feature flag, and go to your account's settings
* turn on the "allow users from RTL languages to see RTL layout"
account-level feature flag.
* nothing should change for you, it should be LTR like normal
* set your language to either Arabic, Farsi or Hebrew
* now the interface should all be in right to left.
(again, you'll need to have the follow-on commits to this to see all
of the RTL changes)
* without either of the feature flags turned on, absolutely nothing
should be different at all anywhere in the interface.
Change-Id: Ia78d86fa46d2d289b1913c5d1340546d7f6c3a1f
Reviewed-on: https://gerrit.instructure.com/143891
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
2018-03-17 02:25:14 +08:00
|
|
|
"sass-direction": "^1",
|
2018-02-23 03:58:38 +08:00
|
|
|
"script-loader": "^0.7",
|
|
|
|
"sinon": "^4",
|
|
|
|
"style-loader": "^0.20",
|
|
|
|
"stylelint": "^9",
|
|
|
|
"through2": "^2",
|
|
|
|
"webpack": "^3",
|
|
|
|
"webpack-cleanup-plugin": "^0.5",
|
|
|
|
"webpack-manifest-plugin": "^1",
|
|
|
|
"webpack-parallel-uglify-plugin": "^1",
|
2017-07-20 23:50:43 +08:00
|
|
|
"xsslint": "0.1.4",
|
2018-02-23 03:58:38 +08:00
|
|
|
"yaml-loader": "^0.5"
|
2014-01-24 23:58:37 +08:00
|
|
|
},
|
2017-12-22 04:09:17 +08:00
|
|
|
"jest-junit": {
|
|
|
|
"output": "./coverage-js/junit-reports/jest.xml"
|
|
|
|
},
|
2015-07-16 12:24:49 +08:00
|
|
|
"repository": "instructure/canvas-lms",
|
2014-01-24 23:58:37 +08:00
|
|
|
"scripts": {
|
2017-12-18 22:39:39 +08:00
|
|
|
"test": "concurrently --names \"packages,jest,karma\" \"yarn test:packages\" \"jest\" \"if [ \"$COVERAGE\" ]; then yarn test:karma; else yarn test:karma:concurrently; fi\"",
|
2017-12-22 04:09:17 +08:00
|
|
|
"test:watch": "concurrently --names \"jest,karma\" \"jest --watch .\" \"yarn test:karma:watch\"",
|
|
|
|
"test:jest": "echo 'this is here just so you know you can use jest, but just use the `jest` cli directly' && jest",
|
|
|
|
"test:karma": "karma start --single-run",
|
|
|
|
"test:karma:concurrently": "concurrently --names \"coffee,js1,js2\" \"JSPEC_GROUP=coffee yarn test:karma:headless\" \"JSPEC_GROUP=js1 yarn test:karma:headless\" \"JSPEC_GROUP=js2 yarn test:karma:headless\"",
|
|
|
|
"test:karma:headless": "karma start --single-run --browsers ChromeHeadlessNoSandbox",
|
|
|
|
"test:karma:watch": "karma start",
|
|
|
|
"test:karma:watch:headless": "karma start --browsers ChromeHeadlessNoSandbox",
|
2018-02-06 02:59:45 +08:00
|
|
|
"test:packages": "script/local-yarn test",
|
2018-04-03 05:52:07 +08:00
|
|
|
"preinstall": "script/uncache-packages && script/local-yarn install && script/local-yarn build:canvas",
|
2017-05-03 00:44:54 +08:00
|
|
|
"build": "yarn run build:css && yarn run build:js",
|
2017-12-22 04:09:17 +08:00
|
|
|
"build:watch": "concurrently \"yarn build:css:watch\" \"yarn build:js:watch\"",
|
2017-05-03 00:44:54 +08:00
|
|
|
"build:css": "brandable_css",
|
|
|
|
"build:css:watch": "brandable_css --watch",
|
|
|
|
"build:js": "yarn run webpack-development",
|
|
|
|
"build:js:watch": "yarn run webpack",
|
2017-12-18 22:39:39 +08:00
|
|
|
"build:packages": "script/yarn-packages build",
|
2018-04-11 00:36:43 +08:00
|
|
|
"lint:browser-code": "es-check es5 ./public/dist/**/*.js",
|
2017-02-14 11:57:26 +08:00
|
|
|
"webpack": "gulp rev & webpack --progress --color --watch",
|
|
|
|
"webpack-development": "gulp rev & webpack --progress --color",
|
2018-04-11 00:36:43 +08:00
|
|
|
"webpack-production": "NODE_ENV=production gulp rev && node --max_old_space_size=4096 $(yarn bin)/webpack --color --config webpack.production.config.js && yarn lint:browser-code",
|
2016-11-08 05:13:53 +08:00
|
|
|
"jspec": "./spec/jspec.sh",
|
2016-08-17 05:30:29 +08:00
|
|
|
"jspec-watch": "./spec/jspec.sh --watch",
|
2018-03-03 02:20:00 +08:00
|
|
|
"a11y-report": "./spec/jspec.sh --a11y",
|
|
|
|
"upgrade-and-dedupe": "rm -rf yarn.lock node_modules && yes 1 | yarn install --flat --production && git checkout package.json && yarn install && git add yarn.lock && git commit -m 'update npm deps'"
|
2017-11-22 07:09:15 +08:00
|
|
|
},
|
|
|
|
"resolutions": {
|
2018-03-29 03:43:24 +08:00
|
|
|
"jquery": "https://github.com/ryankshaw/jquery.git#a755a3e9c99d5a70d8ea570836f94ae1ba56046d",
|
|
|
|
"moment": "2.10.6"
|
2011-11-11 00:31:45 +08:00
|
|
|
}
|
2018-04-03 05:52:07 +08:00
|
|
|
}
|