Skip to content

Commit

Permalink
Changing computers
Browse files Browse the repository at this point in the history
  • Loading branch information
set authored and J-Cake committed Nov 13, 2024
1 parent 3f0aa0d commit 2cfbfbb
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "packages/expression"]
path = packages/expression
url = [email protected]:Obsidian-OS/expressions.git
[submodule "packages/logicx"]
path = packages/logicx
url = [email protected]:Obsidian-OS/logicx
2 changes: 1 addition & 1 deletion builder/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default async function main(argv) {
config.setState({out: new Path(next())});

else if (i === '-b' || i === '--build')
config.setState({components: await import(next()).then(components => components.default)});
config.setState({components: await import(url.pathToFileURL(await fs.realpath(next()))).then(components => components.default)});

else
config.setState(prev => ({selected: [...prev.selected, i]}));
Expand Down
2 changes: 1 addition & 1 deletion packages/expression
54 changes: 54 additions & 0 deletions packages/logicx/css/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.logicx-root, .logicx-root * {
--toolbar-width: auto;
--toolbar-height: auto;
}

.logicx-root {
display: grid;

grid-template-rows: var(--toolbar-height) 1fr var(--toolbar-height);
grid-template-columns: var(--toolbar-width) 1fr var(--toolbar-width);

grid-template-areas:
"top top top"
"left viewport right"
"left bottom right";

width: 100%;
height: 100%;
}

.logicx-viewport {
grid-area: viewport;
}

.logicx-toolbar {
display: flex;

align-items: center;
justify-content: flex-start;
}

.logicx-toolbar.vertical {
flex-direction: column;
}

.logicx-toolbar.horizontal {
flex-direction: row;
}

.logicx-toolbar.left {
grid-area: left
}

.logicx-toolbar.right {
grid-area: right
}

.logicx-toolbar.top {
grid-area: top
}

.logicx-toolbar.bottom {
grid-area: bottom
}

0 comments on commit 2cfbfbb

Please sign in to comment.