diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9a874b5 Binary files /dev/null and b/.DS_Store differ diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000..fadd49a Binary files /dev/null and b/src/.DS_Store differ diff --git a/src/app/.DS_Store b/src/app/.DS_Store new file mode 100644 index 0000000..51707bc Binary files /dev/null and b/src/app/.DS_Store differ diff --git a/src/app/pages/.DS_Store b/src/app/pages/.DS_Store new file mode 100644 index 0000000..6c0c687 Binary files /dev/null and b/src/app/pages/.DS_Store differ diff --git a/src/app/pages/charts/amCharts/amCharts.module.js b/src/app/pages/charts/amCharts/amCharts.module.js deleted file mode 100644 index 2bbebf2..0000000 --- a/src/app/pages/charts/amCharts/amCharts.module.js +++ /dev/null @@ -1,225 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts', []) - .config(routeConfig).config(amChartConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('charts.amCharts', { - url: '/amCharts', - templateUrl: 'app/pages/charts/amCharts/charts.html', - title: 'amCharts', - sidebarMeta: { - order: 0, - }, - }); - } - - function amChartConfig(baConfigProvider) { - var layoutColors = baConfigProvider.colors; - AmCharts.themes.blur = { - - themeName: "blur", - - AmChart: { - color: layoutColors.defaultText, - backgroundColor: "#FFFFFF" - }, - - AmCoordinateChart: { - colors: [layoutColors.primary, layoutColors.danger, layoutColors.warning, layoutColors.success, layoutColors.info, layoutColors.primaryDark, layoutColors.warningLight, layoutColors.successDark, layoutColors.successLight, layoutColors.primaryLight, layoutColors.warningDark] - }, - - AmStockChart: { - colors: [layoutColors.primary, layoutColors.danger, layoutColors.warning, layoutColors.success, layoutColors.info, layoutColors.primaryDark, layoutColors.warningLight, layoutColors.successDark, layoutColors.successLight, layoutColors.primaryLight, layoutColors.warningDark] - }, - - AmSlicedChart: { - colors: [layoutColors.primary, layoutColors.danger, layoutColors.warning, layoutColors.success, layoutColors.info, layoutColors.primaryDark, layoutColors.warningLight, layoutColors.successDark, layoutColors.successLight, layoutColors.primaryLight, layoutColors.warningDark], - labelTickColor: "#FFFFFF", - labelTickAlpha: 0.3 - }, - - AmRectangularChart: { - zoomOutButtonColor: '#FFFFFF', - zoomOutButtonRollOverAlpha: 0.15, - zoomOutButtonImage: "lens.png" - }, - - AxisBase: { - axisColor: "#FFFFFF", - axisAlpha: 0.3, - gridAlpha: 0.1, - gridColor: "#FFFFFF" - }, - - ChartScrollbar: { - backgroundColor: "#FFFFFF", - backgroundAlpha: 0.12, - graphFillAlpha: 0.5, - graphLineAlpha: 0, - selectedBackgroundColor: "#FFFFFF", - selectedBackgroundAlpha: 0.4, - gridAlpha: 0.15 - }, - - ChartCursor: { - cursorColor: layoutColors.primary, - color: "#FFFFFF", - cursorAlpha: 0.5 - }, - - AmLegend: { - color: "#FFFFFF" - }, - - AmGraph: { - lineAlpha: 0.9 - }, - GaugeArrow: { - color: "#FFFFFF", - alpha: 0.8, - nailAlpha: 0, - innerRadius: "40%", - nailRadius: 15, - startWidth: 15, - borderAlpha: 0.8, - nailBorderAlpha: 0 - }, - - GaugeAxis: { - tickColor: "#FFFFFF", - tickAlpha: 1, - tickLength: 15, - minorTickLength: 8, - axisThickness: 3, - axisColor: '#FFFFFF', - axisAlpha: 1, - bandAlpha: 0.8 - }, - - TrendLine: { - lineColor: layoutColors.danger, - lineAlpha: 0.8 - }, - - // ammap - AreasSettings: { - alpha: 0.8, - color: layoutColors.info, - colorSolid: layoutColors.primaryDark, - unlistedAreasAlpha: 0.4, - unlistedAreasColor: "#FFFFFF", - outlineColor: "#FFFFFF", - outlineAlpha: 0.5, - outlineThickness: 0.5, - rollOverColor: layoutColors.primary, - rollOverOutlineColor: "#FFFFFF", - selectedOutlineColor: "#FFFFFF", - selectedColor: "#f15135", - unlistedAreasOutlineColor: "#FFFFFF", - unlistedAreasOutlineAlpha: 0.5 - }, - - LinesSettings: { - color: "#FFFFFF", - alpha: 0.8 - }, - - ImagesSettings: { - alpha: 0.8, - labelColor: "#FFFFFF", - color: "#FFFFFF", - labelRollOverColor: layoutColors.primaryDark - }, - - ZoomControl: { - buttonFillAlpha: 0.8, - buttonIconColor: layoutColors.defaultText, - buttonRollOverColor: layoutColors.danger, - buttonFillColor: layoutColors.primaryDark, - buttonBorderColor: layoutColors.primaryDark, - buttonBorderAlpha: 0, - buttonCornerRadius: 0, - gridColor: "#FFFFFF", - gridBackgroundColor: "#FFFFFF", - buttonIconAlpha: 0.6, - gridAlpha: 0.6, - buttonSize: 20 - }, - - SmallMap: { - mapColor: "#000000", - rectangleColor: layoutColors.danger, - backgroundColor: "#FFFFFF", - backgroundAlpha: 0.7, - borderThickness: 1, - borderAlpha: 0.8 - }, - - // the defaults below are set using CSS syntax, you can use any existing css property - // if you don't use Stock chart, you can delete lines below - PeriodSelector: { - color: "#FFFFFF" - }, - - PeriodButton: { - color: "#FFFFFF", - background: "transparent", - opacity: 0.7, - border: "1px solid rgba(0, 0, 0, .3)", - MozBorderRadius: "5px", - borderRadius: "5px", - margin: "1px", - outline: "none", - boxSizing: "border-box" - }, - - PeriodButtonSelected: { - color: "#FFFFFF", - backgroundColor: "#b9cdf5", - border: "1px solid rgba(0, 0, 0, .3)", - MozBorderRadius: "5px", - borderRadius: "5px", - margin: "1px", - outline: "none", - opacity: 1, - boxSizing: "border-box" - }, - - PeriodInputField: { - color: "#FFFFFF", - background: "transparent", - border: "1px solid rgba(0, 0, 0, .3)", - outline: "none" - }, - - DataSetSelector: { - color: "#FFFFFF", - selectedBackgroundColor: "#b9cdf5", - rollOverBackgroundColor: "#a8b0e4" - }, - - DataSetCompareList: { - color: "#FFFFFF", - lineHeight: "100%", - boxSizing: "initial", - webkitBoxSizing: "initial", - border: "1px solid rgba(0, 0, 0, .3)" - }, - - DataSetSelect: { - border: "1px solid rgba(0, 0, 0, .3)", - outline: "none" - } - - }; - } - -})(); diff --git a/src/app/pages/charts/amCharts/areaChart/AreaChartCtrl.js b/src/app/pages/charts/amCharts/areaChart/AreaChartCtrl.js deleted file mode 100644 index e5f1264..0000000 --- a/src/app/pages/charts/amCharts/areaChart/AreaChartCtrl.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('AreaChartCtrl', AreaChartCtrl); - - /** @ngInject */ - function AreaChartCtrl($scope, baConfig, $element, layoutPaths) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var areaChart = AmCharts.makeChart(id, { - type: 'serial', - theme: 'blur', - color: layoutColors.defaultText, - dataProvider: [ - { - lineColor: layoutColors.info, - date: '2012-01-01', - duration: 408 - }, - { - date: '2012-01-02', - duration: 482 - }, - { - date: '2012-01-03', - duration: 562 - }, - { - date: '2012-01-04', - duration: 379 - }, - { - lineColor: layoutColors.warning, - date: '2012-01-05', - duration: 501 - }, - { - date: '2012-01-06', - duration: 443 - }, - { - date: '2012-01-07', - duration: 405 - }, - { - date: '2012-01-08', - duration: 309, - lineColor: layoutColors.danger - }, - { - date: '2012-01-09', - duration: 287 - }, - { - date: '2012-01-10', - duration: 485 - }, - { - date: '2012-01-11', - duration: 890 - }, - { - date: '2012-01-12', - duration: 810 - } - ], - balloon: { - cornerRadius: 6, - horizontalPadding: 15, - verticalPadding: 10 - }, - valueAxes: [ - { - duration: 'mm', - durationUnits: { - hh: 'h ', - mm: 'min' - }, - gridAlpha: 0.5, - gridColor: layoutColors.border, - } - ], - graphs: [ - { - bullet: 'square', - bulletBorderAlpha: 1, - bulletBorderThickness: 1, - fillAlphas: 0.5, - fillColorsField: 'lineColor', - legendValueText: '[[value]]', - lineColorField: 'lineColor', - title: 'duration', - valueField: 'duration' - } - ], - - chartCursor: { - categoryBalloonDateFormat: 'YYYY MMM DD', - cursorAlpha: 0, - fullWidth: true - }, - dataDateFormat: 'YYYY-MM-DD', - categoryField: 'date', - categoryAxis: { - dateFormats: [ - { - period: 'DD', - format: 'DD' - }, - { - period: 'WW', - format: 'MMM DD' - }, - { - period: 'MM', - format: 'MMM' - }, - { - period: 'YYYY', - format: 'YYYY' - } - ], - parseDates: true, - autoGridCount: false, - gridCount: 50, - gridAlpha: 0.5, - gridColor: layoutColors.border, - }, - export: { - enabled: true - }, - pathToImages: layoutPaths.images.amChart - }); - - areaChart.addListener('dataUpdated', zoomAreaChart); - - function zoomAreaChart() { - areaChart.zoomToDates(new Date(2012, 0, 3), new Date(2012, 0, 11)); - } - } - -})(); diff --git a/src/app/pages/charts/amCharts/areaChart/areaChart.html b/src/app/pages/charts/amCharts/areaChart/areaChart.html deleted file mode 100644 index bd53f4b..0000000 --- a/src/app/pages/charts/amCharts/areaChart/areaChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/barChart/BarChartCtrl.js b/src/app/pages/charts/amCharts/barChart/BarChartCtrl.js deleted file mode 100644 index 2c40e31..0000000 --- a/src/app/pages/charts/amCharts/barChart/BarChartCtrl.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('BarChartCtrl', BarChartCtrl); - - /** @ngInject */ - function BarChartCtrl($scope, baConfig, $element, layoutPaths) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var barChart = AmCharts.makeChart(id, { - type: 'serial', - theme: 'blur', - color: layoutColors.defaultText, - dataProvider: [ - { - country: 'USA', - visits: 3025, - color: layoutColors.primary - }, - { - country: 'China', - visits: 1882, - color: layoutColors.danger - - }, - { - country: 'Japan', - visits: 1809, - color: layoutColors.info - }, - { - country: 'Germany', - visits: 1322, - color: layoutColors.success - }, - { - country: 'UK', - visits: 1122, - color: layoutColors.warning - }, - { - country: 'France', - visits: 1114, - color: layoutColors.primaryLight - } - ], - valueAxes: [ - { - axisAlpha: 0, - position: 'left', - title: 'Visitors from country', - gridAlpha: 0.5, - gridColor: layoutColors.border, - } - ], - startDuration: 1, - graphs: [ - { - balloonText: '[[category]]: [[value]]', - fillColorsField: 'color', - fillAlphas: 0.7, - lineAlpha: 0.2, - type: 'column', - valueField: 'visits' - } - ], - chartCursor: { - categoryBalloonEnabled: false, - cursorAlpha: 0, - zoomable: false - }, - categoryField: 'country', - categoryAxis: { - gridPosition: 'start', - labelRotation: 45, - gridAlpha: 0.5, - gridColor: layoutColors.border, - }, - export: { - enabled: true - }, - creditsPosition: 'top-right', - pathToImages: layoutPaths.images.amChart - }); - } -})(); diff --git a/src/app/pages/charts/amCharts/barChart/barChart.html b/src/app/pages/charts/amCharts/barChart/barChart.html deleted file mode 100644 index fd2617c..0000000 --- a/src/app/pages/charts/amCharts/barChart/barChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/charts.html b/src/app/pages/charts/amCharts/charts.html deleted file mode 100644 index f0aceed..0000000 --- a/src/app/pages/charts/amCharts/charts.html +++ /dev/null @@ -1,53 +0,0 @@ -
- -
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
- -
-
-
-
- - - - - -
- -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/combinedChart/combinedChart.html b/src/app/pages/charts/amCharts/combinedChart/combinedChart.html deleted file mode 100644 index 8683149..0000000 --- a/src/app/pages/charts/amCharts/combinedChart/combinedChart.html +++ /dev/null @@ -1 +0,0 @@ -
diff --git a/src/app/pages/charts/amCharts/combinedChart/combinedChartCtrl.js b/src/app/pages/charts/amCharts/combinedChart/combinedChartCtrl.js deleted file mode 100644 index 723fdbc..0000000 --- a/src/app/pages/charts/amCharts/combinedChart/combinedChartCtrl.js +++ /dev/null @@ -1,248 +0,0 @@ -/** - * @author a.demeshko - * created on 22.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('combinedChartCtrl', combinedChartCtrl); - - /** @ngInject */ - function combinedChartCtrl($element, baConfig, layoutPaths) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var chart = AmCharts.makeChart(id, { - "type": "serial", - "theme": "none", - "color": layoutColors.defaultText, - "dataDateFormat": "YYYY-MM-DD", - "precision": 2, - "valueAxes": [{ - color: layoutColors.defaultText, - axisColor: layoutColors.defaultText, - gridColor: layoutColors.defaultText, - "id": "v1", - "title": "Sales", - "position": "left", - "autoGridCount": false, - "labelFunction": function(value) { - return "$" + Math.round(value) + "M"; - } - }, { - color: layoutColors.defaultText, - axisColor: layoutColors.defaultText, - gridColor: layoutColors.defaultText, - "id": "v2", - "title": "Market Days", - "gridAlpha": 0, - "position": "right", - "autoGridCount": false - }], - "graphs": [{ - "id": "g3", - color: layoutColors.defaultText, - "valueAxis": "v1", - "lineColor": layoutColors.primaryLight, - "fillColors": layoutColors.primaryLight, - "fillAlphas": 0.8, - "lineAlpha": 0.8, - "type": "column", - "title": "Actual Sales", - "valueField": "sales2", - "clustered": false, - "columnWidth": 0.5, - "lineColorField" : layoutColors.defaultText, - "legendValueText": "$[[value]]M", - "balloonText": "[[title]]
$[[value]]M" - }, { - "id": "g4", - "valueAxis": "v1", - color: layoutColors.defaultText, - "lineColor": layoutColors.primary, - "fillColors": layoutColors.primary, - "fillAlphas": 0.9, - "lineAlpha": 0.9, - "type": "column", - "title": "Target Sales", - "valueField": "sales1", - "clustered": false, - "columnWidth": 0.3, - "legendValueText": "$[[value]]M", - "balloonText": "[[title]]
$[[value]]M" - }, { - "id": "g1", - "valueAxis": "v2", - "bullet": "round", - "bulletBorderAlpha": 1, - "bulletColor": layoutColors.defaultText, - color: layoutColors.defaultText, - "bulletSize": 5, - "hideBulletsCount": 50, - "lineThickness": 2, - "lineColor": layoutColors.danger, - "type": "smoothedLine", - "title": "Market Days", - "useLineColorForBulletBorder": true, - "valueField": "market1", - "balloonText": "[[title]]
[[value]]" - }, { - "id": "g2", - "valueAxis": "v2", - color: layoutColors.defaultText, - "bullet": "round", - "bulletBorderAlpha": 1, - "bulletColor": layoutColors.defaultText, - "bulletSize": 5, - "hideBulletsCount": 50, - "lineThickness": 2, - "lineColor": layoutColors.warning, - "type": "smoothedLine", - "dashLength": 5, - "title": "Market Days ALL", - "useLineColorForBulletBorder": true, - "valueField": "market2", - "balloonText": "[[title]]
[[value]]" - }], - "chartScrollbar": { - "graph": "g1", - "oppositeAxis": false, - "offset": 30, - gridAlpha: 0, - color: layoutColors.defaultText, - scrollbarHeight: 50, - backgroundAlpha: 0, - selectedBackgroundAlpha: 0.05, - selectedBackgroundColor: layoutColors.defaultText, - graphFillAlpha: 0, - autoGridCount: true, - selectedGraphFillAlpha: 0, - graphLineAlpha: 0.2, - selectedGraphLineColor: layoutColors.defaultText, - selectedGraphLineAlpha: 1 - }, - "chartCursor": { - "pan": true, - "cursorColor" : layoutColors.danger, - "valueLineEnabled": true, - "valueLineBalloonEnabled": true, - "cursorAlpha": 0, - "valueLineAlpha": 0.2 - }, - "categoryField": "date", - "categoryAxis": { - "axisColor": layoutColors.defaultText, - "color": layoutColors.defaultText, - "gridColor": layoutColors.defaultText, - "parseDates": true, - "dashLength": 1, - "minorGridEnabled": true - }, - "legend": { - "useGraphSettings": true, - "position": "top", - "color": layoutColors.defaultText - }, - "balloon": { - "borderThickness": 1, - "shadowAlpha": 0 - }, - "export": { - "enabled": true - }, - "dataProvider": [{ - "date": "2013-01-16", - "market1": 71, - "market2": 75, - "sales1": 5, - "sales2": 8 - }, { - "date": "2013-01-17", - "market1": 74, - "market2": 78, - "sales1": 4, - "sales2": 6 - }, { - "date": "2013-01-18", - "market1": 78, - "market2": 88, - "sales1": 5, - "sales2": 2 - }, { - "date": "2013-01-19", - "market1": 85, - "market2": 89, - "sales1": 8, - "sales2": 9 - }, { - "date": "2013-01-20", - "market1": 82, - "market2": 89, - "sales1": 9, - "sales2": 6 - }, { - "date": "2013-01-21", - "market1": 83, - "market2": 85, - "sales1": 3, - "sales2": 5 - }, { - "date": "2013-01-22", - "market1": 88, - "market2": 92, - "sales1": 5, - "sales2": 7 - }, { - "date": "2013-01-23", - "market1": 85, - "market2": 90, - "sales1": 7, - "sales2": 6 - }, { - "date": "2013-01-24", - "market1": 85, - "market2": 91, - "sales1": 9, - "sales2": 5 - }, { - "date": "2013-01-25", - "market1": 80, - "market2": 84, - "sales1": 5, - "sales2": 8 - }, { - "date": "2013-01-26", - "market1": 87, - "market2": 92, - "sales1": 4, - "sales2": 8 - }, { - "date": "2013-01-27", - "market1": 84, - "market2": 87, - "sales1": 3, - "sales2": 4 - }, { - "date": "2013-01-28", - "market1": 83, - "market2": 88, - "sales1": 5, - "sales2": 7 - }, { - "date": "2013-01-29", - "market1": 84, - "market2": 87, - "sales1": 5, - "sales2": 8 - }, { - "date": "2013-01-30", - "market1": 81, - "market2": 85, - "sales1": 4, - "sales2": 7 - }], - pathToImages: layoutPaths.images.amChart - }); - } - -})(); diff --git a/src/app/pages/charts/amCharts/funnelChart/FunnelChartCtrl.js b/src/app/pages/charts/amCharts/funnelChart/FunnelChartCtrl.js deleted file mode 100644 index 249c3f9..0000000 --- a/src/app/pages/charts/amCharts/funnelChart/FunnelChartCtrl.js +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('FunnelChartCtrl', FunnelChartCtrl); - - /** @ngInject */ - function FunnelChartCtrl($scope, $element, layoutPaths, baConfig) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var funnelChart = AmCharts.makeChart(id, { - type: 'funnel', - theme: 'blur', - color: layoutColors.defaultText, - labelTickColor: layoutColors.borderDark, - dataProvider: [ - { - title: 'Website visits', - value: 300 - }, - { - title: 'Downloads', - value: 123 - }, - { - title: 'Requested prices', - value: 98 - }, - { - title: 'Contaced', - value: 72 - }, - { - title: 'Purchased', - value: 35 - }, - { - title: 'Asked for support', - value: 25 - }, - { - title: 'Purchased more', - value: 18 - } - ], - titleField: 'title', - marginRight: 160, - marginLeft: 15, - labelPosition: 'right', - funnelAlpha: 0.9, - valueField: 'value', - startX: 0, - alpha: 0.8, - neckWidth: '0%', - startAlpha: 0, - outlineThickness: 1, - neckHeight: '0%', - balloonText: '[[title]]:[[value]]', - export: { - enabled: true - }, - creditsPosition: 'bottom-left', - pathToImages: layoutPaths - }); - } -})(); diff --git a/src/app/pages/charts/amCharts/funnelChart/funnelChart.html b/src/app/pages/charts/amCharts/funnelChart/funnelChart.html deleted file mode 100644 index 2b2295e..0000000 --- a/src/app/pages/charts/amCharts/funnelChart/funnelChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/ganttChart/ganttChart.html b/src/app/pages/charts/amCharts/ganttChart/ganttChart.html deleted file mode 100644 index 83068a1..0000000 --- a/src/app/pages/charts/amCharts/ganttChart/ganttChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/ganttChart/ganttChartCtrl.js b/src/app/pages/charts/amCharts/ganttChart/ganttChartCtrl.js deleted file mode 100644 index 64bad8e..0000000 --- a/src/app/pages/charts/amCharts/ganttChart/ganttChartCtrl.js +++ /dev/null @@ -1,297 +0,0 @@ -/** - * @author a.demeshko - * created on 22.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('ganttChartCtrl', ganttChartCtrl); - - /** @ngInject */ - function ganttChartCtrl($element) { - var id = $element[0].getAttribute('id'); - var chart = AmCharts.makeChart( id, { - "type": "gantt", - "theme": "light", - "marginRight": 70, - "period": "hh", - "dataDateFormat":"YYYY-MM-DD", - "balloonDateFormat": "JJ:NN", - "columnWidth": 0.5, - "valueAxis": { - "type": "date", - "minimum": 7, - "maximum": 31 - }, - "brightnessStep": 10, - "graph": { - "fillAlphas": 1, - "balloonText": "[[task]]: [[open]] [[value]]" - }, - "rotate": true, - "categoryField": "category", - "segmentsField": "segments", - "colorField": "color", - "startDate": "2015-01-01", - "startField": "start", - "endField": "end", - "durationField": "duration", - "dataProvider": [ - { - "category": "John", - "segments": [ { - "start": 7, - "duration": 2, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 2, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Smith", - "segments": [ { - "start": 10, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 1, - "color": "#8dc49f", - "task": "Task #3" - }, { - "duration": 4, - "color": "#46615e", - "task": "Task #1" - } ] - }, { - "category": "Ben", - "segments": [ { - "start": 12, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "start": 16, - "duration": 2, - "color": "#FFE4C4", - "task": "Task #4" - } ] - }, { - "category": "Mike", - "segments": [ { - "start": 9, - "duration": 6, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 4, - "color": "#727d6f", - "task": "Task #2" - } ] - }, { - "category": "Lenny", - "segments": [ { - "start": 8, - "duration": 1, - "color": "#8dc49f", - "task": "Task #3" - }, { - "duration": 4, - "color": "#46615e", - "task": "Task #1" - } ] - }, { - "category": "Scott", - "segments": [ { - "start": 15, - "duration": 3, - "color": "#727d6f", - "task": "Task #2" - } ] - }, { - "category": "Julia", - "segments": [ { - "start": 9, - "duration": 2, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 1, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 8, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Bob", - "segments": [ { - "start": 9, - "duration": 8, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 7, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Kendra", - "segments": [ { - "start": 11, - "duration": 8, - "color": "#727d6f", - "task": "Task #2" - }, { - "start": 16, - "duration": 2, - "color": "#FFE4C4", - "task": "Task #4" - } ] - }, { - "category": "Tom", - "segments": [ { - "start": 9, - "duration": 4, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 3, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 5, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Kyle", - "segments": [ { - "start": 6, - "duration": 3, - "color": "#727d6f", - "task": "Task #2" - } ] - }, { - "category": "Anita", - "segments": [ { - "start": 12, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "start": 16, - "duration": 2, - "color": "#FFE4C4", - "task": "Task #4" - } ] - }, { - "category": "Jack", - "segments": [ { - "start": 8, - "duration": 10, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - } ] - }, { - "category": "Kim", - "segments": [ { - "start": 12, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 3, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Aaron", - "segments": [ { - "start": 18, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 2, - "color": "#FFE4C4", - "task": "Task #4" - } ] - }, { - "category": "Alan", - "segments": [ { - "start": 17, - "duration": 2, - "color": "#46615e", - "task": "Task #1" - }, { - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 2, - "color": "#8dc49f", - "task": "Task #3" - } ] - }, { - "category": "Ruth", - "segments": [ { - "start": 13, - "duration": 2, - "color": "#727d6f", - "task": "Task #2" - }, { - "duration": 1, - "color": "#8dc49f", - "task": "Task #3" - }, { - "duration": 4, - "color": "#46615e", - "task": "Task #1" - } ] - }, { - "category": "Simon", - "segments": [ { - "start": 10, - "duration": 3, - "color": "#727d6f", - "task": "Task #2" - }, { - "start": 17, - "duration": 4, - "color": "#FFE4C4", - "task": "Task #4" - } ] - } ], - "valueScrollbar": { - "autoGridCount":true - }, - "chartCursor": { - "cursorColor":"#55bb76", - "valueBalloonsEnabled": false, - "cursorAlpha": 0, - "valueLineAlpha":0.5, - "valueLineBalloonEnabled": true, - "valueLineEnabled": true, - "zoomable":false, - "valueZoomable":true - }, - "export": { - "enabled": true - } - }); - } - -})(); diff --git a/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js b/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js deleted file mode 100644 index d3d769f..0000000 --- a/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js +++ /dev/null @@ -1,158 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('LineChartCtrl', LineChartCtrl); - - /** @ngInject */ - function LineChartCtrl($scope, baConfig, $element, layoutPaths) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var lineChart = AmCharts.makeChart(id, { - type: 'serial', - theme: 'blur', - color: layoutColors.defaultText, - marginTop: 0, - marginRight: 15, - dataProvider: [ - { - year: '1990', - value: -0.17 - }, - { - year: '1991', - value: -0.254 - }, - { - year: '1992', - value: 0.019 - }, - { - year: '1993', - value: -0.063 - }, - { - year: '1994', - value: 0.005 - }, - { - year: '1995', - value: 0.077 - }, - { - year: '1996', - value: 0.12 - }, - { - year: '1997', - value: 0.011 - }, - { - year: '1998', - value: 0.177 - }, - { - year: '1999', - value: -0.021 - }, - { - year: '2000', - value: -0.037 - }, - { - year: '2001', - value: 0.03 - }, - { - year: '2002', - value: 0.179 - }, - { - year: '2003', - value: 0.2 - }, - { - year: '2004', - value: 0.180 - }, - { - year: '2005', - value: 0.21 - } - ], - valueAxes: [ - { - axisAlpha: 0, - position: 'left', - gridAlpha: 0.5, - gridColor: layoutColors.border, - } - ], - graphs: [ - { - id: 'g1', - balloonText: '[[value]]', - bullet: 'round', - bulletSize: 8, - lineColor: layoutColors.danger, - lineThickness: 1, - negativeLineColor: layoutColors.warning, - type: 'smoothedLine', - valueField: 'value' - } - ], - chartScrollbar: { - graph: 'g1', - gridAlpha: 0, - color: layoutColors.defaultText, - scrollbarHeight: 55, - backgroundAlpha: 0, - selectedBackgroundAlpha: 0.05, - selectedBackgroundColor: layoutColors.defaultText, - graphFillAlpha: 0, - autoGridCount: true, - selectedGraphFillAlpha: 0, - graphLineAlpha: 0.2, - selectedGraphLineColor: layoutColors.defaultText, - selectedGraphLineAlpha: 1 - }, - chartCursor: { - categoryBalloonDateFormat: 'YYYY', - cursorAlpha: 0, - valueLineEnabled: true, - valueLineBalloonEnabled: true, - valueLineAlpha: 0.5, - fullWidth: true - }, - dataDateFormat: 'YYYY', - categoryField: 'year', - categoryAxis: { - minPeriod: 'YYYY', - parseDates: true, - minorGridAlpha: 0.1, - minorGridEnabled: true, - gridAlpha: 0.5, - gridColor: layoutColors.border, - }, - export: { - enabled: true - }, - creditsPosition: 'bottom-right', - pathToImages: layoutPaths.images.amChart - }); - - lineChart.addListener('rendered', zoomChart); - if (lineChart.zoomChart) { - lineChart.zoomChart(); - } - - function zoomChart() { - lineChart.zoomToIndexes(Math.round(lineChart.dataProvider.length * 0.4), Math.round(lineChart.dataProvider.length * 0.55)); - } - } - -})(); diff --git a/src/app/pages/charts/amCharts/lineChart/lineChart.html b/src/app/pages/charts/amCharts/lineChart/lineChart.html deleted file mode 100644 index 844d8c1..0000000 --- a/src/app/pages/charts/amCharts/lineChart/lineChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/charts/amCharts/pieChart/PieChartCtrl.js b/src/app/pages/charts/amCharts/pieChart/PieChartCtrl.js deleted file mode 100644 index 8d7a7d5..0000000 --- a/src/app/pages/charts/amCharts/pieChart/PieChartCtrl.js +++ /dev/null @@ -1,148 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.amCharts') - .controller('PieChartCtrl', PieChartCtrl); - - /** @ngInject */ - function PieChartCtrl($element, layoutPaths, baConfig) { - var layoutColors = baConfig.colors; - var id = $element[0].getAttribute('id'); - var pieChart = AmCharts.makeChart(id, { - type: 'pie', - startDuration: 0, - theme: 'blur', - addClassNames: true, - color: layoutColors.defaultText, - labelTickColor: layoutColors.borderDark, - legend: { - position: 'right', - marginRight: 100, - autoMargins: false, - }, - innerRadius: '40%', - defs: { - filter: [ - { - id: 'shadow', - width: '200%', - height: '200%', - feOffset: { - result: 'offOut', - in: 'SourceAlpha', - dx: 0, - dy: 0 - }, - feGaussianBlur: { - result: 'blurOut', - in: 'offOut', - stdDeviation: 5 - }, - feBlend: { - in: 'SourceGraphic', - in2: 'blurOut', - mode: 'normal' - } - } - ] - }, - dataProvider: [ - { - country: 'Lithuania', - litres: 501.9 - }, - { - country: 'Czech Republic', - litres: 301.9 - }, - { - country: 'Ireland', - litres: 201.1 - }, - { - country: 'Germany', - litres: 165.8 - }, - { - country: 'Australia', - litres: 139.9 - }, - { - country: 'Austria', - litres: 128.3 - }, - { - country: 'UK', - litres: 99 - }, - { - country: 'Belgium', - litres: 60 - } - ], - valueField: 'litres', - titleField: 'country', - export: { - enabled: true - }, - creditsPosition: 'bottom-left', - - autoMargins: false, - marginTop: 10, - alpha: 0.8, - marginBottom: 0, - marginLeft: 0, - marginRight: 0, - pullOutRadius: 0, - pathToImages: layoutPaths.images.amChart, - responsive: { - enabled: true, - rules: [ - // at 900px wide, we hide legend - { - maxWidth: 900, - overrides: { - legend: { - enabled: false - } - } - }, - - // at 200 px we hide value axis labels altogether - { - maxWidth: 200, - overrides: { - valueAxes: { - labelsEnabled: false - }, - marginTop: 30, - marginBottom: 30, - marginLeft: 30, - marginRight: 30 - } - } - ] - } - }); - - pieChart.addListener('init', handleInit); - - pieChart.addListener('rollOverSlice', function (e) { - handleRollOver(e); - }); - - function handleInit() { - pieChart.legend.addListener('rollOverItem', handleRollOver); - } - - function handleRollOver(e) { - var wedge = e.dataItem.wedge.node; - wedge.parentNode.appendChild(wedge); - } - } - -})(); diff --git a/src/app/pages/charts/amCharts/pieChart/pieChart.html b/src/app/pages/charts/amCharts/pieChart/pieChart.html deleted file mode 100644 index 68cf138..0000000 --- a/src/app/pages/charts/amCharts/pieChart/pieChart.html +++ /dev/null @@ -1 +0,0 @@ -
diff --git a/src/app/pages/charts/chartJs/chartJs.html b/src/app/pages/charts/chartJs/chartJs.html deleted file mode 100644 index 70a2a8c..0000000 --- a/src/app/pages/charts/chartJs/chartJs.html +++ /dev/null @@ -1,81 +0,0 @@ -
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
- -
-
-
-
- -
- -
-
-
-
-
- -
-
-
-
- - -
-
-
-
- - -
-
-
-
-
-
- -
-
-
-
-
-
- - -
-
-
-
- - diff --git a/src/app/pages/charts/chartJs/chartJs.module.js b/src/app/pages/charts/chartJs/chartJs.module.js deleted file mode 100644 index 3e6ce2a..0000000 --- a/src/app/pages/charts/chartJs/chartJs.module.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartJs', []) - .config(routeConfig).config(chartJsConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('charts.chartJs', { - url: '/chartJs', - templateUrl: 'app/pages/charts/chartJs/chartJs.html', - title: 'Chart.js', - sidebarMeta: { - order: 200 - } - }); - } - - function chartJsConfig(ChartJsProvider, baConfigProvider) { - var layoutColors = baConfigProvider.colors; - // Configure all charts - ChartJsProvider.setOptions({ - chartColors: [ - layoutColors.primary, layoutColors.danger, layoutColors.warning, layoutColors.success, layoutColors.info, layoutColors.default, layoutColors.primaryDark, layoutColors.successDark, layoutColors.warningLight, layoutColors.successLight, layoutColors.primaryLight], - responsive: true, - maintainAspectRatio: false, - animation: { - duration: 2500 - }, - scale: { - gridLines: { - color: layoutColors.border - }, - scaleLabel: { - fontColor: layoutColors.defaultText - }, - ticks: { - fontColor: layoutColors.defaultText, - showLabelBackdrop: false - } - } - }); - // Configure all line charts - ChartJsProvider.setOptions('Line', { - datasetFill: false - }); - // Configure all radar charts - ChartJsProvider.setOptions('radar', { - scale: { - pointLabels: { - fontColor: layoutColors.defaultText - }, - ticks: { - maxTicksLimit: 5, - display: false - } - } - }); - // Configure all bar charts - ChartJsProvider.setOptions('bar', { - tooltips: { - enabled: false - } - }); - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/chartJs/chartJs1DCtrl.js b/src/app/pages/charts/chartJs/chartJs1DCtrl.js deleted file mode 100644 index 5f62869..0000000 --- a/src/app/pages/charts/chartJs/chartJs1DCtrl.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartJs') - .controller('chartJs1DCtrl', chartJs1DCtrl); - - /** @ngInject */ - function chartJs1DCtrl($scope, baConfig) { - var layoutColors = baConfig.colors; - - $scope.labels =["Sleeping", "Designing", "Coding", "Cycling"]; - $scope.data = [20, 40, 5, 35]; - $scope.options = { - elements: { - arc: { - borderWidth: 0 - } - }, - legend: { - display: true, - position: 'bottom', - labels: { - fontColor: layoutColors.defaultText - } - } - }; - - $scope.changeData = function () { - $scope.data = shuffle($scope.data); - }; - - function shuffle(o){ - for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x){} - return o; - } - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/chartJs/chartJs2DCtrl.js b/src/app/pages/charts/chartJs/chartJs2DCtrl.js deleted file mode 100644 index 17b05ba..0000000 --- a/src/app/pages/charts/chartJs/chartJs2DCtrl.js +++ /dev/null @@ -1,32 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartJs') - .controller('chartJs2DCtrl', chartJs2DCtrl); - - /** @ngInject */ - function chartJs2DCtrl($scope) { - $scope.labels =["May", "Jun", "Jul", "Aug", "Sep"]; - $scope.data = [ - [65, 59, 90, 81, 56], - [28, 48, 40, 19, 88] - ]; - $scope.series = ['Product A', 'Product B']; - - - $scope.changeData = function () { - $scope.data[0] = shuffle($scope.data[0]); - $scope.data[1] = shuffle($scope.data[1]); - }; - - function shuffle(o){ - for(var j, x, i = o.length; i; j = Math.floor(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x){} - return o; - } - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/chartJs/chartJsWaveCtrl.js b/src/app/pages/charts/chartJs/chartJsWaveCtrl.js deleted file mode 100644 index bfa9bc3..0000000 --- a/src/app/pages/charts/chartJs/chartJsWaveCtrl.js +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartJs') - .controller('chartJsWaveCtrl', chartJsWaveCtrl); - - /** @ngInject */ - function chartJsWaveCtrl($scope, $interval, stopableInterval) { - $scope.labels =["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - $scope.data = [1, 9, 3, 4, 5, 6, 7, 8, 2].map(function(e){ - return Math.sin(e) * 25 +25; - }); - - stopableInterval.start($interval, function(){ - var tempArray = []; - var lastElement = $scope.data[$scope.data.length-1]; - for(var i = $scope.data.length-1; i > 0; i--){ - tempArray[i] = $scope.data[i-1]; - } - tempArray[0] = lastElement; - $scope.data = tempArray; - }, 400) - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/chartist/chartist.html b/src/app/pages/charts/chartist/chartist.html deleted file mode 100644 index e36c71e..0000000 --- a/src/app/pages/charts/chartist/chartist.html +++ /dev/null @@ -1,43 +0,0 @@ -
-
-
-
-
Simple line chart
-
-
Line chart with area
-
-
Bi-polar line chart with area only
-
-
-
- -
-
-
Simple bar chart
-
-
Multi-line labels bar chart
-
-
Stacked bar chart
-
-
-
-
- -
-
-
-
-
Simple Pie
-
-
-
Pie with labels
-
-
-
Donut
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/src/app/pages/charts/chartist/chartist.module.js b/src/app/pages/charts/chartist/chartist.module.js deleted file mode 100644 index 19eba7f..0000000 --- a/src/app/pages/charts/chartist/chartist.module.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @author a.demeshko - * created on 12/17/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartist', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('charts.chartist', { - url: '/chartist', - templateUrl: 'app/pages/charts/chartist/chartist.html', - title: 'Chartist', - sidebarMeta: { - order: 100, - }, - }); - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/chartist/chartistCtrl.js b/src/app/pages/charts/chartist/chartistCtrl.js deleted file mode 100644 index 7ff8098..0000000 --- a/src/app/pages/charts/chartist/chartistCtrl.js +++ /dev/null @@ -1,240 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.chartist') - .controller('chartistCtrl', chartistCtrl); - - /** @ngInject */ - function chartistCtrl($scope, $timeout, baConfig) { - - $scope.simpleLineOptions = { - color: baConfig.colors.defaultText, - fullWidth: true, - height: "300px", - chartPadding: { - right: 40 - } - }; - - $scope.simpleLineData = { - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'], - series: [ - [20, 20, 12, 45, 50], - [10, 45, 30, 14, 12], - [34, 12, 12, 40, 50], - [10, 43, 25, 22, 16], - [3, 6, 30, 33, 43] - ] - }; - - $scope.areaLineData = { - labels: [1, 2, 3, 4, 5, 6, 7, 8], - series: [ - [5, 9, 7, 8, 5, 3, 5, 4] - ] - }; - - $scope.areaLineOptions = { - fullWidth: true, - height: "300px", - low: 0, - showArea: true - }; - - $scope.biLineData = { - labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], - series: [ - [1, 2, 3, 1, -2, 0, 1], - [-2, -1, -2, -1, -2.5, -1, -2], - [0, 0, 0, 1, 2, 2.5, 2], - [2.5, 2, 1, 0.5, 1, 0.5, -1] - ] - }; - - $scope.biLineOptions = { - height: "300px", - high: 3, - low: -3, - showArea: true, - showLine: false, - showPoint: false, - fullWidth: true, - axisX: { - showGrid: false - } - }; - - $scope.simpleBarData = { - labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], - series: [ - [15, 24, 43, 27, 5, 10, 23, 44, 68, 50, 26, 8], - [13, 22, 49, 22, 4, 6, 24, 46, 57, 48, 22, 4] - ] - }; - - $scope.simpleBarOptions = { - fullWidth: true, - height: "300px" - }; - - $scope.multiBarData = { - labels: ['Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'], - series: [ - [5, 4, 3, 7], - [3, 2, 9, 5], - [1, 5, 8, 4], - [2, 3, 4, 6], - [4, 1, 2, 1] - ] - }; - - $scope.multiBarOptions = { - fullWidth: true, - height: "300px", - stackBars: true, - axisX: { - labelInterpolationFnc: function (value) { - return value.split(/\s+/).map(function (word) { - return word[0]; - }).join(''); - } - }, - axisY: { - offset: 20 - } - }; - - $scope.multiBarResponsive = [ - ['screen and (min-width: 400px)', { - reverseData: true, - horizontalBars: true, - axisX: { - labelInterpolationFnc: Chartist.noop - }, - axisY: { - offset: 60 - } - }], - ['screen and (min-width: 700px)', { - stackBars: false, - reverseData: false, - horizontalBars: false, - seriesBarDistance: 15 - }] - ]; - - $scope.stackedBarData = { - labels: ['Quarter 1', 'Quarter 2', 'Quarter 3', 'Quarter 4'], - series: [ - [800000, 1200000, 1400000, 1300000], - [200000, 400000, 500000, 300000], - [100000, 200000, 400000, 600000] - ] - }; - - $scope.stackedBarOptions = { - fullWidth: true, - height: "300px", - stackBars: true, - axisY: { - labelInterpolationFnc: function (value) { - return (value / 1000) + 'k'; - } - } - }; - - $scope.simplePieData = { - series: [5, 3, 4] - }; - - $scope.simplePieOptions = { - fullWidth: true, - height: "300px", - weight: "300px", - labelInterpolationFnc: function (value) { - return Math.round(value / 12 * 100) + '%'; - } - }; - - $scope.labelsPieData = { - labels: ['Bananas', 'Apples', 'Grapes'], - series: [20, 15, 40] - }; - - $scope.labelsPieOptions = { - fullWidth: true, - height: "300px", - weight: "300px", - labelDirection: 'explode', - labelInterpolationFnc: function (value) { - return value[0]; - } - }; - - $scope.simpleDonutData = { - labels: ['Bananas', 'Apples', 'Grapes'], - series: [20, 15, 40] - }; - - $scope.simpleDonutOptions = { - fullWidth: true, - donut: true, - height: "300px", - weight: "300px", - labelDirection: 'explode', - labelInterpolationFnc: function (value) { - return value[0]; - } - }; - - $scope.donutResponsive = getResponsive(5, 40); - - $scope.pieResponsive = getResponsive(20, 80); - - function getResponsive(padding, offset){ - return [ - ['screen and (min-width: 1550px)', { - chartPadding: padding, - labelOffset: offset, - labelDirection: 'explode', - labelInterpolationFnc: function (value) { - return value; - } - }], - ['screen and (max-width: 1200px)', { - chartPadding: padding, - labelOffset: offset, - labelDirection: 'explode', - labelInterpolationFnc: function (value) { - return value; - } - }], - ['screen and (max-width: 600px)', { - chartPadding: 0, - labelOffset: 0, - labelInterpolationFnc: function (value) { - return value[0]; - } - }] - ]; - } - - $timeout(function(){ - new Chartist.Line('#line-chart', $scope.simpleLineData, $scope.simpleLineOptions); - new Chartist.Line('#area-chart', $scope.areaLineData, $scope.areaLineOptions); - new Chartist.Line('#bi-chart', $scope.biLineData, $scope.biLineOptions); - - new Chartist.Bar('#simple-bar', $scope.simpleBarData, $scope.simpleBarOptions); - new Chartist.Bar('#multi-bar', $scope.multiBarData, $scope.multiBarOptions, $scope.multiBarResponsive); - new Chartist.Bar('#stacked-bar', $scope.stackedBarData, $scope.stackedBarOptions); - - new Chartist.Pie('#simple-pie', $scope.simplePieData, $scope.simplePieOptions, $scope.pieResponsive); - new Chartist.Pie('#label-pie', $scope.labelsPieData, $scope.labelsPieOptions); - new Chartist.Pie('#donut', $scope.simpleDonutData, $scope.simpleDonutOptions, $scope.donutResponsive); - }); - } -})(); \ No newline at end of file diff --git a/src/app/pages/charts/charts.module.js b/src/app/pages/charts/charts.module.js deleted file mode 100644 index fc3ec72..0000000 --- a/src/app/pages/charts/charts.module.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts', [ - 'BlurAdmin.pages.charts.amCharts', - 'BlurAdmin.pages.charts.chartJs', - 'BlurAdmin.pages.charts.chartist', - 'BlurAdmin.pages.charts.morris' - ]) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('charts', { - url: '/charts', - abstract: true, - template: '
', - title: 'Charts', - sidebarMeta: { - icon: 'ion-stats-bars', - order: 150, - }, - }); - } - -})(); diff --git a/src/app/pages/charts/morris/morris.html b/src/app/pages/charts/morris/morris.html deleted file mode 100644 index 6b1ae1b..0000000 --- a/src/app/pages/charts/morris/morris.html +++ /dev/null @@ -1,55 +0,0 @@ -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file diff --git a/src/app/pages/charts/morris/morris.module.js b/src/app/pages/charts/morris/morris.module.js deleted file mode 100644 index 128e4ce..0000000 --- a/src/app/pages/charts/morris/morris.module.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @author a.demeshko - * created on 12/18/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.morris', []) - .config(routeConfig).config(function(baConfigProvider){ - var layoutColors = baConfigProvider.colors; - Morris.Donut.prototype.defaults.backgroundColor = 'transparent'; - Morris.Donut.prototype.defaults.labelColor = layoutColors.defaultText; - Morris.Grid.prototype.gridDefaults.gridLineColor = layoutColors.borderDark; - Morris.Grid.prototype.gridDefaults.gridTextColor = layoutColors.defaultText; - }); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('charts.morris', { - url: '/morris', - templateUrl: 'app/pages/charts/morris/morris.html', - title: 'Morris', - sidebarMeta: { - order: 300, - } - }); - } - -})(); \ No newline at end of file diff --git a/src/app/pages/charts/morris/morrisCtrl.js b/src/app/pages/charts/morris/morrisCtrl.js deleted file mode 100644 index a4665e3..0000000 --- a/src/app/pages/charts/morris/morrisCtrl.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * @author a.demeshko - * created on 12/16/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.charts.morris') - .controller('morrisCtrl', morrisCtrl); - - /** @ngInject */ - function morrisCtrl($scope, $window, baConfig) { - var layoutColors = baConfig.colors; - $scope.colors = [layoutColors.primary, layoutColors.warning, layoutColors.danger, layoutColors.info, layoutColors.success, layoutColors.primaryDark]; - $scope.lineData = [ - {y: "2006", a: 100, b: 90}, - {y: "2007", a: 75, b: 65}, - {y: "2008", a: 50, b: 40}, - {y: "2009", a: 75, b: 65}, - {y: "2010", a: 50, b: 40}, - {y: "2011", a: 75, b: 65}, - {y: "2012", a: 100, b: 90} - ]; - $scope.areaData = [ - {y: "2006", a: 100, b: 90}, - {y: "2007", a: 75, b: 65}, - {y: "2008", a: 50, b: 40}, - {y: "2009", a: 75, b: 65}, - {y: "2010", a: 50, b: 40}, - {y: "2011", a: 75, b: 65}, - {y: "2012", a: 100, b: 90} - ]; - $scope.barData = [ - {y: "2006", a: 100, b: 90}, - {y: "2007", a: 75, b: 65}, - {y: "2008", a: 50, b: 40}, - {y: "2009", a: 75, b: 65}, - {y: "2010", a: 50, b: 40}, - {y: "2011", a: 75, b: 65}, - {y: "2012", a: 100, b: 90} - ]; - $scope.donutData = [ - {label: "Download Sales", value: 12}, - {label: "In-Store Sales", value: 30}, - {label: "Mail-Order Sales", value: 20} - ]; - - angular.element($window).bind('resize', function () { - //$window.Morris.Grid.prototype.redraw(); - }); - } - -})(); \ No newline at end of file diff --git a/src/app/pages/components/mail/MailTabCtrl.js b/src/app/pages/components/mail/MailTabCtrl.js deleted file mode 100644 index c86c4a1..0000000 --- a/src/app/pages/components/mail/MailTabCtrl.js +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail') - .controller('MailTabCtrl', MailTabCtrl); - - /** @ngInject */ - function MailTabCtrl(composeModal, mailMessages) { - - var vm = this; - vm.navigationCollapsed = true; - vm.showCompose = function(subject, to , text){ - composeModal.open({ - subject : subject, - to: to, - text: text - }) - }; - - vm.tabs = mailMessages.getTabs(); - } - -})(); diff --git a/src/app/pages/components/mail/composeBox/compose.html b/src/app/pages/components/mail/composeBox/compose.html deleted file mode 100644 index 4337188..0000000 --- a/src/app/pages/components/mail/composeBox/compose.html +++ /dev/null @@ -1,26 +0,0 @@ -
- - New message - - - - - - -
-
- - -
- - -
-
- \ No newline at end of file diff --git a/src/app/pages/components/mail/composeBox/composeBoxCtrl.js b/src/app/pages/components/mail/composeBox/composeBoxCtrl.js deleted file mode 100644 index 9c46092..0000000 --- a/src/app/pages/components/mail/composeBox/composeBoxCtrl.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @author a.demeshko - * created on 24/12/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail') - .controller('composeBoxCtrl', composeBoxCtrl); - - /** @ngInject */ - function composeBoxCtrl(subject, to, text) { - var vm = this; - vm.subject = subject; - vm.to = to; - vm.text = text; - } -})(); \ No newline at end of file diff --git a/src/app/pages/components/mail/detail/MailDetailCtrl.js b/src/app/pages/components/mail/detail/MailDetailCtrl.js deleted file mode 100644 index 42d3cbf..0000000 --- a/src/app/pages/components/mail/detail/MailDetailCtrl.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @author a.demeshko - * created on 28.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail') - .controller('MailDetailCtrl', MailDetailCtrl); - - /** @ngInject */ - function MailDetailCtrl($stateParams, mailMessages) { - var vm = this; - vm.mail = mailMessages.getMessageById($stateParams.id); - vm.label = $stateParams.label; - } - -})(); diff --git a/src/app/pages/components/mail/detail/mailDetail.html b/src/app/pages/components/mail/detail/mailDetail.html deleted file mode 100644 index a4cf541..0000000 --- a/src/app/pages/components/mail/detail/mailDetail.html +++ /dev/null @@ -1,82 +0,0 @@ -
-
-
-
- -
- -
-
-
- - -
-

{{detailCtrl.mail.name.split(' ')[0]}}

- -

{{detailCtrl.mail.name.split(' ')[1]}}

- -
- {{detailCtrl.mail.tag}} -
-
-
-
-
-
- - 777-777-7777 -
-
- - -
-
-
- -
-
-
- {{detailCtrl.mail.position}} -
-
- 12 Nezavisimosti st. Vilnius, Lithuania -
-
-
-
-
-
-
-
- {{detailCtrl.mail.subject}} - • {{detailCtrl.mail.date | date : 'h:mm a MMMM d '}} -
-
-
- -
-
-
- 1 Attachment - View | Download -
- - {{detailCtrl.mail.attachment}} -
-
-
-
- - - - - -
- -
-
-
Nothing to show
-
-
\ No newline at end of file diff --git a/src/app/pages/components/mail/list/MailListCtrl.js b/src/app/pages/components/mail/list/MailListCtrl.js deleted file mode 100644 index 9330ffc..0000000 --- a/src/app/pages/components/mail/list/MailListCtrl.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @author a.demeshko - * created on 28.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail') - .controller('MailListCtrl', MailListCtrl); - - /** @ngInject */ - function MailListCtrl($stateParams, mailMessages) { - var vm = this; - vm.messages = mailMessages.getMessagesByLabel($stateParams.label); - vm.label = $stateParams.label; - } - -})(); diff --git a/src/app/pages/components/mail/mail.html b/src/app/pages/components/mail/mail.html deleted file mode 100644 index 605cab0..0000000 --- a/src/app/pages/components/mail/mail.html +++ /dev/null @@ -1,42 +0,0 @@ -
-
-
-
-
-
- -
-
- {{t.name}}{{t.newMails}} -
-
-
- -
-
-
- Work -
-
- Family -
-
- Friend -
-
- Study -
-
-
-
- Add new label -
-
- -
-
-
-
\ No newline at end of file diff --git a/src/app/pages/components/mail/mail.module.js b/src/app/pages/components/mail/mail.module.js deleted file mode 100644 index 335ee64..0000000 --- a/src/app/pages/components/mail/mail.module.js +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider,$urlRouterProvider) { - $stateProvider - .state('components.mail', { - url: '/mail', - abstract: true, - templateUrl: 'app/pages/components/mail/mail.html', - controller: "MailTabCtrl", - controllerAs: "tabCtrl", - title: 'Mail', - sidebarMeta: { - order: 0, - }, - }).state('components.mail.label', { - url: '/:label', - templateUrl: 'app/pages/components/mail/list/mailList.html', - title: 'Mail', - controller: "MailListCtrl", - controllerAs: "listCtrl" - }).state('components.mail.detail', { - url: '/:label/:id', - templateUrl: 'app/pages/components/mail/detail/mailDetail.html', - title: 'Mail', - controller: "MailDetailCtrl", - controllerAs: "detailCtrl" - }); - $urlRouterProvider.when('/components/mail','/components/mail/inbox'); - } - -})(); diff --git a/src/app/pages/components/mail/mailMessages.js b/src/app/pages/components/mail/mailMessages.js deleted file mode 100644 index c6af52c..0000000 --- a/src/app/pages/components/mail/mailMessages.js +++ /dev/null @@ -1,249 +0,0 @@ -/** - * @author a.demeshko - * created on 12/29/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.mail') - .service('mailMessages', mailMessages); - - /** @ngInject */ - function mailMessages($sce) { - var messages = [ - { - "id": "4563faass", - "name": "Nasta Linnie", - "subject": "Great text", - "date": "2015-08-28T07:57:09", - "body": $sce.trustAsHtml("

Hey John,

Check out this cool text.

"), - "pic": "img/Nasta.png", - "email": "petraramsey@mail.com", - "attachment": "poem.txt", - "position": "Great Employee", - "tag": "friend", - "labels": ['inbox'] - }, - { - "id": "4563fdfvd", - "name": "Nasta Linnie", - "subject": "Lores ipsum", - "date": "2015-11-19T03:30:45", - "important": false, - "body": $sce.trustAsHtml("

Hey John,


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ex mauris, ultrices vel lectus quis, scelerisque hendrerit ipsum. Suspendisse ullamcorper turpis neque, eget dapibus magna placerat ac. Suspendisse rhoncus ligula ac mi tempus varius ut sed lacus. Sed et commodo nulla, et placerat leo. Nam rhoncus vulputate sem non pharetra. Praesent fringilla massa in laoreet convallis. Aliquam lobortis dui a congue facilisis. Aenean dapibus semper semper. Quisque aliquam, nibh dapibus interdum condimentum, ex velit tempor tortor, at vestibulum magna leo quis leo. Morbi pulvinar varius erat ac rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; In hac habitasse platea dictumst.

" + - "

Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), - "pic": "img/Nasta.png", - "email": "petraramsey@mail.com", - "position": "Great Employee", - "tag": "study", - "labels": ['inbox'] - }, - { - "id": "4563zxcss", - "name": "Nasta Linnie", - "subject": "Lores ipsum", - "date": "2015-10-19T03:30:45", - "important": false, - "body": $sce.trustAsHtml("

Hey Nasta,

Lorem ipsum dolor sit amet, consectetur adipiscing elit

"), - "pic": "img/Nasta.png", - "email": "petraramsey@mail.com", - "position": "Great Employee", - "tag": "work", - "labels": ['sent', 'important'] - }, - { - "id": "8955sddf", - "name": "Nick Cat", - "subject": "New Design", - "date": "2015-05-05T12:59:45", - "body": $sce.trustAsHtml("

Hey John, Consectetur adipiscing elit


" + - "

Cras rhoncus quam ipsum, vel dignissim nisl egestas sed. Aliquam erat volutpat. Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), - "pic": "img/Nick.png", - "email": "barlowshort@mail.com", - "position": "Graphical designer", - "attachment": "design.psd", - "tag": "work", - "labels": ['inbox'] - }, - { - "id": "8955sdfcc", - "name": "Nick Cat", - "subject": "Gift card", - "date": "2015-07-18T10:19:01", - "body": $sce.trustAsHtml("

Hey John,


Consectetur adipiscing elit, Lorem ipsum dolor sit amet

"), - "pic": "img/Nick.png", - "email": "barlowshort@mail.com", - "position": "Graphical designer", - "tag": "study", - "labels": ['inbox'] - }, - { - "id": "8955asewf", - "name": "Nick Cat", - "subject": "Some news", - "date": "2015-09-23T03:04:10", - "body": $sce.trustAsHtml("

Hey John,


Integer eu nisl elit. Donec malesuada diam vitae tellus luctus tincidunt. Donec tempus blandit neque, rutrum egestas ipsum sagittis tempor. Curabitur volutpat ligula enim, nec vehicula purus molestie at. Sed a facilisis enim, nec molestie magna. Donec in augue non est viverra dapibus vel tempus risus. Nam porttitor purus sit amet hendrerit ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.

"), - "pic": "img/Nick.png", - "email": "barlowshort@mail.com", - "position": "Graphical designer", - "tag": "work", - "labels": ['inbox', 'important'] - }, - { - "id": "2334uudsa", - "name": "Kostya Danovsky", - "subject": "Street Art", - "date": "2015-11-22T10:05:09", - "body": $sce.trustAsHtml("

Hey John,

Aliquam eu facilisis eros, quis varius est.

" + - "

Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

" + - "

Lorem ipsum dolor sit amet! Nullam imperdiet justo a ipsum laoreet euismod.

" + - "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed." + - "Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic

"), - "pic": "img/Kostya.png", - "email": "schwart@mail.com", - "position": "Technical Chef", - "attachment": "file.doc", - "tag": "family", - "labels": ['inbox', 'important'] - }, - { - "id": "2334aefvv", - "name": "Kostya Danovsky", - "subject": "New product", - "date": "2015-06-22T06:26:10", - "body": $sce.trustAsHtml("

Hello John,

Lorem ipsum dolor sit amet!

" + - "

Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

" + - "

Aliquam eu facilisis eros, quis varius est. Nullam imperdiet justo a ipsum laoreet euismod.

" + - "

Nulla facilisi. Nulla congue, arcu eget blandit lacinia, leo ante ullamcorper lectus, vel pulvinar justo ipsum vitae justo." + - "Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic

"), - "pic": "img/Kostya.png", - "email": "schwart@mail.com", - "position": "Technical Chef", - "tag": "family", - "labels": ['inbox', 'important'] - }, - { - "id": "2334cvdss", - "name": "Kostya Danovsky", - "subject": "Old product", - "date": "2015-06-22T06:26:10", - "body": $sce.trustAsHtml("

Hello John,

" + - "

Consectetur adipiscing elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

" + - "
"+ - "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic

"), - "pic": "img/Kostya.png", - "email": "schwart@mail.com", - "position": "Technical Chef", - "tag": "study", - "labels": ['trash'] - }, - { - "id": "8223xzxfn", - "name": "Andrey Hrabouski", - "subject": "Skype moji", - "date": "2015-07-16T06:47:53", - "body": $sce.trustAsHtml("

Hello John,

Aliquam sodales sem in nibh pellentesque

" + - "

Lorem ipsum dolor I find moji in skype sit amet!.

"), - "pic": "img/Andrey.png", - "email": "lakeishaphillips@mail.com", - "position": "Mobile Developer", - "tag": 'family', - "labels": ['trash'] - }, - { - "id": "8223sdffn", - "name": "Andrey Hrabouski", - "subject": "My App", - "date": "2015-06-20T07:05:02", - "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + - "

Consectetur My Falasson App elit. Aliquam sodales sem in nibh pellentesque, ac dignissim mi dapibus.

"), - "pic": "img/Andrey.png", - "email": "lakeishaphillips@mail.com", - "position": "Mobile Developer", - "tag": 'family', - "labels": ['spam'] - }, - { - "id": "9391xdsff", - "name": "Vlad Lugovsky", - "subject": "Cool", - "date": "2015-03-31T11:52:58", - "body": $sce.trustAsHtml("

Hey Vlad.

Aliquam sodales sem in nibh pellentesque

" + - "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed.

"), - "pic": "img/Vlad.png", - "email": "carlsongoodman@mail.com", - "position": "Fullstack man", - "tag": "study", - "labels": ['draft'] - }, - { - "id": "8223xsdaa", - "name": "Andrey Hrabouski", - "subject": "Car rent", - "date": "2015-02-25T10:58:58", - "body": $sce.trustAsHtml("

Hey Andrey.

" + - "

Cras tincidunt fermentum lectus, quis scelerisque lorem volutpat sed. Sed quis orci sed nisl sagittis viverra id at mauris. Nam venenatis mi nibh. Sed fringilla mattis vehic

"), - "pic": "img/Andrey.png", - "email": "lakeishaphillips@mail.com", - "position": "Mobile Developer", - "tag": "family", - "labels": ['draft'] - }, - { - "id": "9391xdsff", - "name": "Vlad Lugovsky", - "subject": "What next", - "date": "2015-03-31T11:52:58", - "body": $sce.trustAsHtml("

Hey Vlad.

Lorem ipsum dolor sit amet!

" + - "

Esse esse labore tempor ullamco ullamco. Id veniam laborum c.

"), - "pic": "img/Vlad.png", - "email": "carlsongoodman@mail.com", - "position": "Fullstack man", - "tag": "study", - "labels": ['sent'] - } - ].sort(function (a, b) { - if (a.date > b.date) return 1; - if (a.date < b.date) return -1; - }).reverse(); - var tabs = [{ - label: 'inbox', - name: 'Inbox', - newMails: 7 - }, { - label: 'sent', - name: 'Sent Mail' - }, { - label: 'important', - name: 'Important' - }, { - label: 'draft', - name: 'Draft', - newMails: 2 - }, { - label: 'spam', - name: 'Spam' - }, { - label: 'trash', - name: 'Trash' - }]; - - return{ - getTabs : function(){ - return tabs - }, - getMessagesByLabel : function(label){ - return messages.filter(function(m){ - return m.labels.indexOf(label) != -1; - }); - }, - getMessageById : function(id){ - return messages.filter(function(m){ - return m.id == id; - })[0]; - } - } - - } - -})(); \ No newline at end of file diff --git a/src/app/pages/components/timeline/TimelineCtrl.js b/src/app/pages/components/timeline/TimelineCtrl.js deleted file mode 100644 index 5c9311f..0000000 --- a/src/app/pages/components/timeline/TimelineCtrl.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.timeline') - .controller('TimelineCtrl', TimelineCtrl); - - /** @ngInject */ - function TimelineCtrl() { - var timelineBlocks = $('.cd-timeline-block'), - offset = 0.8; - - //hide timeline blocks which are outside the viewport - hideBlocks(timelineBlocks, offset); - - //on scolling, show/animate timeline blocks when enter the viewport - $(window).on('scroll', function () { - if (!window.requestAnimationFrame) { - setTimeout(function () { - showBlocks(timelineBlocks, offset); - }, 100); - } else { - window.requestAnimationFrame(function () { - showBlocks(timelineBlocks, offset); - }); - } - }); - - function hideBlocks(blocks, offset) { - blocks.each(function () { - ( $(this).offset().top > $(window).scrollTop() + $(window).height() * offset ) && $(this).find('.cd-timeline-img, .cd-timeline-content').addClass('is-hidden'); - }); - } - - function showBlocks(blocks, offset) { - blocks.each(function () { - ( $(this).offset().top <= $(window).scrollTop() + $(window).height() * offset && $(this).find('.cd-timeline-img').hasClass('is-hidden') ) && $(this).find('.cd-timeline-img, .cd-timeline-content').removeClass('is-hidden').addClass('bounce-in'); - }); - } - } -})(); \ No newline at end of file diff --git a/src/app/pages/components/timeline/timeline.html b/src/app/pages/components/timeline/timeline.html deleted file mode 100644 index cafb8e1..0000000 --- a/src/app/pages/components/timeline/timeline.html +++ /dev/null @@ -1,101 +0,0 @@ - -
-
-
-
-
-
- -
-
Title of section 1
- -

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto, optio, dolorum provident rerum aut hic quasi - placeat iure tempora laudantium ipsa ad debitis unde? Iste voluptatibus minus veritatis qui ut.

- Jan 14 -
-
- -
-
-
-
- -
-
Title of section 2
- -

Donec dapibus at leo eget volutpat. Praesent dolor tellus, ultricies venenatis molestie eu, luctus eget nibh. - Curabitur ullamcorper eleifend nisl.

- Jan 18 -
-
- -
-
-
-
- -
-
Title of section 3
- -

Phasellus auctor tellus eget lacinia condimentum. Cum sociis natoque penatibus et magnis dis parturient - montes.

- Feb 18 -
-
- -
-
-
-
- -
-
Title of section 4
- -

Morbi fringilla in massa ac posuere. Fusce non sagittis massa, id accumsan odio. Nullam eget tempor est. - Etiam eu felis eu purus aliquam tristique id quis nisl. Nam eros nibh, consequat sed pulvinar eu, ultrices - ornare ligula. Aenean interdum sed nunc sed hendrerit.

- Feb 20 -
-
-
-
-
-
- -
-
Title of section 5
- -

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur eget mattis - metus. Nullam egestas eros metus, quis fringilla urna accumsan sed. Aliquam ultrices at arcu vitae - tincidunt.

- Feb 21 -
-
-
-
-
-
- -
-
Title of section 6
- -

Praesent bibendum ante mattis augue consectetur, ut commodo turpis consequat. Donec ligula eros, porta in - iaculis vel, semper ac sem. Integer at mauris lorem.

- Feb 23 -
-
-
-
-
-
- -
-
Title of section 7
- -

Vivamus ut laoreet erat, vitae eleifend eros. Sed varius id tellus non lobortis. Sed dolor ante, cursus non - scelerisque sed, euismod id eros.

- Feb 24 -
-
-
-
\ No newline at end of file diff --git a/src/app/pages/components/timeline/timeline.module.js b/src/app/pages/components/timeline/timeline.module.js deleted file mode 100644 index e111797..0000000 --- a/src/app/pages/components/timeline/timeline.module.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @author a.demeshko - * created on 1/12/16 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.timeline', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('components.timeline', { - url: '/timeline', - templateUrl: 'app/pages/components/timeline/timeline.html', - title: 'Timeline', - sidebarMeta: { - icon: 'ion-ios-pulse', - order: 100, - }, - }); - } -})(); \ No newline at end of file diff --git a/src/app/pages/components/tree/tree.html b/src/app/pages/components/tree/tree.html deleted file mode 100644 index 3f1cde1..0000000 --- a/src/app/pages/components/tree/tree.html +++ /dev/null @@ -1,33 +0,0 @@ -
-
-
-
-
-
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- diff --git a/src/app/pages/components/tree/tree.module.js b/src/app/pages/components/tree/tree.module.js deleted file mode 100644 index da26197..0000000 --- a/src/app/pages/components/tree/tree.module.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @author a.demeshko - * created on 12.21.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.tree', []) - .config(routeConfig) - .config(function(){ - $.jstree.defaults.core.themes.url = true; - $.jstree.defaults.core.themes.dir = "assets/img/theme/vendor/jstree/dist/themes"; - }); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('components.tree', { - url: '/tree', - templateUrl: 'app/pages/components/tree/tree.html', - title: 'Tree View', - sidebarMeta: { - order: 200, - }, - }); - } - -})(); diff --git a/src/app/pages/components/tree/treeCtrl.js b/src/app/pages/components/tree/treeCtrl.js deleted file mode 100644 index b5a7bb3..0000000 --- a/src/app/pages/components/tree/treeCtrl.js +++ /dev/null @@ -1,387 +0,0 @@ -/** - * @author a.demeshko - * created on 12/21/15 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.components.tree') - .controller('treeCtrl', treeCtrl); - - /** @ngInject */ - function treeCtrl($scope, $timeout) { - - $scope.ignoreChanges = false; - var newId = 0; - $scope.ignoreChanges = false; - $scope.newNode = {}; - - $scope.basicConfig = { - core: { - multiple: false, - check_callback: true, - worker: true - }, - 'types': { - 'folder': { - 'icon': 'ion-ios-folder' - }, - 'default': { - 'icon': 'ion-document-text' - } - }, - 'plugins': ['types'], - 'version': 1 - }; - - $scope.dragConfig = { - 'core': { - 'check_callback': true, - 'themes': { - 'responsive': false - } - }, - 'types': { - 'folder': { - 'icon': 'ion-ios-folder' - }, - 'default': { - 'icon': 'ion-document-text' - } - }, - "plugins": ["dnd", 'types'] - }; - - $scope.addNewNode = function () { - $scope.ignoreChanges = true; - var selected = this.basicTree.jstree(true).get_selected()[0]; - if (selected) - $scope.treeData.push({ - id: (newId++).toString(), - parent: selected, - text: "New node " + newId, - state: {opened: true} - }); - $scope.basicConfig.version++; - }; - - - $scope.refresh = function () { - $scope.ignoreChanges = true; - newId = 0; - $scope.treeData = getDefaultData(); - $scope.basicConfig.version++; - }; - - $scope.expand = function () { - $scope.ignoreChanges = true; - $scope.treeData.forEach(function (n) { - n.state.opened = true; - }); - $scope.basicConfig.version++; - }; - - $scope.collapse = function () { - $scope.ignoreChanges = true; - $scope.treeData.forEach(function (n) { - n.state.opened = false; - }); - $scope.basicConfig.version++; - }; - - $scope.readyCB = function() { - $timeout(function() { - $scope.ignoreChanges = false; - }); - }; - - - $scope.applyModelChanges = function() { - return !$scope.ignoreChanges; - }; - - $scope.treeData = getDefaultData(); - $scope.dragData = [ - { - "id": "nd1", - "parent": "#", - "type": "folder", - "text": "Node 1", - "state": { - "opened": true - } - }, - { - "id": "nd2", - "parent": "#", - "type": "folder", - "text": "Node 2", - "state": { - "opened": true - } - }, - { - "id": "nd3", - "parent": "#", - "type": "folder", - "text": "Node 3", - "state": { - "opened": true - } - }, - { - "id": "nd4", - "parent": "#", - "type": "folder", - "text": "Node 4", - "state": { - "opened": true - } - }, - { - "id": "nd5", - "parent": "nd1", - "text": "Node 1.1", - "state": { - "opened": true - } - }, - { - "id": "nd6", - "parent": "nd1", - "text": "Node 1.2", - "state": { - "opened": true - } - }, - { - "id": "nd7", - "parent": "nd1", - "text": "Node 1.3", - "state": { - "opened": true - } - }, - { - "id": "nd8", - "parent": "nd2", - "text": "Node 2.1", - "state": { - "opened": true - } - }, - { - "id": "nd9", - "parent": "nd2", - "text": "Node 2.2", - "state": { - "opened": true - } - }, - { - "id": "nd10", - "parent": "nd2", - "text": "Node 2.3", - "state": { - "opened": true - } - }, - { - "id": "nd11", - "parent": "nd3", - "text": "Node 3.1", - "state": { - "opened": true - } - }, - { - "id": "nd12", - "parent": "nd3", - "text": "Node 3.2", - "state": { - "opened": true - } - }, - { - "id": "nd13", - "parent": "nd3", - "text": "Node 3.3", - "state": { - "opened": true - } - }, - { - "id": "nd14", - "parent": "nd4", - "text": "Node 4.1", - "state": { - "opened": true - } - }, - { - "id": "nd15", - "parent": "nd4", - "text": "Node 4.2", - "state": { - "opened": true - } - }, - { - "id": "nd16", - "parent": "nd4", - "text": "Node 4.3", - "state": { - "opened": true - } - } - ]; - - function getDefaultData() { - return [ - { - "id": "n1", - "parent": "#", - "type": "folder", - "text": "Node 1", - "state": { - "opened": true - } - }, - { - "id": "n2", - "parent": "#", - "type": "folder", - "text": "Node 2", - "state": { - "opened": true - } - }, - { - "id": "n3", - "parent": "#", - "type": "folder", - "text": "Node 3", - "state": { - "opened": true - } - }, - { - "id": "n5", - "parent": "n1", - "text": "Node 1.1", - "state": { - "opened": true - } - }, - { - "id": "n6", - "parent": "n1", - "text": "Node 1.2", - "state": { - "opened": true - } - }, - { - "id": "n7", - "parent": "n1", - "text": "Node 1.3", - "state": { - "opened": true - } - }, - { - "id": "n8", - "parent": "n1", - "text": "Node 1.4", - "state": { - "opened": true - } - }, - { - "id": "n9", - "parent": "n2", - "text": "Node 2.1", - "state": { - "opened": true - } - }, - { - "id": "n10", - "parent": "n2", - "text": "Node 2.2 (Custom icon)", - "icon": "ion-help-buoy", - "state": { - "opened": true - } - }, - { - "id": "n12", - "parent": "n3", - "text": "Node 3.1", - "state": { - "opened": true - } - }, - { - "id": "n13", - "parent": "n3", - "type": "folder", - "text": "Node 3.2", - "state": { - "opened": true - } - }, - { - "id": "n14", - "parent": "n13", - "text": "Node 3.2.1", - "state": { - "opened": true - } - }, - { - "id": "n15", - "parent": "n13", - "text": "Node 3.2.2", - "state": { - "opened": true - } - }, - { - "id": "n16", - "parent": "n3", - "text": "Node 3.3", - "state": { - "opened": true - } - }, - { - "id": "n17", - "parent": "n3", - "text": "Node 3.4", - "state": { - "opened": true - } - }, - { - "id": "n18", - "parent": "n3", - "text": "Node 3.5", - "state": { - "opened": true - } - }, - { - "id": "n19", - "parent": "n3", - "text": "Node 3.6", - "state": { - "opened": true - } - } - ] - } - - - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/blurFeed/BlurFeedCtrl.js b/src/app/pages/dashboard/blurFeed/BlurFeedCtrl.js deleted file mode 100644 index 680cef5..0000000 --- a/src/app/pages/dashboard/blurFeed/BlurFeedCtrl.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('BlurFeedCtrl', BlurFeedCtrl); - - /** @ngInject */ - function BlurFeedCtrl($scope) { - $scope.feed = [ - { - type: 'text-message', - author: 'Kostya', - surname: 'Danovsky', - header: 'Posted new message', - text: 'Guys, check this out: \nA police officer found a perfect hiding place for watching for speeding motorists. One day, the officer was amazed when everyone was under the speed limit, so he investigated and found the problem. A 10 years old boy was standing on the side of the road with a huge hand painted sign which said "Radar Trap Ahead." A little more investigative work led the officer to the boy\'s accomplice: another boy about 100 yards beyond the radar trap with a sign reading "TIPS" and a bucket at his feet full of change.', - time: 'Today 11:55 pm', - ago: '25 minutes ago', - expanded: false, - }, { - type: 'video-message', - author: 'Andrey', - surname: 'Hrabouski', - header: 'Added new video', - text: '"Vader and Me"', - preview: 'app/feed/vader-and-me-preview.png', - link: 'https://www.youtube.com/watch?v=IfcpzBbbamk', - time: 'Today 9:30 pm', - ago: '3 hrs ago', - expanded: false, - }, { - type: 'image-message', - author: 'Vlad', - surname: 'Lugovsky', - header: 'Added new image', - text: '"My little kitten"', - preview: 'app/feed/my-little-kitten.png', - link: 'http://api.ning.com/files/DtcI2O2Ry7A7VhVxeiWfGU9WkHcMy4WSTWZ79oxJq*h0iXvVGndfD7CIYy-Ax-UAFCBCdqXI4GCBw3FOLKTTjQc*2cmpdOXJ/1082127884.jpeg', - time: 'Today 2:20 pm', - ago: '10 hrs ago', - expanded: false, - }, { - type: 'text-message', - author: 'Nasta', - surname: 'Linnie', - header: 'Posted new message', - text: 'Haha lol', - time: '11.11.2015', - ago: '2 days ago', - expanded: false, - }, { - type: 'geo-message', - author: 'Nick', - surname: 'Cat', - header: 'Posted location', - text: '"New York, USA"', - preview: 'app/feed/new-york-location.png', - link: 'https://www.google.by/maps/place/New+York,+NY,+USA/@40.7201111,-73.9893872,14z', - time: '11.11.2015', - ago: '2 days ago', - expanded: false, - }, { - type: 'text-message', - author: 'Vlad', - surname: 'Lugovsky', - header: 'Posted new message', - text: "First snake: I hope I'm not poisonous. Second snake: Why? First snake: Because I bit my lip!", - time: '12.11.2015', - ago: '3 days ago', - expanded: false, - }, { - type: 'text-message', - author: 'Andrey', - surname: 'Hrabouski', - header: 'Posted new message', - text: 'How do you smuggle an elephant across the border? Put a slice of bread on each side, and call him "lunch".', - time: '14.11.2015', - ago: '5 days ago', - expanded: false, - }, { - type: 'text-message', - author: 'Nasta', - surname: 'Linnie', - header: 'Posted new message', - text: 'When your hammer is C++, everything begins to look like a thumb.', - time: '14.11.2015', - ago: '5 days ago', - expanded: false, - }, { - type: 'text-message', - author: 'Alexander', - surname: 'Demeshko', - header: 'Posted new message', - text: '“I mean, they say you die twice. One time when you stop breathing and a second time, a bit later on, when somebody says your name for the last time." ©', - time: '15.11.2015', - ago: '6 days ago', - expanded: false, - }, { - type: 'image-message', - author: 'Nick', - surname: 'Cat', - header: 'Posted photo', - text: '"Protein Heroes"', - preview: 'app/feed/genom.png', - link: 'https://dribbble.com/shots/2504810-Protein-Heroes', - time: '16.11.2015', - ago: '7 days ago', - expanded: false, - }, - { - type: 'text-message', - author: 'Kostya', - surname: 'Danovsky', - header: 'Posted new message', - text: 'Why did the CoffeeScript developer keep getting lost? Because he couldn\'t find his source without a map', - time: '18.11.2015', - ago: '9 days ago', - expanded: false, - } - ]; - - $scope.expandMessage = function(message){ - message.expanded = !message.expanded; - } - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/blurFeed/blurFeed.directive.js b/src/app/pages/dashboard/blurFeed/blurFeed.directive.js deleted file mode 100644 index 954cdc8..0000000 --- a/src/app/pages/dashboard/blurFeed/blurFeed.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('blurFeed', blurFeed); - - /** @ngInject */ - function blurFeed() { - return { - restrict: 'E', - controller: 'BlurFeedCtrl', - templateUrl: 'app/pages/dashboard/blurFeed/blurFeed.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/blurFeed/blurFeed.html b/src/app/pages/dashboard/blurFeed/blurFeed.html deleted file mode 100644 index 958181d..0000000 --- a/src/app/pages/dashboard/blurFeed/blurFeed.html +++ /dev/null @@ -1,33 +0,0 @@ - -
-
-
- -
-
- - -
-
-
- {{ ::message.author }} {{ ::message.surname}} -
-
- {{message.header}} {{::message.text}} -
-
- - - -
-
-
- {{::message.time}} -
-
- {{::message.ago}} -
-
-
-
-
diff --git a/src/app/pages/dashboard/calendar/dashboardCalendar.js b/src/app/pages/dashboard/calendar/dashboardCalendar.js deleted file mode 100644 index 991a4d0..0000000 --- a/src/app/pages/dashboard/calendar/dashboardCalendar.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .service('dashboardCalendar', dashboardCalendar); - - /** @ngInject */ - function dashboardCalendar() { - - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboard.html b/src/app/pages/dashboard/dashboard.html deleted file mode 100644 index 8119ac6..0000000 --- a/src/app/pages/dashboard/dashboard.html +++ /dev/null @@ -1,63 +0,0 @@ - - -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- - diff --git a/src/app/pages/dashboard/dashboard.module.js b/src/app/pages/dashboard/dashboard.module.js deleted file mode 100644 index 51eedb2..0000000 --- a/src/app/pages/dashboard/dashboard.module.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('dashboard', { - url: '/dashboard', - templateUrl: 'app/pages/dashboard/dashboard.html', - title: 'Dashboard', - sidebarMeta: { - icon: 'ion-android-home', - order: 0, - }, - }); - } - -})(); diff --git a/src/app/pages/dashboard/dashboardCalendar/DashboardCalendarCtrl.js b/src/app/pages/dashboard/dashboardCalendar/DashboardCalendarCtrl.js deleted file mode 100644 index f437491..0000000 --- a/src/app/pages/dashboard/dashboardCalendar/DashboardCalendarCtrl.js +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('DashboardCalendarCtrl', DashboardCalendarCtrl); - - /** @ngInject */ - function DashboardCalendarCtrl(baConfig) { - var dashboardColors = baConfig.colors.dashboard; - var $element = $('#calendar').fullCalendar({ - //height: 335, - header: { - left: 'prev,next today', - center: 'title', - right: 'month,agendaWeek,agendaDay' - }, - defaultDate: '2016-03-08', - selectable: true, - selectHelper: true, - select: function (start, end) { - var title = prompt('Event Title:'); - var eventData; - if (title) { - eventData = { - title: title, - start: start, - end: end - }; - $element.fullCalendar('renderEvent', eventData, true); // stick? = true - } - $element.fullCalendar('unselect'); - }, - editable: true, - eventLimit: true, // allow "more" link when too many events - events: [ - { - title: 'All Day Event', - start: '2016-03-01', - color: dashboardColors.silverTree - }, - { - title: 'Long Event', - start: '2016-03-07', - end: '2016-03-10', - color: dashboardColors.blueStone - }, - { - title: 'Dinner', - start: '2016-03-14T20:00:00', - color: dashboardColors.surfieGreen - }, - { - title: 'Birthday Party', - start: '2016-04-01T07:00:00', - color: dashboardColors.gossipDark - } - ] - }); - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.directive.js b/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.directive.js deleted file mode 100644 index bce9df5..0000000 --- a/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('dashboardCalendar', dashboardCalendar); - - /** @ngInject */ - function dashboardCalendar() { - return { - restrict: 'E', - controller: 'DashboardCalendarCtrl', - templateUrl: 'app/pages/dashboard/dashboardCalendar/dashboardCalendar.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.html b/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.html deleted file mode 100644 index bea1b22..0000000 --- a/src/app/pages/dashboard/dashboardCalendar/dashboardCalendar.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardLineChart/DashboardLineChartCtrl.js b/src/app/pages/dashboard/dashboardLineChart/DashboardLineChartCtrl.js deleted file mode 100644 index 72191c4..0000000 --- a/src/app/pages/dashboard/dashboardLineChart/DashboardLineChartCtrl.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('DashboardLineChartCtrl', DashboardLineChartCtrl); - - /** @ngInject */ - function DashboardLineChartCtrl(baConfig, layoutPaths, baUtil) { - var layoutColors = baConfig.colors; - var graphColor = baConfig.theme.blur ? '#000000' : layoutColors.primary; - var chartData = [ - { date: new Date(2012, 11), value: 0, value0: 0 }, - { date: new Date(2013, 0), value: 15000, value0: 19000}, - { date: new Date(2013, 1), value: 30000, value0: 20000}, - - { date: new Date(2013, 2), value: 25000, value0: 22000}, - { date: new Date(2013, 3), value: 21000, value0: 25000}, - { date: new Date(2013, 4), value: 24000, value0: 29000}, - { date: new Date(2013, 5), value: 31000, value0: 26000}, - { date: new Date(2013, 6), value: 40000, value0: 25000}, - { date: new Date(2013, 7), value: 37000, value0: 20000}, - { date: new Date(2013, 8), value: 18000, value0: 22000}, - { date: new Date(2013, 9), value: 5000, value0: 26000}, - { date: new Date(2013, 10), value: 40000, value0: 30000}, - { date: new Date(2013, 11), value: 20000, value0: 25000}, - { date: new Date(2014, 0), value: 5000, value0: 13000}, - - { date: new Date(2014, 1), value: 3000, value0: 13000}, - { date: new Date(2014, 2), value: 1800, value0: 13000}, - { date: new Date(2014, 3), value: 10400, value0: 13000}, - { date: new Date(2014, 4), value: 25500, value0: 13000}, - { date: new Date(2014, 5), value: 2100, value0: 13000}, - { date: new Date(2014, 6), value: 6500, value0: 13000}, - { date: new Date(2014, 7), value: 1100, value0: 13000}, - { date: new Date(2014, 8), value: 17200, value0: 13000}, - { date: new Date(2014, 9), value: 26900, value0: 13000}, - { date: new Date(2014, 10), value: 14100, value0: 13000}, - { date: new Date(2014, 11), value: 35300, value0: 13000}, - { date: new Date(2015, 0), value: 54800, value0: 13000}, - { date: new Date(2015, 1), value: 49800, value0: 13000} - ]; - - var chart = AmCharts.makeChart('amchart', { - type: 'serial', - theme: 'blur', - marginTop: 15, - marginRight: 15, - dataProvider: chartData, - categoryField: 'date', - categoryAxis: { - parseDates: true, - gridAlpha: 0, - color: layoutColors.defaultText, - axisColor: layoutColors.defaultText - }, - valueAxes: [ - { - minVerticalGap: 50, - gridAlpha: 0, - color: layoutColors.defaultText, - axisColor: layoutColors.defaultText - } - ], - graphs: [ - { - id: 'g0', - bullet: 'none', - useLineColorForBulletBorder: true, - lineColor: baUtil.hexToRGB(graphColor, 0.3), - lineThickness: 1, - negativeLineColor: layoutColors.danger, - type: 'smoothedLine', - valueField: 'value0', - fillAlphas: 1, - fillColorsField: 'lineColor' - }, - { - id: 'g1', - bullet: 'none', - useLineColorForBulletBorder: true, - lineColor: baUtil.hexToRGB(graphColor, 0.5), - lineThickness: 1, - negativeLineColor: layoutColors.danger, - type: 'smoothedLine', - valueField: 'value', - fillAlphas: 1, - fillColorsField: 'lineColor' - } - ], - chartCursor: { - categoryBalloonDateFormat: 'MM YYYY', - categoryBalloonColor: '#4285F4', - categoryBalloonAlpha: 0.7, - cursorAlpha: 0, - valueLineEnabled: true, - valueLineBalloonEnabled: true, - valueLineAlpha: 0.5 - }, - dataDateFormat: 'MM YYYY', - export: { - enabled: true - }, - creditsPosition: 'bottom-right', - zoomOutButton: { - backgroundColor: '#fff', - backgroundAlpha: 0 - }, - zoomOutText: '', - pathToImages: layoutPaths.images.amChart - }); - - function zoomChart() { - chart.zoomToDates(new Date(2013, 3), new Date(2014, 0)); - } - - chart.addListener('rendered', zoomChart); - zoomChart(); - if (chart.zoomChart) { - chart.zoomChart(); - } - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.directive.js b/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.directive.js deleted file mode 100644 index be7b4f2..0000000 --- a/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('dashboardLineChart', dashboardLineChart); - - /** @ngInject */ - function dashboardLineChart() { - return { - restrict: 'E', - controller: 'DashboardLineChartCtrl', - templateUrl: 'app/pages/dashboard/dashboardLineChart/dashboardLineChart.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.html b/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.html deleted file mode 100644 index 51a9cbe..0000000 --- a/src/app/pages/dashboard/dashboardLineChart/dashboardLineChart.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardMap/DashboardMapCtrl.js b/src/app/pages/dashboard/dashboardMap/DashboardMapCtrl.js deleted file mode 100644 index 65de9a6..0000000 --- a/src/app/pages/dashboard/dashboardMap/DashboardMapCtrl.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('DashboardMapCtrl', DashboardMapCtrl); - - /** @ngInject */ - function DashboardMapCtrl(baConfig, layoutPaths) { - var layoutColors = baConfig.colors; - var map = AmCharts.makeChart('amChartMap', { - type: 'map', - theme: 'blur', - zoomControl: { zoomControlEnabled: false, panControlEnabled: false }, - - dataProvider: { - map: 'worldLow', - zoomLevel: 3.5, - zoomLongitude: 10, - zoomLatitude: 52, - areas: [ - { title: 'Austria', id: 'AT', color: layoutColors.primary, customData: '1 244', groupId: '1'}, - { title: 'Ireland', id: 'IE', color: layoutColors.primary, customData: '1 342', groupId: '1'}, - { title: 'Denmark', id: 'DK', color: layoutColors.primary, customData: '1 973', groupId: '1'}, - { title: 'Finland', id: 'FI', color: layoutColors.primary, customData: '1 573', groupId: '1'}, - { title: 'Sweden', id: 'SE', color: layoutColors.primary, customData: '1 084', groupId: '1'}, - { title: 'Great Britain', id: 'GB', color: layoutColors.primary, customData: '1 452', groupId: '1'}, - { title: 'Italy', id: 'IT', color: layoutColors.primary, customData: '1 321', groupId: '1'}, - { title: 'France', id: 'FR', color: layoutColors.primary, customData: '1 112', groupId: '1'}, - { title: 'Spain', id: 'ES', color: layoutColors.primary, customData: '1 865', groupId: '1'}, - { title: 'Greece', id: 'GR', color: layoutColors.primary, customData: '1 453', groupId: '1'}, - { title: 'Germany', id: 'DE', color: layoutColors.primary, customData: '1 957', groupId: '1'}, - { title: 'Belgium', id: 'BE', color: layoutColors.primary, customData: '1 011', groupId: '1'}, - { title: 'Luxembourg', id: 'LU', color: layoutColors.primary, customData: '1 011', groupId: '1'}, - { title: 'Netherlands', id: 'NL', color: layoutColors.primary, customData: '1 213', groupId: '1'}, - { title: 'Portugal', id: 'PT', color: layoutColors.primary, customData: '1 291', groupId: '1'}, - { title: 'Lithuania', id: 'LT', color: layoutColors.successLight, customData: '567', groupId: '2'}, - { title: 'Latvia', id: 'LV', color: layoutColors.successLight, customData: '589', groupId: '2'}, - { title: 'Czech Republic ', id: 'CZ', color: layoutColors.successLight, customData: '785', groupId: '2'}, - { title: 'Slovakia', id: 'SK', color: layoutColors.successLight, customData: '965', groupId: '2'}, - { title: 'Estonia', id: 'EE', color: layoutColors.successLight, customData: '685', groupId: '2'}, - { title: 'Hungary', id: 'HU', color: layoutColors.successLight, customData: '854', groupId: '2'}, - { title: 'Cyprus', id: 'CY', color: layoutColors.successLight, customData: '754', groupId: '2'}, - { title: 'Malta', id: 'MT', color: layoutColors.successLight, customData: '867', groupId: '2'}, - { title: 'Poland', id: 'PL', color: layoutColors.successLight, customData: '759', groupId: '2'}, - { title: 'Romania', id: 'RO', color: layoutColors.success, customData: '302', groupId: '3'}, - { title: 'Bulgaria', id: 'BG', color: layoutColors.success, customData: '102', groupId: '3'}, - { title: 'Slovenia', id: 'SI', color: layoutColors.danger, customData: '23', groupId: '4'}, - { title: 'Croatia', id: 'HR', color: layoutColors.danger, customData: '96', groupId: '4'} - ] - }, - - areasSettings: { - rollOverOutlineColor: layoutColors.border, - rollOverColor: layoutColors.primaryDark, - alpha: 0.8, - unlistedAreasAlpha: 0.2, - unlistedAreasColor: layoutColors.defaultText, - balloonText: '[[title]]: [[customData]] users' - }, - - - legend: { - width: '100%', - marginRight: 27, - marginLeft: 27, - equalWidths: false, - backgroundAlpha: 0.3, - backgroundColor: layoutColors.border, - borderColor: layoutColors.border, - borderAlpha: 1, - top: 362, - left: 0, - horizontalGap: 10, - data: [ - { - title: 'over 1 000 users', - color: layoutColors.primary - }, - { - title: '500 - 1 000 users', - color: layoutColors.successLight - }, - { - title: '100 - 500 users', - color: layoutColors.success - }, - { - title: '0 - 100 users', - color: layoutColors.danger - } - ] - }, - export: { - enabled: true - }, - creditsPosition: 'bottom-right', - pathToImages: layoutPaths.images.amChart - }); - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardMap/dashboardMap.directive.js b/src/app/pages/dashboard/dashboardMap/dashboardMap.directive.js deleted file mode 100644 index d6403bf..0000000 --- a/src/app/pages/dashboard/dashboardMap/dashboardMap.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('dashboardMap', dashboardMap); - - /** @ngInject */ - function dashboardMap() { - return { - restrict: 'E', - controller: 'DashboardMapCtrl', - templateUrl: 'app/pages/dashboard/dashboardMap/dashboardMap.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardMap/dashboardMap.html b/src/app/pages/dashboard/dashboardMap/dashboardMap.html deleted file mode 100644 index 40247eb..0000000 --- a/src/app/pages/dashboard/dashboardMap/dashboardMap.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardPieChart/DashboardPieChartCtrl.js b/src/app/pages/dashboard/dashboardPieChart/DashboardPieChartCtrl.js deleted file mode 100644 index 4009fd4..0000000 --- a/src/app/pages/dashboard/dashboardPieChart/DashboardPieChartCtrl.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('DashboardPieChartCtrl', DashboardPieChartCtrl); - - /** @ngInject */ - function DashboardPieChartCtrl($scope, $timeout, baConfig, baUtil) { - var pieColor = baUtil.hexToRGB(baConfig.colors.defaultText, 0.2); - $scope.charts = [{ - color: pieColor, - description: 'New Visits', - stats: '57,820', - icon: 'person', - }, { - color: pieColor, - description: 'Purchases', - stats: '$ 89,745', - icon: 'money', - }, { - color: pieColor, - description: 'Active Users', - stats: '178,391', - icon: 'face', - }, { - color: pieColor, - description: 'Returned', - stats: '32,592', - icon: 'refresh', - } - ]; - - function getRandomArbitrary(min, max) { - return Math.random() * (max - min) + min; - } - - function loadPieCharts() { - $('.chart').each(function () { - var chart = $(this); - chart.easyPieChart({ - easing: 'easeOutBounce', - onStep: function (from, to, percent) { - $(this.el).find('.percent').text(Math.round(percent)); - }, - barColor: chart.attr('rel'), - trackColor: 'rgba(0,0,0,0)', - size: 84, - scaleLength: 0, - animation: 2000, - lineWidth: 9, - lineCap: 'round', - }); - }); - - $('.refresh-data').on('click', function () { - updatePieCharts(); - }); - } - - function updatePieCharts() { - $('.pie-charts .chart').each(function(index, chart) { - $(chart).data('easyPieChart').update(getRandomArbitrary(55, 90)); - }); - } - - $timeout(function () { - loadPieCharts(); - updatePieCharts(); - }, 1000); - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.directive.js b/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.directive.js deleted file mode 100644 index 72e3f13..0000000 --- a/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('dashboardPieChart', dashboardPieChart); - - /** @ngInject */ - function dashboardPieChart() { - return { - restrict: 'E', - controller: 'DashboardPieChartCtrl', - templateUrl: 'app/pages/dashboard/dashboardPieChart/dashboardPieChart.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.html b/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.html deleted file mode 100644 index 9594317..0000000 --- a/src/app/pages/dashboard/dashboardPieChart/dashboardPieChart.html +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
-
-
-
-
{{ ::chart.description }}
-
{{ ::chart.stats }}
-
- -
-
-
-
\ No newline at end of file diff --git a/src/app/pages/dashboard/dashboardTodo/dashboardTodo.directive.js b/src/app/pages/dashboard/dashboardTodo/dashboardTodo.directive.js deleted file mode 100644 index 35a12e6..0000000 --- a/src/app/pages/dashboard/dashboardTodo/dashboardTodo.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('dashboardTodo', dashboardTodo); - - /** @ngInject */ - function dashboardTodo() { - return { - restrict: 'EA', - controller: 'DashboardTodoCtrl', - templateUrl: 'app/pages/dashboard/dashboardTodo/dashboardTodo.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/pieCharts/dashboardPieChart.js b/src/app/pages/dashboard/pieCharts/dashboardPieChart.js deleted file mode 100644 index 0f21e63..0000000 --- a/src/app/pages/dashboard/pieCharts/dashboardPieChart.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .service('dashboardPieChart', dashboardPieChart); - - /** @ngInject */ - function dashboardPieChart() { - - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/popularApp/popularApp.directive.js b/src/app/pages/dashboard/popularApp/popularApp.directive.js deleted file mode 100644 index eadef39..0000000 --- a/src/app/pages/dashboard/popularApp/popularApp.directive.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('popularApp', popularApp); - - /** @ngInject */ - function popularApp() { - return { - restrict: 'E', - templateUrl: 'app/pages/dashboard/popularApp/popularApp.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/popularApp/popularApp.html b/src/app/pages/dashboard/popularApp/popularApp.html deleted file mode 100644 index 8fb66b8..0000000 --- a/src/app/pages/dashboard/popularApp/popularApp.html +++ /dev/null @@ -1,28 +0,0 @@ - - - diff --git a/src/app/pages/dashboard/trafficChart/TrafficChartCtrl.js b/src/app/pages/dashboard/trafficChart/TrafficChartCtrl.js deleted file mode 100644 index 4f922e5..0000000 --- a/src/app/pages/dashboard/trafficChart/TrafficChartCtrl.js +++ /dev/null @@ -1,61 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('TrafficChartCtrl', TrafficChartCtrl); - - /** @ngInject */ - function TrafficChartCtrl($scope, baConfig, colorHelper) { - - $scope.transparent = baConfig.theme.blur; - var dashboardColors = baConfig.colors.dashboard; - $scope.doughnutData = { - labels: [ - 'Other', - 'Search engines', - 'Referral Traffic', - 'Direct Traffic', - 'Ad Campaigns' - ], - datasets: [ - { - data: [2000, 1500, 1000, 1200, 400], - backgroundColor: [ - dashboardColors.white, - dashboardColors.blueStone, - dashboardColors.surfieGreen, - dashboardColors.silverTree, - dashboardColors.gossip - - ], - hoverBackgroundColor: [ - colorHelper.shade(dashboardColors.white, 15), - colorHelper.shade(dashboardColors.blueStone, 15), - colorHelper.shade(dashboardColors.surfieGreen, 15), - colorHelper.shade(dashboardColors.silverTree, 15), - colorHelper.shade(dashboardColors.gossip, 15) - ], - percentage: [87, 22, 70, 38, 17] - }] - }; - - var ctx = document.getElementById('chart-area').getContext('2d'); - window.myDoughnut = new Chart(ctx, { - type: 'doughnut', - data: $scope.doughnutData, - options: { - cutoutPercentage: 64, - responsive: true, - elements: { - arc: { - borderWidth: 0 - } - } - } - }); - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/trafficChart/trafficChart.directive.js b/src/app/pages/dashboard/trafficChart/trafficChart.directive.js deleted file mode 100644 index a75bc39..0000000 --- a/src/app/pages/dashboard/trafficChart/trafficChart.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('trafficChart', trafficChart); - - /** @ngInject */ - function trafficChart() { - return { - restrict: 'E', - controller: 'TrafficChartCtrl', - templateUrl: 'app/pages/dashboard/trafficChart/trafficChart.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/trafficChart/trafficChart.html b/src/app/pages/dashboard/trafficChart/trafficChart.html deleted file mode 100644 index 2ab0b86..0000000 --- a/src/app/pages/dashboard/trafficChart/trafficChart.html +++ /dev/null @@ -1,29 +0,0 @@ -
-
-
-
- -
- 1,900,128 - Views Total -
-
-
- -
-
-
-
-

{{::label}}+{{data.percentage[i]}}%

-
-
-
-
-
-
-
-
- diff --git a/src/app/pages/dashboard/weather/WeatherCtrl.js b/src/app/pages/dashboard/weather/WeatherCtrl.js deleted file mode 100644 index 42a6cb3..0000000 --- a/src/app/pages/dashboard/weather/WeatherCtrl.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .controller('WeatherCtrl', WeatherCtrl); - - /** @ngInject */ - function WeatherCtrl($scope, $http, $timeout, $element) { - var url = 'http://api.openweathermap.org/data/2.5/forecast'; - var method = 'GET'; - var key = '2de143494c0b295cca9337e1e96b00e0'; - var middleOfTheDay = 15; - $scope.units = 'metric'; - $scope.weatherIcons = { - '01d': 'ion-ios-sunny-outline', - '02d': 'ion-ios-partlysunny-outline', - '03d': 'ion-ios-cloud-outline', - '04d': 'ion-ios-cloud', - '09d': 'ion-ios-rainy', - '10d': 'ion-ios-rainy-outline', - '11d': 'ion-ios-thunderstorm-outline', - '13d': 'ion-ios-snowy', - '50d': 'ion-ios-cloudy-outline', - '01n': 'ion-ios-cloudy-night-outline', - '02n': 'ion-ios-cloudy-night', - '03n': 'ion-ios-cloud-outline', - '04n': 'ion-ios-cloud', - '09n': 'ion-ios-rainy', - '10n': 'ion-ios-rainy-outline', - '11n': 'ion-ios-thunderstorm', - '13n': 'ion-ios-snowy', - '50n': 'ion-ios-cloudy-outline' - }; - $scope.weather = {}; - - $scope.switchUnits = function (name) { - $scope.units = name; - $scope.updateWeather(); - }; - - $scope.switchDay = function (day) { - $scope.weather.current = day; - makeChart($scope.weather.days[$scope.weather.current].timeTemp) - }; - - $scope.updateWeather = function () { - $http({ - method: method, url: url, params: { - appid: key, - lat: $scope.geoData.geoplugin_latitude, - lon: $scope.geoData.geoplugin_longitude, - units: $scope.units - } - }).then(function success(response) { - saveWeatherData(response.data); - makeChart($scope.weather.days[$scope.weather.current].timeTemp) - }, function error() { - console.log("WEATHER FAILED") - }); - }; - - function updateGeoData() { - $http.jsonp('http://www.geoplugin.net/json.gp?jsoncallback=JSON_CALLBACK').then(function success(response) { - $scope.geoData = response.data; - $scope.updateWeather(); - }, function error() { - console.log("GEO FAILED") - }); - } - - function makeChart(data) { - AmCharts.makeChart('tempChart', { - type: 'serial', - theme: 'blur', - handDrawn: true, - categoryField: 'time', - dataProvider: data, - valueAxes: [ - { - axisAlpha: 0.3, - gridAlpha: 0 - } - ], - graphs: [ - { - bullet: 'square', - fillAlphas: 0.3, - fillColorsField: 'lineColor', - legendValueText: '[[value]]', - lineColorField: 'lineColor', - title: 'Temp', - valueField: 'temp' - } - ], - categoryAxis: { - gridAlpha: 0, - axisAlpha: 0.3 - } - }).write('tempChart'); - } - - function saveWeatherData(data) { - var firstItem = data.list[0]; - var weather = { - days: [{ - date: new Date(), - timeTemp: [], - main: firstItem.weather[0].main, - description: firstItem.weather[0].description, - icon: firstItem.weather[0].icon, - temp: firstItem.main.temp - }], current: 0 - }; - data.list.forEach(function (item, i) { - var itemDate = new Date(item.dt_txt); - if (itemDate.getDate() !== weather.days[weather.days.length - 1].date.getDate()) { - weather.days.push({date: itemDate, timeTemp: []}); - } - var lastItem = weather.days[weather.days.length - 1]; - lastItem.timeTemp.push({ - time: itemDate.getHours(), - temp: item.main.temp - }); - if ((weather.days.length > 1 && itemDate.getHours() == middleOfTheDay) || i == data.list.length - 1) { - lastItem.main = item.weather[0].main; - lastItem.description = item.weather[0].description; - lastItem.icon = item.weather[0].icon; - lastItem.temp = item.main.temp; - lastItem.date.setHours(i == data.list.length - 1 ? 0 : middleOfTheDay); - lastItem.date.setMinutes(0); - } - }); - console.log(weather.days[weather.current].date); - weather.days = weather.days.slice(0, $element.attr('forecast') || 5); - $scope.weather = weather; - } - - updateGeoData(); - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/weather/weather.directive.js b/src/app/pages/dashboard/weather/weather.directive.js deleted file mode 100644 index 1b0668e..0000000 --- a/src/app/pages/dashboard/weather/weather.directive.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.dashboard') - .directive('weather', weather); - - /** @ngInject */ - function weather() { - return { - restrict: 'EA', - controller: 'WeatherCtrl', - templateUrl: 'app/pages/dashboard/weather/weather.html' - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/dashboard/weather/weather.html b/src/app/pages/dashboard/weather/weather.html deleted file mode 100644 index ba78a4c..0000000 --- a/src/app/pages/dashboard/weather/weather.html +++ /dev/null @@ -1,45 +0,0 @@ -
-
-
-
- {{geoData.geoplugin_city}} - {{geoData.geoplugin_countryName | uppercase}} -
-
- {{ weather.days[weather.current].date | date : 'EEEE h:mm'}} -
-
-
- - -
{{weather.days[weather.current].main}} - - {{weather.days[weather.current].description}} -
-
-
- - -
- {{weather.days[weather.current].temp}} °C | °F - {{weather.days[weather.current].temp}} °F | °C -
-
-
-
-
-
-
- {{day.temp}} -
-
- - {{day.main}} -
-
- {{day.date | date : 'EEE'}} -
-
-
-
- diff --git a/src/app/pages/form/form.module.js b/src/app/pages/form/form.module.js deleted file mode 100644 index 31ea0e1..0000000 --- a/src/app/pages/form/form.module.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form', ['ui.select', 'ngSanitize']) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('form', { - url: '/form', - template : '', - abstract: true, - title: 'Form Elements', - sidebarMeta: { - icon: 'ion-compose', - order: 250, - }, - }) - .state('form.inputs', { - url: '/inputs', - templateUrl: 'app/pages/form/inputs/inputs.html', - title: 'Form Inputs', - sidebarMeta: { - order: 0, - }, - }) - .state('form.layouts', { - url: '/layouts', - templateUrl: 'app/pages/form/layouts/layouts.html', - title: 'Form Layouts', - sidebarMeta: { - order: 100, - }, - }) - .state('form.wizard', - { - url: '/wizard', - templateUrl: 'app/pages/form/wizard/wizard.html', - controller: 'WizardCtrl', - controllerAs: 'vm', - title: 'Form Wizard', - sidebarMeta: { - order: 200, - }, - }); - } -})(); diff --git a/src/app/pages/form/inputs/inputs.html b/src/app/pages/form/inputs/inputs.html deleted file mode 100644 index 108caeb..0000000 --- a/src/app/pages/form/inputs/inputs.html +++ /dev/null @@ -1,67 +0,0 @@ -
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
- -
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/checkboxesRadios.html b/src/app/pages/form/inputs/widgets/checkboxesRadios.html deleted file mode 100644 index 17bc7f7..0000000 --- a/src/app/pages/form/inputs/widgets/checkboxesRadios.html +++ /dev/null @@ -1,56 +0,0 @@ -
-
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
-
-
-
- -
-
- -
-
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/datePickers/datePickers.html b/src/app/pages/form/inputs/widgets/datePickers/datePickers.html deleted file mode 100644 index 1f48dbc..0000000 --- a/src/app/pages/form/inputs/widgets/datePickers/datePickers.html +++ /dev/null @@ -1,22 +0,0 @@ -
-
-

Inline

- -
- -
-
- -
-

Popup

- -

- - - - -

- -
- -
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js b/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js deleted file mode 100644 index 61ba75e..0000000 --- a/src/app/pages/form/inputs/widgets/datePickers/datepickerCtrl.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Created by n.poltoratsky - * on 23.06.2016. - */ -(function(){ - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('datepickerCtrl', datepickerCtrl); - - /** @ngInject */ - function datepickerCtrl($scope) { - - $scope.dt = new Date(); - $scope.options = { - showWeeks: false - }; - - } -})(); \ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js b/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js deleted file mode 100644 index a3f71e2..0000000 --- a/src/app/pages/form/inputs/widgets/datePickers/datepickerpopupCtrl.js +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Created by n.poltoratsky - * on 23.06.2016. - */ -(function(){ - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('datepickerpopupCtrl', datepickerpopupCtrl); - - /** @ngInject */ - function datepickerpopupCtrl($scope) { - - $scope.open = open; - $scope.opened = false; - $scope.formats = ['dd-MMMM-yyyy', 'yyyy/MM/dd', 'dd.MM.yyyy', 'shortDate']; - $scope.format = $scope.formats[0]; - $scope.options = { - showWeeks: false - }; - - function open() { - $scope.opened = true; - } - } -})(); \ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/inputGroups.html b/src/app/pages/form/inputs/widgets/inputGroups.html deleted file mode 100644 index 5240435..0000000 --- a/src/app/pages/form/inputs/widgets/inputGroups.html +++ /dev/null @@ -1,22 +0,0 @@ -
- @ - -
- -
- - @example.com -
- -
- $ - - .00 -
- -
- - - - -
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/oldSelect/OldSelectpickerPanelCtrl.js b/src/app/pages/form/inputs/widgets/oldSelect/OldSelectpickerPanelCtrl.js deleted file mode 100644 index 85eb22d..0000000 --- a/src/app/pages/form/inputs/widgets/oldSelect/OldSelectpickerPanelCtrl.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @author v.lugovsky - * created on 22.04.2016 - * @deprecated - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('OldSelectpickerPanelCtrl', OldSelectpickerPanelCtrl); - - /** @ngInject */ - function OldSelectpickerPanelCtrl() { - var vm = this; - - vm.standardSelectItems = [ - { label: 'Option 1', value: 1 }, - { label: 'Option 2', value: 2 }, - { label: 'Option 3', value: 3 }, - { label: 'Option 4', value: 4 }, - ]; - - vm.selectWithSearchItems = [ - { label: 'Hot Dog, Fries and a Soda', value: 1 }, - { label: 'Burger, Shake and a Smile', value: 2 }, - { label: 'Sugar, Spice and all things nice', value: 3 }, - { label: 'Baby Back Ribs', value: 4 }, - ]; - - vm.groupedSelectItems = [ - { label: 'Group 1 - Option 1', value: 1, group: 'Group 1' }, - { label: 'Group 2 - Option 2', value: 2, group: 'Group 2' }, - { label: 'Group 1 - Option 3', value: 3, group: 'Group 1' }, - { label: 'Group 2 - Option 4', value: 4, group: 'Group 2' }, - ]; - - } - -})(); diff --git a/src/app/pages/form/inputs/widgets/oldSelect/select.html b/src/app/pages/form/inputs/widgets/oldSelect/select.html deleted file mode 100644 index 1ae43b5..0000000 --- a/src/app/pages/form/inputs/widgets/oldSelect/select.html +++ /dev/null @@ -1,134 +0,0 @@ -
-
- -
-
- -
-
- -
-
- -
- -
-
-
- -
-
-
-
- -
-
-
- -
- -
-
- -
- -
-
-
- -
-
- -
-
- -
-
-
-
- -
- -
- -
- -
- -
-
-
-
diff --git a/src/app/pages/form/inputs/widgets/oldSelect/selectpicker.directive.js b/src/app/pages/form/inputs/widgets/oldSelect/selectpicker.directive.js deleted file mode 100644 index a56247f..0000000 --- a/src/app/pages/form/inputs/widgets/oldSelect/selectpicker.directive.js +++ /dev/null @@ -1,42 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - * @deprecated - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .directive('selectpicker', selectpicker); - - /** @ngInject */ - function selectpicker() { - return { - restrict: 'A', - require: '?ngOptions', - priority: 1500, // make priority bigger than ngOptions and ngRepeat - link: { - pre: function(scope, elem, attrs) { - elem.append('') - }, - post: function(scope, elem, attrs) { - function refresh() { - elem.selectpicker('refresh'); - } - - if (attrs.ngModel) { - scope.$watch(attrs.ngModel, refresh); - } - - if (attrs.ngDisabled) { - scope.$watch(attrs.ngDisabled, refresh); - } - - elem.selectpicker({ dropupAuto: false, hideDisabled: true }); - } - } - }; - } - - -})(); \ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/oldSwitches/OldSwitchPanelCtrl.js b/src/app/pages/form/inputs/widgets/oldSwitches/OldSwitchPanelCtrl.js deleted file mode 100644 index 8bda5e7..0000000 --- a/src/app/pages/form/inputs/widgets/oldSwitches/OldSwitchPanelCtrl.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @author v.lugovsky - * created on 07.06.2016 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('OldSwitchPanelCtrl', OldSwitchPanelCtrl); - - /** @ngInject */ - function OldSwitchPanelCtrl() { - var vm = this; - - vm.switcherValues = { - primary: true, - warning: true, - danger: true, - info: true, - success: true - }; - } - -})(); diff --git a/src/app/pages/form/inputs/widgets/oldSwitches/switch.directive.js b/src/app/pages/form/inputs/widgets/oldSwitches/switch.directive.js deleted file mode 100644 index 03954e9..0000000 --- a/src/app/pages/form/inputs/widgets/oldSwitches/switch.directive.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @author v.lugovksy - * created on 16.12.2015 - * - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .directive('switch', switchDirective); - - /** @ngInject */ - function switchDirective($timeout) { - return { - restrict: 'EA', - replace: true, - scope: { - ngModel: '=' - }, - template: function(el, attrs) { - return '
'; - }, - link: function (scope, elem, attr) { - var input = $(elem).find('input'); - input.bootstrapSwitch({ - size: 'small', - onColor: attr.color - }); - input.on('switchChange.bootstrapSwitch', function(event, state) { - scope.ngModel = state; - scope.$apply(); - }); - - } - }; - } -})(); diff --git a/src/app/pages/form/inputs/widgets/oldSwitches/switch.html b/src/app/pages/form/inputs/widgets/oldSwitches/switch.html deleted file mode 100644 index 1a79779..0000000 --- a/src/app/pages/form/inputs/widgets/oldSwitches/switch.html +++ /dev/null @@ -1,7 +0,0 @@ -
- - - - - -
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/select/GroupSelectpickerOptions.js b/src/app/pages/form/inputs/widgets/select/GroupSelectpickerOptions.js deleted file mode 100644 index 8ff3acb..0000000 --- a/src/app/pages/form/inputs/widgets/select/GroupSelectpickerOptions.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @author p.maslava - * created on 28.11.2016 - */ - -(function() { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .filter('groupSelectpickerOptions', GroupSelectpickerOptions); - - /** @ngInject */ - function GroupSelectpickerOptions() { - return function (items, props) { - var out = []; - - if (angular.isArray(items)) { - var keys = Object.keys(props); - - items.forEach(function (item) { - var itemMatches = false; - - for (var i = 0; i < keys.length; i++) { - var prop = keys[i]; - var text = props[prop].toLowerCase(); - if (item[prop].toString().toLowerCase().indexOf(text) !== -1) { - itemMatches = true; - break; - } - } - - if (itemMatches) { - out.push(item); - } - }); - } else { - // Let the output be the input untouched - out = items; - } - - return out; - }; - } -})(); \ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/select/SelectpickerPanelCtrl.js b/src/app/pages/form/inputs/widgets/select/SelectpickerPanelCtrl.js deleted file mode 100644 index 0b83739..0000000 --- a/src/app/pages/form/inputs/widgets/select/SelectpickerPanelCtrl.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * @author p.maslava - * created on 28.11.2016 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('SelectpickerPanelCtrl', SelectpickerPanelCtrl); - - /** @ngInject */ - function SelectpickerPanelCtrl() { - - var vm = this; - vm.disabled = undefined; - - - vm.standardItem = {}; - vm.standardSelectItems = [ - {label: 'Option 1', value: 1}, - {label: 'Option 2', value: 2}, - {label: 'Option 3', value: 3}, - {label: 'Option 4', value: 4} - ]; - - vm.withSearchItem = {}; - - vm.selectWithSearchItems = [ - {label: 'Hot Dog, Fries and a Soda', value: 1}, - {label: 'Burger, Shake and a Smile', value: 2}, - {label: 'Sugar, Spice and all things nice', value: 3}, - {label: 'Baby Back Ribs', value: 4} - ]; - vm.groupedItem = {}; - vm.groupedSelectItems = [ - {label: 'Group 1 - Option 1', value: 1, group: 'Group 1'}, - {label: 'Group 2 - Option 2', value: 2, group: 'Group 2'}, - {label: 'Group 1 - Option 3', value: 3, group: 'Group 1'}, - {label: 'Group 2 - Option 4', value: 4, group: 'Group 2'} - ]; - - vm.groupedByItem = {}; - vm.groupedBySelectItems = [ - {name: 'Adam', country: 'United States'}, - {name: 'Amalie', country: 'Argentina'}, - {name: 'Estefanía', country: 'Argentina'}, - {name: 'Adrian', country: 'Ecuador'}, - {name: 'Wladimir', country: 'Ecuador'}, - {name: 'Samantha', country: 'United States'}, - {name: 'Nicole', country: 'Colombia'}, - {name: 'Natasha', country: 'Ecuador'}, - {name: 'Michael', country: 'Colombia'}, - {name: 'Nicolás', country: 'Colombia'} - ]; - vm.someGroupFn = function (item) { - - if (item.name[0] >= 'A' && item.name[0] <= 'M') - return 'From A - M'; - if (item.name[0] >= 'N' && item.name[0] <= 'Z') - return 'From N - Z'; - }; - - vm.disableItem = {}; - vm.disableItems = []; - - vm.multipleItem = {}; - vm.multipleSelectItems = [ - {label: 'Option 1', value: 1}, - {label: 'Option 2', value: 2}, - {label: 'Option 3', value: 3}, - {label: 'Option 4', value: 4}, - {label: 'Option 5', value: 5}, - {label: 'Option 6', value: 6}, - {label: 'Option 7', value: 7}, - {label: 'Option 8', value: 8} - ]; - vm.withDeleteItem = {}; - vm.withDeleteSelectItems = [ - {label: 'Option 1', value: 1}, - {label: 'Option 2', value: 2}, - {label: 'Option 3', value: 3}, - {label: 'Option 4', value: 4}, - {label: 'Option 5', value: 5}, - {label: 'Option 6', value: 6}, - {label: 'Option 7', value: 7}, - {label: 'Option 8', value: 8} - ]; - - } -})(); - - diff --git a/src/app/pages/form/inputs/widgets/select/select.html b/src/app/pages/form/inputs/widgets/select/select.html deleted file mode 100644 index 97fc2e3..0000000 --- a/src/app/pages/form/inputs/widgets/select/select.html +++ /dev/null @@ -1,124 +0,0 @@ -
-
- - - {{$select.selected.label}} - - - - - -
-
- - - {{$select.selected.label}} - - - - - -
- -
- - - {{$select.selected.label}} - - - - - -
- - -
- - - {{$select.selected.label}} - - - - - -
- -
- - - {{$select.selected.name}} - - - - - -
- - -
- - - {{$item.label}} - - - {{multipleItem.label}} - - -
- - -
-
- - - - {{$item.label}} - - - {{withDeleteItem.label}} - - - - - -
-
-
diff --git a/src/app/pages/form/inputs/widgets/standardFields.html b/src/app/pages/form/inputs/widgets/standardFields.html deleted file mode 100644 index 967365f..0000000 --- a/src/app/pages/form/inputs/widgets/standardFields.html +++ /dev/null @@ -1,35 +0,0 @@ -
-
- - -
-
- - -
-
- - -
-
- - - A block of help text that breaks onto a new line and may extend beyond one line. -
-
- - -
- -
- - -
- -
- -
-
- -
-
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/switches/SwitchDemoPanelCtrl.js b/src/app/pages/form/inputs/widgets/switches/SwitchDemoPanelCtrl.js deleted file mode 100644 index 275ce5f..0000000 --- a/src/app/pages/form/inputs/widgets/switches/SwitchDemoPanelCtrl.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @author v.lugovsky - * created on 10.12.2016 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('SwitchDemoPanelCtrl', SwitchDemoPanelCtrl); - - /** @ngInject */ - function SwitchDemoPanelCtrl() { - var vm = this; - vm.switches = { - s1: true, - s2: false, - s3: true, - s4: true, - s5: false - }; - } - -})(); diff --git a/src/app/pages/form/inputs/widgets/switches/switch.html b/src/app/pages/form/inputs/widgets/switches/switch.html deleted file mode 100644 index 571ac43..0000000 --- a/src/app/pages/form/inputs/widgets/switches/switch.html +++ /dev/null @@ -1,9 +0,0 @@ -
- - - - - -
- - diff --git a/src/app/pages/form/inputs/widgets/tagsInput/tagsInput.html b/src/app/pages/form/inputs/widgets/tagsInput/tagsInput.html deleted file mode 100644 index fb7259a..0000000 --- a/src/app/pages/form/inputs/widgets/tagsInput/tagsInput.html +++ /dev/null @@ -1,11 +0,0 @@ -
-
- -
-
- -
-
- -
-
\ No newline at end of file diff --git a/src/app/pages/form/inputs/widgets/validationStates.html b/src/app/pages/form/inputs/widgets/validationStates.html deleted file mode 100644 index 02744f3..0000000 --- a/src/app/pages/form/inputs/widgets/validationStates.html +++ /dev/null @@ -1,64 +0,0 @@ -
- - -
-
- - -
-
- - -
-
-
- -
-
-
-
- -
-
-
-
- -
-
- -
- - - - (success) -
-
- - - - (warning) -
-
- - - - (error) -
-
- -
- @ - -
- - (success) -
\ No newline at end of file diff --git a/src/app/pages/form/layouts/layouts.html b/src/app/pages/form/layouts/layouts.html deleted file mode 100644 index b7fd6f1..0000000 --- a/src/app/pages/form/layouts/layouts.html +++ /dev/null @@ -1,44 +0,0 @@ -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
- -
\ No newline at end of file diff --git a/src/app/pages/form/layouts/widgets/basicForm.html b/src/app/pages/form/layouts/widgets/basicForm.html deleted file mode 100644 index c902f91..0000000 --- a/src/app/pages/form/layouts/widgets/basicForm.html +++ /dev/null @@ -1,17 +0,0 @@ -
-
- - -
-
- - -
-
- -
- -
\ No newline at end of file diff --git a/src/app/pages/form/layouts/widgets/blockForm.html b/src/app/pages/form/layouts/widgets/blockForm.html deleted file mode 100644 index 3cb14ee..0000000 --- a/src/app/pages/form/layouts/widgets/blockForm.html +++ /dev/null @@ -1,29 +0,0 @@ -
-
-
- - -
-
-
-
- - -
-
-
-
-
-
- - -
-
-
-
- - -
-
-
- \ No newline at end of file diff --git a/src/app/pages/form/layouts/widgets/formWithoutLabels.html b/src/app/pages/form/layouts/widgets/formWithoutLabels.html deleted file mode 100644 index e7b9f6c..0000000 --- a/src/app/pages/form/layouts/widgets/formWithoutLabels.html +++ /dev/null @@ -1,12 +0,0 @@ -
-
- -
-
- -
-
- -
- -
\ No newline at end of file diff --git a/src/app/pages/form/layouts/widgets/horizontalForm.html b/src/app/pages/form/layouts/widgets/horizontalForm.html deleted file mode 100644 index 70ee314..0000000 --- a/src/app/pages/form/layouts/widgets/horizontalForm.html +++ /dev/null @@ -1,29 +0,0 @@ -
-
- -
- -
-
-
- -
- -
-
-
-
-
- -
-
-
-
-
- -
-
-
\ No newline at end of file diff --git a/src/app/pages/form/layouts/widgets/inlineForm.html b/src/app/pages/form/layouts/widgets/inlineForm.html deleted file mode 100644 index 8365ec1..0000000 --- a/src/app/pages/form/layouts/widgets/inlineForm.html +++ /dev/null @@ -1,15 +0,0 @@ -
-
- -
-
- -
-
- -
- -
\ No newline at end of file diff --git a/src/app/pages/form/wizard/wizard.html b/src/app/pages/form/wizard/wizard.html deleted file mode 100644 index 9c63a7f..0000000 --- a/src/app/pages/form/wizard/wizard.html +++ /dev/null @@ -1,106 +0,0 @@ -
- -
-
-
- - -
-
-
-
- - - Required -
-
- - - Proper email required -
-
-
-
- - - Required -
-
- - - Passwords should match -
-
-
-
-
- -
-
-
-
- - - Required -
-
- - - Required -
-
-
-
- - -
-
-
-
-
- -
-
-
-
- - - Required -
-
-
-
- - -
-
-
-
- -
-
-
- -
- Congratulations! You have successfully filled the form! -
-
-
-
-
-
- -
\ No newline at end of file diff --git a/src/app/pages/form/wizard/wizrdCtrl.js b/src/app/pages/form/wizard/wizrdCtrl.js deleted file mode 100644 index 5c607c6..0000000 --- a/src/app/pages/form/wizard/wizrdCtrl.js +++ /dev/null @@ -1,21 +0,0 @@ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.form') - .controller('WizardCtrl', WizardCtrl); - - /** @ngInject */ - function WizardCtrl($scope) { - var vm = this; - - vm.personalInfo = {}; - vm.productInfo = {}; - vm.shipment = {}; - - vm.arePersonalInfoPasswordsEqual = function () { - return vm.personalInfo.confirmPassword && vm.personalInfo.password == vm.personalInfo.confirmPassword; - }; - } - -})(); - diff --git a/src/app/pages/maps/google-maps/GmapPageCtrl.js b/src/app/pages/maps/google-maps/GmapPageCtrl.js deleted file mode 100644 index 5b7b4c6..0000000 --- a/src/app/pages/maps/google-maps/GmapPageCtrl.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.maps') - .controller('GmapPageCtrl', GmapPageCtrl); - - /** @ngInject */ - function GmapPageCtrl($timeout) { - function initialize() { - var mapCanvas = document.getElementById('google-maps'); - var mapOptions = { - center: new google.maps.LatLng(44.5403, -78.5463), - zoom: 8, - mapTypeId: google.maps.MapTypeId.ROADMAP - }; - var map = new google.maps.Map(mapCanvas, mapOptions); - } - - $timeout(function(){ - initialize(); - }, 100); - } - -})(); diff --git a/src/app/pages/maps/google-maps/google-maps.html b/src/app/pages/maps/google-maps/google-maps.html deleted file mode 100644 index c2507ef..0000000 --- a/src/app/pages/maps/google-maps/google-maps.html +++ /dev/null @@ -1,3 +0,0 @@ -
-
-
diff --git a/src/app/pages/maps/leaflet/LeafletPageCtrl.js b/src/app/pages/maps/leaflet/LeafletPageCtrl.js deleted file mode 100644 index 6ad189a..0000000 --- a/src/app/pages/maps/leaflet/LeafletPageCtrl.js +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.maps') - .controller('LeafletPageCtrl', LeafletPageCtrl); - - /** @ngInject */ - function LeafletPageCtrl($timeout) { - function initialize() { - L.Icon.Default.imagePath = 'assets/img/theme/vendor/leaflet/dist/images'; - var map = L.map(document.getElementById('leaflet-map')).setView([51.505, -0.09], 13); - L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', { - attribution: '© OpenStreetMap contributors' - }).addTo(map); - - L.marker([51.5, -0.09]).addTo(map) - .bindPopup('A pretty CSS3 popup.
Easily customizable.') - .openPopup(); - } - - $timeout(function(){ - initialize(); - }, 100); - - } - -})(); diff --git a/src/app/pages/maps/leaflet/leaflet.html b/src/app/pages/maps/leaflet/leaflet.html deleted file mode 100644 index 4c41a92..0000000 --- a/src/app/pages/maps/leaflet/leaflet.html +++ /dev/null @@ -1,3 +0,0 @@ -
-
-
\ No newline at end of file diff --git a/src/app/pages/maps/map-bubbles/MapBubblePageCtrl.js b/src/app/pages/maps/map-bubbles/MapBubblePageCtrl.js deleted file mode 100644 index ef85027..0000000 --- a/src/app/pages/maps/map-bubbles/MapBubblePageCtrl.js +++ /dev/null @@ -1,501 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.maps') - .controller('MapBubblePageCtrl', MapBubblePageCtrl); - - /** @ngInject */ - function MapBubblePageCtrl(baConfig, $timeout, layoutPaths) { - var layoutColors = baConfig.colors; - var latlong = {}; - latlong['AD'] = {'latitude': 42.5, 'longitude': 1.5}; - latlong['AE'] = {'latitude': 24, 'longitude': 54}; - latlong['AF'] = {'latitude': 33, 'longitude': 65}; - latlong['AG'] = {'latitude': 17.05, 'longitude': -61.8}; - latlong['AI'] = {'latitude': 18.25, 'longitude': -63.1667}; - latlong['AL'] = {'latitude': 41, 'longitude': 20}; - latlong['AM'] = {'latitude': 40, 'longitude': 45}; - latlong['AN'] = {'latitude': 12.25, 'longitude': -68.75}; - latlong['AO'] = {'latitude': -12.5, 'longitude': 18.5}; - latlong['AP'] = {'latitude': 35, 'longitude': 105}; - latlong['AQ'] = {'latitude': -90, 'longitude': 0}; - latlong['AR'] = {'latitude': -34, 'longitude': -64}; - latlong['AS'] = {'latitude': -14.3333, 'longitude': -170}; - latlong['AT'] = {'latitude': 47.3333, 'longitude': 13.3333}; - latlong['AU'] = {'latitude': -27, 'longitude': 133}; - latlong['AW'] = {'latitude': 12.5, 'longitude': -69.9667}; - latlong['AZ'] = {'latitude': 40.5, 'longitude': 47.5}; - latlong['BA'] = {'latitude': 44, 'longitude': 18}; - latlong['BB'] = {'latitude': 13.1667, 'longitude': -59.5333}; - latlong['BD'] = {'latitude': 24, 'longitude': 90}; - latlong['BE'] = {'latitude': 50.8333, 'longitude': 4}; - latlong['BF'] = {'latitude': 13, 'longitude': -2}; - latlong['BG'] = {'latitude': 43, 'longitude': 25}; - latlong['BH'] = {'latitude': 26, 'longitude': 50.55}; - latlong['BI'] = {'latitude': -3.5, 'longitude': 30}; - latlong['BJ'] = {'latitude': 9.5, 'longitude': 2.25}; - latlong['BM'] = {'latitude': 32.3333, 'longitude': -64.75}; - latlong['BN'] = {'latitude': 4.5, 'longitude': 114.6667}; - latlong['BO'] = {'latitude': -17, 'longitude': -65}; - latlong['BR'] = {'latitude': -10, 'longitude': -55}; - latlong['BS'] = {'latitude': 24.25, 'longitude': -76}; - latlong['BT'] = {'latitude': 27.5, 'longitude': 90.5}; - latlong['BV'] = {'latitude': -54.4333, 'longitude': 3.4}; - latlong['BW'] = {'latitude': -22, 'longitude': 24}; - latlong['BY'] = {'latitude': 53, 'longitude': 28}; - latlong['BZ'] = {'latitude': 17.25, 'longitude': -88.75}; - latlong['CA'] = {'latitude': 54, 'longitude': -100}; - latlong['CC'] = {'latitude': -12.5, 'longitude': 96.8333}; - latlong['CD'] = {'latitude': 0, 'longitude': 25}; - latlong['CF'] = {'latitude': 7, 'longitude': 21}; - latlong['CG'] = {'latitude': -1, 'longitude': 15}; - latlong['CH'] = {'latitude': 47, 'longitude': 8}; - latlong['CI'] = {'latitude': 8, 'longitude': -5}; - latlong['CK'] = {'latitude': -21.2333, 'longitude': -159.7667}; - latlong['CL'] = {'latitude': -30, 'longitude': -71}; - latlong['CM'] = {'latitude': 6, 'longitude': 12}; - latlong['CN'] = {'latitude': 35, 'longitude': 105}; - latlong['CO'] = {'latitude': 4, 'longitude': -72}; - latlong['CR'] = {'latitude': 10, 'longitude': -84}; - latlong['CU'] = {'latitude': 21.5, 'longitude': -80}; - latlong['CV'] = {'latitude': 16, 'longitude': -24}; - latlong['CX'] = {'latitude': -10.5, 'longitude': 105.6667}; - latlong['CY'] = {'latitude': 35, 'longitude': 33}; - latlong['CZ'] = {'latitude': 49.75, 'longitude': 15.5}; - latlong['DE'] = {'latitude': 51, 'longitude': 9}; - latlong['DJ'] = {'latitude': 11.5, 'longitude': 43}; - latlong['DK'] = {'latitude': 56, 'longitude': 10}; - latlong['DM'] = {'latitude': 15.4167, 'longitude': -61.3333}; - latlong['DO'] = {'latitude': 19, 'longitude': -70.6667}; - latlong['DZ'] = {'latitude': 28, 'longitude': 3}; - latlong['EC'] = {'latitude': -2, 'longitude': -77.5}; - latlong['EE'] = {'latitude': 59, 'longitude': 26}; - latlong['EG'] = {'latitude': 27, 'longitude': 30}; - latlong['EH'] = {'latitude': 24.5, 'longitude': -13}; - latlong['ER'] = {'latitude': 15, 'longitude': 39}; - latlong['ES'] = {'latitude': 40, 'longitude': -4}; - latlong['ET'] = {'latitude': 8, 'longitude': 38}; - latlong['EU'] = {'latitude': 47, 'longitude': 8}; - latlong['FI'] = {'latitude': 62, 'longitude': 26}; - latlong['FJ'] = {'latitude': -18, 'longitude': 175}; - latlong['FK'] = {'latitude': -51.75, 'longitude': -59}; - latlong['FM'] = {'latitude': 6.9167, 'longitude': 158.25}; - latlong['FO'] = {'latitude': 62, 'longitude': -7}; - latlong['FR'] = {'latitude': 46, 'longitude': 2}; - latlong['GA'] = {'latitude': -1, 'longitude': 11.75}; - latlong['GB'] = {'latitude': 54, 'longitude': -2}; - latlong['GD'] = {'latitude': 12.1167, 'longitude': -61.6667}; - latlong['GE'] = {'latitude': 42, 'longitude': 43.5}; - latlong['GF'] = {'latitude': 4, 'longitude': -53}; - latlong['GH'] = {'latitude': 8, 'longitude': -2}; - latlong['GI'] = {'latitude': 36.1833, 'longitude': -5.3667}; - latlong['GL'] = {'latitude': 72, 'longitude': -40}; - latlong['GM'] = {'latitude': 13.4667, 'longitude': -16.5667}; - latlong['GN'] = {'latitude': 11, 'longitude': -10}; - latlong['GP'] = {'latitude': 16.25, 'longitude': -61.5833}; - latlong['GQ'] = {'latitude': 2, 'longitude': 10}; - latlong['GR'] = {'latitude': 39, 'longitude': 22}; - latlong['GS'] = {'latitude': -54.5, 'longitude': -37}; - latlong['GT'] = {'latitude': 15.5, 'longitude': -90.25}; - latlong['GU'] = {'latitude': 13.4667, 'longitude': 144.7833}; - latlong['GW'] = {'latitude': 12, 'longitude': -15}; - latlong['GY'] = {'latitude': 5, 'longitude': -59}; - latlong['HK'] = {'latitude': 22.25, 'longitude': 114.1667}; - latlong['HM'] = {'latitude': -53.1, 'longitude': 72.5167}; - latlong['HN'] = {'latitude': 15, 'longitude': -86.5}; - latlong['HR'] = {'latitude': 45.1667, 'longitude': 15.5}; - latlong['HT'] = {'latitude': 19, 'longitude': -72.4167}; - latlong['HU'] = {'latitude': 47, 'longitude': 20}; - latlong['ID'] = {'latitude': -5, 'longitude': 120}; - latlong['IE'] = {'latitude': 53, 'longitude': -8}; - latlong['IL'] = {'latitude': 31.5, 'longitude': 34.75}; - latlong['IN'] = {'latitude': 20, 'longitude': 77}; - latlong['IO'] = {'latitude': -6, 'longitude': 71.5}; - latlong['IQ'] = {'latitude': 33, 'longitude': 44}; - latlong['IR'] = {'latitude': 32, 'longitude': 53}; - latlong['IS'] = {'latitude': 65, 'longitude': -18}; - latlong['IT'] = {'latitude': 42.8333, 'longitude': 12.8333}; - latlong['JM'] = {'latitude': 18.25, 'longitude': -77.5}; - latlong['JO'] = {'latitude': 31, 'longitude': 36}; - latlong['JP'] = {'latitude': 36, 'longitude': 138}; - latlong['KE'] = {'latitude': 1, 'longitude': 38}; - latlong['KG'] = {'latitude': 41, 'longitude': 75}; - latlong['KH'] = {'latitude': 13, 'longitude': 105}; - latlong['KI'] = {'latitude': 1.4167, 'longitude': 173}; - latlong['KM'] = {'latitude': -12.1667, 'longitude': 44.25}; - latlong['KN'] = {'latitude': 17.3333, 'longitude': -62.75}; - latlong['KP'] = {'latitude': 40, 'longitude': 127}; - latlong['KR'] = {'latitude': 37, 'longitude': 127.5}; - latlong['KW'] = {'latitude': 29.3375, 'longitude': 47.6581}; - latlong['KY'] = {'latitude': 19.5, 'longitude': -80.5}; - latlong['KZ'] = {'latitude': 48, 'longitude': 68}; - latlong['LA'] = {'latitude': 18, 'longitude': 105}; - latlong['LB'] = {'latitude': 33.8333, 'longitude': 35.8333}; - latlong['LC'] = {'latitude': 13.8833, 'longitude': -61.1333}; - latlong['LI'] = {'latitude': 47.1667, 'longitude': 9.5333}; - latlong['LK'] = {'latitude': 7, 'longitude': 81}; - latlong['LR'] = {'latitude': 6.5, 'longitude': -9.5}; - latlong['LS'] = {'latitude': -29.5, 'longitude': 28.5}; - latlong['LT'] = {'latitude': 55, 'longitude': 24}; - latlong['LU'] = {'latitude': 49.75, 'longitude': 6}; - latlong['LV'] = {'latitude': 57, 'longitude': 25}; - latlong['LY'] = {'latitude': 25, 'longitude': 17}; - latlong['MA'] = {'latitude': 32, 'longitude': -5}; - latlong['MC'] = {'latitude': 43.7333, 'longitude': 7.4}; - latlong['MD'] = {'latitude': 47, 'longitude': 29}; - latlong['ME'] = {'latitude': 42.5, 'longitude': 19.4}; - latlong['MG'] = {'latitude': -20, 'longitude': 47}; - latlong['MH'] = {'latitude': 9, 'longitude': 168}; - latlong['MK'] = {'latitude': 41.8333, 'longitude': 22}; - latlong['ML'] = {'latitude': 17, 'longitude': -4}; - latlong['MM'] = {'latitude': 22, 'longitude': 98}; - latlong['MN'] = {'latitude': 46, 'longitude': 105}; - latlong['MO'] = {'latitude': 22.1667, 'longitude': 113.55}; - latlong['MP'] = {'latitude': 15.2, 'longitude': 145.75}; - latlong['MQ'] = {'latitude': 14.6667, 'longitude': -61}; - latlong['MR'] = {'latitude': 20, 'longitude': -12}; - latlong['MS'] = {'latitude': 16.75, 'longitude': -62.2}; - latlong['MT'] = {'latitude': 35.8333, 'longitude': 14.5833}; - latlong['MU'] = {'latitude': -20.2833, 'longitude': 57.55}; - latlong['MV'] = {'latitude': 3.25, 'longitude': 73}; - latlong['MW'] = {'latitude': -13.5, 'longitude': 34}; - latlong['MX'] = {'latitude': 23, 'longitude': -102}; - latlong['MY'] = {'latitude': 2.5, 'longitude': 112.5}; - latlong['MZ'] = {'latitude': -18.25, 'longitude': 35}; - latlong['NA'] = {'latitude': -22, 'longitude': 17}; - latlong['NC'] = {'latitude': -21.5, 'longitude': 165.5}; - latlong['NE'] = {'latitude': 16, 'longitude': 8}; - latlong['NF'] = {'latitude': -29.0333, 'longitude': 167.95}; - latlong['NG'] = {'latitude': 10, 'longitude': 8}; - latlong['NI'] = {'latitude': 13, 'longitude': -85}; - latlong['NL'] = {'latitude': 52.5, 'longitude': 5.75}; - latlong['NO'] = {'latitude': 62, 'longitude': 10}; - latlong['NP'] = {'latitude': 28, 'longitude': 84}; - latlong['NR'] = {'latitude': -0.5333, 'longitude': 166.9167}; - latlong['NU'] = {'latitude': -19.0333, 'longitude': -169.8667}; - latlong['NZ'] = {'latitude': -41, 'longitude': 174}; - latlong['OM'] = {'latitude': 21, 'longitude': 57}; - latlong['PA'] = {'latitude': 9, 'longitude': -80}; - latlong['PE'] = {'latitude': -10, 'longitude': -76}; - latlong['PF'] = {'latitude': -15, 'longitude': -140}; - latlong['PG'] = {'latitude': -6, 'longitude': 147}; - latlong['PH'] = {'latitude': 13, 'longitude': 122}; - latlong['PK'] = {'latitude': 30, 'longitude': 70}; - latlong['PL'] = {'latitude': 52, 'longitude': 20}; - latlong['PM'] = {'latitude': 46.8333, 'longitude': -56.3333}; - latlong['PR'] = {'latitude': 18.25, 'longitude': -66.5}; - latlong['PS'] = {'latitude': 32, 'longitude': 35.25}; - latlong['PT'] = {'latitude': 39.5, 'longitude': -8}; - latlong['PW'] = {'latitude': 7.5, 'longitude': 134.5}; - latlong['PY'] = {'latitude': -23, 'longitude': -58}; - latlong['QA'] = {'latitude': 25.5, 'longitude': 51.25}; - latlong['RE'] = {'latitude': -21.1, 'longitude': 55.6}; - latlong['RO'] = {'latitude': 46, 'longitude': 25}; - latlong['RS'] = {'latitude': 44, 'longitude': 21}; - latlong['RU'] = {'latitude': 60, 'longitude': 100}; - latlong['RW'] = {'latitude': -2, 'longitude': 30}; - latlong['SA'] = {'latitude': 25, 'longitude': 45}; - latlong['SB'] = {'latitude': -8, 'longitude': 159}; - latlong['SC'] = {'latitude': -4.5833, 'longitude': 55.6667}; - latlong['SD'] = {'latitude': 15, 'longitude': 30}; - latlong['SE'] = {'latitude': 62, 'longitude': 15}; - latlong['SG'] = {'latitude': 1.3667, 'longitude': 103.8}; - latlong['SH'] = {'latitude': -15.9333, 'longitude': -5.7}; - latlong['SI'] = {'latitude': 46, 'longitude': 15}; - latlong['SJ'] = {'latitude': 78, 'longitude': 20}; - latlong['SK'] = {'latitude': 48.6667, 'longitude': 19.5}; - latlong['SL'] = {'latitude': 8.5, 'longitude': -11.5}; - latlong['SM'] = {'latitude': 43.7667, 'longitude': 12.4167}; - latlong['SN'] = {'latitude': 14, 'longitude': -14}; - latlong['SO'] = {'latitude': 10, 'longitude': 49}; - latlong['SR'] = {'latitude': 4, 'longitude': -56}; - latlong['ST'] = {'latitude': 1, 'longitude': 7}; - latlong['SV'] = {'latitude': 13.8333, 'longitude': -88.9167}; - latlong['SY'] = {'latitude': 35, 'longitude': 38}; - latlong['SZ'] = {'latitude': -26.5, 'longitude': 31.5}; - latlong['TC'] = {'latitude': 21.75, 'longitude': -71.5833}; - latlong['TD'] = {'latitude': 15, 'longitude': 19}; - latlong['TF'] = {'latitude': -43, 'longitude': 67}; - latlong['TG'] = {'latitude': 8, 'longitude': 1.1667}; - latlong['TH'] = {'latitude': 15, 'longitude': 100}; - latlong['TJ'] = {'latitude': 39, 'longitude': 71}; - latlong['TK'] = {'latitude': -9, 'longitude': -172}; - latlong['TM'] = {'latitude': 40, 'longitude': 60}; - latlong['TN'] = {'latitude': 34, 'longitude': 9}; - latlong['TO'] = {'latitude': -20, 'longitude': -175}; - latlong['TR'] = {'latitude': 39, 'longitude': 35}; - latlong['TT'] = {'latitude': 11, 'longitude': -61}; - latlong['TV'] = {'latitude': -8, 'longitude': 178}; - latlong['TW'] = {'latitude': 23.5, 'longitude': 121}; - latlong['TZ'] = {'latitude': -6, 'longitude': 35}; - latlong['UA'] = {'latitude': 49, 'longitude': 32}; - latlong['UG'] = {'latitude': 1, 'longitude': 32}; - latlong['UM'] = {'latitude': 19.2833, 'longitude': 166.6}; - latlong['US'] = {'latitude': 38, 'longitude': -97}; - latlong['UY'] = {'latitude': -33, 'longitude': -56}; - latlong['UZ'] = {'latitude': 41, 'longitude': 64}; - latlong['VA'] = {'latitude': 41.9, 'longitude': 12.45}; - latlong['VC'] = {'latitude': 13.25, 'longitude': -61.2}; - latlong['VE'] = {'latitude': 8, 'longitude': -66}; - latlong['VG'] = {'latitude': 18.5, 'longitude': -64.5}; - latlong['VI'] = {'latitude': 18.3333, 'longitude': -64.8333}; - latlong['VN'] = {'latitude': 16, 'longitude': 106}; - latlong['VU'] = {'latitude': -16, 'longitude': 167}; - latlong['WF'] = {'latitude': -13.3, 'longitude': -176.2}; - latlong['WS'] = {'latitude': -13.5833, 'longitude': -172.3333}; - latlong['YE'] = {'latitude': 15, 'longitude': 48}; - latlong['YT'] = {'latitude': -12.8333, 'longitude': 45.1667}; - latlong['ZA'] = {'latitude': -29, 'longitude': 24}; - latlong['ZM'] = {'latitude': -15, 'longitude': 30}; - latlong['ZW'] = {'latitude': -20, 'longitude': 30}; - - var mapData = [ - {'code': 'AF', 'name': 'Afghanistan', 'value': 32358260, 'color': layoutColors.primaryDark}, - {'code': 'AL', 'name': 'Albania', 'value': 3215988, 'color': layoutColors.warning}, - {'code': 'DZ', 'name': 'Algeria', 'value': 35980193, 'color': layoutColors.danger}, - {'code': 'AO', 'name': 'Angola', 'value': 19618432, 'color': layoutColors.danger}, - {'code': 'AR', 'name': 'Argentina', 'value': 40764561, 'color': layoutColors.success}, - {'code': 'AM', 'name': 'Armenia', 'value': 3100236, 'color': layoutColors.warning}, - {'code': 'AU', 'name': 'Australia', 'value': 22605732, 'color': layoutColors.warningDark}, - {'code': 'AT', 'name': 'Austria', 'value': 8413429, 'color': layoutColors.warning}, - {'code': 'AZ', 'name': 'Azerbaijan', 'value': 9306023, 'color': layoutColors.warning}, - {'code': 'BH', 'name': 'Bahrain', 'value': 1323535, 'color': layoutColors.primaryDark}, - {'code': 'BD', 'name': 'Bangladesh', 'value': 150493658, 'color': layoutColors.primaryDark}, - {'code': 'BY', 'name': 'Belarus', 'value': 9559441, 'color': layoutColors.warning}, - {'code': 'BE', 'name': 'Belgium', 'value': 10754056, 'color': layoutColors.warning}, - {'code': 'BJ', 'name': 'Benin', 'value': 9099922, 'color': layoutColors.danger}, - {'code': 'BT', 'name': 'Bhutan', 'value': 738267, 'color': layoutColors.primaryDark}, - {'code': 'BO', 'name': 'Bolivia', 'value': 10088108, 'color': layoutColors.success}, - {'code': 'BA', 'name': 'Bosnia and Herzegovina', 'value': 3752228, 'color': layoutColors.warning}, - {'code': 'BW', 'name': 'Botswana', 'value': 2030738, 'color': layoutColors.danger}, - {'code': 'BR', 'name': 'Brazil', 'value': 196655014, 'color': layoutColors.success}, - {'code': 'BN', 'name': 'Brunei', 'value': 405938, 'color': layoutColors.primaryDark}, - {'code': 'BG', 'name': 'Bulgaria', 'value': 7446135, 'color': layoutColors.warning}, - {'code': 'BF', 'name': 'Burkina Faso', 'value': 16967845, 'color': layoutColors.danger}, - {'code': 'BI', 'name': 'Burundi', 'value': 8575172, 'color': layoutColors.danger}, - {'code': 'KH', 'name': 'Cambodia', 'value': 14305183, 'color': layoutColors.primaryDark}, - {'code': 'CM', 'name': 'Cameroon', 'value': 20030362, 'color': layoutColors.danger}, - {'code': 'CA', 'name': 'Canada', 'value': 34349561, 'color': layoutColors.primary}, - {'code': 'CV', 'name': 'Cape Verde', 'value': 500585, 'color': layoutColors.danger}, - {'code': 'CF', 'name': 'Central African Rep.', 'value': 4486837, 'color': layoutColors.danger}, - {'code': 'TD', 'name': 'Chad', 'value': 11525496, 'color': layoutColors.danger}, - {'code': 'CL', 'name': 'Chile', 'value': 17269525, 'color': layoutColors.success}, - {'code': 'CN', 'name': 'China', 'value': 1347565324, 'color': layoutColors.primaryDark}, - {'code': 'CO', 'name': 'Colombia', 'value': 46927125, 'color': layoutColors.success}, - {'code': 'KM', 'name': 'Comoros', 'value': 753943, 'color': layoutColors.danger}, - {'code': 'CD', 'name': 'Congo, Dem. Rep.', 'value': 67757577, 'color': layoutColors.danger}, - {'code': 'CG', 'name': 'Congo, Rep.', 'value': 4139748, 'color': layoutColors.danger}, - {'code': 'CR', 'name': 'Costa Rica', 'value': 4726575, 'color': layoutColors.primary}, - {'code': 'CI', 'name': 'Cote d\'Ivoire', 'value': 20152894, 'color': layoutColors.danger}, - {'code': 'HR', 'name': 'Croatia', 'value': 4395560, 'color': layoutColors.warning}, - {'code': 'CU', 'name': 'Cuba', 'value': 11253665, 'color': layoutColors.primary}, - {'code': 'CY', 'name': 'Cyprus', 'value': 1116564, 'color': layoutColors.warning}, - {'code': 'CZ', 'name': 'Czech Rep.', 'value': 10534293, 'color': layoutColors.warning}, - {'code': 'DK', 'name': 'Denmark', 'value': 5572594, 'color': layoutColors.warning}, - {'code': 'DJ', 'name': 'Djibouti', 'value': 905564, 'color': layoutColors.danger}, - {'code': 'DO', 'name': 'Dominican Rep.', 'value': 10056181, 'color': layoutColors.primary}, - {'code': 'EC', 'name': 'Ecuador', 'value': 14666055, 'color': layoutColors.success}, - {'code': 'EG', 'name': 'Egypt', 'value': 82536770, 'color': layoutColors.danger}, - {'code': 'SV', 'name': 'El Salvador', 'value': 6227491, 'color': layoutColors.primary}, - {'code': 'GQ', 'name': 'Equatorial Guinea', 'value': 720213, 'color': layoutColors.danger}, - {'code': 'ER', 'name': 'Eritrea', 'value': 5415280, 'color': layoutColors.danger}, - {'code': 'EE', 'name': 'Estonia', 'value': 1340537, 'color': layoutColors.warning}, - {'code': 'ET', 'name': 'Ethiopia', 'value': 84734262, 'color': layoutColors.danger}, - {'code': 'FJ', 'name': 'Fiji', 'value': 868406, 'color': layoutColors.warningDark}, - {'code': 'FI', 'name': 'Finland', 'value': 5384770, 'color': layoutColors.warning}, - {'code': 'FR', 'name': 'France', 'value': 63125894, 'color': layoutColors.warning}, - {'code': 'GA', 'name': 'Gabon', 'value': 1534262, 'color': layoutColors.danger}, - {'code': 'GM', 'name': 'Gambia', 'value': 1776103, 'color': layoutColors.danger}, - {'code': 'GE', 'name': 'Georgia', 'value': 4329026, 'color': layoutColors.warning}, - {'code': 'DE', 'name': 'Germany', 'value': 82162512, 'color': layoutColors.warning}, - {'code': 'GH', 'name': 'Ghana', 'value': 24965816, 'color': layoutColors.danger}, - {'code': 'GR', 'name': 'Greece', 'value': 11390031, 'color': layoutColors.warning}, - {'code': 'GT', 'name': 'Guatemala', 'value': 14757316, 'color': layoutColors.primary}, - {'code': 'GN', 'name': 'Guinea', 'value': 10221808, 'color': layoutColors.danger}, - {'code': 'GW', 'name': 'Guinea-Bissau', 'value': 1547061, 'color': layoutColors.danger}, - {'code': 'GY', 'name': 'Guyana', 'value': 756040, 'color': layoutColors.success}, - {'code': 'HT', 'name': 'Haiti', 'value': 10123787, 'color': layoutColors.primary}, - {'code': 'HN', 'name': 'Honduras', 'value': 7754687, 'color': layoutColors.primary}, - {'code': 'HK', 'name': 'Hong Kong, China', 'value': 7122187, 'color': layoutColors.primaryDark}, - {'code': 'HU', 'name': 'Hungary', 'value': 9966116, 'color': layoutColors.warning}, - {'code': 'IS', 'name': 'Iceland', 'value': 324366, 'color': layoutColors.warning}, - {'code': 'IN', 'name': 'India', 'value': 1241491960, 'color': layoutColors.primaryDark}, - {'code': 'ID', 'name': 'Indonesia', 'value': 242325638, 'color': layoutColors.primaryDark}, - {'code': 'IR', 'name': 'Iran', 'value': 74798599, 'color': layoutColors.primaryDark}, - {'code': 'IQ', 'name': 'Iraq', 'value': 32664942, 'color': layoutColors.primaryDark}, - {'code': 'IE', 'name': 'Ireland', 'value': 4525802, 'color': layoutColors.warning}, - {'code': 'IL', 'name': 'Israel', 'value': 7562194, 'color': layoutColors.primaryDark}, - {'code': 'IT', 'name': 'Italy', 'value': 60788694, 'color': layoutColors.warning}, - {'code': 'JM', 'name': 'Jamaica', 'value': 2751273, 'color': layoutColors.primary}, - {'code': 'JP', 'name': 'Japan', 'value': 126497241, 'color': layoutColors.primaryDark}, - {'code': 'JO', 'name': 'Jordan', 'value': 6330169, 'color': layoutColors.primaryDark}, - {'code': 'KZ', 'name': 'Kazakhstan', 'value': 16206750, 'color': layoutColors.primaryDark}, - {'code': 'KE', 'name': 'Kenya', 'value': 41609728, 'color': layoutColors.danger}, - {'code': 'KP', 'name': 'Korea, Dem. Rep.', 'value': 24451285, 'color': layoutColors.primaryDark}, - {'code': 'KR', 'name': 'Korea, Rep.', 'value': 48391343, 'color': layoutColors.primaryDark}, - {'code': 'KW', 'name': 'Kuwait', 'value': 2818042, 'color': layoutColors.primaryDark}, - {'code': 'KG', 'name': 'Kyrgyzstan', 'value': 5392580, 'color': layoutColors.primaryDark}, - {'code': 'LA', 'name': 'Laos', 'value': 6288037, 'color': layoutColors.primaryDark}, - {'code': 'LV', 'name': 'Latvia', 'value': 2243142, 'color': layoutColors.warning}, - {'code': 'LB', 'name': 'Lebanon', 'value': 4259405, 'color': layoutColors.primaryDark}, - {'code': 'LS', 'name': 'Lesotho', 'value': 2193843, 'color': layoutColors.danger}, - {'code': 'LR', 'name': 'Liberia', 'value': 4128572, 'color': layoutColors.danger}, - {'code': 'LY', 'name': 'Libya', 'value': 6422772, 'color': layoutColors.danger}, - {'code': 'LT', 'name': 'Lithuania', 'value': 3307481, 'color': layoutColors.warning}, - {'code': 'LU', 'name': 'Luxembourg', 'value': 515941, 'color': layoutColors.warning}, - {'code': 'MK', 'name': 'Macedonia, FYR', 'value': 2063893, 'color': layoutColors.warning}, - {'code': 'MG', 'name': 'Madagascar', 'value': 21315135, 'color': layoutColors.danger}, - {'code': 'MW', 'name': 'Malawi', 'value': 15380888, 'color': layoutColors.danger}, - {'code': 'MY', 'name': 'Malaysia', 'value': 28859154, 'color': layoutColors.primaryDark}, - {'code': 'ML', 'name': 'Mali', 'value': 15839538, 'color': layoutColors.danger}, - {'code': 'MR', 'name': 'Mauritania', 'value': 3541540, 'color': layoutColors.danger}, - {'code': 'MU', 'name': 'Mauritius', 'value': 1306593, 'color': layoutColors.danger}, - {'code': 'MX', 'name': 'Mexico', 'value': 114793341, 'color': layoutColors.primary}, - {'code': 'MD', 'name': 'Moldova', 'value': 3544864, 'color': layoutColors.warning}, - {'code': 'MN', 'name': 'Mongolia', 'value': 2800114, 'color': layoutColors.primaryDark}, - {'code': 'ME', 'name': 'Montenegro', 'value': 632261, 'color': layoutColors.warning}, - {'code': 'MA', 'name': 'Morocco', 'value': 32272974, 'color': layoutColors.danger}, - {'code': 'MZ', 'name': 'Mozambique', 'value': 23929708, 'color': layoutColors.danger}, - {'code': 'MM', 'name': 'Myanmar', 'value': 48336763, 'color': layoutColors.primaryDark}, - {'code': 'NA', 'name': 'Namibia', 'value': 2324004, 'color': layoutColors.danger}, - {'code': 'NP', 'name': 'Nepal', 'value': 30485798, 'color': layoutColors.primaryDark}, - {'code': 'NL', 'name': 'Netherlands', 'value': 16664746, 'color': layoutColors.warning}, - {'code': 'NZ', 'name': 'New Zealand', 'value': 4414509, 'color': layoutColors.warningDark}, - {'code': 'NI', 'name': 'Nicaragua', 'value': 5869859, 'color': layoutColors.primary}, - {'code': 'NE', 'name': 'Niger', 'value': 16068994, 'color': layoutColors.danger}, - {'code': 'NG', 'name': 'Nigeria', 'value': 162470737, 'color': layoutColors.danger}, - {'code': 'NO', 'name': 'Norway', 'value': 4924848, 'color': layoutColors.warning}, - {'code': 'OM', 'name': 'Oman', 'value': 2846145, 'color': layoutColors.primaryDark}, - {'code': 'PK', 'name': 'Pakistan', 'value': 176745364, 'color': layoutColors.primaryDark}, - {'code': 'PA', 'name': 'Panama', 'value': 3571185, 'color': layoutColors.primary}, - {'code': 'PG', 'name': 'Papua New Guinea', 'value': 7013829, 'color': layoutColors.warningDark}, - {'code': 'PY', 'name': 'Paraguay', 'value': 6568290, 'color': layoutColors.success}, - {'code': 'PE', 'name': 'Peru', 'value': 29399817, 'color': layoutColors.success}, - {'code': 'PH', 'name': 'Philippines', 'value': 94852030, 'color': layoutColors.primaryDark}, - {'code': 'PL', 'name': 'Poland', 'value': 38298949, 'color': layoutColors.warning}, - {'code': 'PT', 'name': 'Portugal', 'value': 10689663, 'color': layoutColors.warning}, - {'code': 'PR', 'name': 'Puerto Rico', 'value': 3745526, 'color': layoutColors.primary}, - {'code': 'QA', 'name': 'Qatar', 'value': 1870041, 'color': layoutColors.primaryDark}, - {'code': 'RO', 'name': 'Romania', 'value': 21436495, 'color': layoutColors.warning}, - {'code': 'RU', 'name': 'Russia', 'value': 142835555, 'color': layoutColors.warning}, - {'code': 'RW', 'name': 'Rwanda', 'value': 10942950, 'color': layoutColors.danger}, - {'code': 'SA', 'name': 'Saudi Arabia', 'value': 28082541, 'color': layoutColors.primaryDark}, - {'code': 'SN', 'name': 'Senegal', 'value': 12767556, 'color': layoutColors.danger}, - {'code': 'RS', 'name': 'Serbia', 'value': 9853969, 'color': layoutColors.warning}, - {'code': 'SL', 'name': 'Sierra Leone', 'value': 5997486, 'color': layoutColors.danger}, - {'code': 'SG', 'name': 'Singapore', 'value': 5187933, 'color': layoutColors.primaryDark}, - {'code': 'SK', 'name': 'Slovak Republic', 'value': 5471502, 'color': layoutColors.warning}, - {'code': 'SI', 'name': 'Slovenia', 'value': 2035012, 'color': layoutColors.warning}, - {'code': 'SB', 'name': 'Solomon Islands', 'value': 552267, 'color': layoutColors.warningDark}, - {'code': 'SO', 'name': 'Somalia', 'value': 9556873, 'color': layoutColors.danger}, - {'code': 'ZA', 'name': 'South Africa', 'value': 50459978, 'color': layoutColors.danger}, - {'code': 'ES', 'name': 'Spain', 'value': 46454895, 'color': layoutColors.warning}, - {'code': 'LK', 'name': 'Sri Lanka', 'value': 21045394, 'color': layoutColors.primaryDark}, - {'code': 'SD', 'name': 'Sudan', 'value': 34735288, 'color': layoutColors.danger}, - {'code': 'SR', 'name': 'Suriname', 'value': 529419, 'color': layoutColors.success}, - {'code': 'SZ', 'name': 'Swaziland', 'value': 1203330, 'color': layoutColors.danger}, - {'code': 'SE', 'name': 'Sweden', 'value': 9440747, 'color': layoutColors.warning}, - {'code': 'CH', 'name': 'Switzerland', 'value': 7701690, 'color': layoutColors.warning}, - {'code': 'SY', 'name': 'Syria', 'value': 20766037, 'color': layoutColors.primaryDark}, - {'code': 'TW', 'name': 'Taiwan', 'value': 23072000, 'color': layoutColors.primaryDark}, - {'code': 'TJ', 'name': 'Tajikistan', 'value': 6976958, 'color': layoutColors.primaryDark}, - {'code': 'TZ', 'name': 'Tanzania', 'value': 46218486, 'color': layoutColors.danger}, - {'code': 'TH', 'name': 'Thailand', 'value': 69518555, 'color': layoutColors.primaryDark}, - {'code': 'TG', 'name': 'Togo', 'value': 6154813, 'color': layoutColors.danger}, - {'code': 'TT', 'name': 'Trinidad and Tobago', 'value': 1346350, 'color': layoutColors.primary}, - {'code': 'TN', 'name': 'Tunisia', 'value': 10594057, 'color': layoutColors.danger}, - {'code': 'TR', 'name': 'Turkey', 'value': 73639596, 'color': layoutColors.warning}, - {'code': 'TM', 'name': 'Turkmenistan', 'value': 5105301, 'color': layoutColors.primaryDark}, - {'code': 'UG', 'name': 'Uganda', 'value': 34509205, 'color': layoutColors.danger}, - {'code': 'UA', 'name': 'Ukraine', 'value': 45190180, 'color': layoutColors.warning}, - {'code': 'AE', 'name': 'United Arab Emirates', 'value': 7890924, 'color': layoutColors.primaryDark}, - {'code': 'GB', 'name': 'United Kingdom', 'value': 62417431, 'color': layoutColors.warning}, - {'code': 'US', 'name': 'United States', 'value': 313085380, 'color': layoutColors.primary}, - {'code': 'UY', 'name': 'Uruguay', 'value': 3380008, 'color': layoutColors.success}, - {'code': 'UZ', 'name': 'Uzbekistan', 'value': 27760267, 'color': layoutColors.primaryDark}, - {'code': 'VE', 'name': 'Venezuela', 'value': 29436891, 'color': layoutColors.success}, - {'code': 'PS', 'name': 'West Bank and Gaza', 'value': 4152369, 'color': layoutColors.primaryDark}, - {'code': 'VN', 'name': 'Vietnam', 'value': 88791996, 'color': layoutColors.primaryDark}, - {'code': 'YE', 'name': 'Yemen, Rep.', 'value': 24799880, 'color': layoutColors.primaryDark}, - {'code': 'ZM', 'name': 'Zambia', 'value': 13474959, 'color': layoutColors.danger}, - {'code': 'ZW', 'name': 'Zimbabwe', 'value': 12754378, 'color': layoutColors.danger} - ]; - - var map; - var minBulletSize = 3; - var maxBulletSize = 70; - var min = Infinity; - var max = -Infinity; - - // get min and max values - for (var i = 0; i < mapData.length; i++) { - var value = mapData[i].value; - if (value < min) { - min = value; - } - if (value > max) { - max = value; - } - } - - // build map - AmCharts.theme = AmCharts.themes.blur; - map = new AmCharts.AmMap(); - - map.addTitle('Population of the World in 2011', 14); - map.addTitle('source: Gapminder', 11); - map.areasSettings = { - unlistedAreasColor: '#000000', - unlistedAreasAlpha: 0.1 - }; - map.imagesSettings.balloonText = '[[title]]: [[value]]'; - map.pathToImages = layoutPaths.images.amMap; - - var dataProvider = { - mapVar: AmCharts.maps.worldLow, - images: [] - }; - - // it's better to use circle square to show difference between values, not a radius - var maxSquare = maxBulletSize * maxBulletSize * 2 * Math.PI; - var minSquare = minBulletSize * minBulletSize * 2 * Math.PI; - - // create circle for each country - for (var i = 0; i < mapData.length; i++) { - var dataItem = mapData[i]; - var value = dataItem.value; - // calculate size of a bubble - var square = (value - min) / (max - min) * (maxSquare - minSquare) + minSquare; - if (square < minSquare) { - square = minSquare; - } - var size = Math.sqrt(square / (Math.PI * 2)); - var id = dataItem.code; - - dataProvider.images.push({ - type: 'circle', - width: size, - height: size, - color: dataItem.color, - longitude: latlong[id].longitude, - latitude: latlong[id].latitude, - title: dataItem.name, - value: value - }); - } - - map.dataProvider = dataProvider; - map.export = { - enabled: true - }; - - $timeout(function() { - map.write('map-bubbles'); - }, 100); - } - -})(); diff --git a/src/app/pages/maps/map-bubbles/map-bubbles.html b/src/app/pages/maps/map-bubbles/map-bubbles.html deleted file mode 100644 index 87e1cc2..0000000 --- a/src/app/pages/maps/map-bubbles/map-bubbles.html +++ /dev/null @@ -1,3 +0,0 @@ -
-
-
diff --git a/src/app/pages/maps/map-lines/MapLinesPageCtrl.js b/src/app/pages/maps/map-lines/MapLinesPageCtrl.js deleted file mode 100644 index d9b50da..0000000 --- a/src/app/pages/maps/map-lines/MapLinesPageCtrl.js +++ /dev/null @@ -1,278 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.maps') - .controller('MapLinesPageCtrl', MapLinesPageCtrl); - - /** @ngInject */ - function MapLinesPageCtrl(baConfig, $timeout, layoutPaths) { - var layoutColors = baConfig.colors; - // svg path for target icon - var targetSVG = 'M9,0C4.029,0,0,4.029,0,9s4.029,9,9,9s9-4.029,9-9S13.971,0,9,0z M9,15.93 c-3.83,0-6.93-3.1-6.93-6.93S5.17,2.07,9,2.07s6.93,3.1,6.93,6.93S12.83,15.93,9,15.93 M12.5,9c0,1.933-1.567,3.5-3.5,3.5S5.5,10.933,5.5,9S7.067,5.5,9,5.5 S12.5,7.067,12.5,9z'; -// svg path for plane icon - var planeSVG = 'M19.671,8.11l-2.777,2.777l-3.837-0.861c0.362-0.505,0.916-1.683,0.464-2.135c-0.518-0.517-1.979,0.278-2.305,0.604l-0.913,0.913L7.614,8.804l-2.021,2.021l2.232,1.061l-0.082,0.082l1.701,1.701l0.688-0.687l3.164,1.504L9.571,18.21H6.413l-1.137,1.138l3.6,0.948l1.83,1.83l0.947,3.598l1.137-1.137V21.43l3.725-3.725l1.504,3.164l-0.687,0.687l1.702,1.701l0.081-0.081l1.062,2.231l2.02-2.02l-0.604-2.689l0.912-0.912c0.326-0.326,1.121-1.789,0.604-2.306c-0.452-0.452-1.63,0.101-2.135,0.464l-0.861-3.838l2.777-2.777c0.947-0.947,3.599-4.862,2.62-5.839C24.533,4.512,20.618,7.163,19.671,8.11z'; - $timeout(function() { - var map = AmCharts.makeChart( 'map-lines', { - type: 'map', - theme: 'blur', - dataProvider: { - map: 'worldLow', - linkToObject: 'london', - images: [ { - id: 'london', - svgPath: targetSVG, - title: 'London', - latitude: 51.5002, - longitude: -0.1262, - scale: 1.5, - zoomLevel: 2.74, - zoomLongitude: -20.1341, - zoomLatitude: 49.1712, - - lines: [ { - latitudes: [ 51.5002, 50.4422 ], - longitudes: [ -0.1262, 30.5367 ] - }, { - latitudes: [ 51.5002, 46.9480 ], - longitudes: [ -0.1262, 7.4481 ] - }, { - latitudes: [ 51.5002, 59.3328 ], - longitudes: [ -0.1262, 18.0645 ] - }, { - latitudes: [ 51.5002, 40.4167 ], - longitudes: [ -0.1262, -3.7033 ] - }, { - latitudes: [ 51.5002, 46.0514 ], - longitudes: [ -0.1262, 14.5060 ] - }, { - latitudes: [ 51.5002, 48.2116 ], - longitudes: [ -0.1262, 17.1547 ] - }, { - latitudes: [ 51.5002, 44.8048 ], - longitudes: [ -0.1262, 20.4781 ] - }, { - latitudes: [ 51.5002, 55.7558 ], - longitudes: [ -0.1262, 37.6176 ] - }, { - latitudes: [ 51.5002, 38.7072 ], - longitudes: [ -0.1262, -9.1355 ] - }, { - latitudes: [ 51.5002, 54.6896 ], - longitudes: [ -0.1262, 25.2799 ] - }, { - latitudes: [ 51.5002, 64.1353 ], - longitudes: [ -0.1262, -21.8952 ] - }, { - latitudes: [ 51.5002, 40.4300 ], - longitudes: [ -0.1262, -74.0000 ] - } ], - - images: [ { - label: 'Flights from London', - svgPath: planeSVG, - left: 100, - top: 45, - labelShiftY: 5, - labelShiftX: 5, - color: layoutColors.defaultText, - labelColor: layoutColors.defaultText, - labelRollOverColor: layoutColors.defaultText, - labelFontSize: 20 - }, { - label: 'show flights from Vilnius', - left: 106, - top: 70, - labelColor: layoutColors.defaultText, - labelRollOverColor: layoutColors.defaultText, - labelFontSize: 11, - linkToObject: 'vilnius' - } ] - }, - - { - id: 'vilnius', - svgPath: targetSVG, - title: 'Vilnius', - latitude: 54.6896, - longitude: 25.2799, - scale: 1.5, - zoomLevel: 4.92, - zoomLongitude: 15.4492, - zoomLatitude: 50.2631, - - lines: [ { - latitudes: [ 54.6896, 50.8371 ], - longitudes: [ 25.2799, 4.3676 ] - }, { - latitudes: [ 54.6896, 59.9138 ], - longitudes: [ 25.2799, 10.7387 ] - }, { - latitudes: [ 54.6896, 40.4167 ], - longitudes: [ 25.2799, -3.7033 ] - }, { - latitudes: [ 54.6896, 50.0878 ], - longitudes: [ 25.2799, 14.4205 ] - }, { - latitudes: [ 54.6896, 48.2116 ], - longitudes: [ 25.2799, 17.1547 ] - }, { - latitudes: [ 54.6896, 44.8048 ], - longitudes: [ 25.2799, 20.4781 ] - }, { - latitudes: [ 54.6896, 55.7558 ], - longitudes: [ 25.2799, 37.6176 ] - }, { - latitudes: [ 54.6896, 37.9792 ], - longitudes: [ 25.2799, 23.7166 ] - }, { - latitudes: [ 54.6896, 54.6896 ], - longitudes: [ 25.2799, 25.2799 ] - }, { - latitudes: [ 54.6896, 51.5002 ], - longitudes: [ 25.2799, -0.1262 ] - }, { - latitudes: [ 54.6896, 53.3441 ], - longitudes: [ 25.2799, -6.2675 ] - } ], - - images: [ { - label: 'Flights from Vilnius', - svgPath: planeSVG, - left: 100, - top: 45, - labelShiftY: 5, - labelShiftX: 5, - color: layoutColors.defaultText, - labelColor: layoutColors.defaultText, - labelRollOverColor: layoutColors.defaultText, - labelFontSize: 20 - }, { - label: 'show flights from London', - left: 106, - top: 70, - labelColor: layoutColors.defaultText, - labelRollOverColor: layoutColors.defaultText, - labelFontSize: 11, - linkToObject: 'london' - } ] - }, { - svgPath: targetSVG, - title: 'Brussels', - latitude: 50.8371, - longitude: 4.3676 - }, { - svgPath: targetSVG, - title: 'Prague', - latitude: 50.0878, - longitude: 14.4205 - }, { - svgPath: targetSVG, - title: 'Athens', - latitude: 37.9792, - longitude: 23.7166 - }, { - svgPath: targetSVG, - title: 'Reykjavik', - latitude: 64.1353, - longitude: -21.8952 - }, { - svgPath: targetSVG, - title: 'Dublin', - latitude: 53.3441, - longitude: -6.2675 - }, { - svgPath: targetSVG, - title: 'Oslo', - latitude: 59.9138, - longitude: 10.7387 - }, { - svgPath: targetSVG, - title: 'Lisbon', - latitude: 38.7072, - longitude: -9.1355 - }, { - svgPath: targetSVG, - title: 'Moscow', - latitude: 55.7558, - longitude: 37.6176 - }, { - svgPath: targetSVG, - title: 'Belgrade', - latitude: 44.8048, - longitude: 20.4781 - }, { - svgPath: targetSVG, - title: 'Bratislava', - latitude: 48.2116, - longitude: 17.1547 - }, { - svgPath: targetSVG, - title: 'Ljubljana', - latitude: 46.0514, - longitude: 14.5060 - }, { - svgPath: targetSVG, - title: 'Madrid', - latitude: 40.4167, - longitude: -3.7033 - }, { - svgPath: targetSVG, - title: 'Stockholm', - latitude: 59.3328, - longitude: 18.0645 - }, { - svgPath: targetSVG, - title: 'Bern', - latitude: 46.9480, - longitude: 7.4481 - }, { - svgPath: targetSVG, - title: 'Kiev', - latitude: 50.4422, - longitude: 30.5367 - }, { - svgPath: targetSVG, - title: 'Paris', - latitude: 48.8567, - longitude: 2.3510 - }, { - svgPath: targetSVG, - title: 'New York', - latitude: 40.43, - longitude: -74 - } - ] - }, - - areasSettings: { - unlistedAreasColor: layoutColors.info - }, - - imagesSettings: { - color: layoutColors.warningLight, - selectedColor: layoutColors.warning - }, - - linesSettings: { - color: layoutColors.warningLight, - alpha: 0.8 - }, - - - backgroundZoomsToTop: true, - linesAboveImages: true, - - export: { - 'enabled': true - }, - pathToImages: layoutPaths.images.amMap - } ); - }, 100); - - } - -})(); diff --git a/src/app/pages/maps/map-lines/map-lines.html b/src/app/pages/maps/map-lines/map-lines.html deleted file mode 100644 index 8f32ce6..0000000 --- a/src/app/pages/maps/map-lines/map-lines.html +++ /dev/null @@ -1,5 +0,0 @@ -
-
-
- - diff --git a/src/app/pages/maps/maps.html b/src/app/pages/maps/maps.html deleted file mode 100644 index 1e148f5..0000000 --- a/src/app/pages/maps/maps.html +++ /dev/null @@ -1,7 +0,0 @@ -
- -
-
-
- -
\ No newline at end of file diff --git a/src/app/pages/maps/maps.module.js b/src/app/pages/maps/maps.module.js deleted file mode 100644 index 47c3984..0000000 --- a/src/app/pages/maps/maps.module.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.maps', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('maps', { - url: '/maps', - templateUrl: 'app/pages/maps/maps.html', - abstract: true, - title: 'Maps', - sidebarMeta: { - icon: 'ion-ios-location-outline', - order: 500, - }, - }) - .state('maps.gmap', { - url: '/gmap', - templateUrl: 'app/pages/maps/google-maps/google-maps.html', - controller: 'GmapPageCtrl', - title: 'Google Maps', - sidebarMeta: { - order: 0, - }, - }) - .state('maps.leaflet', { - url: '/leaflet', - templateUrl: 'app/pages/maps/leaflet/leaflet.html', - controller: 'LeafletPageCtrl', - title: 'Leaflet Maps', - sidebarMeta: { - order: 100, - }, - }) - .state('maps.bubble', { - url: '/bubble', - templateUrl: 'app/pages/maps/map-bubbles/map-bubbles.html', - controller: 'MapBubblePageCtrl', - title: 'Bubble Maps', - sidebarMeta: { - order: 200, - }, - }) - .state('maps.line', { - url: '/line', - templateUrl: 'app/pages/maps/map-lines/map-lines.html', - controller: 'MapLinesPageCtrl', - title: 'Line Maps', - sidebarMeta: { - order: 300, - }, - }); - } - -})(); diff --git a/src/app/pages/pages.module.js b/src/app/pages/pages.module.js index 80d9be9..ada06a8 100644 --- a/src/app/pages/pages.module.js +++ b/src/app/pages/pages.module.js @@ -8,15 +8,8 @@ angular.module('BlurAdmin.pages', [ 'ui.router', - 'BlurAdmin.pages.dashboard', - 'BlurAdmin.pages.ui', - 'BlurAdmin.pages.components', - 'BlurAdmin.pages.form', - 'BlurAdmin.pages.tables', - 'BlurAdmin.pages.charts', - 'BlurAdmin.pages.maps', - 'BlurAdmin.pages.profile', 'BlurAdmin.pages.surveys', + 'BlurAdmin.pages.teams', ]) .config(routeConfig); @@ -44,20 +37,6 @@ blank: true }] }); - baSidebarServiceProvider.addStaticItem({ - title: 'Menu Level 1', - icon: 'ion-ios-more', - subMenu: [{ - title: 'Menu Level 1.1', - disabled: true - }, { - title: 'Menu Level 1.2', - subMenu: [{ - title: 'Menu Level 1.2.1', - disabled: true - }] - }] - }); } })(); diff --git a/src/app/pages/profile/ProfileModalCtrl.js b/src/app/pages/profile/ProfileModalCtrl.js deleted file mode 100644 index 0391cc1..0000000 --- a/src/app/pages/profile/ProfileModalCtrl.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @author a.demeshko - * created on 21.01.2016 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.profile') - .controller('ProfileModalCtrl', ProfileModalCtrl); - - /** @ngInject */ - function ProfileModalCtrl($scope, $uibModalInstance) { - $scope.link = ''; - $scope.ok = function () { - $uibModalInstance.close($scope.link); - }; - } - -})(); \ No newline at end of file diff --git a/src/app/pages/profile/ProfilePageCtrl.js b/src/app/pages/profile/ProfilePageCtrl.js deleted file mode 100644 index c271490..0000000 --- a/src/app/pages/profile/ProfilePageCtrl.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.profile') - .controller('ProfilePageCtrl', ProfilePageCtrl); - - /** @ngInject */ - function ProfilePageCtrl($scope, fileReader, $filter, $uibModal) { - $scope.picture = $filter('profilePicture')('Nasta'); - - $scope.removePicture = function () { - $scope.picture = $filter('appImage')('theme/no-photo.png'); - $scope.noPicture = true; - }; - - $scope.uploadPicture = function () { - var fileInput = document.getElementById('uploadFile'); - fileInput.click(); - - }; - - $scope.socialProfiles = [ - { - name: 'Facebook', - href: 'https://www.facebook.com/akveo/', - icon: 'socicon-facebook' - }, - { - name: 'Twitter', - href: 'https://twitter.com/akveo_inc', - icon: 'socicon-twitter' - }, - { - name: 'Google', - icon: 'socicon-google' - }, - { - name: 'LinkedIn', - href: 'https://www.linkedin.com/company/akveo', - icon: 'socicon-linkedin' - }, - { - name: 'GitHub', - href: 'https://github.com/akveo', - icon: 'socicon-github' - }, - { - name: 'StackOverflow', - icon: 'socicon-stackoverflow' - }, - { - name: 'Dribbble', - icon: 'socicon-dribble' - }, - { - name: 'Behance', - icon: 'socicon-behace' - } - ]; - - $scope.unconnect = function (item) { - item.href = undefined; - }; - - $scope.showModal = function (item) { - $uibModal.open({ - animation: false, - controller: 'ProfileModalCtrl', - templateUrl: 'app/pages/profile/profileModal.html' - }).result.then(function (link) { - item.href = link; - }); - }; - - $scope.getFile = function () { - fileReader.readAsDataUrl($scope.file, $scope) - .then(function (result) { - $scope.picture = result; - }); - }; - - $scope.switches = [true, true, false, true, true, false]; - } - -})(); diff --git a/src/app/pages/profile/profile.html b/src/app/pages/profile/profile.html deleted file mode 100644 index c9b5d5a..0000000 --- a/src/app/pages/profile/profile.html +++ /dev/null @@ -1,211 +0,0 @@ -
-
-
Your profile is 70% Complete
-
-
-
-
- -

General Information

- -
-
-
- - -
-
-
- -
- - Change Profile Picture - -
-
-
-
-
-
- -
-
-
- - -
- -
-
-
- - -
- -
-
-
-
-
- - -
- -
-
- -
- - -
- -
-
-
-
- -

Change Password

- -
-
-
- - -
- -
-
-
-
-
- - -
- -
-
-
-
- -

Contact Information

- -
-
-
- - -
- -
-
-
- - -
- -
-
-
-
-
- - -
- -
-
-
- - -
- -
-
-
-
- -

Social Profiles

- - - -

Send Email Notifications

- -
-
-
- - -
- -
-
-
- - -
- -
-
-
- - -
- -
-
-
-
-
- - -
- -
-
-
- - -
- -
-
- -
- - -
- -
-
-
-
- -
-
diff --git a/src/app/pages/profile/profile.module.js b/src/app/pages/profile/profile.module.js deleted file mode 100644 index a7446fe..0000000 --- a/src/app/pages/profile/profile.module.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.profile', []) - .config(routeConfig); - - /** @ngInject */ - function routeConfig($stateProvider) { - $stateProvider - .state('profile', { - url: '/profile', - title: 'Profile', - templateUrl: 'app/pages/profile/profile.html', - controller: 'ProfilePageCtrl', - }); - } - -})(); diff --git a/src/app/pages/profile/profileModal.html b/src/app/pages/profile/profileModal.html deleted file mode 100644 index 306d189..0000000 --- a/src/app/pages/profile/profileModal.html +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/src/app/pages/surveys/.DS_Store b/src/app/pages/surveys/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/src/app/pages/surveys/.DS_Store differ diff --git a/src/app/pages/surveys/SurveysPageCtrl.js b/src/app/pages/surveys/SurveysPageCtrl.js deleted file mode 100644 index 3dabb2f..0000000 --- a/src/app/pages/surveys/SurveysPageCtrl.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @author v.lugovsky - * created on 16.12.2015 - */ -(function () { - 'use strict'; - - angular.module('BlurAdmin.pages.surveys') - .controller('SurveysPageCtrl', SurveysPageCtrl); - - /** @ngInject */ - function SurveysPageCtrl($scope, $timeout) { - - $scope.isUnfolded = false; - $scope.survey.name = ''; - $scope.survey.description = ''; - $scope.survey.elements.length = 0; - - $scope.progressFunction = function() { - return $timeout(function() {}, 3000); - }; - - $scope.panelFoldToggle = function() { - $scope.isUnfolded = !$scope.isUnfolded; - console.log($scope.isUnfolded); - }; - - $scope.getTheFoldingClass = function() { - var $className = ( $scope.isUnfolded ) ? "fa fa-compress" : "fa fa-expand"; - return $className; - }; - - $scope.addElement = function(type){ - var element = createEmptyElement(type, $scope.survey.elements.length + 1); - $scope.activeElement=element; - $scope.survey.elements.push(element); - }; - - function createEmptyElement(type,orderNo){ - return { - id: 1, // TODO : generate the ID - orderNo: orderNo, - type: type - }; - } - - } - -})(); diff --git a/src/app/pages/surveys/create/create.html b/src/app/pages/surveys/create/create.html new file mode 100644 index 0000000..4a7874d --- /dev/null +++ b/src/app/pages/surveys/create/create.html @@ -0,0 +1,36 @@ +
+ +
+
+
+

{{ survey.name }}

+
+

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

+ +
+ +
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+ diff --git a/src/app/pages/form/inputs/widgets/tagsInput/tagsInput.directive.js b/src/app/pages/surveys/create/create.module.js similarity index 74% rename from src/app/pages/form/inputs/widgets/tagsInput/tagsInput.directive.js rename to src/app/pages/surveys/create/create.module.js index 8bd8417..e7bd2a2 100644 --- a/src/app/pages/form/inputs/widgets/tagsInput/tagsInput.directive.js +++ b/src/app/pages/surveys/create/create.module.js @@ -1,14 +1,13 @@ /** - * @author v.lugovksy + * @author v.lugovsky * created on 16.12.2015 */ (function () { 'use strict'; - angular.module('BlurAdmin.pages.form') + angular.module('BlurAdmin.pages.surveys.create',['BlurAdmin.pages.surveys']) .directive('tagInput', tagInput); - /** @ngInject */ function tagInput() { return { restrict: 'A', @@ -19,4 +18,5 @@ } }; } -})(); \ No newline at end of file + +})(); diff --git a/src/app/pages/surveys/create/createTabCtrl.js b/src/app/pages/surveys/create/createTabCtrl.js new file mode 100644 index 0000000..9227b0d --- /dev/null +++ b/src/app/pages/surveys/create/createTabCtrl.js @@ -0,0 +1,137 @@ +/** + * @author v.lugovsky + * created on 16.12.2015 + */ +(function () { + 'use strict'; + + angular.module('BlurAdmin.pages.surveys.create') + .controller('CreateTabCtrl', CreateTabCtrl) + .directive('multiple', function() { + return { + templateUrl: 'app/pages/surveys/create/widgets/multiple.html' + }; + }) + .directive("contenteditable", function() { + return { + require: "ngModel", + link: function(scope, element, attrs, ngModel) { + + function read() { + ngModel.$setViewValue(element.html()); + } + + ngModel.$render = function() { + element.html(ngModel.$viewValue || ""); + }; + + element.bind("blur keyup change", function() { + scope.$apply(read); + }); + } + }; + }); + + /** @ngInject */ + function CreateTabCtrl(SurveyService, $scope, $http, $compile, $timeout) { + + $scope.editmode = true; + $scope.survey = {}; + $scope.survey.name = 'Page Title'; + $scope.survey.description = 'Page Description'; + $scope.survey.elements = []; + + $scope.progressFunction = function() { + return $timeout(function() {}, 3000); + }; + + $scope.panelFoldToggle = function(index) { + $scope.survey.elements[index].isUnfolded = !$scope.survey.elements[index].isUnfolded; + console.log($scope.survey.elements[index].isUnfolded); + }; + + $scope.getTheFoldingClass = function() { + var $className = ( $scope.isUnfolded ) ? "fa fa-compress" : "fa fa-expand"; + return $className; + }; + + $scope.addElement = function(type){ + var element = $scope.createEmptyElement(type, $scope.survey.elements.length + 1); + $scope.activeElement=element; + $scope.survey.elements.push(element); + $scope.updateBuilder(); + }; + + $scope.removeElement = function(index){ + $scope.survey.elements.splice(index,1); + $scope.updateBuilder(); + }; + + $scope.createEmptyElement = function(type,orderNo){ + var item = { + id: 1, + orderNo: 1, + value: null + }; + return { + id: $scope.survey.elements.length+1, // TODO : generate the ID + orderNo: orderNo, + text: "", + type: type, + required: false, + multiAnswers: false, + isUnfolded: false, + comment: false, + commentLabel: '', + tags:[], + items: (type == 'multiple') ? [item] : [], + }; + } + + $scope.addNewItem=function(index){ + + var item = { + id: $scope.survey.elements[index].length + 1, + orderNo: $scope.survey.elements[index].length + 1, + value: null + }; + + $scope.survey.elements[index]['items'].push(item); + $scope.updateBuilder(); + }; + + $scope.removeItem=function(index, itemIndex){ + + console.log(index, itemIndex, $scope.survey.elements); + if(itemIndex != 0) { + $scope.survey.elements[index]['items'].splice(itemIndex,1); + $scope.updateBuilder(); + } + + + }; + + $scope.submitSurvey=function(){ + var survey = $scope.survey + SurveyService + .create(survey) + .then( + function (data){ + console.log('Survey created', data); + }, + function (error){ + console.log("Error creating the survey"); + } + ); + }; + + $scope.updateBuilder=function(){ + var compiledeHTML = $compile("
")($scope); + $("#newElem").html(compiledeHTML); + console.log($scope.survey.elements); + + }; + + } + +})(); diff --git a/src/app/pages/surveys/create/widgets/multiple.html b/src/app/pages/surveys/create/widgets/multiple.html new file mode 100644 index 0000000..7508f52 --- /dev/null +++ b/src/app/pages/surveys/create/widgets/multiple.html @@ -0,0 +1,91 @@ + + + + +
+
+

Question {{$index+1}}

+
+ + + + + + +
+
+
+
+
+
+ +
+
+
+ +
+ + +
+ +
+ +
+
+ + +
+
+
+ + +
+ + +
+ +
+
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+
+ +
+ + +
+ +
+ +
+
+ +
+
+
\ No newline at end of file diff --git a/src/app/pages/surveys/list/list.controller.js b/src/app/pages/surveys/list/list.controller.js new file mode 100644 index 0000000..79f640c --- /dev/null +++ b/src/app/pages/surveys/list/list.controller.js @@ -0,0 +1,38 @@ +(function () { + 'use strict'; + + angular.module('BlurAdmin.pages.surveys.list') + .controller('list', list); + + /** @ngInject */ + function list( SurveyService, $scope, $log, $state) { + var vm = this; + + function loadSurveys() { + SurveyService + .list() + .then(function (data){ + vm.surveys = data; + $log.info("Got the survey data",data); + }, function (error){ + $log.error(error); + }); + } + + function goToCreate() { + $log.info("Go to create"); + $state.go('surveys.create'); + } + + function activate(){ + vm.surveys = []; + vm.goToCreate = goToCreate; + + loadSurveys(); + } + + activate(); + + } + +})(); diff --git a/src/app/pages/surveys/list/list.html b/src/app/pages/surveys/list/list.html new file mode 100644 index 0000000..4abe8a6 --- /dev/null +++ b/src/app/pages/surveys/list/list.html @@ -0,0 +1,47 @@ +
+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + +
+ Title + Last edit + Responses + Actions +
+ {{ $index }} + + {{ survey.name }}
+ Create at : {{ survey.createdAt | date:'shortDate' }} +
+ {{ survey.updatedAt | date:'shortDate' }} + {{ survey.responses || 0 }} + + Action ... +
+
+ +
+
+ +
diff --git a/src/app/pages/surveys/list/list.module.js b/src/app/pages/surveys/list/list.module.js new file mode 100644 index 0000000..9e32ecf --- /dev/null +++ b/src/app/pages/surveys/list/list.module.js @@ -0,0 +1,7 @@ +(function () { + 'use strict'; + + angular.module('BlurAdmin.pages.surveys.list', + ['BlurAdmin.pages.surveys']); + +})(); diff --git a/src/app/pages/surveys/survey.service.js b/src/app/pages/surveys/survey.service.js new file mode 100644 index 0000000..4d47ae0 --- /dev/null +++ b/src/app/pages/surveys/survey.service.js @@ -0,0 +1,51 @@ +/** + * @author ayoub + */ +(function () { + 'use strict'; + + angular.module('BlurAdmin.pages.surveys') + .factory('SurveyService',SurveyService); + + /** @ngInject */ + function SurveyService($http, $q) { + var apiBaseUrl = "http://localhost:9000" + var endpoint = apiBaseUrl + "/surveys"; + + function list(params) { + params = params || {}; + + var deferred = $q.defer(); + $http.get(endpoint) + .success(function(data) { + deferred.resolve(data); + }).error(function(msg, code) { + deferred.reject(msg); + }); + + return deferred.promise; + + + return $http.get(endpoint, params); + } + + function create(survey) { + return $http.post(endpoint, survey); + } + + function edit(survery) { + console.log("edit jSurvey Opject", survey); + } + + function remove(survery) { + console.log("remove Opject", survey); + } + + return { + list:list, + create:create, + edit:edit, + remove:remove + } + } +})(); diff --git a/src/app/pages/surveys/surveys.html b/src/app/pages/surveys/surveys.html index 1c8a94a..4eb6df4 100644 --- a/src/app/pages/surveys/surveys.html +++ b/src/app/pages/surveys/surveys.html @@ -19,7 +19,7 @@ Last Question - + @@ -70,120 +70,6 @@
-
-
-

Survey Title

-
-

Page Title

-

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum

- -
-
-

Question 1

-
- - - - - - -
-
-
-
-
- -
- -
-
-
- -
- -
- -
- -
-
- - - -
-
- -
- -
- -
-
- - - -
-
-
- - -
- - -
- -
-
- -
- -
- -
- -
- -
-
- -
- -
-
- -
-
-
- -
-
- - - -
-
-
-
-
-
-
-
-