First swing at importing data
This commit is contained in:
parent
8bbe9c9fb4
commit
d6ecb14ff4
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/env
|
||||
|
||||
/node_modules
|
||||
/node_modules
|
||||
/*/node_modules
|
||||
366
lifetracker-server/data.csv
Normal file
366
lifetracker-server/data.csv
Normal file
@ -0,0 +1,366 @@
|
||||
DATE,DAY,12 AM,1 AM,2 AM,3 AM,4 AM,5 AM,6 AM,7 AM,8 AM,9 AM,10 AM,11 AM,12 PM,1 PM,2 PM,3 PM,4 PM,5 PM,6 PM,7 PM,8 PM,9 PM,10 PM,11 PM,Mood,Comments,,
|
||||
1/1,SUN,2,2,2,0,0,0,0,0,0,0,0,9,2,3,3,2,2,2,2,2,2,2,2,2,5,"Upstate with Hil, Averi, Lex, etc",,
|
||||
1/2,MON,2,2,0,0,0,0,0,0,0,0,2,2,10,10,10,9,9,9,10,2,2,2,2,2,6,Hungover return; dinner with Gabe and Jackie,,
|
||||
1/3,TUE,3,9,0,0,0,0,0,0,0,8,8,6,3,8,9,9,5,9,9,9,9,9,3,7,3,Languishing,,
|
||||
1/4,WED,7,9,0,0,0,0,0,0,0,0,8,9,7,7,6,0,3,3,3,3,3,8,9,9,4,Still languishing,,
|
||||
1/5,THU,9,0,0,0,0,0,0,0,0,0,8,9,9,10,9,9,9,10,4,4,4,4,4,10,3,Finally on the way home,,
|
||||
1/6,FRI,10,0,0,0,0,0,0,0,3,10,10,10,10,10,10,10,10,10,10,10,10,8,8,8,6,"En route via Springfield, IL!",,
|
||||
1/7,SAT,8,8,0,0,0,0,0,0,6,6,3,3,8,8,8,8,8,1,1,1,3,8,8,8,8,First day back; gym; family; fast,,
|
||||
1/8,SUN,0,0,0,0,0,0,0,0,0,8,8,8,10,10,10,10,10,3,6,7,7,9,9,9,8,"Cleaning, relaxing, getting shit done.",,
|
||||
1/9,MON,0,0,0,0,0,0,0,0,8,9,8,5,6,8,5,8,5,5,6,6,8,3,3,9,6,Lazy first Monday. Couple calls. Worked from home. Caught up on wedding and house needs.,,
|
||||
1/10,TUE,0,0,0,0,0,0,0,0,8,7,7,6,5,5,5,5,5,5,3,8,8,8,6,8,6,Prep for tomorrow,,
|
||||
1/11,WED,9,0,0,0,0,0,0,0,8,10,5,5,5,5,5,5,5,5,5,5,5,8,3,9,7,SK,,
|
||||
1/12,THU,0,0,0,0,0,0,0,10,5,10,5,5,5,5,5,5,5,5,5,5,5,3,8,9,8,Ontario Teachers OTPP,,
|
||||
1/13,FRI,0,0,0,0,0,0,0,3,8,3,6,5,3,3,5,10,10,7,7,1,1,1,3,0,8,Jamaican dinner for Peru/Kiri and parents,,
|
||||
1/14,SAT,0,0,0,0,0,0,0,0,0,0,8,10,10,7,0,0,7,10,8,9,9,9,9,9,7,"Nice needed lazy day. Did some drugs, probably too many.",,
|
||||
1/15,SUN,6,8,0,0,0,0,0,0,0,0,0,10,10,8,8,7,7,3,8,2,2,2,3,8,8,Lazy rainy day. Saw Andrew and sienna in the evening.,,
|
||||
1/16,MON,9,0,0,0,0,0,0,0,0,0,3,8,6,7,8,8,8,8,8,8,3,3,3,9,6,Stressed about work. Had vodka and popcorn.,,
|
||||
1/17,TUE,3,0,0,0,0,0,0,9,0,0,9,6,5,7,7,5,8,8,8,8,7,7,8,8,7,Hindi lessons!,,
|
||||
1/18,WED,9,0,0,0,0,0,0,10,5,5,5,5,8,6,6,3,3,7,7,3,8,8,3,3,7,Lazy,,
|
||||
1/19,THU,8,0,0,0,0,0,0,0,0,10,10,3,8,10,0,6,8,8,6,3,6,3,9,9,5,not sure,,
|
||||
1/20,FRI,9,0,0,0,8,0,0,0,0,0,10,6,6,5,3,6,8,7,7,3,3,3,9,9,6,long Hindi lesson and RDR2,,
|
||||
1/21,SAT,9,9,9,9,0,0,0,0,0,0,10,8,3,3,10,3,8,0,0,6,6,6,6,6,6,Polestar demo; In n out; Cleaning and packing,,
|
||||
1/22,SUN,7,3,8,0,0,0,0,0,10,10,1,1,10,10,10,10,10,10,10,10,10,10,10,10,7,Flying to Chicago,,
|
||||
1/23,MON,9,0,0,0,0,0,0,10,10,5,5,5,5,5,5,5,5,5,5,5,5,5,8,0,7,First day with TM,,
|
||||
1/24,TUE,0,0,0,0,0,0,0,10,10,10,10,5,5,5,5,5,1,1,2,2,2,3,10,9,6,Second day with TM; basketball game,,
|
||||
1/25,WED,0,0,0,0,0,0,0,10,10,10,5,10,10,10,10,10,10,10,3,3,3,5,8,0,7,No-Go Decision! Commercial to NY,,
|
||||
1/26,THU,0,0,0,0,0,10,10,10,10,6,6,5,10,10,10,3,3,3,3,3,5,8,3,0,6,Driving upstate for wedding rentals,,
|
||||
1/27,FRI,0,0,0,0,0,0,0,0,5,5,5,10,8,8,10,9,9,9,5,5,5,9,9,0,5,Board meeting sucked,,
|
||||
1/28,SAT,0,0,0,0,0,0,0,0,5,8,8,5,3,8,6,8,8,10,3,3,3,3,0,0,4,Hangover and day wastage,,
|
||||
1/29,SUN,0,8,0,0,0,0,0,0,0,9,9,8,7,7,7,3,9,9,9,9,9,0,0,0,6,Quiet day in feat several hours of Hindi,,
|
||||
1/30,MON,0,0,0,0,0,0,10,3,3,3,8,8,6,10,7,10,10,10,10,10,10,0,0,0,6,Another wedding rentals; flight to India,,
|
||||
1/31,TUE,0,0,0,0,0,10,10,10,0,0,0,0,10,10,8,0,0,0,8,10,10,10,10,10,7,Endless travel forever,,
|
||||
2/1,WED,5,5,5,5,5,5,0,5,5,8,0,0,0,0,0,0,0,5,8,10,8,5,5,5,4,Cool safari. why the fuck are we in India.,,
|
||||
2/2,THU,5,5,5,5,5,5,5,5,5,5,9,9,0,0,0,0,0,0,0,0,10,10,10,10,3,"welp, I'm sick ",,
|
||||
2/3,FRI,10,10,10,10,10,10,10,10,10,10,10,10,0,0,0,0,0,0,0,0,10,5,5,5,2,and still in fucking India,,
|
||||
2/4,SAT,8,10,5,5,5,5,5,5,5,5,5,3,0,0,0,0,0,0,0,0,10,10,10,10,1,planned how to continue drowning; met Aftab,,
|
||||
2/5,SUN,10,10,10,10,10,8,8,8,8,8,0,0,0,0,0,0,0,0,10,5,5,5,5,5,1,Why does it take fucking forever to travel anywhere in India,,
|
||||
2/6,MON,5,5,5,5,5,5,5,5,5,5,5,0,0,0,0,0,0,0,10,5,5,5,5,5,4,A little better. PD India day 1,,
|
||||
2/7,TUE,5,5,5,5,5,5,0,0,9,9,9,10,10,10,10,10,10,0,0,10,10,10,10,10,1,"PD India Day 2, town hall, doomsday, our fates, getting home.",,
|
||||
2/8,WED,10,0,0,0,0,0,10,10,0,0,0,0,10,10,10,10,10,10,10,10,10,10,10,10,5,Infinity travel and flying,,
|
||||
2/9,THU,10,3,3,0,0,0,0,0,0,5,5,8,8,5,8,8,0,0,0,9,3,3,8,7,7,Nice to be home.,,
|
||||
2/10,FRI,9,9,9,9,0,0,0,0,0,0,10,5,9,0,0,0,9,5,8,3,3,8,0,0,6,avoidance ,,
|
||||
2/11,SAT,0,0,0,0,0,0,10,8,9,9,6,8,8,8,8,8,8,0,7,8,8,8,3,8,7,,,
|
||||
2/12,SUN,0,0,0,0,0,0,0,0,0,8,8,8,8,2,2,2,1,1,1,1,1,8,0,0,6,Annie and family.,,
|
||||
2/13,MON,0,0,0,0,0,0,0,10,6,6,5,5,5,5,5,5,5,5,5,9,3,0,0,0,4,Connecting with folks at the office. Doomsday planning.,,
|
||||
2/14,TUE,0,0,0,0,0,0,0,0,0,10,8,5,5,5,5,6,10,6,6,7,3,3,3,3,3,Dreading work. Good Valentine's dinner with Jen.,,
|
||||
2/15,WED,0,0,0,0,0,0,0,0,5,7,5,5,5,7,5,5,5,5,3,9,10,6,9,0,2,Coming to terms with / trying to fight killing marketing at PD,,
|
||||
2/16,THU,0,0,0,0,0,0,8,7,7,7,7,7,10,9,5,7,8,7,9,9,3,8,9,0,4,Waste of a day.,,
|
||||
2/17,FRI,0,0,0,0,0,0,0,8,9,6,6,6,6,6,10,8,7,7,7,7,7,7,10,8,6,Playing with AI and cooking!,,
|
||||
2/18,SAT,0,0,0,0,0,0,0,0,0,7,10,10,10,10,3,3,3,3,3,3,3,3,0,0,7,Birthday weekend!,,
|
||||
2/19,SUN,0,0,0,0,0,0,0,8,10,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,7,Birthday weekend part 2,,
|
||||
2/20,MON,0,0,0,9,0,0,0,0,8,3,3,10,10,10,9,9,3,5,5,5,5,3,9,9,6,Mostly helping Jen with her case study,,
|
||||
2/21,TUE,0,0,0,0,0,0,0,10,10,5,5,5,5,5,5,5,5,5,5,1,1,3,6,0,5,First day of construction! Dilhan lunch. ,,
|
||||
2/22,WED,0,0,0,0,0,0,0,0,10,9,3,9,5,10,5,9,8,3,9,9,3,3,3,3,2,ugh everything is so exhausting,,
|
||||
2/23,THU,0,0,0,0,0,0,0,0,0,3,6,2,5,8,8,8,3,3,6,8,6,3,8,0,4,Yeah,,
|
||||
2/24,FRI,0,0,0,0,0,0,0,0,0,8,8,5,6,7,7,6,6,6,6,6,6,6,6,6,4,moving out (temporarily),,
|
||||
2/25,SAT,8,8,9,9,0,0,0,0,8,3,6,6,6,6,6,6,6,10,2,2,2,2,2,2,5,"more moving, friends and bwc",,
|
||||
2/26,SUN,3,9,9,9,9,9,9,9,0,0,6,6,10,10,10,10,0,0,0,0,0,0,0,0,5,MDMA night and flight to Dubai,,
|
||||
2/27,MON,10,0,0,0,0,10,10,10,0,0,9,9,0,0,0,0,0,3,8,10,10,5,5,5,5,Meeting with CG.,,
|
||||
2/28,TUE,5,5,5,5,5,5,5,5,0,0,0,0,10,8,0,0,0,8,10,5,5,5,5,5,5,Meeting with mubadala/strata.,,
|
||||
3/1,WED,5,5,5,5,5,5,10,10,0,5,0,0,0,0,0,0,5,5,8,8,8,3,0,5,6,Conference in Abu Dhabi ,,
|
||||
3/2,THU,5,5,5,5,5,5,5,8,0,0,0,0,0,5,0,0,0,8,10,5,5,5,8,8,7,Maybe things are looking up?,,
|
||||
3/3,FRI,8,10,10,10,8,0,0,0,10,5,5,8,8,8,0,0,10,10,8,8,10,10,10,0,7,Nalin; coming home,,
|
||||
3/4,SAT,0,0,0,0,0,0,0,0,0,10,10,10,10,10,10,8,8,3,3,3,3,3,3,0,8,Good to be back. Emily Calkins and Co like it in the Bay! Lasagna in a restaurant with a bad memory.,,
|
||||
3/5,SUN,0,9,9,9,0,0,0,0,0,0,0,3,6,3,10,3,10,10,10,10,10,8,0,0,8,Home and flight to Scottsdale,,
|
||||
3/6,MON,0,0,0,0,0,10,7,7,7,7,7,7,7,7,7,7,7,7,10,10,10,10,10,3,7,Recurrent training for PA46,,
|
||||
3/7,TUE,9,9,9,0,0,0,0,0,0,6,8,6,6,6,6,8,8,10,10,10,10,10,10,10,4,Flew to Lummi Island. Got in late. No dinner for us,,
|
||||
3/8,WED,8,0,0,0,0,0,0,3,5,5,6,5,5,3,5,9,0,3,5,3,3,3,3,8,4,"Nail biting for both of us. yet, enjoying the cabin and northwest.",,
|
||||
3/9,THU,0,0,0,0,9,0,0,0,0,5,3,10,5,6,6,7,5,5,5,5,3,3,3,3,3,"Hiked, cooked, talked to TM. Worlds starting and ending for Jen and me.",,
|
||||
3/10,FRI,3,9,0,0,0,0,0,0,8,5,5,3,5,6,6,10,10,1,1,1,1,1,1,1,6,"Seattle, meeting Josh's sister Kyra",,
|
||||
3/11,SAT,0,0,0,0,0,0,0,0,0,0,10,3,3,10,10,10,10,10,10,3,8,8,8,9,5,basically just getting home,,
|
||||
3/12,SUN,0,0,0,0,0,0,0,7,8,0,0,0,0,3,3,6,10,10,3,3,2,3,3,3,6,Checked into the Claremont hotel. Bonnie Cole. grey's anatomy.,,
|
||||
3/13,MON,0,0,0,0,0,0,0,5,10,3,8,5,3,8,8,8,8,3,1,1,1,3,3,3,5,Stressed about TM/Allison decision. Enjoying Claremont and new tablet.,,
|
||||
3/14,TUE,3,9,9,0,0,0,0,9,9,0.5,0.5,10,5,9,0.5,0.5,0.5,5,8,8,3,3,8,3,1,One more circuit down the spiral to the drain?,,
|
||||
3/15,WED,0,0,0,0,0,0,0,0,5,0.5,10,5,6,5,5,8,9,5,0.5,5,9,9,3,3,2,Still shitty,,
|
||||
3/16,THU,0,0,0,0,0,0,0,0,8,8,10,10,5,5,5,5,3,5,5,10,5,5,9,9,3,Chewing glass internally. Edward. Drinking. Embarrassing myself with KG.,,
|
||||
3/17,FRI,9,0,0,0,0,9,9,0,0,10,9,5,6,6,6,6,10,1,1,1,5,5,5,3,1,True colors revealed? and a nice dinner at Daytrip with Ashley and Elie. Wedding invites finally sent.,,
|
||||
3/18,SAT,9,9,0,0,0,9,0,9,9,9,0,8,10,0.5,9,9,9,9,10,6,6,6,6,8,4,"Getting some good perspective, cleaning the house",,
|
||||
3/19,SUN,6,6,9,0,0,0,0,0,0,0,0,0,8,10,6,6,8,8,10,8,8,8,8,8,5,Gym and sushi. New lowest weight this year!,,
|
||||
3/20,MON,8,8,0,0,0,0,0,0,0,10,5,5,5,5,5,5,9,9,3,10,8,5,8,0,2,shitty,,
|
||||
3/21,TUE,9,9,0,0,0,0,0,0,0,10,9,10,10,5,5,5,5,5,5,10,10,2,5,0,4,The transition day. layoffs happened. power went out. slept at the office. ran into Mario,,
|
||||
3/22,WED,0,0,0,0,0,0,0,0,0,0,8,10,3,5,5,5,9,9,5,10,10,8,9,0,5,Getting there.,,
|
||||
3/23,THU,0,9,9,0,0,9,0,9,10,5,5,8,0.5,10,108,108,108,8,8,8,8,8,8,9,6,Relaxed.,,
|
||||
3/24,FRI,8,0,0,0,0,0,0,0,10,10,6,0.5,0.5,8,5,8,6,6,8,8,8,8,8,0,5,Didn't do much with my day.,,
|
||||
3/25,SAT,0,0,0,0,0,0,0,0,0,0,8,10,6,6,6,6,5,6,8,8,8,9,9,9,6,At least I've gotten exercise and haven't eaten or drank too much,,
|
||||
3/26,SUN,9,9,9,9,9,9,9,0,0,0,0,0,10,0.5,0.5,8,8,3,8,8,8,8,8,8,5,Lazy day,,
|
||||
3/27,MON,9,9,0,0,0,0,0,0,0,10,8,8,5,5,5,7,1,1,67,67,8,8,8,8,6,Feeling alright today.,,
|
||||
3/28,TUE,83,9,0,0,0,0,0,0,0,5,103,0.5,0.5,89,89,81,101,81,81,0.5,0.5,8,89,89,4,Kinda aimless. ,,
|
||||
3/29,WED,3,3,33,0,0,0,0,0,0,105,35,73,10,65,65,5,31,31,35,35,33,57,101,99,7,Good to have Jen back!,,
|
||||
3/30,THU,83,0,0,0,0,98,98,3,10,5,5,6,6,6,73,5,0.5,0.5,3,3,3,3,33,83,5,"Alright, but stressed. Good life admin progress.",,
|
||||
3/31,FRI,0,0,0,0,0,0,0,0,0,10,5,5,57,2,9,5,5,5,10,3,2,2,2,0,3,ugh,,
|
||||
4/1,SAT,0,0,0,0,0,0,0,0,0,103,101,83,106,104,2,2,2,2,2,2,28,2,104,104,4,Graziano! Radio show! Rushed stressful trip!,,
|
||||
4/2,SUN,10,0.4,0.4,0.4,10,10,10,10,10,10,0.4,0.4,0.4,104,0.4,0.4,10,10,10,10,10,10,10,10,6,"I mean, stressed kinda, but nice to be in Pategonia!",,
|
||||
4/3,MON,10,10,10,10,10,10,10,37,37,10,10,10,10,103,8,3,3,3,3,0,0,0,0,0,7,Long (excessive) but very good and beautiful hike up Mt Fitz Roy in Patagonia,,
|
||||
4/4,TUE,0,0,0,0,37,37,37,37,37,37,37,37,37,37,38,10,3,8,33,8,0,0,0,0,7,Long (way too long) but very nice hike!,,
|
||||
4/5,WED,0,0,0,0,0,0,37,37,37,37,38,38,3,65,37,37,10,38,38,38,3,0,0,0,7,Pretty much same as above!,,
|
||||
4/6,THU,0,0,0,0,106,37,37,37,37,38,10,104,104,104,104,104,104,104,104,38,38,10,0,0,6,Beautiful trip.,,
|
||||
4/7,FRI,0,0,0,0,0,0,0,33,38,56,56,65,38,39,83,2,2,2,2,2,2,2,33,0,8,"Gabe, Jackie, tango lessons!",,
|
||||
4/8,SAT,0,0,0,0,0,0,83,106,106,38,10,2,2,2,2,2,10,28,28,28,28,0,0,0,8,"Gorgeous hotel ""home"" in BA. Day with Gabe and Jackie. dinner with Phoebe.",,
|
||||
4/9,SUN,0,0,0,0,0,38,38,103,28,28,34,34,39,39,36,36,28,28,28,2,3,0,0,0,8,Really fun day!,,
|
||||
4/10,MON,0,0,0,0,0,0,0.5,36,103,39,38,38,38,3,39,2,28,28,28,2,8,0,0,0,8,Don Julio and more Buenos Aires!,,
|
||||
4/11,TUE,0,0,0,0,0,108,108,106,104,104,38,34,34,34,104,104,38,104,104,104,104,0.4,0.4,0.4,8,Day in Uruguay; heading home,,
|
||||
4/12,WED,0.4,0.4,98,0.4,0.4,104,104,104,104,0.4,0.4,0.4,104,104,5,103,89,101,38,103,8,8,8,83,7,Back home.,,
|
||||
4/13,THU,0,0,0,0,0,0,0,83,5,6,6,5,8,8,6,88,88,88,88,88,88,88,88,83,6,Pretty much just video games ,,
|
||||
4/14,FRI,0,0,0,0,0,0,0,0,8,8,8,6,8,88,66,66,101,8,8,3,38,38,36,36,5,Good walk. Not productive,,
|
||||
4/15,SAT,0,0,0,0,0,0,33,8,88,88,33,88,88,104,3,38,104,1,1,3,88,88,88,88,6,Family time,,
|
||||
4/16,SUN,88,0,0,0,0,0,0,0,0,0,3,82,69,69,66,66,1,1,3,36,38,88,88,83,6,"Walked, saw parents.",,
|
||||
4/17,MON,0,0,0,0,0,0,0,3,83,105,69,69,69,69,83,88,0.5,99,3,36,88,36,36,99,5,Jen's first day! My 3200th. No work done.,,
|
||||
4/18,TUE,0,0,0,0,0,0,0,98,0,61,61,61,5,5,5,5,69,89,91,3,3,3,3,3,5,Finally cleaned (annoyed how long it goes).,,
|
||||
4/19,WED,83,0,0,0,0,0,0,0,83,89,89,5,101,5,0.5,5,9,9,1,36,36,8,33,8,4,IDK,,
|
||||
4/20,THU,0,0,0,0,0,0,0,98,103,8,83,8,101,88,66,66,88,104,31,31,31,36,36,0,4,IDK still,,
|
||||
4/21,FRI,0,0,0,0,0,0,0,5,33,103,8,101,5,63,46,46,46,46,3,5,3,3,9,83,2,I guess drugs?,,
|
||||
4/22,SAT,83,83,9,9,9,0,0,0,0,0,0,0,0,3,103,104,2,2,3,3,104,96,96,96,3,Burglarized!!,,
|
||||
4/23,SUN,0,0,0,0,0,0,0,0,0,96,96,96,96,96,36,96,96,63,8,8,36,36,8,36,4,Aftermath. Goose chase at the flea market and in Antioch,,
|
||||
4/24,MON,0,0,0,0,0,0,0,0,5,83,63,63,5,89,5,0.5,99,9,9,9,36,106,36,8,4,didn't do much. had a few calls,,
|
||||
4/25,TUE,0,0,0,0,0,0,0,0,8,10,5,67,67,5,5,5,10,8,0.5,3,89,36,36,36,6,Caught up. Worked out,,
|
||||
4/26,WED,98,0,0,0,0,0,0,0,0,103,83,5,5,67,67,101,5,5,7,5,5,3,3,3,6,Starting to feel more on top of things,,
|
||||
4/27,THU,0,0,0,0,98,98,0,0,0,89,91,91,67,67,101,5,65,58,10,15,15,38,3,89,6,Neighborhood meeting re public safety. Caught up. Nice to see Perumal a bit more.,,
|
||||
4/28,FRI,0,0,0,0,0,0,0,0,0,33,6,7,7,9,9,9,9,7,91,1,1,1,8,36,5,"Kind of wasted due to Jen's struggle, but overall a good day. saw family and Samoti.",,
|
||||
4/29,SAT,8,83,0,0,0,0,0,0,0,0,103,91,8,76,78,78,78,78,78,78,36,78,78,8,5,Programming project,,
|
||||
4/30,SUN,9,9,9,0,0,0,0,0,0,0,0,0,3,8,9,9,9,9,61,9,9,89,36,36,4,Wasted day,,
|
||||
5/1,MON,9,0,0,0,0,0,0,0,0,5,0.5,103,46,46,46,46,63,8,103,107,38,38,36,8,5,Picked up whiskers,,
|
||||
5/2,TUE,83,0,0,0,0,0,0,0,5,103,107,5,5,5,78,78,78,78,78,78,38,5,3,3,5,Did some programming. Smoked cigarettes like... 6 times?,,
|
||||
5/3,WED,3,99,0,0,0,0,0,0,0,10,107,67,67,101,83,0.5,0.5,89,5,5,3,36,36,0,6,Feel like tomorrow's big.,,
|
||||
5/4,THU,0,0,0,98,0,0,0,5,5,5,5,5,67,67,101,5,63,58,78,58,58,58,3,3,7,"Indeed, big day. Feels like the start of a new chapter ",,
|
||||
5/5,FRI,3,0,0,0,0,0,0,33,89,63,67,67,101,78,78,78,,,2,2,2,2,2,2,,,,
|
||||
5/6,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/7,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/8,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/9,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/10,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/11,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/12,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/13,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/14,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/15,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/16,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/17,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/18,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/19,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/20,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/21,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/22,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/23,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/24,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/25,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/26,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/27,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
5/28,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||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,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/3,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/4,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/5,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/6,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/7,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/8,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/9,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/10,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/11,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/12,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/13,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/14,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/15,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/16,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/17,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/18,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/19,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/20,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/21,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/22,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/23,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/24,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/25,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/26,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
10/27,FRI,,,,,,,,,,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|
||||
12/17,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/18,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/19,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/20,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/21,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/22,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/23,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/24,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/25,MON,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/26,TUE,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/27,WED,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/28,THU,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/29,FRI,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/30,SAT,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
12/31,SUN,,,,,,,,,,,,,,,,,,,,,,,,,,,,
|
||||
|
1854
lifetracker-server/package-lock.json
generated
Normal file
1854
lifetracker-server/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
20
lifetracker-server/package.json
Normal file
20
lifetracker-server/package.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "lifetracker-server",
|
||||
"version": "1.0.0",
|
||||
"description": "The backend server for Lifetracker.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "./node_modules/nodemon/bin/nodemon.js src/app.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.20.2",
|
||||
"cors": "^2.8.5",
|
||||
"csv": "^6.2.12",
|
||||
"express": "^4.18.2",
|
||||
"morgan": "^1.10.0",
|
||||
"nodemon": "^2.0.22"
|
||||
}
|
||||
}
|
||||
20
lifetracker-server/src/app.js
Normal file
20
lifetracker-server/src/app.js
Normal file
@ -0,0 +1,20 @@
|
||||
const express = require('express')
|
||||
const bodyParser = require('body-parser')
|
||||
const cors = require('cors')
|
||||
const morgan = require('morgan')
|
||||
|
||||
const { entries } = require('./import.js')
|
||||
|
||||
const app = express()
|
||||
app.use(morgan('combined'))
|
||||
app.use(bodyParser.json())
|
||||
app.use(cors())
|
||||
|
||||
app.get('/database', (req, res) => {
|
||||
res.send(
|
||||
entries
|
||||
// [["05/04", "THU", 0, 0, 0, 98, 0, 0, 0, 5, 5, 5, 5, 5, 67, 67, 101, 5, 63, 58, 78, 58, 58, 58, 3, 3, 7]]
|
||||
)
|
||||
})
|
||||
|
||||
app.listen(process.env.PORT || 8081)
|
||||
10
lifetracker-server/src/import.js
Normal file
10
lifetracker-server/src/import.js
Normal file
@ -0,0 +1,10 @@
|
||||
var fs = require('fs');
|
||||
|
||||
var data = fs.readFileSync('data.csv')
|
||||
.toString() // convert Buffer to string
|
||||
.split('\n') // split string to lines
|
||||
.slice(1) // remove first line
|
||||
.map(e => e.trim()) // remove white spaces for each line
|
||||
.map(e => e.split(',').map(e => e.trim())); // split each line to array
|
||||
|
||||
exports.entries = data;
|
||||
@ -2,6 +2,7 @@
|
||||
import { useSessionStore } from "../stores/session";
|
||||
const storeSession = useSessionStore();
|
||||
|
||||
// Try connecting to an existing session
|
||||
storeSession.connect();
|
||||
</script>
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from 'vue-router'
|
||||
import TableView from '../views/TableView.vue'
|
||||
import DatabaseView from '../views/DatabaseView.vue'
|
||||
import AboutView from '../views/AboutView.vue'
|
||||
import { useSessionStore } from "../stores/session";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
@ -24,3 +25,15 @@ const router = createRouter({
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
|
||||
// router.beforeEach(async (to) => {
|
||||
// // redirect to login page if not logged in and trying to access a restricted page
|
||||
// const publicPages = ['/database'];
|
||||
// const authRequired = !publicPages.includes(to.path);
|
||||
// const auth = useSessionStore();
|
||||
|
||||
// if (authRequired && !auth.session['id']) {
|
||||
// return '/database';
|
||||
// }
|
||||
// });
|
||||
7
lifetracker-vue/src/services/Api.ts
Normal file
7
lifetracker-vue/src/services/Api.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
export default() => {
|
||||
return axios.create({
|
||||
baseURL: `http://localhost:8081`
|
||||
})
|
||||
}
|
||||
23
lifetracker-vue/src/stores/database.ts
Normal file
23
lifetracker-vue/src/stores/database.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import type { IEntry } from "@/types/entry";
|
||||
import { defineStore } from 'pinia';
|
||||
import Api from "@/services/Api"
|
||||
|
||||
export const useDatabaseStore = defineStore({
|
||||
id: 'databaseState',
|
||||
state: () => ({
|
||||
entries: [] as IEntry[]
|
||||
}),
|
||||
getters: {
|
||||
length: (state) => state.entries.length
|
||||
},
|
||||
actions: {
|
||||
async fetchEntries(){
|
||||
try{
|
||||
const response = await Api().get("database");
|
||||
this.entries = response.data;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -1,5 +1,4 @@
|
||||
import type { ISession } from '@/types/session';
|
||||
import axios from 'axios';
|
||||
import { defineStore } from 'pinia';
|
||||
import { Client, Account, ID } from 'appwrite';
|
||||
|
||||
@ -15,14 +14,18 @@ export const useSessionStore = defineStore({
|
||||
session: [] as ISession[],
|
||||
}),
|
||||
getters: {
|
||||
isConnected: (state) => state.session['userId'] == 'ryan',
|
||||
isConnected: (state) => state.session['userId'],
|
||||
},
|
||||
actions: {
|
||||
logout() {
|
||||
const promise = this.account.deleteSession(this.session);
|
||||
const promise = account.deleteSession(this.session.id);
|
||||
var self = this;
|
||||
promise.then(function (response) {
|
||||
self.userId = null; self.email = null; self.session = false;
|
||||
self.session = {
|
||||
email: '',
|
||||
userId: '',
|
||||
id: '',
|
||||
};
|
||||
console.log(response); // Success
|
||||
}, function (error) {
|
||||
console.log(error); // Failure
|
||||
@ -35,20 +38,21 @@ export const useSessionStore = defineStore({
|
||||
userId: '',
|
||||
id: '',
|
||||
};
|
||||
var self = this;
|
||||
promise.then(
|
||||
function (response) {
|
||||
session.email = response.providerUid;
|
||||
session.userId = response.userId;
|
||||
session.id = response.$id;
|
||||
console.log('Connected to existing session');
|
||||
session = session;
|
||||
self.session = session;
|
||||
},
|
||||
function (error) {
|
||||
session.email = null;
|
||||
session.userId = null;
|
||||
session.id = null;
|
||||
session.id = '';
|
||||
console.log('No existing session; starting fresh.');
|
||||
return session;
|
||||
self.session = session;
|
||||
}
|
||||
);
|
||||
},
|
||||
@ -60,12 +64,13 @@ export const useSessionStore = defineStore({
|
||||
userId: '',
|
||||
id: '',
|
||||
};
|
||||
var self = this;
|
||||
promise.then(function (response) {
|
||||
session.email = response.providerUid;
|
||||
session.userId = response.userId;
|
||||
session.id = response.$id;
|
||||
console.log('Logged in');
|
||||
return session;
|
||||
self.session = session;
|
||||
}, function (error) {
|
||||
console.log('Error');
|
||||
});
|
||||
|
||||
6
lifetracker-vue/src/types/entry.ts
Normal file
6
lifetracker-vue/src/types/entry.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface IEntry {
|
||||
date: Date,
|
||||
hours: Number[],
|
||||
mood: Number,
|
||||
note: String
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
<script setup>
|
||||
import { useSessionStore } from "../stores/session";
|
||||
import Api from "@/services/Api";
|
||||
const storeSession = useSessionStore();
|
||||
</script>
|
||||
|
||||
@ -10,25 +11,22 @@ export default {
|
||||
},
|
||||
data(){
|
||||
return {
|
||||
userId: userId,
|
||||
email: email,
|
||||
password: password,
|
||||
error: null,
|
||||
session: session,
|
||||
}
|
||||
entries: []
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
connect() {
|
||||
console.log("Legacy method called.");
|
||||
async getDatabase() {
|
||||
const response = await Api().get("database");
|
||||
this.entries = response.data;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<template>
|
||||
<div v-if="storeSession.session == null">
|
||||
<div v-if="storeSession.isConnected == null">
|
||||
Loading...
|
||||
</div>
|
||||
<div v-if="storeSession.session == false" id="form">
|
||||
<div v-if="storeSession.isConnected == ''" id="form">
|
||||
<h2>Not connected yet.</h2>
|
||||
<div id="login">
|
||||
<input name="email" type="text" v-model="email" placeholder="email" />
|
||||
@ -37,10 +35,11 @@ export default {
|
||||
<h3 class="error" v-if="error">{{ error }}</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="storeSession.session.id">
|
||||
<h2>Welcome back, {{ userId }}!</h2>
|
||||
<div v-if="storeSession.isConnected">
|
||||
<h2>Welcome back, {{ storeSession.session.userId }}!</h2>
|
||||
|
||||
<div class="flex">
|
||||
<button @click="logout">Log Out</button>
|
||||
<button @click="storeSession.logout()">Log Out</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -1,44 +1,62 @@
|
||||
<template>
|
||||
<hot-table :settings="hotSettings" :data="data"></hot-table>
|
||||
</template>
|
||||
|
||||
<script scoped>
|
||||
import { Client, Account, ID } from 'appwrite';
|
||||
<script setup>
|
||||
import { useDatabaseStore } from "@/stores/database"
|
||||
import Api from "@/services/Api"
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from 'vue';
|
||||
import { HotTable } from '@handsontable/vue3';
|
||||
import { registerAllModules } from 'handsontable/registry';
|
||||
import 'handsontable/dist/handsontable.full.css';
|
||||
|
||||
import Handsontable from 'handsontable/base';
|
||||
// register Handsontable's modules
|
||||
registerAllModules();
|
||||
|
||||
const appwriteclient = new Client();
|
||||
|
||||
appwriteclient
|
||||
.setEndpoint('http://ryanpandya.com:8080/v1')
|
||||
.setProject('lifetracker');
|
||||
const colHeaders = ["DATE", "DAY", "12 AM"]
|
||||
.concat(Array.from(new Array(11), (x, y) => y+1 + " AM") )
|
||||
.concat(Array.from(new Array(12), (x, y) => y+1 + " PM") )
|
||||
.concat(["Mood", "Comments"])
|
||||
|
||||
const ExampleComponent = defineComponent({
|
||||
data() {
|
||||
return {
|
||||
entries: [
|
||||
],
|
||||
hotSettings: {
|
||||
data: [
|
||||
['DATE', 'DAY',
|
||||
'12 AM', '1 AM', '2 AM', '3 AM', '4 AM', '5 AM', '6 AM', '7 AM', '8 AM', '9 AM', '10 AM', '11 AM',
|
||||
'12 PM', '1 PM', '2 PM', '3 PM', '4 PM', '5 PM', '6 PM', '7 PM', '8 PM', '9 PM', '10 PM', '11 PM',
|
||||
'Mood', 'Notes'
|
||||
],
|
||||
['A2', 'B2', 'C2', 'D2', 'E2', 'F2', 'G2', 'H2', 'I2', 'J2'],
|
||||
['A3', 'B3', 'C3', 'D3', 'E3', 'F3', 'G3', 'H3', 'I3', 'J3'],
|
||||
['A4', 'B4', 'C4', 'D4', 'E4', 'F4', 'G4', 'H4', 'I4', 'J4'],
|
||||
['A5', 'B5', 'C5', 'D5', 'E5', 'F5', 'G5', 'H5', 'I5', 'J5'],
|
||||
['A6', 'B6', 'C6', 'D6', 'E6', 'F6', 'G6', 'H6', 'I6', 'J6'],
|
||||
],
|
||||
colHeaders: false,
|
||||
columns: [
|
||||
{
|
||||
renderer: 'date'
|
||||
},
|
||||
{ renderer: 'text'},
|
||||
Array.from(new Array(24), (a, b) => { renderer: 'hour'}),
|
||||
{ renderer: 'text'},
|
||||
{ renderer: 'text'}
|
||||
].flat(),
|
||||
colHeaders: colHeaders,
|
||||
rowHeaders: false,
|
||||
readOnly: false,
|
||||
height: 'auto',
|
||||
afterChange: () => {
|
||||
if (this.hotRef) {
|
||||
console.log(this.hotRef.getSourceData());
|
||||
}
|
||||
},
|
||||
licenseKey: 'non-commercial-and-evaluation'
|
||||
}
|
||||
};
|
||||
},
|
||||
hotRef: null
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
methods: {
|
||||
fetch(){
|
||||
this.hotRef = this.$refs.wrapper.hotInstance;
|
||||
const storeDatabase = useDatabaseStore();
|
||||
storeDatabase.fetchEntries();
|
||||
this.entries = storeDatabase.entries;
|
||||
this.hotRef.loadData(this.entries);
|
||||
|
||||
}
|
||||
},
|
||||
components: {
|
||||
HotTable,
|
||||
@ -46,4 +64,14 @@ const ExampleComponent = defineComponent({
|
||||
});
|
||||
|
||||
export default ExampleComponent;
|
||||
</script>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button @click="fetch">Fetch</button>
|
||||
<hot-table ref="wrapper" :settings="hotSettings" :data="entries"></hot-table>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user