Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Ball authored and Christopher Ball committed May 16, 2020
1 parent b37afaf commit af18894
Show file tree
Hide file tree
Showing 16 changed files with 541 additions and 293 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Jamf Automation and Webhook Assistant ("JAWA")
The JAWA allows an IT Administrator to focus on providing the best end user experience through automation.

*Check out [screenshots.](https://github.com/jamf/JAWA/wiki/JAWA-Screenshots)*

*[!] NOTE: Always test automations in a dev/eval environment before deploying to production.*

## What is it?
Expand Down
Binary file removed scripts/.DS_Store
Binary file not shown.
105 changes: 105 additions & 0 deletions static/css/main2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
body {
margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444;
}
/*
* Formatting the header area
*/
header {
background-color: #3C6A93;
height: 35px;
width: 100%;
margin-bottom: 10px;
}
header h1.logo {
margin: 0;
font-size: 1.7em;
float: left;
}
header h1.logo:hover {
text-decoration: none;
}
.container {
width: 400px;
margin: auto;
}
div.home {
padding: 10px 0 30px 0;
background-color: #fff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
div.about {
padding: 10px 0 30px 0;
background-color: #fff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
div.secret {
padding: 100px 0 30px 0;
background-color: #fff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
h2 {
font-size: 3em;
margin-top: 40px;
text-align: center;
letter-spacing: -2px;
}
h3 {
font-size: 1em;
margin-top: 30px;
text-align: center;
letter-spacing: 1px;
color: black;
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 90%;
}
.center_box {
display: block;
margin-left: auto;
margin-right: auto;
}
.config_box {
display: block;
margin-left: auto;
margin-right: auto;
}
.submit_center{
display: block;
margin-left: auto;
margin-right: auto;
width:100px;
height:40px;
background-color:#111111;
border:2px solid #FFFFFF;
border-radius:10px;
color:#FFFFFF;
font-size:17px;
cursor:pointer !important;
outline:none;
}
.menu {
float: left;
margin-top: 8px;
}
.menu li {
display: inline;
}
.menu li + li {
margin-left: 35px;
}
.menu li a {
color: #fff;
text-decoration: none;
}
2 changes: 2 additions & 0 deletions static/jQuery.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions templates/bash copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% extends "base.html" %}
{% block custom_styles %}
nav {
background-color: #5B6982;
min-height: 40px;
}
{% endblock %}
{% block title %}
<h1 style="font-family: Helvetica Neue; font-size: 40px; color: #5B6982;">Virtual Visits</h1>
<hr style="height: 2px; background-color: #E7E6E6;"/>
{% endblock %}
{% block reset_meeting_success_alert_text %}
Your new meeting link was successfully created.
{% endblock %}
{% block reset_meeting_failure_alert_text %}
Whoops! Something went wrong.\nPlease wait a moment and try again.
{% endblock %}
{% block reset_meeting_button_text %}
Create New Meeting Link
{% endblock %}
{% block device_setup_instructions %}
<p><i>Use the copy options below to setup your device.</i></p>
{% endblock %}
{% block send_email_failure_alert_text %}
There was a problem sending your invite.\n\nCheck that you have correctly filled out the form and try again.
{% endblock %}
{% block send_email_button_text %}
Send Email
{% endblock %}
{% block start_meeting_button_text %}
Start Meeting
{% endblock %}
{% block email_instructions %}
<p>Use the form below to send your meeting URL to your family and friends.</p>
<p><i>The meeting link will be included below your message.</i></p>
{% endblock %}
{% block email_recipients_label %}
<b>Recipient's e-mail address:</b>
{% endblock %}
{% block email_message_label %}
<label for="message"><b>Message:</b></label>
{% endblock %}
{% block email_message %}
Please join my video conferencing call.
{% endblock %}
3 changes: 3 additions & 0 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ <h1>JAWA</h1>

<p>Please log in.</p>
<form action="/login" method="post">
{% if jsslock %}
{% else %}
<p>Jamf Pro URL: {{ input('url') }}</p>
{% endif %}
<p>Username: {{ input('username') }}</p>
<p>Passcode: {{ input('password', type='password') }}</p>
<input type=submit value=Login></br></br></br></br>
Expand Down
47 changes: 47 additions & 0 deletions templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% macro input(name, value='', type='text', size=20) -%}
<input type="{{ type }}" name="{{ name }}" value="{{value|e }}" size="{{ size }}">
{%- endmacro %}
<!DOCTYPE html>
<html>
<head>
<title>Directory</title>
<script>
$(document).ready(function() {
$(".submit").click(function() {
$(".submit").addClass("loading");
setTimeout(function() {
$(".submit").addClass("hide-loading");
$(".done").addClass("finish");
}, 1000000);
setTimeout(function() {
$(".submit").removeClass("loading");
$(".submit").removeClass("hide-loading");
$(".done").removeClass("finish");
$(".failed").removeClass("finish");
}, 1000000);
})
});
</script>
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="{{ url_for('static', filename='css/main2.css') }}">
</head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<body>
<header>
<div class="container">
<h1 class="logo"></h1>
</div>
</header>
<div class="container">

{% block content %}
{% endblock %}
</div>
</body>
<footer>
{% if username %}
{% endif %}
</footer>
</html>
11 changes: 6 additions & 5 deletions templates/setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ <h1>Server Setup</h1>
Please read the <a href="https://github.com/jamf/JAWA/blob/master/README.md" style="color:#3c6aa7;" target="_blank">documentation</a> prior to using the JAWA!</br></br>

Notes:</br>
- You must include both the protocol and port in the address. </br>
- You must include the protocol (https://) in the address. </br>
- Address must have inbound/outbound communication with your Jamf Pro.</br>
- Default listening port is 9000.</br></br></br>

Server Address: <input type="text" name="address"></br>
(i.e. https://jawa.company.com:9000)</br></br>
</br></br></br>
<input type="checkbox" name="jss-lock" id="jss-lock" value={{jps_url}} checked> Lock your JAWA to the JPS server: {{jps_url}}<br><br>

JAWA Server Address: <input type="text" name="address" pattern="https?://.+" title="Use https://"></br>
(i.e. https://jawa.company.com)</br></br>

<div class="container-fluid row ">
<div class="container">
Expand Down
Loading

0 comments on commit af18894

Please sign in to comment.