22
22
import gtaSound from " @/assets/gta san.mp3" ;
23
23
import blowjoberSound from " @/assets/sanya-loh.mp3" ;
24
24
import chinaSound from " @/assets/china sound.mp3" ;
25
+ import chinaLoveSound from " @/assets/loverman.mp3" ;
25
26
import penisMusic from " @/assets/penis music.mp3" ;
27
+ import socialCreditPlusMusic from " @/assets/chin chen hong chi.mp3" ;
28
+ import socialCreditMinusMusic from " @/assets/siren.mp3" ;
29
+ import { toast } from ' vue3-toastify' ;
30
+ import ' vue3-toastify/dist/index.css' ;
26
31
27
32
export default {
28
33
name: " MusicOptions" ,
34
+ setup () {
35
+ const rndInt = (min , max ) => {
36
+ return Math .floor (Math .random () * (max - min + 1 ) + min);
37
+ }
38
+ const successNotify = () => {
39
+ toast .success (` + ${ rndInt (100 , 1000 )} Social credits` , {
40
+ autoClose: 2000 ,
41
+ });
42
+ }
43
+ const dangerNotify = () => {
44
+ toast .error (` - ${ rndInt (100000 , 1000000 )} Social credits` , {
45
+ autoClose: 2000 ,
46
+ });
47
+ }
48
+ return { successNotify, dangerNotify };
49
+ },
29
50
props: {
30
51
audio: {
31
52
type: Object ,
@@ -47,27 +68,39 @@ export default {
47
68
option_label: ' nigga chan' ,
48
69
img_src: require (' ../assets/sanya-loh__music-nigga-head-Photoroom.png-Photoroom.png' ),
49
70
audio_src: gtaSound,
71
+ social_credit: - 1 ,
50
72
},
51
73
{
52
74
id: 2 ,
53
75
option_name: ' china_credit_gimn' ,
54
76
option_label: ' china credit gimn' ,
55
77
img_src: require (' ../assets/sanya-loh__music-nigga-head-second.png' ),
56
78
audio_src: chinaSound,
79
+ social_credit: 1 ,
57
80
},
58
81
{
59
82
id: 3 ,
83
+ option_name: ' china_love' ,
84
+ option_label: ' china love' ,
85
+ img_src: require (' ../assets/Love_China_Flag.png' ),
86
+ audio_src: chinaLoveSound,
87
+ social_credit: 1 ,
88
+ },
89
+ {
90
+ id: 4 ,
60
91
option_name: ' penis_music' ,
61
92
option_label: ' penis music' ,
62
93
img_src: require (' ../assets/penis.png' ),
63
94
audio_src: penisMusic,
95
+ social_credit: - 1 ,
64
96
},
65
97
{
66
- id: 4 ,
98
+ id: 5 ,
67
99
option_name: ' sanya_sosi' ,
68
100
option_label: ' sanya blowjober' ,
69
101
img_src: require (' ../assets/728757-200.png' ),
70
102
audio_src: blowjoberSound,
103
+ social_credit: - 1 ,
71
104
},
72
105
]
73
106
}
@@ -80,6 +113,13 @@ export default {
80
113
this .isMenuOpened = ! this .isMenuOpened ;
81
114
},
82
115
chooseAudio (item ) {
116
+ if (item .social_credit > 0 ) {
117
+ this .successNotify ();
118
+ new Audio (socialCreditPlusMusic).play ();
119
+ } else {
120
+ this .dangerNotify ();
121
+ new Audio (socialCreditMinusMusic).play ();
122
+ }
83
123
this .$emit (' music-stop' );
84
124
this .$emit (' music-replace' , new Audio (item .audio_src ), item);
85
125
if (this .clicked ) {
@@ -90,7 +130,35 @@ export default {
90
130
}
91
131
</script >
92
132
93
- <style lang="scss" scoped>
133
+ <style lang="scss">
134
+
135
+ .Toastify__toast-theme--light {
136
+ background : #c14a42 ;
137
+ color : white ;
138
+
139
+ & .Toastify__toast--error {
140
+ .Toastify__toast-icon {
141
+ background-image : url (" ../assets/lost social credit a lot.png" );
142
+ }
143
+ }
144
+
145
+ & .Toastify__toast--success {
146
+ .Toastify__toast-icon {
147
+ background-image : url (" ../assets/plus-social-credits.png" );
148
+ }
149
+ }
150
+ }
151
+
152
+ .Toastify__toast-icon {
153
+ width : 100px ;
154
+ height : 100px ;
155
+ background-size : 100px 100px ;
156
+
157
+ svg {
158
+ display : none ;
159
+ }
160
+ }
161
+
94
162
.sanya-loh__music-wrapper {
95
163
display : grid ;
96
164
gap : 10px ;
0 commit comments