Skip to content

Commit 36bee36

Browse files
fix: repair of build output + fix of csp string
1 parent 2b77357 commit 36bee36

File tree

11 files changed

+53
-56
lines changed

11 files changed

+53
-56
lines changed

.exec/exec-debug-bundle-unix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./src-tauri/target/debug/graphite-desktop

.exec/exec-debug-bundle-win.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./src-tauri/target/debug/graphite-desktop.exe

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
{
22
"name": "graphite-desktop",
3-
"version": "0.4.1",
3+
"version": "0.5.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
77
"dev:native": "tauri dev",
88
"build": "next build",
99
"start": "npx serve@latest out",
1010
"start:native-unix": "./.exec/exec-bundle-unix.sh",
11+
"start:native-unix-debug": "./.exec/exec-debug-bundle-unix.sh",
1112
"start:native-win": "./.exec/exec-bundle-unix.sh",
13+
"start:native-win-debug": "./.exec/exec-debug-bundle-unix.sh",
1214
"tauri": "tauri",
1315
"prettier": "prettier --write ./src/**/*.{ts,tsx,css}",
1416
"fix:version-mismatch": "node ./.fix-versions.cjs",

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 = "graphite_desktop"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
description = "A simple desktop app for Graphite"
55
authors = ["GlitchTech Developments"]
66
license = "MIT"

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"package": {
1010
"productName": "GraphiteDesktop",
11-
"version": "0.4.1"
11+
"version": "0.5.0"
1212
},
1313
"tauri": {
1414
"allowlist": {
@@ -38,7 +38,7 @@
3838
]
3939
},
4040
"security": {
41-
"csp": "default-src * 'self' data: tauri://*, https://app.graphite.dev"
41+
"csp": "default-src * 'self' data: tauri://* https://app.graphite.dev"
4242
},
4343
"windows": [
4444
{

src/app/page.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,34 @@ const Logo = () => {
2424
const App = () => {
2525
return (
2626
<Suspense>
27-
{/* <SplashScreenProvider key={new Date().getMilliseconds()}> */}
28-
<div className="g-wrapper">
29-
<div className="g-content">
30-
<div className="g-content-wrapper">
31-
<div className="g-bg-plus"></div>
32-
<div className="flex flex-1 items-center justify-center">
33-
<div className="g-card min-w-[350px]">
34-
<Logo />
35-
<div className="flex w-full flex-col px-[var(--space-xxl)] text-center">
36-
<span className="w-full text-[24px] font-medium">
37-
Welcome to Graphite
38-
</span>
39-
<span className="mt-2 w-full">
40-
Checking status of Graphite Web
41-
<LoadingDots key={new Date().getMilliseconds()} />
42-
</span>
43-
<span className="mt-2 w-full">
44-
If you see this screen for more than 2 seconds, please
45-
right-click on the window content and press
46-
&apos;Reload&apos;
47-
</span>
27+
<SplashScreenProvider key={new Date().getMilliseconds()}>
28+
<div className="g-wrapper">
29+
<div className="g-content">
30+
<div className="g-content-wrapper">
31+
<div className="g-bg-plus"></div>
32+
<div className="flex flex-1 items-center justify-center">
33+
<div className="g-card min-w-[350px]">
34+
<Logo />
35+
<div className="flex w-full flex-col px-[var(--space-xxl)] text-center">
36+
<span className="w-full text-[24px] font-medium">
37+
Welcome to Graphite
38+
</span>
39+
<span className="mt-2 w-full">
40+
Checking status of Graphite Web
41+
<LoadingDots key={new Date().getMilliseconds()} />
42+
</span>
43+
<span className="mt-2 w-full">
44+
If you see this screen for more than 2 seconds, please
45+
right-click on the window content and press
46+
&apos;Reload&apos;
47+
</span>
48+
</div>
4849
</div>
4950
</div>
5051
</div>
5152
</div>
5253
</div>
53-
</div>
54-
{/* </SplashScreenProvider> */}
54+
</SplashScreenProvider>
5555
</Suspense>
5656
);
5757
};

src/utils/spashHandler.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { isNative } from "./isNativeRuntime";
44
export const invokeSplashScreenCloseFunction = async () => {
55
try {
66
const url = "https://app.graphite.dev";
7-
87
const remoteAvailableCheck = await checkWebsiteAvailability(url);
98

109
const invokeNativeCloseCall = async () => {
@@ -13,19 +12,21 @@ export const invokeSplashScreenCloseFunction = async () => {
1312
};
1413

1514
if (!remoteAvailableCheck) {
16-
console.log("remote not available", remoteAvailableCheck);
15+
console.error("remote not available", remoteAvailableCheck);
1716
return;
1817
}
1918

2019
const pushToLocation = async () => {
20+
console.debug("pushing to graphite web-app");
2121
if (isNative) {
22-
invokeNativeCloseCall();
22+
await invokeNativeCloseCall();
2323
} else {
2424
window.location.assign(url);
2525
}
2626
};
2727
setTimeout(pushToLocation, 1800);
2828
} catch (error: any) {
29+
console.error(error);
2930
throw new Error(error.message);
3031
}
3132
};

tailwind.config.cjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
import plugin from "tailwindcss/plugin";
22

3-
/** @type {import('tailwindcss').Config} */
4-
export default {
5-
content: ["./src/**/*.{tsx,ts}", "./**/*.html"],
3+
/** @type {import("tailwindcss").Config} */
4+
const config = {
5+
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
66
theme: {
77
extend: {
88
textShadow: {
99
sm: "0 1px 2px var(--tw-shadow-color)",
1010
DEFAULT: "0 2px 4px var(--tw-shadow-color)",
1111
lg: "0 8px 16px var(--tw-shadow-color)",
1212
},
13+
backgroundImage: {
14+
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
15+
"gradient-conic":
16+
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
17+
},
1318
},
1419
},
1520
corePlugins: {
@@ -18,7 +23,7 @@ export default {
1823
plugins: [
1924
require.resolve("@tailwindcss/aspect-ratio"),
2025
require.resolve("@tailwindcss/container-queries"),
21-
plugin(({ matchUtilities, addUtilities, theme }) => {
26+
plugin(({ matchUtilities, theme }) => {
2227
matchUtilities(
2328
{
2429
"text-shadow": (value) => ({
@@ -30,3 +35,4 @@ export default {
3035
}),
3136
],
3237
};
38+
export default config;

tailwind.config.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)