Skip to content

Commit

Permalink
Replace naming convention to snake-case
Browse files Browse the repository at this point in the history
  • Loading branch information
Machi3mfl committed Dec 14, 2023
1 parent 9737ab2 commit 3784f94
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SearchResponse } from "../../../../../../src/core/server";
import * as FileSaver from '../../../services/file-saver';
import { beautifyDate } from "../../agents/vuls/inventory/lib";
import { SearchParams, search } from "../search_bar/search_bar_service";
import { SearchParams, search } from "../search-bar/search-bar-service";
import { IFieldType, IndexPattern } from "../../../../../../src/plugins/data/common";
export const MAX_ENTRIES_PER_QUERY = 10000;
import { EuiDataGridColumn } from '@elastic/eui';
Expand Down
2 changes: 2 additions & 0 deletions plugins/main/public/components/common/data-grid/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './data-grid-service';
export * from './use-data-grid';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EuiDataGridCellValueElementProps, EuiDataGridColumn, EuiDataGridProps,
import React, { useEffect, useMemo, useState, Fragment } from "react";
import { SearchResponse } from "@opensearch-project/opensearch/api/types";
// ToDo: check how create this methods
import { parseData, getFieldFormatted, parseColumns } from './data_grid_service';
import { parseData, getFieldFormatted, parseColumns } from './data-grid-service';
import { IndexPattern } from '../../../../../../src/plugins/data/common';

const MAX_ENTRIES_PER_QUERY = 10000;
Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/components/common/data_grid/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions plugins/main/public/components/common/doc-viewer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './use-doc-viewer';
export * from './doc-viewer';
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { tDocViewerProps } from "./doc_viewer"
import { tDocViewerProps } from "./doc-viewer"
import { IndexPattern } from "../../../../../../src/plugins/data/common";

type tUseDocViewerInputs = {
Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/components/common/doc_viewer/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions plugins/main/public/components/common/search-bar/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './search-bar-service';
export * from './use-search-bar';
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
TimeRange,
} from '../../../../../../src/plugins/data/public';
// wazuh plugin dependencies
import useSearchBar from './use_search_bar';
import useSearchBar from './use-search-bar';
import { getDataPlugin } from '../../../kibana-services';
import * as timeFilterHook from '../hooks/use-time-filter';
import * as queryManagerHook from '../hooks/use-query';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import {
SearchBarProps,
FilterManager,
Expand Down
2 changes: 0 additions & 2 deletions plugins/main/public/components/common/search_bar/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ import {
import { IntlProvider } from 'react-intl';
import { IndexPattern } from '../../../../../../src/plugins/data/common';
import { SearchResponse } from '../../../../../../src/core/server';
import { useDocViewer } from '../doc_viewer';
import DocViewer from '../doc_viewer/doc_viewer';
import { useDocViewer } from '../doc-viewer';
import DocViewer from '../doc-viewer/doc-viewer';
import { DiscoverNoResults } from '../../overview/vulnerabilities/common/components/no_results';
import { LoadingSpinner } from '../../overview/vulnerabilities/common/components/loading_spinner';
import { useDataGrid, tDataGridColumn, exportSearchToCSV } from '../data_grid';
import { useDataGrid, tDataGridColumn, exportSearchToCSV } from '../data-grid';
import { ErrorHandler, ErrorFactory, HttpError } from '../../../react-services/error-management';
import { withErrorBoundary } from '../hocs';
import { HitsCounter } from '../../../kibana-integrations/discover/application/components/hits_counter';
import { formatNumWithCommas } from '../../../kibana-integrations/discover/application/helpers';
import useSearchBar from '../search_bar/use_search_bar';
import { search } from '../search_bar';
import useSearchBar from '../search-bar/use-search-bar';
import { search } from '../search-bar';
import { getPlugins } from '../../../kibana-services';
import { ViewMode } from '../../../../../../src/plugins/embeddable/public';
import { getDiscoverPanels } from './config/chart';
Expand Down

0 comments on commit 3784f94

Please sign in to comment.