This commit is contained in:
NoriDev 2023-10-04 22:34:53 +09:00
parent 9948ea324b
commit 5de3c778ef
8 changed files with 10 additions and 10 deletions

View file

@ -78,7 +78,7 @@ fetch('https://api.github.com/repos/kokonect-link/cherrypick/releases', {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) updateAvailable = true;
});

View file

@ -121,7 +121,7 @@ onMounted(() => {
method: 'GET',
}).then(res => res.json())
.then(res => {
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if (skipCherryPickVersion < releasesCherryPick[0].tag_name) {
skipVersion = false;
@ -133,7 +133,7 @@ onMounted(() => {
method: 'GET',
}).then(res => res.json())
.then(res => {
if (meta.enableReceivePrerelease) releasesMisskey = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesMisskey = res;
else releasesMisskey = res.filter(x => x.prerelease === false);
});
});
@ -151,7 +151,7 @@ const whatIsNewMisskey = () => {
};
const whatIsNewLatestMisskey = () => {
window.open(`https://misskey-hub.net/docs/releases.html#_${releasesMisskey[0].tag_name.replace(/\./g, '-')}`, '_blank');
window.open(`https://github.com/misskey-dev/misskey/blob/develop/CHANGELOG.md#${releasesMisskey[0].tag_name.replace(/\./g, '')}`, '_blank');
};
const headerActions = $computed(() => [{

View file

@ -83,7 +83,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});

View file

@ -97,7 +97,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});

View file

@ -88,7 +88,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});

View file

@ -94,7 +94,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});

View file

@ -87,7 +87,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});

View file

@ -104,7 +104,7 @@ if ($i.isAdmin || $i.isModerator) {
}).then(res => res.json())
.then(async res => {
const meta = await os.api('admin/meta');
if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true);
if (meta.enableReceivePrerelease) releasesCherryPick = res;
else releasesCherryPick = res.filter(x => x.prerelease === false);
if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true;
});