mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chaore: reset package-lock
Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
parent
2b737c1bda
commit
6997923f31
28481
package-lock.json
generated
28481
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import { createBrowserHistory } from "history";
|
|
||||||
import type { History } from "history";
|
|
||||||
|
|
||||||
const historyInjectable = getInjectable({
|
|
||||||
id: "history",
|
|
||||||
instantiate: (): History => createBrowserHistory(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export default historyInjectable;
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import observableHistoryInjectable from "./observable-history.injectable";
|
|
||||||
|
|
||||||
export * from "./observable-history.injectable";
|
|
||||||
|
|
||||||
export default observableHistoryInjectable;
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import { createObservableHistory } from "mobx-observable-history";
|
|
||||||
import { searchParamsOptions } from "./search-params";
|
|
||||||
import historyInjectable from "./history.injectable";
|
|
||||||
|
|
||||||
const observableHistoryInjectable = getInjectable({
|
|
||||||
id: "observable-history",
|
|
||||||
|
|
||||||
instantiate: (di) => {
|
|
||||||
const history = di.inject(historyInjectable);
|
|
||||||
const navigation = createObservableHistory(history, {
|
|
||||||
searchParams: searchParamsOptions,
|
|
||||||
});
|
|
||||||
|
|
||||||
return navigation;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default observableHistoryInjectable;
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import type { ObservableSearchParamsOptions } from "mobx-observable-history";
|
|
||||||
|
|
||||||
export const searchParamsOptions: ObservableSearchParamsOptions = {
|
|
||||||
skipEmpty: true, // skip empty params, e.g. "?x=&y2=" will be "?y=2"
|
|
||||||
joinArrays: false, // join multiple params with same name, e.g. "?x=1&x=2" => "?x=1,2"
|
|
||||||
joinArraysWith: ",", // param values splitter, applicable only with {joinArrays:true}
|
|
||||||
};
|
|
||||||
Loading…
Reference in New Issue
Block a user