From cf465f6de0359b34b1b27b1ceff432fea5d96ba3 Mon Sep 17 00:00:00 2001 From: Nico Tonozzi Date: Mon, 11 Jan 2016 16:51:48 -0700 Subject: [PATCH 01/62] Update URLs --- firebase.json | 2 +- src/apps/todos/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase.json b/firebase.json index ad3818e3..2cb86a37 100644 --- a/firebase.json +++ b/firebase.json @@ -1,5 +1,5 @@ { - "firebase": "ucdd2-book", + "firebase": "rockemsockemrobotstodo", "public": "build", "ignore": [ "firebase.json", diff --git a/src/apps/todos/index.html b/src/apps/todos/index.html index 6e2fd6f6..cecae43f 100644 --- a/src/apps/todos/index.html +++ b/src/apps/todos/index.html @@ -28,7 +28,7 @@

Tasks

- - - -
- -

Team Rock 'em Sock 'em Robots

- -

Tasks

- - -
- - - - + + + + + + + + + + + + + + + + +
+ +

Team Rock 'em Sock 'em Robots

+ +
+

Tasks

+
    +
+
+
+
+ +
+ + + + diff --git a/src/learning/intro/index.md b/src/learning/intro/index.md index bf3a65e7..9cf41e96 100644 --- a/src/learning/intro/index.md +++ b/src/learning/intro/index.md @@ -27,10 +27,10 @@ Develop a TODO list app. ### Milestones -* [ ] _EVERYONE_ should fork the Git repository of this book. -* [ ] Get the template code in [apps/todos/index.html](/apps/todos) to run -* [ ] Modify the code to show your team's name -* [ ] Use your team's own Firebase to serve the task data +* [x] _EVERYONE_ should fork the Git repository of this book. +* [x] Get the template code in [apps/todos/index.html](/apps/todos) to run +* [x] Modify the code to show your team's name +* [x] Use your team's own Firebase to serve the task data ### Submission From 5f7d7f2ccfd9797f1ed25213e23c50a8e9d37b13 Mon Sep 17 00:00:00 2001 From: Steven Tang Date: Mon, 11 Jan 2016 21:14:35 -0700 Subject: [PATCH 04/62] data edited to be objects instead of text --- src/apps/todos/index.html | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/apps/todos/index.html b/src/apps/todos/index.html index 6c74cd64..89b2b6c2 100644 --- a/src/apps/todos/index.html +++ b/src/apps/todos/index.html @@ -5,22 +5,24 @@ - + - - +
- -

Team Rock 'em Sock 'em Robots

-
-

Tasks

+

Tasks

@@ -32,15 +34,23 @@

Tasks

+ + From 224d7063c9af3be858235375f5a675a819a52fb9 Mon Sep 17 00:00:00 2001 From: BenedictRM Date: Wed, 13 Jan 2016 16:39:13 -0700 Subject: [PATCH 05/62] Added third field to data -- Deadline Just wrapping up part one of group tasks --- build/apps/resume/index.html | 48 +++++++++++++++ build/apps/todos/index.html | 56 +++++++++++++++++ build/index.html | 52 ++++++++++++++++ build/learning/intro/index.html | 106 ++++++++++++++++++++++++++++++++ build/learning/week1/index.html | 66 ++++++++++++++++++++ src/apps/todos/index.html | 2 +- src/learning/week1/index.md | 2 +- 7 files changed, 330 insertions(+), 2 deletions(-) create mode 100644 build/apps/resume/index.html create mode 100644 build/apps/todos/index.html create mode 100644 build/index.html create mode 100644 build/learning/intro/index.html create mode 100644 build/learning/week1/index.html diff --git a/build/apps/resume/index.html b/build/apps/resume/index.html new file mode 100644 index 00000000..1ebc5297 --- /dev/null +++ b/build/apps/resume/index.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + +
+ +

Tom Yeh

+ +

Favorite Programming Languages

+
    +
  • Javascript
  • +
  • Haskell
  • +
+ +

Favorite Food

+
    +
+ +
+ + + + diff --git a/build/apps/todos/index.html b/build/apps/todos/index.html new file mode 100644 index 00000000..a11ff1b9 --- /dev/null +++ b/build/apps/todos/index.html @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + +
+
+

Tasks

+
    +
+
+
+
+ +
+ + + + + + diff --git a/build/index.html b/build/index.html new file mode 100644 index 00000000..f2a960b0 --- /dev/null +++ b/build/index.html @@ -0,0 +1,52 @@ + + + + + + + + + + + +
+

Book

+

Everything I’ve learned from UCDD 2 - Spring 2016.

+

Apps

+ +

Learning

+ + +
+ + + + diff --git a/build/learning/intro/index.html b/build/learning/intro/index.html new file mode 100644 index 00000000..537bf7c8 --- /dev/null +++ b/build/learning/intro/index.html @@ -0,0 +1,106 @@ + + + + + + + + + + + +
+

Intro

+

Welcome to the 2016 edition of UCDD II!

+

Today is introduction. We will go through the three major learning components +of this class:

+
    +
  1. Team Learning (Due: every Friday @ 11:59pm)
  2. +
  3. Individual Learning (Due: every Sunday @ 11:59pm)
  4. +
  5. Hackathon (starts the following Monday @ 4pm)
  6. +
+

Team Learning

+

Objective

+

Develop a TODO list app.

+

Teaming

+
    +
  • Four people per team.
  • +
  • No more than 2 graduate students on each team.
  • +
  • Teams will change every three or four weeks.
  • +
+

Milestones

+
    +
  • [x] EVERYONE should fork the Git repository of this book.
  • +
  • [x] Get the template code in apps/todos/index.html to run
  • +
  • [x] Modify the code to show your team’s name
  • +
  • [x] Use your team’s own Firebase to serve the task data
  • +
+

Submission

+
    +
  • The deadline is always Friday @ 11:59pm.
  • +
  • Source code is pushed to Github.
  • +
  • App is deployed at Firebase.
  • +
  • Only one person needs to be responsible for submitting by the deadline.
  • +
+

Individual Learning

+

Objective

+ +

Submission

+
    +
  • The deadline is always Sunday @ 11:59pm.
  • +
  • Source code is pushed to Github.
  • +
  • App is deployed at Firebase.
  • +
  • Each person is responsible for submitting his or her own work by the deadline.
  • +
+

Hackathon

+

At the beginning of each hackathon, a list of new (secret) feature requirements will +be released. Your team will be given some amount of time to add these requirements +to your app.

+

Feature Requirements

+
    +
  • Use an object to represent each task (rather than using a string) so that +each task can have multiple fields.
  • +
  • Each task object should have two fields: title, and priority. Priority can be +high, medium, low.
  • +
+

Submission

+
    +
  • The deadline is sometime during the class, depending on the hackathon’s level +of difficulty.
  • +
  • Your team’s updated app (with the new requirements implemented) should be deployed +at Firebase.
  • +
+

Presentation

+

After the time is up, we will have presentations from teams. Sometimes we +have time for every team to present. Sometimes we will select only a few teams.

+ +
+ + + + diff --git a/build/learning/week1/index.html b/build/learning/week1/index.html new file mode 100644 index 00000000..31e4e80c --- /dev/null +++ b/build/learning/week1/index.html @@ -0,0 +1,66 @@ + + + + + + + + + + + +
+

Week 1

+

Team Learning

+

Objective

+

Enhance your team’s TODO list app.

+

Requirements

+
    +
  • [X] Three additional fields need to be added to each task object: priority, type, and deadline.
  • +
  • [ ] Use the CSS, Components, and JavaScript provided by materializecss to make the app pretty.
  • +
  • [ ] The Firebase database must be populated with at least 10 tasks for a reasonable demo.
  • +
+

Individual Learning

+
    +
  • [ ] Add more data to enrich your personal resume app. Data must include typical items that go on your resume.
  • +
  • [ ] The data must be pulled from Firebase in realtime, rather than hardcoded.
  • +
+

Submission

+
    +
  • Commit/Push your source code to Github.
  • +
  • Deploy your resume app to Firebase
  • +
+

Hackathon

+

Details will be announced on Monday 4pm.

+
    +
  • Start: Monday, 1/18 @ 4pm
  • +
  • Due: Tuesday, 1/19 @ 11:59pm
  • +
+ +
+ + + + diff --git a/src/apps/todos/index.html b/src/apps/todos/index.html index 89b2b6c2..a11ff1b9 100644 --- a/src/apps/todos/index.html +++ b/src/apps/todos/index.html @@ -42,7 +42,7 @@

Tasks

var key = childSnapshot.key(); var childData = childSnapshot.val(); $('#tasks').append('
' - +key+'

Title:

' +childData.Title+ '

Priority:

' +childData.Priority+ '
') + +key+'

Title:

' +childData.Title+ '

Priority:

' +childData.Priority+ '

Deadline:

' +childData.Deadline+ '
') }) }); diff --git a/src/learning/week1/index.md b/src/learning/week1/index.md index cd0d482d..002032bf 100644 --- a/src/learning/week1/index.md +++ b/src/learning/week1/index.md @@ -12,7 +12,7 @@ Enhance your team's TODO list app. ### Requirements -* [ ] Three additional fields need to be added to each task object: priority, type, and deadline. +* [X] Three additional fields need to be added to each task object: priority, type, and deadline. * [ ] Use the CSS, Components, and JavaScript provided by [materializecss](http://materializecss.com/) to make the app pretty. * [ ] The Firebase database must be populated with at least 10 tasks for a reasonable demo. From af0e1518745b64aa0c961b59d0215d5ff89cc630 Mon Sep 17 00:00:00 2001 From: BenedictRM Date: Wed, 13 Jan 2016 20:33:12 -0700 Subject: [PATCH 06/62] Added form at bottom of page to add tasks One issue--if a task is ever removed the url may no longer be unique. I tried to solve this with the push() method however that generates an ugly hash--still an option but less pretty --- build/apps/todos/index.html | 47 +++++++++++++++++++++++++++++++++++++ src/apps/todos/index.html | 47 +++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/build/apps/todos/index.html b/build/apps/todos/index.html index a11ff1b9..87d87524 100644 --- a/build/apps/todos/index.html +++ b/build/apps/todos/index.html @@ -38,16 +38,63 @@

Tasks

// read data from the location todos/tasks, only once ref.child('todos/tasks').once('value', function(snapshot){ + snapshot.forEach(function(childSnapshot) { var key = childSnapshot.key(); var childData = childSnapshot.val(); $('#tasks').append('
' +key+'

Title:

' +childData.Title+ '

Priority:

' +childData.Priority+ '

Deadline:

' +childData.Deadline+ '
') + }) }); + + + +
+
+
+
+ +
+
+
+ +
+
+
+ + +
+
') + var childKey = childSnapshot.key(); + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

High
') }) }); diff --git a/build/apps/todos/low.html b/build/apps/todos/low.html index e9c35a0b..6eb35391 100644 --- a/build/apps/todos/low.html +++ b/build/apps/todos/low.html @@ -78,11 +78,19 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Low
') + var childKey = childSnapshot.key(); + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Low
') }) }); diff --git a/build/apps/todos/medium.html b/build/apps/todos/medium.html index dee5e949..6b9b2bb9 100644 --- a/build/apps/todos/medium.html +++ b/build/apps/todos/medium.html @@ -80,12 +80,7 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Medium
') + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Medium
') }) }); diff --git a/src/apps/todos/high.html b/src/apps/todos/high.html index b5942056..55b941a1 100644 --- a/src/apps/todos/high.html +++ b/src/apps/todos/high.html @@ -78,11 +78,19 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

High
') + var childKey = childSnapshot.key(); + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

High
') }) }); diff --git a/src/apps/todos/low.html b/src/apps/todos/low.html index e9c35a0b..6eb35391 100644 --- a/src/apps/todos/low.html +++ b/src/apps/todos/low.html @@ -78,11 +78,19 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Low
') + var childKey = childSnapshot.key(); + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Low
') }) }); diff --git a/src/apps/todos/medium.html b/src/apps/todos/medium.html index dee5e949..6b9b2bb9 100644 --- a/src/apps/todos/medium.html +++ b/src/apps/todos/medium.html @@ -80,12 +80,7 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Medium
') + $('#tasks').append('
' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

Medium
') }) }); From e94e94da2f25ee3ecba986ce0d4f2da00f061ca9 Mon Sep 17 00:00:00 2001 From: BenedictRM Date: Wed, 20 Jan 2016 15:21:50 -0700 Subject: [PATCH 29/62] small update here --- build/apps/todos/high.html | 10 +++++++++- build/apps/todos/low.html | 14 +++++++++++--- build/apps/todos/medium.html | 10 +++++++++- src/apps/todos/high.html | 10 +++++++++- src/apps/todos/low.html | 14 +++++++++++--- src/apps/todos/medium.html | 10 +++++++++- 6 files changed, 58 insertions(+), 10 deletions(-) diff --git a/build/apps/todos/high.html b/build/apps/todos/high.html index 55b941a1..acfda219 100644 --- a/build/apps/todos/high.html +++ b/build/apps/todos/high.html @@ -81,10 +81,18 @@

Date: Wed, 20 Jan 2016 15:36:54 -0700 Subject: [PATCH 30/62] fixing small bug definitely a hack, will look at later if issue --- build/apps/todos/high.html | 5 ++++- build/apps/todos/low.html | 1 + build/apps/todos/medium.html | 1 + src/apps/todos/high.html | 5 ++++- src/apps/todos/low.html | 1 + src/apps/todos/medium.html | 1 + 6 files changed, 12 insertions(+), 2 deletions(-) diff --git a/build/apps/todos/high.html b/build/apps/todos/high.html index acfda219..1748f38f 100644 --- a/build/apps/todos/high.html +++ b/build/apps/todos/high.html @@ -83,6 +83,7 @@

diff --git a/build/apps/todos/low.html b/build/apps/todos/low.html index 1a1dc416..88aac008 100644 --- a/build/apps/todos/low.html +++ b/build/apps/todos/low.html @@ -124,6 +124,7 @@

diff --git a/src/apps/todos/low.html b/src/apps/todos/low.html index 1a1dc416..88aac008 100644 --- a/src/apps/todos/low.html +++ b/src/apps/todos/low.html @@ -124,6 +124,7 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

High
') - }) }); diff --git a/build/apps/todos/low.html b/build/apps/todos/low.html index 626879eb..36fa42cd 100644 --- a/build/apps/todos/low.html +++ b/build/apps/todos/low.html @@ -81,10 +81,10 @@

' + childData.Title + '

Deadline:

' + childData.Deadline + '

Priority:

High
') - }) }); diff --git a/src/apps/todos/low.html b/src/apps/todos/low.html index 626879eb..36fa42cd 100644 --- a/src/apps/todos/low.html +++ b/src/apps/todos/low.html @@ -81,10 +81,10 @@

Date: Thu, 21 Jan 2016 07:33:55 -0700 Subject: [PATCH 33/62] Added Nav Drop Down --- build/apps/resume/index.html | 22 ++- build/apps/todos/high.html | 38 ++--- build/apps/todos/inbox.html | 185 ++++++++++++++--------- build/apps/todos/index.html | 274 ++++++++++++++++++----------------- build/apps/todos/low.html | 36 +++-- build/apps/todos/medium.html | 38 ++--- src/apps/todos/high.html | 38 ++--- src/apps/todos/inbox.html | 185 ++++++++++++++--------- src/apps/todos/index.html | 274 ++++++++++++++++++----------------- src/apps/todos/low.html | 36 +++-- src/apps/todos/medium.html | 38 ++--- 11 files changed, 653 insertions(+), 511 deletions(-) diff --git a/build/apps/resume/index.html b/build/apps/resume/index.html index aaa2e6ce..5426461c 100644 --- a/build/apps/resume/index.html +++ b/build/apps/resume/index.html @@ -16,31 +16,39 @@
+ + + +

Resume for Russell Mehring

-

Dominic Nico Tonozzi's Resume

- -

Contact

+

Contact:

-

Education

+

Education:

-

Technology Summary

+

Technology Summary:

-

Work Experience

+

Work Experience:

+ +
@@ -125,9 +129,9 @@

- - - - - - - - - - - - -
- + + + + + + + + + + + + + + + + + + + + + + + +

Adding a Task

-
-
- - -
+
+ + +
-
-
- - -
+
+ + +
- -
-
- Submit -
+
+ Submit +
-
- - - - + } + + // TODO: add logic to validate form data before pushing the + // data to firebase, only push/set if the required fields are not empty + + // TODO: study why push() and set() are both necessary + var newTaskRef = taskListRef.push() + newTaskRef.set(taskObject) + }) + + // IMPORTANT!! initialize materializecss select + $(document).ready(function() { + $('select').material_select(); + }); + + + + + \ No newline at end of file diff --git a/build/apps/todos/index.html b/build/apps/todos/index.html index 37f2aeb3..2c9bc4ac 100644 --- a/build/apps/todos/index.html +++ b/build/apps/todos/index.html @@ -1,138 +1,148 @@ - - - - - - - - - - - - - - - - - -
-
-
-

TASK MANAGEMENT

-
-
-
+ + + + + + + + + + + + + + + + + +
+
+
+

TASK MANAGEMENT

+
+
+
+ + + - -
-
- Add A Task: -
- -
-
- -
- -
-
- - - - - -
-
- - - - + + ref.child(priority).once('value', function(snapshot) { + numberOfJSON = snapshot.numChildren(); + numberOfJSON = numberOfJSON.toString(); + Task = Task.concat(numberOfJSON); + url = url.concat('/' + Task); + firebaseRef = new Firebase(url); + task = { + Deadline: deadline, + Title: title + }; + firebaseRef.set(task); + }); + + console.log(ref); + + alert("submitted captain!"); + evt.preventDefault(); +} + +
+
+ Add A Task: +
+ + +
+
+
+ + +
+
+ + + +
+
+ + + + \ No newline at end of file diff --git a/build/apps/todos/low.html b/build/apps/todos/low.html index 36fa42cd..679cc624 100644 --- a/build/apps/todos/low.html +++ b/build/apps/todos/low.html @@ -38,6 +38,11 @@
  • Dominic Tonozzi
  • Jacob Resman
  • +
    ') + var childKey = childSnapshot.key(); + $('#tasks').append('
    ' + childData.Title + '

    Deadline:

    ' + childData.Deadline + '

    Priority:

    Low
    ') }) }); @@ -126,7 +130,7 @@

    Dominic Tonozzi
  • Jacob Resman
  • +