From 7d6fa6d90327c75c66c782c18af9392802480d34 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Wed, 3 Mar 2021 20:12:41 +0000 Subject: [PATCH] Renamed items to osd-analytics Signed-off-by: Kawika Avilla --- packages/{kbn-analytics => osd-analytics}/babel.config.js | 6 +++--- packages/{kbn-analytics => osd-analytics}/package.json | 8 ++++---- .../{kbn-analytics => osd-analytics}/scripts/build.js | 4 ++-- packages/{kbn-analytics => osd-analytics}/src/index.ts | 0 .../src/metrics/application_usage.ts | 0 .../{kbn-analytics => osd-analytics}/src/metrics/index.ts | 0 .../{kbn-analytics => osd-analytics}/src/metrics/stats.ts | 0 .../src/metrics/ui_stats.ts | 0 .../src/metrics/user_agent.ts | 0 packages/{kbn-analytics => osd-analytics}/src/report.ts | 0 packages/{kbn-analytics => osd-analytics}/src/reporter.ts | 2 +- packages/{kbn-analytics => osd-analytics}/src/storage.ts | 0 packages/{kbn-analytics => osd-analytics}/src/util.ts | 0 packages/{kbn-analytics => osd-analytics}/tsconfig.json | 0 14 files changed, 10 insertions(+), 10 deletions(-) rename packages/{kbn-analytics => osd-analytics}/babel.config.js (80%) rename packages/{kbn-analytics => osd-analytics}/package.json (76%) rename packages/{kbn-analytics => osd-analytics}/scripts/build.js (95%) rename packages/{kbn-analytics => osd-analytics}/src/index.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/metrics/application_usage.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/metrics/index.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/metrics/stats.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/metrics/ui_stats.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/metrics/user_agent.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/report.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/reporter.ts (99%) rename packages/{kbn-analytics => osd-analytics}/src/storage.ts (100%) rename packages/{kbn-analytics => osd-analytics}/src/util.ts (100%) rename packages/{kbn-analytics => osd-analytics}/tsconfig.json (100%) diff --git a/packages/kbn-analytics/babel.config.js b/packages/osd-analytics/babel.config.js similarity index 80% rename from packages/kbn-analytics/babel.config.js rename to packages/osd-analytics/babel.config.js index 397a9a03a4f7..d2107a259087 100644 --- a/packages/kbn-analytics/babel.config.js +++ b/packages/osd-analytics/babel.config.js @@ -17,15 +17,15 @@ * under the License. */ -// We can't use common Kibana presets here because of babel versions incompatibility +// We can't use common OpenSearch Dashboards presets here because of babel versions incompatibility module.exports = { plugins: ['@babel/plugin-proposal-class-properties'], env: { web: { - presets: ['@kbn/babel-preset/webpack_preset'], + presets: ['@osd/babel-preset/webpack_preset'], }, node: { - presets: ['@kbn/babel-preset/node_preset'], + presets: ['@osd/babel-preset/node_preset'], }, }, ignore: ['**/*.test.ts', '**/*.test.tsx'], diff --git a/packages/kbn-analytics/package.json b/packages/osd-analytics/package.json similarity index 76% rename from packages/kbn-analytics/package.json rename to packages/osd-analytics/package.json index b04b5b32d074..89e0877ea17b 100644 --- a/packages/kbn-analytics/package.json +++ b/packages/osd-analytics/package.json @@ -1,8 +1,8 @@ { - "name": "@kbn/analytics", + "name": "@osd/analytics", "private": true, "version": "1.0.0", - "description": "Kibana Analytics tool", + "description": "OpenSearch Dashboards Analytics tool", "main": "target/node/index.js", "browser": "target/web/index.js", "types": "target/types/index.d.ts", @@ -15,8 +15,8 @@ }, "devDependencies": { "@babel/cli": "^7.10.5", - "@kbn/dev-utils": "1.0.0", - "@kbn/babel-preset": "1.0.0", + "@osd/dev-utils": "1.0.0", + "@osd/babel-preset": "1.0.0", "typescript": "4.0.2" } } diff --git a/packages/kbn-analytics/scripts/build.js b/packages/osd-analytics/scripts/build.js similarity index 95% rename from packages/kbn-analytics/scripts/build.js rename to packages/osd-analytics/scripts/build.js index 65070161107c..20ec29b707fa 100644 --- a/packages/kbn-analytics/scripts/build.js +++ b/packages/osd-analytics/scripts/build.js @@ -21,7 +21,7 @@ const { resolve } = require('path'); const del = require('del'); const supportsColor = require('supports-color'); -const { run, withProcRunner } = require('@kbn/dev-utils'); +const { run, withProcRunner } = require('@osd/dev-utils'); const ROOT_DIR = resolve(__dirname, '..'); const BUILD_DIR = resolve(ROOT_DIR, 'target'); @@ -82,7 +82,7 @@ run( }); }, { - description: 'Simple build tool for @kbn/analytics package', + description: 'Simple build tool for @osd/analytics package', flags: { boolean: ['watch', 'source-maps'], help: ` diff --git a/packages/kbn-analytics/src/index.ts b/packages/osd-analytics/src/index.ts similarity index 100% rename from packages/kbn-analytics/src/index.ts rename to packages/osd-analytics/src/index.ts diff --git a/packages/kbn-analytics/src/metrics/application_usage.ts b/packages/osd-analytics/src/metrics/application_usage.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/application_usage.ts rename to packages/osd-analytics/src/metrics/application_usage.ts diff --git a/packages/kbn-analytics/src/metrics/index.ts b/packages/osd-analytics/src/metrics/index.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/index.ts rename to packages/osd-analytics/src/metrics/index.ts diff --git a/packages/kbn-analytics/src/metrics/stats.ts b/packages/osd-analytics/src/metrics/stats.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/stats.ts rename to packages/osd-analytics/src/metrics/stats.ts diff --git a/packages/kbn-analytics/src/metrics/ui_stats.ts b/packages/osd-analytics/src/metrics/ui_stats.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/ui_stats.ts rename to packages/osd-analytics/src/metrics/ui_stats.ts diff --git a/packages/kbn-analytics/src/metrics/user_agent.ts b/packages/osd-analytics/src/metrics/user_agent.ts similarity index 100% rename from packages/kbn-analytics/src/metrics/user_agent.ts rename to packages/osd-analytics/src/metrics/user_agent.ts diff --git a/packages/kbn-analytics/src/report.ts b/packages/osd-analytics/src/report.ts similarity index 100% rename from packages/kbn-analytics/src/report.ts rename to packages/osd-analytics/src/report.ts diff --git a/packages/kbn-analytics/src/reporter.ts b/packages/osd-analytics/src/reporter.ts similarity index 99% rename from packages/kbn-analytics/src/reporter.ts rename to packages/osd-analytics/src/reporter.ts index 3c1da5d0be31..ff449cbeec7d 100644 --- a/packages/kbn-analytics/src/reporter.ts +++ b/packages/osd-analytics/src/reporter.ts @@ -86,7 +86,7 @@ export class Reporter { window.addEventListener('beforeunload', () => this.reportApplicationUsage()); // Monitoring dashboards might be open in background and we are fine with that - // but we don't want to report hours if the user goes to another tab and Kibana is not shown + // but we don't want to report hours if the user goes to another tab and OpenSearch Dashboards is not shown document.addEventListener('visibilitychange', () => { if (document.visibilityState === 'visible' && this.lastAppId) { this.reportApplicationUsage(this.lastAppId); diff --git a/packages/kbn-analytics/src/storage.ts b/packages/osd-analytics/src/storage.ts similarity index 100% rename from packages/kbn-analytics/src/storage.ts rename to packages/osd-analytics/src/storage.ts diff --git a/packages/kbn-analytics/src/util.ts b/packages/osd-analytics/src/util.ts similarity index 100% rename from packages/kbn-analytics/src/util.ts rename to packages/osd-analytics/src/util.ts diff --git a/packages/kbn-analytics/tsconfig.json b/packages/osd-analytics/tsconfig.json similarity index 100% rename from packages/kbn-analytics/tsconfig.json rename to packages/osd-analytics/tsconfig.json