Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit d3e550f

Browse files
authored
Merge branch 'master' into net8floz-patch-7
2 parents 6027b43 + 808958a commit d3e550f

File tree

7 files changed

+184
-20
lines changed

7 files changed

+184
-20
lines changed

src/api/voting.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@ import request from "./request";
44
function processBallotResponse(result) {
55
if (result.items) {
66
result.items = result.items.map(item => {
7-
return { id: item[0], text: item[1], numVotes: item[2],
8-
firstName: item[3], lastName: item[4], username: item[5],
7+
return {
8+
id: item[0],
9+
text: item[1],
10+
numVotes: item[2],
11+
firstName: item[3],
12+
lastName: item[4],
13+
username: item[5],
914
displayName: item[6],
10-
...{ initials: initials(item) } };
15+
...{ initials: initials(item) }
16+
};
1117
});
1218
}
1319
return result;
1420
}
1521

1622
function lastInitial(item) {
17-
if (item[4]) { // lastName
23+
if (item[4]) {
24+
// lastName
1825
return item[4][0];
1926
}
2027

@@ -23,10 +30,12 @@ function lastInitial(item) {
2330
}
2431

2532
function firstInitial(item) {
26-
if (item[3]) { // firstName
33+
if (item[3]) {
34+
// firstName
2735
return item[3][0];
2836
}
29-
if (item[6]) { // displayName
37+
if (item[6]) {
38+
// displayName
3039
return item[6][0];
3140
}
3241

src/plugins/router.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,13 @@ const routes = [
202202
children: [
203203
{
204204
path: "voting-tips",
205-
name: "voting-faq",
206-
component: () => import("@/views/Public/FAQ/VotingFAQ")
205+
name: "voting-tips",
206+
component: () => import("@/views/Public/VotingFAQ")
207+
},
208+
{
209+
path: "voting-rules",
210+
name: "voting-rules",
211+
component: () => import("@/views/Public/VotingRules")
207212
}
208213
]
209214
},

src/styles/ballot-modal.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
.v-dialog {
2+
width: fit-content;
3+
max-width: 90%;
4+
}
5+
16
.v-card.ballot-modal {
27
padding: 0;
38
height: 600px;
9+
width: fit-content;
10+
min-width: 1000px;
411

512
pre,
613
code {

src/views/Public/FAQ/VotingFAQ.vue renamed to src/views/Public/VotingFAQ.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,11 @@
128128

129129
<script>
130130
import PageCard from '@/components/PageCard';
131-
import FAQCard from './FAQCard';
132131
133132
export default {
134-
name: 'faq',
133+
name: 'voting-faq',
135134
components: {
136135
PageCard,
137-
FAQCard,
138136
},
139137
};
140138
</script>
141-
142-
<style lang="scss" scoped>
143-
.faq {
144-
padding-top: 12px;
145-
padding-bottom: 12px;
146-
font-family: 'Barlow', sans-serif !important;
147-
}
148-
</style>

src/views/Public/VotingRules.vue

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
<template>
2+
<v-container>
3+
<v-row align="center" justify="center">
4+
<v-col cols="12" sm="12" md="12">
5+
<page-card>
6+
<template #title>
7+
<v-toolbar-title>Voting Rules and Regulations</v-toolbar-title>
8+
</template>
9+
<div class="faq">
10+
<v-card-text>
11+
NO PURCHASE IS NECESSARY TO ENTER OR WIN. A PURCHASE DOES NOT INCREASE THE CHANCES OF WINNING.
12+
</v-card-text>
13+
14+
<v-card-text>
15+
1. Eligibility: This code challenge voting phase (“The Campaign”) is open only to those who correctly answered the final boss level of the coding
16+
challenge. The Campaign is subject to all applicable federal, state, and local laws and regulations. Void where prohibited.
17+
</v-card-text>
18+
19+
<v-card-text>
20+
2. Agreement to Rules: By participating, the Contestant (“You”) agree to be fully unconditionally bound by these Rules, and You represent and
21+
warrant that You meet the eligibility requirements. In addition, You agree to accept the decisions of CodeWizardsHQ as final and binding as it
22+
relates to the content of this Campaign.
23+
</v-card-text>
24+
25+
<v-card-text>
26+
3. Campaign Period: Entries will be accepted online starting on April 26 - April 30. All online entries must be received by April 30 11:59 PM PST.
27+
</v-card-text>
28+
<v-card-text>
29+
4. How to Enter: The Campaign must be entered by submitting an entry using a unique email at https://challenge.codewizardshq.com/voting. The entry
30+
must fulfill all Campaign requirements, as specified, to be eligible to win a prize. Entries that are incomplete or do not adhere to the rules or
31+
specifications may be disqualified at the sole discretion of CodeWizardsHQ. You may enter only once. You must provide the information requested.
32+
You may not enter more times than indicated by using multiple email addresses, identities, or devices in an attempt to circumvent the rules. If
33+
You use fraudulent methods or otherwise attempt to circumvent the rules, your submission may be removed from eligibility at the sole discretion of
34+
CodeWizardsHQ.
35+
</v-card-text>
36+
37+
<v-card-text>
38+
5. Prizes: The 1st place Winner of the Campaign (the “Winner”) will receive $100 cash and a free STEAM code from Endless. The 2nd place Winner of
39+
the Campaign (the “Winner”) will receive $50 cash and a free STEAM code from Endless. The 3rd place Winner of the Campaign (the “Winner”) will
40+
receive $25 cash and a free STEAM code from Endless. Actual/appraised value may differ at time of prize award. The specifics of the prize shall be
41+
solely determined by CodeWizardsHQ. No cash or other prize substitution shall be permitted except at CodeWizardHQ’s discretion. The prize is
42+
nontransferable. Any and all prize-related expenses, including without limitation any and all federal, state, and/or local taxes, shall be the
43+
sole responsibility of Winner. No substitution of prize or transfer/assignment of prize to others or request for the cash equivalent by Winner is
44+
permitted. Acceptance of prize constitutes permission for CodeWizardsHQ to use Winner’s name, likeness, and entry for purposes of advertising and
45+
trade without further compensation, unless prohibited by law.
46+
</v-card-text>
47+
48+
<v-card-text>
49+
6. Odds: The odds of winning depend on the number of eligible entries received.
50+
</v-card-text>
51+
52+
<v-card-text>
53+
7. Winner Selection and Notification: Winner will be selected by community vote under the supervision of CodeWizardsHQ. Winner will be notified by
54+
email and phone within five (5) days following the selection of Winner. CodeWizardsHQ shall have no liability for Winner’s failure to receive
55+
notices due to spam, junk e-mail or other security settings or for Winner’s provision of incorrect or otherwise non-functioning contact
56+
information. If Winner cannot be contacted, is ineligible, fails to claim the prize within 30 days from the time award notification was sent, or
57+
fails to timely return a completed and executed declaration and release as required, the prize may be forfeited and an alternate Winner selected.
58+
Receipt by Winner of the prize offered in this Campaign is conditioned upon compliance with any and all federal, state, and local laws and
59+
regulations. ANY VIOLATION OF THESE OFFICIAL RULES BY WINNER (AT CodeWizardsHQ‘S SOLE DISCRETION) WILL RESULT IN WINNER’S DISQUALIFICATION AS
60+
WINNER OF THE CAMPAIGN, AND ALL PRIVILEGES AS WINNER WILL BE IMMEDIATELY TERMINATED.
61+
</v-card-text>
62+
63+
<v-card-text>
64+
8. Rights Granted by You: By entering this content (e.g., photo, video, text, etc.), You understand and agree that CodeWizardsHQ, anyone acting on
65+
behalf of CodeWizardsHQ, and CodeWizardsHQ’s licensees, successors, and assigns, shall have the right, where permitted by law, to print, publish,
66+
broadcast, distribute, and use in any media now known or hereafter developed, in perpetuity and throughout the World, without limitation, your
67+
entry, name, portrait, picture, voice, likeness, image, statements about the Campaign, and biographical information for news, publicity,
68+
information, trade, advertising, public relations, and promotional purposes. without any further compensation, notice, review, or consent. By
69+
entering this content, You represent and warrant that your entry is an original work of authorship, and does not violate any third party’s
70+
proprietary or intellectual property rights. If your entry infringes upon the intellectual property right of another, You will be disqualified at
71+
the sole discretion of CodeWizardsHQ. If the content of your entry is claimed to constitute infringement of any proprietary or intellectual
72+
proprietary rights of any third party, You shall, at your sole expense, defend or settle against such claims. You shall indemnify, defend, and
73+
hold harmless CodeWizardsHQ from and against any suit, proceeding, claims, liability, loss, damage, costs or expense, which CodeWizardsHQ may
74+
incur, suffer, or be required to pay arising out of such infringement or suspected infringement of any third party’s right.
75+
</v-card-text>
76+
77+
<v-card-text>
78+
9. Terms & Conditions: CodeWizardsHQ reserves the right, in its sole discretion, to cancel, terminate, modify or suspend the Campaign should
79+
virus, bug, non-authorized human intervention, fraud, or other cause beyond CodeWizardsHQ’s control corrupt or affect the administration,
80+
security, fairness, or proper conduct of the Campaign. In such case, CodeWizardsHQ may select the Winner from all eligible entries received prior
81+
to and/or after (if appropriate) the action taken by CodeWizardsHQ. CodeWizardsHQ reserves the right, in its sole discretion, to disqualify any
82+
individual who tampers or attempts to tamper with the entry process or the operation of the Campaign or website or violates these Terms &
83+
Conditions. CodeWizardsHQ has the right, in its sole discretion, to maintain the integrity of the Campaign, to void votes for any reason,
84+
including, but not limited to: multiple entries from the same user from different IP addresses; multiple entries from the same computer in excess
85+
of that allowed by Campaign rules; or the use of bots, macros, scripts, or other technical means for entering. Any attempt by an entrant to
86+
deliberately damage any website or undermine the legitimate operation of the Campaign may be a violation of criminal and civil laws. Should such
87+
attempt be made, CodeWizardsHQ reserves the right to seek damages to the fullest extent permitted by law.
88+
</v-card-text>
89+
<v-card-text>
90+
10. Limitation of Liability: By entering, You agree to release and hold harmless CodeWizardsHQ and its subsidiaries, affiliates, advertising and
91+
promotion agencies, partners, representatives, agents, successors, assigns, employees, officers, and directors from any liability, illness,
92+
injury, death, loss, litigation, claim, or damage that may occur, directly or indirectly, whether caused by negligence or not, from: (i) such
93+
entrant’s participation in the Campaign and/or his/her acceptance, possession, use, or misuse of any prize or any portion thereof; (ii) technical
94+
failures of any kind, including but not limited to the malfunction of any computer, cable, network, hardware, or software, or other mechanical
95+
equipment; (iii) the unavailability or inaccessibility of any transmissions, telephone, or Internet service; (iv) unauthorized human intervention
96+
in any part of the entry process or the Promotion; (v) electronic or human error in the administration of the Promotion or the processing of
97+
entries.
98+
</v-card-text>
99+
100+
<v-card-text>
101+
11. Disputes: THIS Campaign IS GOVERNED BY THE LAWS OF United States AND Texas, WITHOUT RESPECT TO CONFLICT OF LAW DOCTRINES. As a condition of
102+
participating in this Campaign, participant agrees that any and all disputes that cannot be resolved between the parties, and causes of action
103+
arising out of or connected with this Campaign, shall be resolved individually, without resort to any form of class action, exclusively before a
104+
court located in [your state/province] having jurisdiction. Further, in any such dispute, under no circumstances shall participant be permitted to
105+
obtain awards for, and hereby waives all rights to, punitive, incidental, or consequential damages, including reasonable attorney’s fees, other
106+
than participant’s actual out-of-pocket expenses (i.e. costs associated with entering this Campaign). Participant further waives all rights to
107+
have damages multiplied or increased.
108+
</v-card-text>
109+
110+
<v-card-text>
111+
12. Sponsor: The Sponsor of the Campaign is CodeWizardsHQ. Please visit codewizardshq.com for more information.
112+
</v-card-text>
113+
<v-card-text>
114+
13. Facebook: If you use Facebook to communicate or administer a contest or sweepstakes, include the following: The Campaign hosted by
115+
CodeWizardsHQ is in no way sponsored, endorsed, administered by, or associated with Facebook.
116+
</v-card-text>
117+
118+
<v-card-text>
119+
14. By entering this contest, You, the Contestant, have affirmatively reviewed, accepted, and agreed to all of the Official Rules.
120+
</v-card-text>
121+
</div>
122+
</page-card>
123+
</v-col>
124+
</v-row>
125+
<br />
126+
<br />
127+
</v-container>
128+
</template>
129+
130+
<script>
131+
import PageCard from '@/components/PageCard';
132+
133+
export default {
134+
name: 'voting-rules',
135+
components: {
136+
PageCard,
137+
},
138+
};
139+
</script>

src/views/Voting/Ballot.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
<div class="text-center">
4646
Click “Vote” to enter your choice for the winners of our 1st,
4747
2nd, and 3rd place prize. One vote per person.
48+
<a href="/voting-rules"
49+
><small
50+
>Cheaters will be disqualified. Read the full rules and
51+
regulations.</small
52+
></a
53+
>
4854
</div>
4955
</div>
5056
</v-col>
@@ -319,5 +325,13 @@ h2 {
319325
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG8AAAJ6BAMAAADUbwFSAAAAFVBMVEUAAAANHUENHUENHUENHUENHUENHUGmH0x+AAAAB3RSTlMAJhcHHwwRGvn06wAABkxJREFUeNrsmU2K20AQhXss2+uURtFajS/QMT5AxOC9HOYAEuT+Z8gPydQkonj9Gs+MJOrbFgbDe5/pcoVsvqVQRt+GInYi11DCFxE5hQKi/KQLNAf5RTMElr38pk6BZJI/nwwk8pfPbBgvPJFhKB1VG3nFGLI5ymuaFHJ5EIUKJcq/5Pa9kv+5cmEoTcjiNvvgIxUGneVOZiSqNkrLhaF8zXR4xpDpsEJJORWGUcndwmhIh9lfj74wjGNpbR5AGER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9vE7v0uM2YtmyDy+vNz+eP1KpUqVKlSpV6l/Uuaeo6lvdHfgojSw3mttLIz0br10TB8ryg3U74KE9zxyttJPGup38qOxafTBxlVhmdlLX2fWJR2WjUMQtA6dy0VBe2aRQmF9elKeTd/L/SHG26dnFEE1YxMF4HEjIQJvZbLK9auJ5icIQ4Tk393JpeMjNTeyMPoAYiElDCrnp3nBlA+GD/Kr6Cr1VFIYAKWJTID4LR1a7kzKsORWI5SxskoHUeq9DDmSQoR5IEKEeiGER6oF4CaqBdEROhHogDYtQD6QWoR7IcRShHsj67zaCAgqHefAYwXoe7OdsiSFmC/asOgF6qNclN+nlUxgSyAcRDnPDAD48OxHaeWEggXQJWGnwkoAtEsYUiB6GHIj+sXmO65yH219f0sMrEAossMACCyywwD8Kb+K6y6PfXyI3vTxrgwdsaNVltsaDhnL6eL5Hn/E8JiBrtSZ0oEvpMJBAgg47IIwpEGhy1aNTpCMwB5gCgaasOyAMMRB8qtsyCCspNQYbCO+cCPUwLrUM9YZOo8NBnhEFGepdRK/BNvEhMRqsEoeQ1aBLHQhjDPUwMg09vd3Z5OGQPr2ECOph6G3SNnPEmhz0ufOZAPUwpkBEaLPnwVr/jnKvoMlAG8tuVkufmpA5mfmrjg6ayuQgmcwJOwtpn75EjPoiNPmiVCuX1nHO7afb/BKrLnWYn5RNVTeJ69FaWxAWveXaWjKTeOHA2g3IvXy9HqK7a3IovTiuuFC2RulXsUKAUTnupH/8TFpZJ7y2P5FeTf7vZv0EwkjbLvPoQUwAAAAASUVORK5CYII=);
320326
background-position: left center, right center;
321327
background-repeat: no-repeat;
328+
329+
a {
330+
small {
331+
color: white;
332+
display: block;
333+
padding-top: 12px;
334+
}
335+
}
322336
}
323337
</style>

src/views/Voting/CodeModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<v-dialog v-model="isOpen" max-width="1000">
3+
<v-dialog v-model="isOpen">
44
<v-card
55
class="ballot ballot-modal"
66
height="600"

0 commit comments

Comments
 (0)