--- // Port of preview/pages/form-elements.html import DefaultLayout from '@shared/layouts/DefaultLayout.astro'; import FormElements1 from '@shared/components/forms/FormElements1.astro'; import FormElements2 from '@shared/components/forms/FormElements2.astro'; import FormElements3 from '@shared/components/forms/FormElements3.astro'; import FormElements4 from '@shared/components/forms/FormElements4.astro'; import FormElements5 from '@shared/components/forms/FormElements5.astro'; import FormElements6 from '@shared/components/forms/FormElements6.astro'; import Layout from '@shared/components/cards/form/Layout.astro'; import InputIcon from '@shared/components/ui/form/InputIcon.astro'; import InputMask from '@shared/components/ui/form/InputMask.astro'; import Button from '@shared/components/Button.astro'; import Avatar from '@shared/components/ui/Avatar.astro'; import people from '@data/people.json'; const httpMethods = ['GET', 'POST', 'PUT', 'HEAD', 'DELETE', 'PATCH']; const comparisons = [ ['EQUALS', 'Equals'], ['NOT_EQUALS', 'Not equals'], ['HAS_KEY', 'Has key'], ['NOT_HAS_KEY', 'Not has key'], ['HAS_VALUE', 'Has value'], ['NOT_HAS_VALUE', 'Not has value'], ['IS_EMPTY', 'Is empty'], ['NOT_EMPTY', 'Is not empty'], ['GREATER_THAN', 'Greater than'], ['LESS_THAN', 'Less than'], ]; const sources = [ ['STATUS_CODE', 'Status code'], ['JSON_BODY', 'JSON body'], ['HEADERS', 'Headers'], ['TEXT_BODY', 'Text body'], ['RESPONSE_TIME', 'Response time'], ]; // assertion rows: [sourceSel, targetVal, comparisonSel] const rows = [ { source: 'STATUS_CODE', comparison: 'EQUALS', target: '200', prop: '' }, { source: 'JSON_BODY', comparison: 'HAS_VALUE', target: 'string', prop: 'parameters.alt.type' }, { source: 'RESPONSE_TIME', comparison: 'LESS_THAN', target: '500', prop: '' }, { source: 'HEADERS', comparison: 'EQUALS', target: 'application/json; charset=UTF-8', prop: 'content-type' }, ]; --- Form elements Project ID Used when interacting with the API. Node.js Version The version of Node.js that is used in the Build Step and for Serverless Functions. A new Deployment is required for your changes to take effect. 14.x 12.x Input mask Date Hour Date & Hour ZIP Code Money Telephone Telephone with Code Area IP Address My Profile Email-Address Bio Big belly rude boy, million dollar hustler. Unemployed. Email-Address Password Edit Profile Company Username Email address First Name Last Name Address City Postal Code CountryGermany About Me Oh so, your weak rhyme You doubt I'll bother, reading into it I'll probably won't, left to my own devices But that's the difference in our opinions. HTTP Request Method {httpMethods.map((m) => {m})} URL Assertions SourcePropertyComparisonTarget { rows.map((row) => ( {sources.map(([v, l]) => {l})} {comparisons.map(([v, l]) => {l})} )) }
Used when interacting with the API.
The version of Node.js that is used in the Build Step and for Serverless Functions. A new Deployment is required for your changes to take effect.