Skip to content

Commit

Permalink
chore: Renames files to remove unnecessary prefixes
Browse files Browse the repository at this point in the history
Fixes #140 .6
  • Loading branch information
phantomjinx committed Jul 14, 2023
1 parent 6b554cf commit e5bafac
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 19 deletions.
6 changes: 3 additions & 3 deletions packages/kubernetes-api/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ILogger, Logger } from '@hawtio/react'
import EventEmitter from 'eventemitter3'
import URI from 'urijs'
import { K8S_EXT_PREFIX, kubernetesAPI } from './kubernetes-api-globals'
import { equals, fullName, getApiVersion, getErrorObject, getKind, getName, getNamespace, masterApiUrl, namespaced, prefixForKind, toCollectionName, toKindName, wsUrl } from './kubernetes-api-helpers'
import { Collection, K8SOptions, WatchActions, WatchTypes } from './kubernetes-api-model'
import { K8S_EXT_PREFIX, kubernetesAPI } from './globals'
import { equals, fullName, getApiVersion, getErrorObject, getKind, getName, getNamespace, masterApiUrl, namespaced, prefixForKind, toCollectionName, toKindName, wsUrl } from './helpers'
import { Collection, K8SOptions, WatchActions, WatchTypes } from './model'
import { cloneObject, isObject } from './utils/objects'
import { isString } from './utils/strings'
import { debounce } from './utils/timer'
Expand Down
3 changes: 0 additions & 3 deletions packages/kubernetes-api/src/eventemitter.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Logger } from '@hawtio/react'
import { KubernetesConfig, OpenShiftOAuthConfig } from './kubernetes-api-model'
import { KubernetesConfig, OpenShiftOAuthConfig } from './model'

export const pluginName = 'KubernetesAPI'
export const log = Logger.get('hawtio-k8s-api')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as helpers from './kubernetes-api-helpers'
import { WatchTypes } from './kubernetes-api-model'
import { OS_PREFIX, OS_API_VERSION, K8S_PREFIX, K8S_API_VERSION, K8S_EXT_PREFIX, K8S_EXT_VERSION } from './kubernetes-api-globals'
import * as helpers from './helpers'
import { WatchTypes } from './model'
import { OS_PREFIX, OS_API_VERSION, K8S_PREFIX, K8S_API_VERSION, K8S_EXT_PREFIX, K8S_EXT_VERSION } from './globals'
import fs from 'fs'
import path from 'path'
import { isObject } from './utils/objects'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { WatchTypes, NamespacedTypes, ExtensionTypes, KindTypes } from './kubernetes-api-model'
import { K8S_PREFIX, K8S_API_VERSION, K8S_EXT_PREFIX, K8S_EXT_VERSION, OS_PREFIX, OS_API_VERSION, kubernetesAPI } from './kubernetes-api-globals'
import { WatchTypes, NamespacedTypes, ExtensionTypes, KindTypes } from './model'
import { K8S_PREFIX, K8S_API_VERSION, K8S_EXT_PREFIX, K8S_EXT_VERSION, OS_PREFIX, OS_API_VERSION, kubernetesAPI } from './globals'
import URI from 'urijs'
import { joinPaths } from './utils/urls'
import { isObject, pathGetString, pathGetObject } from './utils/objects'
Expand Down
4 changes: 2 additions & 2 deletions packages/kubernetes-api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HawtioPlugin, configManager } from '@hawtio/react'
import { kubernetesAPIInit } from './kubernetes-api-init'
import { kubernetesAPIInit } from './init'

export const registerKubernetesAPI: HawtioPlugin = () => {

Expand All @@ -9,4 +9,4 @@ export const registerKubernetesAPI: HawtioPlugin = () => {
kubernetesAPIInit()
}

export * from './kubernetes-api-globals'
export * from './globals'
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as initFn from './kubernetes-api-init'
import * as initFn from './init'
import path from 'path'
import { pathGet } from './utils/objects'
import { KubernetesConfig, OpenShiftOAuthConfig } from './kubernetes-api-model'
import { kubernetesAPI } from './kubernetes-api-globals'
import { KubernetesConfig, OpenShiftOAuthConfig } from './model'
import { kubernetesAPI } from './globals'
import { hawtio } from '@hawtio/react'

function defaultMockFetch() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { HawtioPlugin, hawtio, configManager, jolokiaService } from '@hawtio/react'
import URI from 'urijs'
import { pollingOnly } from './client'
import { kubernetesAPI, log } from './kubernetes-api-globals'
import { KeyCloakAuthConfig, KubernetesConfig, WatchTypes } from './kubernetes-api-model'
import { kubernetesAPI, log } from './globals'
import { KeyCloakAuthConfig, KubernetesConfig, WatchTypes } from './model'
import { isBlank, isString } from './utils/strings'

declare global {
Expand Down
File renamed without changes.

0 comments on commit e5bafac

Please sign in to comment.