migrate from perforce

This commit is contained in:
2026-04-19 01:16:27 +02:00
commit d161a20915
1810 changed files with 1156171 additions and 0 deletions

5
node_modules/live-server/middleware/example.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
module.exports = function(req, res, next) {
res.statusCode = 202;
next();
}

View File

@@ -0,0 +1,14 @@
// Single Page Apps - redirect to /#/ except when a file extension is given
var path = require('path');
module.exports = function(req, res, next) {
if (req.method !== "GET" && req.method !== "HEAD")
next();
if (req.url !== '/' && path.extname(req.url) === '') {
var route = req.url;
req.url = '/';
res.statusCode = 302;
res.setHeader('Location', req.url + '#' + route);
res.end();
}
else next();
}

13
node_modules/live-server/middleware/spa.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
// Single Page Apps - redirect to /#/
module.exports = function(req, res, next) {
if (req.method !== "GET" && req.method !== "HEAD")
next();
if (req.url !== '/') {
var route = req.url;
req.url = '/';
res.statusCode = 302;
res.setHeader('Location', req.url + '#' + route);
res.end();
}
else next();
}