This file contains hidden or 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
<!doctype html> | |
<!-- ✨ Built with Framer • https://www.framer.com/ --> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Start of headStart --> | |
This file contains hidden or 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
async function addTimeToAccount(sessionKey, minutes, extension) { | |
const payload = { | |
sessionKey, | |
timeSpent: Number(minutes.toFixed(2)), | |
extension, | |
timestamp: new Date().toISOString(), | |
}; | |
try { | |
console.log('Sending payload:', payload); |
This file contains hidden or 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
const sendTimeSpent = async () => { | |
const url = 'https://dedlocked.vercel.app/api/activities/sync'; | |
const apiKey = '060878b2-afae-400b-a424-a4524752e775'; | |
const payload = [ | |
{ | |
timestamp: new Date().toISOString(), | |
project: 'invoicely', | |
file: 'src/index.js', | |
languageId: 'typescript', | |
linesAdded: 0, |