Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix(layout): fixed a few mobile layout issues and api issues (#2763)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd authored Sep 14, 2022
1 parent 2a0d78a commit 3e0f417
Show file tree
Hide file tree
Showing 76 changed files with 2,956 additions and 2,685 deletions.
2 changes: 1 addition & 1 deletion content/api/v18/addons.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -1377,5 +1377,5 @@ console.log(result);
[installation instructions]: https://github.com/nodejs/node-gyp#installation
[libuv]: https://github.com/libuv/libuv
[node-gyp]: https://github.com/nodejs/node-gyp
[require]: (/api/modules#requireid)
[require]: /api/v18/modules#requireid
[v8-docs]: https://v8docs.nodesource.com/
16 changes: 8 additions & 8 deletions content/api/v18/assert.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2275,21 +2275,21 @@ argument.
[Object wrappers]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive#Primitive_wrapper_objects_in_JavaScript
[Object.prototype.toString()]: https://tc39.github.io/ecma262/#sec-object.prototype.tostring
[`!=` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
[`--update-assert-snapshot`]: (/api/cli#--update-assert-snapshot)
[`--update-assert-snapshot`]: /api/v18/cli#--update-assert-snapshot
[`===` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
[`==` operator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
[`AssertionError`]: #class-assertassertionerror
[`CallTracker`]: #class-assertcalltracker
[`Class`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
[`ERR_INVALID_RETURN_VALUE`]: (/api/errors#err_invalid_return_value)
[`Error.captureStackTrace`]: (/api/errors#errorcapturestacktracetargetobject-constructoropt)
[`Error`]: (/api/errors#class-error)
[`ERR_INVALID_RETURN_VALUE`]: /api/v18/errors#err_invalid_return_value
[`Error.captureStackTrace`]: /api/v18/errors#errorcapturestacktracetargetobject-constructoropt
[`Error`]: /api/v18/errors#class-error
[`Map`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
[`Object.is()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
[`RegExp`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
[`Set`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
[`Symbol`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol
[`TypeError`]: (/api/errors#class-typeerror)
[`TypeError`]: /api/v18/errors#class-typeerror
[`WeakMap`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
[`WeakSet`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
[`assert.deepEqual()`]: #assertdeepequalactual-expected-message
Expand All @@ -2303,10 +2303,10 @@ argument.
[`assert.ok()`]: #assertokvalue-message
[`assert.strictEqual()`]: #assertstrictequalactual-expected-message
[`assert.throws()`]: #assertthrowsfn-error-message
[`getColorDepth()`]: (/api/tty#writestreamgetcolordepthenv)
[`process.on('exit')`]: (/api/process#event-exit)
[`getColorDepth()`]: /api/v18/tty#writestreamgetcolordepthenv
[`process.on('exit')`]: /api/v18/process#event-exit
[`tracker.calls()`]: #trackercallsfn-exact
[`tracker.verify()`]: #trackerverify
[`util.inspect()`]: (/api/util#utilinspectobject-options)
[`util.inspect()`]: /api/v18/util#utilinspectobject-options
[enumerable "own" properties]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Enumerability_and_ownership_of_properties
[prototype-spec]: https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
6 changes: 3 additions & 3 deletions content/api/v18/async_context.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ const server = createServer((req, res) => {
```
[`AsyncResource`]: #class-asyncresource
[`EventEmitter`]: (/api/events#class-eventemitter)
[`Stream`]: (/api/stream#stream)
[`EventEmitter`]: /api/v18/events#class-eventemitter
[`Stream`]: /api/v18/stream#stream
[`Worker`]: worker_threads.md#class-worker
[`util.promisify()`]: (/api/util#utilpromisifyoriginal)
[`util.promisify()`]: /api/v18/util#utilpromisifyoriginal
2 changes: 1 addition & 1 deletion content/api/v18/async_hooks.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ The documentation for this class has moved [`AsyncResource`][].
The documentation for this class has moved [`AsyncLocalStorage`][].
[DEP0111]: (/api/deprecations#dep0111-processbinding)
[DEP0111]: /api/v18/deprecations#dep0111-processbinding
[Hook Callbacks]: #hook-callbacks
[PromiseHooks]: https://docs.google.com/document/d/1rda3yKGHimKIhg5YeoAmCOtyURgsbTH_qaYR79FELlk/edit
[`AsyncLocalStorage`]: async_context.md#class-asynclocalstorage
Expand Down
8 changes: 4 additions & 4 deletions content/api/v18/buffer.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4631,9 +4631,9 @@ introducing security vulnerabilities into an application.
[`Buffer.from(string)`]: #static-method-bufferfromstring-encoding
[`Buffer.poolSize`]: #class-property-bufferpoolsize
[`DataView`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
[`ERR_INVALID_ARG_VALUE`]: (/api/errors#err_invalid_arg_value)
[`ERR_INVALID_BUFFER_SIZE`]: (/api/errors#err_invalid_buffer_size)
[`ERR_OUT_OF_RANGE`]: (/api/errors#err_out_of_range)
[`ERR_INVALID_ARG_VALUE`]: /api/v18/errors#err_invalid_arg_value
[`ERR_INVALID_BUFFER_SIZE`]: /api/v18/errors#err_invalid_buffer_size
[`ERR_OUT_OF_RANGE`]: /api/v18/errors#err_out_of_range
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
[`SharedArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
[`String.prototype.indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
Expand All @@ -4659,7 +4659,7 @@ introducing security vulnerabilities into an application.
[`buffer.constants.MAX_LENGTH`]: #bufferconstantsmax_length
[`buffer.constants.MAX_STRING_LENGTH`]: #bufferconstantsmax_string_length
[`buffer.kMaxLength`]: #bufferkmaxlength
[`util.inspect()`]: (/api/util#utilinspectobject-options)
[`util.inspect()`]: /api/v18/util#utilinspectobject-options
[`v8::TypedArray::kMaxLength`]: https://v8.github.io/api/head/classv8_1_1TypedArray.html#a54a48f4373da0850663c4393d843b9b0
[base64url]: https://tools.ietf.org/html/rfc4648#section-5
[binary strings]: https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary
Expand Down
24 changes: 12 additions & 12 deletions content/api/v18/child_process.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -1598,14 +1598,14 @@ or [`child_process.fork()`][].
[Default Windows shell]: #default-windows-shell
[HTML structured clone algorithm]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm
[Shell requirements]: #shell-requirements
[Signal Events]: (/api/process#signal-events)
[`'disconnect'`]: (/api/process#event-disconnect)
[Signal Events]: /api/v18/process#signal-events
[`'disconnect'`]: /api/v18/process#event-disconnect
[`'error'`]: #event-error
[`'exit'`]: #event-exit
[`'message'`]: (/api/process#event-message)
[`'message'`]: /api/v18/process#event-message
[`ChildProcess`]: #class-childprocess
[`Error`]: (/api/errors#class-error)
[`EventEmitter`]: (/api/events#class-eventemitter)
[`Error`]: /api/v18/errors#class-error
[`EventEmitter`]: /api/v18/events#class-eventemitter
[`child_process.exec()`]: #child_processexeccommand-options-callback
[`child_process.execFile()`]: #child_processexecfilefile-args-options-callback
[`child_process.execFileSync()`]: #child_processexecfilesyncfile-args-options
Expand All @@ -1614,13 +1614,13 @@ or [`child_process.fork()`][].
[`child_process.spawn()`]: #child_processspawncommand-args-options
[`child_process.spawnSync()`]: #child_processspawnsynccommand-args-options
[`maxBuffer` and Unicode]: #maxbuffer-and-unicode
[`net.Server`]: (/api/net#class-netserver)
[`net.Socket`]: (/api/net#class-netsocket)
[`net.Server`]: /api/v18/net#class-netserver
[`net.Socket`]: /api/v18/net#class-netsocket
[`options.detached`]: #optionsdetached
[`process.disconnect()`]: (/api/process#processdisconnect)
[`process.env`]: (/api/process#processenv)
[`process.execPath`]: (/api/process#processexecpath)
[`process.send()`]: (/api/process#processsendmessage-sendhandle-options-callback)
[`process.disconnect()`]: /api/v18/process#processdisconnect
[`process.env`]: /api/v18/process#processenv
[`process.execPath`]: /api/v18/process#processexecpath
[`process.send()`]: /api/v18/process#processsendmessage-sendhandle-options-callback
[`stdio`]: #optionsstdio
[`subprocess.connected`]: #subprocessconnected
[`subprocess.disconnect()`]: #subprocessdisconnect
Expand All @@ -1630,6 +1630,6 @@ or [`child_process.fork()`][].
[`subprocess.stdin`]: #subprocessstdin
[`subprocess.stdio`]: #subprocessstdio
[`subprocess.stdout`]: #subprocessstdout
[`util.promisify()`]: (/api/util#utilpromisifyoriginal)
[`util.promisify()`]: /api/v18/util#utilpromisifyoriginal
[synchronous counterparts]: #synchronous-process-creation
[v8.serdes]: v8.md#serialization-api
56 changes: 23 additions & 33 deletions content/api/v18/cli.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,6 @@ V8 inspector integration allows tools such as Chrome DevTools and IDEs to debug
and profile Node.js instances. The tools attach to Node.js instances via a
tcp port and communicate using the [Chrome DevTools Protocol][].



<a id="inspector_security"></a>

##### Warning: binding inspector to a public IP:port combination is insecure
Expand Down Expand Up @@ -1347,8 +1345,6 @@ node --require "./a.js" --require "./b.js"

Node.js options that are allowed are:



* `--conditions`, `-C`
* `--diagnostic-dir`
* `--disable-proto`
Expand Down Expand Up @@ -1445,12 +1441,8 @@ Node.js options that are allowed are:
* `--v8-pool-size`
* `--zero-fill-buffers`



V8 options that are allowed are:



* `--abort-on-uncaught-exception`
* `--disallow-code-generation-from-strings`
* `--huge-max-old-generation-size`
Expand All @@ -1463,8 +1455,6 @@ V8 options that are allowed are:
* `--perf-prof`
* `--stack-trace-limit`



`--perf-basic-prof-only-functions`, `--perf-basic-prof`,
`--perf-prof-unwinding-info`, and `--perf-prof` are only available on Linux.

Expand Down Expand Up @@ -1745,54 +1735,54 @@ done

[#42511]: https://github.com/nodejs/node/issues/42511
[Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/
[CommonJS]: (/api/modules)
[CommonJS]: /api/v18/modules
[CustomEvent Web API]: https://dom.spec.whatwg.org/#customevent
[ECMAScript module loader]: (/api/esm#loaders)
[ECMAScript module loader]: /api/v18/esm#loaders
[Fetch API]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
[Modules loaders]: (/api/packages#modules-loaders)
[Modules loaders]: /api/v18/packages#modules-loaders
[Node.js issue tracker]: https://github.com/nodejs/node/issues
[OSSL_PROVIDER-legacy]: https://www.openssl.org/docs/man3.0/man7/OSSL_PROVIDER-legacy.html
[REPL]: (/api/repl)
[REPL]: /api/v18/repl
[ScriptCoverage]: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#type-ScriptCoverage
[Source Map]: https://sourcemaps.info/spec.html
[Subresource Integrity]: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity
[V8 JavaScript code coverage]: https://v8project.blogspot.com/2017/12/javascript-code-coverage.html
[Web Crypto API]: (/api/webcrypto)
[`"type"`]: (/api/packages#type)
[Web Crypto API]: /api/v18/webcrypto
[`"type"`]: /api/v18/packages#type
[`--cpu-prof-dir`]: #--cpu-prof-dir
[`--diagnostic-dir`]: #--diagnostic-dirdirectory
[`--experimental-wasm-modules`]: #--experimental-wasm-modules
[`--heap-prof-dir`]: #--heap-prof-dir
[`--openssl-config`]: #--openssl-configfile
[`--redirect-warnings`]: #--redirect-warningsfile
[`Atomics.wait()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait
[`Buffer`]: (/api/buffer#class-buffer)
[`Buffer`]: /api/v18/buffer#class-buffer
[`CRYPTO_secure_malloc_init`]: https://www.openssl.org/docs/man1.1.0/man3/CRYPTO_secure_malloc_init.html
[`NODE_OPTIONS`]: #node_optionsoptions
[`NO_COLOR`]: https://no-color.org
[`SlowBuffer`]: (/api/buffer#class-slowbuffer)
[`SlowBuffer`]: /api/v18/buffer#class-slowbuffer
[`YoungGenerationSizeFromSemiSpaceSize`]: https://chromium.googlesource.com/v8/v8.git/+/refs/tags/10.3.129/src/heap/heap.cc#328
[`assert.snapshot()`]: (/api/assert#assertsnapshotvalue-name)
[`dns.lookup()`]: (/api/dns#dnslookuphostname-options-callback)
[`dns.setDefaultResultOrder()`]: (/api/dns#dnssetdefaultresultorderorder)
[`dnsPromises.lookup()`]: (/api/dns#dnspromiseslookuphostname-options)
[`import` specifier]: (/api/esm#import-specifiers)
[`process.setUncaughtExceptionCaptureCallback()`]: (/api/process#processsetuncaughtexceptioncapturecallbackfn)
[`tls.DEFAULT_MAX_VERSION`]: (/api/tls#tlsdefault_max_version)
[`tls.DEFAULT_MIN_VERSION`]: (/api/tls#tlsdefault_min_version)
[`unhandledRejection`]: (/api/process#event-unhandledrejection)
[`assert.snapshot()`]: /api/v18/assert#assertsnapshotvalue-name
[`dns.lookup()`]: /api/v18/dns#dnslookuphostname-options-callback
[`dns.setDefaultResultOrder()`]: /api/v18/dns#dnssetdefaultresultorderorder
[`dnsPromises.lookup()`]: /api/v18/dns#dnspromiseslookuphostname-options
[`import` specifier]: /api/v18/esm#import-specifiers
[`process.setUncaughtExceptionCaptureCallback()`]: /api/v18/process#processsetuncaughtexceptioncapturecallbackfn
[`tls.DEFAULT_MAX_VERSION`]: /api/v18/tls#tlsdefault_max_version
[`tls.DEFAULT_MIN_VERSION`]: /api/v18/tls#tlsdefault_min_version
[`unhandledRejection`]: /api/v18/process#event-unhandledrejection
[`v8.startupSnapshot` API]: v8.md#startup-snapshot-api
[`worker_threads.threadId`]: worker_threads.md#workerthreadid
[conditional exports]: (/api/packages#conditional-exports)
[context-aware]: (/api/addons#context-aware-addons)
[customizing ESM specifier resolution]: (/api/esm#customizing-esm-specifier-resolution-algorithm)
[debugger]: (/api/debugger)
[conditional exports]: /api/v18/packages#conditional-exports
[context-aware]: /api/v18/addons#context-aware-addons
[customizing ESM specifier resolution]: /api/v18/esm#customizing-esm-specifier-resolution-algorithm
[debugger]: /api/v18/debugger
[debugging security implications]: https://nodejs.org/en/docs/guides/debugging-getting-started/#security-implications
[emit_warning]: (/api/process#processemitwarningwarning-options)
[emit_warning]: /api/v18/process#processemitwarningwarning-options
[jitless]: https://v8.dev/blog/jitless
[libuv threadpool documentation]: https://docs.libuv.org/en/latest/threadpool.html
[remote code execution]: https://www.owasp.org/index.php/Code_Injection
[running tests from the command line]: (/api/test#running-tests-from-the-command-line)
[running tests from the command line]: /api/v18/test#running-tests-from-the-command-line
[scavenge garbage collector]: https://v8.dev/blog/orinoco-parallel-scavenger
[security warning]: #warning-binding-inspector-to-a-public-ipport-combination-is-insecure
[semi-space]: https://www.memorymanagement.org/glossary/s.html#semi.space
Expand Down
6 changes: 3 additions & 3 deletions content/api/v18/cluster.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,8 @@ for (const worker of Object.values(cluster.workers)) {
[`cluster.isPrimary`]: #clusterisprimary
[`cluster.settings`]: #clustersettings
[`disconnect()`]: child_process.md#subprocessdisconnect
[`kill()`]: (/api/process#processkillpid-signal)
[`process` event: `'message'`]: (/api/process#event-message)
[`server.close()`]: (/api/net#event-close)
[`kill()`]: /api/v18/process#processkillpid-signal
[`process` event: `'message'`]: /api/v18/process#event-message
[`server.close()`]: /api/v18/net#event-close
[`worker.exitedAfterDisconnect`]: #workerexitedafterdisconnect
[`worker_threads`]: worker_threads.md
18 changes: 7 additions & 11 deletions content/api/v18/console.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ binary.
Maintains an internal counter specific to `label` and outputs to `stdout` the
number of times `console.count()` has been called with the given `label`.



```js
> console.count()
default: 1
Expand Down Expand Up @@ -210,8 +208,6 @@ undefined

Resets the internal counter specific to `label`.



```js
> console.count('abc');
abc: 1
Expand Down Expand Up @@ -513,12 +509,12 @@ This method does not display anything unless used in the inspector. The
[`console.profileEnd()`]: #consoleprofileendlabel
[`console.time()`]: #consoletimelabel
[`console.timeEnd()`]: #consoletimeendlabel
[`process.stderr`]: (/api/process#processstderr)
[`process.stdout`]: (/api/process#processstdout)
[`util.format()`]: (/api/util#utilformatformat-args)
[`util.inspect()`]: (/api/util#utilinspectobject-options)
[customizing `util.inspect()` colors]: (/api/util#customizing-utilinspect-colors)
[`process.stderr`]: /api/v18/process#processstderr
[`process.stdout`]: /api/v18/process#processstdout
[`util.format()`]: /api/v18/util#utilformatformat-args
[`util.inspect()`]: /api/v18/util#utilinspectobject-options
[customizing `util.inspect()` colors]: /api/v18/util#customizing-utilinspect-colors
[falsy]: https://developer.mozilla.org/en-US/docs/Glossary/Falsy
[inspector]: (/api/debugger)
[note on process I/O]: (/api/process#a-note-on-process-io)
[inspector]: /api/v18/debugger
[note on process I/O]: /api/v18/process#a-note-on-process-io
[truthy]: https://developer.mozilla.org/en-US/docs/Glossary/Truthy
4 changes: 2 additions & 2 deletions content/api/v18/corepack.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ install. To avoid this problem, consider one of the following options:
[Corepack documentation]: https://github.com/nodejs/corepack#readme
[Corepack repository]: https://github.com/nodejs/corepack
[Yarn]: https://yarnpkg.com
[`"packageManager"`]: (/api/packages#packagemanager)
[`"packageManager"`]: /api/v18/packages#packagemanager
[`corepack disable`]: https://github.com/nodejs/corepack#corepack-disable--name
[`corepack enable`]: https://github.com/nodejs/corepack#corepack-enable--name
[`corepack prepare`]: https://github.com/nodejs/corepack#corepack-prepare--nameversion
[`package.json`]: (/api/packages#nodejs-packagejson-field-definitions)
[`package.json`]: /api/v18/packages#nodejs-packagejson-field-definitions
[pnpm]: https://pnpm.js.org
[supported binaries]: #supported-package-managers
[supported package manager]: #supported-package-managers
Expand Down
Loading

0 comments on commit 3e0f417

Please sign in to comment.