-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (111 loc) · 5.71 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
<html lang="en" >
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sirius - Slack extensions</title>
<meta charset="UTF-8">
<meta property="og:title" content="Sirius - Slack extensions"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="adsa.se">
<meta name="description" content="Configure Slack extensions"/>
<meta name="author" content="Adam Sandström <adsa95@gmail.com>"/>
<link rel="stylesheet" href="css/angular-material.min.css">
<style>
.md-errors-spacer{
display: none;
}
#card-token md-input-container{
margin-top: 0;
margin-bottom: 0;
}
#card-token md-input-container input{
padding-left: 0;
padding-right: 0;
}
.layout-max-width {
width: 100%;
max-width: 1200px;
}
md-list-item > md-checkbox{
margin-right: 29px !important;
margin-left: 3px !important;
margin-top: 16px !important;
margin-bottom: 16px !important;
}
md-chips > md-chips-wrap{
flex: 1;
}
</style>
</head>
<body ng-app="sirius" ng-cloak>
<md-content>
<md-toolbar flex layout="row" layout-align="center">
<div class="md-toolbar-tools layout-max-width">
<h2>Sirius - Slack extensions</h2>
</div>
</md-toolbar>
</md-content>
<md-content ng-controller="MainController" flex layout="column" layout-align="start center">
<md-card id="card-token" class="layout-max-width">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Step 1: Enter your slack token</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<md-input-container class="md-block" md-no-float>
<input type="text" ng-model="token" placeholder="xoxp-234234234-23234234-234234324234234-2342343242433">
</md-input-container>
</md-card-content>
</md-card>
<md-card class="layout-max-width">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Step 2: Choose extensions</span>
</md-card-title-text>
</md-card-title>
<md-list>
<md-divider></md-divider>
<md-list-item ng-repeat="extension in extensions" class="md-no-proxy">
<md-checkbox ng-model="extension.selected"></md-checkbox>
<div flex>
<h3>{{extension.name}}</h3>
<p>{{extension.description}}</p>
<b ng-if="extension.config !== null">Extension options:</b>
<div class="options" ng-repeat="option in extension.config" ng-init="option.value = option.value ? option.value : option.default" flex>
<md-switch ng-if="option.type == 'bool'" ng-model="option.value">{{::option.key}}</md-switch>
<md-input-container ng-if="option.type == 'string'" flex>
<input ng-model="option.value" placeholder="{{::option.key}}">
</md-input-container>
<md-chips ng-if="option.type == 'list'" layout="row" ng-model="option.value" placeholder="{{::option.key}}" flex md-separator-keys="[13,9]">
<md-chip-template>{{$chip}}</md-chip-template>
</md-chips>
<md-input-container ng-if="option.type == 'select'" flex>
<md-select ng-model="option.value" placeholder="{{::option.key}}">
<md-option ng-value="val" ng-repeat="val in option.values">{{val}}</md-option>
</md-select>
</md-input-container>
</div>
</div>
<md-divider ng-if="!$last"></md-divider>
</md-list-item>
</md-list>
</md-card>
<md-card class="layout-max-width">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Step 3: Save and enjoy!</span>
</md-card-title-text>
</md-card-title>
<md-card-content layout="row" layout-align="start center">
<md-button ng-disabled="saving" class="md-primary md-raised" ng-click="save()" layout="row" layout-align="center center">Save!</md-button><md-progress-circular ng-if="saving" class="md-accent" md-diameter="20px"></md-progress-circular>
</md-card-content>
</md-card>
</md-content>
<script src="js/lib/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"></script>
<script src="js/lib/angular-material.min.js"></script>
<script src="js/app.js"></script>
</body>
</html>