mirror of
https://git.netzspielplatz.de/docker-multiarch/openwrt-firmware-selector.git
synced 2025-11-08 23:39:37 +00:00
add manifest, new releases and add attribution
This commit is contained in:
parent
b3b52baf11
commit
247e0c05f9
7 changed files with 46 additions and 7 deletions
|
|
@ -52,6 +52,12 @@
|
|||
background-color: #f3f3f3;
|
||||
}
|
||||
|
||||
code {
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.std-textarea {
|
||||
width: 100%;
|
||||
border-radius: 5px;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@ const config = {
|
|||
show_help: true,
|
||||
|
||||
// Path to overview.json file or URL to the ASU API
|
||||
versions: { '19.07.7': 'data/19.07.7', SNAPSHOT: 'data/SNAPSHOT' },
|
||||
versions: {
|
||||
'19.07.7': 'data/19.07.7',
|
||||
'21.02.0-rc1': 'data/21.02.0-rc1',
|
||||
SNAPSHOT: 'data/SNAPSHOT',
|
||||
},
|
||||
|
||||
// Pre-selected version (optional)
|
||||
default_version: '19.07.7',
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ const ProfileDetails: FunctionComponent<Props> = ({ selectedVersion, selectedPro
|
|||
if (!profileData) {
|
||||
const response = await axios.get<Profile>(
|
||||
`${process.env.PUBLIC_URL}/data/${selectedVersion}` +
|
||||
`/${selectedProfile.target}/${selectedProfile.id}.json`
|
||||
`/${selectedProfile.target}/${selectedProfile.id}.json?t=${new Date().getTime()}`
|
||||
);
|
||||
profileData = response.data;
|
||||
profilesData[selectedProfile.id] = profileData;
|
||||
|
|
@ -460,6 +460,19 @@ const ProfileDetails: FunctionComponent<Props> = ({ selectedVersion, selectedPro
|
|||
<br />
|
||||
<br />
|
||||
<div>
|
||||
<Accordion className="std-accordian">
|
||||
<AccordionSummary expandIcon={<ExpandMore />}>Manifest</AccordionSummary>
|
||||
<AccordionDetails>
|
||||
<code>
|
||||
{Object.keys(buildResponse.manifest).map((e) => (
|
||||
<>
|
||||
{e}: {buildResponse.manifest[e]}
|
||||
<br />
|
||||
</>
|
||||
))}
|
||||
</code>
|
||||
</AccordionDetails>
|
||||
</Accordion>
|
||||
<Accordion className="std-accordian">
|
||||
<AccordionSummary expandIcon={<ExpandMore />}>Stderr</AccordionSummary>
|
||||
<AccordionDetails>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,9 @@ const ProfileSearch: FunctionComponent<Props> = ({ selectedVersion, onProfileCha
|
|||
toggleWorking(true);
|
||||
|
||||
if (!overview) {
|
||||
const overviewPath = `${process.env.PUBLIC_URL}/data/${selectedVersion}/overview.json`;
|
||||
const overviewPath = `${
|
||||
process.env.PUBLIC_URL
|
||||
}/data/${selectedVersion}/overview.json?t=${new Date().getTime()}`;
|
||||
const response = await Axios.get<Overview>(overviewPath);
|
||||
overview = response.data;
|
||||
overviewData[selectedVersion] = overview;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue