diff --git a/lifetracker-server/src/app.js b/lifetracker-server/src/app.js index a1f54ed..bb01870 100644 --- a/lifetracker-server/src/app.js +++ b/lifetracker-server/src/app.js @@ -6,6 +6,7 @@ const sdk = require('node-appwrite') const client = new sdk.Client() const databases = new sdk.Databases(client) const strftime = require('strftime') +const { entries } = require('./import.js') client .setEndpoint('http://ryanpandya.com:8080/v1') // Your API Endpoint .setProject('lifetracker') // Your project ID diff --git a/lifetracker-server/src/import.js b/lifetracker-server/src/import.js index bbd8838..014355b 100644 --- a/lifetracker-server/src/import.js +++ b/lifetracker-server/src/import.js @@ -22,10 +22,10 @@ var data = fs.readFileSync('data.csv') var comments = entry.slice(27).filter(x => x != "").join().replace(/^"/,"").replace(/"$/,'') var dbEntry = { - Date: date, - Hours: hours, - Mood: mood, - Comments: comments + date: date, + hours: hours, + mood: mood, + comments: comments }; client .setEndpoint('http://ryanpandya.com:8080/v1') // Your API Endpoint diff --git a/lifetracker-vue/package-lock.json b/lifetracker-vue/package-lock.json index 3cb1de3..00a75de 100644 --- a/lifetracker-vue/package-lock.json +++ b/lifetracker-vue/package-lock.json @@ -12,6 +12,7 @@ "appwrite": "^11.0.0", "axios": "^1.4.0", "handsontable": "^12.3.3", + "moment": "^2.29.4", "node": "^20.0.0", "pinia": "^2.0.35", "vue": "^3.2.47", diff --git a/lifetracker-vue/package.json b/lifetracker-vue/package.json index dbcb18b..55389a2 100644 --- a/lifetracker-vue/package.json +++ b/lifetracker-vue/package.json @@ -14,6 +14,7 @@ "appwrite": "^11.0.0", "axios": "^1.4.0", "handsontable": "^12.3.3", + "moment": "^2.29.4", "node": "^20.0.0", "pinia": "^2.0.35", "vue": "^3.2.47", diff --git a/lifetracker-vue/src/assets/colors.css b/lifetracker-vue/src/assets/colors.css new file mode 100644 index 0000000..0c34788 --- /dev/null +++ b/lifetracker-vue/src/assets/colors.css @@ -0,0 +1,69 @@ +:root{ + --white: white; + --black: #273036; + --red: #c71634; + --cyan: #005744; + --pink: #ff65ae; + --blue: #00a9b3; + --green: #189749; + --yellow: #fff336; + --orange: #ff6d01; + --purple: #5b3ab1; + --darkred: #ff2816; + --lime: #bfff55; +} + +.handsontable * { + border: 0px !important; + text-align: center !important; + vertical-align: middle !important; + font-size: 15px; +} + +.handsontable td, .handsontable th{ + font-family: monospace; + color: var(--white); + background: var(--black); +} + +th{ + color: gray !important; +} +td.color-black{ + background: var(--black); +} +td.color-red{ + background: var(--red); +} +td.color-blue{ + background: var(--blue); +} +td.color-green{ + background: var(--green); +} +td.color-purple{ + background: var(--purple); +} +td.color-lime{ + background: var(--lime); + color: var(--black); +} +td.color-cyan{ + background: var(--cyan); +} +td.color-darkred{ + background: var(--darkred); +} +td.color-pink{ + background: var(--pink); +} +td.color-orange{ + background: var(--orange); +} +td.color-yellow{ + background: var(--yellow); + color: var(--black); +} +h2{ + color:green; +} \ No newline at end of file diff --git a/lifetracker-vue/src/components/AuthNav.vue b/lifetracker-vue/src/components/AuthNav.vue index ca2c321..73185f0 100644 --- a/lifetracker-vue/src/components/AuthNav.vue +++ b/lifetracker-vue/src/components/AuthNav.vue @@ -8,7 +8,9 @@ storeSession.connect();