Commit Graph

35 Commits

Author SHA1 Message Date
KevinMidboe 836a06537a Merge branch 'master' of github.com:KevinMidboe/vinlottis 2021-05-21 17:01:43 +02:00
KevinMidboe a44a2f5e2a Use toast not alert for bingo genearte msg. 2021-05-21 17:01:15 +02:00
KevinMidboe 19c1f18ef6 Slimmer and unbranded footer for accesscode page. 2021-05-20 10:03:07 +02:00
KevinMidboe 783373da22 Linting 2021-05-20 10:01:58 +02:00
KevinMidboe 210f9ddbc9 Buttons on admin addwines page should be small. 2021-04-30 17:50:55 +02:00
KevinMidboe 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
KevinMidboe 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
KevinMidboe 7e2b5a5bb0 Only have fixed height on graph on desktop. 2021-02-19 09:23:10 +01:00
KevinMidboe e89952d965 Forgot this prefix when referencing data value. 2021-02-19 01:04:03 +01:00
KevinMidboe 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
KevinMidboe 6b33e03aae Call api within the component itself & linting. 2021-02-18 23:59:39 +01:00
KevinMidboe 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
KevinMidboe 07dd0d43f5 Calls api from within and get as screen can fit. 2021-02-18 23:25:13 +01:00
KevinMidboe 7234c2fbba Backend endpoint makes it easier consume for graph.
New endpoint has the data aggregated so we don't need to do as much in
js.
Also added simple year select when we have data spanning multiple years.
2021-02-18 23:14:22 +01:00
KevinMidboe d9de155174 Liting and compact prop for thiner styling. 2021-02-18 22:52:51 +01:00
KevinMidboe 7267c5f5bd If admin prop enable editing & more info.
Leveraging the new api supporting CRUD we check if admin prop is true
and display edit, update and delete buttons.
2021-02-18 22:50:54 +01:00
KevinMidboe 442e0ffbfd Api call from component itself and refactoring. 2021-02-18 22:15:26 +01:00
KevinMidboe 20dc2b8e38 Api call from component itself and linting. 2021-02-18 22:11:09 +01:00
KevinMidboe 4ab67877b9 New toast plugin, replacing ui/TextToast.vue.
Globally register toast plugin allows us to call this.$toast.info({})
from anywhere for a toast.
Currently styled types:
 - error
 - info
2021-02-18 21:57:29 +01:00
KevinMidboe 6968ccf389 Linting some ui components. 2021-02-18 21:54:01 +01:00
KevinMidboe 011aec3dea Tabs redesigned, update url and can show counter.
Tabs have been redesigned and can now display a counter. This counter
can be set by emiting a "counter" event from the child.
Tabs read and set a ?tab={slug} query parameter when changing tab, when
loaded we check for this parameter to automatically select the correct
tab.
2021-02-18 21:10:14 +01:00
KevinMidboe 3906816b80 Norwegian text for footer. 2021-01-08 12:16:38 +01:00
KevinMidboe 8044759264 Header menu routes have animated arrows on hover. 2021-01-02 14:27:45 +01:00
KevinMidboe 342651a90c Footer gets link to github repo & mailto address. 2021-01-02 13:37:07 +01:00
KevinMidboe 326101f7d2 New vipps-pill component opens vipps when clicked. 2021-01-02 13:28:17 +01:00
KevinMidboe dfe89160b1 Aling text center. 2021-01-02 13:18:35 +01:00
KevinMidboe 9ab3c8c83d Displays logged-in username and moved logout btn. 2021-01-02 13:17:30 +01:00
KevinMidboe 814ee4fa7d Drawing bool for diff text before & during draw.
- Updated style of winners container.
- Moved out header.
- Extra info-text in container before and during the drawing of first
winner.
2020-12-31 17:26:08 +01:00
KevinMidboe 18079ae312 Increased page-size from 10 to 100. 2020-12-31 17:25:15 +01:00
KevinMidboe 8275292526 Doesn't keep its own header and set max-height. 2020-12-31 17:25:02 +01:00
KevinMidboe e61a6c0432 Attendees list has hr seperators and max-height. 2020-12-31 17:23:25 +01:00
KevinMidboe d0cf99e8f8 Slowed down animation and renamed variables.
- Unified html elements for smaller footprint.
- winnersNameDrawn is used to have separte messages for before and after
the winners name is decided.
2020-12-31 17:22:09 +01:00
KevinMidboe 50ea05cad3 Winner draw writes out winner number.
The websocket message now includes the number of winners and this is
used to spell out the current drawn winner's position.
2020-12-31 17:19:56 +01:00
KevinMidboe 1839810e66 Dev-server proxies /api and WS request to backend. 2020-12-06 23:21:44 +01:00
KevinMidboe ce7e05fd43 Renamed /src to /frontend. 2020-12-06 21:48:51 +01:00