Skip to content

Commit 7f368db

Browse files
committed
feat: v0.0.7 release
- branch checkout for both ui and vscode interop - boat color customization - breadcrumb placement and click interception on small screens - pre-release package rebuild
1 parent 6053f28 commit 7f368db

File tree

22 files changed

+341
-48
lines changed

22 files changed

+341
-48
lines changed

.vscodeignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ src/
1010
node_modules/
1111
pnpm-lock.yaml
1212
.nvmrc
13+
.husky
14+
.github
1315

1416
# Build tools and configs
1517
vite.config.ts

out/handlers/readDirectory/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const handleReadDirectory = async (panel, message) => {
5151
: "unknown",
5252
isSymlink: Boolean(type & vscode.FileType.SymbolicLink),
5353
}));
54-
console.log(":::entries:::", children);
5554
panel.webview.postMessage({
5655
label: folderLabel,
5756
type: config_1.DIRECTORY_RESPONSE.data,

out/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
gtag('config', 'G-0G3HG1YZL0');
2929
</script>
30-
<script type="module" crossorigin src="./assets/index-B24X0MW8.js"></script>
31-
<link rel="stylesheet" crossorigin href="./assets/index-CX8HUDKm.css">
30+
<script type="module" crossorigin src="./assets/index-DflZv8jV.js"></script>
31+
<link rel="stylesheet" crossorigin href="./assets/index-CLlvIFPj.css">
3232
</head>
3333
<body>
3434
<div id="root"></div>

out/store/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,13 @@ exports.DEFAULT_SETTINGS = {
1818
bobbingAmplitude: 0.2,
1919
bobbingSpeed: 0.6,
2020
volume: 0.5,
21+
boatColors: {
22+
walls: "#222222",
23+
roof: "#c99732",
24+
hull: "#ffffff",
25+
rails: "#000000",
26+
body: "#ffffff",
27+
floaters: "#eeeeee"
28+
}
2129
};
2230
exports.PERSISTED_SETTINGS_KEY = "__gitlantis_._settings__";

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
]
1818
},
1919
"private": true,
20-
"version": "0.0.6",
20+
"version": "0.0.7",
2121
"type": "commonjs",
2222
"scripts": {
2323
"dev": "vite",
@@ -44,6 +44,7 @@
4444
"lucide-react": "^0.513.0",
4545
"nipplejs": "^0.10.2",
4646
"react": "18.2.0",
47+
"react-color": "^2.19.3",
4748
"react-dom": "18.2.0",
4849
"three": "^0.156.1",
4950
"three-stdlib": "^2.25.1",
@@ -57,6 +58,7 @@
5758
"@types/lodash.throttle": "^4.1.9",
5859
"@types/node": "^22.15.24",
5960
"@types/react": "^19.1.6",
61+
"@types/react-color": "^3.0.13",
6062
"@types/react-dom": "^19.1.5",
6163
"@types/three": "^0.176.0",
6264
"@types/vscode": "^1.80.0",

pnpm-lock.yaml

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

src/browser/components/ui/breadcrumbs/index.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@ import { useExtensionContext } from "@/browser/hooks/useExtension/context";
22
import { useGameContext } from "@/browser/hooks/useGame/context";
33
import { BreadcrumbBranch } from "@/browser/components/ui/breadcrumbs/branch";
44
import { BreadcrumbPath } from "@/browser/components/ui/breadcrumbs/path";
5+
import { Donate } from "@/browser/components/ui/donate";
56

67
export const Breadcrumbs = () => {
78
const { settings, showSplashScreen, isMinimapFullScreen } = useGameContext();
89
const { currentPath } = useExtensionContext();
910

10-
if (settings.breadcrumbs === "Hide" || currentPath.length === 0) return null;
11-
1211
return (
1312
<div
14-
className={`text-md absolute left-3 top-8 z-50 flex flex-col items-start rounded-t-lg text-gray-500 transition-opacity duration-300 ${
13+
className={`text-md absolute left-3 top-3 z-50 z-[100] flex flex-col items-start rounded-t-lg text-gray-500 transition-opacity duration-300 ${
1514
showSplashScreen
1615
? "pointer-events-none opacity-0"
1716
: "opacity-100 delay-[1700ms]"
1817
} ${isMinimapFullScreen ? "hidden" : "block"} select-none`}
1918
>
20-
<BreadcrumbBranch />
21-
<BreadcrumbPath />
19+
<Donate />
20+
{settings.breadcrumbs === "Hide" || currentPath.length === 0 ? null : (
21+
<>
22+
<BreadcrumbBranch />
23+
<BreadcrumbPath />
24+
</>
25+
)}
2226
</div>
2327
);
2428
};

src/browser/components/ui/breadcrumbs/path/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,15 @@ export const BreadcrumbPath = () => {
1212
"flex flex-wrap max-w-[50vw] break-words rounded-bl-lg rounded-br-lg rounded-tr-lg bg-[#2d302f] px-2 py-1 gap-y-1";
1313

1414
const segmentButtonClasses =
15-
"max-w-[10rem] truncate text-white text-sm hover:text-[#f2bc07] hover:underline focus:outline-none";
15+
"max-w-[10rem] truncate text-white text-sm focus:outline-none";
1616

1717
if (currentPath === ROOT_DIRECTORY_KEY) {
1818
if (rootLabel.length > 0) {
1919
return (
2020
<nav className={containerClasses}>
2121
<span className="flex items-center text-gray-300">
2222
<span className="mr-1">Exploring:</span>
23-
<span className="cursor-pointer text-white hover:text-[#f2bc07] hover:underline">
24-
{rootLabel}
25-
</span>
23+
<span className="text-white">{rootLabel}</span>
2624
</span>
2725
</nav>
2826
);
@@ -61,7 +59,7 @@ export const BreadcrumbPath = () => {
6159
onClick={() => {
6260
if (!isLastItem) setCurrentPath("/" + fullPath);
6361
}}
64-
className={segmentButtonClasses}
62+
className={`${segmentButtonClasses} ${isLastItem ? "" : "hover:text-[#f2bc07] hover:underline"}`}
6563
title={segment}
6664
>
6765
{segment}

0 commit comments

Comments
 (0)