Fixes For the Demo (#190)

This commit is contained in:
Sylvie Crowe
2024-07-31 23:50:38 -07:00
committed by GitHub
parent 75c274c104
commit c5707de2fd
5 changed files with 7 additions and 28 deletions
+6 -1
View File
@@ -94,6 +94,9 @@
align-items: center;
gap: 8px;
color: var(--main-text-color);
flex: 1 1 auto;
overflow-x: hidden;
min-width: 0;
.block-frame-view-icon {
font-size: var(--header-icon-size);
@@ -122,7 +125,9 @@
.block-frame-textelems-wrapper {
display: flex;
flex-grow: 1;
flex: 1 100 auto;
overflow-x: hidden;
min-width: 0;
gap: 8px;
height: 20px;
align-items: center;
-2
View File
@@ -6,8 +6,6 @@ import { Markdown } from "../element/markdown";
import "./helpview.less";
const helpText = `
# Help
## Blocks
Every individual Component is contained in its own block. These can be added, removed, moved and resized. Each block has its own header which can be right clicked to reveal more operations you can do with that block.
-3
View File
@@ -99,9 +99,6 @@ const Widgets = React.memo(() => {
{!util.isBlank(data.label) ? <div className="widget-label">{data.label}</div> : null}
</div>
))}
<div className="widget no-hover">
<i className="fa fa-solid fa-plus fa-fw" />
</div>
</div>
);
});
+1 -2
View File
@@ -147,8 +147,7 @@ func (cs *ClientService) BootstrapStarterLayout(ctx context.Context) error {
}},
{IndexArr: []int{2}, BlockDef: &wstore.BlockDef{
Meta: wstore.MetaMapType{
wstore.MetaKey_View: "term",
wstore.MetaKey_Controller: "shell",
wstore.MetaKey_View: "help",
},
}},
{IndexArr: []int{2, 1}, BlockDef: &wstore.BlockDef{
-20
View File
@@ -7,7 +7,6 @@ import (
"os/user"
"path/filepath"
"github.com/wavetermdev/thenextwave/pkg/wavebase"
"github.com/wavetermdev/thenextwave/pkg/waveobj"
"github.com/wavetermdev/thenextwave/pkg/wstore"
)
@@ -266,25 +265,6 @@ func applyDefaultSettings(settings *SettingsConfigType) {
}
}
defaultWidgets := []WidgetsConfigType{
{
Icon: "files",
Label: "files",
BlockDef: wstore.BlockDef{
Meta: map[string]any{
wstore.MetaKey_View: "preview",
wstore.MetaKey_File: wavebase.GetHomeDir(),
},
},
},
{
Icon: "chart-simple",
Label: "chart",
BlockDef: wstore.BlockDef{
Meta: map[string]any{
wstore.MetaKey_View: "plot",
},
},
},
{
Icon: "globe",
Label: "web",