From d0554d9cd8f36461c8abd99395f0c4e910790a9b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 3 Nov 2015 00:24:16 -0800 Subject: [PATCH] move demo files to ./demo --- .../bootstrap-v3.3.5.min.css | 0 .../bower_components}/botp/index.js | 0 .../bower_components}/botp/sha1-hmac.js | 0 .../bower_components}/forge/js/aes.js | 0 .../bower_components}/forge/js/cipher.js | 0 .../bower_components}/forge/js/cipherModes.js | 0 .../bower_components}/forge/js/hmac.js | 0 .../bower_components}/forge/js/prng.js | 0 .../bower_components}/forge/js/random.js | 0 .../bower_components}/forge/js/sha1.js | 0 .../bower_components}/forge/js/sha256.js | 0 .../bower_components}/forge/js/util.js | 0 .../bower_components}/unibabel/index.js | 0 .../unibabel/unibabel.base32.js | 0 .../unibabel/unibabel.hex.js | 0 daplie-logo.png => demo/daplie-logo.png | Bin test.js => demo/demo.js | 4 +- iPhoneMockup.png => demo/iPhoneMockup.png | Bin .../jquery-2.0.0.min.js | 0 .../jquery.countdown.js | 0 phone.html => demo/phone.html | 2 +- phone.js => demo/phone.js | 0 style.css => demo/style.css | 0 examples/README.md | 2 +- index.html | 108 +++++++++++++++++- test.html | 108 +----------------- 26 files changed, 112 insertions(+), 112 deletions(-) rename bootstrap-v3.3.5.min.css => demo/bootstrap-v3.3.5.min.css (100%) rename {bower_components => demo/bower_components}/botp/index.js (100%) rename {bower_components => demo/bower_components}/botp/sha1-hmac.js (100%) rename {bower_components => demo/bower_components}/forge/js/aes.js (100%) rename {bower_components => demo/bower_components}/forge/js/cipher.js (100%) rename {bower_components => demo/bower_components}/forge/js/cipherModes.js (100%) rename {bower_components => demo/bower_components}/forge/js/hmac.js (100%) rename {bower_components => demo/bower_components}/forge/js/prng.js (100%) rename {bower_components => demo/bower_components}/forge/js/random.js (100%) rename {bower_components => demo/bower_components}/forge/js/sha1.js (100%) rename {bower_components => demo/bower_components}/forge/js/sha256.js (100%) rename {bower_components => demo/bower_components}/forge/js/util.js (100%) rename {bower_components => demo/bower_components}/unibabel/index.js (100%) rename {bower_components => demo/bower_components}/unibabel/unibabel.base32.js (100%) rename {bower_components => demo/bower_components}/unibabel/unibabel.hex.js (100%) rename daplie-logo.png => demo/daplie-logo.png (100%) rename test.js => demo/demo.js (95%) rename iPhoneMockup.png => demo/iPhoneMockup.png (100%) rename jquery-2.0.0.min.js => demo/jquery-2.0.0.min.js (100%) rename jquery.countdown.js => demo/jquery.countdown.js (100%) rename phone.html => demo/phone.html (97%) rename phone.js => demo/phone.js (100%) rename style.css => demo/style.css (100%) diff --git a/bootstrap-v3.3.5.min.css b/demo/bootstrap-v3.3.5.min.css similarity index 100% rename from bootstrap-v3.3.5.min.css rename to demo/bootstrap-v3.3.5.min.css diff --git a/bower_components/botp/index.js b/demo/bower_components/botp/index.js similarity index 100% rename from bower_components/botp/index.js rename to demo/bower_components/botp/index.js diff --git a/bower_components/botp/sha1-hmac.js b/demo/bower_components/botp/sha1-hmac.js similarity index 100% rename from bower_components/botp/sha1-hmac.js rename to demo/bower_components/botp/sha1-hmac.js diff --git a/bower_components/forge/js/aes.js b/demo/bower_components/forge/js/aes.js similarity index 100% rename from bower_components/forge/js/aes.js rename to demo/bower_components/forge/js/aes.js diff --git a/bower_components/forge/js/cipher.js b/demo/bower_components/forge/js/cipher.js similarity index 100% rename from bower_components/forge/js/cipher.js rename to demo/bower_components/forge/js/cipher.js diff --git a/bower_components/forge/js/cipherModes.js b/demo/bower_components/forge/js/cipherModes.js similarity index 100% rename from bower_components/forge/js/cipherModes.js rename to demo/bower_components/forge/js/cipherModes.js diff --git a/bower_components/forge/js/hmac.js b/demo/bower_components/forge/js/hmac.js similarity index 100% rename from bower_components/forge/js/hmac.js rename to demo/bower_components/forge/js/hmac.js diff --git a/bower_components/forge/js/prng.js b/demo/bower_components/forge/js/prng.js similarity index 100% rename from bower_components/forge/js/prng.js rename to demo/bower_components/forge/js/prng.js diff --git a/bower_components/forge/js/random.js b/demo/bower_components/forge/js/random.js similarity index 100% rename from bower_components/forge/js/random.js rename to demo/bower_components/forge/js/random.js diff --git a/bower_components/forge/js/sha1.js b/demo/bower_components/forge/js/sha1.js similarity index 100% rename from bower_components/forge/js/sha1.js rename to demo/bower_components/forge/js/sha1.js diff --git a/bower_components/forge/js/sha256.js b/demo/bower_components/forge/js/sha256.js similarity index 100% rename from bower_components/forge/js/sha256.js rename to demo/bower_components/forge/js/sha256.js diff --git a/bower_components/forge/js/util.js b/demo/bower_components/forge/js/util.js similarity index 100% rename from bower_components/forge/js/util.js rename to demo/bower_components/forge/js/util.js diff --git a/bower_components/unibabel/index.js b/demo/bower_components/unibabel/index.js similarity index 100% rename from bower_components/unibabel/index.js rename to demo/bower_components/unibabel/index.js diff --git a/bower_components/unibabel/unibabel.base32.js b/demo/bower_components/unibabel/unibabel.base32.js similarity index 100% rename from bower_components/unibabel/unibabel.base32.js rename to demo/bower_components/unibabel/unibabel.base32.js diff --git a/bower_components/unibabel/unibabel.hex.js b/demo/bower_components/unibabel/unibabel.hex.js similarity index 100% rename from bower_components/unibabel/unibabel.hex.js rename to demo/bower_components/unibabel/unibabel.hex.js diff --git a/daplie-logo.png b/demo/daplie-logo.png similarity index 100% rename from daplie-logo.png rename to demo/daplie-logo.png diff --git a/test.js b/demo/demo.js similarity index 95% rename from test.js rename to demo/demo.js index 723db7c..c9aecde 100644 --- a/test.js +++ b/demo/demo.js @@ -1,4 +1,4 @@ -// forgive the suckiness, but whatever +// This is crap demo code. Forgive me. (function (exports) { 'use strict'; @@ -44,7 +44,7 @@ function generate(ke) { $('.js-otpauth').innerHTML = otpauth; // only safe to inject because I created it $('img.js-qrcode').src = src; - $('.js-otp-iframe').src = 'phone.html?otpuri=' + encodeURIComponent(otpauth); + $('.js-otp-iframe').src = 'demo/phone.html?otpuri=' + encodeURIComponent(otpauth); Authenticator.generateToken(key).then(function (token) { console.log('token', token); diff --git a/iPhoneMockup.png b/demo/iPhoneMockup.png similarity index 100% rename from iPhoneMockup.png rename to demo/iPhoneMockup.png diff --git a/jquery-2.0.0.min.js b/demo/jquery-2.0.0.min.js similarity index 100% rename from jquery-2.0.0.min.js rename to demo/jquery-2.0.0.min.js diff --git a/jquery.countdown.js b/demo/jquery.countdown.js similarity index 100% rename from jquery.countdown.js rename to demo/jquery.countdown.js diff --git a/phone.html b/demo/phone.html similarity index 97% rename from phone.html rename to demo/phone.html index 30a61ab..5c20a90 100644 --- a/phone.html +++ b/demo/phone.html @@ -41,7 +41,7 @@ - + diff --git a/phone.js b/demo/phone.js similarity index 100% rename from phone.js rename to demo/phone.js diff --git a/style.css b/demo/style.css similarity index 100% rename from style.css rename to demo/style.css diff --git a/examples/README.md b/examples/README.md index 285ecbc..e646bb2 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1 +1 @@ -See test.html / test.js and phone.html / phone.js +See index.html / demo/demo.js and demo/phone.html / demo/phone.js diff --git a/index.html b/index.html index 44c4661..6eda2bd 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,110 @@ + - + Authenticator - Daplie, Inc + + + + + - - Redirecting... + +
+
+
+

Authenticator Test

+ qrcode +
+ Scan with Authy App +
+
+ +
+ + +
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+
+

Console

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+ +
+

otpauth://totp/company:user?secret=xxxx&issuer=company

+
+
+
+
+
+
+
+ + + Fork me on GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test.html b/test.html index fdce3eb..1751a08 100644 --- a/test.html +++ b/test.html @@ -1,110 +1,8 @@ - - Authenticator - Daplie, Inc - - - - - + - -
-
-
-

Authenticator Test

- qrcode -
- Scan with Authy App -
-
- -
- - -
-
- -
- -
- -
-
-
-
- -
-
-
-
-
-

Console

-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- -
-
-
- -
-

otpauth://totp/company:user?secret=xxxx&issuer=company

-
-
-
-
-
-
-
- - - Fork me on GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + Redirecting...