Commit Graph

908 Commits

Author SHA1 Message Date
KevinMidboe 5ebd15d14d Wine styling more predictable.
Wine now only uses inline slot when on desktop.
Wine link also parses the url for the name of the site, e.g. vivino.com
-> Les mer på vivino.
Moved around some DOM elements so scaling between screen sizes is more
predictable.
2020-03-13 19:20:05 +01:00
Kasper Rynning-Tønnesen 35e736a9d9 Add update-event for winners/attendees 2020-03-13 17:13:04 +01:00
Kasper Rynning-Tønnesen 3f832da6db Guarding with SW and a dummy-text if there is no attendees 2020-03-13 17:09:45 +01:00
Kasper Rynning-Tønnesen bfbfa5a8bc Fixed so io is being sent in a better manner, and listening on the same port as the rest 2020-03-13 17:02:28 +01:00
Kasper Rynning-Tønnesen b35dd5a971 Much virtual many lotteries 2020-03-13 16:37:08 +01:00
KevinMidboe 6463a53dd7 Winners use new inlineslot for better desktop formatting. 2020-03-11 00:37:10 +01:00
KevinMidboe b475cca803 Edit slot gets a wrapping container that sets up flex formatting of children. 2020-03-11 00:36:41 +01:00
KevinMidboe 950a70d763 inlineSlot prop to have slot content displayed under other content on right side of wine image. For mobile components should width: 100% to expand out of this area for more explicit formatting. 2020-03-11 00:29:54 +01:00
KevinMidboe bfdae13364 Moved winner display from wine.vue to AllWinesPage and use slots. 2020-03-11 00:27:46 +01:00
KevinMidboe f283ac46e6 Merge branch 'master' of github.com:kevinmidboe/vinlottis 2020-03-10 19:04:44 +01:00
KevinMidboe 056ae43733 Default color val is null, stricter localWinners statement. 2020-03-10 19:03:22 +01:00
KevinMidboe fc3b9d3eb5 If configs apiUrl not defined fallback to origin.
Also removed dependency of login and register to redirect response from
server. Now we send json data with status = 200 when successfully
login/registered.
Username input element also is set to not capitalize input.
2020-03-10 19:00:51 +01:00
KevinMidboe 410dfcca44 Forgot to login with passports req.logIn middleware. 2020-03-10 18:59:18 +01:00
KevinMidboe 1411237b0b Hacky import of bigInt for safari gets even hackier. 2020-03-10 18:57:37 +01:00
KevinMidboe 7ff80ef475 Merge pull request #11 from KevinMidboe/refactor/everything
Refactor/everything
2020-03-10 10:23:30 +01:00
KevinMidboe 78fb6f30de Desktop friendly styling for login and create pages. 2020-03-10 10:16:48 +01:00
KevinMidboe 0fc7e65612 When setting colors from localstorage we set to null if value is 0. 2020-03-10 10:16:32 +01:00
KevinMidboe dd4875698c All v-for gets a key 2020-03-10 10:15:53 +01:00
KevinMidboe 6c22b0e54f Max width on mobile to keep two rows. 2020-03-10 01:07:00 +01:00
KevinMidboe 05d3530035 No need to remove localstorage item, and reload to reset everything. 2020-03-10 01:06:47 +01:00
KevinMidboe 203ca83202 Input elements in wine edit view now have label-div styling.. 2020-03-10 01:00:05 +01:00
KevinMidboe ebdaf4a4da Safari does not have BigInt implemented 🤯 2020-03-10 00:52:41 +01:00
KevinMidboe e5319662b8 Chart functions moved to /api.js 2020-03-10 00:50:55 +01:00
KevinMidboe 035b129c9f Barcode library 2020-03-10 00:50:35 +01:00
KevinMidboe 20421afd4d Wine has bottom slot where components or ui elements can be injected. 2020-03-10 00:28:42 +01:00
KevinMidboe ded1b2a084 Vipps now uses __PRICE__ from env variables. 2020-03-10 00:27:11 +01:00
KevinMidboe 0a2cee479a Removed static definition of api endpoints, import from /api.js 2020-03-10 00:26:49 +01:00
KevinMidboe 386551baaf Moved label-div and button styling to global stylesheet. New primary color in variables. 2020-03-10 00:26:14 +01:00
KevinMidboe 54d9060f5f Include new wineinfo route. 2020-03-10 00:24:33 +01:00
KevinMidboe a4960c41b1 /log/schema endpoint for getting prelottery schema template. 2020-03-10 00:23:49 +01:00
KevinMidboe 6c05a829ac Use new api function and now tickets animate whenever input is changed. 2020-03-10 00:23:09 +01:00
KevinMidboe d04164280f Dev config should also use create template. 2020-03-10 00:21:45 +01:00
KevinMidboe 3cf3151677 New lottery.config property for setting api url. 2020-03-10 00:21:16 +01:00
KevinMidboe 1ce0d02b72 Use new mustBeAuthenticated middleware. 2020-03-10 00:20:32 +01:00
KevinMidboe 9b7894ca7d Login and register pages uses api functions, new styling and better handling in backend. 2020-03-10 00:19:01 +01:00
KevinMidboe 43bf312007 Register page now uses api functions and can scan from vinmonopolet qr codes. Re-did formatting and styling on page. 2020-03-10 00:17:58 +01:00
Kasper Rynning-Tønnesen 72d67d862d Not crashing without configs anymore 2020-03-04 08:52:57 +01:00
Kasper Rynning-Tønnesen f28311a709 Merge branch 'master' of github.com:KevinMidboe/vinlottis 2020-03-02 13:33:54 +01:00
Kasper Rynning-Tønnesen 6589425e54 Not crashing when not supplying push-data thingies 2020-03-02 13:33:44 +01:00
KevinMidboe 286ecfad1b Removed greenkeeper badge 2020-03-02 13:19:35 +01:00
KevinMidboe 45c994d473 Update README.md 2020-02-28 15:36:20 +01:00
Kasper Rynning-Tønnesen 66d42340b5 More winners, wines and link to see all wines 2020-02-28 15:30:08 +01:00
KevinMidboe d6ca19ecb8 Reset startup script to not use pm2 2020-02-21 17:38:04 +01:00
Kasper Rynning-Tønnesen 9835292738 some pm2 stuff 2020-02-21 16:23:27 +01:00
Kasper Rynning-Tønnesen d3691ebdab Better sizing on container 2020-02-21 16:00:59 +01:00
Kasper Rynning-Tønnesen 4dcd670bc1 More meta-tags 2020-02-21 15:58:10 +01:00
Kasper Rynning-Tønnesen 77233cb4c4 Meta tags are cool 2020-02-21 15:56:25 +01:00
Kasper Rynning-Tønnesen 68a0700f7f Removing notifications completely from safari 2020-02-21 15:47:10 +01:00
Kasper Rynning-Tønnesen 7299056369 Safari is stupid 2020-02-21 15:36:29 +01:00
Kasper Rynning-Tønnesen 2134bfc6d2 Less dynamic-loaded, more cache 2020-02-21 15:33:56 +01:00