Skip to content

Commit 4bada1a

Browse files
committed
rename ott-vis packages to have more consistent names
1 parent e2c84ca commit 4bada1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+244
-241
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
runs-on: ubuntu-latest
110110
strategy:
111111
matrix:
112-
package: [ott-vis, ott-vis-datasource]
112+
package: [ott-vis-panel, ott-vis-datasource]
113113
steps:
114114
- uses: actions/checkout@v4
115115
- name: Setup Node.js environment

packages/ott-vis-common/package.json

-24
This file was deleted.

packages/ott-vis-common/tsconfig.json

-11
This file was deleted.

packages/ott-vis-datasource/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@grafana/runtime": "10.0.3",
6666
"@grafana/ui": "10.0.3",
6767
"@grafana/schema": "10.0.3",
68-
"ott-vis-common": "*",
68+
"ott-vis": "*",
6969
"react": "18.2.0",
7070
"react-dom": "18.2.0",
7171
"rxjs": "7.8.0",

packages/ott-vis-datasource/src/datasource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99

1010
import { MyQuery, MyDataSourceOptions } from "./types";
1111
import { getBackendSrv } from "@grafana/runtime";
12-
import type { SystemState } from "ott-vis-common";
12+
import type { SystemState } from "ott-vis";
1313
import { lastValueFrom } from "rxjs";
1414

1515
export class DataSource extends DataSourceApi<MyQuery, MyDataSourceOptions> {
File renamed without changes.

packages/ott-vis-common/.eslintrc renamed to packages/ott-vis-panel/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../.eslintrc.json",
2+
"extends": "./.config/.eslintrc",
33
"rules": {
44
"camelcase": ["error", { "properties": "never" }]
55
}
File renamed without changes.

packages/ott-vis-panel/README.md

+107
File renamed without changes.
File renamed without changes.

packages/ott-vis-panel/package.json

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"name": "ott-vis-panel",
3+
"version": "0.10.0",
4+
"description": "",
5+
"author": "Ott",
6+
"license": "AGPL-3.0-or-later",
7+
"engines": {
8+
"node": ">=18"
9+
},
10+
"scripts": {
11+
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",
12+
"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
13+
"test": "jest --passWithNoTests --maxWorkers 4 --coverage",
14+
"typecheck": "tsc --noEmit",
15+
"lint": "prettier --write --config ../../.prettierrc . && tsc --noEmit && eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx . --fix",
16+
"lint-ci": "prettier --check --config ../../.prettierrc . && tsc --noEmit && eslint --cache --ignore-path ./.gitignore --ext .js,.jsx,.ts,.tsx .",
17+
"e2e": "npm exec cypress install && npm exec grafana-e2e run",
18+
"e2e:update": "npm exec cypress install && npm exec grafana-e2e run --update-screenshots",
19+
"server": "docker-compose up --build",
20+
"sign": "npx --yes @grafana/sign-plugin@latest"
21+
},
22+
"devDependencies": {
23+
"@babel/core": "^7.21.4",
24+
"@grafana/e2e": "10.0.3",
25+
"@grafana/e2e-selectors": "10.0.3",
26+
"@grafana/eslint-config": "^6.0.0",
27+
"@grafana/tsconfig": "^1.2.0-rc1",
28+
"@swc/core": "^1.3.90",
29+
"@swc/helpers": "^0.5.0",
30+
"@swc/jest": "^0.2.26",
31+
"@testing-library/jest-dom": "6.1.4",
32+
"@testing-library/react": "14.0.0",
33+
"@types/jest": "^29.5.0",
34+
"@types/lodash": "^4.14.194",
35+
"@types/node": "^20.8.7",
36+
"@types/testing-library__jest-dom": "5.14.8",
37+
"@types/d3": "7.4.3",
38+
"copy-webpack-plugin": "^11.0.0",
39+
"css-loader": "^6.7.3",
40+
"d3": "7.8.5",
41+
"eslint": "^8.57.0",
42+
"eslint-plugin-deprecation": "^2.0.0",
43+
"eslint-plugin-jsdoc": "^48.0.2",
44+
"eslint-plugin-react": "^7.33.2",
45+
"eslint-plugin-react-hooks": "^4.6.0",
46+
"eslint-webpack-plugin": "^4.0.1",
47+
"fork-ts-checker-webpack-plugin": "^8.0.0",
48+
"glob": "^10.2.7",
49+
"identity-obj-proxy": "3.0.0",
50+
"jest": "^29.5.0",
51+
"jest-environment-jsdom": "^29.5.0",
52+
"prettier": "^2.8.7",
53+
"replace-in-file-webpack-plugin": "^1.0.6",
54+
"sass": "1.63.2",
55+
"sass-loader": "13.3.1",
56+
"style-loader": "3.3.3",
57+
"swc-loader": "^0.2.3",
58+
"ts-node": "^10.9.1",
59+
"tsconfig-paths": "^4.2.0",
60+
"typescript": "4.8.4",
61+
"webpack": "^5.86.0",
62+
"webpack-cli": "^5.1.4",
63+
"webpack-livereload-plugin": "^3.0.2"
64+
},
65+
"dependencies": {
66+
"@emotion/css": "11.10.6",
67+
"@grafana/data": "10.0.3",
68+
"@grafana/runtime": "10.0.3",
69+
"@grafana/ui": "10.0.3",
70+
"@grafana/schema": "10.0.3",
71+
"ott-vis": "*",
72+
"react": "18.2.0",
73+
"react-dom": "18.2.0",
74+
"tslib": "2.5.3"
75+
}
76+
}

packages/ott-vis-common/provisioning/dashboards/dashboard.json renamed to packages/ott-vis-panel/provisioning/dashboards/dashboard.json

+11-9
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"panels": [
2424
{
2525
"datasource": {
26-
"type": "ott-vis-datasource",
27-
"uid": "P8AFEECD30EDC727B"
26+
"type": "grafana",
27+
"uid": "grafana"
2828
},
2929
"gridPos": {
3030
"h": 8,
@@ -42,9 +42,10 @@
4242
"targets": [
4343
{
4444
"datasource": {
45-
"type": "ott-vis-datasource",
46-
"uid": "P8AFEECD30EDC727B"
45+
"type": "datasource",
46+
"uid": "grafana"
4747
},
48+
"queryType": "randomWalk",
4849
"refId": "A"
4950
}
5051
],
@@ -53,8 +54,8 @@
5354
},
5455
{
5556
"datasource": {
56-
"type": "ott-vis-datasource",
57-
"uid": "P8AFEECD30EDC727B"
57+
"type": "grafana",
58+
"uid": "grafana"
5859
},
5960
"gridPos": {
6061
"h": 8,
@@ -72,9 +73,10 @@
7273
"targets": [
7374
{
7475
"datasource": {
75-
"type": "ott-vis-datasource",
76-
"uid": "P8AFEECD30EDC727B"
76+
"type": "datasource",
77+
"uid": "grafana"
7778
},
79+
"queryType": "randomWalk",
7880
"refId": "A"
7981
}
8082
],
@@ -354,7 +356,7 @@
354356
"list": []
355357
},
356358
"time": {
357-
"from": "now-5m",
359+
"from": "now-6h",
358360
"to": "now"
359361
},
360362
"timepicker": {},

packages/ott-vis/src/aggregate.spec.ts renamed to packages/ott-vis-panel/src/aggregate.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SystemState } from "ott-vis-common";
1+
import type { SystemState } from "ott-vis";
22
import { aggMonolithRooms, countRoomClients, groupMonolithsByRegion } from "./aggregate";
33

44
const sampleSystemState: SystemState = [

packages/ott-vis/src/aggregate.ts renamed to packages/ott-vis-panel/src/aggregate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SystemState } from "ott-vis-common";
1+
import type { SystemState } from "ott-vis";
22

33
/**
44
* Builds a map of room names to the number of clients in each room from the room state.

packages/ott-vis/src/components/CorePanel.tsx renamed to packages/ott-vis-panel/src/components/CorePanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import { PanelProps } from "@grafana/data";
33
import type { CoreOptions } from "types";
4-
import type { SystemState } from "ott-vis-common";
4+
import type { SystemState } from "ott-vis";
55
import { css, cx } from "@emotion/css";
66
import { useStyles2 } from "@grafana/ui";
77
import GlobalView from "./views/GlobalView";

packages/ott-vis/src/components/views/GlobalView.tsx renamed to packages/ott-vis-panel/src/components/views/GlobalView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import ForceGraph, { Link, Node } from "components/ForceGraph";
3-
import type { SystemState } from "ott-vis-common";
3+
import type { SystemState } from "ott-vis";
44
import { aggMonolithRooms, countRoomClients } from "aggregate";
55

66
interface Props {

packages/ott-vis/src/components/views/RegionView.tsx renamed to packages/ott-vis-panel/src/components/views/RegionView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import ForceGraph, { Link, Node } from "components/ForceGraph";
3-
import type { SystemState } from "ott-vis-common";
3+
import type { SystemState } from "ott-vis";
44
import { aggMonolithRooms, countRoomClients, groupMonolithsByRegion } from "aggregate";
55
import _ from "lodash";
66

File renamed without changes.
File renamed without changes.

packages/ott-vis-panel/tsconfig.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./.config/tsconfig.json",
3+
"compilerOptions": {
4+
"strict": true,
5+
"typeRoots": ["../../node_modules/@types"],
6+
"esModuleInterop": true,
7+
"jsx": "react"
8+
}
9+
}

packages/ott-vis/.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./.config/.eslintrc",
2+
"extends": "../../.eslintrc.json",
33
"rules": {
44
"camelcase": ["error", { "properties": "never" }]
55
}
File renamed without changes.

0 commit comments

Comments
 (0)