mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Fixes For the Demo (#190)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
});
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user