-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #434 from hashmapinc/tempus-elaboration-37
Tempus elaboration 37
- Loading branch information
Showing
7 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright © 2017-2018 Hashmap, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/* eslint-disable import/no-unresolved, import/default, no-unused-vars */ | ||
import './data_models.scss'; | ||
|
||
/*@ngInject*/ | ||
export function DataModelsController($scope, $log, $state, $stateParams, userService, deviceService, types, attributeService, $q, dashboardService, applicationService, entityService, tempusboardService, utils, $filter, dashboardUtils) { | ||
var vm = this; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright © 2017-2018 Hashmap, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/*@ngInject*/ | ||
export default function DataModelsDirective() { | ||
var linker = function () { | ||
|
||
} | ||
return { | ||
restrict: "E", | ||
link: linker, | ||
scope: { | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright © 2017-2018 Hashmap, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/* eslint-disable import/no-unresolved, import/default */ | ||
|
||
import dataModelsTemplate from './data_models.tpl.html'; | ||
|
||
/* eslint-enable import/no-unresolved, import/default */ | ||
|
||
/*@ngInject*/ | ||
export default function DataModelsRoutes($stateProvider, types) { | ||
$stateProvider | ||
.state('home.data_models', { | ||
url: '/data_models', | ||
params: {'topIndex': 0}, | ||
module: 'private', | ||
auth: ['TENANT_ADMIN', 'CUSTOMER_USER'], | ||
views: { | ||
"content@home": { | ||
templateUrl: dataModelsTemplate, | ||
controller: 'DataModelsController', | ||
controllerAs: 'vm' | ||
} | ||
}, | ||
data: { | ||
alertsType: 'tenant', | ||
searchEnabled: true, | ||
searchByEntitySubtype: true, | ||
searchEntityType: types.entityType.alert, | ||
pageTitle: 'data_model.data_models' | ||
}, | ||
ncyBreadcrumb: { | ||
label: '{"icon": "data_models", "label": "data_model.data_models", "link": "/static/svg/data-models-icon.svg"}' | ||
} | ||
}); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* Copyright © 2017-2018 Hashmap, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
Copyright © 2017-2018 Hashmap, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<section layout="row" class="ng-scope layout-row" layout-wrap> | ||
<div layout="row" class="row" style="width:100%; clear:both;"> | ||
</div> | ||
</section> | ||
<section layout="row" layout-wrap class="tb-footer-buttons md-fab" layout-align="start end"> | ||
<md-fab-speed-dial ng-disabled="$root.loading" ng-show="true" md-open="" | ||
class="md-scale" md-direction="up"> | ||
<md-fab-trigger> | ||
<md-button ng-disabled="$root.loading" class="tb-btn-footer md-accent md-hue-2 md-fab" aria-label="{{ 'add data model'}}"> | ||
<md-tooltip md-direction="top"> | ||
{{ "add data model"}} | ||
</md-tooltip> | ||
<ng-md-icon icon="add"></ng-md-icon> | ||
</md-button> | ||
</md-fab-trigger> | ||
<md-fab-actions> | ||
<md-button ng-disabled="$root.loading" class="tmd-accent md-hue-2 md-fab" ng-click="" aria-label="{{ 'action.create' | translate }}"> | ||
<md-tooltip md-direction="top"> | ||
{{ "create new data model" }} | ||
</md-tooltip> | ||
<ng-md-icon icon="insert_drive_file"></ng-md-icon> | ||
</md-button> | ||
<md-button ng-disabled="$root.loading" class="tmd-accent md-hue-2 md-fab" ng-click="" aria-label="{{ 'action.import' | translate }}"> | ||
<md-tooltip md-direction="top"> | ||
{{ "import data model" }} | ||
</md-tooltip> | ||
<ng-md-icon icon="file_upload"></ng-md-icon> | ||
</md-button> | ||
</md-fab-actions> | ||
</md-fab-speed-dial> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright © 2017-2018 Hashmap, Inc | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import '../dashboard/dashboard.scss'; | ||
|
||
import uiRouter from 'angular-ui-router'; | ||
import tempusGrid from '../components/grid.directive'; | ||
import tempusApiUser from '../api/user.service'; | ||
import tempusApiDevice from '../api/device.service'; | ||
import tempusApiCustomer from '../api/customer.service'; | ||
import tempusApiDashboard from '../api/dashboard.service'; | ||
import tempusApiWidget from '../api/widget.service'; | ||
import tempusApiTempusboard from '../api/tempusboard.service'; | ||
import tempusWidgetConfig from '../components/widget/widget-config.directive'; | ||
import dashboardStates from '../dashboard/states'; | ||
|
||
|
||
import DataModelsRoutes from './data_models.routes'; | ||
import {DataModelsController} from './data_models.controller'; | ||
|
||
export default angular.module('tempus.data_models', [ | ||
uiRouter, | ||
tempusGrid, | ||
tempusApiUser, | ||
tempusApiDevice, | ||
tempusApiCustomer, | ||
tempusApiDashboard, | ||
tempusApiWidget, | ||
tempusApiTempusboard, | ||
tempusWidgetConfig, | ||
dashboardStates | ||
]) | ||
.config(DataModelsRoutes) | ||
.controller('DataModelsController', DataModelsController) | ||
.name; |