{"version":3,"sources":["components/command-input/command-input-ui.tsx","components/commands/commands.gen.ts","components/commands/command-card/command-card-ui.tsx","components/commands/command-card/command-card-loading-ui.tsx","components/commands/a-ui.tsx","components/commands/ip-ui.tsx","components/commands/domain-ui.tsx","components/commands/aaaa-ui.tsx","components/commands/cname-ui.tsx","components/commands/mx-ui.tsx","components/commands/ns-ui.tsx","components/commands/txt-ui.tsx","components/index.tsx","components/apollo/index.tsx","components/state/index.tsx","App.tsx","web-build/register-service-worker.js"],"names":["commands","CommandInputUI","props","classes","useStyles","React","open","setOpen","anchorRef","selectedIndex","setSelectedIndex","commandStr","setCommandStr","handleClose","event","current","contains","target","Card","className","card","CardContent","content","onSubmit","runCommand","preventDefault","Grid","container","item","Button","buttonLeft","ref","variant","color","onClick","prevOpen","xs","TextField","required","input","fullWidth","placeholder","value","size","onChange","command","s","split","i","indexOf","length","type","buttonRight","Popper","anchorEl","role","undefined","transition","disablePortal","TransitionProps","placement","Grow","style","transformOrigin","Paper","ClickAwayListener","onClickAway","MenuList","id","map","option","index","MenuItem","key","selected","handleMenuItemClick","makeStyles","flex","backgroundColor","alignItems","justifyContent","marginTop","marginBottom","paddingBottom","borderRadius","padding","DomainDocument","gql","useDomainQuery","baseOptions","ApolloReactHooks","AaaaDocument","CnameDocument","MxDocument","NsDocument","TxtDocument","IpDocument","ThisIpDocument","CommandCardUI","Typography","cardHeader","children","CommandCardLoadingUI","skeleton","marginRight","Skeleton","error","Alert","severity","count","errors","skeletons","ACommandUI","variables","domain","data","loading","a","ip","aaaa","cname","mx","ns","txt","IPCommandUI","message","label","DomainCommandUI","AAAACommandUI","CNAMECommandUI","MXCommandUI","NSCommandUI","TXTCommandUI","getID","Date","getTime","ThisIPApp","cmdHistory","setCmdHistory","addHistory","elem","Container","maxWidth","CssBaseline","cmd","param","thisip","host","httpLink","Cookies","createHttpLink","uri","client","ApolloClient","cache","InMemoryCache","link","InitReducer","state","contextReducer","action","updateState","vibrate","DefaultAppContext","dispatch","AppContext","AppStateProvider","Provider","App","StyleSheet","create","navigator","window","addEventListener","serviceWorker","register","scope","then","info","catch","console"],"mappings":"8UAYMA,EAAW,CAAC,SAAU,KAAM,IAAK,OAAQ,QAAS,KAAM,KAAM,OAUvDC,EAAgD,SAACC,GAC5D,IAAMC,EAAUC,IADsD,EAE9CC,YAAe,GAF+B,WAE/DC,EAF+D,KAEzDC,EAFyD,KAGhEC,EAAYH,SAA6B,MAHuB,EAI5BA,WAAe,GAJa,WAI/DI,EAJ+D,KAIhDC,EAJgD,OAKlCL,WAAe,IALmB,WAK/DM,EAL+D,KAKnDC,EALmD,KA8ChEC,EAAc,SAACC,GAEjBN,EAAUO,SACVP,EAAUO,QAAQC,SAASF,EAAMG,SAKnCV,GAAQ,IAEV,OACE,gBAACW,EAAA,EAAD,CAAMC,UAAWhB,EAAQiB,MACvB,gBAACC,EAAA,EAAD,CAAaF,UAAWhB,EAAQmB,SAC9B,wBAAMC,SA/BQ,SAACT,GACnBZ,EAAMsB,WAAWxB,EAASS,GAAgBE,GAC1CC,EAAc,IACdE,EAAMW,mBA6BA,gBAACC,EAAA,EAAD,CAAMC,WAAS,GACb,gBAACD,EAAA,EAAD,CAAME,MAAI,GACR,gBAACC,EAAA,EAAD,CACEV,UAAWhB,EAAQ2B,WACnBC,IAAKvB,EACLwB,QAAS,YACTC,MAAO,UACPC,QAzBO,WACnB3B,GAAQ,SAAC4B,GAAD,OAAeA,OA0BVnC,EAASS,KAGd,gBAACiB,EAAA,EAAD,CAAME,MAAI,EAACQ,IAAE,GACX,gBAACC,EAAA,EAAD,CACEC,UAAU,EACVnB,UAAWhB,EAAQoC,MACnBC,WAAW,EACXC,YAAa,GACbT,QAAS,WACTU,MAAO/B,EACPgC,KAAM,QACNC,SA1Ec,SAAC9B,GAC3B,IAAM+B,EAAU/B,EAAMG,OAAOyB,MACvBI,EAAID,EAAQE,MAAM,IAAK,GACvBC,EAAIhD,EAASiD,QAAQH,EAAE,IAEzBE,GAAK,GAAKH,EAAQI,Q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AfjE,EAAc,EAAdA,SAAc,EAC5BhG,aAAiB0J,GAAgBI,GAAkBL,MAAOD,IAD9B,WAC/CC,EAD+C,KACxCM,EADwC,KAGtD,OACI,gBAACC,GAAWE,SAAZ,CAAqB7H,MAAO,CAACoH,MAAOA,EAAOM,SAAUA,IAChD/D,ICxCE,SAASmE,KACtB,OACE,kBAAC,KAAD,CAAgBhB,OAAQA,IACtB,kBAAC,GAAD,KAEE,kBAAC,GAAD,QAOOiB,IAAWC,OAAO,CAC/B/I,UAAW,CACTkD,KAAM,EACNC,gBAAiB,OACjBC,WAAY,SACZC,eAAgB,a,+DCtBhB,kBAAmB2F,WACrBC,OAAOC,iBAAiB,QAAQ,WAC9BF,UAAUG,cACPC,SAAS,0BAA2B,CAAEC,MAAO,MAC7CC,MAAK,SAAUC,OAGfC,OAAM,SAAUzE,GACf0E,QAAQF,KAAK,oCAAqCxE,W","file":"static/js/app.c3f022f1.chunk.js","sourcesContent":["import * as React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Button from \"@material-ui/core/Button\";\nimport ClickAwayListener from \"@material-ui/core/ClickAwayListener\";\nimport Grow from \"@material-ui/core/Grow\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Popper from \"@material-ui/core/Popper\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport MenuList from \"@material-ui/core/MenuList\";\nimport { Card, CardContent, TextField } from \"@material-ui/core\";\nimport makeStyles from \"@material-ui/core/styles/makeStyles\";\n\nconst commands = [\"domain\", \"ip\", \"a\", \"aaaa\", \"cname\", \"mx\", \"ns\", \"txt\"];\n\n// const commands: CommandParam[] = [{\n// regex: /$[a]/, params: [],\n// }]\n\ninterface CommandInputUIProps {\n runCommand: (cmd: string, param: string) => void;\n}\n\nexport const CommandInputUI: React.FC = (props) => {\n const classes = useStyles();\n const [open, setOpen] = React.useState(false);\n const anchorRef = React.useRef(null);\n const [selectedIndex, setSelectedIndex] = React.useState(1);\n const [commandStr, setCommandStr] = React.useState(\"\");\n\n const handleCommandChange = (event: React.ChangeEvent) => {\n const command = event.target.value;\n const s = command.split(\" \", 1);\n const i = commands.indexOf(s[0]);\n\n if (i > -1 && command.indexOf(\" \") > -1) {\n setSelectedIndex(i);\n if (s.length > 1) {\n setCommandStr(s[1]);\n } else {\n setCommandStr(\"\");\n }\n } else {\n setCommandStr(command);\n }\n };\n\n const handleChange = (cmd: string) => {\n console.log(cmd);\n };\n\n const handleClick = (event: React.FormEvent) => {\n props.runCommand(commands[selectedIndex], commandStr);\n setCommandStr(\"\");\n event.preventDefault();\n };\n\n const handleMenuItemClick = (\n event: React.MouseEvent,\n index: number\n ) => {\n setSelectedIndex(index);\n setOpen(false);\n };\n\n const handleToggle = () => {\n setOpen((prevOpen) => !prevOpen);\n };\n\n const handleClose = (event: React.MouseEvent) => {\n if (\n anchorRef.current &&\n anchorRef.current.contains(event.target as HTMLElement)\n ) {\n return;\n }\n\n setOpen(false);\n };\n return (\n \n \n
\n \n \n \n {commands[selectedIndex]}\n \n \n \n \n \n \n \n Run\n \n \n {/**/}\n \n
\n\n \n {({ TransitionProps, placement }) => (\n \n \n \n \n {commands.map((option, index) => (\n handleMenuItemClick(event, index)}\n >\n {option}\n \n ))}\n \n \n \n \n )}\n \n
\n
\n );\n};\n\nconst useStyles = makeStyles({\n container: {\n flex: 1,\n backgroundColor: \"#fff\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n card: {\n marginTop: \"1.5rem\",\n marginBottom: \"1.5rem\",\n },\n content: {\n paddingBottom: \"16px\",\n },\n buttonLeft: {\n borderRadius: \"4px 0 0 4px\",\n padding: \"7.5px 16px\",\n },\n buttonRight: {\n borderRadius: \"0 4px 4px 0\",\n padding: \"7.5px 16px\",\n },\n input: {\n \"& > .MuiOutlinedInput-root\": {\n borderRadius: \"0\",\n },\n },\n});\n","import * as Types from '../graphql/types.gen';\n\nimport gql from 'graphql-tag';\nimport * as ApolloReactCommon from '@apollo/react-common';\nimport * as ApolloReactHooks from '@apollo/react-hooks';\n\nexport type DomainQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type DomainQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type AQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type AQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type AaaaQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type AaaaQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type CnameQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type CnameQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type MxQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type MxQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type NsQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type NsQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type TxtQueryVariables = {\n domain: Types.Scalars['String'];\n};\n\n\nexport type TxtQuery = (\n { __typename?: 'RootQuery' }\n & { domain: (\n { __typename?: 'DomainType' }\n & Pick\n ) }\n);\n\nexport type IpQueryVariables = {\n ip: Types.Scalars['String'];\n};\n\n\nexport type IpQuery = (\n { __typename?: 'RootQuery' }\n & { ip: Array<(\n { __typename?: 'IPItemType' }\n & Pick\n )> }\n);\n\nexport type ThisIpQueryVariables = {};\n\n\nexport type ThisIpQuery = (\n { __typename?: 'RootQuery' }\n & Pick\n);\n\n\nexport const DomainDocument = gql`\n query Domain($domain: String!) {\n domain(domain: $domain) {\n a\n aaaa\n cname\n mx\n ns\n txt\n }\n}\n `;\n\n/**\n * __useDomainQuery__\n *\n * To run a query within a React component, call `useDomainQuery` and pass it any options that fit your needs.\n * When your component renders, `useDomainQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useDomainQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useDomainQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(DomainDocument, baseOptions);\n }\nexport function useDomainLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(DomainDocument, baseOptions);\n }\nexport type DomainQueryHookResult = ReturnType;\nexport type DomainLazyQueryHookResult = ReturnType;\nexport type DomainQueryResult = ApolloReactCommon.QueryResult;\nexport const ADocument = gql`\n query A($domain: String!) {\n domain(domain: $domain) {\n a\n }\n}\n `;\n\n/**\n * __useAQuery__\n *\n * To run a query within a React component, call `useAQuery` and pass it any options that fit your needs.\n * When your component renders, `useAQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useAQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useAQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(ADocument, baseOptions);\n }\nexport function useALazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(ADocument, baseOptions);\n }\nexport type AQueryHookResult = ReturnType;\nexport type ALazyQueryHookResult = ReturnType;\nexport type AQueryResult = ApolloReactCommon.QueryResult;\nexport const AaaaDocument = gql`\n query AAAA($domain: String!) {\n domain(domain: $domain) {\n aaaa\n }\n}\n `;\n\n/**\n * __useAaaaQuery__\n *\n * To run a query within a React component, call `useAaaaQuery` and pass it any options that fit your needs.\n * When your component renders, `useAaaaQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useAaaaQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useAaaaQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(AaaaDocument, baseOptions);\n }\nexport function useAaaaLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(AaaaDocument, baseOptions);\n }\nexport type AaaaQueryHookResult = ReturnType;\nexport type AaaaLazyQueryHookResult = ReturnType;\nexport type AaaaQueryResult = ApolloReactCommon.QueryResult;\nexport const CnameDocument = gql`\n query CNAME($domain: String!) {\n domain(domain: $domain) {\n cname\n }\n}\n `;\n\n/**\n * __useCnameQuery__\n *\n * To run a query within a React component, call `useCnameQuery` and pass it any options that fit your needs.\n * When your component renders, `useCnameQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useCnameQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useCnameQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(CnameDocument, baseOptions);\n }\nexport function useCnameLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(CnameDocument, baseOptions);\n }\nexport type CnameQueryHookResult = ReturnType;\nexport type CnameLazyQueryHookResult = ReturnType;\nexport type CnameQueryResult = ApolloReactCommon.QueryResult;\nexport const MxDocument = gql`\n query MX($domain: String!) {\n domain(domain: $domain) {\n mx\n }\n}\n `;\n\n/**\n * __useMxQuery__\n *\n * To run a query within a React component, call `useMxQuery` and pass it any options that fit your needs.\n * When your component renders, `useMxQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useMxQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useMxQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(MxDocument, baseOptions);\n }\nexport function useMxLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(MxDocument, baseOptions);\n }\nexport type MxQueryHookResult = ReturnType;\nexport type MxLazyQueryHookResult = ReturnType;\nexport type MxQueryResult = ApolloReactCommon.QueryResult;\nexport const NsDocument = gql`\n query NS($domain: String!) {\n domain(domain: $domain) {\n ns\n }\n}\n `;\n\n/**\n * __useNsQuery__\n *\n * To run a query within a React component, call `useNsQuery` and pass it any options that fit your needs.\n * When your component renders, `useNsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useNsQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useNsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(NsDocument, baseOptions);\n }\nexport function useNsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(NsDocument, baseOptions);\n }\nexport type NsQueryHookResult = ReturnType;\nexport type NsLazyQueryHookResult = ReturnType;\nexport type NsQueryResult = ApolloReactCommon.QueryResult;\nexport const TxtDocument = gql`\n query TXT($domain: String!) {\n domain(domain: $domain) {\n txt\n }\n}\n `;\n\n/**\n * __useTxtQuery__\n *\n * To run a query within a React component, call `useTxtQuery` and pass it any options that fit your needs.\n * When your component renders, `useTxtQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useTxtQuery({\n * variables: {\n * domain: // value for 'domain'\n * },\n * });\n */\nexport function useTxtQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(TxtDocument, baseOptions);\n }\nexport function useTxtLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(TxtDocument, baseOptions);\n }\nexport type TxtQueryHookResult = ReturnType;\nexport type TxtLazyQueryHookResult = ReturnType;\nexport type TxtQueryResult = ApolloReactCommon.QueryResult;\nexport const IpDocument = gql`\n query IP($ip: String!) {\n ip(ip: $ip) {\n id\n label\n value\n }\n}\n `;\n\n/**\n * __useIpQuery__\n *\n * To run a query within a React component, call `useIpQuery` and pass it any options that fit your needs.\n * When your component renders, `useIpQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useIpQuery({\n * variables: {\n * ip: // value for 'ip'\n * },\n * });\n */\nexport function useIpQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(IpDocument, baseOptions);\n }\nexport function useIpLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(IpDocument, baseOptions);\n }\nexport type IpQueryHookResult = ReturnType;\nexport type IpLazyQueryHookResult = ReturnType;\nexport type IpQueryResult = ApolloReactCommon.QueryResult;\nexport const ThisIpDocument = gql`\n query ThisIP {\n thisip\n}\n `;\n\n/**\n * __useThisIpQuery__\n *\n * To run a query within a React component, call `useThisIpQuery` and pass it any options that fit your needs.\n * When your component renders, `useThisIpQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useThisIpQuery({\n * variables: {\n * },\n * });\n */\nexport function useThisIpQuery(baseOptions?: ApolloReactHooks.QueryHookOptions) {\n return ApolloReactHooks.useQuery(ThisIpDocument, baseOptions);\n }\nexport function useThisIpLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions) {\n return ApolloReactHooks.useLazyQuery(ThisIpDocument, baseOptions);\n }\nexport type ThisIpQueryHookResult = ReturnType;\nexport type ThisIpLazyQueryHookResult = ReturnType;\nexport type ThisIpQueryResult = ApolloReactCommon.QueryResult;","import * as React from \"react\";\nimport Card from \"@material-ui/core/Card\";\nimport CardContent from \"@material-ui/core/CardContent\";\nimport Typography from \"@material-ui/core/Typography\";\nimport makeStyles from \"@material-ui/core/styles/makeStyles\";\n\ninterface Props {\n command: string;\n}\n\nexport const CommandCardUI: React.FC = (props) => {\n const classes = useStyles();\n return (\n \n \n \n {props.command}\n \n {props.children}\n \n \n );\n};\n\nconst useStyles = makeStyles({\n card: {\n marginBottom: \"1.5rem\",\n },\n cardHeader: {\n marginBottom: \"8px\",\n // borderBottomColor: \"#e0e0e0\",\n // borderBottomWidth: \".1rem\",\n // borderBottomStyle: \"solid\",\n },\n});\n","import * as React from \"react\";\nimport Skeleton from \"@material-ui/lab/Skeleton\";\nimport { CommandCardUI } from \"./command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Alert from \"@material-ui/lab/Alert\";\n\ninterface Props {\n command: string;\n count?: number;\n errors?: string[];\n}\n\nexport const CommandCardLoadingUI: React.FC = (props) => {\n function skeleton(i: number) {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n\n function error(i: number, error: string) {\n return {error};\n }\n\n function skeletons() {\n if (props.count) {\n let s: React.ReactElement[] = [];\n for (let i = 0; i < props.count; i++) {\n s = [...s, skeleton(i)];\n }\n return s;\n }\n if (props.errors) {\n let s: React.ReactElement[] = [];\n for (let i = 0; i < props.errors.length; i++) {\n s = [...s, error(i, props.errors[i])];\n }\n return s;\n }\n }\n\n return ;\n};\n","import * as React from \"react\";\nimport { useDomainQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const ACommandUI: React.FC = (props) => {\n const { data, loading, error } = useDomainQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.a.length > 0 && (\n \n \n A\n \n \n {data!.domain.a.map((ip: string) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.aaaa.length > 0 && (\n \n \n AAAA\n \n \n {data!.domain.aaaa.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.cname.length > 0 && (\n \n \n CNAME\n \n \n {data!.domain.cname.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.mx.length > 0 && (\n \n \n MX\n \n \n {data!.domain.mx.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.ns.length > 0 && (\n \n \n NS\n \n \n {data!.domain.ns.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.txt.length > 0 && (\n \n \n TXT\n \n \n {data!.domain.txt.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { useIpQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n ip: string;\n}\n\nexport const IPCommandUI: React.FC = (props) => {\n const { ip } = props;\n const { data, loading, error } = useIpQuery({ variables: { ip: ip } });\n if (loading) {\n return ;\n }\n if (error) {\n return ;\n }\n return (\n \n {data!.ip.map((item) => {\n return (\n \n \n {item!.label}\n \n \n {item!.value}\n \n \n );\n })}\n \n );\n};\n","import * as React from \"react\";\nimport { useDomainQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const DomainCommandUI: React.FC = (props) => {\n const { data, loading, error } = useDomainQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.a.length > 0 && (\n \n \n A\n \n \n {data!.domain.a.map((ip: string) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.aaaa.length > 0 && (\n \n \n AAAA\n \n \n {data!.domain.aaaa.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.cname.length > 0 && (\n \n \n CNAME\n \n \n {data!.domain.cname.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.mx.length > 0 && (\n \n \n MX\n \n \n {data!.domain.mx.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.ns.length > 0 && (\n \n \n NS\n \n \n {data!.domain.ns.map((ip) => (\n {ip}\n ))}\n \n \n )}\n {data!.domain.txt.length > 0 && (\n \n \n TXT\n \n \n {data!.domain.txt.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { useAaaaQuery, useDomainQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const AAAACommandUI: React.FC = (props) => {\n const { data, loading, error } = useAaaaQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.aaaa.length > 0 && (\n \n \n AAAA\n \n \n {data!.domain.aaaa.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { useCnameQuery, useDomainQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const CNAMECommandUI: React.FC = (props) => {\n const { data, loading, error } = useCnameQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.cname.length > 0 && (\n \n \n CNAME\n \n \n {data!.domain.cname.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { useDomainQuery, useMxQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const MXCommandUI: React.FC = (props) => {\n const { data, loading, error } = useMxQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.mx.length > 0 && (\n \n \n MX\n \n \n {data!.domain.mx.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { useDomainQuery, useNsQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const NSCommandUI: React.FC = (props) => {\n const { data, loading, error } = useNsQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.ns.length > 0 && (\n \n \n NS\n \n \n {data!.domain.ns.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { useDomainQuery, useTxtQuery } from \"./commands.gen\";\nimport { CommandCardUI } from \"./command-card/command-card-ui\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Typography from \"@material-ui/core/Typography\";\nimport { CommandCardLoadingUI } from \"./command-card/command-card-loading-ui\";\n\ninterface Props {\n domain: string;\n}\n\nexport const TXTCommandUI: React.FC = (props) => {\n const { data, loading, error } = useTxtQuery({\n variables: { domain: props.domain },\n });\n if (loading) {\n return ;\n }\n if (error) {\n return
ERROR: {error}
;\n }\n return (\n \n {data!.domain.txt.length > 0 && (\n \n \n TXT\n \n \n {data!.domain.txt.map((ip) => (\n {ip}\n ))}\n \n \n )}\n \n );\n};\n","import * as React from \"react\";\nimport { ApolloProvider } from \"@apollo/react-hooks\";\nimport { CssBaseline } from \"@material-ui/core\";\nimport Container from \"@material-ui/core/Container\";\nimport { client } from \"./apollo/index\";\nimport { Router, Route } from \"./router/router\";\nimport { CommandInputUI } from \"./command-input/command-input-ui\";\nimport { ACommandUI } from \"./commands/a-ui\";\nimport { IPCommandUI } from \"./commands/ip-ui\";\nimport { DomainCommandUI } from \"./commands/domain-ui\";\nimport { AAAACommandUI } from \"./commands/aaaa-ui\";\nimport { CNAMECommandUI } from \"./commands/cname-ui\";\nimport { MXCommandUI } from \"./commands/mx-ui\";\nimport { NSCommandUI } from \"./commands/ns-ui\";\nimport { TXTCommandUI } from \"./commands/txt-ui\";\nimport makeStyles from \"@material-ui/core/styles/makeStyles\";\n\nimport { useThisIpQuery } from \"./commands/commands.gen\";\n\nfunction getID() {\n return new Date().getTime();\n}\n\ninterface Props {}\n\nexport const ThisIPApp: React.FC = (props) => {\n const [cmdHistory, setCmdHistory] = React.useState([]);\n\n const addHistory = (elem: React.ReactElement) => {\n setCmdHistory([elem, ...cmdHistory]);\n };\n\n const runCommand = (cmd: string, param: string) => {\n switch (cmd) {\n case \"domain\": {\n addHistory();\n break;\n }\n case \"ip\": {\n addHistory();\n break;\n }\n case \"a\": {\n addHistory();\n break;\n }\n case \"aaaa\": {\n addHistory();\n break;\n }\n case \"cname\": {\n addHistory();\n break;\n }\n case \"mx\": {\n addHistory();\n break;\n }\n case \"ns\": {\n addHistory();\n break;\n }\n case \"txt\": {\n addHistory();\n break;\n }\n default: {\n //statements;\n break;\n }\n }\n };\n\n const { data, loading, error } = useThisIpQuery();\n\n return (\n \n \n\n \n {/**/}\n {/*/!**!/*/}\n {/**/}\n {/*{cmdHistory.map((elem) => elem)}*/}\n {cmdHistory}\n {!loading && !error && data && }\n \n );\n};\n","// import * as React from \"react\";\nimport { ApolloClient } from \"apollo-client\";\nimport { createHttpLink } from \"apollo-link-http\";\nimport { InMemoryCache } from \"apollo-cache-inmemory\";\nimport * as Cookies from \"js-cookie\";\n\n// const host = process.env.SITE_URL || 'localhost:8000';\nconst host =\n process.env.NODE_ENV === \"production\"\n ? // ? \"thisip-net.appspot.com\"\n \"www.thisip.net\"\n : \"localhost:8080\";\n// const host =\n// process.env.NODE_ENV === \"production\" ? \"localhost:8080\" : \"localhost:8080\";\nconst ssl = process.env.NODE_ENV === \"production\" ? \"s\" : \"\";\n// const ssl = process.env.NODE_ENV === \"production\" ? \"\" : \"\";\nconst token = Cookies.get(\"csrftoken\");\n\nexport const siteUrl = \"http\" + ssl + \"://\" + host + \"/\";\n\nconst httpLink = createHttpLink({\n uri: \"http\" + ssl + \"://\" + host + \"/graphql\", // todo: env?\n // credentials: 'include',\n // headers: {\n // \"X-CSRFToken\": token\n // }\n});\n\nexport const client = new ApolloClient({\n cache: new InMemoryCache(),\n link: httpLink,\n});\n","import * as React from 'react'\n\ntype ReducerAttributeFilter = {\n type: 'toggleVibrate'\n vibrate: boolean\n}\n\ntype ReducerAction = ReducerAttributeFilter // | ReducerMapCenter | ReducerActiveStoreType\n\ntype AppState = {\n vibrate: boolean\n}\n\nfunction InitReducer(state: AppState) {\n return state\n}\n\nconst contextReducer = (state: AppState, action: ReducerAction) => {\n const updateState: Partial = {};\n switch (action.type) {\n case 'toggleVibrate':\n updateState['vibrate'] = action.vibrate;\n break;\n }\n return {...state, ...updateState}\n};\n\ntype MapContextType = {\n state: AppState\n dispatch: React.Dispatch\n}\n\nconst DefaultAppContext: MapContextType = {\n state: {\n vibrate: true,\n },\n dispatch: () => {},\n};\n\n\nconst AppContext = React.createContext(DefaultAppContext);\n\nexport const AppStateProvider: React.FC = ({children}) => {\n const [state, dispatch] = React.useReducer(contextReducer, DefaultAppContext.state, InitReducer);\n\n return (\n \n {children}\n \n )\n};\n\nexport const useAppState = () => {\n const {state, dispatch} = React.useContext(AppContext);\n\n const toggleVibrate = (vibrate: boolean) => dispatch({\n type: 'toggleVibrate', vibrate\n });\n // const updateMap = (map: { center: Coords, zoom: number }) => dispatch({type: 'map', map: map});\n // const updateMapCenter = (map: { center: Coords }) => dispatch({type: 'map', map: map});\n // const updateMapZoom = (map: { zoom: number }) => dispatch({type: 'map', map: map});\n // const updateActiveStore = (activeStore: number) => dispatch({type: 'activeStore', activeStore: activeStore});\n\n\n return {state, toggleVibrate}\n};","import React from \"react\";\nimport { StyleSheet } from \"react-native\";\nimport { ThisIPApp } from \"./components\";\nimport { ApolloProvider } from \"@apollo/react-hooks\";\nimport { client } from \"./components/apollo\";\nimport { AppStateProvider } from \"./components/state\";\n\nexport default function App() {\n return (\n \n \n {/**/}\n \n {/**/}\n \n \n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: \"#fff\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n});\n","/* eslint-env browser */\n\nif ('serviceWorker' in navigator) {\n window.addEventListener('load', function () {\n navigator.serviceWorker\n .register('/expo-service-worker.js', { scope: '/' })\n .then(function (info) {\n // console.info('Registered service-worker', info);\n })\n .catch(function (error) {\n console.info('Failed to register service-worker', error);\n });\n });\n}\n"],"sourceRoot":""}