refactor: Move fetch_data module under src/utils/
This commit is contained in:
Родитель
9c8b585766
Коммит
1cc809b2c9
|
@ -1,7 +1,7 @@
|
|||
import React, { Component } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import * as FetchAPI from '../fetch_data';
|
||||
import * as FetchAPI from '../utils/fetch_data';
|
||||
import hash from '../utils/hash';
|
||||
import { DiffMeta, CoverageMeta } from './diffviewermeta';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
|
||||
import * as FetchAPI from '../fetch_data';
|
||||
import * as FetchAPI from '../utils/fetch_data';
|
||||
|
||||
export const DiffMeta = ({ changeset }) => {
|
||||
const hgRev = `${FetchAPI.hgHost}/mozilla-central/rev/${changeset}`;
|
||||
|
|
|
@ -2,7 +2,9 @@ import { Link } from 'react-router-dom';
|
|||
import React, { Component } from 'react';
|
||||
import ReactInterval from 'react-interval';
|
||||
|
||||
import * as FetchAPI from '../fetch_data';
|
||||
// XXX: Create module that fetches ccov data + diff data
|
||||
import { coverageSummaryText } from './diffviewermeta';
|
||||
import * as FetchAPI from '../utils/fetch_data';
|
||||
|
||||
const PENDING = 'Pending';
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче