Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Dec 18, 2024
1 parent 91c7721 commit 5a87abc
Show file tree
Hide file tree
Showing 14 changed files with 200 additions and 167 deletions.
110 changes: 79 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@iconify/json": "^2.2.196",
"@kobalte/core": "^0.13.6",
"@kobalte/core": "^0.13.7",
"@macrograph/api-contract": "workspace:*",
"@macrograph/interface": "workspace:*",
"@macrograph/packages": "workspace:*",
Expand Down Expand Up @@ -39,7 +39,7 @@
"@kobalte/tailwindcss": "^0.6.5",
"@macrograph/config": "workspace:*",
"@tailwindcss/forms": "^0.5.7",
"@tauri-apps/cli": "^1.5.11",
"@tauri-apps/cli": "^1.6.3",
"autoprefixer": "^10.4.19",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
Expand Down
5 changes: 3 additions & 2 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
tauri-build = { version = "1.3", features = [] }
tauri-build = { version = "1.5.0", features = [] }

[dependencies]
tauri = { version = "1.3.0", features = [ "clipboard-all",
tauri = { version = "1.8.0", features = [
"clipboard-all",
"shell-all",
"devtools",
"dialog-all",
Expand Down
Binary file added apps/desktop/src-tauri/assets/dmg-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"icons/icon.ico"
],
"identifier": "macrograph.brendonovich.dev",
"targets": "all"
"targets": "all",
"dmg": {
"background": "./assets/dmg-background.png"
}
},
"security": {
"csp": "asset: https://asset.localhost;"
Expand Down
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"./tailwind.config.js": "./tailwind.config.js"
},
"dependencies": {
"@kobalte/core": "^0.13.6",
"@kobalte/core": "^0.13.7",
"@macrograph/action-history": "workspace:*",
"@macrograph/api-contract": "workspace:*",
"@macrograph/clipboard": "workspace:*",
Expand Down
3 changes: 3 additions & 0 deletions interface/src/Sidebar/InlineTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Switch,
type ValidComponent,
batch,
createEffect,
createSignal,
onMount,
splitProps,
Expand All @@ -25,6 +26,8 @@ export function InlineTextEditor<T extends ValidComponent = "span">(
const [local, others] = splitProps(props, ["value", "onChange", "class"]);
const ctx = useContext() ?? createContextValue();

createEffect(() => console.log({ editing: ctx.editing() }));

return (
<div
class={clsx(
Expand Down
6 changes: 5 additions & 1 deletion interface/src/components/Graph/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export function ContextMenuRenameItem() {
const inlineEditorContext = useInlineTextEditorCtx()!;

return (
<ContextMenuItem onSelect={() => inlineEditorContext.setEditing(true)}>
<ContextMenuItem
onSelect={() => {
inlineEditorContext.setEditing(true);
}}
>
<IconAntDesignEditOutlined /> Rename
</ContextMenuItem>
);
Expand Down
Loading

0 comments on commit 5a87abc

Please sign in to comment.