mirror of
https://github.com/lensapp/lens.git
synced 2024-09-11 09:25:26 +03:00
feat: LENSOSS-35 - Ability to import yaml files
Signed-off-by: gitstart <bot@gitstart.com>
This commit is contained in:
parent
f1a960fd78
commit
b968a6c59a
3
package-lock.json
generated
3
package-lock.json
generated
@ -34356,6 +34356,7 @@
|
||||
"@k8slens/resource-templates": "^1.0.0-alpha.1",
|
||||
"@k8slens/routing": "^1.0.0-alpha.5",
|
||||
"@k8slens/run-many": "^1.0.0-alpha.1",
|
||||
"@k8slens/spinner": "^1.0.0",
|
||||
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
|
||||
"@k8slens/tooltip": "^1.0.0-alpha.5",
|
||||
"@k8slens/utilities": "^1.0.0-alpha.1",
|
||||
@ -35782,7 +35783,7 @@
|
||||
},
|
||||
"packages/ui-components/spinner": {
|
||||
"name": "@k8slens/spinner",
|
||||
"version": "1.0.0-alpha.0",
|
||||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@k8slens/eslint-config": "^6.5.0",
|
||||
|
@ -290,6 +290,7 @@ exports[`workloads / pods when navigating to workloads / pods view given a names
|
||||
Pods
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<main
|
||||
class=""
|
||||
|
@ -11,6 +11,7 @@ import openPathPickingDialogInjectable from "../../../features/path-picking-dial
|
||||
import addSyncEntriesInjectable from "../../initializers/add-sync-entries.injectable";
|
||||
import { beforeFrameStartsSecondInjectionToken } from "../tokens";
|
||||
|
||||
|
||||
const setupKubernetesClusterCatalogAddMenuListenerInjectable = getInjectable({
|
||||
id: "setup-kubernetes-cluster-catalog-add-menu-listener",
|
||||
instantiate: (di) => ({
|
||||
@ -51,9 +52,14 @@ const setupKubernetesClusterCatalogAddMenuListenerInjectable = getInjectable({
|
||||
message: "Sync file(s)",
|
||||
buttonLabel: "Sync",
|
||||
properties: ["showHiddenFiles", "multiSelections", "openFile"],
|
||||
filters: [
|
||||
{ name: 'Kubeconfig and YAML Files', extensions: ['conf', 'yaml', 'yml'] },
|
||||
{ name: 'All Files', extensions: ['*'] }
|
||||
],
|
||||
onPick: addSyncEntries,
|
||||
}),
|
||||
},
|
||||
|
||||
);
|
||||
} else {
|
||||
ctx.menuItems.push(
|
||||
|
@ -27,4 +27,5 @@ export function jsonValidator(value: string) {
|
||||
export const monacoValidators = {
|
||||
yaml: yamlValidator,
|
||||
json: jsonValidator,
|
||||
|
||||
};
|
||||
|
@ -37,6 +37,9 @@
|
||||
|
||||
&.namespace {
|
||||
flex-grow: 1.2;
|
||||
//Auto Width: Allow the dropdown to expand horizontally to accommodate the text.
|
||||
white-space: nowrap;
|
||||
min-width: min-content;
|
||||
}
|
||||
|
||||
&.cpu {
|
||||
|
@ -9,7 +9,9 @@ import { runInAction } from "mobx";
|
||||
import { showSuccessNotificationInjectable } from "@k8slens/notifications";
|
||||
import userPreferencesStateInjectable from "../../features/user-preferences/common/state.injectable";
|
||||
|
||||
const addSyncEntriesInjectable = getInjectable({
|
||||
const
|
||||
|
||||
addSyncEntriesInjectable = getInjectable({
|
||||
id: "add-sync-entries",
|
||||
|
||||
instantiate: (di) => {
|
||||
|
@ -109,6 +109,10 @@
|
||||
],
|
||||
[
|
||||
"1.27",
|
||||
"1.27.2"
|
||||
"1.27.6"
|
||||
],
|
||||
[
|
||||
"1.28",
|
||||
"1.28.2"
|
||||
]
|
||||
]
|
Loading…
Reference in New Issue
Block a user