KevinMidboe
e20e952573
Label-div has some margin top from label.
2021-02-18 23:49:16 +01:00
KevinMidboe
8d3a21825d
Links always has pointer cursor & inherits color.
2021-02-18 23:48:17 +01:00
KevinMidboe
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
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
cff64999b3
Removed unused code.
2021-02-18 23:23:37 +01:00
KevinMidboe
710f276a9b
Api call from component itself.
2021-02-18 23:23:16 +01:00
KevinMidboe
6e0b2b76fe
New admin pages with better isolated functionality.
...
Draw winner page has:
- Better user feedback
- Knows how many wines are left
- Separat button for starting sms prize distribution.
- Edit, update and delete wine by id.
RegisterWinePage:
- Import wine by url.
- Edit, update and delete wine by id.
2021-02-18 23:18: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
be70fa6ddf
No longer hides if mouse leaves before timeout ends.
2021-02-18 22:49:02 +01:00
KevinMidboe
30a9d30b1e
Renamed to reflect archive lottery functionality.
2021-02-18 22:48:37 +01:00
KevinMidboe
2734e9a840
Now dedicated to submitting/archiving lottery.
...
Removed all other features than adding raffles bought, money received
and mapping of wines and winners.
Also now does api calls from within the component, not external api.js.
Better validation and use of toast plugin for user feedback.
2021-02-18 22:42:25 +01:00
KevinMidboe
3886313351
Renamed to reflect admin attendee functionality.
2021-02-18 22:22:25 +01:00
KevinMidboe
fc261b9274
Rewrote to only contain add attendee functions.
...
The ui for adding a new user is much more friendly and enables adding
using only keyboard.
Leveraging the new api design supporting CRUD we can update & delete
attendees individually.
2021-02-18 22:19:30 +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
8bd41cc691
Much simpler using prizeDistribution endpoints.
2021-02-18 21:44:33 +01:00
KevinMidboe
eaf57115e8
Liting.
2021-02-18 21:42:03 +01:00
KevinMidboe
cded690fba
Api call from component itself and linting.
2021-02-18 21:41:23 +01:00
KevinMidboe
eb9e7d4b43
When mounted focus on username input.
2021-02-18 21:35:32 +01:00
KevinMidboe
b2755add12
Api call from component itself and linting.
2021-02-18 21:35:18 +01:00
KevinMidboe
b5cca00ed4
Liting
2021-02-18 21:18:01 +01:00
KevinMidboe
2cf4095b97
Api call from component itself and linting.
2021-02-18 21:17:22 +01:00
KevinMidboe
72c1896747
Do api call from within the component itself.
2021-02-18 21:15:21 +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
b57fb5f1f8
Admin gets new tabs.
...
Tabs for registering wines, adding attendees, drawing winner,
registering/archiving lottery and sending push notifications.
Each tab also has a slug and counter attribute.
2021-02-18 21:08:37 +01:00
KevinMidboe
c03f5aa0cf
Now requestAll returns object w/ wine within.
...
Also some housekeeping.
2021-01-11 20:56:14 +01:00
KevinMidboe
ca6f6cb2ba
Request new wine response includes success bool.
...
Displays alert instead of modal if not true.
2021-01-11 20:54:48 +01:00
KevinMidboe
fc69accea3
Spacing and wrapping of virtuallottery wines.
2021-01-08 12:38:30 +01:00
KevinMidboe
3906816b80
Norwegian text for footer.
2021-01-08 12:16:38 +01:00
KevinMidboe
6c4b6588d2
Opacity should have float value.
2021-01-02 14:42:14 +01:00
KevinMidboe
8044759264
Header menu routes have animated arrows on hover.
2021-01-02 14:27:45 +01:00
KevinMidboe
242aa28847
Added login route to header menu.
2021-01-02 14:27:26 +01:00
KevinMidboe
f34857f5a8
If no tickets bought default 0 all colors.
2021-01-02 14:05:47 +01:00
KevinMidboe
593de53073
Display number of wines to title.
2021-01-02 14:05:28 +01:00
KevinMidboe
342651a90c
Footer gets link to github repo & mailto address.
2021-01-02 13:37:07 +01:00
KevinMidboe
f115ee79e6
Added element grid order for mobile styling.
...
- Added styling for positioning and styling on mobile.
- New vippsPill component for smaller vipps button when on mobile.
2021-01-02 13:28:57 +01:00
KevinMidboe
326101f7d2
New vipps-pill component opens vipps when clicked.
2021-01-02 13:28:17 +01:00
KevinMidboe
fea81dcd63
Desktop-/mobile-only css classes.
2021-01-02 13:19:16 +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
7a2b5600c4
Fetch and display todays wines.
2020-12-31 17:29:53 +01:00
KevinMidboe
30b63a8e61
Page styles re-written and updated!
2020-12-31 17:28:55 +01:00
KevinMidboe
d59d6fbd6c
vin-link font-size should be inherited.
2020-12-31 17:27:54 +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