mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Lint: object-curly-spacing (error) (#4198)
This commit is contained in:
1 parent
0759b80435
commit
41863e87ce
89 files changed
+230
-216
No files matched your search
@@ -50,7 +50,7 @@ export function bindProtocolAddRouteHandlers() {
|
||||
.addInternalHandler("/landing", () => {
|
||||
navigate(routes.catalogURL());
|
||||
})
|
||||
.addInternalHandler("/landing/view/:group/:kind", ({ pathname: { group, kind } }) => {
|
||||
.addInternalHandler("/landing/view/:group/:kind", ({ pathname: { group, kind }}) => {
|
||||
navigate(routes.catalogURL({
|
||||
params: {
|
||||
group, kind
|
||||
@@ -60,11 +60,11 @@ export function bindProtocolAddRouteHandlers() {
|
||||
.addInternalHandler("/cluster", () => {
|
||||
navigate(routes.addClusterURL());
|
||||
})
|
||||
.addInternalHandler("/entity/:entityId/settings", ({ pathname: { entityId } }) => {
|
||||
.addInternalHandler("/entity/:entityId/settings", ({ pathname: { entityId }}) => {
|
||||
const entity = catalogEntityRegistry.getById(entityId);
|
||||
|
||||
if (entity) {
|
||||
navigate(routes.entitySettingsURL({ params: { entityId } }));
|
||||
navigate(routes.entitySettingsURL({ params: { entityId }}));
|
||||
} else {
|
||||
Notifications.shortInfo(
|
||||
<p>
|
||||
@@ -74,11 +74,11 @@ export function bindProtocolAddRouteHandlers() {
|
||||
}
|
||||
})
|
||||
// Handlers below are deprecated and only kept for backward compact purposes
|
||||
.addInternalHandler("/cluster/:clusterId", ({ pathname: { clusterId } }) => {
|
||||
.addInternalHandler("/cluster/:clusterId", ({ pathname: { clusterId }}) => {
|
||||
const cluster = ClusterStore.getInstance().getById(clusterId);
|
||||
|
||||
if (cluster) {
|
||||
navigate(routes.clusterViewURL({ params: { clusterId } }));
|
||||
navigate(routes.clusterViewURL({ params: { clusterId }}));
|
||||
} else {
|
||||
Notifications.shortInfo(
|
||||
<p>
|
||||
@@ -87,11 +87,11 @@ export function bindProtocolAddRouteHandlers() {
|
||||
);
|
||||
}
|
||||
})
|
||||
.addInternalHandler("/cluster/:clusterId/settings", ({ pathname: { clusterId } }) => {
|
||||
.addInternalHandler("/cluster/:clusterId/settings", ({ pathname: { clusterId }}) => {
|
||||
const cluster = ClusterStore.getInstance().getById(clusterId);
|
||||
|
||||
if (cluster) {
|
||||
navigate(routes.entitySettingsURL({ params: { entityId: clusterId } }));
|
||||
navigate(routes.entitySettingsURL({ params: { entityId: clusterId }}));
|
||||
} else {
|
||||
Notifications.shortInfo(
|
||||
<p>
|
||||
@@ -103,7 +103,7 @@ export function bindProtocolAddRouteHandlers() {
|
||||
.addInternalHandler("/extensions", () => {
|
||||
navigate(routes.extensionsURL());
|
||||
})
|
||||
.addInternalHandler(`/extensions/install${LensProtocolRouter.ExtensionUrlSchema}`, ({ pathname, search: { version } }) => {
|
||||
.addInternalHandler(`/extensions/install${LensProtocolRouter.ExtensionUrlSchema}`, ({ pathname, search: { version }}) => {
|
||||
const name = [
|
||||
pathname[EXTENSION_PUBLISHER_MATCH],
|
||||
pathname[EXTENSION_NAME_MATCH],
|
||||
|
||||
Reference in new issue
Block a user