Skip to content

Commit cfe4a4c

Browse files
committed
[plugins/random] minor cleanup
1 parent de0c04f commit cfe4a4c

File tree

4 files changed

+22
-43
lines changed

4 files changed

+22
-43
lines changed

plugins/random/package-lock.json

Lines changed: 8 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/random/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngageoint/mage.random",
3-
"version": "1.0.1",
3+
"version": "1.0.0",
44
"description": "Feed plugin that returns random geojson points",
55
"main": "lib/index.js",
66
"files": [
@@ -38,8 +38,7 @@
3838
},
3939
"homepage": "https://github.com/ngageoint/mage-server#readme",
4040
"dependencies": {
41-
"@types/geojson": "^7946.0.7",
42-
"axios": "^0.19.2"
41+
"@types/geojson": "^7946.0.7"
4342
},
4443
"peerDependencies": {
4544
"@ngageoint/mage.service": "^6.2.0"

plugins/random/src/random.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ export class RandomServiceType implements FeedServiceType {
1212

1313
readonly id: FeedServiceTypeId = FeedServiceTypeUnregistered
1414
readonly pluginServiceTypeId: string = RandomServiceType.SERVICE_TYPE_ID
15-
readonly title: string = 'Feed Random'
16-
readonly summary: string = 'Feed the returns features with random geo points'
17-
readonly configSchema: JSONSchema4 = {
18-
type: 'string',
19-
title: 'URL',
20-
description: "Service which returns random GeoJSON points",
21-
default: 'https://msi.gs.mil/'
22-
}
15+
readonly title: string = 'Random Points'
16+
readonly summary: string = 'Feed that returns features with random GeoJSON points'
17+
readonly configSchema: JSONSchema4 = {}
2318

2419
async validateServiceConfig(config: Json): Promise<null | InvalidServiceConfigError> {
2520
if (typeof config !== 'string') {

plugins/random/src/topics/random.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@ export const topicDescriptor: FeedTopic = {
5050
format: "date"
5151
}
5252
}
53+
},
54+
localization: {
55+
es: {
56+
properties: {
57+
title: { title: 'Título'},
58+
summary: { title: 'Descripción' },
59+
timestamp: { title: 'Marca de tiempo' }
60+
}
61+
}
5362
}
5463
}
5564

0 commit comments

Comments
 (0)