Skip to content

Commit b39279b

Browse files
committed
feat: update server connection
1 parent 78ff8ec commit b39279b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
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/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="icon" href="https://leafphp.dev/logo-circle.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Leaf CLI</title>
8-
<script type="module" crossorigin src="/assets/index-74a315c9.js"></script>
8+
<script type="module" crossorigin src="/assets/index-c9994b7e.js"></script>
99
<link rel="stylesheet" href="/assets/index-162a3904.css">
1010
</head>
1111
<body style="background: #001e26; color: white">

src/ui/src/components/DirectoryInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const DirectoryInput: React.FC<PropsWithChildren<DirectoryInputProps>> = ({
4848
onClick={async () => {
4949
setLoading(true);
5050

51-
fetch('http://localhost:5500/server.php?action=setConfig', {
51+
fetch(`${window.location.origin}/server.php?action=setConfig`, {
5252
method: 'POST',
5353
body: JSON.stringify({
5454
data: {

src/ui/src/pages/Create/ReviewScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ReviewScreen: React.FC<React.PropsWithChildren<CreateSubScreenProps>> = ({
5050
);
5151
}
5252

53-
fetch('http://localhost:5500/server.php?action=createApp', {
53+
fetch(`${window.location.origin}/server.php?action=createApp`, {
5454
method: 'POST',
5555
body: JSON.stringify({
5656
data: JSON.stringify(formData),

src/ui/src/pages/HomeScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const HomeScreen = () => {
1616
'https://repo.packagist.org/p2/leafs/leaf.json'
1717
);
1818
const { data: config, mutate: configMutate } = useSWR(
19-
'http://localhost:5500/server.php?action=getConfig'
19+
`${window.location.origin}/server.php?action=getConfig`
2020
);
2121

2222
const leafInfo = versionData?.packages['leafs/leaf'];

0 commit comments

Comments
 (0)