Sfoglia il codice sorgente

Fix file permissions

pull/11/head
Jack Foltz 6 anni fa
parent
commit
098865cbbf
Firmato da: foltik <jack@foltz.io> ID Chiave GPG: 303F88F996E95541
62 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. +0
    -0
      .gitignore
  2. +0
    -0
      README.md
  3. +0
    -0
      app/models/Invite.js
  4. +0
    -0
      app/models/Key.js
  5. +0
    -0
      app/models/Upload.js
  6. +0
    -0
      app/models/User.js
  7. +0
    -0
      app/public/css/form.css
  8. +0
    -0
      app/public/css/form.min.css
  9. +0
    -0
      app/public/css/home.css
  10. +0
    -0
      app/public/css/home.min.css
  11. +0
    -0
      app/public/css/index.css
  12. +0
    -0
      app/public/css/index.min.css
  13. +0
    -0
      app/public/css/panel.css
  14. +0
    -0
      app/public/css/panel.min.css
  15. +0
    -0
      app/public/index/typegraph.js
  16. +0
    -0
      app/public/panel/controllers/ApiCtrl.js
  17. +1
    -2
      app/public/panel/controllers/NavCtrl.js
  18. +0
    -0
      app/public/panel/routes.js
  19. +0
    -0
      app/public/panel/shimapan-panel.js
  20. +0
    -0
      app/public/services/ApiSvc.js
  21. +0
    -0
      app/public/services/AuthSvc.js
  22. +0
    -0
      app/public/shimapan/components/LoginComp.js
  23. +0
    -0
      app/public/shimapan/components/RegisterComp.js
  24. +0
    -0
      app/public/shimapan/components/UploadComp.js
  25. +0
    -0
      app/public/shimapan/shimapan.js
  26. +5
    -4
      app/routes/auth.js
  27. +0
    -0
      app/routes/home.js
  28. +0
    -0
      app/routes/index.js
  29. +0
    -0
      app/routes/keys.js
  30. +0
    -0
      app/routes/login.js
  31. +0
    -0
      app/routes/panel.js
  32. +0
    -0
      app/routes/register.js
  33. +0
    -0
      app/routes/routes.js
  34. +0
    -0
      app/routes/upload.js
  35. +0
    -0
      app/routes/view.js
  36. +0
    -0
      config/default.json
  37. +0
    -0
      config/dev.json
  38. +0
    -0
      config/passport.js
  39. +0
    -0
      config/test.json
  40. +0
    -0
      gulpfile.js
  41. +0
    -0
      package-lock.json
  42. +0
    -0
      package.json
  43. +0
    -0
      public/img/edge.mp4
  44. +0
    -0
      public/img/flower.png
  45. +0
    -0
      public/img/glyphicons-512-copy.png
  46. +0
    -0
      public/views/home.html
  47. +0
    -0
      public/views/index.html
  48. +0
    -0
      public/views/login.html
  49. +0
    -0
      public/views/panel.html
  50. +0
    -0
      public/views/panel/api.html
  51. +0
    -0
      public/views/panel/dash.html
  52. +0
    -0
      public/views/panel/invites.html
  53. +0
    -0
      public/views/panel/search.html
  54. +0
    -0
      public/views/panel/stats.html
  55. +0
    -0
      public/views/panel/users.html
  56. +0
    -0
      public/views/register.html
  57. +0
    -0
      public/views/shimapan/login-form.html
  58. +0
    -0
      public/views/shimapan/register-form.html
  59. +0
    -0
      public/views/shimapan/upload-form.html
  60. +0
    -0
      test/api.js
  61. +0
    -0
      test/test.png
  62. +0
    -0
      test/testUtil.js

+ 0
- 0
.gitignore Vedi File


+ 0
- 0
README.md Vedi File


+ 0
- 0
app/models/Invite.js Vedi File


+ 0
- 0
app/models/Key.js Vedi File


+ 0
- 0
app/models/Upload.js Vedi File


+ 0
- 0
app/models/User.js Vedi File


+ 0
- 0
app/public/css/form.css Vedi File


+ 0
- 0
app/public/css/form.min.css Vedi File


+ 0
- 0
app/public/css/home.css Vedi File


+ 0
- 0
app/public/css/home.min.css Vedi File


+ 0
- 0
app/public/css/index.css Vedi File


+ 0
- 0
app/public/css/index.min.css Vedi File


+ 0
- 0
app/public/css/panel.css Vedi File


+ 0
- 0
app/public/css/panel.min.css Vedi File


+ 0
- 0
app/public/index/typegraph.js Vedi File


+ 0
- 0
app/public/panel/controllers/ApiCtrl.js Vedi File


+ 1
- 2
app/public/panel/controllers/NavCtrl.js Vedi File

@@ -3,7 +3,7 @@ var angular = require('angular');
angular.module('NavCtrl', ['AuthSvc']).controller('NavController', ['$scope', '$window', 'AuthService', function($scope, $window, AuthService) {
$scope.user = {};
AuthService.currentUser(function(user) {
$scope.user = user;
$scope.user = username;
});

$scope.logout = AuthService.logout;
@@ -12,5 +12,4 @@ angular.module('NavCtrl', ['AuthSvc']).controller('NavController', ['$scope', '$
if (!$scope.user.scope) return false;
return $scope.user.scope.indexOf(permission) !== -1;
};

}]);

+ 0
- 0
app/public/panel/routes.js Vedi File


+ 0
- 0
app/public/panel/shimapan-panel.js Vedi File


+ 0
- 0
app/public/services/ApiSvc.js Vedi File


+ 0
- 0
app/public/services/AuthSvc.js Vedi File


+ 0
- 0
app/public/shimapan/components/LoginComp.js Vedi File


+ 0
- 0
app/public/shimapan/components/RegisterComp.js Vedi File


+ 0
- 0
app/public/shimapan/components/UploadComp.js Vedi File


+ 0
- 0
app/public/shimapan/shimapan.js Vedi File


+ 5
- 4
app/routes/auth.js Vedi File

@@ -69,8 +69,8 @@ function setupSession(username, req, res, cb) {
passport.authenticate('local')(req, res, function () {
req.session.save(function (err) {
if (!err) {
req.session.username = username;
req.session.canonicalname = canonicalize(username);
req.session.passport.username = username;
req.session.passport.canonicalname = canonicalize(username);
}
cb(err);
});
@@ -114,8 +114,8 @@ router.post('/login', function (req, res, next) {
req.logIn(user, cb);
},
function (cb) {
req.session.username = req.body.username;
req.session.canonicalname = canonicalize(req.body.username);
req.session.passport.username = req.body.username;
req.session.passport.canonicalname = canonicalize(req.body.username);
cb();
}
], function (err) {
@@ -132,6 +132,7 @@ router.get('/logout', function (req, res) {
});

router.get('/session', function (req, res) {
console.log(req.session.passport);
if (req.session.passport.canonicalname) {
User.findOne({canonicalname: req.session.passport.canonicalname}, function (err, user) {
res.status(200).json({


+ 0
- 0
app/routes/home.js Vedi File


+ 0
- 0
app/routes/index.js Vedi File


+ 0
- 0
app/routes/keys.js Vedi File


+ 0
- 0
app/routes/login.js Vedi File


+ 0
- 0
app/routes/panel.js Vedi File


+ 0
- 0
app/routes/register.js Vedi File


+ 0
- 0
app/routes/routes.js Vedi File


+ 0
- 0
app/routes/upload.js Vedi File


+ 0
- 0
app/routes/view.js Vedi File


+ 0
- 0
config/default.json Vedi File


+ 0
- 0
config/dev.json Vedi File


+ 0
- 0
config/passport.js Vedi File


+ 0
- 0
config/test.json Vedi File


+ 0
- 0
gulpfile.js Vedi File


+ 0
- 0
package-lock.json Vedi File


+ 0
- 0
package.json Vedi File


+ 0
- 0
public/img/edge.mp4 Vedi File


+ 0
- 0
public/img/flower.png Vedi File

Before After
Width: 700  |  Height: 700  |  Size: 249KB Width: 700  |  Height: 700  |  Size: 249KB

+ 0
- 0
public/img/glyphicons-512-copy.png Vedi File

Before After
Width: 24  |  Height: 24  |  Size: 15KB Width: 24  |  Height: 24  |  Size: 15KB

+ 0
- 0
public/views/home.html Vedi File


+ 0
- 0
public/views/index.html Vedi File


+ 0
- 0
public/views/login.html Vedi File


+ 0
- 0
public/views/panel.html Vedi File


+ 0
- 0
public/views/panel/api.html Vedi File


+ 0
- 0
public/views/panel/dash.html Vedi File


+ 0
- 0
public/views/panel/invites.html Vedi File


+ 0
- 0
public/views/panel/search.html Vedi File


+ 0
- 0
public/views/panel/stats.html Vedi File


+ 0
- 0
public/views/panel/users.html Vedi File


+ 0
- 0
public/views/register.html Vedi File


+ 0
- 0
public/views/shimapan/login-form.html Vedi File


+ 0
- 0
public/views/shimapan/register-form.html Vedi File


+ 0
- 0
public/views/shimapan/upload-form.html Vedi File


+ 0
- 0
test/api.js Vedi File


+ 0
- 0
test/test.png Vedi File

Before After
Width: 256  |  Height: 256  |  Size: 8.4KB Width: 256  |  Height: 256  |  Size: 8.4KB

+ 0
- 0
test/testUtil.js Vedi File


Loading…
Annulla
Salva