Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop bruce #99

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4505301
adding content partner specific fields
azahmed096 Jul 10, 2018
1f375b7
remove google sign in
azahmed096 Jul 10, 2018
22189d6
change firebase config for dev db
azahmed096 Jul 10, 2018
4073040
fix register form to post correct data
azahmed096 Jul 10, 2018
fac1e19
Creating the add story view.
bruceboelens Jul 10, 2018
d9aaf07
Started working on fields of the general form
bruceboelens Jul 11, 2018
f1265ce
changing the structure for the CSS
labautpol Jul 11, 2018
8905948
Inserted the AddStories view
bruceboelens Jul 11, 2018
9fe7221
Removed css ignore
labautpol Jul 11, 2018
d318962
Merge branch 'feature-sing-in-up-forms' of https://github.com/oSoc18/…
labautpol Jul 11, 2018
f9e8fec
Fixing ignore
labautpol Jul 11, 2018
e8428fb
fixing css gitignore
labautpol Jul 11, 2018
cdf4fc2
adding cloud functions module with oncreate user
azahmed096 Jul 11, 2018
aadb6bf
Adding input fields & connecting to firebase
bruceboelens Jul 11, 2018
f31eecc
Merge branch 'develop' into develop-bruce
azahmed096 Jul 11, 2018
a7790f9
Adding CSS to register form
labautpol Jul 11, 2018
d9ac7c6
Merge remote-tracking branch 'origin/feature-sing-in-up-forms' into d…
azahmed096 Jul 11, 2018
2b94390
Merge remote-tracking branch 'origin/feature-sing-in-up-forms' into d…
azahmed096 Jul 11, 2018
92e1ba6
Added AddStories.css
bruceboelens Jul 11, 2018
1e60692
Added label to input fields
bruceboelens Jul 11, 2018
d28c6a3
Signup label are blocks now
labautpol Jul 11, 2018
5d65f36
Made a connecting between AddStories.js and firebase
bruceboelens Jul 11, 2018
3b4afda
Merge branch 'develop-bruce' of https://github.com/oSoc18/snipstory i…
bruceboelens Jul 11, 2018
4d0472b
fixing required attribute in Field
azahmed096 Jul 11, 2018
d06d9d1
Add a placeholder to the inputboxes
bruceboelens Jul 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projects": {
"default": "ishare-c35bb"
"default": "snipstory-dev"
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,3 @@ typings/

build/

*.css
5 changes: 5 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"destination": "/index.html"
}
]
},
"functions": {
"predeploy": [
"npm --prefix \"functions\" run lint"
]
}
}
123 changes: 123 additions & 0 deletions functions/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"parserOptions": {
// Required for certain syntax usages
"ecmaVersion": 6
},
"plugins": [
"promise"
],
"extends": "eslint:recommended",
"rules": {
// Removed rule "disallow the use of console" from recommended eslint rules
"no-console": "off",

// Removed rule "disallow multiple spaces in regular expressions" from recommended eslint rules
"no-regex-spaces": "off",

// Removed rule "disallow the use of debugger" from recommended eslint rules
"no-debugger": "off",

// Removed rule "disallow unused variables" from recommended eslint rules
"no-unused-vars": "off",

// Removed rule "disallow mixed spaces and tabs for indentation" from recommended eslint rules
"no-mixed-spaces-and-tabs": "off",

// Removed rule "disallow the use of undeclared variables unless mentioned in /*global */ comments" from recommended eslint rules
"no-undef": "off",

// Warn against template literal placeholder syntax in regular strings
"no-template-curly-in-string": 1,

// Warn if return statements do not either always or never specify values
"consistent-return": 1,

// Warn if no return statements in callbacks of array methods
"array-callback-return": 1,

// Require the use of === and !==
"eqeqeq": 2,

// Disallow the use of alert, confirm, and prompt
"no-alert": 2,

// Disallow the use of arguments.caller or arguments.callee
"no-caller": 2,

// Disallow null comparisons without type-checking operators
"no-eq-null": 2,

// Disallow the use of eval()
"no-eval": 2,

// Warn against extending native types
"no-extend-native": 1,

// Warn against unnecessary calls to .bind()
"no-extra-bind": 1,

// Warn against unnecessary labels
"no-extra-label": 1,

// Disallow leading or trailing decimal points in numeric literals
"no-floating-decimal": 2,

// Warn against shorthand type conversions
"no-implicit-coercion": 1,

// Warn against function declarations and expressions inside loop statements
"no-loop-func": 1,

// Disallow new operators with the Function object
"no-new-func": 2,

// Warn against new operators with the String, Number, and Boolean objects
"no-new-wrappers": 1,

// Disallow throwing literals as exceptions
"no-throw-literal": 2,

// Require using Error objects as Promise rejection reasons
"prefer-promise-reject-errors": 2,

// Enforce “for” loop update clause moving the counter in the right direction
"for-direction": 2,

// Enforce return statements in getters
"getter-return": 2,

// Disallow await inside of loops
"no-await-in-loop": 2,

// Disallow comparing against -0
"no-compare-neg-zero": 2,

// Warn against catch clause parameters from shadowing variables in the outer scope
"no-catch-shadow": 1,

// Disallow identifiers from shadowing restricted names
"no-shadow-restricted-names": 2,

// Enforce return statements in callbacks of array methods
"callback-return": 2,

// Require error handling in callbacks
"handle-callback-err": 2,

// Warn against string concatenation with __dirname and __filename
"no-path-concat": 1,

// Prefer using arrow functions for callbacks
"prefer-arrow-callback": 1,

// Return inside each then() to create readable and reusable Promise chains.
// Forces developers to return console logs and http calls in promises.
"promise/always-return": 2,

//Enforces the use of catch() on un-returned promises
"promise/catch-or-return": 2,

// Warn against nested then() or catch() statements
"promise/no-nesting": 1
}
}
12 changes: 12 additions & 0 deletions functions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const functions = require('firebase-functions');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
// exports.helloWorld = functions.https.onRequest((request, response) => {
// response.send("Hello from Firebase!");
// });
exports.onNewUser = functions.database.ref('/users/{userId}')
.onCreate((snap, context) => {
return snap.ref.child("confirmed").set(false);
});
Loading