908b61f5bb
Update package.json
2021-04-29 17:41:16 +02:00
Kasper Rynning-Tønnesen
e498dad860
Merge branch 'master' into feat/nodemon-for-dev
2021-03-25 22:19:42 +01:00
e637455059
Merge pull request #82 from KevinMidboe/feat/seed-tiny
...
feat: Add tiny seed for 2 wines, and 2 users
2021-03-25 22:01:09 +01:00
Kasper Rynning-Tønnesen
0e3c4d98e6
feat: Add tiny seed for 2 wines, and 2 users
2021-03-25 20:45:08 +01:00
Kasper Rynning-Tønnesen
64377b7cc0
feat: Add nodemon for automatic restarting of server
2021-03-25 20:23:42 +01:00
ea10f95a22
Replaced package-lock w/ yarn.lock.
2021-02-20 14:25:16 +01:00
bd4d833533
Updated lock file.
2021-02-20 14:23:43 +01:00
4ed912df46
Merge pull request #78 from KevinMidboe/fix/vipps-qr
...
Always generate vipps url with amount.
2021-02-20 14:21:39 +01:00
5af082784c
Always generate vipps url with amount.
...
Also update vipps component to correctly show vipps and mobile info text
in column correctly on mobile.
2021-02-20 14:11:36 +01:00
b0424a519c
Fixed drawing winner count was +1.
...
On /lottery frontend page the count of winners that is sent to frontend
over socketIO started one index higher than it should.
This was from updating how winners are saved in the backend. Our winners
array now no longer needs to be incremented with 1 from the backend.
2021-02-20 13:57:39 +01:00
33fa7c14c6
Removed src folder.
2021-02-20 13:49:01 +01:00
4a270f05b8
Merge pull request #77 from KevinMidboe/fix/personal-highscore-days-ago
...
No longer shows "0 days ago", instead human string.
2021-02-20 13:45:58 +01:00
b0000293a6
No longer shows "0 days ago", instead human string.
...
When viewing winners that won today it previously displayed "0 dager
siden", now changed to return "i dag" instead.
2021-02-20 13:41:16 +01:00
dbcd56a98b
Merge pull request #76 from KevinMidboe/feat/latest-lottery
...
Feat/latest lottery
2021-02-20 13:36:02 +01:00
8df082dd48
If todays lottery is archived show dialog.
...
Use new api/lottery/latest to check if todays lottery has already been
archived. If yes we disable button and show dialog explaining how to
reset to next weeks lottery.
2021-02-20 13:30:05 +01:00
80e6c91045
API endpoint for getting latest lottery.
2021-02-20 13:29:41 +01:00
7e2b5a5bb0
Only have fixed height on graph on desktop.
2021-02-19 09:23:10 +01:00
ac6a5195a5
Removed row-gap in banner.
2021-02-19 09:22:54 +01:00
113f286f03
More space for wines on mobile.
2021-02-19 09:22:43 +01:00
b260991116
Merge pull request #75 from KevinMidboe/feat/controllers
...
Feat/controllers - refactor entire backend and new admin interface
2021-02-19 01:19:52 +01:00
7402fb7a7c
Promise.all needs a list of promises.
2021-02-19 01:18:12 +01:00
e89952d965
Forgot this prefix when referencing data value.
2021-02-19 01:04:03 +01:00
60044859eb
Query parameters can not be constants.
2021-02-19 01:03:26 +01:00
d108f331ca
Merge branch 'feat/controllers' of github.com:KevinMidboe/vinlottis into feat/controllers
2021-02-19 01:01:20 +01:00
3388bed400
Disable registering new users.
2021-02-19 01:01:06 +01:00
2fce0e66ab
Merge branch 'master' into feat/controllers
2021-02-19 00:55:27 +01:00
704ed51db5
Prizedistribution wants winners w/ phone number.
2021-02-19 00:54:12 +01:00
48c1842b8b
When env=development use middleware to always auth.
2021-02-19 00:39:59 +01:00
7bd2e9d931
All our new routes 🎉
...
- GET /history/search
- GET /purchases
- /purchases
- /purchases/summary
- /purchases/:date
- PUT /lottery/winner/:id (not currently used)
- GET /lotteries
- POST /lottery/messages/winner/:id
2021-02-19 00:29:57 +01:00
d337329765
Use styles from global.scss.
2021-02-19 00:29:28 +01:00
83d9b30048
Request wine front & backend talk nicer togheter.
...
- requestWineController validates wine object and returns helpfull
error repsonse if anything is missing.
- requestWine uses new endpoint and calls api from within itself.
- Linting.
2021-02-19 00:29:05 +01:00
a37c08880c
Crazy breakpoints to always show filles rows.
...
Hides elements so we always show filled filled rows. The wine compoennt
does not load images before they are in the viewport, so it should not
decrease performance.
2021-02-19 00:00:30 +01:00
6b33e03aae
Call api within the component itself & linting.
2021-02-18 23:59:39 +01:00
9e25b374e0
New underlinenav, also defined all as css vars.
2021-02-18 23:57:05 +01:00
9913b5984a
Flex row class should column on mobile.
2021-02-18 23:56:51 +01:00
1d4b74b56b
Added centralized .wines-container, + misc changes.
...
- .raffleElement gets more of it's styling in the global stylesheet.
- margin class in steps, md, sm & 0.
2021-02-18 23:54:51 +01:00
f1a0f2a0f2
Button has more styles w/ added clases.
...
- .small: minimal height for content.
- .pulse-button: animate a pulsating effect, used for getting user
attention.
- .warning: new orange warning button styling, used for update buttons.
2021-02-18 23:51:05 +01:00
9b2d0f2d31
.small button has minimal height.
2021-02-18 23:49:52 +01:00
e20e952573
Label-div has some margin top from label.
2021-02-18 23:49:16 +01:00
8d3a21825d
Links always has pointer cursor & inherits color.
2021-02-18 23:48:17 +01:00
b02472ef75
Api calls done within & refactored as housekeeping.
...
Strings "Følg med på utviklingen" and "chat om trekningen" scrolls the
page content into view if clicked.
2021-02-18 23:45:13 +01:00
3f77722f4f
allLotteries w/ sort & includeWinners query opts.
2021-02-18 23:42:21 +01:00
324ca5d9bc
Date defaults to today and return response message.
2021-02-18 23:41:46 +01:00
b493fa2bea
Commands dev=backend w/o auth & watch=frontend HMR.
2021-02-18 23:39:32 +01:00
1e6ec3d4c8
Require attendee name AND number when adding.
2021-02-18 23:39:00 +01:00
1b12453df0
LotteryWinner functionality not yet used.
...
Can post winners directly with parsing of parameters and error handling.
2021-02-18 23:38:00 +01:00
2eb933f03e
Get including winners, filter by year and sort.
...
Separate function for getting all history including the winners object.
Both have sort parameter that is used within the mongo query instead of
doing it in javascript.
2021-02-18 23:30:09 +01:00
de664b3a29
Crazy breakpoints to always show filles rows.
...
Hides elements so we always show filled filled rows. The wine compoennt
does not load images before they are in the viewport, so it should not
decrease performance.
2021-02-18 23:26:05 +01:00
07dd0d43f5
Calls api from within and get as screen can fit.
2021-02-18 23:25:13 +01:00
cff64999b3
Removed unused code.
2021-02-18 23:23:37 +01:00