chore: stop tracking vendor lib files (now restored via npm + esbuild)

Drops 1038 files from src/Yavsc.Org/wwwroot/lib/ — they remain
on disk and are now restored via 'npm install' at build time
(see package.json and esbuild.config.mjs).

Exception: jonthornton-Datepair is not on npm, the bundled
files are kept in wwwroot/lib/jonthornton-Datepair/ as static
assets.

Also extends .gitignore to ignore:
- node_modules/, build/, package-lock.json (esbuild toolchain)
- wwwroot/js/*.min.js (regenerated by 'npm run build:js')
- .Production.env (added explicitly, not matched by '.*.env'
  glob in some git versions)

This aligns themeok with the architecture already in place
on refac/js-bundle (commits ed7522c5, 196f4b0b, 292c0a2f on
that branch). The build artifacts were already present in
node_modules/ and build/ on disk; this commit only stops
tracking them.

Tested: dotnet test 11/11 green (no C# code touched).
This commit is contained in:
Paul Schneider 2026-06-14 16:14:47 +01:00
commit ebfc3d772d
1039 changed files with 18 additions and 273582 deletions

View file

@ -1,87 +0,0 @@
"use strict";
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
Object.defineProperty(exports, "__esModule", { value: true });
exports.XhrHttpClient = void 0;
const Errors_1 = require("./Errors");
const HttpClient_1 = require("./HttpClient");
const ILogger_1 = require("./ILogger");
const Utils_1 = require("./Utils");
class XhrHttpClient extends HttpClient_1.HttpClient {
constructor(logger) {
super();
this._logger = logger;
}
/** @inheritDoc */
send(request) {
// Check that abort was not signaled before calling send
if (request.abortSignal && request.abortSignal.aborted) {
return Promise.reject(new Errors_1.AbortError());
}
if (!request.method) {
return Promise.reject(new Error("No method defined."));
}
if (!request.url) {
return Promise.reject(new Error("No url defined."));
}
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
xhr.open(request.method, request.url, true);
xhr.withCredentials = request.withCredentials === undefined ? true : request.withCredentials;
xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (request.content === "") {
request.content = undefined;
}
if (request.content) {
// Explicitly setting the Content-Type header for React Native on Android platform.
if ((0, Utils_1.isArrayBuffer)(request.content)) {
xhr.setRequestHeader("Content-Type", "application/octet-stream");
}
else {
xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
}
}
const headers = request.headers;
if (headers) {
Object.keys(headers)
.forEach((header) => {
xhr.setRequestHeader(header, headers[header]);
});
}
if (request.responseType) {
xhr.responseType = request.responseType;
}
if (request.abortSignal) {
request.abortSignal.onabort = () => {
xhr.abort();
reject(new Errors_1.AbortError());
};
}
if (request.timeout) {
xhr.timeout = request.timeout;
}
xhr.onload = () => {
if (request.abortSignal) {
request.abortSignal.onabort = null;
}
if (xhr.status >= 200 && xhr.status < 300) {
resolve(new HttpClient_1.HttpResponse(xhr.status, xhr.statusText, xhr.response || xhr.responseText));
}
else {
reject(new Errors_1.HttpError(xhr.response || xhr.responseText || xhr.statusText, xhr.status));
}
};
xhr.onerror = () => {
this._logger.log(ILogger_1.LogLevel.Warning, `Error from HTTP request. ${xhr.status}: ${xhr.statusText}.`);
reject(new Errors_1.HttpError(xhr.statusText, xhr.status));
};
xhr.ontimeout = () => {
this._logger.log(ILogger_1.LogLevel.Warning, `Timeout from HTTP request.`);
reject(new Errors_1.TimeoutError());
};
xhr.send(request.content);
});
}
}
exports.XhrHttpClient = XhrHttpClient;
//# sourceMappingURL=XhrHttpClient.js.map