diff --git a/app/._app.css b/app/._app.css deleted file mode 100644 index fafd92f..0000000 Binary files a/app/._app.css and /dev/null differ diff --git a/app/._app.js b/app/._app.js deleted file mode 100644 index fafd92f..0000000 Binary files a/app/._app.js and /dev/null differ diff --git a/app/._index-async.html b/app/._index-async.html deleted file mode 100644 index 6c8ce97..0000000 Binary files a/app/._index-async.html and /dev/null differ diff --git a/app/._index.html b/app/._index.html deleted file mode 100644 index 6c8ce97..0000000 Binary files a/app/._index.html and /dev/null differ diff --git a/app/app.css b/app/app.css deleted file mode 100644 index 94edafe..0000000 --- a/app/app.css +++ /dev/null @@ -1,70 +0,0 @@ -/* app css stylesheet */ - -.menu { - list-style: none; - border-bottom: 0.1em solid black; - margin-bottom: 2em; - padding: 0 0 0.5em; -} - -.menu:before { - content: "["; -} - -.menu:after { - content: "]"; -} - -.menu > li { - display: inline; -} - -.menu > li:before { - content: "|"; - padding-right: 0.3em; -} - -.menu > li:nth-child(1):before { - content: ""; - padding: 0; -} - - - -.stbody -{ -min-height:70px; - -} -.stbody -{ -min-height:70px; -margin-bottom:10px; -border-bottom:dashed 1px #cc0000; -} -.stimg -{ -float:left; -height:50px; -width:50px; -border:solid 1px #dedede; -padding:5px; -} -.sttext -{ -margin-left:70px; - -min-height:50px; -word-wrap:break-word; -overflow:hidden; -padding:5px; -display:block; -font-family:'Georgia', Times New Roman, Times, serif -} -.sttime -{ -font-size:11px; -color:#999; -font-family:Arial, Helvetica, sans-serif; -margin-top:5px; -} \ No newline at end of file diff --git a/app/app.js b/app/app.js deleted file mode 100644 index 84692d1..0000000 --- a/app/app.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -// Declare app level module which depends on views, and components -angular.module('ngSocial', [ - 'ngRoute', - 'ngSocial.view1', - 'ngSocial.view2', - 'ngSocial.facebook' -]). -config(['$routeProvider', function($routeProvider) { - $routeProvider.otherwise({redirectTo: '/facebook'}); -}]); diff --git a/app/facebook/._facebook.html b/app/facebook/._facebook.html deleted file mode 100644 index 6c8ce97..0000000 Binary files a/app/facebook/._facebook.html and /dev/null differ diff --git a/app/facebook/._facebook.js b/app/facebook/._facebook.js deleted file mode 100644 index 6c8ce97..0000000 Binary files a/app/facebook/._facebook.js and /dev/null differ diff --git a/app/facebook/facebook.html b/app/facebook/facebook.html deleted file mode 100644 index e6a3c2f..0000000 --- a/app/facebook/facebook.html +++ /dev/null @@ -1,59 +0,0 @@ -
-
-

{{welcomeMsg}}

-
- -
-
-
- -
-
- -
-

-
-

User Info

-
    -
  • ID: {{userInfo.id}}
  • -
  • First Name: {{userInfo.first_name}}
  • -
  • Last Name: {{userInfo.last_name}}
  • -
  • Email: {{userInfo.email}}
  • -
  • Gender: {{userInfo.gender}}
  • -
  • Locale: {{userInfo.locale}}
  • -
-
-
-
-

Permissions

-
    -
  • {{permission.permission}} - {{permission.status}}
  • -
-
-
-
-

Welcome to Facebook!

-
-
-
- - -
- -
-

-
-
- -
-
- {{post.message}} -
{{post.updated_time}}
-
-
-
-
-

You need to login to post

-
-
-
\ No newline at end of file diff --git a/app/facebook/facebook.js b/app/facebook/facebook.js deleted file mode 100644 index f9659e7..0000000 --- a/app/facebook/facebook.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict'; - -angular.module('ngSocial.facebook', ['ngRoute','ngFacebook']) - -.config(['$routeProvider', function($routeProvider) { - $routeProvider.when('/facebook', { - templateUrl: 'facebook/facebook.html', - controller: 'FacebookCtrl' - }); -}]) - -.config( function( $facebookProvider ) { - $facebookProvider.setAppId('846149575421651'); - $facebookProvider.setPermissions("email,public_profile, user_posts, publish_actions, user_photos"); -}) - -.run(function($rootScope){ - (function(d, s, id){ - var js, fjs = d.getElementsByTagName(s)[0]; - if (d.getElementById(id)) {return;} - js = d.createElement(s); js.id = id; - js.src = "//connect.facebook.net/en_US/sdk.js"; - fjs.parentNode.insertBefore(js, fjs); - }(document, 'script', 'facebook-jssdk')); -}) - -.controller('FacebookCtrl', ['$scope', '$facebook', function($scope, $facebook) { - $scope.isLoggedIn = false; - - $scope.login = function(){ - $facebook.login().then(function(){ - $scope.isLoggedIn = true; - refresh(); - }); - } - - $scope.logout = function(){ - $facebook.logout().then(function(){ - $scope.isLoggedIn = false; - refresh(); - }); - } - - function refresh(){ - $facebook.api("/me").then(function(response){ - $scope.welcomeMsg = "Welcome "+ response.name; - $scope.isLoggedIn = true; - $scope.userInfo = response; - $facebook.api('/me/picture').then(function(response){ - $scope.picture = response.data.url; - $facebook.api('/me/permissions').then(function(response){ - $scope.permissions = response.data; - $facebook.api('/me/posts').then(function(response){ - console.log(response.data); - $scope.posts = response.data; - }); - }); - }); - - }, - function(err){ - $scope.welcomeMsg = "Please Log In"; - }); - } - - $scope.postStatus = function(){ - var body = this.body; - $facebook.api('/me/feed', 'post', {message: body}).then(function(response){ - $scope.msg = 'Thanks for Posting'; - refresh(); - }); - } - - refresh(); -}]); \ No newline at end of file diff --git a/app/index-async.html b/app/index-async.html deleted file mode 100644 index a559b71..0000000 --- a/app/index-async.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - My AngularJS App - - - - - -
- -
Angular seed app: v
- - - diff --git a/app/templates/index.html b/app/templates/index.html deleted file mode 100644 index 6ff1e45..0000000 --- a/app/templates/index.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - -
-

Welcome to Mini Amazon

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

{{ message }}

-
-

Login

-
-
- Username:
- Password:

- -
-
-
-

{{ user_exists_msg }}

-
-

Sign Up

-
-
- Name:
- Email:
- Username:
- Password:

- -
-
-
-
- - \ No newline at end of file