forked from linnovate/mean
-
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.
Merge pull request linnovate#1 from linnovate/master
merge from linnovate
- Loading branch information
Showing
306 changed files
with
1,688 additions
and
25,239 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 |
---|---|---|
|
@@ -72,3 +72,6 @@ modules/views/ | |
# vim Files | ||
# -------------------- | ||
*.swp | ||
|
||
#webpack | ||
/bundle |
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,50 @@ | ||
'use strict'; | ||
|
||
import 'angular/angular-csp.css'; | ||
import 'angular-ui-select/select.min.css'; | ||
import 'bootstrap/dist/css/bootstrap.min.css'; | ||
|
||
import jQuery from 'jquery'; | ||
import 'angular'; | ||
import 'angular-ui-select/select'; | ||
import 'angular-mocks'; | ||
import 'angular-cookies'; | ||
import 'angular-resource'; | ||
import 'angular-sanitize'; | ||
import 'angular-ui-router'; | ||
import 'angular-jwt'; | ||
import 'angular-bootstrap/ui-bootstrap-tpls'; | ||
|
||
window.$ = jQuery; | ||
|
||
angular.element(document).ready(function () { | ||
//Fixing facebook bug with redirect | ||
if (window.location.hash === '#_=_') window.location.hash = '#!'; | ||
|
||
//Then init the app | ||
angular.bootstrap(document, ['mean']); | ||
|
||
}); | ||
|
||
function processModules(modules) { | ||
var packageModules = ['ngCookies', 'ngResource', 'ui.bootstrap', 'ui.router', 'ui.select', 'ngSanitize'], m, mn; | ||
for (var index in modules) { | ||
m = modules[index]; | ||
mn = 'mean.' + m.name; | ||
angular.module(mn, m.angularDependencies || []); | ||
packageModules.push(mn); | ||
} | ||
|
||
var req = require.context('./packages', true, /\/public\/(?!tests|assets|views)(.*)\.js$/); | ||
req.keys().map(req); | ||
req = require.context('./node_modules', true, /\/meanio-(admin|system|users|circles)\/public\/(?!tests|assets|views)(.*)\.js$/); | ||
req.keys().map(req); | ||
|
||
angular.module('mean', packageModules); | ||
} | ||
|
||
jQuery.ajax('/_getModules', { | ||
dataType: 'json', | ||
async: false, | ||
success: processModules | ||
}); |
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
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
Oops, something went wrong.