Skip to content

Commit d9fb6ce

Browse files
authored
Merge pull request #4 from clearfeld/main
v.0.4.0
2 parents e39f66c + 4bca8be commit d9fb6ce

29 files changed

+2261
-162
lines changed

.github/workflows/publish-to-auto-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
6464
with:
6565
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
66-
releaseName: "Control v__VERSION__"
66+
releaseName: "Construct v__VERSION__"
6767
releaseBody: "See the assets to download this version and install."
6868
releaseDraft: true
6969
prerelease: false

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
<div>
2+
<H1 align="center">Construct</H1>
3+
</div>
4+
5+
![image](https://github.com/user-attachments/assets/a0984944-4d89-442e-8b39-f869001ddf86)
6+
17
# Tauri + React + Typescript
28

39
This template should help get you started developing with Tauri, React and Typescript in Vite.

src-tauri/Cargo.lock

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-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "construct"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
description = "A GUI API Client"
55
authors = ["clearfeld"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "construct",
4-
"version": "0.3.0",
4+
"version": "0.4.0",
55
"identifier": "com.construct.app",
66
"build": {
77
"beforeDevCommand": "pnpm dev",

src/App.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { Routes, Route, Outlet } from "react-router";
1616
import "./updater.tsx";
1717
import { H5 } from "@controlkit/ui";
1818
import TabBar from "./commons/tabbar/index.tsx";
19+
import EnvironmentsPage from "./pages/environments/index.tsx";
1920

2021
const styles = stylex.create({
2122
container: {
@@ -153,6 +154,27 @@ function App() {
153154
</div>
154155
}
155156
/>
157+
158+
<Route
159+
path="/environment/:id"
160+
element={
161+
<div {...stylex.props(styles.container)}>
162+
<Sidebar />
163+
164+
<div {...stylex.props(styles.content_width)}>
165+
<TabBar />
166+
167+
<div {...stylex.props(styles.details_container)}>
168+
<div {...stylex.props(styles.request_container)}>
169+
<EnvironmentsPage />
170+
</div>
171+
172+
{/* <Toolbar /> */}
173+
</div>
174+
</div>
175+
</div>
176+
}
177+
/>
156178
</Route>
157179
</Routes>
158180
);
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

src/assets/environment.svg

Lines changed: 3 additions & 0 deletions
Loading

src/commons/sidebar/collections/recursive_tree.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,6 @@ export default function RecursiveTree(props: any) {
639639

640640
navigate(`/http_request/${item.id}`);
641641

642-
643642
const tabs = [...getTabs()];
644643

645644
const tab = tabs.find((t) => t.id === item.id);
@@ -652,7 +651,9 @@ export default function RecursiveTree(props: any) {
652651
// // setTabState(item.id, E_TabStatus.SAVED);
653652
// }, 100);
654653

655-
const method = methods.find((method) => method.value === tab.data.method);
654+
const method = methods.find(
655+
(method) => method.value === tab.data.method,
656+
);
656657

657658
setRequestParameters(
658659
tab.data.id,
@@ -669,17 +670,16 @@ export default function RecursiveTree(props: any) {
669670

670671
// return;
671672
} else {
672-
673-
setRequestParameters(
674-
item.id,
675-
item.name,
676-
item.url,
677-
method,
678-
autoHeaders, // [], // item.autoHeaders,
679-
item.headers,
680-
item.body,
681-
// item.cookies,
682-
);
673+
setRequestParameters(
674+
item.id,
675+
item.name,
676+
item.url,
677+
method,
678+
autoHeaders, // [], // item.autoHeaders,
679+
item.headers,
680+
item.body,
681+
// item.cookies,
682+
);
683683

684684
const t: T_Tab = {
685685
id: item.id,

0 commit comments

Comments
 (0)