♻️ 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:
Kunthawat Greethong
2026-03-09 22:00:05 +07:00
parent 5b041a6a44
commit 7a67f68d9f
16524 changed files with 4277 additions and 1983574 deletions

View File

@@ -1,21 +0,0 @@
import type { Logger } from '../../../core/logger/core.js';
import type { CommandExecutor, OperatingSystemProvider } from '../../definitions.js';
import type { CloudIdeProvider } from '../definitions.js';
interface Options {
url: string;
operatingSystemProvider: OperatingSystemProvider;
logger: Logger;
commandExecutor: CommandExecutor;
cloudIdeProvider: CloudIdeProvider;
}
export declare const openDocsCommand: {
help: {
commandName: string;
tables: {
Flags: [string, string][];
};
description: string;
};
run({ url, operatingSystemProvider, logger, commandExecutor, cloudIdeProvider }: Options): Promise<void>;
};
export {};

View File

@@ -1,42 +0,0 @@
import { defineCommand } from "../../domain/command.js";
function getExecInputForPlatform(platform) {
switch (platform) {
case "android":
case "linux":
return ["xdg-open"];
case "darwin":
return ["open"];
case "win32":
return ["cmd", ["/c", "start"]];
case "gitpod":
return ["/ide/bin/remote-cli/gitpod-code", ["--openExternal"]];
default:
return null;
}
}
const openDocsCommand = defineCommand({
help: {
commandName: "astro docs",
tables: {
Flags: [["--help (-h)", "See all available flags."]]
},
description: `Launches the Astro Docs website directly from the terminal.`
},
async run({ url, operatingSystemProvider, logger, commandExecutor, cloudIdeProvider }) {
const platform = cloudIdeProvider.name ?? operatingSystemProvider.name;
const input = getExecInputForPlatform(platform);
if (!input) {
logger.error(
"SKIP_FORMAT",
`It looks like your platform ("${platform}") isn't supported!
To view Astro's docs, please visit ${url}`
);
return;
}
const [command, args = []] = input;
await commandExecutor.execute(command, [...args, encodeURI(url)]);
}
});
export {
openDocsCommand
};

View File

@@ -1,4 +0,0 @@
import type { CloudIde } from './domain/cloud-ide.js';
export interface CloudIdeProvider {
readonly name: CloudIde | null;
}

View File

@@ -1 +0,0 @@
export type CloudIde = 'gitpod';

View File

@@ -1,5 +0,0 @@
import type { CloudIdeProvider } from '../definitions.js';
import type { CloudIde } from '../domain/cloud-ide.js';
export declare class ProcessCloudIdeProvider implements CloudIdeProvider {
readonly name: CloudIde | null;
}

View File

@@ -1,6 +0,0 @@
class ProcessCloudIdeProvider {
name = Boolean(process.env.GITPOD_REPO_ROOT) ? "gitpod" : null;
}
export {
ProcessCloudIdeProvider
};