Skip to content

Commit

Permalink
Working on the Topology interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Baudin999 committed Dec 23, 2019
1 parent 3c439ca commit cf06607
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 26 deletions.
5 changes: 3 additions & 2 deletions CLI/wwwroot/build/bundle.css

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

12 changes: 7 additions & 5 deletions CLI/wwwroot/build/bundle.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CLI/wwwroot/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CLI/wwwroot/build/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CLI/wwwroot/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body {
}

h1.title {
color: #350c1c;
color: #ff3e00;
text-transform: uppercase;
font-size: 3em;
font-weight: 100;
Expand Down
Binary file added CLI/wwwroot/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 11 additions & 8 deletions Mapper.Application/DescriptionMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@ public override IEnumerable<Descriptor> VisitASTType(ASTType astType) {

foreach (var field in astType.Fields)
{
yield return new Descriptor(field.Name)
if (field.Module == ModuleName)
{
Module = ModuleName,
Name = field.Name,
Description = MapAnnotations(field.Annotations),
Parent = astType.Name,
Type = MapTypes(field.Types),
DescriptorType = DescriptorType.Field.ToString("g")
};
yield return new Descriptor(field.Name)
{
Module = ModuleName,
Name = field.Name,
Description = MapAnnotations(field.Annotations),
Parent = astType.Name,
Type = MapTypes(field.Types),
DescriptorType = DescriptorType.Field.ToString("g")
};
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions web/src/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@
theme: "carlangTheme",
scrollBeyondLastLine: false,
roundedSelection: true,
wordWrapColumn: 120,
wordWrap: "on",
minimap: {
enabled: false
}
Expand Down
23 changes: 16 additions & 7 deletions web/src/Home.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,26 @@
overflow: auto;
height: 400px;
}
.logo {
/*position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
max-height: 100%;
background-image: url("/logo.jpg");
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
opacity: 0.6;
z-index: -2; */
}
</style>

<div class="logo" />
<div class="content--center">
<h1 class="title">Welcome to ZDragon!</h1>
<p>
Visit
<a href="https://zdragon.nl" target="_blank" rel="noopener noreferrer">
ZDragon.nl
</a>
to learn more about zdragon!
</p>

<div>
<h2>Search your models:</h2>
Expand Down
4 changes: 3 additions & 1 deletion web/src/ModuleTopology.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
let [n, ...rest] = params.nodes;
let node = topology.nodes.find(node => node.id === n);
if (node && node.module) {
navigator.preview(node.module);
navigator.edit(node.module);
} else {
// change the node color
}
});
};
Expand Down
1 change: 1 addition & 0 deletions web/src/SearchResult.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
margin-bottom: 1rem;
margin-left: 50%;
transform: translateX(-50%);
background: white;
}
.descriptor:hover {
cursor: pointer;
Expand Down

0 comments on commit cf06607

Please sign in to comment.