Skip to content

Commit 8bd55f8

Browse files
committed
empty structure
0 parents  commit 8bd55f8

9 files changed

+274
-0
lines changed

.editorconfig

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .editorconfig
2+
# Meteor adapted EditorConfig, http://EditorConfig.org
3+
# By RaiX 2013
4+
5+
root = true
6+
7+
[*.js]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
12+
trim_trailing_whitespace = true
13+
charset = utf-8
14+
max_line_length = 80
15+
indent_brace_style = 1TBS
16+
spaces_around_operators = true
17+
quote_type = auto
18+
# curly_bracket_next_line = true
19+
20+
[*.html]
21+
end_of_line = lf
22+
insert_final_newline = false
23+
indent_style = space
24+
indent_size = 2
25+
trim_trailing_whitespace = false
26+
charset = utf-8

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.build*
2+
versions.json

.jshintrc

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
// JSHint Meteor Configuration File
3+
// Match the Meteor Style Guide
4+
//
5+
// By @raix with contributions from @aldeed and @awatson1978
6+
// Source https://github.com/raix/Meteor-jshintrc
7+
//
8+
// See http://jshint.com/docs/ for more details
9+
10+
"maxerr" : 50, // {int} Maximum error before stopping
11+
12+
// Enforcing
13+
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
14+
"camelcase" : true, // true: Identifiers must be in camelCase
15+
"curly" : true, // true: Require {} for every new block or scope
16+
"eqeqeq" : true, // true: Require triple equals (===) for comparison
17+
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
18+
"immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
19+
"indent" : 2, // {int} Number of spaces to use for indentation
20+
"latedef" : false, // true: Require variables/functions to be defined before being used
21+
"newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
22+
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
23+
"noempty" : true, // true: Prohibit use of empty blocks
24+
"nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
25+
"plusplus" : false, // true: Prohibit use of `++` & `--`
26+
"quotmark" : false, // Quotation mark consistency:
27+
// false : do nothing (default)
28+
// true : ensure whatever is used is consistent
29+
// "single" : require single quotes
30+
// "double" : require double quotes
31+
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
32+
"unused" : true, // true: Require all defined variables be used
33+
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
34+
"trailing" : true, // true: Prohibit trailing whitespaces
35+
"maxparams" : false, // {int} Max number of formal params allowed per function
36+
"maxdepth" : false, // {int} Max depth of nested blocks (within functions)
37+
"maxstatements" : false, // {int} Max number statements per function
38+
"maxcomplexity" : false, // {int} Max cyclomatic complexity per function
39+
"maxlen" : 80, // {int} Max number of characters per line
40+
41+
// Relaxing
42+
"asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
43+
"boss" : false, // true: Tolerate assignments where comparisons would be expected
44+
"debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
45+
"eqnull" : false, // true: Tolerate use of `== null`
46+
"es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
47+
"esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
48+
"moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
49+
// (ex: `for each`, multiple try/catch, function expression…)
50+
"evil" : false, // true: Tolerate use of `eval` and `new Function()`
51+
"expr" : false, // true: Tolerate `ExpressionStatement` as Programs
52+
"funcscope" : false, // true: Tolerate defining variables inside control statements"
53+
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
54+
"iterator" : false, // true: Tolerate using the `__iterator__` property
55+
"lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
56+
"laxbreak" : false, // true: Tolerate possibly unsafe line breakings
57+
"laxcomma" : false, // true: Tolerate comma-first style coding
58+
"loopfunc" : false, // true: Tolerate functions being defined in loops
59+
"multistr" : false, // true: Tolerate multi-line strings
60+
"proto" : false, // true: Tolerate using the `__proto__` property
61+
"scripturl" : false, // true: Tolerate script-targeted URLs
62+
"smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
63+
"shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
64+
"sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
65+
"supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
66+
"validthis" : false, // true: Tolerate using this in a non-constructor function
67+
68+
// Environments
69+
"browser" : true, // Web Browser (window, document, etc)
70+
"couch" : false, // CouchDB
71+
"devel" : true, // Development/debugging (alert, confirm, etc)
72+
"dojo" : false, // Dojo Toolkit
73+
"jquery" : false, // jQuery
74+
"mootools" : false, // MooTools
75+
"node" : false, // Node.js
76+
"nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
77+
"prototypejs" : false, // Prototype and Scriptaculous
78+
"rhino" : false, // Rhino
79+
"worker" : false, // Web Workers
80+
"wsh" : false, // Windows Scripting Host
81+
"yui" : false, // Yahoo User Interface
82+
//"meteor" : false, // Meteor.js
83+
84+
// Legacy
85+
"nomen" : false, // true: Prohibit dangling `_` in variables
86+
"onevar" : false, // true: Allow only one `var` statement per function
87+
"passfail" : false, // true: Stop on first error
88+
"white" : false, // true: Check against strict whitespace and indentation rules
89+
90+
// Custom Globals
91+
"predef" : [
92+
"Meteor",
93+
"Mongo",
94+
"ReactiveVar",
95+
"ReactiveDict",
96+
"OrderedDict",
97+
"Accounts",
98+
"Session",
99+
"Template",
100+
"check",
101+
"Match",
102+
"Deps",
103+
"Tracker",
104+
"EJSON",
105+
"Email",
106+
"Package",
107+
"Tinytest",
108+
"Npm",
109+
"Assets",
110+
"Packages",
111+
"process",
112+
"Ground",
113+
"FS",
114+
"_gDB",
115+
"LocalCollection",
116+
"_",
117+
"Random"
118+
] // additional predefined global variables
119+
}

LICENSE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 [UserAccounts](https://github.com/meteor-useraccounts)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Whitespace-only changes.

package.js

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Package metadata for Meteor.js web platform (https://www.meteor.com/)
2+
// This file is defined within the Meteor documentation at
3+
//
4+
// http://docs.meteor.com/#/full/packagejs
5+
//
6+
// and it is needed to define a Meteor package
7+
'use strict';
8+
9+
10+
var Both = ['client', 'server'];
11+
var Client = 'client';
12+
13+
14+
Package.describe({
15+
name: 'useraccounts:flow-routing',
16+
summary: 'UserAccounts package providing routes configuration capability via kadira:flow-router.',
17+
version: '2.0.0',
18+
git: 'https://github.com/meteor-useraccounts/flow-routing.git'
19+
});
20+
21+
Package.onUse(function(api) {
22+
api.versionsFrom('1.0');
23+
24+
// Logger
25+
api.use([
26+
27+
'underscore',
28+
'useraccounts:core',
29+
'kadira:flow-router',
30+
'kadira:blaze-layout',
31+
'reactive-var',
32+
], Both);
33+
34+
api.imply([
35+
'useraccounts:[email protected]',
36+
37+
38+
], Both);
39+
40+
// Base Class instantiation
41+
api.addFiles([
42+
'src/_globals.js',
43+
'src/logger.js',
44+
'src/main.js'
45+
], Both);
46+
});

src/_globals.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
UALog = undefined;

src/logger.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* global
2+
Logger: false,
3+
UALog: true
4+
*/
5+
'use strict';
6+
7+
8+
// ------------------------------------
9+
// Create the logger for this package
10+
// ------------------------------------
11+
UALog = new Logger('useraccounts:flow-routing');
12+
13+
UALog.trace('Initializing logger options');
14+
15+
16+
// ----------------------------------
17+
// Pick up settings for this logger
18+
// ----------------------------------
19+
20+
var uaLogLevelSettings;
21+
if (
22+
Meteor.settings &&
23+
Meteor.settings.public &&
24+
Meteor.settings.public.useraccounts
25+
) {
26+
uaLogLevelSettings = Meteor.settings.public.useraccounts.logLevel;
27+
} else if (Meteor.settings && Meteor.settings && Meteor.settings.useraccounts) {
28+
uaLogLevelSettings = Meteor.settings.useraccounts.logLevel;
29+
}
30+
31+
if (uaLogLevelSettings && uaLogLevelSettings.flowRouting) {
32+
Logger.setLevel('useraccounts:flow-routing', uaLogLevelSettings.flowRouting);
33+
}
34+
35+
if (Meteor.isServer && process.env.USERACCOUNTS_FR_LOGLEVEL) {
36+
Logger.setLevel('useraccounts:flow-routing', process.env.USERACCOUNTS_FR_LOGLEVEL);
37+
}

src/main.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/* global
2+
UserAccounts: false,
3+
UALog: false
4+
*/
5+
'use strict';
6+
7+
8+
// ------------------------------------------
9+
// Logs the start of execution for this file
10+
// ------------------------------------------
11+
UALog.trace('Loading main.js');
12+
13+
14+
_.extend(UserAccounts, {
15+
16+
knownRoutes: [],
17+
18+
cofigureRoute: function() {
19+
20+
},
21+
22+
// and stuff like that...
23+
});

0 commit comments

Comments
 (0)