mobileconfig-generator/index.html

172 lines
8.4 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">
<h2>Account</h2>
<div class="form-row">
<label for="account-type">Email account type</label>
<select id="account-type" v-model="payload.EmailAccountType">
<option value="" disabled>Select...</option>
<option value="EmailTypeIMAP">IMAP</option>
<option value="EmailTypePOP">POP</option>
</select>
</div>
<div class="form-row">
<label for="email-address">Email address</label>
<input id="email-address" type="email" v-model="payload.EmailAddress" v-bind:placeholder="payloadPlaceholders.EmailAddress">
</div>
<div class="form-row">
<label for="account-description">Account description</label>
<input id="account-description" type="text" v-model="payload.EmailAccountDescription" v-bind:placeholder="payloadPlaceholders.EmailAccountDescription">
</div>
<h2>Incoming mail server config</h2>
<div class="form-row">
<label for="inc-auth">Incoming mail server authentication</label>
<select id="inc-auth" v-model="payload.IncomingMailServerAuthentication">
<option value="" disabled>Select...</option>
<option value="EmailAuthNone">None</option>
<option value="EmailAuthPassword">Password</option>
<option value="EmailAuthCRAMMD5">CRAM MD5</option>
<option value="EmailAuthNTLM">NTLM</option>
<option value="EmailAuthHTTPMD5">HTTP MD5</option>
</select>
</div>
<div class="form-row">
<label for="inc-host">Incoming mail server host</label>
<input id="inc-host" type="text" v-model="payload.IncomingMailServerHostName" v-bind:placeholder="payloadPlaceholders.IncomingMailServerHostName">
</div>
<div class="form-row">
<label for="inc-port">Incoming mail server port</label>
<input id="inc-port" type="number" v-model="payload.IncomingMailServerPortNumber" v-bind:placeholder="payloadPlaceholders.IncomingMailServerPortNumber">
</div>
<div class="form-row">
<label for="inc-username">Incoming mail server username</label>
<input id="inc-username" type="text" v-model="payload.IncomingMailServerUsername" v-bind:placeholder="payloadPlaceholders.IncomingMailServerUsername">
</div>
<div class="form-row">
<label for="inc-ssl">Incoming mail server use SSL</label>
<input id="inc-ssl" type="checkbox" v-model="payload.IncomingMailServerUseSSL">
</div>
2020-06-22 21:28:22 +02:00
<h2>Outgoing mail server config</h2>
<div class="form-row">
<label for="out-auth">Outgoing mail server authentication</label>
<select id="out-auth" v-model="payload.OutgoingMailServerAuthentication">
<option value="" disabled>Select...</option>
<option value="EmailAuthNone">None</option>
<option value="EmailAuthPassword">Password</option>
<option value="EmailAuthCRAMMD5">CRAM MD5</option>
<option value="EmailAuthNTLM">NTLM</option>
<option value="EmailAuthHTTPMD5">HTTP MD5</option>
</select>
</div>
<div class="form-row">
<label for="out-host">Outgoing mail server host</label>
<input id="out-host" type="text" v-model="payload.OutgoingMailServerHostName" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerHostName">
</div>
<div class="form-row">
<label for="out-port">Outgoing mail server port</label>
<input id="out-port" type="number" v-model="payload.OutgoingMailServerPortNumber" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerPortNumber">
</div>
<div class="form-row">
<label for="out-username">Outgoing mail server username</label>
<input id="out-username" type="text" v-model="payload.OutgoingMailServerUsername" v-bind:placeholder="payloadPlaceholders.OutgoingMailServerUsername">
</div>
<div class="form-row">
<label for="out-ssl">Outgoing mail server use SSL</label>
<input id="out-ssl" type="checkbox" v-model="payload.OutgoingMailServerUseSSL">
</div>
<div class="form-row">
<label for="out-same-as-inc">Outgoing mail server password same as incoming</label>
<input id="out-same-as-inc" type="checkbox" v-model="payload.OutgoingPasswordSameAsIncomingPassword">
</div>
2020-06-22 21:28:22 +02:00
<h2>Inner common keys</h2>
<div class="form-row">
<label for="top-display">Payload display name</label>
<input id="inner-display" type="text" v-model="payload.PayloadDisplayName" v-bind:placeholder="payloadPlaceholders.PayloadDisplayName">
</div>
<div class="form-row">
<label for="inner-desc">Payload description</label>
<input id="inner-desc" type="text" v-model="payload.PayloadDescription" v-bind:placeholder="payloadPlaceholders.PayloadDescription">
</div>
<div class="form-row">
<label for="inner-id">Payload identifier</label>
<input id="inner-id" type="text" v-model="payload.PayloadIdentifier" v-bind:placeholder="payloadPlaceholders.PayloadIdentifier">
</div>
<div class="form-row">
<label for="inner-type">Payload type</label>
<span id="inner-type">{{ payload.PayloadType }}</span>
</div>
<div class="form-row">
<label for="inner-uuid">Payload UUID</label>
<span id="inner-uuid">{{ payload.PayloadUUID() }}</span>
</div>
<div class="form-row">
<label for="inner-version">Payload version</label>
<span id="inner-version">{{ payload.PayloadVersion }}</span>
</div>
2020-06-22 21:28:22 +02:00
<h2>Top level common keys</h2>
<div class="form-row">
<label for="top-display">Payload display name</label>
<input id="top-display" type="text" v-model="container.PayloadDisplayName" v-bind:placeholder="containerPlaceholders.PayloadDisplayName">
</div>
<div class="form-row">
<label for="top-desc">Payload description</label>
<input id="top-desc" type="text" v-model="container.PayloadDescription" v-bind:placeholder="containerPlaceholders.PayloadDescription">
</div>
<div class="form-row">
<label for="top-id">Payload identifier</label>
<input id="top-id" type="text" v-model="container.PayloadIdentifier" v-bind:placeholder="containerPlaceholders.PayloadIdentifier">
</div>
<div class="form-row">
<label for="top-type">Payload type</label>
<span id="top-type">{{ container.PayloadType }}</span>
</div>
<div class="form-row">
<label for="top-uuid">Payload UUID</label>
<span id="top-uuid">{{ container.PayloadUUID() }}</span>
</div>
<div class="form-row">
<label for="top-version">Payload version</label>
<span id="top-version">{{ container.PayloadVersion }}</span>
</div>
2020-06-22 21:28:22 +02:00
</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>