Website Structure

This commit is contained in:
supalerk-ar66 2026-01-13 10:46:40 +07:00
parent 62812f2090
commit 71f0676a62
22365 changed files with 4265753 additions and 791 deletions

41
Frontend-Learner/node_modules/strip-indent/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,41 @@
/**
Strip leading whitespace from each line in a string.
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
@example
```
import stripIndent from 'strip-indent';
const string = '\tunicorn\n\t\tcake';
// unicorn
// cake
stripIndent(string);
//unicorn
// cake
```
*/
export default function stripIndent(string: string): string;
/**
Strip leading whitespace from each line in a string and remove surrounding blank lines.
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
Leading and trailing lines that contain only whitespace are removed.
Useful for template literals and multi-line strings where you want clean boundaries.
@example
```
import {dedent} from 'strip-indent';
dedent(`
unicorn
cake
`);
//unicorn
// cake
```
*/
export function dedent(string: string): string;

24
Frontend-Learner/node_modules/strip-indent/index.js generated vendored Normal file
View file

@ -0,0 +1,24 @@
export default function stripIndent(string) {
const match = string.match(/^[ \t]*(?=\S)/gm);
if (!match) {
return string;
}
let minIndent = Number.POSITIVE_INFINITY;
for (const indent of match) {
minIndent = Math.min(minIndent, indent.length);
}
if (minIndent === 0 || minIndent === Number.POSITIVE_INFINITY) {
return string;
}
return string.replace(new RegExp(`^[ \\t]{${minIndent}}`, 'gm'), '');
}
export function dedent(string) {
// Remove all leading and trailing whitespace-only lines
const trimmed = string.replace(/^(?:[ \t]*\r?\n)+|(?:\r?\n[ \t]*)+$/g, '');
return stripIndent(trimmed);
}

9
Frontend-Learner/node_modules/strip-indent/license generated vendored Normal file
View file

@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,42 @@
{
"name": "strip-indent",
"version": "4.1.1",
"description": "Strip leading whitespace from each line in a string",
"license": "MIT",
"repository": "sindresorhus/strip-indent",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"engines": {
"node": ">=12"
},
"scripts": {
"test": "xo && ava"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"strip",
"indent",
"indentation",
"normalize",
"remove",
"delete",
"whitespace",
"space",
"tab",
"string",
"dedent"
],
"devDependencies": {
"ava": "^3.15.0",
"xo": "^0.39.1"
}
}

64
Frontend-Learner/node_modules/strip-indent/readme.md generated vendored Normal file
View file

@ -0,0 +1,64 @@
# strip-indent
> Strip leading whitespace from each line in a string
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
Useful for removing redundant indentation.
## Install
```sh
npm install strip-indent
```
## Usage
```js
import stripIndent from 'strip-indent';
const string = '\tunicorn\n\t\tcake';
/*
unicorn
cake
*/
stripIndent(string);
/*
unicorn
cake
*/
```
## API
### stripIndent(string)
Strip leading whitespace from each line in a string.
The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove.
### dedent(string)
Strip leading whitespace from each line in a string and remove surrounding blank lines.
Like `stripIndent()`, but also removes leading and trailing lines that contain only whitespace. Useful for template literals and multi-line strings where you want clean boundaries.
```js
import {dedent} from 'strip-indent';
dedent(`
unicorn
cake
`);
/*
unicorn
cake
*/
```
## Related
- [strip-indent-cli](https://github.com/sindresorhus/strip-indent-cli) - CLI for this module
- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string
- [redent](https://github.com/sindresorhus/redent) - Strip redundant indentation and indent the string