Skip to content

Commit

Permalink
fix logo imports in [github twitter liberapay] (#2817)
Browse files Browse the repository at this point in the history
this was moved in #2796 but we missed updating some of the imports
  • Loading branch information
chris48s authored and paulmelnikow committed Jan 21, 2019
1 parent 26d0495 commit fba8469
Show file tree
Hide file tree
Showing 19 changed files with 34 additions and 64 deletions.
6 changes: 2 additions & 4 deletions services/github/github-commit-activity.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { metric } = require('../../lib/text-formatters')
const {
documentation,
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-commits-since.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLabel: getLabel,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { documentation } = require('./github-helpers')

const keywords = ['GitHub', 'commit']
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-downloads.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { metric } = require('../../lib/text-formatters')
const {
documentation,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-followers.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-forks.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-issue-detail.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const LegacyService = require('../legacy-service')
const {
makeLabel: getLabel,
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { formatDate } = require('../../lib/text-formatters')
const { age: ageColor } = require('../../lib/color-formatters')
const {
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-issues.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { metric } = require('../../lib/text-formatters')
const {
documentation,
Expand Down
2 changes: 1 addition & 1 deletion services/github/github-languages.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const prettyBytes = require('pretty-bytes')
const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
makeLabel: getLabel,
} = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-last-commit.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { formatDate } = require('../../lib/text-formatters')
const { age: ageColor } = require('../../lib/color-formatters')
const {
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-license.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { licenseToColor } = require('../../lib/licenses')
const {
documentation,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-release-date.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

const moment = require('moment')
const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { formatDate } = require('../../lib/text-formatters')
const { age } = require('../../lib/color-formatters')
const { documentation } = require('./github-helpers')
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-release.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { addv: versionText } = require('../../lib/text-formatters')
const {
documentation,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-repo-size.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

const prettyBytes = require('pretty-bytes')
const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-size.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

const prettyBytes = require('pretty-bytes')
const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-stars.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { metric } = require('../../lib/text-formatters')
const {
documentation,
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-tag.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { addv: versionText } = require('../../lib/text-formatters')
const { version: versionColor } = require('../../lib/color-formatters')
const { latest: latestVersion } = require('../../lib/version')
Expand Down
6 changes: 2 additions & 4 deletions services/github/github-watchers.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const {
documentation,
checkErrorResponse: githubCheckErrorResponse,
Expand Down
2 changes: 1 addition & 1 deletion services/liberapay/liberapay.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const LegacyService = require('../legacy-service')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { metric } = require('../../lib/text-formatters')
const { makeLogo: getLogo } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { colorScale } = require('../../lib/color-formatters')

// This legacy service should be rewritten to use e.g. BaseJsonService.
Expand Down
6 changes: 2 additions & 4 deletions services/twitter/twitter.service.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

const LegacyService = require('../legacy-service')
const {
makeBadgeData: getBadgeData,
makeLogo: getLogo,
} = require('../../lib/badge-data')
const { makeBadgeData: getBadgeData } = require('../../lib/badge-data')
const { makeLogo: getLogo } = require('../../lib/logos')
const { metric } = require('../../lib/text-formatters')

// This legacy service should be rewritten to use e.g. BaseJsonService.
Expand Down

0 comments on commit fba8469

Please sign in to comment.