Skip to content

Commit da67ce4

Browse files
committed
feat: remove filecoin familiarity field
1 parent 12e0235 commit da67ce4

File tree

2 files changed

+3
-47
lines changed

2 files changed

+3
-47
lines changed

components/signup-card.vue

+3-43
Original file line numberDiff line numberDiff line change
@@ -92,35 +92,6 @@
9292
<span v-if="fieldError.country" class="error message" v-html="errorMessage" />
9393
</div>
9494

95-
<div class="field-wrapper">
96-
<h3 class="dropdown-label" v-html="familiarityField.label" />
97-
<ZeroDropdown :class="['familiarity dropdown-field form-field', { error: fieldError.filecoinFamiliarity }] " :display-selected="true">
98-
<template #toggle-button="{ togglePanel, selected }">
99-
<div class="toggle-button" @click="togglePanel">
100-
<p v-if="selected" class="toggle-button-label">
101-
{{ selected }}
102-
</p>
103-
<p v-else class="toggle-button-label">
104-
Select an option
105-
</p>
106-
</div>
107-
</template>
108-
<template #dropdown-panel="{ setSelected, closePanel }">
109-
<div class="dropdown-panel">
110-
<div
111-
v-for="(option, index) in familiarityField.options"
112-
:key="index"
113-
class="options">
114-
<p
115-
class="option-label"
116-
@click="selectOption(setSelected, closePanel, option, 'familiarity')"
117-
v-html="option" />
118-
</div>
119-
</div>
120-
</template>
121-
</ZeroDropdown>
122-
<span v-if="fieldError.filecoinFamiliarity" class="error message" v-html="errorMessage" />
123-
</div>
12495
<ZeroButton
12596
class="submit-button"
12697
@clicked="submitForm">
@@ -151,16 +122,13 @@ const fieldError = ref({
151122
lastName: false,
152123
email: false,
153124
organization: false,
154-
country: false,
155-
filecoinFamiliarity: false
125+
country: false
156126
})
157127
const firstName = ref(false)
158128
const lastName = ref(false)
159129
const email = ref(false)
160130
const organization = ref(false)
161131
const country = ref(false)
162-
const filecoinFamiliarity = ref(false)
163-
164132
165133
// ==================================================================== Computed
166134
const title = computed(() => { return props.signupCard.title })
@@ -184,8 +152,6 @@ const orgField = computed(() => { return props.signupCard.signup_form.org })
184152
185153
const countryField = computed(() => { return props.signupCard.signup_form.country })
186154
187-
const familiarityField = computed(() => { return props.signupCard.signup_form.filecoin_familiarity })
188-
189155
// ===================================================================== Methdos
190156
/**
191157
* @method updateInputValue
@@ -217,18 +183,14 @@ const selectOption = (setSelected, closePanel, option, field) => {
217183
case 'country':
218184
country.value = option
219185
break
220-
case 'familiarity':
221-
filecoinFamiliarity.value = option
222-
break
223186
}
224187
}
225188
}
226189
/**
227190
* @method submitForm
228191
*/
229192
const submitForm = async () => {
230-
console.log('submitForm')
231-
if (firstName.value && lastName.value && email.value && organization.value && country.value && filecoinFamiliarity.value) {
193+
if (firstName.value && lastName.value && email.value && organization.value && country.value) {
232194
const body = {
233195
records: [
234196
{
@@ -237,8 +199,7 @@ const submitForm = async () => {
237199
firstName: firstName.value,
238200
lastName: lastName.value,
239201
organization: organization.value,
240-
country: country.value.label,
241-
filecoinFamiliarity: filecoinFamiliarity.value
202+
country: country.value.label
242203
}
243204
}
244205
]
@@ -259,7 +220,6 @@ const submitForm = async () => {
259220
if(!organization.value) { fieldError.value.organization = true }
260221
if(!organization.value) { fieldError.value.organization = true }
261222
if(!country.value) { fieldError.value.country = true }
262-
if(!filecoinFamiliarity.value) { fieldError.value.filecoinFamiliarity = true }
263223
}
264224
}
265225
</script>

content/core/signup.json

-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030
},
3131
"country": {
3232
"options": [{"label":"Afghanistan","code":"AF"},{"label":"Albania","code":"AL"},{"label":"Algeria","code":"DZ"},{"label":"American Samoa","code":"AS"},{"label":"Andorra","code":"AD"},{"label":"Angola","code":"AO"},{"label":"Anguilla","code":"AI"},{"label":"Antarctica","code":"AQ"},{"label":"Antigua and Barbuda","code":"AG"},{"label":"Argentina","code":"AR"},{"label":"Armenia","code":"AM"},{"label":"Aruba","code":"AW"},{"label":"Australia","code":"AU"},{"label":"Austria","code":"AT"},{"label":"Azerbaijan","code":"AZ"},{"label":"Bahamas","code":"BS"},{"label":"Bahrain","code":"BH"},{"label":"Bangladesh","code":"BD"},{"label":"Barbados","code":"BB"},{"label":"Belarus","code":"BY"},{"label":"Belgium","code":"BE"},{"label":"Belize","code":"BZ"},{"label":"Benin","code":"BJ"},{"label":"Bermuda","code":"BM"},{"label":"Bhutan","code":"BT"},{"label":"Bolivia","code":"BO"},{"label":"Bonaire","code":"BQ"},{"label":"Bosnia and Herzegovina","code":"BA"},{"label":"Botswana","code":"BW"},{"label":"Bouvet Island","code":"BV"},{"label":"Brazil","code":"BR"},{"label":"British Indian Ocean Territory","code":"IO"},{"label":"British Virgin Islands","code":"VG"},{"label":"Brunei","code":"BN"},{"label":"Bulgaria","code":"BG"},{"label":"Burkina Faso","code":"BF"},{"label":"Burundi","code":"BI"},{"label":"Cambodia","code":"KH"},{"label":"Cameroon","code":"CM"},{"label":"Canada","code":"CA"},{"label":"Cape Verde","code":"CV"},{"label":"Cayman Islands","code":"KY"},{"label":"Central African Republic","code":"CF"},{"label":"Chad","code":"TD"},{"label":"Chile","code":"CL"},{"label":"China","code":"CN"},{"label":"Christmas Island","code":"CX"},{"label":"Cocos Islands","code":"CC"},{"label":"Colombia","code":"CO"},{"label":"Comoros","code":"KM"},{"label":"Congo DRC","code":"CG"},{"label":"Congo Republic","code":"CD"},{"label":"Cook Islands","code":"CK"},{"label":"Coral Sea Islands Territory","code":"AU"},{"label":"Costa Rica","code":"CR"},{"label":"Croatia","code":"HR"},{"label":"Cuba","code":"CU"},{"label":"Curaçao","code":"CW"},{"label":"Cyprus","code":"CY"},{"label":"Czech Republic","code":"CZ"},{"label":"Denmark","code":"DK"},{"label":"Djibouti","code":"DJ"},{"label":"Dominica","code":"DM"},{"label":"Dominican Republic","code":"DO"},{"label":"Timor-Leste","code":"TL"},{"label":"Ecuador","code":"EC"},{"label":"Egypt","code":"EG"},{"label":"El Salvador","code":"SV"},{"label":"Equatorial Guinea","code":"GQ"},{"label":"Eritrea","code":"ER"},{"label":"Estonia","code":"EE"},{"label":"Eswatini","code":"SZ"},{"label":"Ethiopia","code":"ET"},{"label":"Falkland Islands","code":"FK"},{"label":"Faroe Islands","code":"FO"},{"label":"Fiji Islands","code":"FJ"},{"label":"Finland","code":"FI"},{"label":"France","code":"FR"},{"label":"French Guiana","code":"GF"},{"label":"French Polynesia","code":"PF"},{"label":"French Southern Lands","code":"TF"},{"label":"Gabon","code":"GA"},{"label":"Gambia","code":"GM"},{"label":"Georgia","code":"GE"},{"label":"Germany","code":"DE"},{"label":"Ghana","code":"GH"},{"label":"Gibraltar","code":"GI"},{"label":"Greece","code":"GR"},{"label":"Greenland","code":"GL"},{"label":"Grenada","code":"GD"},{"label":"Guadeloupe","code":"GP"},{"label":"Guam","code":"GU"},{"label":"Guatemala","code":"GT"},{"label":"Guernsey","code":"GG"},{"label":"Guinea","code":"GN"},{"label":"Guinea-Bissau","code":"GW"},{"label":"Guyana","code":"GY"},{"label":"Haiti","code":"HT"},{"label":"Heard and McDonald Islands","code":"HM"},{"label":"Honduras","code":"HN"},{"label":"Hong Kong","code":"HK"},{"label":"Hungary","code":"HU"},{"label":"Iceland","code":"IS"},{"label":"India","code":"IN"},{"label":"Indonesia","code":"ID"},{"label":"Iran","code":"IR"},{"label":"Iraq","code":"IQ"},{"label":"Ireland","code":"IE"},{"label":"Isle of Man","code":"IM"},{"label":"Israel","code":"IL"},{"label":"Italy","code":"IT"},{"label":"Ivory Coast","code":"CI"},{"label":"Jamaica","code":"JM"},{"label":"Jan Mayen","code":"SJ"},{"label":"Japan","code":"JP"},{"label":"Jersey","code":"JE"},{"label":"Jordan","code":"JO"},{"label":"Kazakhstan","code":"KZ"},{"label":"Kenya","code":"KE"},{"label":"Kiribati","code":"KI"},{"label":"Kosovo","code":"XK"},{"label":"Kuwait","code":"KW"},{"label":"Kyrgyzstan","code":"KG"},{"label":"Laos","code":"LA"},{"label":"Latvia","code":"LV"},{"label":"Lebanon","code":"LB"},{"label":"Lesotho","code":"LS"},{"label":"Liberia","code":"LR"},{"label":"Libya","code":"LY"},{"label":"Liechtenstein","code":"LI"},{"label":"Lithuania","code":"LT"},{"label":"Luxembourg","code":"LU"},{"label":"Macau","code":"MO"},{"label":"Madagascar","code":"MG"},{"label":"Malawi","code":"MW"},{"label":"Malaysia","code":"MY"},{"label":"Maldives","code":"MV"},{"label":"Mali","code":"ML"},{"label":"Malta","code":"MT"},{"label":"Marshall Islands","code":"MH"},{"label":"Martinique","code":"MQ"},{"label":"Mauritania","code":"MR"},{"label":"Mauritius","code":"MU"},{"label":"Mayotte","code":"YT"},{"label":"Mexico","code":"MX"},{"label":"Micronesia","code":"FM"},{"label":"Moldova","code":"MD"},{"label":"Monaco","code":"MC"},{"label":"Mongolia","code":"MN"},{"label":"Montenegro","code":"ME"},{"label":"Montserrat","code":"MS"},{"label":"Morocco","code":"MA"},{"label":"Mozambique","code":"MZ"},{"label":"Myanmar","code":"MM"},{"label":"Namibia","code":"NA"},{"label":"Nauru","code":"NR"},{"label":"Navassa","code":"UM"},{"label":"Nepal","code":"NP"},{"label":"Netherlands","code":"NL"},{"label":"New Caledonia","code":"NC"},{"label":"New Zealand","code":"NZ"},{"label":"Nicaragua","code":"NI"},{"label":"Niger","code":"NE"},{"label":"Nigeria","code":"NG"},{"label":"Niue","code":"NU"},{"label":"Norfolk Island","code":"NF"},{"label":"North Korea","code":"KP"},{"label":"North Macedonia","code":"MK"},{"label":"Northern Marianas","code":"MP"},{"label":"Norway","code":"NO"},{"label":"Oman","code":"OM"},{"label":"Pakistan","code":"PK"},{"label":"Palau","code":"PW"},{"label":"Palestinian Authority","code":"PS"},{"label":"Panama","code":"PA"},{"label":"Papua New Guinea","code":"PG"},{"label":"Paraguay","code":"PY"},{"label":"Peru","code":"PE"},{"label":"Philippines","code":"PH"},{"label":"Pitcairn Island","code":"PN"},{"label":"Poland","code":"PL"},{"label":"Portugal","code":"PT"},{"label":"Puerto Rico","code":"PR"},{"label":"Qatar","code":"QA"},{"label":"Reunion","code":"RE"},{"label":"Romania","code":"RO"},{"label":"Russia","code":"RU"},{"label":"Rwanda","code":"RW"},{"label":"Saba","code":"BQ"},{"label":"Saint Barthelemy","code":"BL"},{"label":"Saint Helena, Ascension, Tristan da Cunha","code":"SH"},{"label":"Saint Kitts and Nevis","code":"KN"},{"label":"Saint Lucia","code":"LC"},{"label":"Saint Martin","code":"MF"},{"label":"Saint Pierre and Miquelon","code":"PM"},{"label":"Saint Vincent and the Grenadines","code":"VC"},{"label":"Samoa","code":"WS"},{"label":"San Marino","code":"SM"},{"label":"Sao Tome and Principe","code":"ST"},{"label":"Saudi Arabia","code":"SA"},{"label":"Senegal","code":"SN"},{"label":"Serbia","code":"CS"},{"label":"Seychelles","code":"SC"},{"label":"Sierra Leone","code":"SL"},{"label":"Singapore","code":"SG"},{"label":"Sint Eustatius","code":"BQ"},{"label":"Sint Maarten","code":"SX"},{"label":"Slovakia","code":"SK"},{"label":"Slovenia","code":"SI"},{"label":"Solomon Islands","code":"SB"},{"label":"Somalia","code":"SO"},{"label":"South Africa","code":"ZA"},{"label":"South Georgia","code":"GS"},{"label":"South Korea","code":"KR"},{"label":"South Sudan","code":"SS"},{"label":"Spain","code":"ES"},{"label":"Sri Lanka","code":"LK"},{"label":"Sudan","code":"SD"},{"label":"Suriname","code":"SR"},{"label":"Svalbard","code":"SJ"},{"label":"Sweden","code":"SE"},{"label":"Switzerland","code":"CH"},{"label":"Syria","code":"SY"},{"label":"Taiwan","code":"TW"},{"label":"Tajikistan","code":"TJ"},{"label":"Tanzania","code":"TZ"},{"label":"Thailand","code":"TH"},{"label":"Togo","code":"TG"},{"label":"Tokelau","code":"TK"},{"label":"Tonga","code":"TO"},{"label":"Trinidad and Tobago","code":"TT"},{"label":"Tunisia","code":"TN"},{"label":"Turkey","code":"TR"},{"label":"Turkmenistan","code":"TM"},{"label":"Turks and Caicos Islands","code":"TC"},{"label":"Tuvalu","code":"TV"},{"label":"U.S. Minor Pacific Islands","code":"UM"},{"label":"U.S. Virgin Islands","code":"VI"},{"label":"Uganda","code":"UG"},{"label":"Ukraine","code":"UA"},{"label":"United Arab Emirates","code":"AE"},{"label":"United Kingdom","code":"GB"},{"label":"United States","code":"US"},{"label":"Uruguay","code":"UY"},{"label":"Uzbekistan","code":"UZ"},{"label":"Vanuatu","code":"VU"},{"label":"Vatican City","code":"VA"},{"label":"Venezuela","code":"VE"},{"label":"Vietnam","code":"VN"},{"label":"Wallis and Futuna","code":"WF"},{"label":"Western Sahara","code":"EH"},{"label":"Yemen","code":"YE"},{"label":"Zambia","code":"ZM"},{"label":"Zimbabwe","code":"ZW"}]
33-
},
34-
"filecoin_familiarity": {
35-
"label": "How familiar are you with Filecoin?",
36-
"options": ["New to Filecoin", "Some experience with Filecoin", "A lot of experience with Filecoin"]
3733
}
3834
}
3935
}

0 commit comments

Comments
 (0)