feat(ui): finalize E-TIB modernization with footer redesign, video optimization, and TS fixes
Former-commit-id: 67ac02c8404cc66893fdf97308574701cca6000c
This commit is contained in:
Generated
Vendored
Symlink
+1
@@ -0,0 +1 @@
|
||||
../../estree-util-to-js@2.0.0/node_modules/estree-util-to-js
|
||||
Generated
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
// Note: types exposed from `index.d.ts`.
|
||||
export {default} from './lib/index.js'
|
||||
Generated
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @import {Program} from 'estree'
|
||||
* @import {Options} from 'recma-stringify'
|
||||
* @import {Processor} from 'unified'
|
||||
* @import {VFile} from 'vfile'
|
||||
*/
|
||||
|
||||
import {toJs} from 'estree-util-to-js'
|
||||
|
||||
/**
|
||||
* Plugin to add support for serializing as JavaScript.
|
||||
*
|
||||
* @this {Processor<undefined, undefined, undefined, Program, string>}
|
||||
* Processor instance.
|
||||
* @param {Readonly<Options> | null | undefined} [options]
|
||||
* Configuration (optional).
|
||||
* @returns {undefined}
|
||||
* Nothing.
|
||||
*/
|
||||
export default function recmaStringify(options) {
|
||||
const self = this
|
||||
|
||||
this.compiler = compiler
|
||||
|
||||
/**
|
||||
* @param {Program} tree
|
||||
* Tree.
|
||||
* @param {VFile} file
|
||||
* File.
|
||||
* @returns {string}
|
||||
* JavaScript.
|
||||
*/
|
||||
function compiler(tree, file) {
|
||||
const settings = {...self.data('settings'), ...options}
|
||||
const result = toJs(tree, {
|
||||
SourceMapGenerator: settings.SourceMapGenerator,
|
||||
filePath: file.path || 'unknown.js',
|
||||
handlers: settings.handlers
|
||||
})
|
||||
|
||||
file.map = result.map
|
||||
|
||||
return result.value
|
||||
}
|
||||
}
|
||||
Generated
Vendored
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"bugs": "https://github.com/mdx-js/recma/issues",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
||||
],
|
||||
"description": "recma plugin to serialize JavaScript",
|
||||
"dependencies": {
|
||||
"@types/estree": "^1.0.0",
|
||||
"estree-util-to-js": "^2.0.0",
|
||||
"unified": "^11.0.0",
|
||||
"vfile": "^6.0.0"
|
||||
},
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"lib/",
|
||||
"index.d.ts",
|
||||
"index.js"
|
||||
],
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"homepage": "https://github.com/mdx-js/recma",
|
||||
"keywords": [
|
||||
"abstract",
|
||||
"ast",
|
||||
"compile",
|
||||
"javascript",
|
||||
"plugin",
|
||||
"recma-plugin",
|
||||
"recma",
|
||||
"serialize",
|
||||
"stringify",
|
||||
"syntax",
|
||||
"tree",
|
||||
"unified"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "recma-stringify",
|
||||
"repository": "https://github.com/mdx-js/recma/tree/main/packages/recma-stringify",
|
||||
"scripts": {},
|
||||
"sideEffects": false,
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"strict": true,
|
||||
"ignoreCatch": true
|
||||
},
|
||||
"type": "module",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
Reference in New Issue
Block a user