Remove legacy configuration files and scripts, transitioning to Vite for build and development processes. Introduce new HTML files for the landing and terms pages, along with stubs for API responses. Update package.json and package-lock.json to include Vite and related dependencies, enhancing the project structure and build efficiency.

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-10-24 14:35:30 +03:00
parent ebf0daacce
commit 7907238c1a
27 changed files with 1461 additions and 621 deletions

11
stubs/api/test.js Normal file
View File

@@ -0,0 +1,11 @@
// Пример stub файла для /api/test
module.exports = (req, res) => {
res.setHeader('Content-Type', 'application/json');
res.end(JSON.stringify({
message: 'Hello from stub!',
timestamp: new Date().toISOString(),
method: req.method,
url: req.url,
}));
};

8
stubs/api/user.js Normal file
View File

@@ -0,0 +1,8 @@
// Пример stub для /api/user
module.exports.default = {
id: 1,
name: 'Test User',
email: 'user@brojs.ru',
role: 'student'
};