BLUE
PHP 7.4.33
Path:
/var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/@react-google-maps/api/src/docs
Run
Logout
Edit File
Size: 1.37 KB
Close
/var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/@react-google-maps/api/src/docs/ScriptLoaded.tsx
Text
Base64
import { Component, type JSX, type ReactNode } from 'react' type ScriptLoadedState = { scriptLoaded: boolean } type ScriptLoadedProps = { // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type children: ReactNode | ReactNode[] | Function } function SpanIntro(): JSX.Element { return ( <span> <a href='#section-introduction'>Enter API Key</a> to see examples </span> ) } class ScriptLoaded extends Component<ScriptLoadedProps, ScriptLoadedState> { interval: number | undefined constructor(props: ScriptLoadedProps) { super(props) this.state = { scriptLoaded: !!window.google, } this.interval = window.setInterval(this.checkIfScriptLoaded, 200) } setScriptLoadedCallback = (): void => { if (this.state.scriptLoaded) { window.clearInterval(this.interval) } } checkIfScriptLoaded = (): void => { if (window.google) { this.setState(function serScriptLoaded() { return { scriptLoaded: true, } }, this.setScriptLoadedCallback) } } override componentWillUnmount(): void { window.clearInterval(this.interval) } override render(): JSX.Element { if (!this.state.scriptLoaded) { return <SpanIntro /> } return this.props.children instanceof Function ? this.props.children() : this.props.children } } export default ScriptLoaded
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
docs-api-key.ts
365 B
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DocsApiKeyInput.tsx
2.16 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
favicon.ico
15.04 KB
lrw-r--r--
2026-04-28 09:11:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getting-started.md
1.62 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
introduction.md
1.46 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ScriptLoaded.tsx
1.37 KB
lrw-r--r--
2026-04-28 09:11:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).