Skip to content

Commit

Permalink
Update version JSON to build implicit download URL to reduce human co…
Browse files Browse the repository at this point in the history
…py/paste errors (#88)

* Update version JSON to build implicit download URL to reduce human copy/paste errors

* pesky console.logs

* /
  • Loading branch information
Kyle Knight authored and marpaia committed Jun 3, 2018
1 parent 7b410d4 commit d1412bf
Show file tree
Hide file tree
Showing 12 changed files with 84 additions and 76 deletions.
13 changes: 4 additions & 9 deletions src/components/DownloadCard/DownloadCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,16 @@ const NameSection = ({ packageName, type, url }) => {
)
}

const DownloadCard = ({ className, downloadData }) => {
const DownloadCard = ({ className, downloadData, urlBase }) => {
const wrapperClassName = classnames(baseClass, className)
const url = `${urlBase}/${downloadData.platform}/${downloadData.package}`

return (
<GithubCard
className={wrapperClassName}
description={downloadData.content}
name={
<NameSection
packageName={downloadData.package}
type={downloadData.type}
url={downloadData.url}
/>
}
url={downloadData.url}
name={<NameSection packageName={downloadData.package} type={downloadData.type} url={url} />}
url={url}
urlText={`Download for ${downloadData.type}`}
/>
)
Expand Down
15 changes: 8 additions & 7 deletions src/data/osquery_package_versions/2.10.0.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
{
"version": "2.10.0",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.10.0.pkg",
"content": "b30499ed09ddf649d6c49b49413b71e57183e786f82e65f2b8234e1a10d4ebf7",
"url": "https://pkg.osquery.io/darwin/osquery-2.10.0.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.10.0_1.linux_x86_64.tar.gz",
"content": "dddceec84c002c46dd3cf2bc009dc8df4430e052631ff519b4665222ec018eb8",
"url": "https://pkg.osquery.io/linux/osquery-2.10.0_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.10.0-1.linux.x86_64.rpm",
"content": "501d9f79d5be09b901441109c9fd6d1fcbcf4fd0deb85a4d7abca3565ad0e9cf",
"url": "https://pkg.osquery.io/rpm/osquery-2.10.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.10.0_1.linux.amd64.deb",
"content": "2b5eb496696420ec008e7d85a9c5555d3ea89fe56757cdec951730b9a2b58a93",
"url": "https://pkg.osquery.io/deb/osquery_2.10.0_1.linux.amd64.deb"
"platform": "deb"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.10.0.pkg",
"content": "1b4d3a739e4a398b33b7ad2e417d20b961feec6e328830d80de73a76ed8df940",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.10.0.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.10.0-1.linux.x86_64.rpm",
"content": "95e23b3ea710d85260e4aea1f8fab71c9c8f1dfe0dec5b21ed5439cf3ba4bcce",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.10.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.10.2_1.linux.amd64.deb",
"content": "33f7752206e15b44c3f5d17b24197d6e86b7b085c7030902e2e7bc4b5a81af1e",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.10.0_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions src/data/osquery_package_versions/2.10.2.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
{
"version": "2.10.2",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.10.2.pkg",
"content": "3251f677b4735b37aa29b685225bc87aa4d906912432a595753517f298edc472",
"url": "https://pkg.osquery.io/darwin/osquery-2.10.2.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.10.2_1.linux_x86_64.tar.gz",
"content": "7871ad268bccc9a84760c365ce3f1d1832ef75e06d5d27273cb6237980c50d43",
"url": "https://pkg.osquery.io/linux/osquery-2.10.2_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.10.2-1.linux.x86_64.rpm",
"content": "32d719fab707ce26bf8fde90fe0e17fb23c9c4ccd47e0917856aece8356a46c8",
"url": "https://pkg.osquery.io/rpm/osquery-2.10.2-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.10.2_1.linux.amd64.deb",
"content": "29cf0e55d79021397d999472f619f1733b186167db30480e9015dad54211d157",
"url": "https://pkg.osquery.io/deb/osquery_2.10.2_1.linux.amd64.deb"
"platform": "deb"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.10.2.pkg",
"content": "9c7b5e3ffd2082556feff124e4ac2658f2706e44edf9885d6d0d8f4273c3f26d",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.10.2.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.10.0-1.linux.x86_64.rpm",
"content": "c4ae75d842340d059d4c8ee7a76085b84394a2f796fb42cfa1b2b7ffb62a08be",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.10.2-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.10.2_1.linux.amd64.deb",
"content": "4217d086dec64e6544f6d9c613e6d39557d2f4cf343188b3ed47d926145ba7d4",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.10.2_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions src/data/osquery_package_versions/2.11.0.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
{
"version": "2.11.0",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.11.0.pkg",
"content": "9e9249ffa5c0ac2e6d2212de6a24892ef37efabb039465b50d07ef01ba05fa14",
"url": "https://pkg.osquery.io/darwin/osquery-2.11.0.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.11.0_1.linux_x86_64.tar.gz",
"content": "7df295e5cd56d957c199fcea1d243ee6e49f568005c534d7c610c661a3267d0f",
"url": "https://pkg.osquery.io/linux/osquery-2.11.0_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.11.0-1.linux.x86_64.rpm",
"content": "cf89311f647c35fc682d2af18ef9811cc2e4531243975fe866691bef42a77df4",
"url": "https://pkg.osquery.io/rpm/osquery-2.11.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.11.0_1.linux.amd64.deb",
"content": "5a6e9ab30fdcd8fd6c2e43eb2a931ecca1c38684f7499914474ff73020bda083",
"url": "https://pkg.osquery.io/deb/osquery_2.11.0_1.linux.amd64.deb"
"platform": "deb"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.11.0.pkg",
"content": "e22747f01891e4d5e2cedc480766b6012a60bf3c5fb3c29bc7604e521e82fb81",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.11.0.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.11.0-1.linux.x86_64.rpm",
"content": "fc372abb782ab1e242d2837a250978716ee2d04150e4cbd525029a6c0a0c7d63",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.11.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.11.0_1.linux.amd64.deb",
"content": "5a6e9ab30fdcd8fd6c2e43eb2a931ecca1c38684f7499914474ff73020bda083",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.11.0_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
17 changes: 9 additions & 8 deletions src/data/osquery_package_versions/2.11.2.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
{
"version": "2.11.2",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.11.2.pkg",
"content": "c28e561c9626e5fa2e7be06df73a63a96f1ca76c0e591ab492d3354745713476",
"url": "https://pkg.osquery.io/darwin/osquery-2.11.2.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.11.2_1.linux_x86_64.tar.gz",
"content": "6b9f032bf04a0a938c4cd2a7f24f0f4fef1aca8593661f3801822760b178fdbd",
"url": "https://pkg.osquery.io/linux/osquery-2.11.2_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.11.2-1.linux.x86_64.rpm",
"content": "e7dd21d76b33b4ccad5280a8685f71a557bc008c2aaa41cfa696aa1d537bedad",
"url": "https://pkg.osquery.io/rpm/osquery-2.11.2-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.11.2_1.linux.amd64.deb",
"content": "cf140838778e0c32344a6aeb3f45d2ae2cd44f2e7ec9acb19fc99ff883d52ef5",
"url": "https://pkg.osquery.io/deb/osquery_2.11.2_1.linux.amd64.deb"
"platform": "deb"
},
{
"type": "Windows",
"package": "osquery-2.11.2.msi",
"content": "dc1ab769c5960de24824184da63edcdda90b9bceda41d1fc8717bbfa8ab1d4bd",
"url": "https://pkg.osquery.io/windows/osquery-2.11.2.msi"
"platform": "windows"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.11.2.pkg",
"content": "bb30981eabb5be24bc06a95aa91c2afb9cbca8deaf00d8d83810bfe8107cad6a",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.11.2.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.11.2-1.linux.x86_64.rpm",
"content": "4183781d064c970d3990aaaf7c4a51831a361b3ce4ed90d12730965901e9f73e",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.11.2-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.11.2_1.linux.amd64.deb",
"content": "8dba185c4a42849ec379b7acec9f2b6db3ca7b61e1627d5647d41a3d9834bc5c",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.11.2_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions src/data/osquery_package_versions/2.7.0.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
{
"version": "2.7.0",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.7.0.pkg",
"content": "e5eaf91b5582252f136476391cdd17985cc614536f964f38ddf7eb9cb69d0213",
"url": "https://pkg.osquery.io/darwin/osquery-2.7.0.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.7.0_1.linux_x86_64.tar.gz",
"content": "fdc74b15161a7dacb74dcff7d25a433b838eac3738f5c80be2926d43eb52637a",
"url": "https://pkg.osquery.io/linux/osquery-2.7.0_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.7.0-1.linux.x86_64.rpm",
"content": "42e4fbbec36bf189624ab43405e7ae7ff2a0562b5ec10a82b53de5a699c857b5",
"url": "https://pkg.osquery.io/rpm/osquery-2.7.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.7.0_1.linux.amd64.deb",
"content": "f0f0d2b66393486e99b18bc200495a127eab3de2df1c66e8eb46a0502a12ecd7",
"url": "https://pkg.osquery.io/deb/osquery_2.7.0_1.linux.amd64.deb"
"platform": "deb"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.7.0.pkg",
"content": "e68ab68ddf2a34842666b9bfb743c534aab23722a3c8e8c887ac670fd294b4e7",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.7.0.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.7.0-1.linux.x86_64.rpm",
"content": "2f742a31b9d204ca9d99a44186bf318c241a45f85a18bcf088fed37ef7b6fcbb",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.7.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.7.0_1.linux.amd64.deb",
"content": "b90463b20ae13b6cba4c5a9b36d8ece3847a75a82448205254f5ff3bcec0c2ee",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.7.0_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
15 changes: 8 additions & 7 deletions src/data/osquery_package_versions/2.8.0.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
{
"version": "2.8.0",
"url": "https://pkg.osquery.io",
"downloads": {
"official": [
{
"type": "macOS",
"package": "osquery-2.8.0.pkg",
"content": "642bd56809ea4079263fb8a9be3c9c7b53168c9676882ccd84b013f9c997cbe0",
"url": "https://pkg.osquery.io/darwin/osquery-2.8.0.pkg"
"platform": "darwin"
},
{
"type": "Linux",
"package": "osquery-2.8.0_1.linux_x86_64.tar.gz",
"content": "ec84b5128769f09a5513bc1d136504ca2f805580b73d602e73d2a90b1a87c80a",
"url": "https://pkg.osquery.io/linux/osquery-2.8.0_1.linux_x86_64.tar.gz"
"platform": "linux"
},
{
"type": "RPM",
"package": "osquery-2.8.0-1.linux.x86_64.rpm",
"content": "429b56f3a07890ac0d3dc92f36551caea55a2a86cee737dd0fbe55c297caf053",
"url": "https://pkg.osquery.io/rpm/osquery-2.8.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery_2.8.0_1.linux.amd64.deb",
"content": "33a6a2233918706fa23df06dd9ff2c03bb7fc07425b645e3d882f70babddb3a4",
"url": "https://pkg.osquery.io/deb/osquery_2.8.0_1.linux.amd64.deb"
"platform": "deb"
}
],
"debug": [
{
"type": "macOS",
"package": "osquery-debug-2.8.0.pkg",
"content": "e62b45331977d1a15193a8c80c916c3aa281cc9ff403f7553f9f262394780b2e",
"url": "https://pkg.osquery.io/darwin/osquery-debug-2.8.0.pkg"
"platform": "darwin"
},
{
"type": "RPM",
"package": "osquery-debuginfo-2.8.0-1.linux.x86_64.rpm",
"content": "f6dcbcb160cc431ddab0b4d8bf29ac16fde1f82eab843bf65696de9c9462b7ff",
"url": "https://pkg.osquery.io/rpm/osquery-debuginfo-2.8.0-1.linux.x86_64.rpm"
"platform": "rpm"
},
{
"type": "Debian",
"package": "osquery-dbg_2.8.0_1.linux.amd64.deb",
"content": "e91386dab8d11525b28636e84300557f1e82d9bc33a390d751b60c03c01f08cc",
"url": "https://pkg.osquery.io/deb/osquery-dbg_2.8.0_1.linux.amd64.deb"
"platform": "deb"
}
]
}
Expand Down
Loading

0 comments on commit d1412bf

Please sign in to comment.