Skip to content

Commit 26ba86a

Browse files
committed
fix css and logo
1 parent 9d466ed commit 26ba86a

10 files changed

Lines changed: 83 additions & 175 deletions

File tree

packages/learningmap/src/EditorToolbar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from "react";
22
import { Menu, MenuButton, MenuDivider, MenuItem, SubMenu } from "@szhsin/react-menu";
3-
import "@szhsin/react-menu/dist/index.css";
4-
import '@szhsin/react-menu/dist/transitions/zoom.css';
53
import { Plus, Bug, Settings, Eye, Menu as MenuI, FolderOpen, Download, ImageDown, ExternalLink, Share2, RotateCcw } from "lucide-react";
64
import { getTranslations } from "./translations";
75
import { useEditorStore } from "./editorStore";

packages/learningmap/src/index.css

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
@import "@szhsin/react-menu/dist/index.css";
12
@import "@xyflow/react/dist/style.css";
23

34
:root {
@@ -254,9 +255,17 @@ header.drawer-header {
254255
line-height: 1.25;
255256
}
256257

257-
.drawer-description h1 { font-size: 1.5em; }
258-
.drawer-description h2 { font-size: 1.25em; }
259-
.drawer-description h3 { font-size: 1.1em; }
258+
.drawer-description h1 {
259+
font-size: 1.5em;
260+
}
261+
262+
.drawer-description h2 {
263+
font-size: 1.25em;
264+
}
265+
266+
.drawer-description h3 {
267+
font-size: 1.1em;
268+
}
260269

261270
.drawer-description p {
262271
margin-bottom: 1em;

packages/learningmap/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import "./index.css";
2-
31
import LearningMap from "./LearningMap";
42
import LearningMapEditor from "./LearningMapEditor";
53

platforms/vscode/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
index.css
2+
out
3+
node_modules
4+
.vscode-test/
5+
*.vsix
6+
.DS_Store
7+
.history

platforms/vscode/LICENSE.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Mike Barkmin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

platforms/vscode/example.learningmap

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
"id": "1",
55
"type": "topic",
66
"position": {
7-
"x": 250,
8-
"y": 100
7+
"x": 192,
8+
"y": 271
99
},
10+
"zIndex": 30,
1011
"data": {
1112
"state": "unlocked",
1213
"label": "Getting Started",
@@ -17,14 +18,28 @@
1718
"id": "2",
1819
"type": "topic",
1920
"position": {
20-
"x": 250,
21-
"y": 250
21+
"x": 599,
22+
"y": 217
2223
},
24+
"zIndex": 30,
2325
"data": {
2426
"state": "locked",
2527
"label": "Advanced Topics",
2628
"description": "Deep dive into advanced features"
2729
}
30+
},
31+
{
32+
"id": "node-1762086584942",
33+
"type": "task",
34+
"position": {
35+
"x": 189,
36+
"y": 176
37+
},
38+
"zIndex": 30,
39+
"data": {
40+
"label": "New task",
41+
"state": "unlocked"
42+
}
2843
}
2944
],
3045
"edges": [
@@ -42,5 +57,5 @@
4257
},
4358
"version": 1,
4459
"type": "learningmap",
45-
"source": "vscode-extension"
46-
}
60+
"source": "https://learningmap.app"
61+
}

platforms/vscode/icon.png

36.6 KB
Loading

platforms/vscode/icon.svg

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

platforms/vscode/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "learningmap-vscode",
3-
"displayName": "Learningmap Editor",
2+
"name": "learningmap-studio",
3+
"displayName": "Learningmap Studio",
44
"description": "Visual editor for learningmap files",
55
"version": "0.1.0",
66
"publisher": "openpatch",
77
"author": "Mike Barkmin",
88
"license": "MIT",
99
"private": true,
10-
"icon": "icon.svg",
10+
"icon": "icon.png",
1111
"repository": {
1212
"type": "git",
1313
"url": "https://github.com/openpatch/learningmap.git",
@@ -73,5 +73,9 @@
7373
"@types/react-dom": "^19.2.1",
7474
"@vscode/vsce": "^3.2.1",
7575
"typescript": "~5.9.3"
76+
},
77+
"vsce": {
78+
"dependencies": false,
79+
"skipDuplicate": true
7680
}
7781
}

scripts/buildPackage.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,19 @@ export const buildPackage = async (path) => {
8686
throw new Error(`ESM Build failed for ${packageName} \n ${e}`);
8787
});
8888

89+
// bundle index.css
90+
await build({
91+
entryPoints: [`${path}/src/index.css`],
92+
outfile: `${path}/dist/index.css`,
93+
minify: true,
94+
bundle: true,
95+
loader: {
96+
".svg": "dataurl",
97+
".woff2": "dataurl",
98+
},
99+
}).catch((e) => {
100+
throw new Error(`ESM Build failed for ${packageName} \n ${e}`);
101+
});
102+
89103
console.log(`build ${chalk.green("success")} - ${packageName}`);
90104
};

0 commit comments

Comments
 (0)