Commit Graph

422 Commits

Author SHA1 Message Date
KevinMidboe ace222749a Person highscore overview page. 2020-09-06 22:32:07 +02:00
KevinMidboe 1aa266ad71 Merge pull request #21 from KevinMidboe/refactor/routeSeparation
Refactor/route separation
2020-09-06 16:00:11 +02:00
KevinMidboe 20dd638133 Resovled merge conflict in yarn.lock. 2020-09-06 15:58:17 +02:00
KevinMidboe f6c1e35180 Removed deprecated package: requests. 2020-09-06 15:56:09 +02:00
KevinMidboe bf0670c285 Reflect backend changes. Winners nested in lottery. 2020-09-06 15:20:11 +02:00
KevinMidboe 7e08e2d628 Finer control when updating lottery.
Lottery update now has endpoint/functions for also submitting winners,
wines and lottery (what's bought) separatly.
2020-09-06 15:17:56 +02:00
KevinMidboe 4b926c9ece Forward /winner/:id to frontend endpoint. (w/ hash) 2020-09-06 15:17:16 +02:00
KevinMidboe a7f4f9af27 Utils file. Includes date format function. 2020-09-06 14:42:27 +02:00
KevinMidboe ec1685dfa8 Adding attendee shows toast not alert.
Also better feedback when no colors are defined or name/phone number
missing.
2020-09-06 14:41:04 +02:00
KevinMidboe f171853c22 Register wines, lottery and winners separatly.
Register page now uses new /lottery, /lottery/wines and /lottery/winners
endpoints for sending information separatly. This allows lottery
(colors, bought total & stolen), lottery wines (prelottery wines) and
lottery winners (wine mapped to winner) sent. Before /lottery/winners &
/lottery was sent together to a single endpoint.
2020-09-06 14:34:43 +02:00
KevinMidboe c1f0a1b7f3 Padding for air around elements. 2020-09-06 14:33:45 +02:00
KevinMidboe 55b3552786 Flex wrap winner raffles to not overflow vertical. 2020-09-06 14:32:29 +02:00
KevinMidboe 4f9b4ad3cf Some margin between button and text. 2020-09-06 14:29:30 +02:00
KevinMidboe ef035d3c44 Set line-height for vin-button same as font-size. 2020-09-06 14:22:01 +02:00
KevinMidboe 7684fde8e5 global rule for flex column. 2020-09-06 14:21:45 +02:00
KevinMidboe 6dc4c9080e Reflecting changes from renaming backend routes. 2020-09-06 14:21:10 +02:00
KevinMidboe 8268efe625 Include positioning stylesheet in root Vue comp. 2020-09-06 14:20:37 +02:00
KevinMidboe a30dc2a419 Renamed & moved frontend router. 2020-09-06 14:20:01 +02:00
KevinMidboe 1d714d1e5a Removed router, refactored virtual functoinality.
- Removed the router from virtualRegistration so router.js handles routing
and virtualRegistration only exports functions.
- Refactored what code is in each of the virtual(Lottery/Registration)
files. /finish in Lottery now only sends update to all winners and
delegates sending to next winner in line, and setting timeout to
virtualRegistration.
- Better error handling and all responses from virtualRegistration has
message in json response.
2020-09-06 14:14:26 +02:00
KevinMidboe 4f054a0437 Message uses node's https insteadof requests.
Messages re-written to use nodes built in https over external requests
package.
Also updated message functions to always return promises and have
clearer names for what their purpose is.
2020-09-06 14:13:36 +02:00
KevinMidboe dde8fe1cbe Renamed app > router.js. VirtualLottery in router. 2020-09-06 14:07:18 +02:00
Adrian Thompson f5768044e8 Merge branch 'master' of github.com:KevinMidboe/vinlottis 2020-09-02 09:51:45 +02:00
Adrian Thompson 1e5c1faa5b quick css fix 2020-09-02 09:51:11 +02:00
KevinMidboe fd17e11e87 Register io to all req with app.set('socketio'). 2020-08-28 18:46:35 +02:00
KevinMidboe 51a7107802 Endpoints defined and exported as functions.
Changed all routes to functions and export them to app.js to handle the
registration of route using the functions exported from this file.
2020-08-28 18:45:33 +02:00
KevinMidboe 3256c62a39 Merge pull request #20 from KevinMidboe/dependabot/npm_and_yarn/elliptic-6.5.3
Bump elliptic from 6.5.2 to 6.5.3
2020-08-27 00:52:10 +02:00
KevinMidboe 827eb716d7 Define running port as var and log it. 2020-08-27 00:33:03 +02:00
KevinMidboe a6a84e4b29 Api files no longer return router, exports usable functions. 2020-08-27 00:31:01 +02:00
KevinMidboe ec80aa8bcc All api routes & their respective functions. 2020-08-27 00:29:01 +02:00
KevinMidboe 262efa0380 All api endpoints are moved to apiRouter. 2020-08-27 00:28:35 +02:00
KevinMidboe 5fc3bca01a Merge pull request #18 from KevinMidboe/feat/lottery-endpoint
Feat/lottery endpoint
2020-08-14 16:56:47 +02:00
dependabot[bot] 8431e52e0a Bump elliptic from 6.5.2 to 6.5.3
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-01 11:01:41 +00:00
KevinMidboe 171529497d Merge pull request #17 from KevinMidboe/refactor/chat-history
Refactor/chat history
2020-06-26 13:28:59 +02:00
KevinMidboe eeb14786e8 Merge branch 'feat/lottery-endpoint' of github.com:kevinmidboe/vinlottis into feat/lottery-endpoint 2020-06-14 14:32:36 +02:00
KevinMidboe 9b9d5bd528 Winners component has title prop but defaults "Vinnere" 2020-06-14 14:32:05 +02:00
KevinMidboe 6633994940 Registered HistoryPage api funcs & router endpoint. 2020-06-14 14:31:34 +02:00
KevinMidboe b4b6643581 HistoryPage shows winners from prev lotteries.
The design of this pages sucks, but Winners.vue matched pretty well.
Need to have it's own design.
2020-06-14 14:30:45 +02:00
KevinMidboe f059d6f662 New /lottery endpoint for server. 2020-06-14 14:28:47 +02:00
KevinMidboe ab8fd9dd83 Insteadof mount all tabs & hiding,use :is to mount 2020-06-14 13:39:16 +02:00
KevinMidboe efb5dfcd3e Prevent stopping execution. 2020-06-14 13:36:59 +02:00
KevinMidboe a84441078c Opaque gradient over -1 msg & can fetch n+1 pages
- An opaque gradient overlay on the top message. This creates the illusion
that there are more messages under that the user can scroll to.
- Changed the formatting of the chat messages.
- Repaired the scrolling that happens on load and when chatHistory prop
list updates. If a full page arrives we want to keep the position, but
on load and a single new message we want to jump to the bottom of the
list.
- Emitting loadMoreHistory expects a expanded list of chatHistory.
2020-06-14 13:36:16 +02:00
KevinMidboe 1e0a76757a Parent now pages history on event.
loadMoreHistory func uses new variables historyPage and historyPageSize
to fetch the next x = historyPageSize elements with skip, take query
parameters for /history endpoint before prepending the received messages
to the existing.
2020-06-14 13:25:54 +02:00
KevinMidboe 267b2df2d7 New /lottery endpoint for server. 2020-05-30 10:27:36 +02:00
KevinMidboe 368b6a29aa Renamed api/lotteries.js -> api/lottery.js 2020-05-30 10:25:37 +02:00
KevinMidboe fa59d71717 Lottery endpoints for all, by-date or by-name.
Can now get all highscore entries grouped by shared highscore dates.
This gives a complete list of all the lotteries and their winners.
 - By-date takes a epoch date to match a given lottery.
 - By-name uses query parameter `name` for searching for all winnings by
name.
 - Both /by-date and /by-name don't just return the wine _id, but
resolves it's wine reference.
2020-05-30 10:24:56 +02:00
Kasper Rynning-Tønnesen 6e380c5f5c Timeouts are nice 2020-04-17 16:29:19 +02:00
Kasper Rynning-Tønnesen 37cb4a8f56 Add alerts for success/non-success on SMS sendings 2020-04-17 15:54:34 +02:00
Kasper Rynning-Tønnesen 7aa47b08ad Fix automatic choser issue 2020-04-17 15:50:22 +02:00
Kasper Rynning-Tønnesen cab623b3f7 url 2020-04-06 09:52:36 +02:00
Kasper Rynning-Tønnesen 4051c04c91 token -> gatewayTokeng 2020-04-06 09:42:19 +02:00