Browse Source

pods begin

pull/25/head
Alexey Velikiy 3 years ago
parent
commit
221c0941c7
  1. 3
      client/src/components/Graph.vue
  2. 2
      client/src/components/pods/hastic_pod.ts
  3. 5
      client/src/components/pods/index.ts
  4. 6
      client/src/components/pods/pattern_pod.ts
  5. 0
      client/src/components/pods/threshold_pod.ts
  6. 1
      client/src/types/index.ts

3
client/src/components/Graph.vue

@ -6,7 +6,8 @@
<script lang="ts">
import { defineComponent, watch } from 'vue';
import { HasticPod, TimeRange } from "./hastic_pod";
import { TimeRange } from "@/types";
import { HasticPod } from "./pods/hastic_pod";
import { getMetrics } from '../services/metrics.service';
import { getSegments, postSegment, deleteSegment } from '../services/segments.service';
import { LineTimeSerie } from "@chartwerk/line-pod";

2
client/src/components/hastic_pod/index.ts → client/src/components/pods/hastic_pod.ts

@ -4,8 +4,8 @@ import { BrushOrientation } from "@chartwerk/core";
import { SegmentsSet } from "@/types/segment_set";
import { ANALYTIC_UNIT_COLORS } from "@/types/colors"
import { Segment, SegmentId, SegmentType } from "@/types/segment";
import { TimeRange } from '@/types';
export type TimeRange = { from: number, to: number };
export type UpdateDataCallback = (range: TimeRange) => Promise<{
timeserie: LineTimeSerie[],
segments: Segment[]

5
client/src/components/pods/index.ts

@ -0,0 +1,5 @@
import { HasticPod } from './hastic_pod';
import { PatternPod } from './pattern_pod';
import { AnalyticUnitType } from '@/types/analytic_units';

6
client/src/components/pods/pattern_pod.ts

@ -0,0 +1,6 @@
import { HasticPod } from './hastic_pod';
export class PatternPod extends HasticPod {
}

0
client/src/components/hastic_pod/types.ts → client/src/components/pods/threshold_pod.ts

1
client/src/types/index.ts

@ -0,0 +1 @@
export type TimeRange = { from: number, to: number };
Loading…
Cancel
Save