-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Alexa login page. Fixed a few textual errors.
- Loading branch information
Showing
8 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,7 +207,7 @@ var handlers = { | |
.catch(function(err) { | ||
console.log(err); | ||
|
||
return Promise.resolve('There was a problem executing your request; please try again. If this persists, please try again later, or let us know at [email protected].'); | ||
return Promise.resolve('There was a problem executing your request; please try again. Make sure you have linked the Alexa skill with your Google account. If your problems persist, please try again later, or let us know at [email protected].'); | ||
}) | ||
.then(function(message) { | ||
self.emit(':tellWithCard', message, global.env.name, message); | ||
|
@@ -224,7 +224,7 @@ var handlers = { | |
let message = ''; | ||
|
||
message += 'Welcome to ' + global.env.name + '. '; | ||
message += 'You can ask this skill to get information about the status of your software stack.'; | ||
message += 'You can ask this skill to get information about the status of your software stack, as configured at opsbuddy.bitscoop.com.'; | ||
|
||
let reprompt = 'For instructions on what you can say, please say help me.'; | ||
|
||
|
@@ -240,7 +240,7 @@ var handlers = { | |
|
||
message += 'Here are some things you can say: '; | ||
message += 'How is the stack doing?'; | ||
message += 'Tell me how the stack is doing.'; | ||
message += 'Tell me how the stack is doing. '; | ||
|
||
message += 'You can also say stop if you\'re done. '; | ||
message += 'So how can I help?'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-US"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
|
||
<title>Alexa Ops Buddy · powered by BitScoop</title> | ||
|
||
<meta name="description" content="Ops Buddy Demo" /> | ||
|
||
<!-- RequireJS configuration --> | ||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.3/require.min.js"></script> | ||
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script> | ||
|
||
<script type="text/javascript" src="https://s3.amazonaws.com/alexa-2-demo/static/js/site.min.js" ></script> | ||
|
||
<!-- External fonts --> | ||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Quicksand:400|Roboto:300,400,700|Open+Sans:200,300,400,700|Source+Sans+Pro:300,400,700" /> | ||
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="https://s3.amazonaws.com/opsbuddy/css/site.min.css" /> | ||
</head> | ||
|
||
<body> | ||
<div class="header flexbox flex-column flex-x-center"> | ||
<h1>BitScoop Ops Buddy</h1> | ||
|
||
<div class="instructions"> | ||
To use this skill, you must sign in with the same Google account you used to create your account at opsbuddy.bitscoop.com. | ||
</div> | ||
|
||
<div class="logins flexbox flex-column flex-x-center"> | ||
<a href="https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&scope={{ scope }}&client_id={{ client_id }}&response_type={{ response_type }}&state={{ state }}&redirect_uri={{ redirect_uri }}"><button><i class="fa fa-google"></i> <span>Sign In with Google</span></button></a> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
const assert = require('assert'); | ||
|
||
const Sequelize = require('sequelize'); | ||
const _ = require('lodash'); | ||
const cookie = require('cookie'); | ||
const nunjucks = require('nunjucks'); | ||
|
||
|
||
let renderer = nunjucks.configure('templates'); | ||
|
||
module.exports = function(event, context, callback) { | ||
let html = renderer.render('alexa-login.html', event.queryStringParameters); | ||
|
||
var response = { | ||
statusCode: 200, | ||
headers: { | ||
'Content-Type': 'text/html', | ||
'Access-Control-Allow-Origin': '*' | ||
}, | ||
body: html | ||
}; | ||
|
||
callback(null, response); | ||
|
||
return Promise.resolve(); | ||
}; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters