diff --git a/.env b/.env index 25241b7..136b2c8 100644 --- a/.env +++ b/.env @@ -1 +1,2 @@ PORT=8080 +REACT_APP_SHEET_ID=1TT4oJ7B_Lq4quyizxK2DxGR_qhYtaG4Mn40j2MNpB6EN diff --git a/src/App.css b/src/App.css index 7ab7d06..92d56d0 100644 --- a/src/App.css +++ b/src/App.css @@ -21,7 +21,7 @@ button.mdc-toolbar__icon { .mdc-card__title { margin: 0.5em 0; font-size: 200%; - color: #20b1d6; + color: #55b223; } .mdc-card__supporting-text { color: #7a7a7a; diff --git a/src/App.js b/src/App.js index f9bf512..e8b6142 100644 --- a/src/App.js +++ b/src/App.js @@ -212,8 +212,8 @@ class App extends Component { .batchGet({ spreadsheetId: this.spreadsheetId, ranges: [ - "Data!A2:A50", - "Data!E2:E50", + "Data!A2:A52", + "Data!E2:E52", "Expenses!A2:F", "Current!H1", "Previous!H1" diff --git a/src/components/expense-list/ExpenseList.css b/src/components/expense-list/ExpenseList.css index f1a559b..a3303ea 100644 --- a/src/components/expense-list/ExpenseList.css +++ b/src/components/expense-list/ExpenseList.css @@ -16,16 +16,16 @@ background: rgb(85, 178, 35); } .Auto, .Transport, .Tanken { - background: rgb(242, 60, 0); + background: rgb(242, 0, 202); } .Hobbies { - background: rgb(39, 70, 211); + background: rgb(0, 0, 255); } -.Kleidung, .Shopping, Drogerie { +.Kleidung, .Shopping, .Drogerie { background: rgb(0, 183, 224); } .Übernachtung, .Restaurant { - background: rgb(214, 214, 0); + background: rgb(255, 255, 0); } .Gesundheit { background: rgb(242, 60, 0); diff --git a/src/service-worker.js b/src/service-worker.js new file mode 100644 index 0000000..479b631 --- /dev/null +++ b/src/service-worker.js @@ -0,0 +1,39 @@ +/** + * Welcome to your Workbox-powered service worker! + * + * You'll need to register this file in your web app and you should + * disable HTTP caching for this file too. + * See https://goo.gl/nhQhGp + * + * The rest of the code is auto-generated. Please don't update this file + * directly; instead, make changes to your Workbox build configuration + * and re-run your build process. + * See https://goo.gl/2aRDsh + */ + +importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); + +importScripts( + "/precache-manifest.f70ee0a9d5aa18a1a936e57fee2de7cf.js" +); + +self.addEventListener('message', (event) => { + if (event.data && event.data.type === 'SKIP_WAITING') { + self.skipWaiting(); + } +}); + +workbox.core.clientsClaim(); + +/** + * The workboxSW.precacheAndRoute() method efficiently caches and responds to + * requests for URLs in the manifest. + * See https://goo.gl/S9QRab + */ +self.__precacheManifest = [].concat(self.__precacheManifest || []); +workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); + +workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), { + + blacklist: [/^\/_/,/\/[^\/?]+\.[^\/]+$/], +});