Skip to content
Snippets Groups Projects
Commit b4dc014e authored by Tom Robinson's avatar Tom Robinson
Browse files

Import/export ICON_PATHs as module

parent 4b11dd89
No related merge requests found
'use strict';
/* global ICON_PATHS */
import ICON_PATHS from 'metabase/icon_paths';
/*
GENERIC ICONS
......
......@@ -11,7 +11,7 @@
*/
var ICON_PATHS = {
export default {
add: 'M19,13 L19,2 L14,2 L14,13 L2,13 L2,18 L14,18 L14,30 L19,30 L19,18 L30,18 L30,13 L19,13 Z',
addtodash: [
'M16,31 L16,31 C24.2842712,31 31,24.2842712 31,16 C31,7.71572875 24.2842712,1 16,1 C7.71572875,1 1,7.71572875 1,16 C1,24.2842712 7.71572875,31 16,31 L16,31 Z M16,32 L16,32 C7.163444,32 0,24.836556 0,16 C0,7.163444 7.163444,0 16,0 C24.836556,0 32,7.163444 32,16 C32,24.836556 24.836556,32 16,32 L16,32 Z',
......@@ -36,5 +36,3 @@ var ICON_PATHS = {
search: 'M12 0 A12 12 0 0 0 0 12 A12 12 0 0 0 12 24 A12 12 0 0 0 18.5 22.25 L28 32 L32 28 L22.25 18.5 A12 12 0 0 0 24 12 A12 12 0 0 0 12 0 M12 4 A8 8 0 0 1 12 20 A8 8 0 0 1 12 4 ',
star: 'M16 0 L21 11 L32 12 L23 19 L26 31 L16 25 L6 31 L9 19 L0 12 L11 11',
};
/* module.exports = ICON_PATHS */
'use strict';
/* global ICON_PATHS */
import ICON_PATHS from 'metabase/icon_paths';
export default React.createClass({
displayName: 'Icon',
......
......@@ -56,6 +56,12 @@ module.exports = {
]
},
resolve: {
alias: {
'metabase': __dirname + '/resources/frontend_client/app'
}
},
plugins: [
// Automatically annotates angular functions (from "function($foo) {}" to "['$foo', function($foo) {}]")
// so minification doesn't break dependency injections
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment