From 0d4bc7f1a9cbca73b7a487ff075ae276019a691f Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 18 Sep 2024 09:14:31 +0300 Subject: [PATCH] lib: Rename "path" to "cockpit-path" To make it clear that this is our module. --- pkg/lib/{path.ts => cockpit-path.ts} | 0 pkg/lib/test-path.ts | 2 +- pkg/sosreport/sosreport.jsx | 2 +- pkg/storaged/btrfs/subvolume.jsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename pkg/lib/{path.ts => cockpit-path.ts} (100%) diff --git a/pkg/lib/path.ts b/pkg/lib/cockpit-path.ts similarity index 100% rename from pkg/lib/path.ts rename to pkg/lib/cockpit-path.ts diff --git a/pkg/lib/test-path.ts b/pkg/lib/test-path.ts index afc6e0d72db..26a5a5ebdcc 100644 --- a/pkg/lib/test-path.ts +++ b/pkg/lib/test-path.ts @@ -17,7 +17,7 @@ * along with Cockpit; If not, see . */ -import { dirname, basename } from "./path"; +import { dirname, basename } from "./cockpit-path"; import QUnit from "qunit-tests"; QUnit.test("dirname", function (assert) { diff --git a/pkg/sosreport/sosreport.jsx b/pkg/sosreport/sosreport.jsx index 044e7051357..5c12d8b229e 100644 --- a/pkg/sosreport/sosreport.jsx +++ b/pkg/sosreport/sosreport.jsx @@ -40,7 +40,7 @@ import { EyeIcon, EyeSlashIcon } from '@patternfly/react-icons'; import { EmptyStatePanel } from "cockpit-components-empty-state.jsx"; import { ListingTable } from "cockpit-components-table.jsx"; -import { basename as path_basename } from "path"; +import { basename as path_basename } from "cockpit-path"; import cockpit from "cockpit"; import { superuser } from "superuser"; diff --git a/pkg/storaged/btrfs/subvolume.jsx b/pkg/storaged/btrfs/subvolume.jsx index b373732626b..3940140e986 100644 --- a/pkg/storaged/btrfs/subvolume.jsx +++ b/pkg/storaged/btrfs/subvolume.jsx @@ -24,7 +24,7 @@ import { Button } from "@patternfly/react-core/dist/esm/components/Button/index. import { Card, CardBody, CardHeader, CardTitle } from "@patternfly/react-core/dist/esm/components/Card/index.js"; import { DescriptionList } from "@patternfly/react-core/dist/esm/components/DescriptionList/index.js"; -import { dirname } from "path"; +import { dirname } from "cockpit-path"; import { PageTable, StorageCard, StorageDescription, ChildrenTable,