Convert more static previews (#2801)

This commit is contained in:
Paul Melnikow
2019-01-17 15:13:31 -05:00
committed by GitHub
parent ab5fee2bfd
commit d927df22c5
6 changed files with 55 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ module.exports = class Pub extends LegacyService {
static get route() {
return {
base: 'pub',
pattern: ':which(v|vpre)/:packageName',
}
}
@@ -29,7 +30,16 @@ module.exports = class Pub extends LegacyService {
return [
{
title: 'Pub',
previewUrl: 'v/box2d',
pattern: 'v/:packageName',
namedParams: {
packageName: 'box2d',
},
staticPreview: {
label: 'pub',
message: 'v0.4.0',
color: 'orange',
},
keywords: ['dart', 'dartlang'],
},
]
}