all lab3
This commit is contained in:
parent
2a8e40d43d
commit
7f4b4105e8
20
lab3/all/.eslintrc.json
Normal file
20
lab3/all/.eslintrc.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es2021": true
|
||||||
|
},
|
||||||
|
"extends": "airbnb-base",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 12,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"quotes": "off",
|
||||||
|
"indent": "off",
|
||||||
|
"no-console": "off",
|
||||||
|
"no-use-before-define": "off",
|
||||||
|
"no-alert": "off",
|
||||||
|
"no-restricted-globals": "off",
|
||||||
|
"quote-props": "off"
|
||||||
|
}
|
||||||
|
}
|
139
lab3/all/admin.html
Normal file
139
lab3/all/admin.html
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Моя страница</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
<header class="border border-5 border-dark ">
|
||||||
|
<nav class="navbar navbar-expand-md">
|
||||||
|
<div class="container-fluid fs-3">
|
||||||
|
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./main.html"><b>Main</b></a>
|
||||||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text active mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container-fluid p-2">
|
||||||
|
<button id="items-add" class="button border border-4 border-dark rounded-4 mb-1 py-2 px-3">Add book</button>
|
||||||
|
<div class="py-3 px-4">
|
||||||
|
<table id="items-table" class="table table-striped border border-4 border-dark">
|
||||||
|
<thead>
|
||||||
|
<th scope="col">№</th>
|
||||||
|
<th scope="col" class="w-25">Genre</th>
|
||||||
|
<th scope="col" class="w-25">Author</th>
|
||||||
|
<th scope="col" class="w-25">Name</th>
|
||||||
|
<th scope="col" class="w-25">Publish house</th>
|
||||||
|
<th scope="col"></th>
|
||||||
|
<th scope="col"></th>
|
||||||
|
</thead>
|
||||||
|
<tbody></tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||||||
|
<b>Барсуков Павел, 2023</b>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
|
||||||
|
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
|
||||||
|
<div class="modal-dialog ">
|
||||||
|
<form id="items-form" class="needs-validation" novalidate>
|
||||||
|
<div class="modal-content" style="border-radius: 27px;" >
|
||||||
|
|
||||||
|
|
||||||
|
<div class="modal-header modalHeader border border-3 border-dark border-bottom-0">
|
||||||
|
<h1 class="modal-title fs-5" id="items-update-title"></h1>
|
||||||
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="modal-body modalMain border border-3 border-dark">
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<img id="image-preview" src="https://via.placeholder.com/200" class="bookSize" alt="placeholder">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<input id="items-line-id" type="number" hidden>
|
||||||
|
<div class="mb-2">
|
||||||
|
<label for="item" class="form-label">Genre</label>
|
||||||
|
<select id="item" class="form-select" name="selected" required>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<label class="form-label" for="author">Author</label>
|
||||||
|
<input id="author" name="author" class="form-control" type="text" value="author's name" required>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<label class="form-label" for="title">Title</label>
|
||||||
|
<input id="title" name="title" class="form-control" type="text" value="book's title" required>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<label for="long" class="form-label">Publish house</label>
|
||||||
|
<select id="long" class="form-select" name="selectedLong" required>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<div class="fileChoose border border-dark border-3 rounded-2 mt-3 text-center">
|
||||||
|
<label class="form-label pt-2 text-center" for="image">Tap here to choose image</label>
|
||||||
|
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mb-2">
|
||||||
|
<div class="fileChoose border border-dark border-3 rounded-2 mt-3 text-center">
|
||||||
|
<label class="form-label pt-2 text-center" for="text">Tap here to choose text</label>
|
||||||
|
<input id="text" type="file" name="text" class="form-control" accept="text/*">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="modal-footer modalFooter border border-3 border-dark border-top-0">
|
||||||
|
<button type="button" class="border border-4 border-dark rounded-4" data-bs-dismiss="modal"><h4 class="mx-3">Close</h4></button>
|
||||||
|
<button type="submit" class="border border-4 border-dark rounded-4"><h4 class="mx-3">Save</h4></button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import validation from "./js/validation";
|
||||||
|
import { linesForm } from "./js/lines";
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
|
validation();
|
||||||
|
linesForm();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
125
lab3/all/author.html
Normal file
125
lab3/all/author.html
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Моя страница</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
</head>
|
||||||
|
<body class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
<header class="border border-5 border-dark mb-5">
|
||||||
|
<nav class="navbar navbar-expand-md">
|
||||||
|
<div class="container-fluid fs-3">
|
||||||
|
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./main.html"><b>Main</b></a>
|
||||||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<div class="bookPanel row mx-4 pt-4 border border-5 border-dark rounded-5 p-2 mb-5">
|
||||||
|
|
||||||
|
<div class="col-lg-3 col-md-4 col-sm-6 text-center mb-4">
|
||||||
|
<div class="text-center">
|
||||||
|
<img src="images/Tolstoy.png" class="img-fluid border border-4 border-dark" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-lg-9 col-md-8 col-sm-6 ">
|
||||||
|
<div class="Window rounded-4 border border-4 border-dark mt-3 mb-5 mx-3 p-2 text-center">
|
||||||
|
<h2>Author name</h2>
|
||||||
|
</div>
|
||||||
|
<div class="Window rounded-4 border border-4 border-dark p-2 mx-3">
|
||||||
|
<h3>
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
Biography text Biography text Biography text Biography text Biography text
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="bookPanel row mx-4 pt-4 border border-5 border-dark rounded-5 mb-5">
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||||||
|
<b>Барсуков Павел, 2023</b>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
82
lab3/all/book.html
Normal file
82
lab3/all/book.html
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Моя страница</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
</head>
|
||||||
|
<body class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
<header class="border border-5 border-dark mb-5">
|
||||||
|
<nav class="navbar navbar-expand-md">
|
||||||
|
<div class="container-fluid fs-3">
|
||||||
|
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./main.html"><b>Main</b></a>
|
||||||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<div class="bookPanel row mx-4 pt-4 border border-5 border-dark rounded-5 p-2 mb-5">
|
||||||
|
|
||||||
|
<div class="col-lg-3 col-md-4 col-sm-6 text-center mb-4">
|
||||||
|
<div class="text-center">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid border border-4 border-dark" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col mt-3" >
|
||||||
|
<a href="text.html">
|
||||||
|
<button class="border border-dark border-5 rounded-4 col-12">
|
||||||
|
<h3 class="mx-3">
|
||||||
|
Read
|
||||||
|
</h3>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-lg-9 col-md-8 col-sm-6">
|
||||||
|
<div class="Window rounded-4 border border-4 border-dark mb-5 p-2 text-center mt-3 mx-3">
|
||||||
|
<h2>Title - <a class="link-dark" href="author.html">Author</a></h2>
|
||||||
|
</div>
|
||||||
|
<div class="Window rounded-4 border border-4 border-dark p-2 mx-3">
|
||||||
|
<h3>Book description Book description Book description Book description Book description
|
||||||
|
Book description Book description Book description Book description Book description
|
||||||
|
Book description Book description Book description Book description Book description
|
||||||
|
Book description Book description Book description Book description Book description
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||||||
|
<b>Барсуков Павел, 2023</b>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
90
lab3/all/data.json
Normal file
90
lab3/all/data.json
Normal file
File diff suppressed because one or more lines are too long
BIN
lab3/all/images/Book.png
Normal file
BIN
lab3/all/images/Book.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 396 KiB |
BIN
lab3/all/images/Tolstoy.png
Normal file
BIN
lab3/all/images/Tolstoy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 KiB |
BIN
lab3/all/images/WarAndPeace.png
Normal file
BIN
lab3/all/images/WarAndPeace.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.4 MiB |
BIN
lab3/all/images/woman.png
Normal file
BIN
lab3/all/images/woman.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 833 KiB |
123
lab3/all/index.html
Normal file
123
lab3/all/index.html
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Моя страница</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
</head>
|
||||||
|
<body class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
<header class="border border-5 border-dark mb-5">
|
||||||
|
<nav class="navbar navbar-expand-md">
|
||||||
|
<div class="container-fluid fs-3">
|
||||||
|
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./main.html"><b>Main</b></a>
|
||||||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text active mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main class="Window p-4 border border-5 border-dark rounded-5">
|
||||||
|
<div class="row mx-2">
|
||||||
|
|
||||||
|
<div class="col-sm">
|
||||||
|
|
||||||
|
<h1 class="text-center">
|
||||||
|
Sign up
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>username:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>email:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>password:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>password confirm:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col">
|
||||||
|
<button class="border border-dark border-5 rounded-4 col-12">
|
||||||
|
<h3 class="mx-3">
|
||||||
|
Register
|
||||||
|
</h3>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="col-sm">
|
||||||
|
|
||||||
|
<h1 class="text-center">
|
||||||
|
Log in
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>email:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">
|
||||||
|
<b>password:</b>
|
||||||
|
</label>
|
||||||
|
<input class=" form-control border border-4 border-dark rounded-4" type="text" required>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col">
|
||||||
|
<button class=" border border-dark border-5 rounded-4 col-12">
|
||||||
|
<h3 class="mx-3">
|
||||||
|
Login
|
||||||
|
</h3>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||||||
|
<b>Барсуков Павел, 2023</b>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
46
lab3/all/js/lines-modal.js
Normal file
46
lab3/all/js/lines-modal.js
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
import { Modal } from "bootstrap";
|
||||||
|
import { cntrls, imagePlaceholder } from "./lines-ui";
|
||||||
|
|
||||||
|
const modal = document.getElementById("items-update");
|
||||||
|
|
||||||
|
const myModal = modal ? new Modal(modal, {}) : null;
|
||||||
|
|
||||||
|
const modalTitle = document.getElementById("items-update-title");
|
||||||
|
|
||||||
|
function resetValues() {
|
||||||
|
cntrls.lineId.value = "";
|
||||||
|
cntrls.itemsType.value = "";
|
||||||
|
cntrls.author.value = "";
|
||||||
|
cntrls.title.value = "";
|
||||||
|
cntrls.itemsLongs.value = "";
|
||||||
|
cntrls.image.value = "";
|
||||||
|
cntrls.imagePreview.src = imagePlaceholder;
|
||||||
|
cntrls.text.value = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
export function showUpdateModal(item) {
|
||||||
|
modalTitle.innerHTML = item === null ? "Add" : "Change";
|
||||||
|
// console.info(item);
|
||||||
|
|
||||||
|
if (item) {
|
||||||
|
cntrls.lineId.value = item.id;
|
||||||
|
cntrls.itemsType.value = item.itemsId;
|
||||||
|
cntrls.author.value = item.author;
|
||||||
|
cntrls.title.value = item.title;
|
||||||
|
cntrls.itemsLongs.value = item.longsId;
|
||||||
|
|
||||||
|
cntrls.imagePreview.src = item.image ? item.image : imagePlaceholder;
|
||||||
|
} else {
|
||||||
|
resetValues();
|
||||||
|
}
|
||||||
|
|
||||||
|
myModal.show();
|
||||||
|
}
|
||||||
|
|
||||||
|
export function hideUpdateModal() {
|
||||||
|
resetValues();
|
||||||
|
|
||||||
|
cntrls.form.classList.remove("was-validated");
|
||||||
|
|
||||||
|
myModal.hide();
|
||||||
|
}
|
107
lab3/all/js/lines-rest-api.js
Normal file
107
lab3/all/js/lines-rest-api.js
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
const serverUrl = "http://localhost:8081";
|
||||||
|
|
||||||
|
function createLineObject(item, author, title, long, image, text) {
|
||||||
|
// console.log("createLineObject");
|
||||||
|
console.log(text);
|
||||||
|
return {
|
||||||
|
itemsId: item,
|
||||||
|
author,
|
||||||
|
title,
|
||||||
|
longsId: long,
|
||||||
|
image,
|
||||||
|
text,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getAllItemTypes() {
|
||||||
|
// console.log("getAllItemTypes");
|
||||||
|
const response = await fetch(`${serverUrl}/items`);
|
||||||
|
// console.log(response);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getAllLongs() {
|
||||||
|
// console.log("getAllLongs");
|
||||||
|
const response = await fetch(`${serverUrl}/longs`);
|
||||||
|
// console.log(response);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getAllLines() {
|
||||||
|
// console.log("getAllLines");
|
||||||
|
const response = await fetch(`${serverUrl}/lines?_expand=items&_expand=longs`);
|
||||||
|
console.log(response);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function getLine(id) {
|
||||||
|
// console.log("getLine");
|
||||||
|
const response = await fetch(`${serverUrl}/lines/${id}?_expand=items`);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function createLine(item, author, title, long, image, text) {
|
||||||
|
// console.log("createLine");
|
||||||
|
const itemObject = createLineObject(item, author, title, long, image, text);
|
||||||
|
// console.log("created a Line");
|
||||||
|
// console.log(itemObject);
|
||||||
|
const options = {
|
||||||
|
method: "POST",
|
||||||
|
body: JSON.stringify(itemObject),
|
||||||
|
headers: {
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const response = await fetch(`${serverUrl}/lines`, options);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function updateLine(id, item, author, title, long, image, text) {
|
||||||
|
// console.log("updateLine");
|
||||||
|
const itemObject = createLineObject(item, author, title, long, image, text);
|
||||||
|
|
||||||
|
const options = {
|
||||||
|
method: "PUT",
|
||||||
|
body: JSON.stringify(itemObject),
|
||||||
|
headers: {
|
||||||
|
"Accept": "application/json",
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const response = await fetch(`${serverUrl}/lines/${id}`, options);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function deleteLine(id) {
|
||||||
|
// console.log("deleteLine");
|
||||||
|
const options = {
|
||||||
|
method: "DELETE",
|
||||||
|
};
|
||||||
|
|
||||||
|
const response = await fetch(`${serverUrl}/lines/${id}`, options);
|
||||||
|
if (!response.ok) {
|
||||||
|
throw response.statusText;
|
||||||
|
}
|
||||||
|
return response.json();
|
||||||
|
}
|
80
lab3/all/js/lines-ui.js
Normal file
80
lab3/all/js/lines-ui.js
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
export const cntrls = {
|
||||||
|
button: document.getElementById("items-add"),
|
||||||
|
table: document.querySelector("#items-table tbody"),
|
||||||
|
form: document.getElementById("items-form"),
|
||||||
|
|
||||||
|
lineId: document.getElementById("items-line-id"),
|
||||||
|
itemsType: document.getElementById("item"),
|
||||||
|
|
||||||
|
author: document.getElementById("author"),
|
||||||
|
title: document.getElementById("title"),
|
||||||
|
itemsLongs: document.getElementById("long"),
|
||||||
|
|
||||||
|
image: document.getElementById("image"),
|
||||||
|
imagePreview: document.getElementById("image-preview"),
|
||||||
|
|
||||||
|
text: document.getElementById("text"),
|
||||||
|
};
|
||||||
|
|
||||||
|
export const imagePlaceholder = "https://via.placeholder.com/200";
|
||||||
|
|
||||||
|
export function createItemsOption(name, value = "", isSelected = false) {
|
||||||
|
// console.info("createItemsOption");
|
||||||
|
const option = document.createElement("option");
|
||||||
|
option.value = value || "";
|
||||||
|
option.selected = isSelected;
|
||||||
|
option.text = name;
|
||||||
|
return option;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createTableAnchor(icon, callback) {
|
||||||
|
// console.info("createTableAnchor");
|
||||||
|
const i = document.createElement("i");
|
||||||
|
i.classList.add("fa-solid", icon);
|
||||||
|
i.style.color = "black";
|
||||||
|
|
||||||
|
const a = document.createElement("a");
|
||||||
|
a.href = "#";
|
||||||
|
a.appendChild(i);
|
||||||
|
a.onclick = (event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
callback();
|
||||||
|
};
|
||||||
|
|
||||||
|
const td = document.createElement("td");
|
||||||
|
td.appendChild(a);
|
||||||
|
return td;
|
||||||
|
}
|
||||||
|
|
||||||
|
function createTableColumn(value) {
|
||||||
|
// console.info("createTableColumn", value);
|
||||||
|
const td = document.createElement("td");
|
||||||
|
td.textContent = value;
|
||||||
|
return td;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function createTableRow(item, index, editCallback, deleteCallback) {
|
||||||
|
// console.log(item.items);
|
||||||
|
// console.log(item.longs);
|
||||||
|
// console.log("CreateTableRow");
|
||||||
|
|
||||||
|
const rowNumber = document.createElement("th");
|
||||||
|
rowNumber.scope = "row";
|
||||||
|
rowNumber.textContent = index + 1;
|
||||||
|
|
||||||
|
const row = document.createElement("tr");
|
||||||
|
console.log(row.style.backgroundColor);
|
||||||
|
row.id = `line-${item.id}`;
|
||||||
|
|
||||||
|
row.appendChild(rowNumber);
|
||||||
|
row.appendChild(createTableColumn(item.items.name));
|
||||||
|
row.appendChild(createTableColumn(item.author));
|
||||||
|
row.appendChild(createTableColumn(item.title));
|
||||||
|
row.appendChild(createTableColumn(item.longs.name));
|
||||||
|
|
||||||
|
row.appendChild(createTableAnchor("fa-pencil", editCallback));
|
||||||
|
// row.appendChild(createTableAnchor("fa-pen-to-square", editPageCallback));
|
||||||
|
row.appendChild(createTableAnchor("fa-trash", deleteCallback));
|
||||||
|
return row;
|
||||||
|
}
|
185
lab3/all/js/lines.js
Normal file
185
lab3/all/js/lines.js
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
import { hideUpdateModal, showUpdateModal } from "./lines-modal";
|
||||||
|
import {
|
||||||
|
createLine, deleteLine, getAllItemTypes, getAllLongs, getAllLines, getLine, updateLine,
|
||||||
|
} from "./lines-rest-api";
|
||||||
|
import {
|
||||||
|
cntrls, createItemsOption, createTableRow, imagePlaceholder,
|
||||||
|
} from "./lines-ui";
|
||||||
|
|
||||||
|
async function drawItemsSelect() {
|
||||||
|
// console.info("drawItemsSelect");
|
||||||
|
const data = await getAllItemTypes();
|
||||||
|
|
||||||
|
cntrls.itemsType.innerHTML = "";
|
||||||
|
cntrls.itemsType.appendChild(createItemsOption("Choose item", "", true));
|
||||||
|
|
||||||
|
data.forEach((item) => {
|
||||||
|
cntrls.itemsType.appendChild(createItemsOption(item.name, item.id));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function drawLongsSelect() {
|
||||||
|
// console.info("drawItemsSelect2");
|
||||||
|
const data = await getAllLongs();
|
||||||
|
cntrls.itemsLongs.innerHTML = "";
|
||||||
|
cntrls.itemsLongs.appendChild(createItemsOption("Choose item", "", true));
|
||||||
|
data.forEach((item) => {
|
||||||
|
cntrls.itemsLongs.appendChild(createItemsOption(item.name, item.id));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function drawLinesTable() {
|
||||||
|
// console.info("drawLinesTable");
|
||||||
|
if (!cntrls.table) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const data = await getAllLines();
|
||||||
|
// console.log(data);
|
||||||
|
cntrls.table.innerHTML = "";
|
||||||
|
data.forEach((item, index) => {
|
||||||
|
cntrls.table.appendChild(
|
||||||
|
createTableRow(
|
||||||
|
item,
|
||||||
|
index,
|
||||||
|
() => showUpdateModal(item),
|
||||||
|
// () => location.assign(`page-edit.html?id=${item.id}`),
|
||||||
|
() => removeLine(item.id),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function addLine(item, author, title, long, image, text) {
|
||||||
|
// console.info("addLine");
|
||||||
|
const data = await createLine(item, author, title, long, image, text);
|
||||||
|
// console.info("Added");
|
||||||
|
console.info(data);
|
||||||
|
drawLinesTable();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function editLine(id, item, author, title, long, image, text) {
|
||||||
|
// console.info("editLine");
|
||||||
|
const data = await updateLine(id, item, author, title, long, image, text);
|
||||||
|
// console.info("Updated");
|
||||||
|
console.info(data);
|
||||||
|
drawLinesTable();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function removeLine(id) {
|
||||||
|
// console.info("removeLine");
|
||||||
|
if (!confirm("Do you really want to remove this item?")) {
|
||||||
|
console.info("Canceled");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// console.info("Try to remove item");
|
||||||
|
const data = await deleteLine(id);
|
||||||
|
console.info(data);
|
||||||
|
drawLinesTable();
|
||||||
|
}
|
||||||
|
|
||||||
|
async function readFile(file) {
|
||||||
|
// console.info("readFile");
|
||||||
|
const reader = new FileReader();
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
reader.onloadend = () => {
|
||||||
|
const fileContent = reader.result;
|
||||||
|
resolve(fileContent);
|
||||||
|
};
|
||||||
|
reader.onerror = () => {
|
||||||
|
reject(new Error("oops, something went wrong with the file reader."));
|
||||||
|
};
|
||||||
|
reader.readAsDataURL(file);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function readTextFile(file) {
|
||||||
|
const reader = new FileReader();
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
reader.onloadend = () => {
|
||||||
|
const fileContent = reader.result;
|
||||||
|
resolve(fileContent);
|
||||||
|
};
|
||||||
|
reader.onerror = () => {
|
||||||
|
reject(new Error("oops, something went wrong with the file reader."));
|
||||||
|
};
|
||||||
|
if (file) {
|
||||||
|
reader.readAsText(file);
|
||||||
|
} else {
|
||||||
|
console.error("НЕТУ ФАЙЛА");
|
||||||
|
resolve("No text");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
async function updateImagePreview() {
|
||||||
|
// console.info("updateImagePreview");
|
||||||
|
const file = cntrls.image.files[0];
|
||||||
|
const fileContent = await readFile(file);
|
||||||
|
console.info("base64 ", fileContent);
|
||||||
|
cntrls.imagePreview.src = fileContent;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function linesForm() {
|
||||||
|
// console.info("linesForm");
|
||||||
|
|
||||||
|
drawItemsSelect();
|
||||||
|
drawLongsSelect();
|
||||||
|
|
||||||
|
drawLinesTable();
|
||||||
|
|
||||||
|
cntrls.image.addEventListener("change", () => updateImagePreview());
|
||||||
|
|
||||||
|
cntrls.button.addEventListener("click", () => showUpdateModal(null));
|
||||||
|
|
||||||
|
cntrls.form.addEventListener("submit", async (event) => {
|
||||||
|
console.info("Form onSubmit");
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
if (!cntrls.form.checkValidity()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
let imageBase64 = "";
|
||||||
|
if (cntrls.imagePreview.src !== imagePlaceholder) {
|
||||||
|
const result = await fetch(cntrls.imagePreview.src);
|
||||||
|
const blob = await result.blob();
|
||||||
|
imageBase64 = await readFile(blob);
|
||||||
|
}
|
||||||
|
|
||||||
|
const currentId = cntrls.lineId.value;
|
||||||
|
|
||||||
|
let content = "";
|
||||||
|
const file = cntrls.text.files[0];
|
||||||
|
if (file) {
|
||||||
|
content = await readTextFile(file);
|
||||||
|
} else {
|
||||||
|
const line = await getLine(currentId);
|
||||||
|
content = line.text;
|
||||||
|
// content = lines[cntrls.lineId].text.value;
|
||||||
|
}
|
||||||
|
console.log("2!!", content, "!!");
|
||||||
|
|
||||||
|
if (!currentId) {
|
||||||
|
await addLine(
|
||||||
|
cntrls.itemsType.value,
|
||||||
|
cntrls.author.value,
|
||||||
|
cntrls.title.value,
|
||||||
|
cntrls.itemsLongs.value,
|
||||||
|
imageBase64,
|
||||||
|
content,
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
await editLine(
|
||||||
|
currentId,
|
||||||
|
cntrls.itemsType.value,
|
||||||
|
cntrls.author.value,
|
||||||
|
cntrls.title.value,
|
||||||
|
cntrls.itemsLongs.value,
|
||||||
|
imageBase64,
|
||||||
|
content,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
hideUpdateModal();
|
||||||
|
});
|
||||||
|
}
|
25
lab3/all/js/validation.js
Normal file
25
lab3/all/js/validation.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// модуль используется для валидации форма на странице
|
||||||
|
|
||||||
|
function validation() {
|
||||||
|
// поиск всех форма с классом .needs-validation
|
||||||
|
const forms = document.querySelectorAll("form.needs-validation");
|
||||||
|
|
||||||
|
for (let i = 0; i < forms.length; i += 1) {
|
||||||
|
const form = forms[i];
|
||||||
|
// для каждой формы добавляется обработчик события отправки
|
||||||
|
form.addEventListener("submit", (event) => {
|
||||||
|
// если форма не прошла валидацию
|
||||||
|
// то выключить стандартное действие
|
||||||
|
if (!form.checkValidity()) {
|
||||||
|
event.preventDefault();
|
||||||
|
// предотвращает распространение preventDefault
|
||||||
|
// на другие объекты
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
// добавляет к форме класс was-validated
|
||||||
|
form.classList.add("was-validated");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default validation;
|
14
lab3/all/jsconfig.json
Normal file
14
lab3/all/jsconfig.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "ESNext",
|
||||||
|
"moduleResolution": "Node",
|
||||||
|
"target": "ES2020",
|
||||||
|
"jsx": "preserve",
|
||||||
|
"strictNullChecks": true,
|
||||||
|
"strictFunctionTypes": true
|
||||||
|
},
|
||||||
|
"exclude": [
|
||||||
|
"node_modules",
|
||||||
|
"**/node_modules/*"
|
||||||
|
]
|
||||||
|
}
|
156
lab3/all/main.html
Normal file
156
lab3/all/main.html
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
<html lang="ru">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Моя страница</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
||||||
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
|
||||||
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
|
||||||
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
</head>
|
||||||
|
<body class="h-100 d-flex flex-column">
|
||||||
|
|
||||||
|
<header class="border border-5 border-dark mb-5">
|
||||||
|
<nav class="navbar navbar-expand-md">
|
||||||
|
<div class="container-fluid fs-3">
|
||||||
|
|
||||||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
|
||||||
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
<span class="navbar-toggler-icon"></span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text active mx-3" href="./main.html"><b>Main</b></a>
|
||||||
|
<a class="nav-link navbar-text" href="./profile.html"><b>Profile</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
||||||
|
<div class="navbar-nav">
|
||||||
|
<a class="nav-link navbar-text mx-3" href="./index.html"><b>Log in/Sign up</b></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main class="mb-4">
|
||||||
|
<h3 class="section-name text-center col-xs-9 col-sm-6 col-mb-1 col-lg-2 justify-content-center mx-auto mb-0 border border-bottom-0 border-3 border-dark">
|
||||||
|
New:
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<div class="window row mx-4 pt-4 border border-5 border-dark rounded-5">
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h3 class="section-name text-center col-xs-9 col-sm-6 col-mb-1 col-lg-2 justify-content-center mx-auto mb-0 mt-5 border border-bottom-0 border-3 border-dark">
|
||||||
|
Popular:
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<div class="window row mx-4 pt-4 border border-5 border-dark rounded-5">
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="a-main col-lg-2 col-md-4 col-sm-6 text-center" href="book.html">
|
||||||
|
<div class="text-center border border-4 border-dark">
|
||||||
|
<img src="images/WarAndPeace.png" class="img-fluid" alt="Responsive image">
|
||||||
|
</div>
|
||||||
|
<h3>Book Name</h3>
|
||||||
|
<h3>Author</h3>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer class="footer border border-dark border-5 mt-auto d-flex flex-shrink-0 justify-content-center align-items-center fs-5">
|
||||||
|
<b>Барсуков Павел, 2023</b>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
12
lab3/all/node_modules/.bin/acorn
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/acorn
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../acorn/bin/acorn" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/acorn.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/acorn.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %*
|
28
lab3/all/node_modules/.bin/acorn.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/acorn.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../acorn/bin/acorn" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/esbuild
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/esbuild
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/esbuild.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/esbuild.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esbuild\bin\esbuild" %*
|
28
lab3/all/node_modules/.bin/esbuild.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/esbuild.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/eslint
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/eslint
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../eslint/bin/eslint.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../eslint/bin/eslint.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/eslint.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/eslint.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\eslint\bin\eslint.js" %*
|
28
lab3/all/node_modules/.bin/eslint.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/eslint.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../eslint/bin/eslint.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/he
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/he
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../he/bin/he" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../he/bin/he" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/he.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/he.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\he\bin\he" %*
|
28
lab3/all/node_modules/.bin/he.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/he.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../he/bin/he" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../he/bin/he" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../he/bin/he" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../he/bin/he" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/http-server
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/http-server
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../http-server/bin/http-server" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../http-server/bin/http-server" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/http-server.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/http-server.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\http-server\bin\http-server" %*
|
28
lab3/all/node_modules/.bin/http-server.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/http-server.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../http-server/bin/http-server" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../http-server/bin/http-server" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../http-server/bin/http-server" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../http-server/bin/http-server" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/js-yaml
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/js-yaml
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../js-yaml/bin/js-yaml.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../js-yaml/bin/js-yaml.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/js-yaml.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/js-yaml.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\js-yaml\bin\js-yaml.js" %*
|
28
lab3/all/node_modules/.bin/js-yaml.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/js-yaml.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../js-yaml/bin/js-yaml.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/json-server
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/json-server
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../json-server/lib/cli/bin.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../json-server/lib/cli/bin.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/json-server.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/json-server.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json-server\lib\cli\bin.js" %*
|
28
lab3/all/node_modules/.bin/json-server.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/json-server.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../json-server/lib/cli/bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../json-server/lib/cli/bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../json-server/lib/cli/bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../json-server/lib/cli/bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/json5
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/json5
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/json5.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/json5.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json5\lib\cli.js" %*
|
28
lab3/all/node_modules/.bin/json5.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/json5.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/mime
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/mime
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../mime/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../mime/cli.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/mime.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/mime.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %*
|
28
lab3/all/node_modules/.bin/mime.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/mime.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../mime/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../mime/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../mime/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/mkdirp
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/mkdirp
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../mkdirp/bin/cmd.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/mkdirp.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/mkdirp.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %*
|
28
lab3/all/node_modules/.bin/mkdirp.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/mkdirp.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/nanoid
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/nanoid
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/nanoid.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/nanoid.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nanoid\bin\nanoid.cjs" %*
|
28
lab3/all/node_modules/.bin/nanoid.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/nanoid.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/node-which
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/node-which
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../which/bin/node-which" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../which/bin/node-which" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/node-which.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/node-which.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %*
|
28
lab3/all/node_modules/.bin/node-which.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/node-which.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../which/bin/node-which" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../which/bin/node-which" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/npm-run-all
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/npm-run-all
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../npm-run-all/bin/npm-run-all/index.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../npm-run-all/bin/npm-run-all/index.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/npm-run-all.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/npm-run-all.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\npm-run-all\bin\npm-run-all\index.js" %*
|
28
lab3/all/node_modules/.bin/npm-run-all.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/npm-run-all.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../npm-run-all/bin/npm-run-all/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../npm-run-all/bin/npm-run-all/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../npm-run-all/bin/npm-run-all/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../npm-run-all/bin/npm-run-all/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/opener
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/opener
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../opener/bin/opener-bin.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../opener/bin/opener-bin.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/opener.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/opener.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\opener\bin\opener-bin.js" %*
|
28
lab3/all/node_modules/.bin/opener.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/opener.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../opener/bin/opener-bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/pidtree
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/pidtree
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../pidtree/bin/pidtree.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../pidtree/bin/pidtree.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/pidtree.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/pidtree.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pidtree\bin\pidtree.js" %*
|
28
lab3/all/node_modules/.bin/pidtree.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/pidtree.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../pidtree/bin/pidtree.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../pidtree/bin/pidtree.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../pidtree/bin/pidtree.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../pidtree/bin/pidtree.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/resolve
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/resolve
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../resolve/bin/resolve" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../resolve/bin/resolve" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/resolve.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/resolve.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\resolve\bin\resolve" %*
|
28
lab3/all/node_modules/.bin/resolve.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/resolve.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../resolve/bin/resolve" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/rimraf
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/rimraf
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../rimraf/bin.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../rimraf/bin.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/rimraf.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/rimraf.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rimraf\bin.js" %*
|
28
lab3/all/node_modules/.bin/rimraf.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/rimraf.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../rimraf/bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../rimraf/bin.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../rimraf/bin.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/rollup
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/rollup
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/rollup.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/rollup.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rollup\dist\bin\rollup" %*
|
28
lab3/all/node_modules/.bin/rollup.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/rollup.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/run-p
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/run-p
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../npm-run-all/bin/run-p/index.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../npm-run-all/bin/run-p/index.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/run-p.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/run-p.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\npm-run-all\bin\run-p\index.js" %*
|
28
lab3/all/node_modules/.bin/run-p.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/run-p.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../npm-run-all/bin/run-p/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../npm-run-all/bin/run-p/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../npm-run-all/bin/run-p/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../npm-run-all/bin/run-p/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/run-s
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/run-s
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../npm-run-all/bin/run-s/index.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../npm-run-all/bin/run-s/index.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/run-s.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/run-s.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\npm-run-all\bin\run-s\index.js" %*
|
28
lab3/all/node_modules/.bin/run-s.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/run-s.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../npm-run-all/bin/run-s/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../npm-run-all/bin/run-s/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../npm-run-all/bin/run-s/index.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../npm-run-all/bin/run-s/index.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/semver
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/semver
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/semver.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/semver.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %*
|
28
lab3/all/node_modules/.bin/semver.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/semver.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
12
lab3/all/node_modules/.bin/vite
generated
vendored
Normal file
12
lab3/all/node_modules/.bin/vite
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
fi
|
17
lab3/all/node_modules/.bin/vite.cmd
generated
vendored
Normal file
17
lab3/all/node_modules/.bin/vite.cmd
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\vite\bin\vite.js" %*
|
28
lab3/all/node_modules/.bin/vite.ps1
generated
vendored
Normal file
28
lab3/all/node_modules/.bin/vite.ps1
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
4260
lab3/all/node_modules/.package-lock.json
generated
vendored
Normal file
4260
lab3/all/node_modules/.package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
81
lab3/all/node_modules/.vite/deps/@popperjs_core.js
generated
vendored
Normal file
81
lab3/all/node_modules/.vite/deps/@popperjs_core.js
generated
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
import {
|
||||||
|
afterMain,
|
||||||
|
afterRead,
|
||||||
|
afterWrite,
|
||||||
|
applyStyles_default,
|
||||||
|
arrow_default,
|
||||||
|
auto,
|
||||||
|
basePlacements,
|
||||||
|
beforeMain,
|
||||||
|
beforeRead,
|
||||||
|
beforeWrite,
|
||||||
|
bottom,
|
||||||
|
clippingParents,
|
||||||
|
computeStyles_default,
|
||||||
|
createPopper,
|
||||||
|
createPopper2,
|
||||||
|
createPopper3,
|
||||||
|
detectOverflow,
|
||||||
|
end,
|
||||||
|
eventListeners_default,
|
||||||
|
flip_default,
|
||||||
|
hide_default,
|
||||||
|
left,
|
||||||
|
main,
|
||||||
|
modifierPhases,
|
||||||
|
offset_default,
|
||||||
|
placements,
|
||||||
|
popper,
|
||||||
|
popperGenerator,
|
||||||
|
popperOffsets_default,
|
||||||
|
preventOverflow_default,
|
||||||
|
read,
|
||||||
|
reference,
|
||||||
|
right,
|
||||||
|
start,
|
||||||
|
top,
|
||||||
|
variationPlacements,
|
||||||
|
viewport,
|
||||||
|
write
|
||||||
|
} from "./chunk-IOJ6CEWC.js";
|
||||||
|
export {
|
||||||
|
afterMain,
|
||||||
|
afterRead,
|
||||||
|
afterWrite,
|
||||||
|
applyStyles_default as applyStyles,
|
||||||
|
arrow_default as arrow,
|
||||||
|
auto,
|
||||||
|
basePlacements,
|
||||||
|
beforeMain,
|
||||||
|
beforeRead,
|
||||||
|
beforeWrite,
|
||||||
|
bottom,
|
||||||
|
clippingParents,
|
||||||
|
computeStyles_default as computeStyles,
|
||||||
|
createPopper3 as createPopper,
|
||||||
|
createPopper as createPopperBase,
|
||||||
|
createPopper2 as createPopperLite,
|
||||||
|
detectOverflow,
|
||||||
|
end,
|
||||||
|
eventListeners_default as eventListeners,
|
||||||
|
flip_default as flip,
|
||||||
|
hide_default as hide,
|
||||||
|
left,
|
||||||
|
main,
|
||||||
|
modifierPhases,
|
||||||
|
offset_default as offset,
|
||||||
|
placements,
|
||||||
|
popper,
|
||||||
|
popperGenerator,
|
||||||
|
popperOffsets_default as popperOffsets,
|
||||||
|
preventOverflow_default as preventOverflow,
|
||||||
|
read,
|
||||||
|
reference,
|
||||||
|
right,
|
||||||
|
start,
|
||||||
|
top,
|
||||||
|
variationPlacements,
|
||||||
|
viewport,
|
||||||
|
write
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=@popperjs_core.js.map
|
7
lab3/all/node_modules/.vite/deps/@popperjs_core.js.map
generated
vendored
Normal file
7
lab3/all/node_modules/.vite/deps/@popperjs_core.js.map
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
23
lab3/all/node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
23
lab3/all/node_modules/.vite/deps/_metadata.json
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"hash": "b12e999a",
|
||||||
|
"browserHash": "77bb8bb9",
|
||||||
|
"optimized": {
|
||||||
|
"@popperjs/core": {
|
||||||
|
"src": "../../@popperjs/core/lib/index.js",
|
||||||
|
"file": "@popperjs_core.js",
|
||||||
|
"fileHash": "8fdfaea9",
|
||||||
|
"needsInterop": false
|
||||||
|
},
|
||||||
|
"bootstrap": {
|
||||||
|
"src": "../../bootstrap/dist/js/bootstrap.esm.js",
|
||||||
|
"file": "bootstrap.js",
|
||||||
|
"fileHash": "0afaa0b5",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {
|
||||||
|
"chunk-IOJ6CEWC": {
|
||||||
|
"file": "chunk-IOJ6CEWC.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3676
lab3/all/node_modules/.vite/deps/bootstrap.js
generated
vendored
Normal file
3676
lab3/all/node_modules/.vite/deps/bootstrap.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
lab3/all/node_modules/.vite/deps/bootstrap.js.map
generated
vendored
Normal file
7
lab3/all/node_modules/.vite/deps/bootstrap.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1556
lab3/all/node_modules/.vite/deps/chunk-IOJ6CEWC.js
generated
vendored
Normal file
1556
lab3/all/node_modules/.vite/deps/chunk-IOJ6CEWC.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
lab3/all/node_modules/.vite/deps/chunk-IOJ6CEWC.js.map
generated
vendored
Normal file
7
lab3/all/node_modules/.vite/deps/chunk-IOJ6CEWC.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
lab3/all/node_modules/.vite/deps/package.json
generated
vendored
Normal file
3
lab3/all/node_modules/.vite/deps/package.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
21
lab3/all/node_modules/@aashutoshrathi/word-wrap/LICENSE
generated
vendored
Normal file
21
lab3/all/node_modules/@aashutoshrathi/word-wrap/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014-2016, Jon Schlinkert
|
||||||
|
|
||||||
|
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.
|
182
lab3/all/node_modules/@aashutoshrathi/word-wrap/README.md
generated
vendored
Normal file
182
lab3/all/node_modules/@aashutoshrathi/word-wrap/README.md
generated
vendored
Normal file
@ -0,0 +1,182 @@
|
|||||||
|
# word-wrap [![NPM version](https://img.shields.io/npm/v/word-wrap.svg?style=flat)](https://www.npmjs.com/package/word-wrap) [![NPM monthly downloads](https://img.shields.io/npm/dm/word-wrap.svg?style=flat)](https://npmjs.org/package/word-wrap) [![NPM total downloads](https://img.shields.io/npm/dt/word-wrap.svg?style=flat)](https://npmjs.org/package/word-wrap) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/word-wrap.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/word-wrap)
|
||||||
|
|
||||||
|
> Wrap words to a specified length.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Install with [npm](https://www.npmjs.com/):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm install --save word-wrap
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```js
|
||||||
|
var wrap = require('word-wrap');
|
||||||
|
|
||||||
|
wrap('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.');
|
||||||
|
```
|
||||||
|
|
||||||
|
Results in:
|
||||||
|
|
||||||
|
```
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing
|
||||||
|
elit, sed do eiusmod tempor incididunt ut labore
|
||||||
|
et dolore magna aliqua. Ut enim ad minim veniam,
|
||||||
|
quis nostrud exercitation ullamco laboris nisi ut
|
||||||
|
aliquip ex ea commodo consequat.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Options
|
||||||
|
|
||||||
|
![image](https://cloud.githubusercontent.com/assets/383994/6543728/7a381c08-c4f6-11e4-8b7d-b6ba197569c9.png)
|
||||||
|
|
||||||
|
### options.width
|
||||||
|
|
||||||
|
Type: `Number`
|
||||||
|
|
||||||
|
Default: `50`
|
||||||
|
|
||||||
|
The width of the text before wrapping to a new line.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
wrap(str, {width: 60});
|
||||||
|
```
|
||||||
|
|
||||||
|
### options.indent
|
||||||
|
|
||||||
|
Type: `String`
|
||||||
|
|
||||||
|
Default: `` (none)
|
||||||
|
|
||||||
|
The string to use at the beginning of each line.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
wrap(str, {indent: ' '});
|
||||||
|
```
|
||||||
|
|
||||||
|
### options.newline
|
||||||
|
|
||||||
|
Type: `String`
|
||||||
|
|
||||||
|
Default: `\n`
|
||||||
|
|
||||||
|
The string to use at the end of each line.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
wrap(str, {newline: '\n\n'});
|
||||||
|
```
|
||||||
|
|
||||||
|
### options.escape
|
||||||
|
|
||||||
|
Type: `function`
|
||||||
|
|
||||||
|
Default: `function(str){return str;}`
|
||||||
|
|
||||||
|
An escape function to run on each line after splitting them.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
var xmlescape = require('xml-escape');
|
||||||
|
wrap(str, {
|
||||||
|
escape: function(string){
|
||||||
|
return xmlescape(string);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
### options.trim
|
||||||
|
|
||||||
|
Type: `Boolean`
|
||||||
|
|
||||||
|
Default: `false`
|
||||||
|
|
||||||
|
Trim trailing whitespace from the returned string. This option is included since `.trim()` would also strip the leading indentation from the first line.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
wrap(str, {trim: true});
|
||||||
|
```
|
||||||
|
|
||||||
|
### options.cut
|
||||||
|
|
||||||
|
Type: `Boolean`
|
||||||
|
|
||||||
|
Default: `false`
|
||||||
|
|
||||||
|
Break a word between any two letters when the word is longer than the specified width.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```js
|
||||||
|
wrap(str, {cut: true});
|
||||||
|
```
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
### Related projects
|
||||||
|
|
||||||
|
* [common-words](https://www.npmjs.com/package/common-words): Updated list (JSON) of the 100 most common words in the English language. Useful for… [more](https://github.com/jonschlinkert/common-words) | [homepage](https://github.com/jonschlinkert/common-words "Updated list (JSON) of the 100 most common words in the English language. Useful for excluding these words from arrays.")
|
||||||
|
* [shuffle-words](https://www.npmjs.com/package/shuffle-words): Shuffle the words in a string and optionally the letters in each word using the… [more](https://github.com/jonschlinkert/shuffle-words) | [homepage](https://github.com/jonschlinkert/shuffle-words "Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.")
|
||||||
|
* [unique-words](https://www.npmjs.com/package/unique-words): Return the unique words in a string or array. | [homepage](https://github.com/jonschlinkert/unique-words "Return the unique words in a string or array.")
|
||||||
|
* [wordcount](https://www.npmjs.com/package/wordcount): Count the words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/wordcount "Count the words in a string. Support for english, CJK and Cyrillic.")
|
||||||
|
|
||||||
|
### Contributing
|
||||||
|
|
||||||
|
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||||
|
|
||||||
|
### Contributors
|
||||||
|
|
||||||
|
| **Commits** | **Contributor** |
|
||||||
|
| --- | --- |
|
||||||
|
| 43 | [jonschlinkert](https://github.com/jonschlinkert) |
|
||||||
|
| 2 | [lordvlad](https://github.com/lordvlad) |
|
||||||
|
| 2 | [hildjj](https://github.com/hildjj) |
|
||||||
|
| 1 | [danilosampaio](https://github.com/danilosampaio) |
|
||||||
|
| 1 | [2fd](https://github.com/2fd) |
|
||||||
|
| 1 | [toddself](https://github.com/toddself) |
|
||||||
|
| 1 | [wolfgang42](https://github.com/wolfgang42) |
|
||||||
|
| 1 | [zachhale](https://github.com/zachhale) |
|
||||||
|
|
||||||
|
### Building docs
|
||||||
|
|
||||||
|
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
||||||
|
|
||||||
|
To generate the readme, run the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
||||||
|
```
|
||||||
|
|
||||||
|
### Running tests
|
||||||
|
|
||||||
|
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm install && npm test
|
||||||
|
```
|
||||||
|
|
||||||
|
### Author
|
||||||
|
|
||||||
|
**Jon Schlinkert**
|
||||||
|
|
||||||
|
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||||
|
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
||||||
|
|
||||||
|
### License
|
||||||
|
|
||||||
|
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||||
|
Released under the [MIT License](LICENSE).
|
||||||
|
|
||||||
|
***
|
||||||
|
|
||||||
|
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 02, 2017._
|
50
lab3/all/node_modules/@aashutoshrathi/word-wrap/index.d.ts
generated
vendored
Normal file
50
lab3/all/node_modules/@aashutoshrathi/word-wrap/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/**
|
||||||
|
* Wrap words to a specified length.
|
||||||
|
*/
|
||||||
|
export = wrap;
|
||||||
|
|
||||||
|
declare function wrap(str: string, options?: wrap.IOptions): string;
|
||||||
|
|
||||||
|
declare namespace wrap {
|
||||||
|
export interface IOptions {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The width of the text before wrapping to a new line.
|
||||||
|
* @default ´50´
|
||||||
|
*/
|
||||||
|
width?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The string to use at the beginning of each line.
|
||||||
|
* @default ´´ (none)
|
||||||
|
*/
|
||||||
|
indent?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The string to use at the end of each line.
|
||||||
|
* @default ´\n´
|
||||||
|
*/
|
||||||
|
newline?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An escape function to run on each line after splitting them.
|
||||||
|
* @default (str: string) => string;
|
||||||
|
*/
|
||||||
|
escape?: (str: string) => string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Trim trailing whitespace from the returned string.
|
||||||
|
* This option is included since .trim() would also strip
|
||||||
|
* the leading indentation from the first line.
|
||||||
|
* @default true
|
||||||
|
*/
|
||||||
|
trim?: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Break a word between any two letters when the word is longer
|
||||||
|
* than the specified width.
|
||||||
|
* @default false
|
||||||
|
*/
|
||||||
|
cut?: boolean;
|
||||||
|
}
|
||||||
|
}
|
52
lab3/all/node_modules/@aashutoshrathi/word-wrap/index.js
generated
vendored
Normal file
52
lab3/all/node_modules/@aashutoshrathi/word-wrap/index.js
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
/*!
|
||||||
|
* word-wrap <https://github.com/jonschlinkert/word-wrap>
|
||||||
|
*
|
||||||
|
* Copyright (c) 2014-2023, Jon Schlinkert.
|
||||||
|
* Released under the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
function trimTabAndSpaces(str) {
|
||||||
|
const lines = str.split('\n');
|
||||||
|
const trimmedLines = lines.map((line) => line.trimEnd());
|
||||||
|
return trimmedLines.join('\n');
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = function(str, options) {
|
||||||
|
options = options || {};
|
||||||
|
if (str == null) {
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
var width = options.width || 50;
|
||||||
|
var indent = (typeof options.indent === 'string')
|
||||||
|
? options.indent
|
||||||
|
: '';
|
||||||
|
|
||||||
|
var newline = options.newline || '\n' + indent;
|
||||||
|
var escape = typeof options.escape === 'function'
|
||||||
|
? options.escape
|
||||||
|
: identity;
|
||||||
|
|
||||||
|
var regexString = '.{1,' + width + '}';
|
||||||
|
if (options.cut !== true) {
|
||||||
|
regexString += '([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)';
|
||||||
|
}
|
||||||
|
|
||||||
|
var re = new RegExp(regexString, 'g');
|
||||||
|
var lines = str.match(re) || [];
|
||||||
|
var result = indent + lines.map(function(line) {
|
||||||
|
if (line.slice(-1) === '\n') {
|
||||||
|
line = line.slice(0, line.length - 1);
|
||||||
|
}
|
||||||
|
return escape(line);
|
||||||
|
}).join(newline);
|
||||||
|
|
||||||
|
if (options.trim === true) {
|
||||||
|
result = trimTabAndSpaces(result);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
|
||||||
|
function identity(str) {
|
||||||
|
return str;
|
||||||
|
}
|
81
lab3/all/node_modules/@aashutoshrathi/word-wrap/package.json
generated
vendored
Normal file
81
lab3/all/node_modules/@aashutoshrathi/word-wrap/package.json
generated
vendored
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"name": "@aashutoshrathi/word-wrap",
|
||||||
|
"description": "Wrap words to a specified length.",
|
||||||
|
"version": "1.2.6",
|
||||||
|
"homepage": "https://github.com/aashutoshrathi/word-wrap",
|
||||||
|
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||||
|
"contributors": [
|
||||||
|
"Aashutosh Rathi <aashutoshrathi@gmail.com>",
|
||||||
|
"Danilo Sampaio <danilo.sampaio@gmail.com> (localhost:8080)",
|
||||||
|
"Fede Ramirez <i@2fd.me> (https://2fd.github.io)",
|
||||||
|
"Joe Hildebrand <joe-github@cursive.net> (https://twitter.com/hildjj)",
|
||||||
|
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
|
||||||
|
"Todd Kennedy (https://tck.io)",
|
||||||
|
"Waldemar Reusch (https://github.com/lordvlad)",
|
||||||
|
"Wolfgang Faust (http://www.linestarve.com)",
|
||||||
|
"Zach Hale <zachhale@gmail.com> (http://zachhale.com)"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/aashutoshrathi/word-wrap.git"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/aashutoshrathi/word-wrap/issues"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"files": [
|
||||||
|
"index.js",
|
||||||
|
"index.d.ts"
|
||||||
|
],
|
||||||
|
"main": "index.js",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "mocha"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"gulp-format-md": "^0.1.11",
|
||||||
|
"mocha": "^10.2.0"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"break",
|
||||||
|
"carriage",
|
||||||
|
"line",
|
||||||
|
"new-line",
|
||||||
|
"newline",
|
||||||
|
"return",
|
||||||
|
"soft",
|
||||||
|
"text",
|
||||||
|
"word",
|
||||||
|
"word-wrap",
|
||||||
|
"words",
|
||||||
|
"wrap"
|
||||||
|
],
|
||||||
|
"typings": "index.d.ts",
|
||||||
|
"verb": {
|
||||||
|
"toc": false,
|
||||||
|
"layout": "default",
|
||||||
|
"tasks": [
|
||||||
|
"readme"
|
||||||
|
],
|
||||||
|
"plugins": [
|
||||||
|
"gulp-format-md"
|
||||||
|
],
|
||||||
|
"lint": {
|
||||||
|
"reflinks": true
|
||||||
|
},
|
||||||
|
"related": {
|
||||||
|
"list": [
|
||||||
|
"common-words",
|
||||||
|
"shuffle-words",
|
||||||
|
"unique-words",
|
||||||
|
"wordcount"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"reflinks": [
|
||||||
|
"verb",
|
||||||
|
"verb-generate-readme"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
3
lab3/all/node_modules/@esbuild/win32-x64/README.md
generated
vendored
Normal file
3
lab3/all/node_modules/@esbuild/win32-x64/README.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# esbuild
|
||||||
|
|
||||||
|
This is the Windows 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
|
BIN
lab3/all/node_modules/@esbuild/win32-x64/esbuild.exe
generated
vendored
Normal file
BIN
lab3/all/node_modules/@esbuild/win32-x64/esbuild.exe
generated
vendored
Normal file
Binary file not shown.
17
lab3/all/node_modules/@esbuild/win32-x64/package.json
generated
vendored
Normal file
17
lab3/all/node_modules/@esbuild/win32-x64/package.json
generated
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "@esbuild/win32-x64",
|
||||||
|
"version": "0.18.20",
|
||||||
|
"description": "The Windows 64-bit binary for esbuild, a JavaScript bundler.",
|
||||||
|
"repository": "https://github.com/evanw/esbuild",
|
||||||
|
"license": "MIT",
|
||||||
|
"preferUnplugged": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"os": [
|
||||||
|
"win32"
|
||||||
|
],
|
||||||
|
"cpu": [
|
||||||
|
"x64"
|
||||||
|
]
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user