♻️ Restructure: Move Astro to repository root
BREAKING CHANGE: Astro project is now at repository root - Removed dealplustech-astro subdirectory - Moved all Astro files to root - Updated PostCSS config to .cjs - Removed old Next.js files ✅ 11 pages built successfully ✅ Cookie consent banner included ✅ Privacy/Terms links in footer ✅ Ready for Easypanel deployment (no root dir needed) Migration path: - Old structure: /dealplustech-astro/ - New structure: / (root)
This commit is contained in:
22
dealplustech-astro/node_modules/prompts/lib/util/clear.js
generated
vendored
22
dealplustech-astro/node_modules/prompts/lib/util/clear.js
generated
vendored
@@ -1,22 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
const strip = require('./strip');
|
||||
const { erase, cursor } = require('sisteransi');
|
||||
|
||||
const width = str => [...strip(str)].length;
|
||||
|
||||
/**
|
||||
* @param {string} prompt
|
||||
* @param {number} perLine
|
||||
*/
|
||||
module.exports = function(prompt, perLine) {
|
||||
if (!perLine) return erase.line + cursor.to(0);
|
||||
|
||||
let rows = 0;
|
||||
const lines = prompt.split(/\r?\n/);
|
||||
for (let line of lines) {
|
||||
rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);
|
||||
}
|
||||
|
||||
return erase.lines(rows);
|
||||
};
|
||||
Reference in New Issue
Block a user