Switch to NextJS
This commit is contained in:
32 files changed
+2727
-845
No files matched your search
+11
-3
@@ -9,11 +9,19 @@ async fn create_project(project_type: String, project_folder: String, project_na
|
||||
let project_type_str: &str = project_type.as_str();
|
||||
match project_type_str {
|
||||
"website" => {
|
||||
let _ = fs::write(format!("{}/index.php", project_root), "<h1>this will be updated later</h1>").await;
|
||||
let _ = fs::write(
|
||||
format!("{}/index.php", project_root),
|
||||
"<h1>this will be updated later</h1>",
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
"webserver" => {
|
||||
let _ = fs::write(format!("{}/index.php", project_root), "<h1>this will be updated later</h1>").await;
|
||||
let _ = fs::write(
|
||||
format!("{}/index.php", project_root),
|
||||
"<h1>this will be updated later</h1>",
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
_ => {}
|
||||
@@ -35,7 +43,7 @@ pub fn run() {
|
||||
tauri::webview::WebviewWindowBuilder::new(
|
||||
app,
|
||||
"main",
|
||||
tauri::WebviewUrl::App("projectmanager.html".into()),
|
||||
tauri::WebviewUrl::App("projectmanager/projects".into()),
|
||||
)
|
||||
.resizable(false)
|
||||
.maximizable(false)
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"identifier": "xyz.lncvrt.php-fly",
|
||||
"build": {
|
||||
"beforeDevCommand": "yarn dev",
|
||||
"devUrl": "http://localhost:1420",
|
||||
"beforeBuildCommand": "yarn build",
|
||||
"frontendDist": "../dist"
|
||||
"devUrl": "http://localhost:3000",
|
||||
"frontendDist": "../out"
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
|
||||
Reference in new issue
Block a user