Skip to content

Commit

Permalink
// Cldr / Globalize removed from default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Shudrum committed Mar 3, 2016
1 parent 9f47775 commit 93129fb
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 23 deletions.
3 changes: 0 additions & 3 deletions admin-dev/themes/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@
"babel-core": "^6.5.2",
"babel-loader": "^6.2.2",
"babel-preset-es2015": "^6.5.0",
"cldr-data": "^28.0.3",
"cldrjs": "^0.4.4",
"css-loader": "^0.23.1",
"exports-loader": "^0.6.3",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.5",
"globalize": "^1.1.1",
"imports-loader": "^0.6.5",
"material-design-icons": "^2.1.3",
"node-sass": "^3.4.2",
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions admin-dev/themes/default/public/bundle.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion admin-dev/themes/default/public/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions admin-dev/themes/default/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
entry: [
'cldrjs/dist/cldr.js',
'cldrjs/dist/cldr/event.js',
'cldrjs/dist/cldr/supplemental.js',
'globalize/dist/globalize.js',
'globalize/dist/globalize/message.js',
'globalize/dist/globalize/number.js',
'globalize/dist/globalize/plural.js',
'globalize/dist/globalize/date.js',
'globalize/dist/globalize/currency.js',
'globalize/dist/globalize/relative-time.js',
'./js/theme.js'
],
output: {
Expand All @@ -22,12 +12,6 @@ module.exports = {
},
module: {
loaders: [{
test: [
/cldrjs\/dist\/cldr/,
/globalize\/dist\/globalize/
],
loader: 'imports?this=>window&exports=>false&module=>false&define=>false'
}, {
test: path.join(__dirname, 'js'),
loader: 'babel',
query: {
Expand Down
1 change: 1 addition & 0 deletions classes/controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2614,6 +2614,7 @@ public function setMedia($isNewTheme = false)
_PS_JS_DIR_.'admin.js?v='._PS_VERSION_, // TODO: SEE IF REMOVABLE
_PS_JS_DIR_.'cldr.js',
_PS_JS_DIR_.'tools.js?v='._PS_VERSION_,
__PS_BASE_URI__.$this->admin_webpath.'/public/bundle.js',
));

Media::addJsDef(array('host_mode' => (defined('_PS_HOST_MODE_') && _PS_HOST_MODE_)));
Expand Down

0 comments on commit 93129fb

Please sign in to comment.