How to use isHtmlTag method in storybook-root

Best JavaScript code snippet using storybook-root

coinListField.js

Source:coinListField.js Github

copy

Full Screen

...44 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_name"))].Isrequired == 1 && (!data.coin_name || typeof data.coin_name == 'undefined' || data.coin_name == "" || data.coin_name.length == 0 || Validator.isEmpty(data.coin_name.trim() + ''))) {45 errors.coin_name = 'coinListRequestForm.error.CoinName';46 }4748 if (typeof data.coin_name != 'undefined' && data.coin_name != "" && data.coin_name.length > 0 && validateInput.isHtmlTag(data.coin_name)) {49 errors.coin_name = 'my_account.err.scriptTag';50 } else if (typeof data.coin_name != 'undefined' && data.coin_name != "" && data.coin_name.length > 0 && !Validator.isLength(data.coin_name + '', { min: 2, max: 100 })) {51 errors.coin_name = 'coinListRequestForm.error.CoinNameLimit';52 }53 }5455 //2)CoinTicker56 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_ticker")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_ticker"))].status == 1) {5758 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_ticker"))].Isrequired == 1 && (!data.coin_ticker || typeof data.coin_ticker == 'undefined' || data.coin_ticker == "" || data.coin_ticker.length == 0 || Validator.isEmpty(data.coin_ticker.trim() + ''))) {59 errors.coin_ticker = 'coinListRequestForm.error.CoinTicker';60 }6162 if (validateInput.isHtmlTag(data.coin_ticker)) {63 errors.coin_ticker = 'my_account.err.scriptTag';64 }65 }6667 //3)Date Of Issuance68 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "date_of_issuance")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "date_of_issuance"))].status == 1) {69 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "date_of_issuance"))].Isrequired == 1 && (!data.date_of_issuance || typeof data.date_of_issuance == 'undefined' || data.date_of_issuance == "" || data.date_of_issuance.length == 0 || Validator.isEmpty(data.date_of_issuance.trim() + ''))) {70 errors.date_of_issuance = 'coinListRequestForm.error.DateOfIssuance';71 }7273 if (validateInput.isHtmlTag(data.date_of_issuance)) {74 errors.date_of_issuance = 'my_account.err.scriptTag';75 }76 }7778 //4)coin logo79 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_logo")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_logo"))].status == 1) {8081 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_logo"))].Isrequired == 1 && (!data.coin_logo || typeof data.coin_logo == 'undefined' || data.coin_logo == "" || data.coin_logo.length == 0 || Validator.isEmpty(data.coin_logo.trim() + ''))) {82 errors.coin_logo = 'coinListRequestForm.error.coinLogo';83 }848586 if (validateInput.isHtmlTag(data.coin_logo)) {87 errors.coin_logo = 'my_account.err.scriptTag';88 } else if (typeof data.coin_logo != 'undefined' && data.coin_logo != "" && data.coin_logo.length > 0 && !Validator.isURL(data.coin_logo + "", ['http', 'https'])) {89 errors.coin_logo = 'coinListRequestForm.error.validUrl';90 }91 }9293 //5)coin_website94 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_website")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_website"))].status == 1) {95 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_website"))].Isrequired == 1 && (!data.coin_website || typeof data.coin_website == 'undefined' || data.coin_website == "" || data.coin_website.length == 0 || Validator.isEmpty(data.coin_website.trim() + ''))) {96 errors.coin_website = 'coinListRequestForm.error.coinWebsite';97 }98 if (validateInput.isHtmlTag(data.coin_website)) {99 errors.coin_website = 'my_account.err.scriptTag';100 } else if (typeof data.coin_website != 'undefined' && data.coin_website != "" && data.coin_website.length > 0 && Validator.isEmpty(data.coin_website.trim() + '') && !Validator.isURL(data.coin_website + "", ['http', 'https'])) {101 errors.coin_website = 'coinListRequestForm.error.validUrl';102 }103 }104105 //6)website faq106 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "website_faq")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "website_faq"))].status == 1) {107 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "website_faq"))].Isrequired == 1 && (!data.website_faq || typeof data.website_faq == 'undefined' || data.website_faq == "" || data.website_faq.length == 0 || Validator.isEmpty(data.website_faq.trim() + ''))) {108 errors.website_faq = 'coinListRequestForm.error.websiteFaq';109 }110111 if (validateInput.isHtmlTag(data.website_faq)) {112 errors.website_faq = 'my_account.err.scriptTag';113 }114 }115116 //7)Coin forum117 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_forum")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_forum"))].status == 1) {118 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_forum"))].Isrequired == 1 && (!data.coin_forum || typeof data.coin_forum == 'undefined' || data.coin_forum == "" || data.coin_forum.length == 0 || Validator.isEmpty(data.coin_forum.trim() + ''))) {119 errors.coin_forum = 'coinListRequestForm.error.coin_forum';120 }121122 if (validateInput.isHtmlTag(data.coin_forum)) {123 errors.coin_forum = 'my_account.err.scriptTag';124 }125 }126127 //8)bitcoin_talk128 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "bitcoin_talk")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "bitcoin_talk"))].status == 1) {129 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "bitcoin_talk"))].Isrequired == 1 && (!data.bitcoin_talk || typeof data.bitcoin_talk == 'undefined' || data.bitcoin_talk == "" || data.bitcoin_talk.length == 0 || Validator.isEmpty(data.bitcoin_talk.trim() + ''))) {130 errors.bitcoin_talk = 'coinListRequestForm.error.bitcoin_talk';131 }132133 if (validateInput.isHtmlTag(data.bitcoin_talk)) {134 errors.bitcoin_talk = 'my_account.err.scriptTag';135 }136 }137138 //9)Whitepaper business139 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_business")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_business"))].status == 1) {140 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_business"))].Isrequired == 1 && (!data.whitepaper_business || typeof data.whitepaper_business == 'undefined' || data.whitepaper_business == "" || data.whitepaper_business.length == 0 || Validator.isEmpty(data.whitepaper_business.trim() + ''))) {141 errors.whitepaper_business = 'coinListRequestForm.error.whitepaper_business';142 }143144 if (validateInput.isHtmlTag(data.whitepaper_business)) {145 errors.whitepaper_business = 'my_account.err.scriptTag';146 }147 }148149 //10)Whitepaper business150 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_technical")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_technical"))].status == 1) {151 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "whitepaper_technical"))].Isrequired == 1 && (!data.whitepaper_technical || typeof data.whitepaper_technical == 'undefined' || data.whitepaper_technical == "" || data.whitepaper_technical.length == 0 || Validator.isEmpty(data.whitepaper_technical.trim() + ''))) {152 errors.whitepaper_technical = 'coinListRequestForm.error.whitepaper_technical';153 }154155 if (validateInput.isHtmlTag(data.whitepaper_technical)) {156 errors.whitepaper_technical = 'my_account.err.scriptTag';157 }158 }159160 //11)stack_channel161 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "stack_channel")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "stack_channel"))].status == 1) {162 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "stack_channel"))].Isrequired == 1 && (!data.stack_channel || typeof data.stack_channel == 'undefined' || data.stack_channel == "" || data.stack_channel.length == 0 || Validator.isEmpty(data.stack_channel.trim() + ''))) {163 errors.stack_channel = 'coinListRequestForm.error.stack_channel';164 }165 if (validateInput.isHtmlTag(data.stack_channel)) {166 errors.stack_channel = 'my_account.err.scriptTag';167 }168 }169170 //12)official_gitHub_repository_link171 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "official_gitHub_repository_link")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "official_gitHub_repository_link"))].status == 1) {172 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "official_gitHub_repository_link"))].Isrequired == 1 && (!data.official_gitHub_repository_link || typeof data.official_gitHub_repository_link == 'undefined' || data.official_gitHub_repository_link == "" || data.official_gitHub_repository_link.length == 0 || Validator.isEmpty(data.official_gitHub_repository_link.trim() + ''))) {173 errors.official_gitHub_repository_link = 'coinListRequestForm.error.official_gitHub_repository_link';174 }175176 if (validateInput.isHtmlTag(data.official_gitHub_repository_link)) {177 errors.official_gitHub_repository_link = 'my_account.err.scriptTag';178 } else if (typeof data.official_gitHub_repository_link != 'undefined' && data.official_gitHub_repository_link != "" && data.official_gitHub_repository_link.length > 0 && !Validator.isURL(data.official_gitHub_repository_link + "", ['http', 'https'])) {179 errors.official_gitHub_repository_link = 'coinListRequestForm.error.official_gitHub_repository_link_url';180 }181 }182183 //13)team contact184 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "team_contact")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "team_contact"))].status == 1) {185 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "team_contact"))].Isrequired == 1 && (!data.team_contact || typeof data.team_contact == 'undefined' || data.team_contact == "" || data.team_contact.length == 0 || Validator.isEmpty(data.team_contact.trim() + ''))) {186 errors.team_contact = 'coinListRequestForm.error.team_contact';187 }188189 if (validateInput.isHtmlTag(data.team_contact)) {190 errors.team_contact = 'my_account.err.scriptTag';191 }192 }193194 //14)team_bio195 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "team_bio")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "team_bio"))].status == 1) {196 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "team_bio"))].Isrequired == 1 && (!data.team_bio || typeof data.team_bio == 'undefined' || data.team_bio == "" || data.team_bio.length == 0 || Validator.isEmpty(data.team_bio.trim() + ''))) {197 errors.team_bio = 'coinListRequestForm.error.team_bio';198 }199200 if (validateInput.isHtmlTag(data.team_bio)) {201 errors.team_bio = 'my_account.err.scriptTag';202 }203 }204205 //15)headquarter_address206 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "headquarter_address")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "headquarter_address"))].status == 1) {207 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "headquarter_address"))].Isrequired == 1 && !data.headquarter_address || typeof data.headquarter_address == 'undefined' || data.headquarter_address == "" || data.headquarter_address.length == 0 || Validator.isEmpty(data.headquarter_address.trim() + '')) {208 errors.headquarter_address = 'coinListRequestForm.error.headquarter_address';209 }210211 if (validateInput.isHtmlTag(data.headquarter_address)) {212 errors.headquarter_address = 'my_account.err.scriptTag';213 }214 }215216 //16)wallet_source_code217 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet_source_code")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet_source_code"))].status == 1) {218 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet_source_code"))].Isrequired == 1 && (!data.wallet_source_code || typeof data.wallet_source_code == 'undefined' || data.wallet_source_code == "" || data.wallet_source_code.length == 0 || Validator.isEmpty(data.wallet_source_code.trim() + ''))) {219 errors.wallet_source_code = 'coinListRequestForm.error.walletSourceCode';220 }221 if (validateInput.isHtmlTag(data.wallet_source_code)) {222 errors.wallet_source_code = 'my_account.err.scriptTag';223 } else if (typeof data.wallet_source_code != 'undefined' && data.wallet_source_code != "" && data.wallet_source_code != null && !Validator.isURL(data.wallet_source_code + "", ['http', 'https'])) {224 errors.wallet_source_code = 'coinListRequestForm.error.validUrl';225 }226 }227228 //17)node_source_code229 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "node_source_code")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "node_source_code"))].status == 1) {230 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "node_source_code"))].Isrequired == 1 && (!data.node_source_code || typeof data.node_source_code == 'undefined' || data.node_source_code == "" || data.node_source_code.length == 0 || Validator.isEmpty(data.node_source_code.trim() + ''))) {231 errors.node_source_code = 'coinListRequestForm.error.nodeSourceCode';232 }233 if (validateInput.isHtmlTag(data.node_source_code)) {234 errors.node_source_code = 'my_account.err.scriptTag';235 } else if (typeof data.node_source_code != 'undefined' && data.node_source_code != "" && data.node_source_code != null && !Validator.isURL(data.node_source_code + "", ['http', 'https'])) {236 errors.node_source_code = 'coinListRequestForm.error.validUrl';237 }238 }239240 //18)official_blockchain_explorer_link241 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "official_blockchain_explorer_link")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "official_blockchain_explorer_link"))].status == 1) {242 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "official_blockchain_explorer_link"))].Isrequired == 1 && (!data.official_blockchain_explorer_link || typeof data.official_blockchain_explorer_link == 'undefined' || data.official_blockchain_explorer_link == "" || data.official_blockchain_explorer_link.length == 0 || Validator.isEmpty(data.official_blockchain_explorer_link.trim() + ''))) {243 errors.official_blockchain_explorer_link = 'coinListRequestForm.error.official_blockchain_explorer_link';244 }245246 if (validateInput.isHtmlTag(data.official_blockchain_explorer_link)) {247 errors.official_blockchain_explorer_link = 'my_account.err.scriptTag';248 } else if (!Validator.isURL(data.official_blockchain_explorer_link + "", ['http', 'https'])) {249 errors.official_blockchain_explorer_link = 'coinListRequestForm.error.official_gitHub_repository_link_url';250 }251 }252253 //19)max_coin_supply254 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "max_coin_supply")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "max_coin_supply"))].status == 1) {255 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "max_coin_supply"))].Isrequired == 1 && (!data.max_coin_supply || typeof data.max_coin_supply == 'undefined' || data.max_coin_supply == "" || data.max_coin_supply.length == 0 || Validator.isEmpty(data.max_coin_supply.trim() + ''))) {256 errors.max_coin_supply = 'coinListRequestForm.error.max_coin_supply';257 }258259 if (validateInput.isHtmlTag(data.max_coin_supply)) {260 errors.max_coin_supply = 'my_account.err.scriptTag';261 }262 }263264 //20)tx_Fee_for_transaction265 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "tx_Fee_for_transaction")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "tx_Fee_for_transaction"))].status == 1) {266 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "tx_Fee_for_transaction"))].Isrequired == 1 && (!data.tx_Fee_for_transaction || typeof data.tx_Fee_for_transaction == 'undefined' || data.tx_Fee_for_transaction == "" || data.tx_Fee_for_transaction.length == 0 || Validator.isEmpty(data.tx_Fee_for_transaction.trim() + ''))) {267 errors.tx_Fee_for_transaction = 'coinListRequestForm.error.tx_Fee_for_transaction';268 }269270 if (validateInput.isHtmlTag(data.tx_Fee_for_transaction)) {271 errors.tx_Fee_for_transaction = 'my_account.err.scriptTag';272 }273 }274275 //21)social_media_links276 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "social_media_links")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "social_media_links"))].status == 1) {277 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "social_media_links"))].Isrequired == 1 && (typeof data.social_media_links == 'undefined' && data.social_media_links == "" && data.social_media_links == null || Validator.isEmpty(data.social_media_links.trim() + ''))) {278 errors.social_media_links = 'coinListRequestForm.error.socialMediaLinks';279 }280 if (validateInput.isHtmlTag(data.social_media_links)) {281 errors.social_media_links = 'my_account.err.scriptTag';282 } else if (typeof data.social_media_links != 'undefined' && data.social_media_links != "" && data.social_media_links != null && !Validator.isURL(data.social_media_links + "", ['http', 'https'])) {283 errors.social_media_links = 'coinListRequestForm.error.validUrl';284 }285 }286287 //22)code_review_audit_trusted_community288 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "code_review_audit_trusted_community")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "code_review_audit_trusted_community"))].status == 1) {289 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "code_review_audit_trusted_community"))].Isrequired == 1 && (!data.code_review_audit_trusted_community || typeof data.code_review_audit_trusted_community == 'undefined' || data.code_review_audit_trusted_community == "" || data.code_review_audit_trusted_community.length == 0 || Validator.isEmpty(data.code_review_audit_trusted_community.trim() + ''))) {290 errors.code_review_audit_trusted_community = 'coinListRequestForm.error.code_review_audit_trusted_community';291 }292293 if (validateInput.isHtmlTag(data.code_review_audit_trusted_community)) {294 errors.code_review_audit_trusted_community = 'my_account.err.scriptTag';295 }296 }297298 //23)deployment_process299 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "deployment_process")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "deployment_process"))].status == 1) {300 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "deployment_process"))].Isrequired == 1 && (!data.deployment_process || typeof data.deployment_process == 'undefined' || data.deployment_process == "" || data.deployment_process.length == 0 || Validator.isEmpty(data.deployment_process.trim() + ''))) {301 errors.deployment_process = 'coinListRequestForm.error.deployment_process';302 }303304 if (validateInput.isHtmlTag(data.deployment_process)) {305 errors.deployment_process = 'my_account.err.scriptTag';306 }307 }308309 //24)premined_coin_amount310 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_amount")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_amount"))].status == 1) {311 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_amount"))].Isrequired == 1 && (!data.premined_coin_amount || typeof data.premined_coin_amount == 'undefined' || data.premined_coin_amount == "" || data.premined_coin_amount.length == 0 || Validator.isEmpty(data.premined_coin_amount.trim() + ''))) {312 errors.premined_coin_amount = 'coinListRequestForm.error.premined_coin_amount';313 }314315 if (validateInput.isHtmlTag(data.premined_coin_amount)) {316 errors.premined_coin_amount = 'my_account.err.scriptTag';317 } else if (typeof data.premined_coin_amount != 'undefined' && data.premined_coin_amount != "" && data.premined_coin_amount.length > 0 && !Validator.isNumeric(data.premined_coin_amount + "")) {318 errors.premined_coin_amount = 'my_account.err.fieldNum';319 }320 }321322 //25)premined_coin_in_escrow323 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_in_escrow")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_in_escrow"))].status == 1) {324 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "premined_coin_in_escrow"))].Isrequired == 1 && (!data.premined_coin_in_escrow || typeof data.premined_coin_in_escrow == 'undefined' || data.premined_coin_in_escrow == "" || data.premined_coin_in_escrow.length == 0 || Validator.isEmpty(data.premined_coin_in_escrow.trim() + ''))) {325 errors.premined_coin_in_escrow = 'coinListRequestForm.error.premined_coin_in_escrow';326 }327328 if (validateInput.isHtmlTag(data.premined_coin_in_escrow)) {329 errors.premined_coin_in_escrow = 'my_account.err.scriptTag';330 }331 }332333 //26)number_of_addresses_coins_were_distributed334 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_addresses_coins_were_distributed")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_addresses_coins_were_distributed"))].status == 1) {335336 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_addresses_coins_were_distributed"))].Isrequired == 1 && (!data.number_of_addresses_coins_were_distributed || typeof data.number_of_addresses_coins_were_distributed == 'undefined' || data.number_of_addresses_coins_were_distributed == "" || data.number_of_addresses_coins_were_distributed.length == 0 || Validator.isEmpty(data.number_of_addresses_coins_were_distributed.trim() + ''))) {337 errors.number_of_addresses_coins_were_distributed = 'coinListRequestForm.error.number_of_addresses_coins_were_distributed';338 }339340 if (validateInput.isHtmlTag(data.number_of_addresses_coins_were_distributed)) {341 errors.number_of_addresses_coins_were_distributed = 'my_account.err.scriptTag';342 }343 }344345 //27)segwit_exhibition346 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "segwit_exhibition")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "segwit_exhibition"))].status == 1) {347 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "segwit_exhibition"))].Isrequired == 1 && (!data.segwit_exhibition || typeof data.segwit_exhibition == 'undefined' || data.segwit_exhibition == "" || data.segwit_exhibition.length == 0 || Validator.isEmpty(data.segwit_exhibition.trim() + ''))) {348 errors.segwit_exhibition = 'coinListRequestForm.error.segwit_exhibition';349 }350 if (validateInput.isHtmlTag(data.segwit_exhibition)) {351 errors.segwit_exhibition = 'my_account.err.scriptTag';352 }353 }354355 //28)blockspeed356 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "blockspeed")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "blockspeed"))].status == 1) {357 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "blockspeed"))].Isrequired == 1 && (!data.blockspeed || typeof data.blockspeed == 'undefined' || data.blockspeed == "" || data.blockspeed.length == 0 || Validator.isEmpty(data.blockspeed.trim() + ''))) {358 errors.blockspeed = 'coinListRequestForm.error.blockspeed';359 }360361 if (validateInput.isHtmlTag(data.blockspeed)) {362 errors.blockspeed = 'my_account.err.scriptTag';363 }364 }365366 //29)core_algorithm367 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "core_algorithm")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "core_algorithm"))].status == 1) {368 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "core_algorithm"))].Isrequired == 1 && (!data.core_algorithm || typeof data.core_algorithm == 'undefined' || data.core_algorithm == "" || data.core_algorithm.length == 0 || Validator.isEmpty(data.core_algorithm.trim() + ''))) {369 errors.core_algorithm = 'coinListRequestForm.error.core_algorithm';370 }371372 if (validateInput.isHtmlTag(data.core_algorithm)) {373 errors.core_algorithm = 'my_account.err.scriptTag';374 }375 }376377 //30)amount_raised_during_pre_ico378 if ((coinListFields.findIndex(coinListformField => (coinListformField.key === "amount_raised_during_pre_ico")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "amount_raised_during_pre_ico"))].status == 1)) {379 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "core_algorithm"))].Isrequired == 1 && (typeof data.amount_raised_during_pre_ico == 'undefined' && data.amount_raised_during_pre_ico == "" && data.amount_raised_during_pre_ico == null)) {380 errors.amount_raised_during_pre_ico = 'my_account.err.amount_raised_during_pre_ico';381 }382 if (validateInput.isHtmlTag(data.amount_raised_during_pre_ico)) {383 errors.amount_raised_during_pre_ico = 'my_account.err.scriptTag';384 } else if (typeof data.amount_raised_during_pre_ico != 'undefined' && data.amount_raised_during_pre_ico != "" && data.amount_raised_during_pre_ico != null && !Validator.isNumeric(data.amount_raised_during_pre_ico + "")) {385 errors.amount_raised_during_pre_ico = 'my_account.err.fieldNum';386 }387 }388389 //31)Advisory390 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "Advisory")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "Advisory"))].status == 1) {391 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "Advisory"))].Isrequired == 1 && (!data.advisory || typeof data.advisory == 'undefined' || data.advisory == "" || data.advisory.length == 0 || Validator.isEmpty(data.advisory.trim() + ''))) {392 errors.advisory = 'coinListRequestForm.error.Advisory';393 }394395 if (validateInput.isHtmlTag(data.advisory)) {396 errors.advisory = 'my_account.err.scriptTag';397 }398 }399400 //32)number_of_blocks_mined401 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_blocks_mined")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_blocks_mined"))].status == 1) {402 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "number_of_blocks_mined"))].Isrequired == 1 && (!data.number_of_blocks_mined || typeof data.number_of_blocks_mined == 'undefined' || data.number_of_blocks_mined == "" || data.number_of_blocks_mined.length == 0 || Validator.isEmpty(data.number_of_blocks_mined.trim() + ''))) {403 errors.number_of_blocks_mined = 'coinListRequestForm.error.number_of_blocks_mined';404 }405406 if (validateInput.isHtmlTag(data.number_of_blocks_mined)) {407 errors.number_of_blocks_mined = 'my_account.err.scriptTag';408 }409 }410411 //33)dev_language412 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "dev_language")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "dev_language"))].status == 1) {413 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "dev_language"))].Isrequired == 1 && (!data.dev_language || typeof data.dev_language == 'undefined' || data.dev_language == "" || data.dev_language.length == 0 || Validator.isEmpty(data.dev_language.trim() + ''))) {414 errors.dev_language = 'coinListRequestForm.error.dev_language';415 }416417 if (validateInput.isHtmlTag(data.dev_language)) {418 errors.dev_language = 'my_account.err.scriptTag';419 }420 }421422 //34)erc_20_compliant423 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "erc_20_compliant")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "erc_20_compliant"))].status == 1) {424 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "erc_20_compliant"))].Isrequired == 1 && (!data.erc_20_compliant || typeof data.erc_20_compliant == 'undefined' || data.erc_20_compliant == "" || data.erc_20_compliant.length == 0 || Validator.isEmpty(data.erc_20_compliant.trim() + ''))) {425 errors.erc_20_compliant = 'coinListRequestForm.error.erc_20_compliant';426 }427428 if (validateInput.isHtmlTag(data.erc_20_compliant)) {429 errors.erc_20_compliant = 'my_account.err.scriptTag';430 }431 }432433 //35)difficulty434 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "difficulty")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "difficulty"))].status == 1) {435 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "difficulty"))].Isrequired == 1 && (!data.difficulty || typeof data.difficulty == 'undefined' || data.difficulty == "" || data.difficulty.length == 0 || Validator.isEmpty(data.difficulty.trim() + ''))) {436 errors.difficulty = 'coinListRequestForm.error.difficulty';437 }438439 if (validateInput.isHtmlTag(data.difficulty)) {440 errors.difficulty = 'my_account.err.scriptTag';441 }442 }443444 //36)wallet445 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet"))].status == 1) {446 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "wallet"))].Isrequired == 1 && (!data.wallet || typeof data.wallet == 'undefined' || data.wallet == "" || data.wallet.length == 0 || Validator.isEmpty(data.wallet.trim() + ''))) {447 errors.wallet = 'coinListRequestForm.error.wallet';448 }449450 if (validateInput.isHtmlTag(data.wallet)) {451 errors.wallet = 'my_account.err.scriptTag';452 }453 }454455 //37)usual_cost456 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "usual_cost")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "usual_cost"))].status == 1) {457 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "usual_cost"))].Isrequired == 1 && (!data.usual_cost || typeof data.usual_cost == 'undefined' || data.usual_cost == "" || data.usual_cost.length == 0 || Validator.isEmpty(data.usual_cost.trim() + ''))) {458 errors.usual_cost = 'coinListRequestForm.error.usual_cost';459 }460 if (validateInput.isHtmlTag(data.usual_cost)) {461 errors.usual_cost = 'my_account.err.scriptTag';462 }463 }464465 //38)if_this_coin_is_a_security466 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "if_this_coin_is_a_security")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "if_this_coin_is_a_security"))].status == 1) {467 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "if_this_coin_is_a_security"))].Isrequired == 1 && (!data.if_this_coin_is_a_security || typeof data.if_this_coin_is_a_security == 'undefined' || data.if_this_coin_is_a_security == "" || data.if_this_coin_is_a_security.length == 0 || Validator.isEmpty(data.if_this_coin_is_a_security.trim() + ''))) {468 errors.if_this_coin_is_a_security = 'coinListRequestForm.error.if_this_coin_is_a_security';469 }470471 if (validateInput.isHtmlTag(data.if_this_coin_is_a_security)) {472 errors.if_this_coin_is_a_security = 'my_account.err.scriptTag';473 }474 }475476 //39)coin_type477 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_type")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_type"))].status == 1) {478 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_type"))].Isrequired == 1 && (!data.coin_type || typeof data.coin_type == 'undefined' || data.coin_type == "" || data.coin_type.length == 0 || Validator.isEmpty(data.coin_type.trim() + ''))) {479 errors.coin_type = 'coinListRequestForm.error.coinType';480 }481482 if (validateInput.isHtmlTag(data.coin_type)) {483 errors.coin_type = 'my_account.err.scriptTag';484 }485 }486487 //40)coin_description488 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_description")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_description"))].status == 1) {489 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_description"))].Isrequired == 1 && (!data.coin_description || typeof data.coin_description == 'undefined' || data.coin_description == "" || data.coin_description.length == 0 || Validator.isEmpty(data.coin_description.trim() + ''))) {490 errors.coin_description = 'coinListRequestForm.error.coinDescription';491 }492493 if (validateInput.isHtmlTag(data.coin_description)) {494 errors.coin_description = 'my_account.err.scriptTag';495 }496 }497498 //41)coin_short_name499 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_short_name")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_short_name"))].status == 1) {500 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_short_name"))].Isrequired == 1 && (!data.coin_short_name || typeof data.coin_short_name == 'undefined' || data.coin_short_name == "" || data.coin_short_name.length == 0 || Validator.isEmpty(data.coin_short_name.trim() + ''))) {501 errors.coin_short_name = 'coinListRequestForm.error.coin_short_name';502 }503504 if (validateInput.isHtmlTag(data.coin_short_name)) {505 errors.coin_short_name = 'my_account.err.scriptTag';506 }507 }508509 //42)coin_address510 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_address")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_address"))].status == 1) {511 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "coin_address"))].Isrequired == 1 && (!data.coin_address || typeof data.coin_address == 'undefined' || data.coin_address == "" || data.coin_address.length == 0 || Validator.isEmpty(data.coin_address.trim() + ''))) {512 errors.coin_address = 'coinListRequestForm.error.coinAddress';513 }514515 if (validateInput.isHtmlTag(data.coin_address)) {516 errors.coin_address = 'my_account.err.scriptTag';517 }518 }519520 //43)decimal521 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "decimal")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "decimal"))].status == 1) {522 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "decimal"))].Isrequired == 1 && (!data.decimal || typeof data.decimal == 'undefined' || data.decimal == "" || data.decimal.length == 0 || Validator.isEmpty(data.decimal.trim() + ''))) {523 errors.decimal = 'coinListRequestForm.error.decimal';524 }525 if (validateInput.isHtmlTag(data.decimal)) {526 errors.decimal = 'my_account.err.scriptTag';527 }528 }529530 //44)total_supply531 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "total_supply")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "total_supply"))].status == 1) {532 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "total_supply"))].Isrequired == 1 && (!data.total_supply || typeof data.total_supply == 'undefined' || data.total_supply == "" || data.total_supply.length == 0 || Validator.isEmpty(data.total_supply.trim() + ''))) {533 errors.total_supply = 'coinListRequestForm.error.totalSupply';534 }535 if (validateInput.isHtmlTag(data.total_supply)) {536 errors.total_supply = 'my_account.err.scriptTag';537 }538 }539540 //45)circulating_supply541 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "circulating_supply")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "circulating_supply"))].status == 1) {542 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "circulating_supply"))].Isrequired == 1 && (!data.circulating_supply || typeof data.circulating_supply == 'undefined' || data.circulating_supply == "" || data.circulating_supply.length == 0 || Validator.isEmpty(data.circulating_supply.trim() + ''))) {543 errors.circulating_supply = 'coinListRequestForm.error.circulatingSupply';544 }545546 if (validateInput.isHtmlTag(data.circulating_supply)) {547 errors.circulating_supply = 'my_account.err.scriptTag';548 }549 }550551 //46)first_name552 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "first_name")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "first_name"))].status == 1) {553 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "first_name"))].Isrequired == 1 && (!data.first_name || typeof data.first_name == 'undefined' || data.first_name == "" || data.first_name.length == 0 || Validator.isEmpty(data.first_name.trim() + ''))) {554 errors.first_name = 'coinListRequestForm.error.firstName';555 }556 if (typeof data.first_name != 'undefined' && data.first_name != "" && data.first_name.length > 0 && validateInput.isHtmlTag(data.first_name)) {557 errors.first_name = 'my_account.err.scriptTag';558 } else if (typeof data.first_name != 'undefined' && data.first_name != "" && data.first_name.length > 0 && !Validator.isAlpha(data.first_name + "")) {559 errors.first_name = 'coinListRequestForm.error.validAlpha';560 }561 }562563 //47)last_name564 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "last_name")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "last_name"))].status == 1) {565 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "last_name"))].Isrequired == 1 && (!data.last_name || typeof data.last_name == 'undefined' || data.last_name == "" || data.last_name.length == 0 || Validator.isEmpty(data.last_name.trim() + ''))) {566 errors.last_name = 'coinListRequestForm.error.last_name';567 }568 if (validateInput.isHtmlTag(data.last_name)) {569 errors.last_name = 'my_account.err.scriptTag';570 } else if (typeof data.last_name != 'undefined' && data.last_name != "" && data.last_name != null && !Validator.isAlpha(data.last_name + "")) {571 errors.last_name = 'coinListRequestForm.error.validAlpha';572 }573 }574575 //48)address576 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "address")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "address"))].status == 1) {577 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "address"))].Isrequired == 1 && (!data.address || typeof data.address == 'undefined' || data.address == "" || data.address.length == 0 || Validator.isEmpty(data.address.trim() + ''))) {578 errors.address = 'coinListRequestForm.error.Address';579 }580581 if (validateInput.isHtmlTag(data.address)) {582 errors.address = 'my_account.err.scriptTag';583 }584 }585586 //49)address_line_2587 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "address_line_2")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "address_line_2"))].status == 1) {588 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "address_line_2"))].Isrequired == 1 && (!data.address_line_2 || typeof data.address_line_2 == 'undefined' || data.address_line_2 == "" || data.address_line_2.length == 0 || Validator.isEmpty(data.address_line_2.trim() + ''))) {589 errors.address_line_2 = 'coinListRequestForm.error.address_line_2';590 }591592 if (validateInput.isHtmlTag(data.address_line_2)) {593 errors.address_line_2 = 'my_account.err.scriptTag';594 }595 }596597 //50)city598 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "city")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "city"))].status == 1) {599 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "city"))].Isrequired == 1 && (!data.city || typeof data.city == 'undefined' || data.city == "" || data.city.length == 0 || Validator.isEmpty(data.city.trim() + ''))) {600 errors.city = 'coinListRequestForm.error.city';601 }602603 if (validateInput.isHtmlTag(data.city)) {604 errors.city = 'my_account.err.scriptTag';605 }606 }607608 //51)state609 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "state")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "state"))].status == 1) {610 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "state"))].Isrequired == 1 && (!data.state || typeof data.state == 'undefined' || data.state == "" || data.state.length == 0 || Validator.isEmpty(data.state.trim() + ''))) {611 errors.state = 'coinListRequestForm.error.state';612 }613614 if (validateInput.isHtmlTag(data.state)) {615 errors.state = 'my_account.err.scriptTag';616 }617 }618619 //52)postalCode620 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "postalCode")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "postalCode"))].status == 1) {621622 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "postalCode"))].Isrequired == 1 && !data.postalCode || typeof data.postalCode == 'undefined' || data.postalCode == "" || data.postalCode.length == 0 || Validator.isEmpty(data.postalCode.trim() + '')) {623 errors.postalCode = 'coinListRequestForm.error.postalCode';624 }625 if (typeof data.postalCode != 'undefined' && data.postalCode != "" && data.postalCode.length > 0 && !Validator.isNumeric(data.postalCode + "")) {626 errors.postalCode = 'coinListRequestForm.error.postalCodeNumber';627 }628 }629630 //53)country631 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "country")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "country"))].status == 1) {632 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "country"))].Isrequired == 1 && (!data.country || typeof data.country == 'undefined' || data.country == "" || data.country.length == 0 || Validator.isEmpty(data.country.trim() + ''))) {633 errors.country = 'coinListRequestForm.error.country';634 }635636 if (validateInput.isHtmlTag(data.country)) {637 errors.country = 'my_account.err.scriptTag';638 }639 }640641 //54)phone642 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "phone")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "phone"))].status == 1) {643 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "phone"))].Isrequired == 1 && (typeof data.phone == 'undefined' && data.phone == "" && data.phone == null)) {644 errors.phone = 'coinListRequestForm.error.phone';645 }646 if (validateInput.isHtmlTag(data.phone)) {647 errors.phone = 'my_account.err.scriptTag';648 } else if (typeof data.phone != 'undefined' && data.phone != "" && data.phone != null && !Validator.isNumeric(data.phone + "")) {649 errors.phone = 'my_account.err.fieldNum';650 }651 }652653 //55)email654 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "email")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "email"))].status == 1) {655656 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "email"))].Isrequired == 1 && (!data.email || typeof data.email == 'undefined' || data.email == "" || data.email.length == 0 || Validator.isEmpty(data.email.trim() + ''))) {657 errors.email = 'coinListRequestForm.error.email';658 }659 if (validateInput.isHtmlTag(data.email)) {660 errors.email = 'my_account.err.scriptTag';661 } else if (typeof data.email != 'undefined' && data.email != "" && data.email.length > 0 && !Validator.isEmail(data.email)) {662 errors.email = 'coinListRequestForm.error.emailValidation';663 }664 }665666 //56)project_name667 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "project_name")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "project_name"))].status == 1) {668 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "project_name"))].Isrequired == 1 && (!data.project_name && typeof data.project_name == 'undefined' && data.project_name == "" && data.project_name.length > 0 && Validator.isEmpty(data.project_name.trim() + ''))) {669 errors.project_name = 'coinListRequestForm.error.project_name';670 }671672 if (validateInput.isHtmlTag(data.project_name)) {673 errors.project_name = 'my_account.err.scriptTag';674 }675 }676677 //57)project_website_link678 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "project_website_link")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "project_website_link"))].status == 1) {679 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "project_website_link"))].Isrequired == 1 && (typeof data.project_website_link == 'undefined' || data.project_website_link == "" || data.project_website_link == null)) {680 errors.project_website_link = 'coinListRequestForm.error.projectWebsiteLink';681 }682683 if (validateInput.isHtmlTag(data.project_website_link)) {684 errors.project_website_link = 'my_account.err.scriptTag';685 } else if (typeof data.project_website_link != 'undefined' && data.project_website_link != "" && data.project_website_link != null && !Validator.isURL(data.project_website_link + "", ['http', 'https'])) {686 errors.project_website_link = 'coinListRequestForm.error.official_gitHub_repository_link_url';687 }688 }689690 //58)do_you_have_an_active_community691 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "do_you_have_an_active_community")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "do_you_have_an_active_community"))].status == 1) {692 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "do_you_have_an_active_community"))].Isrequired == 1 && (!data.do_you_have_an_active_community || typeof data.do_you_have_an_active_community == 'undefined' || data.do_you_have_an_active_community == "" || data.do_you_have_an_active_community.length == 0 || Validator.isEmpty(data.do_you_have_an_active_community.trim() + ''))) {693 errors.do_you_have_an_active_community = 'coinListRequestForm.error.doYouHaveActiveCommunity';694 }695696 if (validateInput.isHtmlTag(data.do_you_have_an_active_community)) {697 errors.do_you_have_an_active_community = 'my_account.err.scriptTag';698 }699 }700701 //59)information_on_how_funds_were_raised702 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "information_on_how_funds_were_raised")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "information_on_how_funds_were_raised"))].status == 1) {703 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "information_on_how_funds_were_raised"))].Isrequired == 1 && (!data.information_on_how_funds_were_raised || typeof data.information_on_how_funds_were_raised == 'undefined' || data.information_on_how_funds_were_raised == "" || data.information_on_how_funds_were_raised.length == 0 || Validator.isEmpty(data.information_on_how_funds_were_raised.trim() + ''))) {704 errors.information_on_how_funds_were_raised = 'coinListRequestForm.error.information_on_how_funds_were_raised';705 }706707 if (validateInput.isHtmlTag(data.information_on_how_funds_were_raised)) {708 errors.information_on_how_funds_were_raised = 'my_account.err.scriptTag';709 }710 }711712 //60)current_listing_on_other_exchanges713 if (coinListFields.findIndex(coinListformField => (coinListformField.key === "current_listing_on_other_exchanges")) != -1 && coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "current_listing_on_other_exchanges"))].status == 1) {714 if (coinListFields[coinListFields.findIndex(coinListformField => (coinListformField.key === "current_listing_on_other_exchanges"))].Isrequired == 1 && (!data.current_listing_on_other_exchanges || typeof data.current_listing_on_other_exchanges == 'undefined' || data.current_listing_on_other_exchanges == "" || data.current_listing_on_other_exchanges.length == 0 || Validator.isEmpty(data.current_listing_on_other_exchanges.trim() + ''))) {715 errors.current_listing_on_other_exchanges = 'coinListRequestForm.error.currentListingOtherExchanges';716 }717 if (validateInput.isHtmlTag(data.current_listing_on_other_exchanges)) {718 errors.current_listing_on_other_exchanges = 'my_account.err.scriptTag';719 }720 }721 }722 return {723 errors,724 isValid: Object.keys(errors).length > 0 ? true : false725 };726 ...

Full Screen

Full Screen

index.spec.ts

Source:index.spec.ts Github

copy

Full Screen

...39test('Is Block Comment', () => {40 expect(isBlockCommentEnd('*')).toEqual(false);41});42test('Is HtmlTag', () => {43 expect(isHtmlTag('a')).toEqual(true);44 expect(isHtmlTag('a.class#{$var}[type="awd"]')).toEqual(true);45 expect(isHtmlTag('ab')).toEqual(false);46 expect(isHtmlTag('tr:nth-child(2n+1)')).toEqual(true);47 expect(isHtmlTag('picture, img')).toEqual(true);48 expect(isHtmlTag('i[class^="el-icon"]')).toEqual(true);49});50test('Is Include', () => {51 expect(isInclude('+a')).toEqual(true);52 expect(isInclude('@include a')).toEqual(true);53 expect(isInclude('+a()')).toEqual(true);54 expect(isInclude('+a-a()')).toEqual(true);55 expect(isInclude('@include a-a()')).toEqual(true);56 expect(isInclude('a')).toEqual(false);...

Full Screen

Full Screen

tags.spec.js

Source:tags.spec.js Github

copy

Full Screen

...9 ["not an element", false],10 ])(11 "for %s returns %s",12 (value, expected) =>{13 const actual = isHtmlTag(value);14 expect(actual).toEqual(expected);15 }16 )17});18describe("isHtmlAttribute", () => {19 test.each([20 ["class", true],21 ["id", true],22 ["role", true],23 ["data-whatever", true],24 ["aria-whatever", true],25 ["onclick", true],26 ["onAnything", true],27 ["style", true],...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-elements';2import { isReactComponent } from 'storybook-root-elements';3import { isAngularComponent } from 'storybook-root-elements';4import { isVueComponent } from 'storybook-root-elements';5import { isSvelteComponent } from 'storybook-root-elements';6import { isWebComponent } from 'storybook-root-elements';7import { isShadowDomComponent } from 'storybook-root-elements';8import { isPolymerComponent } from 'storybook-root-elements';9import { isEmberComponent } from 'storybook-root-elements';10import { isBackboneComponent } from 'storybook-root-elements';11import { isMarkoComponent } from 'storybook-root-elements';12import { isRiotComponent } from 'storybook-root-elements';13import { isKnockoutComponent } from 'storybook-root-elements';14console.log(isKnock

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-html-tag';2import { isHtmlTag } from 'storybook-root-html-tag';3import { isHtmlTag } from 'storybook-root-html-tag';4import { isHtmlTag } from 'storybook-root-html-tag';5import { isHtmlTag } from 'storybook-root-html-tag';6import { isHtmlTag } from 'storybook-root-html-tag';7import { isHtmlTag } from 'storybook-root-html-tag';8import { isHtmlTag } from 'storybook-root-html-tag';9console.log(isHtmlTag('div

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-elements'2const isTag = isHtmlTag('div')3import { isSvgTag } from 'storybook-root-elements'4const isTag = isSvgTag('svg')5import { isWebComponentTag } from 'storybook-root-elements'6const isTag = isWebComponentTag('my-component')7import { isReactComponentTag } from 'storybook-root-elements'8const isTag = isReactComponentTag('my-component')9import { isPolymerElementTag } from 'storybook-root-elements'10const isTag = isPolymerElementTag('my-component')11import { isNativeElementTag } from 'storybook-root-elements'12const isTag = isNativeElementTag('my-component')13import { isAngularElementTag } from 'storybook-root-elements'14const isTag = isAngularElementTag('my-component')15import { isVueElementTag } from 'storybook-root-elements'16const isTag = isVueElementTag('my-component')17import { isSvelteElementTag } from 'storybook-root-elements'18const isTag = isSvelteElementTag('my-component')19import { isStencilElementTag } from 'storybook-root-elements'20const isTag = isStencilElementTag('my-component')21import { isLitElementTag } from 'storybook-root-elements'

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-elements';2if (isHtmlTag('my-component')) {3}4import { isHtmlTag } from 'storybook-root-elements';5export const parameters = {6 docs: {7 prepareForInline: (storyFn) => {8 const story = storyFn();9 if (isHtmlTag(story.type)) {10 return story;11 }12 return storyFn();13 },14 },15};16import { addons } from '@storybook/addons';17import { themes } from '@storybook/theming';18addons.setConfig({19});20import { addDecorator } from '@storybook/html';21import { withA11y } from '@storybook/addon-a11y';22addDecorator(withA11y);23import { addDecorator } from '@storybook/html';24import { withA11y } from '@storybook/addon-a11y';25addDecorator(withA11y);26import { addDecorator } from '@storybook/html';27addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);28import { addDecorator } from '@storybook/html';29addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);30import { addDecorator } from '@storybook/html';31addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);32import { addDecorator } from '@storybook/html';33addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);34import { addDecorator } from '@storybook/html';35addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);36import { addDecorator } from '@storybook/html';37addDecorator((story) => `<div style="margin: 3em">${story()}</div>`);

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-elements';2if (isHtmlTag('div')) {3 console.log('div is a valid html tag');4}5import { isHtmlTag } from 'storybook-root-elements';6if (isHtmlTag('div')) {7 console.log('div is a valid html tag');8}9import { isHtmlTag } from 'storybook-root-elements';10if (isHtmlTag('div')) {11 console.log('div is a valid html tag');12}13import { isHtmlTag } from 'storybook-root-elements';14if (isHtmlTag('div')) {15 console.log('div is a valid html tag');16}17import { isHtmlTag } from 'storybook-root-elements';18if (isHtmlTag('div')) {19 console.log('div is a valid html tag');20}21import { isHtmlTag } from 'storybook-root-elements';22if (isHtmlTag('div')) {23 console.log('div is a valid html tag');24}25import { isHtmlTag } from 'storybook-root-elements';26if (isHtmlTag('div')) {27 console.log('div is a valid html tag');28}29import { isHtmlTag } from 'storybook-root-elements';30if (isHtmlTag('div')) {31 console.log('div is a valid html tag');32}33import { isHtmlTag } from 'storybook-root-elements';34if (isHtmlTag('div')) {35 console.log('div is a valid html tag');36}

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from 'storybook-root-cause';2const isHtmlTag = require("storybook-root-cause/lib/isHtmlTag");3if (isHtmlTag(tagName)) {4}5import isHtmlTag from 'storybook-root-cause/lib/isHtmlTag';6if (isHtmlTag(tagName)) {7}8import { isHtmlTag } from 'storybook-root-cause';9if (isHtmlTag(tagName)) {10}11If you are using TypeScript, you can import the types for the methods as well:12import { isHtmlTag } from 'storybook-root-cause';13const isHtmlTag = require("storybook-root-cause/lib/isHtmlTag");14if (isHtmlTag(tagName)) {15}16import isHtmlTag from 'storybook-root-cause/lib/isHtmlTag';17if (isHtmlTag(tagName)) {18}19import { isHtmlTag } from 'storybook-root-cause';20if (isHtmlTag(tagName)) {21}22If you are using TypeScript, you can import the types for the methods

Full Screen

Using AI Code Generation

copy

Full Screen

1import { isHtmlTag } from '@storybook/addon-docs/dist/frameworks/common/configure';2import { html } from 'lit-html';3const story = () => html`4`;5export default {6};7export const test = () => {8 const result = isHtmlTag(story());9 `;10};11 at isHtmlTag (configure.js:18)12 at test (test.js:16)13 at renderMain (preview.js:86)14 at async Promise.all (index 0)15 at async renderPreview (preview.js:186)16I'm not sure if this is a bug or if I'm doing something wrong. I'm trying to use the isHtmlTag method in a story file. I've installed the addon-docs package and I've added the addon-docs preset to my main.js file. I've also imported the isHtmlTag method in my story file. Here's my story file:17I'm not sure if this is a bug or if I'm doing something wrong. I'm trying to use the isHtmlTag method in a story file. I've installed the addon-docs package and I've added the addon-docs preset to my main.js file. I've also imported the isHtmlTag method in my story file. Here's my story file:18import { isHtmlTag } from '@storybook/addon-docs/dist/frameworks/common/configure';19import { html } from 'lit-html';20const story = () => html`

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run storybook-root automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful