Skip to content

Commit 9754ca8

Browse files
authored
Merge pull request #4 from thingsdb/staging
Improvemets
2 parents 7d96d16 + 2e9ba11 commit 9754ca8

56 files changed

Lines changed: 769 additions & 815 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ ThingsCode (or **ticode** for short) is the interactive development studio built
1010

1111
**1. Download the latest version:**
1212

13-
- [Linux (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-linux-amd64-1.0.1.tar.gz)
14-
- [Linux (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-linux-arm64-1.0.1.tar.gz)
15-
- [Darwin (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-darwin-amd64-1.0.1.tar.gz)
16-
- [Darwin (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-darwin-arm64-1.0.1.tar.gz)
17-
- [Windows (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-windows-amd64-1.0.1.tar.gz)
18-
- [Windows (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.1/ticode-windows-arm64-1.0.1.tar.gz)
13+
- [Linux (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-linux-amd64-1.0.2-alpha0.tar.gz)
14+
- [Linux (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-linux-arm64-1.0.2-alpha0.tar.gz)
15+
- [Darwin (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-darwin-amd64-1.0.2-alpha0.tar.gz)
16+
- [Darwin (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-darwin-arm64-1.0.2-alpha0.tar.gz)
17+
- [Windows (amd64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-windows-amd64-1.0.2-alpha0.tar.gz)
18+
- [Windows (arm64)](https://github.com/thingsdb/ThingsCode/releases/download/v1.0.2-alpha0/ticode-windows-arm64-1.0.2-alpha0.tar.gz)
1919

2020
**2. Extract the contents of the archive using a tool like `tar`. Here's an example for Linux (amd64):**
2121

2222
```bash
23-
tar -xzvf ticode-linux-amd64-1.0.1.tar.gz
23+
tar -xzvf ticode-linux-amd64-1.0.2-alpha0.tar.gz
2424
```
2525

2626
**3. Install:**
@@ -69,27 +69,27 @@ npm run build
6969

7070
mkdir -p bin/darwin-amd64
7171
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/darwin-amd64/ticode
72-
tar -zcf bin/ticode-darwin-amd64-1.0.1.tar.gz -C ./bin/darwin-amd64/ ticode
72+
tar -zcf bin/ticode-darwin-amd64-1.0.2-alpha0.tar.gz -C ./bin/darwin-amd64/ ticode
7373

7474
mkdir -p bin/darwin-arm64
7575
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/darwin-arm64/ticode
76-
tar -zcf bin/ticode-darwin-arm64-1.0.1.tar.gz -C ./bin/darwin-arm64/ ticode
76+
tar -zcf bin/ticode-darwin-arm64-1.0.2-alpha0.tar.gz -C ./bin/darwin-arm64/ ticode
7777

7878
mkdir -p bin/linux-amd64
7979
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/linux-amd64/ticode
80-
tar -zcf bin/ticode-linux-amd64-1.0.1.tar.gz -C ./bin/linux-amd64/ ticode
80+
tar -zcf bin/ticode-linux-amd64-1.0.2-alpha0.tar.gz -C ./bin/linux-amd64/ ticode
8181

8282
mkdir -p bin/linux-arm64
8383
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/linux-arm64/ticode
84-
tar -zcf bin/ticode-linux-arm64-1.0.1.tar.gz -C ./bin/linux-arm64/ ticode
84+
tar -zcf bin/ticode-linux-arm64-1.0.2-alpha0.tar.gz -C ./bin/linux-arm64/ ticode
8585

8686
mkdir -p bin/windows-amd64
8787
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -o bin/windows-amd64/ticode.exe
88-
tar -zcf bin/ticode-windows-amd64-1.0.1.tar.gz -C ./bin/windows-amd64/ ticode.exe
88+
tar -zcf bin/ticode-windows-amd64-1.0.2-alpha0.tar.gz -C ./bin/windows-amd64/ ticode.exe
8989

9090
mkdir -p bin/windows-arm64
9191
GOOS=windows GOARCH=arm64 CGO_ENABLED=0 go build -trimpath -o bin/windows-arm64/ticode.exe
92-
tar -zcf bin/ticode-windows-arm64-1.0.1.tar.gz -C ./bin/windows-arm64/ ticode.exe
92+
tar -zcf bin/ticode-windows-arm64-1.0.2-alpha0.tar.gz -C ./bin/windows-arm64/ ticode.exe
9393
```
9494

9595
## Update

app/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package app
22

3-
const Version = "1.0.1" // And update package.json
3+
const Version = "1.0.2-alpha0" // And update package.json

eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export default defineConfig([
1919
globals: globals.browser,
2020
},
2121
rules: {
22-
"semi": ["error", "always"]
22+
"semi": ["error", "always"],
23+
"indent": ["error", 2]
2324
}
2425
},
2526
]);

package-lock.json

Lines changed: 53 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ticode",
3-
"version": "1.0.1",
3+
"version": "1.0.2-alpha0",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/Root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Root() {
4343
overflowX: 'hidden'
4444
}}
4545
>
46-
<WorkspaceProvider appearance={appearance}>
46+
<WorkspaceProvider>
4747
<App />
4848
</WorkspaceProvider>
4949
</Box>

src/components/AboutModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface AboutModalProps {
1010

1111
export default function AboutModal({ isOpen, onOpenChange }: AboutModalProps) {
1212
const { appearance } = useTheme();
13-
const appVersion = version || '1.0.1';
13+
const appVersion = version || '1.0.2-alpha0';
1414

1515
return (
1616
<Dialog.Root open={isOpen} onOpenChange={onOpenChange}>
@@ -61,7 +61,7 @@ export default function AboutModal({ isOpen, onOpenChange }: AboutModalProps) {
6161
If you like using ThingsCode, please give us a star on our official GitHub organization page!
6262
</Text>
6363

64-
<Button size="1" color="gray" variant="classic" mt="1" asChild style={{ cursor: 'pointer' }}>
64+
<Button size="1" color="gray" variant="classic" mt="1" asChild className="cursor-pointer">
6565
<a href="https://github.com/thingsdb" target="_blank" rel="noopener noreferrer" style={{ gap: '6px' }}>
6666
<GitHubLogoIcon width="13" height="13" />
6767
Star on GitHub

src/components/ConfirmDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function ConfirmDialog({
3232
<Flex gap="3" justify="end">
3333
{/* Cancel Trigger Box */}
3434
<AlertDialog.Cancel>
35-
<Button variant="soft" color="gray" style={{ cursor: 'pointer' }}>
35+
<Button variant="soft" color="gray" className="cursor-pointer">
3636
{cancelText}
3737
</Button>
3838
</AlertDialog.Cancel>
@@ -43,7 +43,7 @@ export default function ConfirmDialog({
4343
variant="solid"
4444
color={colorVariant}
4545
onClick={onConfirm}
46-
style={{ cursor: 'pointer' }}
46+
className="cursor-pointer"
4747
>
4848
{confirmText}
4949
</Button>

src/components/ConnectionOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function ConnectionOverlay() {
88
const [showOverlay, setShowOverlay] = useState(() => status !== 'connected');
99
const [prevStatus, setPrevStatus] = useState(status);
1010

11-
if (status !== prevStatus) {
11+
if (status !== prevStatus) {
1212
setPrevStatus(status);
1313
if (status !== 'connected') {
1414
setShowOverlay(true);

src/components/FieldsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ export default function FieldsTab({ tp, onNavigateToType }: FieldsTabProps) {
134134

135135
const cardinalityColor =
136136
cardinality === '1:1' ? 'iris' :
137-
cardinality === '1:N' ? 'orange' :
138-
cardinality === 'N:1' ? 'yellow' : 'pink';
137+
cardinality === '1:N' ? 'orange' :
138+
cardinality === 'N:1' ? 'yellow' : 'pink';
139139

140140
return (
141141
<React.Fragment key={name}>

0 commit comments

Comments
 (0)