mobileconfig-generator/index.html

130 lines
8.5 KiB
HTML
Raw Normal View History

2020-06-22 17:24:44 +02:00
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
2020-06-22 22:21:25 +02:00
<title>Mobileconfig Generator</title>
2020-06-22 17:24:44 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
2020-06-22 21:28:22 +02:00
<div id="app">
<h1>1. Fill in the forms for your email configuration profile</h1>
<p>Documentation can be found
<a href="https://developer.apple.com/documentation/devicemanagement/configuring_multiple_devices_using_profiles">here</a>
for common fields and
<a href="https://developer.apple.com/documentation/devicemanagement/mail">here</a>
for email specific fields.
2020-06-22 17:24:44 +02:00
</p>
2020-06-23 17:26:20 +02:00
<p>
Everything happens in your browser, your data isn't sent anywhere.
</p>
<p>
This is a free and open source software released under the GPL v3.0. The source code is available
2021-04-11 10:39:22 +02:00
<a href="https://git.augendre.info/gaugendre/mobileconfig-generator">here</a>.
</p>
2020-06-22 21:28:22 +02:00
<div id="profile">
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version='1.0'&gt;
&lt;dict&gt;
&lt;key&gt;PayloadContent&lt;/key&gt;
&lt;array&gt;
&lt;dict&gt;
&lt;key&gt;<strong>EmailAccountType</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<select v-model="payload.EmailAccountType">
<option value="" disabled>Select...</option>
<option>EmailTypeIMAP</option>
<option>EmailTypePOP</option>
</select>&lt;/string&gt;
&lt;key&gt;<strong>EmailAddress</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="email" v-model="payload.EmailAddress" v-bind:placeholder="payloadPlaceholders.EmailAddress">&lt;/string&gt;
&lt;key&gt;<strong>EmailAccountDescription</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.EmailAccountDescription" v-bind:placeholder="payloadPlaceholders.EmailAccountDescription">&lt;/string&gt;
&lt;!-- Incoming --&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>IncomingMailServerAuthentication</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<select v-model="payload.IncomingMailServerAuthentication">
<option value="" disabled>Select...</option>
<option>EmailAuthNone</option>
<option>EmailAuthPassword</option>
<option>EmailAuthCRAMMD5</option>
<option>EmailAuthNTLM</option>
<option>EmailAuthHTTPMD5</option>
</select>&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>IncomingMailServerHostName</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.IncomingMailServerHostName" v-bind:placeholder="payloadPlaceholders.IncomingMailServerHostName">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>IncomingMailServerPortNumber</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;integer&gt;<input type="number" v-model="payload.IncomingMailServerPortNumber" v-bind:placeholder="payloadPlaceholders.IncomingMailServerPortNumber">&lt;/integer&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>IncomingMailServerUsername</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.IncomingMailServerUsername" v-bind:placeholder="payloadPlaceholders.IncomingMailServerUsername">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>IncomingMailServerUseSSL</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;<input type="checkbox" v-model="payload.IncomingMailServerUseSSL">/&gt;
&lt;!-- Outgoing --&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingMailServerAuthentication</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<select v-model="payload.OutgoingMailServerAuthentication">
<option value="" disabled>Select...</option>
<option>EmailAuthNone</option>
<option>EmailAuthPassword</option>
<option>EmailAuthCRAMMD5</option>
<option>EmailAuthNTLM</option>
<option>EmailAuthHTTPMD5</option>
</select>&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingMailServerHostName</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.OutgoingMailServerHostName" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerHostName">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingMailServerPortNumber</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;integer&gt;<input type="number" v-model="payload.OutgoingMailServerPortNumber" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerPortNumber">&lt;/integer&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingMailServerUsername</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.OutgoingMailServerUsername" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerUsername">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingMailServerUseSSL</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;<input type="checkbox" v-model="payload.OutgoingMailServerUseSSL">/&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>OutgoingPasswordSameAsIncomingPassword</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;<input type="checkbox" v-model="payload.OutgoingPasswordSameAsIncomingPassword">/&gt;
&lt;!-- Common keys --&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadDisplayName</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.PayloadDisplayName" v-bind:placeholder="payloadPlaceholders.PayloadDisplayName">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadDescription</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.PayloadDescription" v-bind:placeholder="payloadPlaceholders.PayloadDescription">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadIdentifier</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="payload.PayloadIdentifier" v-bind:placeholder="payloadPlaceholders.PayloadIdentifier">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadType</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;{{ payload.PayloadType }}&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadUUID</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;{{ payload.PayloadUUID() }}&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadVersion</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;integer&gt;{{ payload.PayloadVersion }}&lt;/integer&gt;
&lt;/dict&gt;
&lt;/array&gt;
&lt;!-- Common keys --&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadDisplayName</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="container.PayloadDisplayName" v-bind:placeholder="containerPlaceholders.PayloadDisplayName">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadDescription</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="container.PayloadDescription" v-bind:placeholder="containerPlaceholders.PayloadDescription">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadIdentifier</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;<input type="text" v-model="container.PayloadIdentifier" v-bind:placeholder="containerPlaceholders.PayloadIdentifier">&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadType</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;{{ container.PayloadType }}&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadUUID</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;string&gt;{{ container.PayloadUUID() }}&lt;/string&gt;
2020-06-23 17:51:27 +02:00
&lt;key&gt;<strong>PayloadVersion</strong>&lt;/key&gt;
2020-06-22 21:28:22 +02:00
&lt;integer&gt;{{ container.PayloadVersion }}&lt;/integer&gt;
&lt;/dict&gt;
&lt;/plist&gt;
</div>
<h1>2. Download your profile</h1>
<a v-bind:href="generatedProfileLink" v-bind:download="downloadFileName">Download</a>
<h1>3. Or copy/paste</h1>
<textarea rows="30" cols="80">{{ generatedProfile }}</textarea>
</div>
<script src="js/vue.min.js"></script>
2020-06-22 17:24:44 +02:00
<script src="js/main.js"></script>
</body>
</html>