tweak b9473116
This commit is contained in:
parent
9948ea324b
commit
5de3c778ef
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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(() => [{
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue