From 7dc6870c8c152736d94736385a401cc1dfa21b8e Mon Sep 17 00:00:00 2001 From: Dave Gordon Date: Thu, 8 Feb 2024 22:03:33 +0000 Subject: [PATCH 1/2] [backend/frontend] chore: Refactor api --- backend/prisma/schema.prisma | 4 +- backend/prisma/seed.ts | 36 ++++++++-------- backend/src/index.ts | 4 +- backend/tests/service/api.spec.ts | 4 +- frontend/build/asset-manifest.json | 15 +++++++ frontend/build/favicon.ico | Bin 0 -> 3870 bytes frontend/build/index.html | 1 + frontend/build/manifest.json | 25 +++++++++++ frontend/build/robots.txt | 3 ++ frontend/build/static/css/main.d06eb687.css | 2 + .../build/static/css/main.d06eb687.css.map | 1 + .../build/static/js/787.73e13863.chunk.js | 2 + .../build/static/js/787.73e13863.chunk.js.map | 1 + frontend/build/static/js/main.6ddabfa3.js | 3 ++ .../static/js/main.6ddabfa3.js.LICENSE.txt | 39 ++++++++++++++++++ frontend/build/static/js/main.6ddabfa3.js.map | 1 + frontend/src/App.tsx | 2 + frontend/src/components/Note.tsx | 1 + frontend/src/types/note.tsx | 2 + 19 files changed, 122 insertions(+), 24 deletions(-) create mode 100644 frontend/build/asset-manifest.json create mode 100644 frontend/build/favicon.ico create mode 100644 frontend/build/index.html create mode 100644 frontend/build/manifest.json create mode 100644 frontend/build/robots.txt create mode 100644 frontend/build/static/css/main.d06eb687.css create mode 100644 frontend/build/static/css/main.d06eb687.css.map create mode 100644 frontend/build/static/js/787.73e13863.chunk.js create mode 100644 frontend/build/static/js/787.73e13863.chunk.js.map create mode 100644 frontend/build/static/js/main.6ddabfa3.js create mode 100644 frontend/build/static/js/main.6ddabfa3.js.LICENSE.txt create mode 100644 frontend/build/static/js/main.6ddabfa3.js.map diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 04016705..497a9c2a 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -15,6 +15,6 @@ model Note { id Int @id @default(autoincrement()) title String content String - created_at DateTime @default(now()) - updated_at DateTime @default(now()) + createdAt DateTime @default(now()) @map("created_at") + updatedAt DateTime @default(now()) @map("updated_at") } \ No newline at end of file diff --git a/backend/prisma/seed.ts b/backend/prisma/seed.ts index 0f1b310b..4f9da588 100644 --- a/backend/prisma/seed.ts +++ b/backend/prisma/seed.ts @@ -6,56 +6,56 @@ export const seed = [ { "title": "Meeting Notes", "content": "Discussed project timelines and goals.", - "created_at": "2024-02-05T23:33:42.252Z", - "updated_at": "2024-02-05T23:33:42.252Z", + "createdAt": "2024-02-05T23:33:42.252Z", + "updatedAt": "2024-02-05T23:33:42.252Z", }, { "title": "Shopping List", "content": "Milk, eggs, bread, and fruits.", - "created_at": "2024-02-05T23:33:42.253Z", - "updated_at": "2024-02-05T23:33:42.253Z", + "createdAt": "2024-02-05T23:33:42.253Z", + "updatedAt": "2024-02-05T23:33:42.253Z", }, { "title": "Recipe", "content": "Ingredients: Chicken, tomatoes, onions, garlic.", - "created_at": "2024-02-05T23:33:42.254Z", - "updated_at": "2024-02-05T23:33:42.254Z", + "createdAt": "2024-02-05T23:33:42.254Z", + "updatedAt": "2024-02-05T23:33:42.254Z", }, { "title": "Ideas", "content": "Brainstorming ideas for the next feature release. 🚀", - "created_at": "2024-02-05T23:33:42.255Z", - "updated_at": "2024-02-05T23:33:42.255Z", + "createdAt": "2024-02-05T23:33:42.255Z", + "updatedAt": "2024-02-05T23:33:42.255Z", }, { "title": "Personal Goals", "content": "Exercise for 30 minutes daily. Read a book every week.", - "created_at": "2024-02-05T23:33:42.256Z", - "updated_at": "2024-02-05T23:33:42.256Z", + "createdAt": "2024-02-05T23:33:42.256Z", + "updatedAt": "2024-02-05T23:33:42.256Z", }, { "title": "Fête d'anniversaire", "content": "Préparer une surprise pour la fête d'anniversaire.", - "created_at": "2024-02-05T23:33:42.257Z", - "updated_at": "2024-02-05T23:33:42.257Z", + "createdAt": "2024-02-05T23:33:42.257Z", + "updatedAt": "2024-02-05T23:33:42.257Z", }, { "title": "日本旅行", "content": "計画: 東京、京都、大阪を訪れる。", - "created_at": "2024-02-05T23:33:42.258Z", - "updated_at": "2024-02-05T23:33:42.258Z", + "createdAt": "2024-02-05T23:33:42.258Z", + "updatedAt": "2024-02-05T23:33:42.258Z", }, { "title": "Семейный ужин", "content": "Приготовить вкусный ужин для всей семьи.", - "created_at": "2024-02-05T23:33:42.259Z", - "updated_at": "2024-02-05T23:33:42.259Z", + "createdAt": "2024-02-05T23:33:42.259Z", + "updatedAt": "2024-02-05T23:33:42.259Z", }, { "title": "Coding Project", "content": "Implement new features using React and Express.", - "created_at": "2024-02-05T23:33:42.260Z", - "updated_at": "2024-02-05T23:33:42.260Z", + "createdAt": "2024-02-05T23:33:42.260Z", + "updatedAt": "2024-02-05T23:33:42.260Z", } ]; diff --git a/backend/src/index.ts b/backend/src/index.ts index 976d475f..641489a5 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -10,7 +10,7 @@ app.use(cors()) app.get("/api/notes", async (req, res) => { try { - const notes = await prisma.note.findMany({ orderBy: { updated_at: "desc" }}); + const notes = await prisma.note.findMany({ orderBy: { updatedAt: "desc" }}); res.json(notes); } catch (error) { @@ -50,7 +50,7 @@ app.put("/api/notes/:id", async (req, res) => { try { const updatedNote = await prisma.note.update({ where: { id }, - data: { title, content, updated_at: new Date()}, + data: { title, content, updatedAt: new Date()}, }); res.json(updatedNote); } catch (error) { diff --git a/backend/tests/service/api.spec.ts b/backend/tests/service/api.spec.ts index 0d5fe499..754b11f5 100644 --- a/backend/tests/service/api.spec.ts +++ b/backend/tests/service/api.spec.ts @@ -16,10 +16,10 @@ test("Get the list of Notes", async () => { expect(getNoteResponse.body[getNoteResponse.body.length - 1]).toStrictEqual({ content: "Discussed project timelines and goals.", - created_at: "2024-02-05T23:33:42.252Z", + createdAt: "2024-02-05T23:33:42.252Z", id: 1, title: "Meeting Notes", - updated_at: "2024-02-05T23:33:42.252Z", + updatedAt: "2024-02-05T23:33:42.252Z", }); }); diff --git a/frontend/build/asset-manifest.json b/frontend/build/asset-manifest.json new file mode 100644 index 00000000..6518a297 --- /dev/null +++ b/frontend/build/asset-manifest.json @@ -0,0 +1,15 @@ +{ + "files": { + "main.css": "/static/css/main.d06eb687.css", + "main.js": "/static/js/main.6ddabfa3.js", + "static/js/787.73e13863.chunk.js": "/static/js/787.73e13863.chunk.js", + "index.html": "/index.html", + "main.d06eb687.css.map": "/static/css/main.d06eb687.css.map", + "main.6ddabfa3.js.map": "/static/js/main.6ddabfa3.js.map", + "787.73e13863.chunk.js.map": "/static/js/787.73e13863.chunk.js.map" + }, + "entrypoints": [ + "static/css/main.d06eb687.css", + "static/js/main.6ddabfa3.js" + ] +} \ No newline at end of file diff --git a/frontend/build/favicon.ico b/frontend/build/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..a11777cc471a4344702741ab1c8a588998b1311a GIT binary patch literal 3870 zcma);c{J4h9>;%nil|2-o+rCuEF-(I%-F}ijC~o(k~HKAkr0)!FCj~d>`RtpD?8b; zXOC1OD!V*IsqUwzbMF1)-gEDD=A573Z-&G7^LoAC9|WO7Xc0Cx1g^Zu0u_SjAPB3vGa^W|sj)80f#V0@M_CAZTIO(t--xg= z!sii`1giyH7EKL_+Wi0ab<)&E_0KD!3Rp2^HNB*K2@PHCs4PWSA32*-^7d{9nH2_E zmC{C*N*)(vEF1_aMamw2A{ZH5aIDqiabnFdJ|y0%aS|64E$`s2ccV~3lR!u<){eS` z#^Mx6o(iP1Ix%4dv`t@!&Za-K@mTm#vadc{0aWDV*_%EiGK7qMC_(`exc>-$Gb9~W!w_^{*pYRm~G zBN{nA;cm^w$VWg1O^^<6vY`1XCD|s_zv*g*5&V#wv&s#h$xlUilPe4U@I&UXZbL z0)%9Uj&@yd03n;!7do+bfixH^FeZ-Ema}s;DQX2gY+7g0s(9;`8GyvPY1*vxiF&|w z>!vA~GA<~JUqH}d;DfBSi^IT*#lrzXl$fNpq0_T1tA+`A$1?(gLb?e#0>UELvljtQ zK+*74m0jn&)5yk8mLBv;=@}c{t0ztT<v;Avck$S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aD+S=I8RTlIfVgqN@SXDr2&-)we--K7w= zJVU8?Z+7k9dy;s;^gDkQa`0nz6N{T?(A&Iz)2!DEecLyRa&FI!id#5Z7B*O2=PsR0 zEvc|8{NS^)!d)MDX(97Xw}m&kEO@5jqRaDZ!+%`wYOI<23q|&js`&o4xvjP7D_xv@ z5hEwpsp{HezI9!~6O{~)lLR@oF7?J7i>1|5a~UuoN=q&6N}EJPV_GD`&M*v8Y`^2j zKII*d_@Fi$+i*YEW+Hbzn{iQk~yP z>7N{S4)r*!NwQ`(qcN#8SRQsNK6>{)X12nbF`*7#ecO7I)Q$uZsV+xS4E7aUn+U(K baj7?x%VD!5Cxk2YbYLNVeiXvvpMCWYo=by@ literal 0 HcmV?d00001 diff --git a/frontend/build/index.html b/frontend/build/index.html new file mode 100644 index 00000000..437dd377 --- /dev/null +++ b/frontend/build/index.html @@ -0,0 +1 @@ +Notes App
\ No newline at end of file diff --git a/frontend/build/manifest.json b/frontend/build/manifest.json new file mode 100644 index 00000000..080d6c77 --- /dev/null +++ b/frontend/build/manifest.json @@ -0,0 +1,25 @@ +{ + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + }, + { + "src": "logo192.png", + "type": "image/png", + "sizes": "192x192" + }, + { + "src": "logo512.png", + "type": "image/png", + "sizes": "512x512" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" +} diff --git a/frontend/build/robots.txt b/frontend/build/robots.txt new file mode 100644 index 00000000..e9e57dc4 --- /dev/null +++ b/frontend/build/robots.txt @@ -0,0 +1,3 @@ +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/frontend/build/static/css/main.d06eb687.css b/frontend/build/static/css/main.d06eb687.css new file mode 100644 index 00000000..7eb1cfd8 --- /dev/null +++ b/frontend/build/static/css/main.d06eb687.css @@ -0,0 +1,2 @@ +body{background-color:#d3d3d3;font-family:Arial,sans-serif;margin:20px}@media (min-width:600px){.app-container{align-items:center;display:flex;flex-direction:column;justify-content:center}}.notes-grid{flex-wrap:wrap;gap:20px;justify-content:center}.note-item,.notes-grid{align-items:center;display:flex}.note-item{background-color:#f9f9f9;border:1px solid #ccc;border-radius:5px;box-shadow:0 0 10px #0000001a;cursor:pointer;flex-direction:column;min-height:100px;padding:10px;width:300px}.notes-header{display:flex;justify-content:flex-end}h2{margin:0}.note-form{gap:20px;min-width:400px;width:75%}.note-form,.notes-list{display:flex;flex-direction:column}.notes-list{align-items:center;margin-top:20px}input,textarea{border:1px solid #000;border-radius:5px;font-size:16px;padding:10px}textarea{height:100px}.note-form button{font-size:16px;padding:10px}.note-form button,.notes-header button{background-color:#409ab8;border:none;border-radius:5px;color:#fff}.notes-header button{font-size:10px;padding:8px}.note-form button:hover{background-color:#6aafc6;cursor:pointer}.edit-buttons{display:flex;gap:5px;justify-content:space-evenly}.edit-buttons button{flex:1 1}.edit-buttons button:last-of-type{background-color:#dc5959;color:#fff}.notes-grid{margin-top:20px}.connection-warning{color:red}.note-content{margin-bottom:50px}.spinner-container{align-items:center;display:flex;justify-content:center;margin-top:20px} +/*# sourceMappingURL=main.d06eb687.css.map*/ \ No newline at end of file diff --git a/frontend/build/static/css/main.d06eb687.css.map b/frontend/build/static/css/main.d06eb687.css.map new file mode 100644 index 00000000..569ea968 --- /dev/null +++ b/frontend/build/static/css/main.d06eb687.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.d06eb687.css","mappings":"AAAA,KAME,wBAA2B,CAL3B,4BAA8B,CAI9B,WAHF,CAOA,yBAEE,eAGE,kBAAmB,CAFnB,YAAa,CAGb,qBAAsB,CAFtB,sBAGF,CACF,CAEA,YAEE,cAAe,CAGf,QAAS,CADT,sBAEF,CAEA,uBALE,kBAAmB,CAFnB,YAmBF,CAZA,WAME,wBAAyB,CAHzB,qBAAsB,CAEtB,iBAAkB,CAElB,6BAA2C,CAC3C,cAAe,CANf,qBAAsB,CAQtB,gBAAiB,CANjB,YAAa,CAKb,WAGF,CAEA,cACE,YAAa,CACb,wBACF,CAEA,GACE,QACF,CAEA,WAGE,QAAS,CAET,eAAgB,CADhB,SAEF,CAEA,uBAPE,YAAa,CACb,qBAWF,CALA,YAGE,kBAAmB,CAFnB,eAIF,CAEA,eAGE,qBAAuB,CADvB,iBAAkB,CAGlB,cAAe,CADf,YAEF,CAEA,SACE,YACF,CAEA,kBAKE,cAAe,CADf,YAGF,CAEA,uCAPE,wBAAmC,CACnC,WAAY,CAFZ,iBAAkB,CAKlB,UAUF,CAPA,qBAKE,cAAe,CADf,WAGF,CAEA,wBACE,wBAAoC,CACpC,cACF,CAEA,cACE,YAAa,CAEb,OAAQ,CADR,4BAEF,CAEA,qBACE,QACF,CAEA,kCACE,wBAAkC,CAClC,UACF,CAEA,YACE,eACF,CAEA,oBACE,SACF,CAEA,cACE,kBACF,CAEA,mBAGE,kBAAmB,CAFnB,YAAa,CACb,sBAAuB,CAEvB,eACF","sources":["App.css"],"sourcesContent":["body {\n font-family: Arial, sans-serif;\n}\n\nbody {\n margin: 20px;\n background-color: lightgrey;\n}\n\n@media (min-width: 600px) {\n\n .app-container {\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n }\n}\n\n.notes-grid {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 20px;\n}\n\n.note-item {\n display: flex;\n flex-direction: column;\n border: 1px solid #ccc;\n padding: 10px;\n border-radius: 5px;\n background-color: #f9f9f9;\n box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);\n cursor: pointer;\n width: 300px;\n min-height: 100px;\n align-items: center;\n}\n\n.notes-header {\n display: flex;\n justify-content: flex-end;\n}\n\nh2 {\n margin: 0;\n}\n\n.note-form {\n display: flex;\n flex-direction: column;\n gap: 20px;\n width: 75%;\n min-width: 400px;\n}\n\n.notes-list {\n margin-top: 20px;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n\ntextarea,\ninput {\n border-radius: 5px;\n border: 1px solid black;\n padding: 10px;\n font-size: 16px;\n}\n\ntextarea {\n height: 100px;\n}\n\n.note-form button {\n border-radius: 5px;\n background-color: rgb(64, 154, 184);\n border: none;\n padding: 10px;\n font-size: 16px;\n color: white;\n}\n\n.notes-header button{\n border-radius: 5px;\n background-color: rgb(64, 154, 184);\n border: none;\n padding: 8px;\n font-size: 10px;\n color: white;\n}\n\n.note-form button:hover {\n background-color: rgb(106, 175, 198);\n cursor: pointer;\n}\n\n.edit-buttons {\n display: flex;\n justify-content: space-evenly;\n gap: 5px;\n}\n\n.edit-buttons button {\n flex: 1;\n}\n\n.edit-buttons button:last-of-type {\n background-color: rgb(220, 89, 89);\n color: white;\n}\n\n.notes-grid {\n margin-top: 20px;\n}\n\n.connection-warning {\n color: red;\n}\n\n.note-content{\n margin-bottom: 50px;\n}\n\n.spinner-container {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-top: 20px;\n}"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/frontend/build/static/js/787.73e13863.chunk.js b/frontend/build/static/js/787.73e13863.chunk.js new file mode 100644 index 00000000..020d70ef --- /dev/null +++ b/frontend/build/static/js/787.73e13863.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunknotes_app_fe=self.webpackChunknotes_app_fe||[]).push([[787],{787:(e,t,n)=>{n.r(t),n.d(t,{getCLS:()=>y,getFCP:()=>g,getFID:()=>C,getLCP:()=>P,getTTFB:()=>D});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,p=function(){return"hidden"===document.visibilityState?0:1/0},d=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=p(),d(),s((function(){setTimeout((function(){v=p(),d()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},p=c("layout-shift",v);p&&(n=m(i,r,t),f((function(){p.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]); +//# sourceMappingURL=787.73e13863.chunk.js.map \ No newline at end of file diff --git a/frontend/build/static/js/787.73e13863.chunk.js.map b/frontend/build/static/js/787.73e13863.chunk.js.map new file mode 100644 index 00000000..42d30148 --- /dev/null +++ b/frontend/build/static/js/787.73e13863.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/787.73e13863.chunk.js","mappings":"4LAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAAIe,qBAAqB,SAASjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAE,IAAI,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAC,CAAC,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,EAAEqB,MAAM,WAAWG,SAASC,kBAAkB5B,EAAEG,GAAGF,IAAI4B,oBAAoB,mBAAmB3B,GAAE,GAAI2B,oBAAoB,WAAW3B,GAAE,IAAK,EAAE4B,iBAAiB,mBAAmB5B,GAAE,GAAI4B,iBAAiB,WAAW5B,GAAE,EAAG,EAAE6B,EAAE,SAAS/B,GAAG8B,iBAAiB,YAAY,SAAS7B,GAAGA,EAAE+B,WAAWhC,EAAEC,EAAE,IAAG,EAAG,EAAEgC,EAAE,SAASjC,EAAEC,EAAEC,GAAG,IAAIC,EAAE,OAAO,SAASC,GAAGH,EAAEK,OAAO,I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AjL,GAAqL,GAAGC,EAAEI,MAAMJ,EAAEK,MAAMN,EAAE4E,cAAc3E,EAAEI,MAAM,GAAGJ,EAAEI,MAAMwC,YAAYlC,MAAM,OAAOV,EAAEM,QAAQ,CAACP,GAAGD,EAAEE,EAAE,CAAC,MAAMF,GAAG,CAAC,EAAE,aAAa2B,SAASmD,WAAWvC,WAAWtC,EAAE,GAAG6B,iBAAiB,QAAQ,WAAW,OAAOS,WAAWtC,EAAE,EAAE,GAAG,C","sources":["../node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,t,n,i,r=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v2-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},a=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},u=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},c=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},f=-1,s=function(){return\"hidden\"===document.visibilityState?0:1/0},m=function(){o((function(e){var t=e.timeStamp;f=t}),!0)},v=function(){return f<0&&(f=s(),m(),u((function(){setTimeout((function(){f=s(),m()}),0)}))),{get firstHiddenTime(){return f}}},d=function(e,t){var n,i=v(),o=r(\"FCP\"),f=function(e){\"first-contentful-paint\"===e.name&&(m&&m.disconnect(),e.startTime-1&&e(t)},f=r(\"CLS\",0),s=0,m=[],v=function(e){if(!e.hadRecentInput){var t=m[0],i=m[m.length-1];s&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,m.push(e)):(s=e.value,m=[e]),s>f.value&&(f.value=s,f.entries=m,n())}},h=a(\"layout-shift\",v);h&&(n=c(i,f,t),o((function(){h.takeRecords().map(v),n(!0)})),u((function(){s=0,l=-1,f=r(\"CLS\",0),n=c(i,f,t)})))},T={passive:!0,capture:!0},y=new Date,g=function(i,r){e||(e=r,t=i,n=new Date,w(removeEventListener),E())},E=function(){if(t>=0&&t1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){g(e,t),r()},i=function(){r()},r=function(){removeEventListener(\"pointerup\",n,T),removeEventListener(\"pointercancel\",i,T)};addEventListener(\"pointerup\",n,T),addEventListener(\"pointercancel\",i,T)}(t,e):g(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,S,T)}))},L=function(n,f){var s,m=v(),d=r(\"FID\"),p=function(e){e.startTimeperformance.now())return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"load\",(function(){return setTimeout(t,0)}))};export{h as getCLS,d as getFCP,L as getFID,F as getLCP,P as getTTFB};\n"],"names":["e","t","n","i","r","name","value","delta","entries","id","concat","Date","now","Math","floor","random","a","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","u","persisted","c","f","s","m","timeStamp","v","setTimeout","firstHiddenTime","d","disconnect","startTime","push","window","performance","getEntriesByName","requestAnimationFrame","p","l","h","hadRecentInput","length","takeRecords","T","passive","capture","y","g","w","E","entryType","target","cancelable","processingStart","forEach","S","L","b","F","once","P","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""} \ No newline at end of file diff --git a/frontend/build/static/js/main.6ddabfa3.js b/frontend/build/static/js/main.6ddabfa3.js new file mode 100644 index 00000000..68276cda --- /dev/null +++ b/frontend/build/static/js/main.6ddabfa3.js @@ -0,0 +1,3 @@ +/*! For license information please see main.6ddabfa3.js.LICENSE.txt */ +(()=>{var e={463:(e,t,n)=>{"use strict";var r=n(791),a=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n