-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a complete CRUD example, code refactor and removed/added packages
- Loading branch information
Showing
34 changed files
with
256 additions
and
1,070 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,10 +10,6 @@ [email protected] | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
cmather:[email protected] | ||
cmather:[email protected] | ||
cmather:[email protected] | ||
cmather:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
|
@@ -24,19 +20,20 @@ [email protected] | |
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
iron:[email protected] | ||
iron:[email protected] | ||
iron:[email protected] | ||
iron:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
manuelschoebel:[email protected] | ||
manuelschoebel:[email protected] | ||
[email protected] | ||
[email protected] | ||
[email protected] | ||
mizzao:[email protected] | ||
[email protected] | ||
mrt:[email protected] | ||
mrt:[email protected] | ||
[email protected] | ||
[email protected] | ||
|
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Accounts.ui.config({ | ||
passwordSignupFields: 'EMAIL_ONLY' | ||
}); | ||
//Accounts.ui.config({ | ||
// passwordSignupFields: 'EMAIL_ONLY' | ||
//}); |
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 |
---|---|---|
@@ -1,29 +1,22 @@ | ||
// Autoform hooks | ||
|
||
AutoForm.hooks({ | ||
documentForm: { | ||
before: { | ||
insert: function(doc) {}, | ||
update: function(docId, modifier) {}, | ||
remove: function(docId) {}, | ||
"methodName": function(doc) {} | ||
AutoForm.addHooks(['documentForm'], { | ||
after: { | ||
insert: function(error, result) { | ||
if (error) { | ||
console.log("Insert Error:", error); | ||
} else { | ||
console.log("Insert Result:", result); | ||
Router.go('documentsIndex') | ||
} | ||
}, | ||
after: { | ||
insert: function(error, result, template) { }, | ||
update: function(error, result, template) { }, | ||
remove: function(error, result, template) {}, | ||
"methodName": function(error, result, template) {} | ||
}, | ||
onSubmit: function(insertDoc, updateDoc, currentDoc) {}, | ||
|
||
//called when any operation succeeds, where operation will be | ||
//"insert", "update", "remove", or the method name. | ||
onSuccess: function(operation, result, template) {}, | ||
|
||
//called when any operation fails, where operation will be | ||
//"validation", "insert", "update", "remove", or the method name. | ||
onError: function(operation, error, template) {}, | ||
formToDoc: function(doc) {}, | ||
docToForm: function(doc) {} | ||
update: function(error) { | ||
if (error) { | ||
console.log("Update Error:", error); | ||
} else { | ||
console.log("Updated!"); | ||
Router.go('documentsIndex') | ||
} | ||
} | ||
} | ||
}); |
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,11 @@ | ||
// Iron-router filters / hooks that will run on certain routes | ||
|
||
var filters = { | ||
|
||
resetDocumentForm: function() { | ||
AutoForm.resetForm('documentForm') | ||
} | ||
|
||
} | ||
|
||
Router.onStop(filters.resetDocumentForm, {only: ['documentNew', 'documentEdit']}); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Meteor.startup(function () { | ||
// Do something | ||
}); | ||
// Do something | ||
}); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.