switch to azure

This commit is contained in:
Jeremy Danyow 2017-05-03 23:14:57 -07:00
parent 906af26bf1
commit 040bd28bd4
No known key found for this signature in database
GPG Key ID: 96C45DE6B2C1DF40
3 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,6 @@ A lightweight comments widget using GitHub issues.
* Styled with [Primer](http://primercss.io/), the css toolkit that powers GitHub. :art:
* 9 KB gzipped. Vanilla TypeScript. No font downloads or script dependencies. :shipit:
> :construction: *4/30/2017 - utterances is under active development and is not ready for production use.*
## how it works
Utterances runs in an iframe. Upon load, the GitHub [issue search API](https://developer.github.com/v3/search/#search-issues) is used to find the issue associated with the page based on `url`, `pathname` or `title`. The issue's comments are displayed in the familiar GitHub style.

View File

@ -5,7 +5,8 @@ const GITHUB_API = 'https://api.github.com/';
const GITHUB_ENCODING__HTML_JSON = 'application/vnd.github.VERSION.html+json';
const GITHUB_ENCODING__HTML = 'application/vnd.github.VERSION.html';
const GITHUB_ENCODING__REACTIONS_PREVIEW = 'application/vnd.github.squirrel-girl-preview';
const UTTERANCES_API = 'https://utterances-oauth.herokuapp.com';
// const UTTERANCES_API = 'https://utterances-oauth.herokuapp.com';
const UTTERANCES_API = 'https://utterances-oauth.azurewebsites.net';
const PAGE_SIZE = 100;

View File

@ -1,7 +1,8 @@
import { param, deparam } from './deparam';
const authorizeUri = 'https://github.com/login/oauth/authorize';
const tokenUri = 'https://utterances-oauth.herokuapp.com/access-token';
// const tokenUri = 'https://utterances-oauth.herokuapp.com/access-token';
const tokenUri = 'https://utterances-oauth.azurewebsites.net/access-token';
// tslint:disable-next-line:variable-name
const redirect_uri = 'https://utteranc.es/authorized.html';
// tslint:disable-next-line:variable-name