REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.90 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/@emotion/babel-plugin/src/utils/strings.js
Text
Base64
import { getTypeScriptMakeTemplateObjectPath, isTaggedTemplateTranspiledByBabel } from './transpiled-output-utils' export const appendStringReturningExpressionToArguments = ( t, path, expression ) => { let lastIndex = path.node.arguments.length - 1 let last = path.node.arguments[lastIndex] if (t.isStringLiteral(last)) { if (typeof expression === 'string') { path.node.arguments[lastIndex].value += expression } else { path.node.arguments[lastIndex] = t.binaryExpression('+', last, expression) } } else { const makeTemplateObjectCallPath = getTypeScriptMakeTemplateObjectPath(path) if (makeTemplateObjectCallPath) { makeTemplateObjectCallPath.get('arguments').forEach(argPath => { const elements = argPath.get('elements') const lastElement = elements[elements.length - 1] if (typeof expression === 'string') { lastElement.replaceWith( t.stringLiteral(lastElement.node.value + expression) ) } else { lastElement.replaceWith( t.binaryExpression('+', lastElement.node, t.cloneNode(expression)) ) } }) } else if (!isTaggedTemplateTranspiledByBabel(path)) { if (typeof expression === 'string') { path.node.arguments.push(t.stringLiteral(expression)) } else { path.node.arguments.push(expression) } } } } export const joinStringLiterals = (expressions /*: Array<*> */, t) => { return expressions.reduce((finalExpressions, currentExpression, i) => { if (!t.isStringLiteral(currentExpression)) { finalExpressions.push(currentExpression) } else if ( t.isStringLiteral(finalExpressions[finalExpressions.length - 1]) ) { finalExpressions[finalExpressions.length - 1].value += currentExpression.value } else { finalExpressions.push(currentExpression) } return finalExpressions }, []) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
add-import.js
750 B
lrw-r--r--
2026-02-28 00:26:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
create-node-env-conditional.js
373 B
lrw-r--r--
2026-02-28 00:27:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-styled-options.js
2.79 KB
lrw-r--r--
2026-02-28 00:28:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
get-target-class-name.js
1.49 KB
lrw-r--r--
2026-02-28 00:28:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
537 B
lrw-r--r--
2026-02-28 00:28:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
label.js
4.62 KB
lrw-r--r--
2026-02-28 00:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
minify.js
3.91 KB
lrw-r--r--
2026-02-28 00:28:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
object-to-string.js
1.26 KB
lrw-r--r--
2026-02-28 00:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
source-maps.js
1.07 KB
lrw-r--r--
2026-02-28 00:28:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
strings.js
1.90 KB
lrw-r--r--
2026-02-28 00:28:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transform-expression-with-styles.js
4.21 KB
lrw-r--r--
2026-02-28 00:28:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transformer-macro.js
1.65 KB
lrw-r--r--
2026-02-28 00:28:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transpiled-output-utils.js
2.28 KB
lrw-r--r--
2026-02-28 00:28:32
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).