Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark A. Durham committed May 9, 2020
1 parent 90a4200 commit c53abe8
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 31 deletions.
3 changes: 3 additions & 0 deletions createMessage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.message {
display: block;
}
26 changes: 26 additions & 0 deletions createMessage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>New Message</title>
<link rel="stylesheet" type="text/css" href="createMessage.css">
</head>
<body>
<dialog open>
<form method="dialog">
<div>
<label for="to">To: </label>
<input type="email" name="to" id="to" required />
</div>
<div>
<label class="message" for="message">Message: </label>
<textarea class="message" name="message" id="message" rows="30" cols="80" required></textarea>
</div>
<input type="submit" name="send" id="send" value="Send" />
</form>
</dialog>
</body>
66 changes: 36 additions & 30 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,55 @@
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
<title>KsunMail</title>
</head>

<body>
<h1>Hello World!</h1>
<h1>KsunMail Client</h1>
Version 0.2 - May 9, 2020
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.

<form>
<div>
<label for="port">Port: </label>
<input type="number" name="port" id="port" required />
</div>
<div>
<label for="host">Host: </label>
<input type="text" name="host" id="host" required />
</div>
<div>
<label for="username">Username: </label>
<input type="text" name="username" id="username" required />
</div>
<div>
<label for="password">Password: </label>
<input type="password" name="password" id="password" required />
</div>
<fieldset>
<legend>Options</legend>
<dialog open>
<form method="dialog">
<div>
<label for="port">Port: </label>
<input type="number" name="port" id="port" required />
</div>
<div>
<input type="checkbox" name="tlserrs" id="tlserrs" />
<label for="tlserrs">TLS Errors</label>
<label for="host">Host: </label>
<input type="text" name="host" id="host" required />
</div>
<div>
<input type="checkbox" name="enabletls" id="enabletls" />
<label for="enabletls">Enable TLS</label>
<label for="username">Username: </label>
<input type="text" name="username" id="username" required />
</div>
<div>
<input type="checkbox" name="debug" id="debug" />
<label for="debug">Debug</label>
<label for="password">Password: </label>
<input type="password" name="password" id="password" required />
</div>
</fieldset>
<input type="button" name="submit" id="submit" formmethod="dialog" value="Submit" />
</form>
<fieldset>
<legend>Options</legend>
<div>
<input type="checkbox" name="tlserrs" id="tlserrs" />
<label for="tlserrs">TLS Errors</label>
</div>
<div>
<input type="checkbox" name="enabletls" id="enabletls" />
<label for="enabletls">Enable TLS</label>
</div>
<div>
<input type="checkbox" name="debug" id="debug" />
<label for="debug">Debug</label>
</div>
</fieldset>
<input type="submit" name="submit" id="submit" value="Submit" />
</form>
</dialog>
<div>
<a href="createMessage.html">Create Message</a>
</div>

<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
Expand Down
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ function createWindow() {
width: 800,
height: 600,
webPreferences: {
preload: path.join(__dirname, 'preload.js')
preload: path.join(__dirname, 'preload.js'),
devTools: false
}
})

Expand Down

0 comments on commit c53abe8

Please sign in to comment.