aboutsummaryrefslogtreecommitdiffstats
path: root/gui/bower.json
blob: d1d934f647178f669a1fc75c6c1b7b78372c761f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  "name": "yard-stick-gui2",
  "version": "0.0.0",
  "dependencies": {
    "angular": "^1.4.0",
    "bootstrap": "^3.2.0",
    "angular-strap": "^2.3.12",
    "angular-ui-router": "^1.0.3",
    "angular-animate": "^1.6.4",
    "angular-breadcrumb": "^0.5.0",
    "angular-wizard": "^0.10.0",
    "angular-resource": "^1.6.4",
    "ng-file-upload": "^12.2.13",
    "AngularJS-Toaster": "angularjs-toaster#^2.1.0",
    "ng-dialog": "^1.3.0",
    "angularUtils-pagination": "angular-utils-pagination#^0.11.1",
    "components-font-awesome": "^4.7.0",
    "ngstorage": "^0.3.11",
    "v-accordion": "^1.6.0",
    "angular-loading": "^0.1.4",
    "angular-bootstrap": "^2.5.0",
    "angular-sanitize": "^1.6.5"
  },
   "resolutions": {
    "angular": "~1.6.x"
  },
  "devDependencies": {
    "angular-mocks": "^1.4.0"
  },
  "appPath": "app",
  "moduleName": "yardStickGui2App",
  "overrides": {
    "bootstrap": {
      "main": [
        "less/bootstrap.less",
        "dist/css/bootstrap.css",
        "dist/js/bootstrap.js"
      ]
    },
    "angular-loading": {
      "main": [
        "angular-loading.css",
        "angular-loading.js",
        "../spin.js/spin.js"
      ]
    }
  }
}
p">; $scope.$watch(function () { return location.hash }, function (newvalue, oldvalue) { if (location.hash.indexOf('project') > -1) { $scope.projectShow = true; $scope.taskShow = false; $scope.reportShow = false; } else if (location.hash.indexOf('task') > -1) { $scope.taskShow = true; $scope.projectShow = true; } else if (location.hash.indexOf('report') > -1) { $scope.reportShow = true; $scope.taskShow = true; $scope.projectShow = true; } else if (location.hash.indexOf('envDetail') > -1 || location.hash.indexOf('envimageDetail') > -1 || location.hash.indexOf('envpodupload') > -1 || location.hash.indexOf('envcontainer') > -1) { $scope.ifshowEnvChild = true; $scope.activeStatus=0; }else{ $scope.ifshowEnvChild=false; $scope.activeStatus=-1; } }) function init() { $scope.showEnvironments = showEnvironments; $scope.showSteps = $location.path().indexOf('project'); $scope.test = test; $scope.gotoUploadPage = gotoUploadPage; $scope.gotoOpenrcPage = gotoOpenrcPage; $scope.gotoPodPage = gotoPodPage; $scope.gotoContainerPage = gotoContainerPage; $scope.gotoTestcase = gotoTestcase; $scope.gotoEnviron = gotoEnviron; $scope.gotoSuite = gotoSuite; $scope.gotoProject = gotoProject; $scope.gotoTask = gotoTask; $scope.gotoReport = gotoReport; $scope.stepsStatus = $localStorage.stepsStatus; $scope.goBack = goBack; } function showEnvironments() { $scope.showEnvironment = true; } function test() { alert('test'); } function gotoOpenrcPage() { $scope.path = $location.path(); $scope.uuid = $scope.path.split('/').pop(); $state.go('app.environmentDetail', { uuid: $scope.uuid }) } function gotoUploadPage() { $scope.path = $location.path(); $scope.uuid = $scope.path.split('/').pop(); $state.go('app.uploadImage', { uuid: $scope.uuid }); } function gotoPodPage() { $scope.path = $location.path(); $scope.uuid = $scope.path.split('/').pop(); $state.go('app.podUpload', { uuid: $scope.uuid }); } function gotoContainerPage() { $scope.path = $location.path(); $scope.uuid = $scope.path.split('/').pop(); $state.go('app.container', { uuid: $scope.uuid }); } function gotoTestcase() { $state.go('app.testcase'); } function gotoEnviron() { if ($location.path().indexOf('env') > -1 || $location.path().indexOf('environment') > -1) { $scope.counldGoDetail = true; } $state.go('app.environment'); } function gotoSuite() { $state.go('app.testsuite'); } function gotoProject() { $state.go('app.projectList'); } function gotoTask() { $state.go('app.tasklist'); } function gotoReport() { $state.go('app.report'); } function goBack() { if ($location.path().indexOf('main/environment')) { return; } else if ($location.path().indexOf('main/envDetail/') || $location.path().indexOf('main/imageDetail/') || $location.path().indexOf('main/podupload/') || $location.path().indexOf('main/container/')) { $state.go('app.environment'); return; } else { window.history.back(); } } } ]);