Skip to content

Commit b5c5401

Browse files
authored
Merge branch 'develop' into dev-shell-for-windows
2 parents ead3445 + d3f0a50 commit b5c5401

5 files changed

Lines changed: 106 additions & 61 deletions

File tree

.github/workflows/release.yaml

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,12 @@ jobs:
393393
# Copy common files
394394
cp -r artifacts/common-files/* release-linux/
395395
396+
# Set executable permissions
397+
chmod +x release-linux/backend release-linux/updater release-linux/testadj
398+
396399
# Create Linux release archive
397400
cd release-linux
398-
zip -r ../linux-$VERSION.zip .
401+
tar -czf ../linux-$VERSION.tar.gz .
399402
400403
- name: Organize Windows release files
401404
run: |
@@ -445,9 +448,12 @@ jobs:
445448
# Copy common files
446449
cp -r artifacts/common-files/* release-macos/
447450
451+
# Set executable permissions
452+
chmod +x release-macos/backend release-macos/updater release-macos/testadj
453+
448454
# Create macOS Intel release archive
449455
cd release-macos
450-
zip -r ../macos-intel-$VERSION.zip .
456+
tar -czf ../macos-intel-$VERSION.tar.gz .
451457
452458
- name: Organize macOS ARM64 release files
453459
run: |
@@ -471,15 +477,20 @@ jobs:
471477
# Copy common files
472478
cp -r artifacts/common-files/* release-macos-arm64/
473479
480+
# Set executable permissions
481+
chmod +x release-macos-arm64/backend release-macos-arm64/updater release-macos-arm64/testadj
482+
474483
# Create macOS ARM64 release archive
475484
cd release-macos-arm64
476-
zip -r ../macos-arm64-$VERSION.zip .
485+
tar -czf ../macos-arm64-$VERSION.tar.gz .
477486
478487
- name: Upload release packages
479488
uses: actions/upload-artifact@v4
480489
with:
481490
name: releases
482-
path: "*.zip"
491+
path: |
492+
*.tar.gz
493+
*.zip
483494
retention-days: 7
484495
compression-level: 9
485496

@@ -502,9 +513,9 @@ jobs:
502513
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
503514
with:
504515
upload_url: ${{ steps.create_release.outputs.upload_url }}
505-
asset_path: ./linux-${{ github.event.inputs.version }}.zip
506-
asset_name: linux-${{ github.event.inputs.version }}.zip
507-
asset_content_type: application/zip
516+
asset_path: ./linux-${{ github.event.inputs.version }}.tar.gz
517+
asset_name: linux-${{ github.event.inputs.version }}.tar.gz
518+
asset_content_type: application/gzip
508519

509520
- name: Upload Windows package to release
510521
if: github.event_name == 'workflow_dispatch'
@@ -524,9 +535,9 @@ jobs:
524535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
525536
with:
526537
upload_url: ${{ steps.create_release.outputs.upload_url }}
527-
asset_path: ./macos-intel-${{ github.event.inputs.version }}.zip
528-
asset_name: macos-intel-${{ github.event.inputs.version }}.zip
529-
asset_content_type: application/zip
538+
asset_path: ./macos-intel-${{ github.event.inputs.version }}.tar.gz
539+
asset_name: macos-intel-${{ github.event.inputs.version }}.tar.gz
540+
asset_content_type: application/gzip
530541

531542
- name: Upload macOS ARM64 package to release
532543
if: github.event_name == 'workflow_dispatch'
@@ -535,9 +546,9 @@ jobs:
535546
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
536547
with:
537548
upload_url: ${{ steps.create_release.outputs.upload_url }}
538-
asset_path: ./macos-arm64-${{ github.event.inputs.version }}.zip
539-
asset_name: macos-arm64-${{ github.event.inputs.version }}.zip
540-
asset_content_type: application/zip
549+
asset_path: ./macos-arm64-${{ github.event.inputs.version }}.tar.gz
550+
asset_name: macos-arm64-${{ github.event.inputs.version }}.tar.gz
551+
asset_content_type: application/gzip
541552

542553
- name: Upload Linux package to existing release
543554
if: github.event_name == 'release'
@@ -546,9 +557,9 @@ jobs:
546557
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
547558
with:
548559
upload_url: ${{ github.event.release.upload_url }}
549-
asset_path: ./linux-${{ github.event.release.tag_name }}.zip
550-
asset_name: linux-${{ github.event.release.tag_name }}.zip
551-
asset_content_type: application/zip
560+
asset_path: ./linux-${{ github.event.release.tag_name }}.tar.gz
561+
asset_name: linux-${{ github.event.release.tag_name }}.tar.gz
562+
asset_content_type: application/gzip
552563

553564
- name: Upload Windows package to existing release
554565
if: github.event_name == 'release'
@@ -568,9 +579,9 @@ jobs:
568579
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
569580
with:
570581
upload_url: ${{ github.event.release.upload_url }}
571-
asset_path: ./macos-intel-${{ github.event.release.tag_name }}.zip
572-
asset_name: macos-intel-${{ github.event.release.tag_name }}.zip
573-
asset_content_type: application/zip
582+
asset_path: ./macos-intel-${{ github.event.release.tag_name }}.tar.gz
583+
asset_name: macos-intel-${{ github.event.release.tag_name }}.tar.gz
584+
asset_content_type: application/gzip
574585

575586
- name: Upload macOS ARM64 package to existing release
576587
if: github.event_name == 'release'
@@ -579,6 +590,6 @@ jobs:
579590
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
580591
with:
581592
upload_url: ${{ github.event.release.upload_url }}
582-
asset_path: ./macos-arm64-${{ github.event.release.tag_name }}.zip
583-
asset_name: macos-arm64-${{ github.event.release.tag_name }}.zip
584-
asset_content_type: application/zip
593+
asset_path: ./macos-arm64-${{ github.event.release.tag_name }}.tar.gz
594+
asset_name: macos-arm64-${{ github.event.release.tag_name }}.tar.gz
595+
asset_content_type: application/gzip

ethernet-view/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
rel="stylesheet"
1212
href="src/styles/globalOverride.scss"
1313
/>
14+
<link
15+
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
16+
rel="stylesheet"
17+
/>
1418
<meta
1519
name="viewport"
1620
content="width=device-width, initial-scale=1.0"

ethernet-view/src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { AppLayout } from "layouts/AppLayout/AppLayout";
77
import { useState } from "react";
88
import { LoggerPage } from "pages/LoggerPage/LoggerPage";
99

10-
1110
function App() {
1211

1312
const isProduction = import.meta.env.PROD;

ethernet-view/src/layouts/AppLayout/AppLayout.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
21
import styles from "./AppLayout.module.scss"
32
import Testing from "assets/svg/testing.svg"
43
import Logger from "assets/svg/logger.svg"
5-
import Chart from "assets/svg/chart.svg"
6-
74
import { Navbar } from "components/Navbar/Navbar"
85
import { ReactNode } from "react"
96

@@ -25,10 +22,6 @@ export const AppLayout = ({children, pageShown, setPageShown} : Props) => {
2522
icon: Logger,
2623
page: "logger"
2724
},
28-
{
29-
icon: Chart,
30-
page: "chart"
31-
}
3225
]}
3326
pageShown={pageShown}
3427
setPageShown={setPageShown}
Lines changed: 69 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,79 @@
1-
import { SplitLayout } from "layouts/SplitLayout/SplitLayout";
2-
import { Orientation } from "hooks/useSplit/Orientation";
1+
import { useState } from "react";
2+
// import { SplitLayout } from "layouts/SplitLayout/SplitLayout";
3+
// import { Orientation } from "hooks/useSplit/Orientation";
34
import { ReceiveColumn } from "pages/TestingPage/ReceiveColumn/ReceiveColumn";
45
import { OrderColumn } from "pages/TestingPage/OrderColumn/OrderColumn";
56
import { MessagesColumn } from "pages/TestingPage/MessagesColumn/MessagesColumn";
67
import { ChartsColumn } from "./ChartsColumn/ChartsColumn";
78
import styles from "pages/TestingPage/TestingPage.module.scss";
8-
import incomingMessage from "assets/svg/incoming-message.svg"
9-
import paperAirplane from "assets/svg/paper-airplane.svg"
10-
import outgoingMessage from "assets/svg/outgoing-message.svg"
11-
import chart from "assets/svg/chart.svg"
9+
import incomingMessage from "assets/svg/incoming-message.svg";
10+
import paperAirplane from "assets/svg/paper-airplane.svg";
11+
import outgoingMessage from "assets/svg/outgoing-message.svg";
12+
import chart from "assets/svg/chart.svg";
1213

1314
export const TestingPage = () => {
14-
return (
15-
<div id={styles.wrapper}>
16-
<div id={styles.body}>
17-
<SplitLayout
18-
components={[
19-
{
20-
component: <ChartsColumn />,
21-
collapsedIcon: chart
22-
},
23-
{
24-
component: <ReceiveColumn />,
25-
collapsedIcon: incomingMessage
26-
},
27-
{
28-
component: <OrderColumn />,
29-
collapsedIcon: paperAirplane
30-
},
31-
{
32-
component: <MessagesColumn />,
33-
collapsedIcon: outgoingMessage
34-
},
35-
]}
36-
orientation={Orientation.HORIZONTAL}
37-
></SplitLayout>
15+
const [collapsed, setCollapsed] = useState({
16+
charts: false,
17+
receive: false,
18+
order: false,
19+
messages: false,
20+
});
21+
22+
const toggleCollapse = (key: keyof typeof collapsed) => {
23+
setCollapsed((prev) => ({ ...prev, [key]: !prev[key] }));
24+
};
25+
26+
const components = [
27+
{
28+
key: "charts" as const,
29+
icon: chart,
30+
component: <ChartsColumn />,
31+
collapsed: collapsed.charts,
32+
},
33+
{
34+
key: "receive" as const,
35+
icon: incomingMessage,
36+
component: <ReceiveColumn />,
37+
collapsed: collapsed.receive,
38+
},
39+
{
40+
key: "order" as const,
41+
icon: paperAirplane,
42+
component: <OrderColumn />,
43+
collapsed: collapsed.order,
44+
},
45+
{
46+
key: "messages" as const,
47+
icon: outgoingMessage,
48+
component: <MessagesColumn />,
49+
collapsed: collapsed.messages,
50+
},
51+
];
52+
53+
const visibleComponents = components.filter(c => !c.collapsed);
54+
55+
return (
56+
<div id={styles.wrapper}>
57+
<div id={styles.body}>
58+
<div className="d-flex flex-row gap-2 p-2">
59+
{components.map(({ key }) => (
60+
<button
61+
key={key}
62+
className={`btn btn-sm btn-${collapsed[key] ? "outline-primary" : "primary"}`}
63+
onClick={() => toggleCollapse(key)}
64+
>
65+
{collapsed[key] ? `Mostrar ${key}` : `Ocultar ${key}`}
66+
</button>
67+
))}
68+
</div>
69+
<div style={{ display: "flex", height: "100%", gap: "1rem" }}>
70+
{visibleComponents.map(({ key, component }) => (
71+
<div key={key} style={{ flex: `1 1 ${100 / visibleComponents.length}%`, overflow: "auto" }}>
72+
{component}
3873
</div>
74+
))}
3975
</div>
40-
);
76+
</div>
77+
</div>
78+
);
4179
};

0 commit comments

Comments
 (0)