Skip to content

Commit 1ce8fc2

Browse files
committed
fix: patch up import
1 parent dca3087 commit 1ce8fc2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "leafs/cli",
33
"description": "A simple command line tool for installing and interacting with your leaf apps",
44
"homepage": "https://cli.leafphp.dev",
5-
"version": "v2.10.1",
5+
"version": "v2.10.2",
66
"keywords": [
77
"leaf",
88
"php",

src/ui/dist/assets/index-74a315c9.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ui/dist/server.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
header('Access-Control-Allow-Origin: *');
77
header('Access-Control-Allow-Headers: *');
88

9-
require dirname(__DIR__, 3) . '/vendor/autoload.php';
9+
if (file_exists(dirname(__DIR__, 3) . '/autoload.php')) {
10+
require dirname(__DIR__, 5) . '/autoload.php';
11+
} else {
12+
require dirname(__DIR__, 3) . '/vendor/autoload.php';
13+
}
1014

1115
$action = $_GET['action'] ?? null;
1216

src/ui/src/pages/HomeScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const HomeScreen = () => {
3939
</span>
4040
</div>
4141
<p className="dark:text-gray-300 text-gray-600">
42-
v0.0.1 - 4 Oct, 2023
42+
v0.0.2 - 4 Oct, 2023
4343
</p>
4444
</div>
4545
</div>

0 commit comments

Comments
 (0)