Merge pull request 'develop' (#9015) from develop into main

Reviewed-on: https://codeberg.org/thatonecalculator/calckey/pulls/9015
This commit is contained in:
Kainoa Kanter 2022-07-26 23:37:46 +02:00
commit 06978f2edf
6 changed files with 43 additions and 25 deletions

View File

@ -9,6 +9,7 @@ COPY . ./
RUN apt-get update
RUN apt-get install -y build-essential
RUN git submodule update --init
RUN yarn set version berry
RUN yarn install
RUN yarn build
RUN rm -rf .git

View File

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.118.0-calc.3.b4",
"version": "12.118.0-calc.7.b4",
"codename": "indigo",
"repository": {
"type": "git",

View File

@ -21,7 +21,7 @@ const modal = ref<InstanceType<typeof MkModal>>();
const whatIsNew = () => {
modal.value.close();
window.open(`https://misskey-hub.net/docs/releases.html#_${version.replace(/\./g, '-')}`, '_blank');
window.open('https://codeberg.org/thatonecalculator/calckey/releases', '_blank');
};
</script>

View File

@ -237,6 +237,7 @@ import { getAccountFromId } from '@/scripts/get-account-from-id';
// テーマリビルドするため
localStorage.removeItem('theme');
/*
try { // 変なバージョン文字列来るとcompareVersionsでエラーになるため
if (lastVersion != null && compareVersions(version, lastVersion) === 1) {
// ログインしてる場合だけ
@ -246,6 +247,7 @@ import { getAccountFromId } from '@/scripts/get-account-from-id';
}
} catch (err) {
}
*/
}
// NOTE: この処理は必ず↑のクライアント更新時処理より後に来ること(テーマ再構築のため)

View File

@ -94,6 +94,7 @@ import * as os from '@/os';
import number from '@/filters/number';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
import { iAmModerator } from '@/account';
const props = withDefaults(defineProps<{
initialTab?: string;
@ -111,22 +112,30 @@ const initStats = () => os.api('stats', {
const headerActions = $computed(() => []);
const headerTabs = $computed(() => [{
let theTabs = [{
key: 'overview',
title: i18n.ts.overview,
}, {
key: 'emojis',
title: i18n.ts.customEmojis,
icon: 'fas fa-laugh',
}, {
key: 'federation',
title: i18n.ts.federation,
icon: 'fas fa-globe',
}, {
key: 'charts',
title: i18n.ts.charts,
icon: 'fas fa-chart-simple',
}]);
}];
if (iAmModerator) {
theTabs.push(
{
key: 'federation',
title: i18n.ts.federation,
icon: 'fas fa-globe',
},
);
}
let headerTabs = $computed(() => theTabs);
definePageMetadata(computed(() => ({
title: i18n.ts.instanceInfo,

View File

@ -111,7 +111,27 @@ function focus(): void {
tlComponent.focus();
}
const headerActions = $computed(() => []);
const headerActions = $computed(() => [{
icon: 'fas fa-list-ul',
title: i18n.ts.lists,
iconOnly: true,
handler: chooseList,
}, {
icon: 'fas fa-satellite',
title: i18n.ts.antennas,
iconOnly: true,
handler: chooseAntenna,
}, {
icon: 'fas fa-satellite-dish',
title: i18n.ts.channel,
iconOnly: true,
handler: chooseChannel,
}, {
icon: 'fas fa-calendar-alt',
title: i18n.ts.jumpToSpecifiedDate,
iconOnly: true,
handler: timetravel,
}]);
const headerTabs = $computed(() => [{
key: 'home',
@ -133,22 +153,7 @@ const headerTabs = $computed(() => [{
title: i18n.ts._timelines.global,
icon: 'fas fa-globe',
iconOnly: true,
}] : []), /* {
icon: 'fas fa-list-ul',
title: i18n.ts.lists,
iconOnly: true,
onClick: chooseList,
}, {
icon: 'fas fa-satellite',
title: i18n.ts.antennas,
iconOnly: true,
onClick: chooseAntenna,
}, {
icon: 'fas fa-satellite-dish',
title: i18n.ts.channel,
iconOnly: true,
onClick: chooseChannel,
}*/]);
}] : [])]);
const headerTabsWhenNotLogin = $computed(() => [
...(isLocalTimelineAvailable ? [{
@ -172,6 +177,7 @@ definePageMetadata(computed(() => ({
</script>
<style lang="scss" scoped>
.cmuxhskf {
> .new {
position: sticky;