PHP 8.2.30
Preview: scripts.js Size: 610 B
/opt/alt/alt-nodejs12/root/lib/node_modules/npm/docs/src/components/scripts.js

import React from 'react'

const IS_STATIC = process.env.GATSBY_IS_STATIC

const Scripts = () => {
  // Workaround: Make links work on the static html site
  if (IS_STATIC) {
    return (
      <script
        dangerouslySetInnerHTML={{
          __html: `
          var anchors = document.querySelectorAll(".sidebar a, .documentation a")
          Array.prototype.slice.call(anchors).map(function(el) {
            if (el.href.match(/file:\\/\\//)) {
              el.href = el.href + "/index.html"
            }
          })
          `
        }}
      />
    )
  }

  return null
}

export default Scripts

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
home DIR
- drwxr-xr-x 2026-03-19 07:09:41
Edit Download
1.14 KB lrw-r--r-- 2026-03-09 07:21:28
Edit Download
478 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
1.83 KB lrw-r--r-- 2026-03-09 07:21:28
Edit Download
815 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
604 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
970 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
756 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
3.17 KB lrw-r--r-- 2026-03-09 07:21:28
Edit Download
610 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download
1.72 KB lrw-r--r-- 2026-03-09 07:21:28
Edit Download
619 B lrw-r--r-- 2026-03-09 07:21:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).