mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-14 16:07:52 +00:00
File › New Project offers 38 generators grouped by language (Java, Spring Boot, Quarkus, Micronaut, Kotlin, Ktor, Scala, Python/Django/FastAPI/Flask, Node/Vite/Next.js/Nuxt/Angular/SvelteKit/Astro/NestJS/Express, Go, Rust, C/C++, Zig, .NET, PHP/Laravel/Symfony, Ruby/Rails, Dart/Flutter, Swift, Elixir/Phoenix, Haskell, static website, empty). Each is a declaration in generators/<id>.toml run by the new ide-scaffold crate: built-in templates, the framework's official CLI run non-interactively, or a project service zip (Spring Initializr, code.quarkus.io, Micronaut Launch) whose metadata becomes form fields. Projects are built in a staging directory and moved into place only on success. The dialog renders each form from its schema, flags missing toolchains with install hints and streams progress; created projects open trusted. New Project is also on the welcome screen and the title bar project menu. Closes #709
40 lines
711 B
TOML
40 lines
711 B
TOML
id = "html"
|
|
name = "Static Website"
|
|
group = "JavaScript"
|
|
icon = "project-html"
|
|
order = 9
|
|
description = "An HTML page with a stylesheet and a script."
|
|
|
|
[[files]]
|
|
path = "index.html"
|
|
content = '''
|
|
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>{{name}}</title>
|
|
<link rel="stylesheet" href="style.css" />
|
|
</head>
|
|
<body>
|
|
<h1>Hello, World!</h1>
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|
|
'''
|
|
|
|
[[files]]
|
|
path = "style.css"
|
|
content = '''
|
|
body {
|
|
font-family: system-ui, sans-serif;
|
|
margin: 2rem;
|
|
}
|
|
'''
|
|
|
|
[[files]]
|
|
path = "script.js"
|
|
content = '''
|
|
console.log("Hello, World!");
|
|
'''
|