Skip to content

Commit c4a35a9

Browse files
committed
fix: patch up theme install on non-mvc apps
1 parent 258230b commit c4a35a9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/ViewInstallCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function installBlade($output)
8585
\Leaf\FS::superCopy(__DIR__ . '/themes/blade/theme', "$directory/$viewsPath");
8686
\Leaf\FS::superCopy(__DIR__ . '/themes/blade/config', "$directory/config");
8787
} else {
88-
\Leaf\FS::superCopy(__DIR__ . '/themes/blade', $directory);
88+
\Leaf\FS::superCopy(__DIR__ . '/themes/blade/theme', $directory);
8989
}
9090

9191
$output->writeln("\n🎉 <info>Blade setup successfully.</info>");
@@ -145,7 +145,7 @@ protected function installBareUi($output)
145145
file_put_contents($indexFile, $index);
146146
}
147147
} else {
148-
\Leaf\FS::superCopy(__DIR__ . '/themes/bareui', $directory);
148+
\Leaf\FS::superCopy(__DIR__ . '/themes/bareui/theme', $directory);
149149
}
150150

151151
$output->writeln("\n🎉 <info>Bare UI setup successfully.</info>");

src/ui/server.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,6 @@ function createApp($appInfo)
332332
function updateBasicBuild($appInfo, $directory, $appName)
333333
{
334334
$indexFile = $directory . '/' . $appName . '/index.php';
335-
336335
$indexFileContent = file_get_contents($indexFile);
337336

338337
if ($appInfo['templateEngine'] === 'blade') {

0 commit comments

Comments
 (0)