Proyecto audio control. inicado con panel y control.

This commit is contained in:
2025-11-11 02:26:04 -05:00
parent 7ea49a026e
commit 6895960127
4248 changed files with 493435 additions and 0 deletions

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,109 @@
"use strict";
// Copyright 2019 Google, LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const child_process_1 = require("child_process");
const multiparty = __importStar(require("multiparty"));
const cors_1 = __importDefault(require("cors"));
const util_1 = require("util");
const port = 7172;
const exec = (0, util_1.promisify)(child_process_1.execFile);
async function listen(app, port) {
return new Promise((resolve, reject) => {
const server = app.listen(port, (err) => {
if (err) {
reject(err);
}
resolve(server);
});
});
}
// Starts a web server that browser tests will use, then runs actual browser
// tests.
async function main() {
const app = (0, express_1.default)();
app.use((0, cors_1.default)());
app.post('/path', (req, res) => {
if (req.header('origin')) {
res.set('Access-Control-Allow-Origin', req.header('origin'));
}
const form = new multiparty.Form({ autoFields: true });
form.parse(req, (err, fields) => {
if (err) {
res.status(500).send({ message: err.message });
}
else {
res.status(200).send(fields.null);
}
});
});
app.get('/path', (req, res) => {
if (req.header('origin')) {
res.set('Access-Control-Allow-Origin', req.header('origin'));
}
res.send('response');
});
app.get('/querystring', (req, res) => {
if (req.header('origin')) {
res.set('Access-Control-Allow-Origin', req.header('origin'));
}
const query = req.query.query;
res.send(query || '');
});
const server = await listen(app, port);
console.log(`[http server] I'm listening on port ${port}! Starting karma.`);
await exec('karma', ['start']);
server.close();
console.log(`[http server] Karma has finished! I'm no longer listening on port ${port}!`);
}
main().catch(err => {
console.log('Error:', err);
});
//# sourceMappingURL=browser-test-runner.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"browser-test-runner.js","sourceRoot":"","sources":["../../../browser-test/browser-test-runner.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,sDAA8B;AAE9B,iDAAuC;AACvC,uDAAyC;AACzC,gDAAwB;AACxB,+BAA+B;AAE/B,MAAM,IAAI,GAAG,IAAI,CAAC;AAElB,MAAM,IAAI,GAAG,IAAA,gBAAS,EAAC,wBAAQ,C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-0,0 +1 @@
export {};

View File

@@ -0,0 +1,81 @@
"use strict";
// Copyright 2019 Google, LLC
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const mocha_1 = require("mocha");
const index_1 = require("../src/index");
const port = 7172; // should match the port defined in `webserver.ts`
(0, mocha_1.describe)('💻 browser tests', () => {
(0, mocha_1.it)('should just work from browser', async () => {
const result = await (0, index_1.request)({ url: `http://localhost:${port}/path` });
assert_1.default.strictEqual(result.status, 200);
assert_1.default.strictEqual(result.data, 'response');
});
(0, mocha_1.it)('should pass querystring parameters from browser', async () => {
const result = await (0, index_1.request)({
url: `http://localhost:${port}/querystring`,
params: { query: 'value' },
});
assert_1.default.strictEqual(result.status, 200);
assert_1.default.strictEqual(result.data, 'value');
});
(0, mocha_1.it)('should allow passing browser fetch explicitly', async () => {
const result = await (0, index_1.request)({
url: `http://localhost:${port}/path`,
fetchImplementation: window.fetch,
});
assert_1.default.strictEqual(result.status, 200);
});
(0, mocha_1.it)('should support multipart post from the browser', async () => {
const headers = new Headers();
const multipart = [
{
'Content-Type': 'application/json',
body: JSON.stringify({ hello: 'world' }),
},
{
'Content-Type': 'text/plain',
body: 'hello world!',
},
];
const boundary = globalThis?.crypto.randomUUID() || (await import('crypto')).randomUUID();
const finale = `--${boundary}--`;
headers.set('Content-Type', `multipart/related; boundary=${boundary}`);
let content = '';
for (const part of multipart) {
const preamble = `--${boundary}\r\nContent-Type: ${part['Content-Type']}\r\n\r\n`;
// rStream.push(preamble);
content += preamble;
if (typeof part.body === 'string') {
content += part.body;
content += '\r\n';
}
}
content += finale;
const result = await (0, index_1.request)({
headers,
data: content,
method: 'POST',
url: `http://localhost:${port}/path`,
});
assert_1.default.strictEqual(result.status, 200);
const parts = result.data;
assert_1.default.strictEqual(parts[0], '{"hello":"world"}');
assert_1.default.strictEqual(parts[1], 'hello world!');
});
});
//# sourceMappingURL=test.browser.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"test.browser.js","sourceRoot":"","sources":["../../../browser-test/test.browser.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;AAEjC,oDAA4B;AAC5B,iCAAmC;AACnC,wCAAqC;AACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,kDAAkD;AAErE,IAAA,gBAAQ,EAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,UAAE,EAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,eAAO,EAAC,EAAC,GAAG,EAAE,oBAAoB,IAAI,OAAO,EAAC,CAAC,CAAC;QACrE,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACvC,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;QAC/D,MAAM,MAAM,GAAG,MAAM,IAAA,eAAO,EAAC;YAC3B,GAAG,EAAE,oBAAoB,IAAI,cAAc;YAC3C,MAAM,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC;SACzB,CAAC,CAAC;QACH,gBAAM,CAAC,W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