-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (115 loc) · 7.5 KB
/
index.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html ng-app='app'>
<head>
<title>Angular Todo Chrome Extension</title>
<link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/angular-material.min.css">
</head>
<body ng-controller='homeCtrl'>
<div>
<div ng-if="!showSettings">
<md-tabs md-selected="selectedTab" class="md-primary">
<md-tab label="{{dateMinusZero}}" ng-click="changeDate('0')"></md-tab>
<md-tab label="{{dateMinusOne}}" ng-click="changeDate('1')"></md-tab>
<md-tab label="{{dateMinusTwo}}" ng-click="changeDate('2')"></md-tab>
<md-tab label="{{dateMinusThree}}" ng-click="changeDate('3')"></md-tab>
<md-tab label="{{dateMinusFour}}" ng-click="changeDate('4')"></md-tab>
<md-tab label="{{dateMinusFive}}" ng-click="changeDate('5')"></md-tab>
<md-tab label="{{dateMinusSix}}" ng-click="changeDate('6')"></md-tab>
</md-tabs>
<md-list class="no-padding ng-cloak md-primary">
<div ng-show="shouldShowPullRequests()">
<md-subheader class="md-no-sticky md-accent section-title">Pull requests</md-subheader>
<md-progress-circular class="spinner" ng-if="isLoadingPR" md-mode="indeterminate"></md-progress-circular>
<span ng-if="webRequestPullRequestFailed">Failed to retrieve</span>
<md-list-item class="secondary-button-padding" ng-if="!isLoadingPR" ng-repeat='todo in pullRequests'>
<div ng-if="!todo.selected">
<span class="pr-title">{{todo.title}}</span>
<br />
<span>{{todo.description}}</span>
<md-button ng-if="!todo.selected" class="md-accent md-secondary" ng-click="todo.selected = true">Copy</md-button>
</div>
<div ng-if="todo.selected">
<md-button ng-if="todo.selected" class="md-accent md-secondary " ngclipboard data-clipboard-text="{{todo.title}}" ng-click="todo.selected = false">Copy title</md-button>
<md-button ng-if="todo.selected" class="md-accent md-secondary" ngclipboard data-clipboard-text="{{todo.description}}" ng-click="todo.selected = false">Copy description</md-button>
</div>
<md-divider></md-divider>
</md-list-item>
</div>
<div ng-show="shouldShowBacklog()">
<md-subheader class="md-no-sticky md-accent section-title">Backlog items assigned to me</md-subheader>
<div>
<md-progress-circular class="spinner" ng-if="isLoadingBacklog" md-mode="indeterminate"></md-progress-circular>
<span ng-if="webRequestPullRequestFailed">Failed to retrieve</span>
</div>
<md-list-item class="list-item" ng-if="!isLoadingBacklog" ng-repeat='todo in backlogItems'>
<div class='todo-content item-type feature' ng-show="isFeature(todo.workItemType)">Feature</div>
<div class='todo-content item-type epic' ng-show="isEpic(todo.workItemType)">Epic</div>
<div class='todo-content item-type task' ng-show="isTask(todo.workItemType)">Task</div>
<div class='todo-content item-type bug' ng-show="isBug(todo.workItemType)">Bug</div>
<span>{{todo.title}}</span>
<md-button class="md-accent md-secondary" ngclipboard data-clipboard-text="{{todo.title}}">Copy</md-button>
<md-divider></md-divider>
</md-list-item>
</div>
<md-checkbox ng-model="obg.onlyShowForStatusChanges" class="checkbox-backlog" aria-label="Only show backlog items which had a status change">
Only work items with status changes
</md-checkbox>
</md-list>
</div>
</div>
<div ng-if="showSettings">
<div class="container">
<h3>Settings</h3>
<div class="red" ng-show="tokenSet">Token Set!</div>
<md-button ng-show="showReEnterTokenButton" ng-click="toggleShowReEnterTokenButton()">Re-Enter VSO personal access token</md-button><br />
<md-input-container class="md-block" flex-gt-sm ng-hide="showReEnterTokenButton">
<label>VSTS Personal Access Token</label>
<input ng-model="temporaryToken.value" ng-change="setPersonalAccessToken()" ng-blur="clearTempToken()">
Create a personal access token for this app from the <a target="_blank" href="https://www.visualstudio.com/en-us/docs/setup-admin/team-services/use-personal-access-tokens-to-authenticate">
VSTS Security section
<img src="images/Access.png" class="pat-image"/>
</a>
</md-input-container>
<md-input-container>
<label>Account</label>
<md-select ng-model="obg.selectedAccount" ng-change="accountSelected()">
<md-option ng-repeat="account in accounts" ng-value="account">
{{account}}
</md-option>
</md-select>
</md-input-container>
<md-input-container>
<label>Project</label>
<md-select ng-model="obg.selectedProject" ng-change="saveObj()">
<md-option ng-repeat="project in projects" ng-value="project">
{{project}}
</md-option>
</md-select>
</md-input-container>
</div>
</div>
<div class="button-container">
<md-button class="md-secondary md-raised no-left-margin" ng-click="toggleSettingsVisibility()">{{settingsText}}</md-button>
<md-button class="md-secondary md-raised no-left-margin" ng-hide="showSettings" ng-click="refreshPage()">Refresh</md-button>
</div>
<script type="text/javascript" src="lib/jquery/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="lib/node-forge/dist/forge.all.min.js"></script>
<script type="text/javascript" src="lib/angular/angular.js"></script>
<script src="lib/lodash/lodash.min.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/material/angular-animate.min.js"></script>
<script type="text/javascript" src="lib/material/angular-aria.min.js"></script>
<script type="text/javascript" src="lib/material/angular-material.min.js"></script>
<script src="lib/moment/moment.js"></script>
<script src="lib/moment/angular-moment.min.js"></script>
<script type="text/javascript" src="lib/Clipboard/clipboard.min.js"></script>
<script src="lib/sjcl/sjcl.js"></script>
<script type="text/javascript" src="lib/Clipboard/ngclipboard.min.js"></script>
<script type="text/javascript" src="app/encrypter.js"></script>
<script type="text/javascript" src="app/app.js"></script>
<script type="text/javascript" src="app/homeCtrl.js"></script>
<script type="text/javascript" src="app/vsoRepository.js"></script>
</body>
</html>