2020-01-04 15:20:02 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Service settings</title>
|
|
|
|
|
2020-05-26 09:36:37 +02:00
|
|
|
<meta http-equiv="Content-Security-Policy" content="style-src 'self' 'unsafe-inline' https://use.fontawesome.com; font-src 'self' https://use.fontawesome.com; script-src 'self' 'sha256-5gY/z34s5Mtc3YL8GkwZQhzk9LymQIuFUQRVvs7Gh0o='">
|
2020-04-01 09:32:13 +02:00
|
|
|
|
2020-01-04 15:20:02 +01:00
|
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"
|
|
|
|
integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
|
|
|
|
|
2020-05-25 06:16:28 +02:00
|
|
|
<link rel="stylesheet" href="css/layout.css">
|
|
|
|
<link rel="stylesheet" href="css/service-settings.css">
|
2020-01-10 15:14:41 +01:00
|
|
|
|
2020-05-26 09:36:37 +02:00
|
|
|
<script>require('./js/service-settings.js')</script>
|
2020-01-04 15:20:02 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<form action="javascript: save();">
|
2020-01-07 13:09:02 +01:00
|
|
|
<div class="form-header">
|
|
|
|
<h1>Loading...</h1>
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
|
2020-01-07 13:09:02 +01:00
|
|
|
<div class="form-body">
|
2020-01-04 15:20:02 +01:00
|
|
|
<div class="form-group">
|
2020-01-07 13:09:02 +01:00
|
|
|
<label for="name">Service name</label>
|
|
|
|
<input type="text" name="name" id="name" required>
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-01-07 13:09:02 +01:00
|
|
|
<label for="url">Service home URL</label>
|
|
|
|
<input type="text" name="url" id="url" required>
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
|
2020-01-07 13:09:02 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="auto-load">Automatically load service in the background</label>
|
|
|
|
<input type="checkbox" name="autoLoad" id="auto-load">
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
2020-01-07 13:09:02 +01:00
|
|
|
<label for="custom-css">Custom CSS styling</label>
|
|
|
|
<textarea name="customCSS" id="custom-css" rows="3"></textarea>
|
|
|
|
</div>
|
|
|
|
|
2020-02-20 12:46:53 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="custom-user-agent">Custom UserAgent (i.e. google services)</label>
|
|
|
|
<input type="text" name="customUserAgent" id="custom-user-agent">
|
|
|
|
<button type="button" id="userAgentAutoFill">Auto-fill</button>
|
|
|
|
</div>
|
|
|
|
|
2020-01-07 13:09:02 +01:00
|
|
|
<div id="icon-choice">
|
|
|
|
<div class="form-group-header">
|
|
|
|
<h2>Service icon</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="use-favicon">Use favicon</label>
|
|
|
|
<input type="checkbox" name="useFavicon" id="use-favicon">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="is-image">Use image instead of a built-in icon for the default icon</label>
|
|
|
|
<input type="checkbox" name="isImage" id="is-image">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group" id="icon-search-group">
|
|
|
|
<label for="built-in-icon-search">Icon</label>
|
|
|
|
<input type="text" name="icon-search" id="built-in-icon-search">
|
|
|
|
</div>
|
|
|
|
<div id="icon-select"></div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="icon-url">Icon URL</label>
|
|
|
|
<input type="text" name="icon" id="icon-url">
|
|
|
|
</div>
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-07 13:09:02 +01:00
|
|
|
<div class="form-footer">
|
|
|
|
<div class="form-group" id="buttons">
|
|
|
|
<button id="cancel-button">Cancel</button>
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
</div>
|
2020-01-04 15:20:02 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</body>
|
2020-02-20 12:46:53 +01:00
|
|
|
</html>
|