├── .firebaserc ├── .gitignore ├── README.md ├── firebase.json ├── firestore.indexes.json ├── firestore.rules ├── functions ├── .gitignore ├── .nuxt │ └── dist │ │ ├── client │ │ ├── 403b17cf3e1e718379fe.css │ │ ├── 673f2640f80a6401008e.css │ │ ├── 71cd9a6f9b014c500cf5.css │ │ └── LICENSES │ │ ├── server │ │ ├── client.manifest.json │ │ ├── index.spa.html │ │ ├── index.ssr.html │ │ ├── server.js │ │ ├── server.js.map │ │ └── server.manifest.json │ │ └── sitemap-routes.json ├── index.js ├── nuxt.config.js ├── package-lock.json └── package.json ├── public ├── README.md ├── favicon.ico ├── icon.png ├── nuxt │ ├── 403b17cf3e1e718379fe.css │ ├── 673f2640f80a6401008e.css │ ├── 71cd9a6f9b014c500cf5.css │ └── LICENSES ├── social │ └── google │ │ └── btn_google_light_normal.svg └── v.png └── src ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── LICENSE ├── README.md ├── TODO.md ├── assets ├── README.md └── variables.scss ├── components ├── DealCard.vue ├── DisplayDateComponent.vue ├── DisplayNameComponent.vue ├── LoginComponent.vue ├── NavigationBar.vue ├── README.md ├── RegistrationComponent.vue └── SearchComponent.vue ├── jsconfig.json ├── layouts ├── README.md ├── default.vue └── error.vue ├── middleware └── README.md ├── mixins └── votesMixin.vue ├── modules └── itemAdd │ └── store │ ├── __tests__ │ └── newDealStore.spec.ts │ ├── newDealStore.ts │ └── types.d.ts ├── nuxt.config.js ├── package-lock.json ├── package.json ├── pages ├── README.md ├── details │ └── _id.vue ├── ikelti.vue ├── index.vue ├── inspire.vue └── prisijungti.vue ├── plugins ├── README.md ├── composition-api.js ├── filters.js ├── firebase.js └── vuetify.js ├── static ├── README.md ├── favicon.ico ├── icon.png ├── social │ └── google │ │ └── btn_google_light_normal.svg └── v.png ├── store ├── README.md ├── auth.js └── deals.js ├── tsconfig.json ├── vue-shim.d.ts └── vue-types.d.ts /.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "dealas-962d3" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | firebase-debug.log* 8 | 9 | # Firebase cache 10 | .firebase/ 11 | 12 | # Firebase config 13 | 14 | # Uncomment this if you'd like others to create their own Firebase project. 15 | # For a team working on the same Firebase project(s), it is recommended to leave 16 | # it commented so all members can deploy to the same project(s) in .firebaserc. 17 | # .firebaserc 18 | 19 | # Runtime data 20 | pids 21 | *.pid 22 | *.seed 23 | *.pid.lock 24 | 25 | # Directory for instrumented libs generated by jscoverage/JSCover 26 | lib-cov 27 | 28 | # Coverage directory used by tools like istanbul 29 | coverage 30 | 31 | # nyc test coverage 32 | .nyc_output 33 | 34 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 35 | .grunt 36 | 37 | # Bower dependency directory (https://bower.io/) 38 | bower_components 39 | 40 | # node-waf configuration 41 | .lock-wscript 42 | 43 | # Compiled binary addons (http://nodejs.org/api/addons.html) 44 | build/Release 45 | 46 | # Dependency directories 47 | node_modules/ 48 | 49 | # Optional npm cache directory 50 | .npm 51 | 52 | # Optional eslint cache 53 | .eslintcache 54 | 55 | # Optional REPL history 56 | .node_repl_history 57 | 58 | # Output of 'npm pack' 59 | *.tgz 60 | 61 | # Yarn Integrity file 62 | .yarn-integrity 63 | 64 | # dotenv environment variables file 65 | .env 66 | 67 | # ignore .vscode settings 68 | .vscode/ 69 | public/ -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Introduction 2 | 3 | The application is a website where users can register, login and add deals that they found online, vote for deals and comment accordingly. 4 | 5 | ## DEMO 6 | 7 | You can check out deployed and working version (however only in Lithuanian language as internationalization isn't applied) 8 | 9 | [https://dealas-962d3.firebaseapp.com/](https://dealas-962d3.firebaseapp.com/) 10 | 11 | ## Technical introduction 12 | 13 | This is a Nuxt SSR application ran as a Google Cloud function with the help of Firebase. 14 | These files are hosted on Firebase hosting as well. 15 | In addition to that, Firebase storage is being used to upload static files like pictures for deals and Firestore is used as a real time database. 16 | 17 | ## Requirements 18 | 19 | Globally installed firebase 20 | 21 | ```bash 22 | npm install -g firebase-tools 23 | ``` 24 | 25 | There are already scripts in place that help you build and configure the deployment automatically defined as predeployment rules in `firebase.json`. 26 | 27 | You just need to run the deployment command: 28 | 29 | ```bash 30 | firebase deploy 31 | ``` 32 | -------------------------------------------------------------------------------- /firebase.json: -------------------------------------------------------------------------------- 1 | { 2 | "firestore": { 3 | "rules": "firestore.rules", 4 | "indexes": "firestore.indexes.json" 5 | }, 6 | "functions": { 7 | "source": "functions", 8 | "predeploy": [ 9 | "rm -rf functions/.nuxt && npm --prefix src run build && mkdir -p functions/.nuxt/dist && cp -r src/.nuxt/dist/ functions/.nuxt/dist && cp src/nuxt.config.js functions/" 10 | ] 11 | }, 12 | "hosting": { 13 | "predeploy": [ 14 | "rm -rf public/* && mkdir -p public/nuxt && cp -r functions/.nuxt/dist/client/ public/nuxt && cp -a src/static/. public/" 15 | ], 16 | "public": "public", 17 | "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], 18 | "rewrites": [ 19 | { 20 | "source": "**", 21 | "function": "ssrapp" 22 | } 23 | ] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /firestore.indexes.json: -------------------------------------------------------------------------------- 1 | { 2 | "indexes": [], 3 | "fieldOverrides": [] 4 | } 5 | -------------------------------------------------------------------------------- /firestore.rules: -------------------------------------------------------------------------------- 1 | rules_version = '2'; 2 | service cloud.firestore { 3 | match /databases/{database}/documents { 4 | match /{document=**} { 5 | allow read, write; 6 | } 7 | } 8 | } -------------------------------------------------------------------------------- /functions/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .nuxt/ -------------------------------------------------------------------------------- /functions/.nuxt/dist/client/403b17cf3e1e718379fe.css: -------------------------------------------------------------------------------- 1 | [data-v-74b882e8]{font-family:Montserrat,sans-serif}.offer-card[data-v-74b882e8]{min-width:220px}.comment-container[data-v-74b882e8]{background:rgba(56,189,207,.05);border-radius:5px}a.comment-link[data-v-74b882e8]{text-decoration:none;color:grey} -------------------------------------------------------------------------------- /functions/.nuxt/dist/client/673f2640f80a6401008e.css: -------------------------------------------------------------------------------- 1 | body{font-family:Montserrat,sans-serif}.v-tooltip{display:none}.v-tooltip--attached{display:inline}.v-tooltip__content{background:rgba(97,97,97,.9);color:#fff;border-radius:4px;font-size:14px;line-height:22px;display:inline-block;padding:5px 16px;position:absolute;text-transform:none;width:auto;opacity:1;pointer-events:none}.v-tooltip__content--fixed{position:fixed}.v-tooltip__content[class*=-active]{-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.v-tooltip__content[class*=enter-active]{-webkit-transition-duration:.15s;transition-duration:.15s}.v-tooltip__content[class*=leave-active]{-webkit-transition-duration:75ms;transition-duration:75ms} -------------------------------------------------------------------------------- /functions/.nuxt/dist/client/71cd9a6f9b014c500cf5.css: -------------------------------------------------------------------------------- 1 | h1[data-v-de4b70e6]{font-size:20px}.nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;opacity:1;-webkit-transition:width .1s,opacity .4s;transition:width .1s,opacity .4s;background-color:#fff;z-index:999999}.nuxt-progress.nuxt-progress-notransition{-webkit-transition:none;transition:none}.nuxt-progress-failed{background-color:red}body{background-color:#fff}.link-decoration{text-decoration:none;color:#fff;text-underline-position:unset}.top-nav{color:#38bdcf}.triangle-background{position:fixed;top:0}@media (min-width:960px) and (max-width:1264px){.triangle{content:"";position:fixed;width:220%;height:700px;left:-100px;top:-200px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}}@media (min-width:1264px){.triangle{content:"";position:fixed;width:130%;height:700px;left:-100px;top:-200px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}}@media (min-width:200px) and (max-width:960px){.triangle{content:"";position:fixed;width:134%;height:253px;left:-31px;top:-32px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}} -------------------------------------------------------------------------------- /functions/.nuxt/dist/server/client.manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "publicPath": "/_nuxt/", 3 | "all": [ 4 | "../server/index.spa.html", 5 | "../server/index.ssr.html", 6 | "2de259f6b56bf20a9c3f.css", 7 | "2e3921d2b6c1b32a6f54.css", 8 | "403b17cf3e1e718379fe.css", 9 | "52b47a189c98a23aad65.css", 10 | "5bac291c3df5f833db33.css", 11 | "673f2640f80a6401008e.css", 12 | "71cd9a6f9b014c500cf5.css", 13 | "7a532252b864bd9eebd0.js", 14 | "87ece185a1b9e2965c87.js", 15 | "9184cb31faeb267f0c6b.js", 16 | "9716da4306664536d8b0.js", 17 | "9a9c44e7b8f49bcc12a7.js", 18 | "LICENSES", 19 | "a16805b22162ff8dfc88.js", 20 | "a62667722dfcef11cb60.js", 21 | "a8a8266f6ab64b5b0cac.js", 22 | "ae50d85452aa4a4cd171.css", 23 | "b38450635250b6977c76.css", 24 | "b50cfb28b465120d7d31.js", 25 | "ba63b1cb4dfa1b5c6d18.js", 26 | "cfc385b2a7b3d81760a0.js", 27 | "e3ca1292a690c3c2cc3c.js", 28 | "e99e2e3ead8132a79620.js" 29 | ], 30 | "initial": [ 31 | "a62667722dfcef11cb60.js", 32 | "a8a8266f6ab64b5b0cac.js", 33 | "2de259f6b56bf20a9c3f.css", 34 | "e3ca1292a690c3c2cc3c.js", 35 | "71cd9a6f9b014c500cf5.css", 36 | "e99e2e3ead8132a79620.js" 37 | ], 38 | "async": [ 39 | "2e3921d2b6c1b32a6f54.css", 40 | "403b17cf3e1e718379fe.css", 41 | "52b47a189c98a23aad65.css", 42 | "5bac291c3df5f833db33.css", 43 | "673f2640f80a6401008e.css", 44 | "7a532252b864bd9eebd0.js", 45 | "87ece185a1b9e2965c87.js", 46 | "9184cb31faeb267f0c6b.js", 47 | "9716da4306664536d8b0.js", 48 | "9a9c44e7b8f49bcc12a7.js", 49 | "a16805b22162ff8dfc88.js", 50 | "ae50d85452aa4a4cd171.css", 51 | "b38450635250b6977c76.css", 52 | "b50cfb28b465120d7d31.js", 53 | "ba63b1cb4dfa1b5c6d18.js", 54 | "cfc385b2a7b3d81760a0.js" 55 | ], 56 | "modules": { 57 | "15226480": [ 58 | 2, 59 | 23 60 | ], 61 | "15792676": [ 62 | 2, 63 | 23 64 | ], 65 | "17732735": [ 66 | 19, 67 | 12 68 | ], 69 | "19016152": [ 70 | 19, 71 | 12 72 | ], 73 | "21220610": [ 74 | 17 75 | ], 76 | "24624307": [ 77 | 2, 78 | 23 79 | ], 80 | "26550032": [ 81 | 4, 82 | 9 83 | ], 84 | "29151996": [ 85 | 2, 86 | 23 87 | ], 88 | "45203246": [ 89 | 17 90 | ], 91 | "55002698": [ 92 | 17 93 | ], 94 | "70763116": [ 95 | 2, 96 | 23 97 | ], 98 | "72366308": [ 99 | 2, 100 | 23 101 | ], 102 | "76855763": [ 103 | 2, 104 | 23 105 | ], 106 | "79606349": [ 107 | 4, 108 | 9 109 | ], 110 | "85545890": [ 111 | 5, 112 | 10 113 | ], 114 | "95197056": [ 115 | 17 116 | ], 117 | "01863141": [ 118 | 2, 119 | 23 120 | ], 121 | "f0cf1716": [ 122 | 17 123 | ], 124 | "4f5e1515": [ 125 | 2, 126 | 23 127 | ], 128 | "469d495c": [ 129 | 17 130 | ], 131 | "289f3e4e": [ 132 | 2, 133 | 23 134 | ], 135 | "0a4453aa": [ 136 | 8, 137 | 24 138 | ], 139 | "ac51f448": [ 140 | 17 141 | ], 142 | "2282e83e": [ 143 | 17 144 | ], 145 | "587465fa": [ 146 | 2, 147 | 23 148 | ], 149 | "98a71e90": [ 150 | 17 151 | ], 152 | "1584581b": [ 153 | 17 154 | ], 155 | "408d0b46": [ 156 | 17 157 | ], 158 | "284dd482": [ 159 | 2, 160 | 23 161 | ], 162 | "00eb31c4": [ 163 | 17 164 | ], 165 | "5e51a7b6": [ 166 | 17 167 | ], 168 | "1cff5210": [ 169 | 17 170 | ], 171 | "8f912c40": [ 172 | 17 173 | ], 174 | "ebb34564": [ 175 | 17 176 | ], 177 | "b7fb47da": [ 178 | 17 179 | ], 180 | "5d29d799": [ 181 | 17 182 | ], 183 | "626cfc54": [ 184 | 17 185 | ], 186 | "1004de56": [ 187 | 17 188 | ], 189 | "7e33b5bf": [ 190 | 17 191 | ], 192 | "e2f8d3da": [ 193 | 17 194 | ], 195 | "2ffa285c": [ 196 | 17 197 | ], 198 | "54e03edb": [ 199 | 17 200 | ], 201 | "7d023faa": [ 202 | 2, 203 | 23 204 | ], 205 | "ec6f8e5e": [ 206 | 17 207 | ], 208 | "72701f71": [ 209 | 17 210 | ], 211 | "592d106a": [ 212 | 17 213 | ], 214 | "215821d4": [ 215 | 17 216 | ], 217 | "1db0b220": [ 218 | 17 219 | ], 220 | "21fd6a70": [ 221 | 17 222 | ], 223 | "36facf8a": [ 224 | 17 225 | ], 226 | "155897d3": [ 227 | 17 228 | ], 229 | "0f96b8ac": [ 230 | 2, 231 | 23 232 | ], 233 | "01d3e1f8": [ 234 | 2, 235 | 23 236 | ], 237 | "692adadd": [ 238 | 17 239 | ], 240 | "76884f6a": [ 241 | 17 242 | ], 243 | "02ed3c92": [ 244 | 2, 245 | 23 246 | ], 247 | "bc3f4d5e": [ 248 | 17 249 | ], 250 | "4c50012a": [ 251 | 17 252 | ], 253 | "32146e7b": [ 254 | 8, 255 | 24 256 | ], 257 | "6a48aa68": [ 258 | 8, 259 | 24 260 | ], 261 | "4eba9696": [ 262 | 17 263 | ], 264 | "5a16ff52": [ 265 | 17 266 | ], 267 | "d394c31e": [ 268 | 17 269 | ], 270 | "fab9ea70": [ 271 | 17 272 | ], 273 | "c5aea000": [ 274 | 17 275 | ], 276 | "794fc41a": [ 277 | 17 278 | ], 279 | "600c7094": [ 280 | 17 281 | ], 282 | "5b4b61fd": [ 283 | 17 284 | ], 285 | "65cb4f53": [ 286 | 2, 287 | 23 288 | ], 289 | "1667e7e4": [ 290 | 17 291 | ], 292 | "1d7ec8b8": [ 293 | 17 294 | ], 295 | "4ae4c9be": [ 296 | 17 297 | ], 298 | "14417c0a": [ 299 | 17 300 | ], 301 | "2335e964": [ 302 | 17 303 | ], 304 | "76994f37": [ 305 | 2, 306 | 23 307 | ], 308 | "00e3723c": [ 309 | 2, 310 | 23 311 | ], 312 | "352f882e": [ 313 | 8, 314 | 24 315 | ], 316 | "01dd3e8a": [ 317 | 8, 318 | 24 319 | ], 320 | "24a363b0": [ 321 | 8, 322 | 24 323 | ], 324 | "16c1c0a5": [ 325 | 8, 326 | 24 327 | ], 328 | "f5558dc2": [ 329 | 8, 330 | 24 331 | ], 332 | "4cc2515a": [ 333 | 8, 334 | 24 335 | ], 336 | "450d3d7a": [ 337 | 8, 338 | 24 339 | ], 340 | "281a03c2": [ 341 | 8, 342 | 24 343 | ], 344 | "61c3bfeb": [ 345 | 8, 346 | 24 347 | ], 348 | "7f1ff476": [ 349 | 8, 350 | 24 351 | ], 352 | "dc370e56": [ 353 | 8, 354 | 24 355 | ], 356 | "7b35225e": [ 357 | 8, 358 | 24 359 | ], 360 | "29367d5e": [ 361 | 8, 362 | 24 363 | ], 364 | "5a7f81f7": [ 365 | 8, 366 | 24 367 | ], 368 | "cad9efa0": [ 369 | 8, 370 | 24 371 | ], 372 | "7d6199aa": [ 373 | 8, 374 | 24 375 | ], 376 | "2d324de0": [ 377 | 8, 378 | 24 379 | ], 380 | "511bd9c4": [ 381 | 8, 382 | 24 383 | ], 384 | "09082c84": [ 385 | 8, 386 | 24 387 | ], 388 | "40b03abc": [ 389 | 8, 390 | 24 391 | ], 392 | "4162507c": [ 393 | 8, 394 | 24 395 | ], 396 | "6821a320": [ 397 | 8, 398 | 24 399 | ], 400 | "ddc4dac8": [ 401 | 8, 402 | 24 403 | ], 404 | "7f63dc12": [ 405 | 8, 406 | 24 407 | ], 408 | "0e8b39b7": [ 409 | 8, 410 | 24 411 | ], 412 | "2b924428": [ 413 | 8, 414 | 24 415 | ], 416 | "1c0cb6e9": [ 417 | 8, 418 | 24 419 | ], 420 | "5697107b": [ 421 | 17 422 | ], 423 | "4616c852": [ 424 | 17 425 | ], 426 | "b5904fe6": [ 427 | 17 428 | ], 429 | "00f06d2c": [ 430 | 17 431 | ], 432 | "6f2b3f4b": [ 433 | 17 434 | ], 435 | "4ccd3769": [ 436 | 2, 437 | 23 438 | ], 439 | "04fb6bed": [ 440 | 17 441 | ], 442 | "5510964c": [ 443 | 17 444 | ], 445 | "5064e403": [ 446 | 17 447 | ], 448 | "d5429e70": [ 449 | 17 450 | ], 451 | "1b72d13a": [ 452 | 17 453 | ], 454 | "0c782c85": [ 455 | 17 456 | ], 457 | "31e7c9d3": [ 458 | 17 459 | ], 460 | "23d331ca": [ 461 | 17 462 | ], 463 | "6ede39a1": [ 464 | 17 465 | ], 466 | "72b1654b": [ 467 | 2, 468 | 23 469 | ], 470 | "18ffbe30": [ 471 | 17 472 | ], 473 | "6da1da20": [ 474 | 17 475 | ], 476 | "1460b08a": [ 477 | 17 478 | ], 479 | "1cd15d2c": [ 480 | 17 481 | ], 482 | "dbc84720": [ 483 | 17 484 | ], 485 | "08c583f0": [ 486 | 17 487 | ], 488 | "0e96d9fc": [ 489 | 2, 490 | 23 491 | ], 492 | "698c0583": [ 493 | 2, 494 | 23 495 | ], 496 | "6844f9a0": [ 497 | 2, 498 | 23 499 | ], 500 | "0e44e63a": [ 501 | 2, 502 | 23 503 | ], 504 | "462a1dcb": [ 505 | 17 506 | ], 507 | "b5e3355a": [ 508 | 2, 509 | 23 510 | ], 511 | "b19bc798": [ 512 | 2, 513 | 23 514 | ], 515 | "1b5fb933": [ 516 | 17 517 | ], 518 | "5f15b1ee": [ 519 | 2, 520 | 23 521 | ], 522 | "3e11a6a4": [ 523 | 17 524 | ], 525 | "82e8746a": [ 526 | 17 527 | ], 528 | "7fffdeca": [ 529 | 17 530 | ], 531 | "6ed9adeb": [ 532 | 17 533 | ], 534 | "2d348426": [ 535 | 17 536 | ], 537 | "3ba13e80": [ 538 | 17 539 | ], 540 | "3d9cb2d2": [ 541 | 17 542 | ], 543 | "0494c490": [ 544 | 2, 545 | 23 546 | ], 547 | "a39efca2": [ 548 | 2, 549 | 23 550 | ], 551 | "20ad6961": [ 552 | 2, 553 | 23 554 | ], 555 | "01b0edc2": [ 556 | 2, 557 | 23 558 | ], 559 | "3f3aa4f5": [ 560 | 2, 561 | 23 562 | ], 563 | "a4efcdd8": [ 564 | 2, 565 | 23 566 | ], 567 | "31fab87e": [ 568 | 2, 569 | 23 570 | ], 571 | "0c389957": [ 572 | 2, 573 | 23 574 | ], 575 | "9eb52092": [ 576 | 2, 577 | 23 578 | ], 579 | "70ed53cc": [ 580 | 2, 581 | 23 582 | ], 583 | "ff377f42": [ 584 | 17 585 | ], 586 | "1881b90b": [ 587 | 17 588 | ], 589 | "677ecbc3": [ 590 | 2, 591 | 23 592 | ], 593 | "5de4b5e2": [ 594 | 17 595 | ], 596 | "4121bc5e": [ 597 | 2, 598 | 23 599 | ], 600 | "7e32e7e0": [ 601 | 17 602 | ], 603 | "48387b66": [ 604 | 17 605 | ], 606 | "596509d4": [ 607 | 17 608 | ], 609 | "2750b115": [ 610 | 17 611 | ], 612 | "140315f2": [ 613 | 17 614 | ], 615 | "6ee07f7c": [ 616 | 17 617 | ], 618 | "49c16420": [ 619 | 17 620 | ], 621 | "5b98767f": [ 622 | 17 623 | ], 624 | "24d28808": [ 625 | 17 626 | ], 627 | "55a8036e": [ 628 | 17 629 | ], 630 | "57c4514c": [ 631 | 17 632 | ], 633 | "4b203864": [ 634 | 17 635 | ], 636 | "9a154820": [ 637 | 17 638 | ], 639 | "e6c71804": [ 640 | 2, 641 | 23 642 | ], 643 | "fcc568e4": [ 644 | 17 645 | ], 646 | "595c3f31": [ 647 | 2, 648 | 23 649 | ], 650 | "6b4f3387": [ 651 | 2, 652 | 23 653 | ], 654 | "45a2fe40": [ 655 | 8, 656 | 24 657 | ], 658 | "5569482a": [ 659 | 8, 660 | 24 661 | ], 662 | "6070e4dd": [ 663 | 8, 664 | 24 665 | ], 666 | "018b59f4": [ 667 | 2, 668 | 23 669 | ], 670 | "7d65e60e": [ 671 | 2, 672 | 23 673 | ], 674 | "7a5f409d": [ 675 | 2, 676 | 23 677 | ], 678 | "94ed7c40": [ 679 | 2, 680 | 23 681 | ], 682 | "086a1eb7": [ 683 | 2, 684 | 23 685 | ], 686 | "13bfb2ce": [ 687 | 2, 688 | 23 689 | ], 690 | "57617ac1": [ 691 | 2, 692 | 23 693 | ], 694 | "5286b1ed": [ 695 | 8, 696 | 24 697 | ], 698 | "3ed4cfd9": [ 699 | 17 700 | ], 701 | "00403cc5": [ 702 | 17 703 | ], 704 | "46c313dc": [ 705 | 17 706 | ], 707 | "16fcf9ed": [ 708 | 17 709 | ], 710 | "0c50cf8c": [ 711 | 17 712 | ], 713 | "75a50f02": [ 714 | 17 715 | ], 716 | "fe7ae488": [ 717 | 17 718 | ], 719 | "16b8d1b8": [ 720 | 17 721 | ], 722 | "26cf69e0": [ 723 | 17 724 | ], 725 | "228a0986": [ 726 | 17 727 | ], 728 | "6c3cd5c9": [ 729 | 17 730 | ], 731 | "5b5ed901": [ 732 | 17 733 | ], 734 | "1f9be90d": [ 735 | 17 736 | ], 737 | "91a5fdc4": [ 738 | 17 739 | ], 740 | "7abfbc66": [ 741 | 17 742 | ], 743 | "f8aa27c8": [ 744 | 17 745 | ], 746 | "115bd538": [ 747 | 17 748 | ], 749 | "79640c57": [ 750 | 17 751 | ], 752 | "6ff4fcf2": [ 753 | 17 754 | ], 755 | "4b08bdf7": [ 756 | 2, 757 | 23 758 | ], 759 | "099bfda6": [ 760 | 2, 761 | 23 762 | ], 763 | "0c60ddc4": [ 764 | 2, 765 | 23 766 | ], 767 | "0c028da1": [ 768 | 8, 769 | 24 770 | ], 771 | "03c9c9e5": [ 772 | 2, 773 | 23 774 | ], 775 | "1d3ff3dc": [ 776 | 17 777 | ], 778 | "38efafc9": [ 779 | 17 780 | ], 781 | "6b50ac57": [ 782 | 2, 783 | 23 784 | ], 785 | "4cef07b5": [ 786 | 2, 787 | 23 788 | ], 789 | "1836abb0": [ 790 | 2, 791 | 23 792 | ], 793 | "3dd60ee2": [ 794 | 2, 795 | 23 796 | ], 797 | "a9667d96": [ 798 | 2, 799 | 23 800 | ], 801 | "bee0e368": [ 802 | 17 803 | ], 804 | "a046a0fc": [ 805 | 17 806 | ], 807 | "3d723200": [ 808 | 17 809 | ], 810 | "b30379d2": [ 811 | 2, 812 | 23 813 | ], 814 | "6f5c6ca1": [ 815 | 2, 816 | 23 817 | ], 818 | "5ecce911": [ 819 | 2, 820 | 23 821 | ], 822 | "dd0ea3f6": [ 823 | 2, 824 | 23 825 | ], 826 | "25751ec6": [ 827 | 2, 828 | 23 829 | ], 830 | "2b3c00af": [ 831 | 2, 832 | 23 833 | ], 834 | "358e7a86": [ 835 | 17 836 | ], 837 | "3294d682": [ 838 | 17 839 | ], 840 | "1cea3771": [ 841 | 17 842 | ], 843 | "33885d64": [ 844 | 17 845 | ], 846 | "9de8b97e": [ 847 | 17 848 | ], 849 | "7efb2790": [ 850 | 17 851 | ], 852 | "6e2f3782": [ 853 | 17 854 | ], 855 | "0911a423": [ 856 | 17 857 | ], 858 | "4b483054": [ 859 | 17 860 | ], 861 | "769a42f6": [ 862 | 17 863 | ], 864 | "464d88fc": [ 865 | 17 866 | ], 867 | "40ee9d34": [ 868 | 17 869 | ], 870 | "c36beabc": [ 871 | 17 872 | ], 873 | "491f605b": [ 874 | 17 875 | ], 876 | "7368b6e2": [ 877 | 17 878 | ], 879 | "7b546dca": [ 880 | 17 881 | ], 882 | "6381e19e": [ 883 | 17 884 | ], 885 | "ee23013a": [ 886 | 2, 887 | 23 888 | ], 889 | "1d99c2d0": [ 890 | 17 891 | ], 892 | "5befc1d6": [ 893 | 2, 894 | 23 895 | ], 896 | "78929e3c": [ 897 | 2, 898 | 23 899 | ], 900 | "3203d566": [ 901 | 17 902 | ], 903 | "ec60aa86": [ 904 | 17 905 | ], 906 | "64e52e7f": [ 907 | 2, 908 | 23 909 | ], 910 | "c7779902": [ 911 | 2, 912 | 23 913 | ], 914 | "1bf35436": [ 915 | 2, 916 | 23 917 | ], 918 | "dd785340": [ 919 | 17 920 | ], 921 | "65c1aaaa": [ 922 | 17 923 | ], 924 | "1cf7ce4e": [ 925 | 17 926 | ], 927 | "d4442a68": [ 928 | 17 929 | ], 930 | "1c452768": [ 931 | 17 932 | ], 933 | "8b8b1c3c": [ 934 | 17 935 | ], 936 | "2dc05821": [ 937 | 17 938 | ], 939 | "37fa4748": [ 940 | 17 941 | ], 942 | "398d3b92": [ 943 | 17 944 | ], 945 | "c8843f6e": [ 946 | 17 947 | ], 948 | "7fada0e8": [ 949 | 17 950 | ], 951 | "3baf3544": [ 952 | 2, 953 | 23 954 | ], 955 | "233259c6": [ 956 | 2, 957 | 23 958 | ], 959 | "fbeaaeaa": [ 960 | 2, 961 | 23 962 | ], 963 | "0d3f9e17": [ 964 | 2, 965 | 23 966 | ], 967 | "5e1393a2": [ 968 | 2, 969 | 23 970 | ], 971 | "f7ec24ce": [ 972 | 17 973 | ], 974 | "0ba54130": [ 975 | 2, 976 | 23 977 | ], 978 | "0425544c": [ 979 | 2, 980 | 23 981 | ], 982 | "cc1d7c9a": [ 983 | 2, 984 | 23 985 | ], 986 | "7906dfa6": [ 987 | 2, 988 | 23 989 | ], 990 | "3a671950": [ 991 | 2, 992 | 23 993 | ], 994 | "4c2dd220": [ 995 | 2, 996 | 23 997 | ], 998 | "46ad19f6": [ 999 | 17 1000 | ], 1001 | "4cf341c4": [ 1002 | 17 1003 | ], 1004 | "6d528251": [ 1005 | 17 1006 | ], 1007 | "261b1b27": [ 1008 | 17 1009 | ], 1010 | "5fe6789a": [ 1011 | 17 1012 | ], 1013 | "4641f022": [ 1014 | 17 1015 | ], 1016 | "9efaa00a": [ 1017 | 17 1018 | ], 1019 | "2906afa3": [ 1020 | 8, 1021 | 24 1022 | ], 1023 | "f3590a70": [ 1024 | 8, 1025 | 24 1026 | ], 1027 | "6cc3b2aa": [ 1028 | 17 1029 | ], 1030 | "7032a1e4": [ 1031 | 17 1032 | ], 1033 | "a8222a40": [ 1034 | 17 1035 | ], 1036 | "4eb6f915": [ 1037 | 17 1038 | ], 1039 | "81f81566": [ 1040 | 17 1041 | ], 1042 | "0a6bf828": [ 1043 | 17 1044 | ], 1045 | "39ea427a": [ 1046 | 17 1047 | ], 1048 | "501914e1": [ 1049 | 17 1050 | ], 1051 | "0e1a1d28": [ 1052 | 17 1053 | ], 1054 | "92a57658": [ 1055 | 17 1056 | ], 1057 | "5e211940": [ 1058 | 17 1059 | ], 1060 | "39afeb6d": [ 1061 | 17 1062 | ], 1063 | "5c0b861e": [ 1064 | 17 1065 | ], 1066 | "29ace9ee": [ 1067 | 17 1068 | ], 1069 | "2c011678": [ 1070 | 17 1071 | ], 1072 | "72f54dcf": [ 1073 | 17 1074 | ], 1075 | "2ef9c621": [ 1076 | 17 1077 | ], 1078 | "25ed96e9": [ 1079 | 17 1080 | ], 1081 | "72e35fda": [ 1082 | 8, 1083 | 24 1084 | ], 1085 | "e7d6318c": [ 1086 | 2, 1087 | 23 1088 | ], 1089 | "37b85636": [ 1090 | 8, 1091 | 24 1092 | ], 1093 | "57b46b13": [ 1094 | 2, 1095 | 23 1096 | ], 1097 | "82163d36": [ 1098 | 2, 1099 | 23 1100 | ], 1101 | "3a94e6a8": [ 1102 | 2, 1103 | 23 1104 | ], 1105 | "8cd2b2da": [ 1106 | 2, 1107 | 23 1108 | ], 1109 | "07dcf849": [ 1110 | 2, 1111 | 23 1112 | ], 1113 | "83a62bb0": [ 1114 | 2, 1115 | 23 1116 | ], 1117 | "9a85ff6a": [ 1118 | 2, 1119 | 23 1120 | ], 1121 | "6d9ee2be": [ 1122 | 2, 1123 | 23 1124 | ], 1125 | "f4f18952": [ 1126 | 8, 1127 | 24 1128 | ], 1129 | "0e731092": [ 1130 | 17 1131 | ], 1132 | "36c40b3d": [ 1133 | 17 1134 | ], 1135 | "2551befa": [ 1136 | 2, 1137 | 23 1138 | ], 1139 | "471d290c": [ 1140 | 2, 1141 | 23 1142 | ], 1143 | "3e08f9fa": [ 1144 | 2, 1145 | 23 1146 | ], 1147 | "6b13c1f8": [ 1148 | 2, 1149 | 23 1150 | ], 1151 | "434edc98": [ 1152 | 17 1153 | ], 1154 | "2d26c680": [ 1155 | 17 1156 | ], 1157 | "b0b4f34c": [ 1158 | 2, 1159 | 23 1160 | ], 1161 | "5fa69c54": [ 1162 | 2, 1163 | 23 1164 | ], 1165 | "08b589ba": [ 1166 | 2, 1167 | 23 1168 | ], 1169 | "5411cd8c": [ 1170 | 2, 1171 | 23 1172 | ], 1173 | "539ad770": [ 1174 | 2, 1175 | 23 1176 | ], 1177 | "b94073c6": [ 1178 | 2, 1179 | 23 1180 | ], 1181 | "4b53726e": [ 1182 | 2, 1183 | 23 1184 | ], 1185 | "9448270c": [ 1186 | 2, 1187 | 23 1188 | ], 1189 | "0dac7c3c": [ 1190 | 2, 1191 | 23 1192 | ], 1193 | "7e63ef9a": [ 1194 | 2, 1195 | 23 1196 | ], 1197 | "2c04e762": [ 1198 | 2, 1199 | 23 1200 | ], 1201 | "5f6a635a": [ 1202 | 2, 1203 | 23 1204 | ], 1205 | "fce6c10a": [ 1206 | 8, 1207 | 24 1208 | ], 1209 | "1d8b9212": [ 1210 | 2, 1211 | 23 1212 | ], 1213 | "7e3db662": [ 1214 | 2, 1215 | 23 1216 | ], 1217 | "7931e864": [ 1218 | 8, 1219 | 24 1220 | ], 1221 | "6500314c": [ 1222 | 17 1223 | ], 1224 | "77477c3c": [ 1225 | 2, 1226 | 23 1227 | ], 1228 | "6cc9980c": [ 1229 | 17 1230 | ], 1231 | "1e0696d2": [ 1232 | 17 1233 | ], 1234 | "940cb250": [ 1235 | 17 1236 | ], 1237 | "a539cc42": [ 1238 | 17 1239 | ], 1240 | "57a9bcf6": [ 1241 | 17 1242 | ], 1243 | "faa150b4": [ 1244 | 17 1245 | ], 1246 | "1ae53f21": [ 1247 | 17 1248 | ], 1249 | "61445f1c": [ 1250 | 17 1251 | ], 1252 | "41013d9c": [ 1253 | 17 1254 | ], 1255 | "5aab15b5": [ 1256 | 17 1257 | ], 1258 | "667ea590": [ 1259 | 17 1260 | ], 1261 | "2cb40185": [ 1262 | 17 1263 | ], 1264 | "9c25d5e6": [ 1265 | 17 1266 | ], 1267 | "fefac13a": [ 1268 | 17 1269 | ], 1270 | "79d89d64": [ 1271 | 17 1272 | ], 1273 | "284a602d": [ 1274 | 17 1275 | ], 1276 | "4717c5c0": [ 1277 | 17 1278 | ], 1279 | "197f2720": [ 1280 | 17 1281 | ], 1282 | "60d7db11": [ 1283 | 17 1284 | ], 1285 | "62e1dbfe": [ 1286 | 17 1287 | ], 1288 | "326a5857": [ 1289 | 17 1290 | ], 1291 | "79dce1e2": [ 1292 | 17 1293 | ], 1294 | "4e1c0ff6": [ 1295 | 17 1296 | ], 1297 | "70538df4": [ 1298 | 17 1299 | ], 1300 | "cc431b3a": [ 1301 | 17 1302 | ], 1303 | "4f90ccd4": [ 1304 | 17 1305 | ], 1306 | "ffac95ee": [ 1307 | 17 1308 | ], 1309 | "1ddac556": [ 1310 | 17 1311 | ], 1312 | "4a31f0c2": [ 1313 | 5, 1314 | 10 1315 | ], 1316 | "67105bf7": [ 1317 | 2, 1318 | 23 1319 | ], 1320 | "acf4de66": [ 1321 | 2, 1322 | 23 1323 | ], 1324 | "9773832c": [ 1325 | 2, 1326 | 23 1327 | ], 1328 | "fd7f6812": [ 1329 | 2, 1330 | 23 1331 | ], 1332 | "3e82c0c2": [ 1333 | 2, 1334 | 23 1335 | ], 1336 | "6cdf4637": [ 1337 | 2, 1338 | 23 1339 | ], 1340 | "101fa526": [ 1341 | 2, 1342 | 23 1343 | ], 1344 | "ff713072": [ 1345 | 2, 1346 | 23 1347 | ], 1348 | "9959702a": [ 1349 | 2, 1350 | 23 1351 | ], 1352 | "4c41393c": [ 1353 | 2, 1354 | 23 1355 | ], 1356 | "500deaca": [ 1357 | 2, 1358 | 23 1359 | ], 1360 | "423972be": [ 1361 | 2, 1362 | 23 1363 | ], 1364 | "6d3e469f": [ 1365 | 2, 1366 | 23 1367 | ], 1368 | "03be8e5c": [ 1369 | 2, 1370 | 23 1371 | ], 1372 | "fdb29750": [ 1373 | 2, 1374 | 23 1375 | ], 1376 | "8f9118b4": [ 1377 | 2, 1378 | 23 1379 | ], 1380 | "e6905992": [ 1381 | 2, 1382 | 23 1383 | ], 1384 | "197f41a0": [ 1385 | 2, 1386 | 23 1387 | ], 1388 | "202f14dc": [ 1389 | 2, 1390 | 23 1391 | ], 1392 | "2237d986": [ 1393 | 2, 1394 | 23 1395 | ], 1396 | "22fcd093": [ 1397 | 2, 1398 | 23 1399 | ], 1400 | "47abb4c5": [ 1401 | 2, 1402 | 23 1403 | ], 1404 | "3217c12e": [ 1405 | 2, 1406 | 23 1407 | ], 1408 | "10ac8488": [ 1409 | 2, 1410 | 23 1411 | ], 1412 | "32dfc476": [ 1413 | 2, 1414 | 23 1415 | ], 1416 | "c63e2f64": [ 1417 | 2, 1418 | 23 1419 | ], 1420 | "4382dfc0": [ 1421 | 2, 1422 | 23 1423 | ], 1424 | "2b55058c": [ 1425 | 2, 1426 | 23 1427 | ], 1428 | "e72a3e3a": [ 1429 | 2, 1430 | 23 1431 | ], 1432 | "3aaf9c76": [ 1433 | 2, 1434 | 23 1435 | ], 1436 | "08e994f4": [ 1437 | 2, 1438 | 23 1439 | ], 1440 | "1236507a": [ 1441 | 2, 1442 | 23 1443 | ], 1444 | "348c577d": [ 1445 | 6, 1446 | 20 1447 | ], 1448 | "670c0c0e": [ 1449 | 5, 1450 | 10 1451 | ], 1452 | "66ab4722": [ 1453 | 18, 1454 | 11 1455 | ], 1456 | "59f7d4a7": [ 1457 | 4, 1458 | 9 1459 | ], 1460 | "decf807e": [ 1461 | 19, 1462 | 12 1463 | ], 1464 | "2e384094": [ 1465 | 19, 1466 | 12 1467 | ], 1468 | "402fa79e": [ 1469 | 6, 1470 | 20 1471 | ], 1472 | "e26e9f7e": [ 1473 | 6, 1474 | 20 1475 | ], 1476 | "67aaf551": [ 1477 | 6, 1478 | 20 1479 | ], 1480 | "3c35e997": [ 1481 | 6, 1482 | 20 1483 | ], 1484 | "78fa2c9e": [ 1485 | 6, 1486 | 20 1487 | ], 1488 | "12739bf7": [ 1489 | 6, 1490 | 20 1491 | ], 1492 | "7dba8f02": [ 1493 | 6, 1494 | 20 1495 | ], 1496 | "d541e6d2": [ 1497 | 6, 1498 | 20 1499 | ], 1500 | "5c6469ee": [ 1501 | 6, 1502 | 20 1503 | ], 1504 | "d08cc16e": [ 1505 | 6, 1506 | 20 1507 | ], 1508 | "269942e8": [ 1509 | 6, 1510 | 20 1511 | ], 1512 | "3689fa62": [ 1513 | 6, 1514 | 20 1515 | ], 1516 | "4ab4983b": [ 1517 | 5, 1518 | 10 1519 | ], 1520 | "6bb54a41": [ 1521 | 6, 1522 | 20 1523 | ], 1524 | "3a667ddb": [ 1525 | 6, 1526 | 20 1527 | ], 1528 | "6c896476": [ 1529 | 6, 1530 | 20 1531 | ], 1532 | "0c8c7447": [ 1533 | 6, 1534 | 20 1535 | ], 1536 | "134434d7": [ 1537 | 6, 1538 | 20 1539 | ], 1540 | "227a0308": [ 1541 | 6, 1542 | 20 1543 | ], 1544 | "ee1a9560": [ 1545 | 5, 1546 | 10 1547 | ], 1548 | "27e957cc": [ 1549 | 5, 1550 | 10 1551 | ], 1552 | "398af827": [ 1553 | 5, 1554 | 10 1555 | ], 1556 | "5d30f2b4": [ 1557 | 5, 1558 | 10 1559 | ], 1560 | "d63519bc": [ 1561 | 5, 1562 | 10 1563 | ], 1564 | "37f0b816": [ 1565 | 5, 1566 | 10 1567 | ], 1568 | "5dcc29d8": [ 1569 | 5, 1570 | 10 1571 | ], 1572 | "3bd9b90e": [ 1573 | 5, 1574 | 10 1575 | ], 1576 | "039f253a": [ 1577 | 5, 1578 | 10 1579 | ], 1580 | "2b9cacda": [ 1581 | 5, 1582 | 10 1583 | ], 1584 | "3c2e6b8c": [ 1585 | 6, 1586 | 20 1587 | ], 1588 | "a55e244c": [ 1589 | 6, 1590 | 20 1591 | ], 1592 | "0c0d2dcc": [ 1593 | 6, 1594 | 20 1595 | ], 1596 | "3f0d1494": [ 1597 | 6, 1598 | 20 1599 | ], 1600 | "5d6831da": [ 1601 | 6, 1602 | 20 1603 | ], 1604 | "2306b414": [ 1605 | 5, 1606 | 10 1607 | ], 1608 | "73170bee": [ 1609 | 5, 1610 | 10 1611 | ], 1612 | "87ae95b4": [ 1613 | 3, 1614 | 13 1615 | ], 1616 | "8ee8b544": [ 1617 | 3, 1618 | 13 1619 | ], 1620 | "3617ae5c": [ 1621 | 3, 1622 | 13 1623 | ], 1624 | "4884191c": [ 1625 | 18, 1626 | 11 1627 | ], 1628 | "3bd0a6a1": [ 1629 | 4, 1630 | 9 1631 | ], 1632 | "2199db4b": [ 1633 | 19, 1634 | 12 1635 | ], 1636 | "1bb8c5fa": [ 1637 | 7, 1638 | 22 1639 | ], 1640 | "4fac960e": [ 1641 | 19, 1642 | 12 1643 | ], 1644 | "0def740b": [ 1645 | 6, 1646 | 20 1647 | ], 1648 | "5d095012": [ 1649 | 5, 1650 | 10 1651 | ], 1652 | "048d3d2b": [ 1653 | 5, 1654 | 10 1655 | ], 1656 | "278d2571": [ 1657 | 6, 1658 | 20 1659 | ], 1660 | "6abda516": [ 1661 | 5, 1662 | 10 1663 | ], 1664 | "3f4c4219": [ 1665 | 3, 1666 | 13 1667 | ], 1668 | "1c2959e1": [ 1669 | 3, 1670 | 13 1671 | ], 1672 | "e6731452": [ 1673 | 7, 1674 | 22 1675 | ], 1676 | "bdf3ae92": [ 1677 | 7, 1678 | 22 1679 | ], 1680 | "0e51cc71": [ 1681 | 5, 1682 | 10 1683 | ], 1684 | "581d2685": [ 1685 | 5, 1686 | 10 1687 | ], 1688 | "1e2e9f24": [ 1689 | 5, 1690 | 10 1691 | ], 1692 | "f34717c6": [ 1693 | 5, 1694 | 10 1695 | ], 1696 | "2039883a": [ 1697 | 5, 1698 | 10 1699 | ], 1700 | "6bd8f047": [ 1701 | 5, 1702 | 10 1703 | ], 1704 | "647a1d7f": [ 1705 | 5, 1706 | 10 1707 | ], 1708 | "9a5f1ad4": [ 1709 | 5, 1710 | 10 1711 | ], 1712 | "42cfdca2": [ 1713 | 5, 1714 | 10 1715 | ], 1716 | "42c98870": [ 1717 | 5, 1718 | 10 1719 | ], 1720 | "1087547a": [ 1721 | 5, 1722 | 10 1723 | ], 1724 | "3764760d": [ 1725 | 5, 1726 | 10 1727 | ], 1728 | "0d7687f3": [ 1729 | 5, 1730 | 10 1731 | ], 1732 | "4e0e32b8": [ 1733 | 5, 1734 | 10 1735 | ], 1736 | "e61637b6": [ 1737 | 5, 1738 | 10 1739 | ], 1740 | "ca053aca": [ 1741 | 5, 1742 | 10 1743 | ], 1744 | "6d9d6c48": [ 1745 | 5, 1746 | 10 1747 | ], 1748 | "73fb890e": [ 1749 | 18, 1750 | 11 1751 | ], 1752 | "850dbf88": [ 1753 | 18, 1754 | 11 1755 | ], 1756 | "60cb1562": [ 1757 | 18, 1758 | 11 1759 | ], 1760 | "553ba670": [ 1761 | 18, 1762 | 11 1763 | ], 1764 | "76a89679": [ 1765 | 18, 1766 | 11 1767 | ], 1768 | "09a6e918": [ 1769 | 18, 1770 | 11 1771 | ], 1772 | "08318370": [ 1773 | 18, 1774 | 11 1775 | ], 1776 | "5e81fa40": [ 1777 | 18, 1778 | 11 1779 | ], 1780 | "a8ed1b3c": [ 1781 | 18, 1782 | 11 1783 | ], 1784 | "070ecb0e": [ 1785 | 18, 1786 | 11 1787 | ], 1788 | "dbe0db80": [ 1789 | 18, 1790 | 11 1791 | ], 1792 | "ecb67798": [ 1793 | 18, 1794 | 11 1795 | ], 1796 | "44f4c06b": [ 1797 | 18, 1798 | 11 1799 | ], 1800 | "a5a804cc": [ 1801 | 18, 1802 | 11 1803 | ], 1804 | "49020c57": [ 1805 | 18, 1806 | 11 1807 | ], 1808 | "20155a76": [ 1809 | 4, 1810 | 9 1811 | ], 1812 | "138fd78b": [ 1813 | 4, 1814 | 9 1815 | ], 1816 | "dd6d2056": [ 1817 | 4, 1818 | 9 1819 | ], 1820 | "296d58a2": [ 1821 | 4, 1822 | 9 1823 | ], 1824 | "23fddba9": [ 1825 | 4, 1826 | 9 1827 | ], 1828 | "6be5a221": [ 1829 | 4, 1830 | 9 1831 | ], 1832 | "2dbdbbad": [ 1833 | 4, 1834 | 9 1835 | ], 1836 | "c1986684": [ 1837 | 4, 1838 | 9 1839 | ], 1840 | "70d2a0aa": [ 1841 | 19, 1842 | 12 1843 | ], 1844 | "903d9cf4": [ 1845 | 19, 1846 | 12 1847 | ], 1848 | "65a1c6de": [ 1849 | 19, 1850 | 12 1851 | ], 1852 | "5ddf0fdd": [ 1853 | 19, 1854 | 12 1855 | ], 1856 | "2c8c4478": [ 1857 | 19, 1858 | 12 1859 | ], 1860 | "45c9930f": [ 1861 | 19, 1862 | 12 1863 | ], 1864 | "1f7e1310": [ 1865 | 19, 1866 | 12 1867 | ], 1868 | "07a1ac9b": [ 1869 | 19, 1870 | 12 1871 | ], 1872 | "04c28dcf": [ 1873 | 19, 1874 | 12 1875 | ], 1876 | "79a77254": [ 1877 | 21 1878 | ], 1879 | "fe0a5532": [ 1880 | 21 1881 | ], 1882 | "ed69aef8": [ 1883 | 21 1884 | ], 1885 | "6f31bd4a": [ 1886 | 21 1887 | ], 1888 | "1d401b0d": [ 1889 | 21 1890 | ], 1891 | "06d916b2": [ 1892 | 15 1893 | ], 1894 | "4c07f887": [ 1895 | 15 1896 | ], 1897 | "6ad39d13": [ 1898 | 15 1899 | ], 1900 | "4951524a": [ 1901 | 15 1902 | ], 1903 | "53c0b279": [ 1904 | 15 1905 | ], 1906 | "3df99263": [ 1907 | 3, 1908 | 13 1909 | ], 1910 | "19b64c12": [ 1911 | 3, 1912 | 13 1913 | ], 1914 | "2b6c7ea7": [ 1915 | 3, 1916 | 13 1917 | ], 1918 | "643872aa": [ 1919 | 3, 1920 | 13 1921 | ], 1922 | "4effa697": [ 1923 | 5, 1924 | 10 1925 | ], 1926 | "1074b6d1": [ 1927 | 5, 1928 | 10 1929 | ], 1930 | "67da16d0": [ 1931 | 8, 1932 | 24 1933 | ], 1934 | "2a23e1db": [ 1935 | 8, 1936 | 24 1937 | ], 1938 | "1e718ecd": [ 1939 | 8, 1940 | 24 1941 | ], 1942 | "4ff21ad2": [ 1943 | 4, 1944 | 9 1945 | ], 1946 | "949edaf8": [ 1947 | 19, 1948 | 12 1949 | ], 1950 | "368b35dc": [ 1951 | 18, 1952 | 11 1953 | ], 1954 | "3c4bad4d": [ 1955 | 2, 1956 | 23 1957 | ], 1958 | "be51e24a": [ 1959 | 2, 1960 | 23 1961 | ], 1962 | "57dc4c6d": [ 1963 | 2, 1964 | 23 1965 | ], 1966 | "6a50ebdf": [ 1967 | 6, 1968 | 20 1969 | ], 1970 | "41c7c766": [ 1971 | 2, 1972 | 23 1973 | ], 1974 | "2006128c": [ 1975 | 5, 1976 | 10 1977 | ], 1978 | "0cc3bad9": [ 1979 | 5, 1980 | 10 1981 | ], 1982 | "20b41c1b": [ 1983 | 5, 1984 | 10 1985 | ], 1986 | "0cc4284d": [ 1987 | 5, 1988 | 10 1989 | ], 1990 | "4593ee6d": [ 1991 | 5, 1992 | 10 1993 | ], 1994 | "6c69411a": [ 1995 | 2, 1996 | 23 1997 | ], 1998 | "2e238cac": [ 1999 | 2, 2000 | 23 2001 | ], 2002 | "f359d1e6": [ 2003 | 2, 2004 | 23 2005 | ], 2006 | "5d8f367a": [ 2007 | 2, 2008 | 23 2009 | ], 2010 | "7fcb1556": [ 2011 | 2, 2012 | 23 2013 | ], 2014 | "5bff1c20": [ 2015 | 2, 2016 | 23 2017 | ], 2018 | "37cd3c49": [ 2019 | 2, 2020 | 23 2021 | ], 2022 | "1e96cd7e": [ 2023 | 5, 2024 | 10 2025 | ], 2026 | "58b46bb5": [ 2027 | 2, 2028 | 23 2029 | ], 2030 | "083fe866": [ 2031 | 6, 2032 | 20 2033 | ], 2034 | "11465e0b": [ 2035 | 5, 2036 | 10 2037 | ], 2038 | "2e76c20d": [ 2039 | 2, 2040 | 23 2041 | ], 2042 | "16fa3443": [ 2043 | 2, 2044 | 23 2045 | ], 2046 | "3706cf66": [ 2047 | 2, 2048 | 23 2049 | ], 2050 | "10193f79": [ 2051 | 3, 2052 | 13 2053 | ], 2054 | "beb77d32": [ 2055 | 5, 2056 | 10 2057 | ], 2058 | "668d34ed": [ 2059 | 6, 2060 | 20 2061 | ], 2062 | "1ccb1b23": [ 2063 | 5, 2064 | 10 2065 | ], 2066 | "64b85a2f": [ 2067 | 3, 2068 | 13 2069 | ], 2070 | "23807fe6": [ 2071 | 2, 2072 | 23 2073 | ], 2074 | "39c0726d": [ 2075 | 6, 2076 | 20 2077 | ], 2078 | "cf499da6": [ 2079 | 2, 2080 | 23 2081 | ], 2082 | "f32e24a6": [ 2083 | 6, 2084 | 20 2085 | ], 2086 | "da04c232": [ 2087 | 6, 2088 | 20 2089 | ], 2090 | "688f666d": [ 2091 | 2, 2092 | 23 2093 | ], 2094 | "90d93dba": [ 2095 | 5, 2096 | 10 2097 | ], 2098 | "e753beb2": [ 2099 | 2, 2100 | 23 2101 | ], 2102 | "0466a8db": [ 2103 | 6, 2104 | 20 2105 | ], 2106 | "43a347d7": [ 2107 | 2, 2108 | 23 2109 | ], 2110 | "68e0f00d": [ 2111 | 2, 2112 | 23 2113 | ], 2114 | "24ddc90d": [ 2115 | 7, 2116 | 22 2117 | ], 2118 | "26cd67ab": [ 2119 | 3, 2120 | 13 2121 | ], 2122 | "4851ca6f": [ 2123 | 2, 2124 | 23 2125 | ] 2126 | }, 2127 | "assetsMapping": { 2128 | "7a532252b864bd9eebd0.js": "7ab0b56c", 2129 | "87ece185a1b9e2965c87.js": "45842002", 2130 | "9184cb31faeb267f0c6b.js": "6e510f96", 2131 | "9716da4306664536d8b0.js": "2a130dde", 2132 | "9a9c44e7b8f49bcc12a7.js": "5329c19c", 2133 | "a16805b22162ff8dfc88.js": "0814af59", 2134 | "a62667722dfcef11cb60.js": "6fca0322", 2135 | "a8a8266f6ab64b5b0cac.js": "0859c165", 2136 | "b50cfb28b465120d7d31.js": "7b56c3a4", 2137 | "ba63b1cb4dfa1b5c6d18.js": "73aef11f", 2138 | "cfc385b2a7b3d81760a0.js": "7e1e61ce", 2139 | "e3ca1292a690c3c2cc3c.js": "7ea1d828", 2140 | "e99e2e3ead8132a79620.js": "1a3ae26b" 2141 | } 2142 | } -------------------------------------------------------------------------------- /functions/.nuxt/dist/server/index.spa.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ HEAD }} 5 | 6 | 7 | {{ APP }} 8 | 9 | 10 | -------------------------------------------------------------------------------- /functions/.nuxt/dist/server/index.ssr.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ HEAD }} 5 | 6 | 7 | {{ APP }} 8 | 9 | 10 | -------------------------------------------------------------------------------- /functions/.nuxt/dist/server/server.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"server.js","sources":[],"mappings":";A","sourceRoot":""} -------------------------------------------------------------------------------- /functions/.nuxt/dist/server/server.manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "entry": "server.js", 3 | "files": { 4 | "386f3eb0ef8d4a67fc4a.js": "386f3eb0ef8d4a67fc4a.js", 5 | "7c64ca7d67baae8cc91f.js": "7c64ca7d67baae8cc91f.js", 6 | "abf2818fb354100a2efb.js": "abf2818fb354100a2efb.js", 7 | "b7d30fabed9f66818b64.js": "b7d30fabed9f66818b64.js", 8 | "cd08962828bfde59402b.js": "cd08962828bfde59402b.js", 9 | "server.js": "server.js" 10 | }, 11 | "maps": { 12 | "server.js": "server.js.map" 13 | } 14 | } -------------------------------------------------------------------------------- /functions/.nuxt/dist/sitemap-routes.json: -------------------------------------------------------------------------------- 1 | ["/ikelti","/inspire","/prisijungti","/"] 2 | -------------------------------------------------------------------------------- /functions/index.js: -------------------------------------------------------------------------------- 1 | const functions = require("firebase-functions"); 2 | const { Nuxt } = require("nuxt-start"); 3 | 4 | const nuxtConfig = require("./nuxt.config.js"); 5 | 6 | const config = { 7 | ...nuxtConfig, 8 | dev: false, 9 | debug: false, 10 | buildDir: ".nuxt", 11 | publicPath: "public" 12 | }; 13 | 14 | const nuxt = new Nuxt(config); 15 | 16 | let isReady = false; 17 | 18 | async function handleRequest(req, res) { 19 | if (!isReady) { 20 | try { 21 | isReady = await nuxt.ready(); 22 | } catch (error) { 23 | process.exit(1); 24 | } 25 | } 26 | await nuxt.render(req, res); 27 | } 28 | 29 | exports.ssrapp = functions.https.onRequest(handleRequest); 30 | -------------------------------------------------------------------------------- /functions/nuxt.config.js: -------------------------------------------------------------------------------- 1 | // import colors from 'vuetify/es5/util/colors' 2 | const colors = require('vuetify/es5/util/colors').default 3 | 4 | module.exports = { 5 | mode: 'universal', 6 | /* 7 | ** Headers of the page 8 | */ 9 | head: { 10 | titleTemplate: '%s - ' + process.env.npm_package_name, 11 | title: process.env.npm_package_name || 'DEALAS', 12 | meta: [ 13 | { charset: 'utf-8' }, 14 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 15 | { 16 | hid: 'description', 17 | name: 'description', 18 | content: process.env.npm_package_description || '' 19 | } 20 | ], 21 | link: [ 22 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, 23 | { 24 | rel: 'stylesheet', 25 | href: 26 | 'https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap' 27 | } 28 | ] 29 | }, 30 | /* 31 | ** Customize the progress-bar color 32 | */ 33 | loading: { color: '#fff' }, 34 | /* 35 | ** Global CSS 36 | */ 37 | css: [], 38 | /* 39 | ** Plugins to load before mounting the App 40 | */ 41 | plugins: [ 42 | '@/plugins/composition-api.js', 43 | '@/plugins/firebase.js', 44 | '@/plugins/filters.js', 45 | '@/plugins/vuetify.js' 46 | ], 47 | /* 48 | ** Nuxt.js dev-modules 49 | */ 50 | buildModules: [ 51 | '@nuxt/typescript-build', 52 | // Doc: https://github.com/nuxt-community/eslint-module 53 | '@nuxtjs/vuetify', 54 | '@nuxtjs/eslint-module' 55 | ], 56 | /* 57 | ** Nuxt.js modules 58 | */ 59 | modules: [ 60 | // Doc: https://axios.nuxtjs.org/usage 61 | '@nuxtjs/axios', 62 | // '@nuxtjs/pwa', 63 | '@nuxt/http', 64 | '@nuxtjs/sitemap' 65 | ], 66 | sitemap: { 67 | hostname: 'http://localhost/', 68 | gzip: true 69 | }, 70 | /* 71 | ** Axios module configuration 72 | ** See https://axios.nuxtjs.org/options 73 | */ 74 | axios: {}, 75 | http: { 76 | proxyHeaders: false 77 | }, 78 | /* 79 | ** vuetify module configuration 80 | ** https://github.com/nuxt-community/vuetify-module 81 | */ 82 | vuetify: { 83 | customVariables: ['~/assets/variables.scss'], 84 | theme: { 85 | dark: false, 86 | themes: { 87 | light: { 88 | primary: '#38bdcf' 89 | }, 90 | dark: { 91 | primary: colors.blue.darken2, 92 | accent: colors.grey.darken3, 93 | secondary: colors.amber.darken3, 94 | info: colors.teal.lighten1, 95 | warning: colors.amber.base, 96 | error: colors.deepOrange.accent4, 97 | success: colors.green.accent3 98 | } 99 | } 100 | } 101 | }, 102 | /* 103 | ** Build configuration 104 | */ 105 | 106 | build: { 107 | /* 108 | ** You can extend webpack config here 109 | */ 110 | vendor: ['axios'], 111 | extractCSS: true 112 | }, 113 | typescript: { 114 | typeCheck: { 115 | eslint: true 116 | } 117 | }, 118 | ssrLog: true 119 | } 120 | -------------------------------------------------------------------------------- /functions/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "functions", 3 | "description": "Cloud Functions for Firebase", 4 | "scripts": { 5 | "serve": "firebase serve --only functions", 6 | "shell": "firebase functions:shell", 7 | "start": "npm run shell", 8 | "deploy": "firebase deploy --only functions", 9 | "logs": "firebase functions:log" 10 | }, 11 | "engines": { 12 | "node": "10" 13 | }, 14 | "dependencies": { 15 | "@nuxt/typescript-runtime": "^0.3.6", 16 | "@nuxt/typescript-build": "0.5.5", 17 | "@vue/composition-api": "^0.3.4", 18 | "@nuxt/http": "^0.3.8", 19 | "@nuxtjs/axios": "^5.9.0", 20 | "@nuxtjs/eslint-module": "^1.0.0", 21 | "@nuxtjs/sitemap": "^2.0.1", 22 | "@nuxtjs/vuetify": "^1.9.1", 23 | "eslint": "^6.8.0", 24 | "eslint-config-prettier": "^6.7.0", 25 | "eslint-plugin-nuxt": "^0.5.0", 26 | "eslint-plugin-prettier": "^3.1.2", 27 | "eslint-plugin-vue": "^6.0.1", 28 | "firebase": "^7.6.1", 29 | "firebase-admin": "^8.0.0", 30 | "firebase-functions": "^3.1.0", 31 | "install": "^0.13.0", 32 | "lodash": "^4.17.15", 33 | "npm": "^6.13.4", 34 | "nuxt-start": "^2.11.0", 35 | "prettier": "^1.19.1", 36 | "vuetify": "^2.1.15" 37 | }, 38 | "devDependencies": { 39 | "firebase-functions-test": "^0.1.6" 40 | }, 41 | "private": true 42 | } 43 | -------------------------------------------------------------------------------- /public/README.md: -------------------------------------------------------------------------------- 1 | # STATIC 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your static files. 6 | Each file inside this directory is mapped to `/`. 7 | Thus you'd want to delete this README.md before deploying to production. 8 | 9 | Example: `/static/robots.txt` is mapped as `/robots.txt`. 10 | 11 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static). 12 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/public/favicon.ico -------------------------------------------------------------------------------- /public/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/public/icon.png -------------------------------------------------------------------------------- /public/nuxt/403b17cf3e1e718379fe.css: -------------------------------------------------------------------------------- 1 | [data-v-74b882e8]{font-family:Montserrat,sans-serif}.offer-card[data-v-74b882e8]{min-width:220px}.comment-container[data-v-74b882e8]{background:rgba(56,189,207,.05);border-radius:5px}a.comment-link[data-v-74b882e8]{text-decoration:none;color:grey} -------------------------------------------------------------------------------- /public/nuxt/673f2640f80a6401008e.css: -------------------------------------------------------------------------------- 1 | body{font-family:Montserrat,sans-serif}.v-tooltip{display:none}.v-tooltip--attached{display:inline}.v-tooltip__content{background:rgba(97,97,97,.9);color:#fff;border-radius:4px;font-size:14px;line-height:22px;display:inline-block;padding:5px 16px;position:absolute;text-transform:none;width:auto;opacity:1;pointer-events:none}.v-tooltip__content--fixed{position:fixed}.v-tooltip__content[class*=-active]{-webkit-transition-timing-function:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.v-tooltip__content[class*=enter-active]{-webkit-transition-duration:.15s;transition-duration:.15s}.v-tooltip__content[class*=leave-active]{-webkit-transition-duration:75ms;transition-duration:75ms} -------------------------------------------------------------------------------- /public/nuxt/71cd9a6f9b014c500cf5.css: -------------------------------------------------------------------------------- 1 | h1[data-v-de4b70e6]{font-size:20px}.nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;opacity:1;-webkit-transition:width .1s,opacity .4s;transition:width .1s,opacity .4s;background-color:#fff;z-index:999999}.nuxt-progress.nuxt-progress-notransition{-webkit-transition:none;transition:none}.nuxt-progress-failed{background-color:red}body{background-color:#fff}.link-decoration{text-decoration:none;color:#fff;text-underline-position:unset}.top-nav{color:#38bdcf}.triangle-background{position:fixed;top:0}@media (min-width:960px) and (max-width:1264px){.triangle{content:"";position:fixed;width:220%;height:700px;left:-100px;top:-200px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}}@media (min-width:1264px){.triangle{content:"";position:fixed;width:130%;height:700px;left:-100px;top:-200px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}}@media (min-width:200px) and (max-width:960px){.triangle{content:"";position:fixed;width:134%;height:253px;left:-31px;top:-32px;background:#38bdcf;-webkit-transform:rotate(18deg);transform:rotate(10deg);z-index:0}} -------------------------------------------------------------------------------- /public/social/google/btn_google_light_normal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | btn_google_light_normal_ios 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /public/v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/public/v.png -------------------------------------------------------------------------------- /src/.eslintignore: -------------------------------------------------------------------------------- 1 | # Common 2 | .github 3 | node_modules 4 | dist 5 | .nuxt 6 | coverage 7 | 8 | # Internals 9 | .storybook 10 | .vscode 11 | internals 12 | stories 13 | tools 14 | 15 | # Submodule 16 | src/include 17 | 18 | # Static 19 | src/static 20 | -------------------------------------------------------------------------------- /src/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | env: { 4 | browser: true, 5 | node: true 6 | }, 7 | parser: 'vue-eslint-parser', 8 | parserOptions: { 9 | sourceType: 'module', 10 | ecmaVersion: 2018, 11 | ecmaFeatures: { 12 | globalReturn: false, 13 | impliedStrict: false, 14 | jsx: false 15 | } 16 | }, 17 | extends: [ 18 | // 'eslint:recommended', 19 | '@nuxtjs', 20 | '@nuxtjs/eslint-config-typescript', 21 | // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention 22 | // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. 23 | 'plugin:vue/recommended', 24 | 'prettier/vue', 25 | 'plugin:prettier/recommended' 26 | ], 27 | // plugins: ['vue'], 28 | // add your custom rules here 29 | rules: { 30 | 'vue/max-attributes-per-line': 'off', 31 | 'vue/component-name-in-template-casing': ['error', 'PascalCase'], 32 | 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', 33 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 34 | 'vue/html-self-closing': 'off', 35 | 'prettier/prettier': ['error', { semi: false }] 36 | }, 37 | overrides: [] 38 | } 39 | -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | # Created by .ignore support plugin (hsz.mobi) 2 | ### Node template 3 | # Logs 4 | logs 5 | *.log 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | *.pid.lock 15 | 16 | # Directory for instrumented libs generated by jscoverage/JSCover 17 | lib-cov 18 | 19 | # Coverage directory used by tools like istanbul 20 | coverage 21 | 22 | # nyc test coverage 23 | .nyc_output 24 | 25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 26 | .grunt 27 | 28 | # Bower dependency directory (https://bower.io/) 29 | bower_components 30 | 31 | # node-waf configuration 32 | .lock-wscript 33 | 34 | # Compiled binary addons (https://nodejs.org/api/addons.html) 35 | build/Release 36 | 37 | # Dependency directories 38 | node_modules/ 39 | jspm_packages/ 40 | 41 | # TypeScript v1 declaration files 42 | typings/ 43 | 44 | # Optional npm cache directory 45 | .npm 46 | 47 | # Optional eslint cache 48 | .eslintcache 49 | 50 | # Optional REPL history 51 | .node_repl_history 52 | 53 | # Output of 'npm pack' 54 | *.tgz 55 | 56 | # Yarn Integrity file 57 | .yarn-integrity 58 | 59 | # dotenv environment variables file 60 | .env 61 | 62 | # parcel-bundler cache (https://parceljs.org/) 63 | .cache 64 | 65 | # next.js build output 66 | .next 67 | 68 | # nuxt.js build output 69 | .nuxt 70 | 71 | # Nuxt generate 72 | dist 73 | 74 | # vuepress build output 75 | .vuepress/dist 76 | 77 | # Serverless directories 78 | .serverless 79 | 80 | # IDE / Editor 81 | .idea 82 | .editorconfig 83 | 84 | # Service worker 85 | sw.* 86 | 87 | # Mac OSX 88 | .DS_Store 89 | 90 | # Vim swap files 91 | *.swp 92 | 93 | .vscode/ 94 | configs/ 95 | -------------------------------------------------------------------------------- /src/.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "arrowParens": "always", 4 | "singleQuote": true 5 | } 6 | -------------------------------------------------------------------------------- /src/LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /src/README.md: -------------------------------------------------------------------------------- 1 | # dealas 2 | 3 | > Deals website 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # install dependencies 9 | $ npm run install 10 | 11 | # serve with hot reload at localhost:3000 12 | $ npm run dev 13 | 14 | # build for production and launch server 15 | $ npm run build 16 | $ npm run start 17 | 18 | # generate static project 19 | $ npm run generate 20 | ``` 21 | 22 | For detailed explanation on how things work, check out [Nuxt.js docs](https://nuxtjs.org). 23 | -------------------------------------------------------------------------------- /src/TODO.md: -------------------------------------------------------------------------------- 1 | # TODO LIST 2 | 3 | [✅] Figure out how to create a triangle for the background 4 | [✅] Create a constant column count in a row when the browser window is wide. 5 | [✅] Put every component element in the right spot. 6 | 7 | [✅] Create a google cloud functions function to retrieve meta tags to view the images with title and description of urls being passed by. 8 | 9 | [ ] Create comments in a deal preview. Put the comments and other information into a deal store so it would watch for changes in deals comments. Every time comments are updated, the user UI would be updated as well. 10 | -------------------------------------------------------------------------------- /src/assets/README.md: -------------------------------------------------------------------------------- 1 | # ASSETS 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. 6 | 7 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked). 8 | -------------------------------------------------------------------------------- /src/assets/variables.scss: -------------------------------------------------------------------------------- 1 | // Ref: https://github.com/nuxt-community/vuetify-module#customvariables 2 | // 3 | // The variables you want to modify 4 | // $font-size-root: 20px; 5 | body { 6 | font-family: 'Montserrat', sans-serif; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /src/components/DealCard.vue: -------------------------------------------------------------------------------- 1 | 82 | 83 | 118 | 119 | 127 | -------------------------------------------------------------------------------- /src/components/DisplayDateComponent.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/components/DisplayNameComponent.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/components/LoginComponent.vue: -------------------------------------------------------------------------------- 1 | 36 | 37 | 65 | -------------------------------------------------------------------------------- /src/components/NavigationBar.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/components/README.md: -------------------------------------------------------------------------------- 1 | # COMPONENTS 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | The components directory contains your Vue.js Components. 6 | 7 | _Nuxt.js doesn't supercharge these components._ 8 | -------------------------------------------------------------------------------- /src/components/RegistrationComponent.vue: -------------------------------------------------------------------------------- 1 | 79 | 80 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /src/components/SearchComponent.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": ".", 4 | "paths": { 5 | "~/*": ["./*"], 6 | "@/*": ["./*"], 7 | "~~/*": ["./*"], 8 | "@@/*": ["./*"] 9 | } 10 | }, 11 | "exclude": ["node_modules", ".nuxt", "dist"] 12 | } 13 | -------------------------------------------------------------------------------- /src/layouts/README.md: -------------------------------------------------------------------------------- 1 | # LAYOUTS 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your Application Layouts. 6 | 7 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/views#layouts). 8 | -------------------------------------------------------------------------------- /src/layouts/default.vue: -------------------------------------------------------------------------------- 1 | 61 | 62 | 121 | 232 | -------------------------------------------------------------------------------- /src/layouts/error.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 39 | 40 | 45 | -------------------------------------------------------------------------------- /src/middleware/README.md: -------------------------------------------------------------------------------- 1 | # MIDDLEWARE 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your application middleware. 6 | Middleware let you define custom functions that can be run before rendering either a page or a group of pages. 7 | 8 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing#middleware). 9 | -------------------------------------------------------------------------------- /src/mixins/votesMixin.vue: -------------------------------------------------------------------------------- 1 | 76 | -------------------------------------------------------------------------------- /src/modules/itemAdd/store/__tests__/newDealStore.spec.ts: -------------------------------------------------------------------------------- 1 | import Vuex from 'vuex' 2 | import { createLocalVue } from '@vue/test-utils' 3 | import { getModule } from 'vuex-module-decorators' 4 | import newDealStore from '../newDealStore' 5 | 6 | const Vue = createLocalVue() 7 | Vue.use(Vuex) 8 | 9 | /** 10 | * Factory function returns a new store instance 11 | */ 12 | const factory = () => { 13 | const store = new Vuex.Store({ 14 | modules: { 15 | deal: newDealStore 16 | } 17 | }) 18 | return getModule(newDealStore, store) 19 | } 20 | 21 | /** 22 | * The test case 23 | */ 24 | describe('newDealStore', () => { 25 | it('has to get a store instance', (done) => { 26 | const service = factory() 27 | expect(service).toBeInstanceOf(Object) 28 | done() 29 | }) 30 | }) 31 | -------------------------------------------------------------------------------- /src/modules/itemAdd/store/newDealStore.ts: -------------------------------------------------------------------------------- 1 | import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators' 2 | import { isNil, clone, find, isFunction } from 'lodash' 3 | import { IDealStore, IDeal, IComment } from './types' 4 | import { db, storage } from '~/plugins/firebase' 5 | 6 | // interface QueryDocumentSnapshot { 9 | const a = 10 | 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' 11 | const b = 12 | 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' 13 | const p = new RegExp(a.split('').join('|'), 'g') 14 | 15 | return ( 16 | textString 17 | .toString() 18 | .toLowerCase() 19 | .replace(/\s+/g, '-') // Replace spaces with - 20 | .replace(p, (c) => b.charAt(a.indexOf(c))) // Replace special characters 21 | .replace(/&/g, '-and-') // Replace & with 'and' 22 | // eslint-disable-next-line no-useless-escape 23 | .replace(/[^\w\-]+/g, '') // Remove all non-word characters 24 | // eslint-disable-next-line no-useless-escape 25 | .replace(/\-\-+/g, '-') // Replace multiple - with single - 26 | .replace(/^-+/, '') // Trim - from start of text 27 | .replace(/-+$/, '') 28 | ) // Trim - from end of text 29 | } 30 | 31 | const randomString = (stringCount: number = 5) => { 32 | return Math.random() 33 | .toString(36) 34 | .substr(2, stringCount) 35 | } 36 | 37 | let unsubscribeComments: null | Function = null 38 | 39 | @Module({ 40 | name: 'deal', 41 | namespaced: true, 42 | stateFactory: true 43 | }) 44 | export default class extends VuexModule implements IDealStore { 45 | deals: IDeal[] = [] 46 | deal: IDeal | null = null 47 | comments: IComment[] = [] 48 | 49 | get getDeals(searchText: string): IDeal[] { 50 | if (searchText !== '' && !isNil(searchText)) { 51 | const lowerSearchText: string = searchText.toLowerCase() 52 | return this.deals.filter( 53 | (item: IDeal) => 54 | item.title.toLowerCase().includes(lowerSearchText) || 55 | item.description.toLowerCase().includes(lowerSearchText) 56 | ) 57 | } else { 58 | return this.deals 59 | } 60 | } 61 | 62 | @Action 63 | async GET_DEALS() { 64 | const deals: firebase.firestore.QuerySnapshot = await db 65 | .collection('deals') 66 | .get() 67 | 68 | this.SET_DEALS( 69 | deals.docs.map((deal: firebase.firestore.QueryDocumentSnapshot) => ({ 70 | id: deal.id, 71 | ...(deal.data() as IDeal) 72 | })) 73 | ) 74 | } 75 | 76 | async CREATE_DEAL({ 77 | data: deal, 78 | imageType, 79 | image 80 | }: { 81 | data: IDeal 82 | imageType: string 83 | image: Blob | Uint8Array | ArrayBuffer 84 | }) { 85 | if (deal === null) { 86 | } 87 | const dealId = `${slugify(deal.title)}-${randomString()}` 88 | let imageURL = image 89 | if (imageType === 'uploaded' && image) { 90 | const storageRef = await storage.ref() 91 | try { 92 | const uploadTask = await storageRef 93 | .child(`images/${dealId}.jpeg`) 94 | .put(image) 95 | imageURL = await uploadTask.ref.getDownloadURL() 96 | } catch (error) { 97 | switch (error.code) { 98 | case 'storage/unauthorized': 99 | // User doesn't have permission to access the object 100 | break 101 | 102 | case 'storage/canceled': 103 | // User canceled the upload 104 | break 105 | 106 | case 'storage/unknown': 107 | // Unknown error occurred, inspect error.serverResponse 108 | break 109 | } 110 | } 111 | } 112 | 113 | const dealData: IDeal = { ...deal, id: dealId, image: imageURL } 114 | 115 | await db 116 | .collection('deals') 117 | .doc(dealId) 118 | .set(dealData) 119 | 120 | this.ADD_DEAL(dealData as IDeal) 121 | return dealId 122 | } 123 | 124 | @Action 125 | async POST_COMMENT(data: any) { 126 | try { 127 | await db 128 | .collection('deals') 129 | .doc(data.dealId) 130 | .collection('comments') 131 | .add(data) 132 | } catch (e) {} 133 | } 134 | 135 | @Action 136 | async VIEW_DEAL(dealId: string) { 137 | const dealRef = db.collection('deals').doc(dealId) 138 | 139 | // LISTENING TO COMMENT COLLECTION CHANGE WONT WORK HERE 140 | // THIS IS CALLED BY SERVER SIDE RENDERING 141 | 142 | const deal = await dealRef.get() 143 | this.SET_DEAL(deal.data() as IDeal) 144 | } 145 | 146 | @Action 147 | LEAVE_DEAL() { 148 | if (isFunction(unsubscribeComments)) unsubscribeComments() 149 | 150 | this.SET_DEAL(null) 151 | } 152 | 153 | @Action 154 | UPDATE_SCORE(score: number) { 155 | this.SET_SCORE(score) 156 | } 157 | 158 | @Action 159 | UPDATE_DEAL_SCORE({ dealId, score }: { dealId: string; score: number }) { 160 | const newDeal = clone(find(this.deals, (d) => d.id === dealId)) 161 | if (!isNil(newDeal)) { 162 | newDeal.score = score 163 | const deals = [ 164 | ...this.deals.filter((item) => item.id !== dealId), 165 | newDeal 166 | ] 167 | this.SET_DEALS(deals) 168 | } 169 | } 170 | 171 | @Action 172 | INITIATE_LISTENING_TO_COMMENTS(dealId: string) { 173 | const dealRef = db.collection('deals').doc(dealId) 174 | // THIS WILL NOT WORK AS ITS BEING RENDERED IN SERVER SIDE 175 | unsubscribeComments = dealRef 176 | .collection('comments') 177 | .orderBy('timestamp', 'desc') 178 | .limit(10) 179 | .onSnapshot((snapshot) => { 180 | const comments: IComment[] = snapshot.docs.map((doc) => ({ 181 | id: doc.id, 182 | ...(doc.data() as IComment) 183 | })) 184 | this.SET_COMMENTS(comments) 185 | }) 186 | } 187 | 188 | @Mutation 189 | SET_DEALS(deals: IDeal[]) { 190 | this.deals = deals 191 | } 192 | 193 | @Mutation 194 | ADD_DEAL(data: IDeal) { 195 | // const { id, data } = deal 196 | this.deals = [...this.deals, data] 197 | } 198 | 199 | @Mutation 200 | SET_DEAL(data: IDeal | null) { 201 | this.deal = data 202 | } 203 | 204 | @Mutation 205 | SET_SCORE(score: number) { 206 | this.deal = { ...(this.deal as IDeal), score } 207 | } 208 | 209 | @Mutation 210 | SET_COMMENTS(data: IComment[]) { 211 | this.comments = data 212 | } 213 | } 214 | -------------------------------------------------------------------------------- /src/modules/itemAdd/store/types.d.ts: -------------------------------------------------------------------------------- 1 | export interface IDeal { 2 | id: string 3 | endsAt: string 4 | startsAt: string 5 | newPrice: string 6 | oldPrice: string 7 | title: string 8 | description: string 9 | link: string 10 | distributor: string 11 | score: number 12 | user: string 13 | image?: Blob | Uint8Array | ArrayBuffer | string 14 | timestamp: string 15 | } 16 | 17 | export interface IDealStore { 18 | deals: IDeal[] 19 | deal: IDeal | null 20 | comments: IComment[] 21 | } 22 | 23 | export interface IComment { 24 | id: string 25 | dealId: string 26 | userId: string 27 | content: string 28 | timestamp: string 29 | userName: string 30 | } 31 | -------------------------------------------------------------------------------- /src/nuxt.config.js: -------------------------------------------------------------------------------- 1 | // import colors from 'vuetify/es5/util/colors' 2 | const colors = require('vuetify/es5/util/colors').default 3 | 4 | module.exports = { 5 | mode: 'universal', 6 | /* 7 | ** Headers of the page 8 | */ 9 | head: { 10 | titleTemplate: '%s - ' + process.env.npm_package_name, 11 | title: process.env.npm_package_name || 'DEALAS', 12 | meta: [ 13 | { charset: 'utf-8' }, 14 | { name: 'viewport', content: 'width=device-width, initial-scale=1' }, 15 | { 16 | hid: 'description', 17 | name: 'description', 18 | content: process.env.npm_package_description || '' 19 | } 20 | ], 21 | link: [ 22 | { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }, 23 | { 24 | rel: 'stylesheet', 25 | href: 26 | 'https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap' 27 | } 28 | ] 29 | }, 30 | /* 31 | ** Customize the progress-bar color 32 | */ 33 | loading: { color: '#fff' }, 34 | /* 35 | ** Global CSS 36 | */ 37 | css: [], 38 | /* 39 | ** Plugins to load before mounting the App 40 | */ 41 | plugins: [ 42 | '@/plugins/composition-api.js', 43 | '@/plugins/firebase.js', 44 | '@/plugins/filters.js', 45 | '@/plugins/vuetify.js' 46 | ], 47 | /* 48 | ** Nuxt.js dev-modules 49 | */ 50 | buildModules: [ 51 | '@nuxt/typescript-build', 52 | // Doc: https://github.com/nuxt-community/eslint-module 53 | '@nuxtjs/vuetify', 54 | '@nuxtjs/eslint-module' 55 | ], 56 | /* 57 | ** Nuxt.js modules 58 | */ 59 | modules: [ 60 | // Doc: https://axios.nuxtjs.org/usage 61 | '@nuxtjs/axios', 62 | // '@nuxtjs/pwa', 63 | '@nuxt/http', 64 | '@nuxtjs/sitemap' 65 | ], 66 | sitemap: { 67 | hostname: 'http://localhost/', 68 | gzip: true 69 | }, 70 | /* 71 | ** Axios module configuration 72 | ** See https://axios.nuxtjs.org/options 73 | */ 74 | axios: {}, 75 | http: { 76 | proxyHeaders: false 77 | }, 78 | /* 79 | ** vuetify module configuration 80 | ** https://github.com/nuxt-community/vuetify-module 81 | */ 82 | vuetify: { 83 | customVariables: ['~/assets/variables.scss'], 84 | theme: { 85 | dark: false, 86 | themes: { 87 | light: { 88 | primary: '#38bdcf' 89 | }, 90 | dark: { 91 | primary: colors.blue.darken2, 92 | accent: colors.grey.darken3, 93 | secondary: colors.amber.darken3, 94 | info: colors.teal.lighten1, 95 | warning: colors.amber.base, 96 | error: colors.deepOrange.accent4, 97 | success: colors.green.accent3 98 | } 99 | } 100 | } 101 | }, 102 | /* 103 | ** Build configuration 104 | */ 105 | 106 | build: { 107 | /* 108 | ** You can extend webpack config here 109 | */ 110 | vendor: ['axios'], 111 | extractCSS: true 112 | }, 113 | typescript: { 114 | typeCheck: { 115 | eslint: true 116 | } 117 | }, 118 | ssrLog: true 119 | } 120 | -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dealas", 3 | "version": "1.0.0", 4 | "description": "Puslapis kuriame rasite aktualių nuolaidų kuriomis dalinasi platformoje besilankantys lankytojai.", 5 | "author": "Zigmas Slusnys", 6 | "private": true, 7 | "scripts": { 8 | "dev": "nuxt-ts", 9 | "build": "nuxt-ts build", 10 | "generate": "nuxt-ts generate", 11 | "start": "nuxt-ts start", 12 | "lint": "eslint --ext .ts,.js,.vue --ignore-path .gitignore .", 13 | "test": "NODE_ENV=test jest" 14 | }, 15 | "dependencies": { 16 | "@nuxt/http": "^0.3.8", 17 | "@nuxt/typescript-runtime": "^0.3.6", 18 | "@nuxtjs/axios": "^5.9.2", 19 | "@nuxtjs/sitemap": "^2.0.1", 20 | "@vue/composition-api": "^0.3.4", 21 | "axios": "^0.19.1", 22 | "core-js": "^2.6.11", 23 | "firebase": "^7.6.1", 24 | "install": "^0.13.0", 25 | "lodash": "^4.17.15", 26 | "npm": "^6.13.6", 27 | "nuxt": "^2.11.0", 28 | "vuetify": "^2.2.3" 29 | }, 30 | "devDependencies": { 31 | "@babel/core": "^7.8.3", 32 | "@nuxt/typescript-build": "^0.5.5", 33 | "@nuxtjs/eslint-config": "^1.0.1", 34 | "@nuxtjs/eslint-config-typescript": "^1.0.0", 35 | "@nuxtjs/eslint-module": "^1.0.0", 36 | "@nuxtjs/vuetify": "^1.9.1", 37 | "@types/jest": "^24.9.0", 38 | "@types/lodash": "^4.14.149", 39 | "@typescript-eslint/eslint-plugin": "^2.16.0", 40 | "@typescript-eslint/parser": "^2.16.0", 41 | "@vue/eslint-config-typescript": "^5.0.1", 42 | "@vue/test-utils": "^1.0.0-beta.30", 43 | "babel-core": "^7.0.0-bridge.0", 44 | "babel-eslint": "^10.0.3", 45 | "babel-jest": "^24.9.0", 46 | "babel-plugin-dynamic-import-node": "^2.3.0", 47 | "babel-plugin-transform-decorators": "^6.24.1", 48 | "eslint": "^6.8.0", 49 | "eslint-config-prettier": "^4.1.0", 50 | "eslint-plugin-nuxt": "^0.5.0", 51 | "eslint-plugin-prettier": "^3.1.2", 52 | "eslint-plugin-vue": "^6.1.2", 53 | "jest": "^24.9.0", 54 | "prettier": "^1.19.1", 55 | "ts-jest": "^24.3.0", 56 | "vue-eslint-parser": "^7.0.0", 57 | "vue-jest": "^3.0.5", 58 | "vuex-module-decorators": "^0.11.0" 59 | }, 60 | "jest": { 61 | "testRegex": "(/__tests__/*|(\\.|/)spec)\\.(jsx?|tsx?)$", 62 | "moduleFileExtensions": [ 63 | "js", 64 | "ts", 65 | "json", 66 | "vue" 67 | ], 68 | "transform": { 69 | ".*\\.(vue)$": "vue-jest", 70 | "^.+\\.ts?$": "ts-jest", 71 | "^.+\\.js$": "babel-jest" 72 | }, 73 | "testURL": "http://localhost/" 74 | }, 75 | "babel": { 76 | "plugins": [ 77 | [ 78 | "dynamic-import-node", 79 | { 80 | "noInterop": true 81 | } 82 | ] 83 | ], 84 | "env": { 85 | "test": { 86 | "presets": [ 87 | [ 88 | "@babel/preset-env", 89 | { 90 | "targets": { 91 | "node": "current" 92 | } 93 | } 94 | ] 95 | ] 96 | } 97 | } 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /src/pages/README.md: -------------------------------------------------------------------------------- 1 | # PAGES 2 | 3 | This directory contains your Application Views and Routes. 4 | The framework reads all the `*.vue` files inside this directory and creates the router of your application. 5 | 6 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/routing). 7 | -------------------------------------------------------------------------------- /src/pages/details/_id.vue: -------------------------------------------------------------------------------- 1 | 124 | 125 | 183 | 199 | -------------------------------------------------------------------------------- /src/pages/ikelti.vue: -------------------------------------------------------------------------------- 1 | 187 | 188 | 324 | 325 | 326 | -------------------------------------------------------------------------------- /src/pages/index.vue: -------------------------------------------------------------------------------- 1 | 41 | 42 | 85 | 97 | -------------------------------------------------------------------------------- /src/pages/inspire.vue: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /src/pages/prisijungti.vue: -------------------------------------------------------------------------------- 1 | 44 | 76 | 77 | 96 | -------------------------------------------------------------------------------- /src/plugins/README.md: -------------------------------------------------------------------------------- 1 | # PLUGINS 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains Javascript plugins that you want to run before mounting the root Vue.js application. 6 | 7 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/plugins). 8 | -------------------------------------------------------------------------------- /src/plugins/composition-api.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueCompositionApi from '@vue/composition-api' 3 | 4 | Vue.use(VueCompositionApi) 5 | -------------------------------------------------------------------------------- /src/plugins/filters.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | 3 | Vue.filter('truncate', function(text, stop, clamp) { 4 | return text.slice(0, stop) + (stop < text.length ? clamp || '...' : '') 5 | }) 6 | -------------------------------------------------------------------------------- /src/plugins/firebase.js: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | 4 | // 6 | // 7 | import firebase from 'firebase' 8 | import 'firebase/firestore' // if use firestore 9 | import 'firebase/storage' // if use storage 10 | import { firebaseConfig } from '@/configs/firebase' 11 | // Your web app's Firebase configuration 12 | 13 | // Initialize Firebase 14 | if (!firebase.apps.length) { 15 | firebase.initializeApp(firebaseConfig) 16 | // firebase.analytics() 17 | } 18 | // firebase.firestore().settings({ timestampsInSnapshots: true }) 19 | 20 | export const db = firebase.firestore() 21 | export const auth = firebase.auth() 22 | export const storage = firebase.storage() 23 | 24 | export default (context) => { 25 | const { store } = context 26 | 27 | return new Promise((resolve, reject) => { 28 | try { 29 | auth.onAuthStateChanged((user) => { 30 | resolve(store.dispatch('auth/fetchUser', user)) 31 | }) 32 | } catch (error) { 33 | reject(error) 34 | } 35 | }) 36 | } 37 | -------------------------------------------------------------------------------- /src/plugins/vuetify.js: -------------------------------------------------------------------------------- 1 | import Vuetify from 'vuetify' 2 | 3 | import Vue from 'vue' 4 | 5 | Vue.use(Vuetify) 6 | -------------------------------------------------------------------------------- /src/static/README.md: -------------------------------------------------------------------------------- 1 | # STATIC 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your static files. 6 | Each file inside this directory is mapped to `/`. 7 | Thus you'd want to delete this README.md before deploying to production. 8 | 9 | Example: `/static/robots.txt` is mapped as `/robots.txt`. 10 | 11 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static). 12 | -------------------------------------------------------------------------------- /src/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/src/static/favicon.ico -------------------------------------------------------------------------------- /src/static/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/src/static/icon.png -------------------------------------------------------------------------------- /src/static/social/google/btn_google_light_normal.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | btn_google_light_normal_ios 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/static/v.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slushnys/dealas/2b6a559d20b982f856071921b52ab1b2a2ae6e15/src/static/v.png -------------------------------------------------------------------------------- /src/store/README.md: -------------------------------------------------------------------------------- 1 | # STORE 2 | 3 | **This directory is not required, you can delete it if you don't want to use it.** 4 | 5 | This directory contains your Vuex Store files. 6 | Vuex Store option is implemented in the Nuxt.js framework. 7 | 8 | Creating a file in this directory automatically activates the option in the framework. 9 | 10 | More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/vuex-store). 11 | -------------------------------------------------------------------------------- /src/store/auth.js: -------------------------------------------------------------------------------- 1 | import { db } from '~/plugins/firebase' 2 | 3 | export const state = () => ({ 4 | user: { 5 | loggedIn: false, 6 | data: null 7 | } 8 | }) 9 | 10 | export const getters = { 11 | getUser: (state) => state.user 12 | } 13 | 14 | export const actions = { 15 | fetchUser({ commit }, user) { 16 | commit('SET_LOGGED_IN', user !== null) 17 | if (user) { 18 | commit('SET_USER_DATA', { 19 | email: user.email, 20 | displayName: user.displayName, 21 | uid: user.uid 22 | }) 23 | } else { 24 | commit('SET_USER_DATA', null) 25 | } 26 | }, 27 | UPDATE_LOCAL_NAME({ commit, state }, name) { 28 | if ( 29 | name !== null || 30 | name !== undefined || 31 | name !== '' || 32 | state.user.data !== null 33 | ) 34 | commit('SET_LOCAL_NAME', name) 35 | }, 36 | async CREATE_USER_INSTANCE(userData) { 37 | await db 38 | .collection('users') 39 | .doc(userData.uid) 40 | .set(userData) 41 | } 42 | } 43 | 44 | export const mutations = { 45 | SET_LOGGED_IN(state, value) { 46 | state.user.loggedIn = value 47 | }, 48 | SET_USER_DATA(state, data) { 49 | state.user.data = data 50 | }, 51 | SET_LOCAL_NAME(state, name) { 52 | state.user.data.displayName = name 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/store/deals.js: -------------------------------------------------------------------------------- 1 | import { isFunction, isNil, find, clone } from 'lodash' 2 | import { db, storage } from '@/plugins/firebase' 3 | 4 | export const state = () => ({ 5 | deals: {}, 6 | deal: null, 7 | comments: null 8 | }) 9 | 10 | let unsubscribeComments = null 11 | 12 | export const getters = { 13 | getDeals: (state) => (searchText) => { 14 | if (searchText !== '' && !isNil(searchText)) { 15 | const lowerSearchText = searchText.toLowerCase() 16 | return state.deals.filter( 17 | (item) => 18 | item.title.toLowerCase().includes(lowerSearchText) || 19 | item.description.toLowerCase().includes(lowerSearchText) 20 | ) 21 | } else { 22 | return state.deals 23 | } 24 | }, 25 | getComments: (state) => state.comments, 26 | getDeal: (state) => state.deal 27 | } 28 | 29 | const slugify = (string) => { 30 | const a = 31 | 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;' 32 | const b = 33 | 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------' 34 | const p = new RegExp(a.split('').join('|'), 'g') 35 | 36 | return ( 37 | string 38 | .toString() 39 | .toLowerCase() 40 | .replace(/\s+/g, '-') // Replace spaces with - 41 | .replace(p, (c) => b.charAt(a.indexOf(c))) // Replace special characters 42 | .replace(/&/g, '-and-') // Replace & with 'and' 43 | // eslint-disable-next-line no-useless-escape 44 | .replace(/[^\w\-]+/g, '') // Remove all non-word characters 45 | // eslint-disable-next-line no-useless-escape 46 | .replace(/\-\-+/g, '-') // Replace multiple - with single - 47 | .replace(/^-+/, '') // Trim - from start of text 48 | .replace(/-+$/, '') 49 | ) // Trim - from end of text 50 | } 51 | 52 | const randomString = (stringCount = 5) => { 53 | return Math.random() 54 | .toString(36) 55 | .substr(2, stringCount) 56 | } 57 | 58 | export const actions = { 59 | async GET_DEALS({ commit }) { 60 | const deals = await db.collection('deals').get() 61 | commit( 62 | 'SET_DEALS', 63 | deals.docs.map((deal) => ({ id: deal.id, ...deal.data() })) 64 | ) 65 | }, 66 | async CREATE_DEAL({ commit }, { data: deal, imageType, image }) { 67 | if (deal === null) { 68 | } 69 | const dealId = `${slugify(deal.title)}-${randomString()}` 70 | let imageURL = image 71 | if (imageType === 'uploaded' && image) { 72 | const storageRef = await storage.ref() 73 | try { 74 | const uploadTask = await storageRef 75 | .child(`images/${dealId}.jpeg`) 76 | .put(image) 77 | imageURL = await uploadTask.ref.getDownloadURL() 78 | } catch (error) { 79 | switch (error.code) { 80 | case 'storage/unauthorized': 81 | // User doesn't have permission to access the object 82 | break 83 | 84 | case 'storage/canceled': 85 | // User canceled the upload 86 | break 87 | 88 | case 'storage/unknown': 89 | // Unknown error occurred, inspect error.serverResponse 90 | break 91 | } 92 | } 93 | } 94 | 95 | const dealData = { ...deal, id: dealId, image: imageURL } 96 | 97 | await db 98 | .collection('deals') 99 | .doc(dealId) 100 | .set(dealData) 101 | 102 | commit('ADD_DEAL', { id: dealId, dealData }) 103 | return dealId 104 | }, 105 | async POST_COMMENT(data) { 106 | try { 107 | await db 108 | .collection('deals') 109 | .doc(data.dealId) 110 | .collection('comments') 111 | .add(data) 112 | } catch (e) {} 113 | }, 114 | async VIEW_DEAL({ commit }, dealId) { 115 | const dealRef = db.collection('deals').doc(dealId) 116 | 117 | // LISTENING TO COMMENT COLLECTION CHANGE WONT WORK HERE 118 | // THIS IS CALLED BY SERVER SIDE RENDERING 119 | 120 | const deal = await dealRef.get() 121 | commit('SET_DEAL', deal.data()) 122 | }, 123 | INITIATE_LISTENING_TO_COMMENTS({ commit }, dealId) { 124 | const dealRef = db.collection('deals').doc(dealId) 125 | // THIS WILL NOT WORK AS ITS BEING RENDERED IN SERVER SIDE 126 | unsubscribeComments = dealRef 127 | .collection('comments') 128 | .orderBy('timestamp', 'desc') 129 | .limit(10) 130 | .onSnapshot((snapshot) => { 131 | const comments = snapshot.docs.map((doc) => ({ 132 | id: doc.id, 133 | ...doc.data() 134 | })) 135 | commit('SET_COMMENTS', comments) 136 | }) 137 | }, 138 | LEAVE_DEAL({ commit }) { 139 | if (isFunction(unsubscribeComments)) unsubscribeComments() 140 | commit('SET_DEAL', null) 141 | }, 142 | UPDATE_SCORE({ commit }, score) { 143 | commit('SET_SCORE', score) 144 | }, 145 | UPDATE_DEAL_SCORE({ commit, state }, { dealId, score }) { 146 | const newDeal = clone(find(state.deals, (d) => d.id === dealId)) 147 | newDeal.score = score 148 | const deals = [...state.deals.filter((item) => item.id !== dealId), newDeal] 149 | commit('SET_DEALS', deals) 150 | } 151 | } 152 | 153 | export const mutations = { 154 | SET_DEALS(state, data) { 155 | state.deals = data 156 | }, 157 | ADD_DEAL(state, data) { 158 | const { id, deal } = data 159 | state.deals[id] = deal 160 | }, 161 | SET_DEAL(state, data) { 162 | state.deal = data 163 | }, 164 | SET_COMMENTS(state, data) { 165 | state.comments = data 166 | }, 167 | ADD_COMMENTS(state, data) { 168 | state.comments = [...state.comments, ...data] 169 | }, 170 | SET_SCORE(state, score) { 171 | state.deal = { ...state.deal, score } 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- 1 | // tsconfig.json 2 | { 3 | "compilerOptions": { 4 | "target": "es2018", 5 | "module": "esnext", 6 | "moduleResolution": "node", 7 | "lib": ["esnext", "esnext.asynciterable", "dom"], 8 | "esModuleInterop": true, 9 | "experimentalDecorators": true, 10 | "allowJs": true, 11 | "sourceMap": true, 12 | "strict": true, 13 | "checkJs": false, 14 | "noEmit": true, 15 | "baseUrl": ".", 16 | "paths": { 17 | "~/*": ["./*"], 18 | "@/*": ["./*"] 19 | }, 20 | "types": ["@types/node", "@nuxt/types", "@types/jest"] 21 | }, 22 | "exclude": ["node_modules", ".nuxt"] 23 | } 24 | -------------------------------------------------------------------------------- /src/vue-shim.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default Vue 4 | } 5 | -------------------------------------------------------------------------------- /src/vue-types.d.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | 3 | declare module 'vue/types/options' { 4 | interface ComponentOptions { 5 | firebase?: object | ((this: V) => object) 6 | } 7 | } 8 | --------------------------------------------------------------------------------