ac829052b6
Wine models now have extra year field.
2021-01-26 22:55:43 +01:00
1b1a99ccc3
Linting and more clear function names.
2021-01-26 22:43:18 +01:00
5e018f071d
Prize distribution for selecting wines.
...
Moved the same functionality out from lottery.js and simplified a bit.
Now the backend also sends with wines to pick from.
When hitting the controller we check that the user is the next user in
line.
2021-01-26 22:42:33 +01:00
939e7e34df
All CRUDS on winners for current lottery.
2021-01-26 22:37:36 +01:00
33070ae31a
Keeps more information when adding prelottery wine
2021-01-26 22:35:12 +01:00
6e02c5e393
Reflecting changes, isolated winner from lottery.
2021-01-26 22:32:14 +01:00
b596dc28e8
Prelotterywine has it's own repo and ctrl.
2021-01-26 22:30:19 +01:00
03c0513da3
Rm from lottery.js attendee has own repo and ctrl.
2021-01-26 22:28:27 +01:00
afab4387cc
Renamed winner.js to history.js.
2021-01-26 22:18:47 +01:00
1c1f52308f
Add winner w/ wine to highscore.
2021-01-26 22:12:42 +01:00
f5d3b16f27
isAdmin default value = false.
2021-01-24 15:36:03 +01:00
b5b61784cc
Add winners manually by posting /lottery/winners.
2021-01-24 15:34:58 +01:00
2f3a6aeba7
Catch exceptions when deleting wines from lottery.
2021-01-24 14:03:27 +01:00
84fa1ff925
Linted.
2021-01-24 14:02:53 +01:00
53135acc05
Get/add/update/delete winners from lottery.
2021-01-24 14:01:36 +01:00
fac50805bd
Get stores from vinmonopolet.
...
Update all endpoint names to distinguish between wine and store actions.
Renamed wineController to vinmonopoletController.
2021-01-24 14:01:04 +01:00
6d5f0e824f
Lottery wine functions & controller.
...
Split all wine/prelottrey wines into separate controller.
Now also have endpoints for deleting or updating single wine by id.
2021-01-24 12:12:52 +01:00
4d822ccb64
Isolated lottery attendee functs to it's own file.
2021-01-24 11:10:49 +01:00
7aa5f7e9ce
Add, update and delete attendees to lottery.
2021-01-24 11:02:04 +01:00
18d8c2c7ca
Lottery, get/delete attendees.
...
Changed so get attendees no longer is done in two endpoints, now we use
req.isAuthenticated() to check if we want to return full or minimal json
data about each attendee.
2021-01-24 10:14:00 +01:00
edc4d26647
User logout can happen in controller.
2021-01-24 10:08:39 +01:00
e07e6ae09a
Winner controller, winners by date, color or name.
...
Winner controller replaces a lot of what happens in retrieve did for
aggregating when and what had been won. Now this is more clearly defined
in winner.js.
Also leverage mongo's query more than sorting and aggregating data like
previous implementation where a lot happened in js.
2021-01-24 10:05:00 +01:00
93854bc131
Updated text.
2021-01-22 12:40:42 +01:00
872f1f5fa3
Nicer styling of salgsbetingelser.
2021-01-22 12:40:18 +01:00
ccba3e5f10
Merge pull request #74 from KevinMidboe/feat/better-today-wines-layout
...
fix todays wines layout
2021-01-22 12:36:12 +01:00
8d320e73c0
Router gets salgsbetingelser.
2021-01-22 12:33:23 +01:00
bfa13892d5
Renamed salgsbetingelser to SalgsbetingelserPage.
2021-01-22 12:33:13 +01:00
Adrian Thompson
c430d07703
Merge branch 'master' of github.com:KevinMidboe/vinlottis into feat/better-today-wines-layout
2021-01-22 12:31:07 +01:00
Adrian Thompson
3ed0ce7dac
add grid
2021-01-22 12:24:14 +01:00
e36c6b42eb
Merged master into feature branch.
2021-01-22 12:18:03 +01:00
11b988ba19
Added salgsbetingelser page.
2021-01-22 12:17:04 +01:00
e9ece6963e
/by-color endpoint for sort all winners by color.
...
Can also include query parameter includeWines for resolved wine
references.
2021-01-17 17:26:37 +01:00
53780878af
Renamed to winners. Winners gets controller setup.
...
Rewrote everything that happened in history to better take advantage of
monogdb instead of doing everything in js.
Our endpoints become:
- /winners - getAll w/ includeWines and sort query params.
- /winners/latest - latest winners grouped w/ includeWines query
params.
- /winners/by-date - all winners grouped by date w/ includeWines and
sort.
- /winners/by-date/:date - get winners per epoch or string date.
- /winners/by-name/:name - get winner by name parameter w/ sort for
wins direction.
2021-01-17 16:55:57 +01:00
5e06a3fc28
ChatHistory behaved like controller already, renamed.
2021-01-16 14:23:02 +01:00
54c6c0eb97
History actions now have a controller setup.
2021-01-16 12:33:56 +01:00
e754f0a909
Wine ctrl for search wineinfo by query, ean or id.
2021-01-15 19:17:12 +01:00
a010641a8e
Renamed wineinfo -> vinmonopolet.
2021-01-15 19:16:46 +01:00
89389ddc59
Renamed lottery -> history.
2021-01-15 19:16:15 +01:00
c03f5aa0cf
Now requestAll returns object w/ wine within.
...
Also some housekeeping.
2021-01-11 20:56:14 +01:00
ca6f6cb2ba
Request new wine response includes success bool.
...
Displays alert instead of modal if not true.
2021-01-11 20:54:48 +01:00
4043954f95
Split request into controller and repo.
...
Also try returning better error message on exceptions and check for
errors in payload to return well-defined errors.
2021-01-11 20:52:22 +01:00
fc69accea3
Spacing and wrapping of virtuallottery wines.
2021-01-08 12:38:30 +01:00
3906816b80
Norwegian text for footer.
2021-01-08 12:16:38 +01:00
6c4b6588d2
Opacity should have float value.
2021-01-02 14:42:14 +01:00
8044759264
Header menu routes have animated arrows on hover.
2021-01-02 14:27:45 +01:00
242aa28847
Added login route to header menu.
2021-01-02 14:27:26 +01:00
f34857f5a8
If no tickets bought default 0 all colors.
2021-01-02 14:05:47 +01:00
593de53073
Display number of wines to title.
2021-01-02 14:05:28 +01:00
938b92cf0d
Merge pull request #70 from KevinMidboe/refactor/virtual-lottery
...
Refactor/Virtual lottery
2021-01-02 13:52:58 +01:00
342651a90c
Footer gets link to github repo & mailto address.
2021-01-02 13:37:07 +01:00