-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.html
167 lines (161 loc) · 7.55 KB
/
settings.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<!DOCTYPE html>
<html>
<head>
<title>Pairkiller Settings</title>
<link rel="stylesheet" href="output.css">
<script src="settings.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css">
<style>
ul {
padding: 0;
list-style: none;
}
.footer-social-icons {
width: 350px;
display: block;
margin: 0 auto;
}
.social-icon {
color: var(--dhfi-dark);
}
ul.social-icons {
margin-top: 10px;
}
.social-icons li {
vertical-align: top;
display: inline;
height: 100px;
}
.social-icons a {
color: var(--dhfi-dark);
text-decoration: none;
}
.fa-twitter {
padding: 10px 12px;
-o-transition: 0.5s;
-ms-transition: 0.5s;
-moz-transition: 0.5s;
-webkit-transition: 0.5s;
transition: 0.5s;
}
.fa-twitter:hover {
background-color: #00aced;
}
.fa-instagram {
padding: 10px 14px;
-o-transition: 0.5s;
-ms-transition: 0.5s;
-moz-transition: 0.5s;
-webkit-transition: 0.5s;
transition: 0.5s;
}
</style>
</head>
<body class="h-full w-full flex flex-col bg-stone-900 text-stone-100 p-6">
<div class="max-w-4xl mx-auto w-full">
<div class="flex justify-between items-center mb-8">
<h2 class="text-2xl font-bold">Pairkiller Settings</h2>
<button id="saveSettingsButton" class="bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-6 rounded-lg flex items-center space-x-2">
<i class="fa fa-save"></i>
<span>Save & Close</span>
</button>
</div>
<div class="app-groups space-y-6">
<div class="flex justify-between items-center">
<h3 class="text-xl font-semibold">Presets</h3>
</div>
<div id="presets" class="space-y-4">
<div class="grid grid-cols-2 gap-4">
<button class="add-preset bg-stone-800 hover:bg-stone-700 p-4 rounded-lg text-left" data-preset="leagueOfLegends">
<div class="font-semibold text-lg mb-1">Blitz / League of Legends</div>
<div class="text-sm text-stone-400">Add monitoring for League of Legends with Blitz companion app</div>
</button>
<button class="add-preset bg-stone-800 hover:bg-stone-700 p-4 rounded-lg text-left" data-preset="rocketLeague">
<div class="font-semibold text-lg mb-1">BakkesMod / Rocket League</div>
<div class="text-sm text-stone-400">Add monitoring for Rocket League with BakkesMod companion app</div>
</button>
</div>
</div>
<div class="mt-8 flex justify-between items-center">
<h3 class="text-xl font-semibold">App Groups</h3>
<button id="addGroupButton" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg flex items-center space-x-2">
<i class="fa fa-plus"></i>
<span>Add New Group</span>
</button>
</div>
<div id="appGroups" class="space-y-6"></div>
</div>
</div>
<!-- App Group Template -->
<template id="groupTemplate">
<div class="app-group bg-stone-800 rounded-lg p-6 mb-6">
<div class="flex justify-between items-center mb-4">
<div class="flex items-center space-x-4">
<input type="text" class="group-name bg-stone-700 text-white px-3 py-2 rounded-lg" placeholder="Group Name">
<select class="condition-select bg-stone-700 text-white px-3 py-2 rounded-lg">
<option value="all">All apps must be running</option>
<option value="any">Any app must be running</option>
</select>
</div>
<div class="flex space-x-2">
<button class="duplicate-group bg-blue-600 hover:bg-blue-700 text-white px-3 py-2 rounded-lg flex items-center space-x-2">
<i class="fa fa-clone"></i>
<span>Duplicate</span>
</button>
<button class="delete-group bg-red-600 hover:bg-red-700 text-white px-3 py-2 rounded-lg flex items-center space-x-2">
<i class="fa fa-trash"></i>
<span>Delete</span>
</button>
</div>
</div>
<div class="grid grid-cols-2 gap-6">
<div class="monitored-apps">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Monitored Apps</h3>
<button class="add-monitored-app bg-stone-700 hover:bg-stone-600 text-white px-3 py-2 rounded-lg flex items-center space-x-2">
<i class="fa fa-plus"></i>
<span>Add App</span>
</button>
</div>
<div class="monitored-apps-list space-y-4"></div>
</div>
<div class="controlled-apps">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Controlled Apps</h3>
<button class="add-controlled-app bg-stone-700 hover:bg-stone-600 text-white px-3 py-2 rounded-lg flex items-center space-x-2">
<i class="fa fa-plus"></i>
<span>Add App</span>
</button>
</div>
<div class="controlled-apps-list space-y-4"></div>
</div>
</div>
</div>
</template>
<!-- App Entry Template -->
<template id="appEntryTemplate">
<div class="app-entry flex items-center space-x-3 bg-stone-700 p-3 rounded-lg">
<div class="flex-grow">
<input type="text" class="app-name bg-stone-600 text-white px-3 py-2 rounded-lg w-full mb-2" placeholder="App Name (e.g., notepad.exe)">
<div class="path-input-container">
<div class="flex space-x-2">
<input type="text" class="app-path bg-stone-600 text-white px-3 py-2 rounded-lg flex-grow" placeholder="Path to executable (optional)">
<button class="browse-button bg-blue-600 hover:bg-blue-700 text-white px-3 py-2 rounded-lg">Browse</button>
</div>
</div>
<div class="app-action-container mt-2" style="display: none;">
<select class="app-action bg-stone-600 text-white px-3 py-2 rounded-lg w-full">
<option value="sync">Sync with trigger</option>
<option value="opposite">Opposite of trigger</option>
<option value="start">Start when triggered</option>
<option value="stop">Stop when triggered</option>
</select>
</div>
</div>
<button class="delete-app bg-red-600 hover:bg-red-700 text-white p-2 rounded-lg">
<i class="fa fa-trash"></i>
</button>
</div>
</template>
</body>
</html>