REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.83 KB
Close
/opt/alt/alt-nodejs12/root/usr/lib/node_modules/npm/docs/src/components/DocLinks.js
Text
Base64
import React from 'react' import styled from 'styled-components' import {StaticQuery, graphql} from 'gatsby' import {Flex} from 'rebass' import {SidebarLink} from './links' import Accordion from './Accordion' const LinkDesc = styled.span` font-size: 11px; line-height: 1.5; text-transform: lowercase; display: block; font-weight: 400; color: ${(props) => props.theme.colors.darkGray}; ` const DocLinks = ({data}) => { const linkInfo = data.allMarkdownRemark.nodes const sections = ['cli-commands', 'configuring-npm', 'using-npm'] let sortedData = {} sections.map((section) => ( sortedData[section] = linkInfo.filter(function (item) { return item.frontmatter.section === section }) )) return sections.map((section, index) => ( <Accordion key={index} section={section}> {sortedData[section].map((linkData, index) => { const title = section === 'cli-commands' ? linkData.frontmatter.title.replace(/(npm-)+([a-zA-Z\\.-]*)/, 'npm $2') : linkData.frontmatter.title return ( <Flex flexDirection='column' key={index}> <SidebarLink to={`${linkData.fields.slug}`} activeClassName='active-sidebar-link' > {title} <LinkDesc>{linkData.frontmatter.description}</LinkDesc> </SidebarLink> </Flex> ) }) } </Accordion> )) } export default props => ( <StaticQuery query={graphql` query sortedLinkData { allMarkdownRemark(sort: {fields: frontmatter___title}) { nodes { fields { slug } frontmatter { description section title } } } } `} render={data => <DocLinks data={data} {...props} />} /> )
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
home
DIR
-
drwxr-xr-x
2026-03-19 07:09:41
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Accordion.js
1.14 KB
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Button.js
478 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
DocLinks.js
1.83 KB
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
FoundTypo.js
815 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
layout.js
604 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
links.js
970 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MobileSidebar.js
756 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
navbar.js
3.17 KB
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
scripts.js
610 B
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
seo.js
1.72 KB
lrw-r--r--
2026-03-09 07:21:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Sidebar.js
619 B
lrw-r--r--
2026-03-09 07:21:28
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).