Abhinav commited on
Commit
e552352
·
unverified ·
1 Parent(s): a1b32fc

feat: Add toast

Browse files
pages/Avatar_Items.py CHANGED
@@ -47,3 +47,5 @@ for item in itemAvatarSets:
47
  )
48
 
49
  st.divider()
 
 
 
47
  )
48
 
49
  st.divider()
50
+
51
+ st.toast("Loaded avatar items", icon="🛒")
pages/Backgrounds.py CHANGED
@@ -42,3 +42,5 @@ for screen in screens[:5]:
42
  unsafe_allow_html=True,
43
  )
44
  st.divider()
 
 
 
42
  unsafe_allow_html=True,
43
  )
44
  st.divider()
45
+
46
+ st.toast("Loaded backgrounds", icon="🧱")
pages/Emojis.py CHANGED
@@ -47,3 +47,5 @@ for item in collections[:5]:
47
  eventName = " ".join(eventName.split("_"))
48
  st.markdown(f"Event: {eventName}")
49
  st.divider()
 
 
 
47
  eventName = " ".join(eventName.split("_"))
48
  st.markdown(f"Event: {eventName}")
49
  st.divider()
50
+
51
+ st.toast("Loaded emojis", icon="😎")
pages/Loading_Screens.py CHANGED
@@ -21,3 +21,5 @@ for screen in screens[:5]:
21
  st.header(rarity)
22
 
23
  st.divider()
 
 
 
21
  st.header(rarity)
22
 
23
  st.divider()
24
+
25
+ st.toast("Loaded screens", icon="🌌")
pages/Offers.py CHANGED
@@ -3,6 +3,8 @@ from utils.helper import chunks, getTitle
3
  from utils.models import AdvancedRoleCardOffers
4
  from utils.wolvesville import Wolvesville
5
  from typing import List
 
 
6
 
7
  api = Wolvesville()
8
 
@@ -17,15 +19,17 @@ for roles in chunks(offerList, CHUNK_SIZE):
17
  cols = st.columns(CHUNK_SIZE)
18
  for role, col in zip(roles, cols):
19
  col.markdown(
20
- f'<img src="{role.promoImageUrl}" style="height: 100px; width:100px;"/>',
21
  unsafe_allow_html=True,
22
  )
23
 
24
  advancedRoleId = role.advancedRoleId
25
  advancedRoleId = " ".join(advancedRoleId.split("-"))
26
  col.subheader(advancedRoleId)
27
- col.button(f"Ability exchange vouchers: {role.abilityExchangeVoucherCount}")
28
- col.button(f"Talismans: {role.talismanCount}")
29
- col.button(f"Loyalty Tokens: {role.loyaltyTokenCount}")
30
 
31
  st.divider()
 
 
 
3
  from utils.models import AdvancedRoleCardOffers
4
  from utils.wolvesville import Wolvesville
5
  from typing import List
6
+ from uuid import uuid4
7
+
8
 
9
  api = Wolvesville()
10
 
 
19
  cols = st.columns(CHUNK_SIZE)
20
  for role, col in zip(roles, cols):
21
  col.markdown(
22
+ f'<img src="{role.promoImageUrl}" style="height: 75%; width:75%;"/>',
23
  unsafe_allow_html=True,
24
  )
25
 
26
  advancedRoleId = role.advancedRoleId
27
  advancedRoleId = " ".join(advancedRoleId.split("-"))
28
  col.subheader(advancedRoleId)
29
+ col.button(f"Ability exchange vouchers: {role.abilityExchangeVoucherCount}", key=uuid4().hex)
30
+ col.button(f"Talismans: {role.talismanCount}", key=uuid4().hex)
31
+ col.button(f"Loyalty Tokens: {role.loyaltyTokenCount}", key=uuid4().hex)
32
 
33
  st.divider()
34
+
35
+ st.toast("Loaded offers", icon="💰")
pages/Profile_Icons.py CHANGED
@@ -24,3 +24,5 @@ for item in icons:
24
  st.write(HTML, unsafe_allow_html=True)
25
 
26
  st.divider()
 
 
 
24
  st.write(HTML, unsafe_allow_html=True)
25
 
26
  st.divider()
27
+
28
+ st.toast("Loaded icons", icon="🥶")
pages/Roles.py CHANGED
@@ -40,3 +40,5 @@ for roles in chunks(roles, CHUNK_SIZE):
40
  )
41
 
42
  st.divider()
 
 
 
40
  )
41
 
42
  st.divider()
43
+
44
+ st.toast("Loaded roles", icon="🕵️")