Compare commits

...

42 Commits

Author SHA1 Message Date
af0dfb2362 wtf??? 2022-04-01 03:39:17 +09:00
ad74fbc48f wtf????aaaa 2022-04-01 03:29:45 +09:00
d0775da7d2 wtf????aaa 2022-04-01 03:23:01 +09:00
633994ecb6 wtf????aa 2022-04-01 02:46:07 +09:00
54923b7ac9 wtf????aa 2022-04-01 02:21:30 +09:00
48e132a2c7 wtf????a 2022-04-01 02:03:24 +09:00
7663170fae wtf????a 2022-04-01 01:59:08 +09:00
cebb66cc36 wtf???? 2022-04-01 00:47:56 +09:00
f6dda604dc fix: update package.json select-file-enc.ts 2022-03-30 16:05:35 +09:00
d10143544d fix: update package.json 2022-03-30 16:04:20 +09:00
40e3c75c13 fix: update select-file-enc.ts 2022-03-30 15:59:08 +09:00
a2150b1269 fix: update l-simkey.json5 2022-03-29 03:08:09 +09:00
19579ed0f1 fix: add l-simkey.json5 2022-03-29 02:54:17 +09:00
78396baf82 fix: update package.json 2022-03-29 02:34:31 +09:00
982896f7be fix: update default store.ts 2022-03-29 02:31:29 +09:00
ef4f49778e Merge branch 'develop' 2022-03-21 19:29:41 +09:00
721c47a74b fix: reject mp4 2022-03-21 19:28:22 +09:00
11cbbeb795 Merge branch 'develop' 2022-03-13 16:22:27 +09:00
6bc893ca44 Merge pull request #27 from sim1222/sim-dev-comv-mov-1
feat: Add convert video container button
2022-03-13 16:15:56 +09:00
8fc770d371 Merge branch 'develop' 2022-03-12 19:38:26 +09:00
4aed68ec96 Merge tag '12.108.1-simkey' into develop 2022-03-12 19:38:14 +09:00
2cd2d6522e Merge branch 'develop' 2022-03-12 19:35:17 +09:00
b81b66912d 12.108.1 2022-03-12 19:35:08 +09:00
cf58a42185 New Crowdin updates (#8398)
* New translations ja-JP.yml (Catalan)

* New translations ja-JP.yml (Turkish)

* New translations ja-JP.yml (Japanese, Kansai)

* New translations ja-JP.yml (Kabyle)

* New translations ja-JP.yml (Kannada)

* New translations ja-JP.yml (Uyghur)

* New translations ja-JP.yml (Indonesian)

* New translations ja-JP.yml (Spanish)

* New translations ja-JP.yml (Dutch)

* New translations ja-JP.yml (Czech)

* New translations ja-JP.yml (Italian)

* New translations ja-JP.yml (Korean)

* New translations ja-JP.yml (Polish)

* New translations ja-JP.yml (Portuguese)

* New translations ja-JP.yml (Russian)

* New translations ja-JP.yml (Ukrainian)

* New translations ja-JP.yml (Chinese Traditional)

* New translations ja-JP.yml (Romanian)
2022-03-12 19:34:43 +09:00
a2094054a3 Update CHANGELOG.md 2022-03-12 19:27:14 +09:00
db900c8324 Fix bug : "IPCIDR is not a constructor" (#8400) 2022-03-12 19:23:57 +09:00
6cf346b3ea Update CHANGELOG.md 2022-03-12 15:22:05 +09:00
19ff9a3b4d fix(server): HTMLが正しくレンダリングされない問題を修正
Fix #8392
2022-03-12 15:21:07 +09:00
d1d68c0124 fix(server): dummy image is not served correctly
Fix #8393
2022-03-12 15:13:11 +09:00
fb355abbcf 🎨 2022-03-12 14:54:08 +09:00
c76d14b881 Update CHANGELOG.md 2022-03-12 13:22:50 +09:00
865bb89995 Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2022-03-12 13:21:39 +09:00
0a6c9a00bd リレーが動作するように修正する (#8396) 2022-03-12 13:21:04 +09:00
5490d82e3b tweal c;iemy 2022-03-11 18:55:47 +09:00
357da2ce3a fix(server): ulidを使用していると動作しない問題を修正 2022-03-11 12:44:35 +09:00
6bb22007d8 Merge branch 'develop' 2022-03-09 23:09:49 +09:00
b96e886a61 Merge branch 'develop' 2022-02-17 01:19:43 +09:00
88a2606884 Merge branch 'develop' 2022-02-12 17:39:33 +09:00
39307694b5 Merge branch 'develop' 2022-02-11 22:20:20 +09:00
5afb3a59cd Merge branch 'develop' 2022-02-11 19:25:04 +09:00
12214c473a Merge branch 'develop' 2022-02-09 22:01:03 +09:00
9d0c1a8fea Merge branch 'develop' 2022-02-09 17:17:20 +09:00
37 changed files with 382 additions and 37 deletions

View File

@ -10,6 +10,14 @@
You should also include the user name that made the change.
-->
## 12.108.1 (2022/03/12)
### Bugfixes
- リレーが動作しない問題を修正 @xianonn
- ulidを使用していると動作しない問題を修正 @syuilo
- 外部からOGPが正しく取得できない問題を修正 @syuilo
- instance can not get the files from other instance when there are items in allowedPrivateNetworks in .config/default.yml @ybw2016v
## 12.108.0 (2022/03/09)
### NOTE

View File

@ -12,6 +12,7 @@ gotIt: "Ho he entès!"
cancel: "Cancel·lar"
smtpUser: "Nom d'usuari"
smtpPass: "Contrasenya"
searchByGoogle: "Cercar"
_mfm:
search: "Cercar"
_sfx:

View File

@ -449,6 +449,7 @@ clearCache: "Vyprázdnit mezipaměť"
info: "Informace"
user: "Uživatelé"
administration: "Administrace"
searchByGoogle: "Vyhledávání"
_email:
_follow:
title: "Máte nového následovníka"

View File

@ -762,6 +762,7 @@ muteThread: "Ocultar hilo"
unmuteThread: "Mostrar hilo"
ffVisibility: "Visibilidad de seguidores y seguidos"
hide: "Ocultar"
searchByGoogle: "Buscar"
indefinitely: "Sin límite de tiempo"
_ffVisibility:
public: "Publicar"

View File

@ -825,6 +825,7 @@ overridedDeviceKind: "Tipe perangkat"
smartphone: "Ponsel"
tablet: "Tablet"
auto: "Otomatis"
searchByGoogle: "Penelusuran"
indefinitely: "Selamanya"
_emailUnavailable:
used: "Alamat surel ini telah digunakan"

View File

@ -802,6 +802,7 @@ leaveGroupConfirm: "Uscire da「{name}」?"
useDrawerReactionPickerForMobile: "Mostra sul drawer da dispositivo mobile"
welcomeBackWithName: "Bentornato/a, {name}"
clickToFinishEmailVerification: "Fai click su [{ok}] per completare la verifica dell'indirizzo email."
searchByGoogle: "Cerca"
indefinitely: "Non scade"
_emailUnavailable:
used: "Email già in uso"

View File

@ -831,7 +831,7 @@ auto: "自動"
themeColor: "テーマカラー"
size: "サイズ"
numberOfColumn: "列の数"
searchByGoogle: "ググる"
searchByGoogle: "検索"
instanceDefaultLightTheme: "インスタンスデフォルトのライトテーマ"
instanceDefaultDarkTheme: "インスタンスデフォルトのダークテーマ"
instanceDefaultThemeDescription: "オブジェクト形式のテーマコードを記入します。"

View File

@ -655,6 +655,7 @@ global: "グローバル"
sent: "送信"
hashtags: "ハッシュタグ"
hide: "隠す"
searchByGoogle: "探す"
indefinitely: "無期限"
_ad:
back: "戻る"

View File

@ -55,6 +55,7 @@ accountInfo: "Talɣut n umiḍan"
emailNotification: "Ilɣa imayl"
selectAccount: "Fren amiḍan"
accounts: "Imiḍan"
searchByGoogle: "Nadi"
_email:
_follow:
title: "Yeṭṭafaṛ-ik·em-id"

View File

@ -59,6 +59,7 @@ remove: "ಅಳಿಸು"
smtpUser: "ಬಳಕೆಹೆಸರು"
smtpPass: "ಗುಪ್ತಪದ"
user: "ಬಳಕೆದಾರ"
searchByGoogle: "ಹುಡುಕು"
_email:
_follow:
title: "ಹಿಂಬಾಲಿಸಿದರು"

View File

@ -825,6 +825,7 @@ overridedDeviceKind: "장치 유형"
smartphone: "스마트폰"
tablet: "태블릿"
auto: "자동"
searchByGoogle: "검색"
indefinitely: "무기한"
_emailUnavailable:
used: "이 메일 주소는 사용중입니다"

View File

@ -256,6 +256,7 @@ user: "Gebruikers"
muteThread: "Discussies dempen "
unmuteThread: "Dempen van discussie ongedaan maken"
hide: "Verbergen"
searchByGoogle: "Zoeken"
_email:
_follow:
title: "volgde jou"

View File

@ -758,6 +758,7 @@ received: "Otrzymane"
hashtags: "Hashtag"
pubSub: "Konta Pub/Sub"
hide: "Ukryj"
searchByGoogle: "Szukaj"
indefinitely: "Nigdy"
_ffVisibility:
public: "Publikuj"

View File

@ -61,6 +61,7 @@ pinnedNotes: "Post fixado"
smtpUser: "Nome de usuário"
smtpPass: "Senha"
user: "Usuários"
searchByGoogle: "Pesquisar"
_email:
_follow:
title: "Você tem um novo seguidor"

View File

@ -477,6 +477,7 @@ smtpPass: "Parolă"
clearCache: "Golește cache-ul"
info: "Despre"
user: "Utilizatori"
searchByGoogle: "Caută"
_email:
_follow:
title: "te-a urmărit"

View File

@ -815,6 +815,7 @@ leaveGroupConfirm: "Покинуть группу «{name}»?"
useDrawerReactionPickerForMobile: "Выдвижная палитра на мобильном устройстве"
welcomeBackWithName: "С возвращением, {name}!"
clickToFinishEmailVerification: "Пожалуйста, нажмите [{ok}], чтобы завершить подтверждение адреса электронной почты."
searchByGoogle: "Поиск"
indefinitely: "вечно"
_emailUnavailable:
used: "Уже используется"

View File

@ -47,6 +47,7 @@ remove: "Sil"
smtpUser: "Kullanıcı Adı"
smtpPass: "Şifre"
user: "Kullanıcı"
searchByGoogle: "Arama"
_mfm:
search: "Arama"
_sfx:

View File

@ -1,5 +1,6 @@
---
_lang_: "ياپونچە"
search: "ئىزدەش"
searchByGoogle: "ئىزدەش"
_mfm:
search: "ئىزدەش"

View File

@ -685,6 +685,7 @@ global: "Глобальна"
sent: "Відправити"
hashtags: "Хештеґ"
hide: "Сховати"
searchByGoogle: "Пошук"
indefinitely: "Ніколи"
_ad:
back: "Назад"

View File

@ -747,6 +747,7 @@ global: "公開"
sent: "發送"
hashtags: "#tag"
hide: "隱藏"
searchByGoogle: "搜尋"
indefinitely: "無期限"
_ffVisibility:
public: "發佈"

View File

@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "12.108.0-simkey",
"version": "12.108.1-simkey-v999999",
"codename": "indigo",
"repository": {
"type": "git",

View File

@ -19,7 +19,7 @@
"@elastic/elasticsearch": "7.11.0",
"@koa/cors": "3.1.0",
"@koa/multer": "3.0.0",
"@koa/router": "10.1.1",
"@koa/router": "9.0.1",
"@sinonjs/fake-timers": "9.1.1",
"@syuilo/aiscript": "0.11.1",
"@types/bcryptjs": "2.4.2",

View File

@ -6,7 +6,7 @@ import { httpAgent, httpsAgent, StatusError } from './fetch.js';
import config from '@/config/index.js';
import chalk from 'chalk';
import Logger from '@/services/logger.js';
import * as IPCIDR from 'ip-cidr';
import IPCIDR from 'ip-cidr';
import PrivateIp from 'private-ip';
const pipeline = util.promisify(stream.pipeline);

View File

@ -1,5 +1,5 @@
import * as crypto from 'node:crypto';
import * as jsonld from 'jsonld';
import jsonld from 'jsonld';
import { CONTEXTS } from './contexts.js';
import fetch from 'node-fetch';
import { httpAgent, httpsAgent } from '@/misc/fetch.js';

View File

@ -31,7 +31,7 @@ const ajv = new Ajv({
useDefaults: true,
});
ajv.addFormat('misskey:id', /^[a-z0-9]+$/);
ajv.addFormat('misskey:id', /^[a-zA-Z0-9]+$/);
export default function <T extends IEndpointMeta, Ps extends Schema>(meta: T, paramDef: Ps, cb: executor<T, Ps>)
: (params: any, user: T['requireCredential'] extends true ? SimpleUserInfo : SimpleUserInfo | null, token: AccessToken | null, file?: any) => Promise<any> {

View File

@ -2,7 +2,7 @@ import * as fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
import Koa from 'koa';
import * as send from 'koa-send';
import send from 'koa-send';
import rename from 'rename';
import * as tmp from 'tmp';
import { serverLogger } from '../index.js';

View File

@ -128,10 +128,10 @@
resolved "https://registry.yarnpkg.com/@koa/multer/-/multer-3.0.0.tgz#439777949f28097d7b329c0b4ce3048074c862f8"
integrity sha512-y+OQBmex5D1jIl723gAEUYcAWPEicIXppaAKw/zCMfpllQ08ZNweDPwoCLxEoatqd5pCu2XG6V8dl67JRq3RJw==
"@koa/router@10.1.1":
version "10.1.1"
resolved "https://registry.yarnpkg.com/@koa/router/-/router-10.1.1.tgz#8e5a85c9b243e0bc776802c0de564561e57a5f78"
integrity sha512-ORNjq5z4EmQPriKbR0ER3k4Gh7YGNhWDL7JBW+8wXDrHLbWYKYSJaOJ9aN06npF5tbTxe2JBOsurpJDAvjiXKw==
"@koa/router@9.0.1":
version "9.0.1"
resolved "https://registry.yarnpkg.com/@koa/router/-/router-9.0.1.tgz#4090a14223ea7e78aa13b632761209cba69acd95"
integrity sha512-OI+OU49CJV4px0WkIMmayBeqVXB/JS1ZMq7UoGlTZt6Y7ijK7kdeQ18+SEHHJPytmtI1y6Hf8XLrpxva3mhv5Q==
dependencies:
debug "^4.1.1"
http-errors "^1.7.3"

View File

@ -71,7 +71,7 @@ const colors = {
purple: '#e300db',
orange: '#fe6919',
lime: '#bde800',
cyan: '#00efef',
cyan: '#00e0e0',
};
const colorSets = [colors.blue, colors.green, colors.yellow, colors.red, colors.purple];
const getColor = (i) => {
@ -127,7 +127,7 @@ export default defineComponent({
name: string;
type: 'line' | 'area';
color?: string;
borderDash?: number[];
dashed?: boolean;
hidden?: boolean;
data: {
x: number;
@ -217,7 +217,7 @@ export default defineComponent({
pointRadius: 0,
borderWidth: props.bar ? 0 : 2,
borderColor: x.color ? x.color : getColor(i),
borderDash: x.borderDash || [],
borderDash: x.dashed ? [5, 5] : [],
borderJoinStyle: 'round',
borderRadius: props.bar ? 3 : undefined,
backgroundColor: props.bar ? (x.color ? x.color : getColor(i)) : alpha(x.color ? x.color : getColor(i), 0.1),
@ -226,7 +226,7 @@ export default defineComponent({
axis: 'y',
colors: {
0: alpha(x.color ? x.color : getColor(i), 0),
[maxes[i]]: alpha(x.color ? x.color : getColor(i), 0.175),
[maxes[i]]: alpha(x.color ? x.color : getColor(i), 0.2),
},
},
},
@ -403,16 +403,19 @@ export default defineComponent({
name: 'Pub & Sub',
type: 'line',
data: format(raw.pubsub),
dashed: true,
color: colors.cyan,
}, {
name: 'Pub',
type: 'line',
data: format(raw.pub),
dashed: true,
color: colors.purple,
}, {
name: 'Sub',
type: 'line',
data: format(raw.sub),
dashed: true,
color: colors.orange,
}],
};
@ -593,7 +596,7 @@ export default defineComponent({
series: [{
name: 'All',
type: 'line',
borderDash: [5, 5],
dashed: true,
data: format(
sum(
raw.local.incSize,
@ -628,7 +631,7 @@ export default defineComponent({
series: [{
name: 'All',
type: 'line',
borderDash: [5, 5],
dashed: true,
data: format(
sum(
raw.local.incCount,
@ -795,6 +798,36 @@ export default defineComponent({
};
};
const fetchPerUserFollowingChart = async (): Promise<typeof data> => {
const raw = await os.api('charts/user/following', { userId: props.args.user.id, limit: props.limit, span: props.span });
return {
series: [{
name: 'Local',
type: 'area',
data: format(raw.local.followings.total),
}, {
name: 'Remote',
type: 'area',
data: format(raw.remote.followings.total),
}],
};
};
const fetchPerUserFollowersChart = async (): Promise<typeof data> => {
const raw = await os.api('charts/user/following', { userId: props.args.user.id, limit: props.limit, span: props.span });
return {
series: [{
name: 'Local',
type: 'area',
data: format(raw.local.followers.total),
}, {
name: 'Remote',
type: 'area',
data: format(raw.remote.followers.total),
}],
};
};
const fetchPerUserDriveChart = async (): Promise<typeof data> => {
const raw = await os.api('charts/user/drive', { userId: props.args.user.id, limit: props.limit, span: props.span });
return {
@ -838,6 +871,8 @@ export default defineComponent({
case 'instance-drive-files-total': return fetchInstanceDriveFilesChart(true);
case 'per-user-notes': return fetchPerUserNotesChart();
case 'per-user-following': return fetchPerUserFollowingChart();
case 'per-user-followers': return fetchPerUserFollowersChart();
case 'per-user-drive': return fetchPerUserDriveChart();
}
};

View File

@ -1,9 +1,10 @@
<template>
<button v-if="!link" class="bghgjjyj _button"
:class="{ inline, primary, gradate, danger, rounded, full }"
:class="{ inline, primary, gradate, danger, rounded, full, 'hoverd': hoverd === true}"
:type="type"
@click="$emit('click', $event)"
@mousedown="onMousedown"
@mouseover="onMouseOver"
>
<div ref="ripples" class="ripples"></div>
<div class="content">
@ -24,7 +25,7 @@
<script lang="ts">
import { defineComponent } from 'vue';
let hoverd: boolean = false;
export default defineComponent({
props: {
type: {
@ -127,9 +128,16 @@ export default defineComponent({
window.setTimeout(() => {
if (this.$refs.ripples) this.$refs.ripples.removeChild(ripple);
}, 2000);
},
onMouseOver(){
hoverd = !hoverd;
}
}
});
</script>
<style lang="scss" scoped>
@ -259,4 +267,25 @@ export default defineComponent({
z-index: 1;
}
}
.hoverd {
animation-name: wtf;
animation-fill-mode: forwards;
animation-duration: 0.5s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@keyframes wtf {
0% {
transform: scale(1, 1) translate(0px);
}
10% {
transform: scale(0, 0) translate(2px);
}
100% {
transform: scale(1, 1) translate(900px);
}
}
</style>

View File

@ -1,9 +1,14 @@
<template>
<MkContainer>
<template #header><i class="fas fa-chart-bar" style="margin-right: 0.5em;"></i>{{ $ts.activity }}</template>
<template #func>
<button class="_button" @click="showMenu">
<i class="fas fa-ellipsis-h"></i>
</button>
</template>
<div style="padding: 8px;">
<MkChart src="per-user-notes" :args="{ user, withoutAll: true }" span="day" :limit="limit" :bar="true" :stacked="true" :detailed="false" :aspect-ratio="5"/>
<MkChart :src="chartSrc" :args="{ user, withoutAll: true }" span="day" :limit="limit" :bar="true" :stacked="true" :detailed="false" :aspect-ratio="5"/>
</div>
</MkContainer>
</template>
@ -13,6 +18,8 @@ import { } from 'vue';
import * as misskey from 'misskey-js';
import MkContainer from '@/components/ui/container.vue';
import MkChart from '@/components/chart.vue';
import * as os from '@/os';
import { i18n } from '@/i18n';
const props = withDefaults(defineProps<{
user: misskey.entities.User;
@ -20,4 +27,26 @@ const props = withDefaults(defineProps<{
}>(), {
limit: 50,
});
let chartSrc = $ref('per-user-notes');
function showMenu(ev: MouseEvent) {
os.popupMenu([{
text: i18n.ts.notes,
active: true,
action: () => {
chartSrc = 'per-user-notes';
}
}/*, {
text: i18n.ts.following,
action: () => {
chartSrc = 'per-user-following';
}
}, {
text: i18n.ts.followers,
action: () => {
chartSrc = 'per-user-followers';
}
}*/], ev.currentTarget ?? ev.target);
}
</script>

View File

@ -27,7 +27,7 @@
<div class="desc" v-html="meta.description || $ts.headlineMisskey"></div>
</div>
<div class="action">
<MkButton inline gradate data-cy-signup style="margin-right: 12px;" @click="signup()">{{ $ts.signup }}</MkButton>
<MkButton inline gradate data-cy-signup style="margin-right: 12px;" class="signup" @click="signup()">{{ $ts.signup }}</MkButton>
<MkButton inline data-cy-signin @click="signin()">{{ $ts.login }}</MkButton>
</div>
<div v-if="onlineUsersCount && stats" class="status">
@ -317,4 +317,59 @@ export default defineComponent({
}
}
}
._button,.mk-emoji,.text,span,._panel,.havbbuyv,.note,.fg {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 15s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
@keyframes wtf2 {
0% {
transform: scale(1, 1) translate(0px);
}
30% {
transform: translate(-8px, -9px);
}
60% {
transform: scale(1.1, 1.1) translate(10px, 10px);
}
90% {
transform: scale(0.9, 0.9) translate(-2px, 6px);
}
100% {
transform: scale(1, 1) translate(0px, 0px);
}
}
.signup {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 0.1s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
//2022-wtf
._button:hover {
animation-name: wtf;
animation-fill-mode: forwards;
animation-duration: 0.5s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@keyframes wtf {
0% {
transform: scale(1, 1) translate(0px);
}
10% {
transform: scale(0, 0) translate(2px);
}
100% {
transform: scale(1, 1) translate(900px);
}
}
</style>

View File

@ -233,4 +233,59 @@ export default defineComponent({
}
}
}
._button,.mk-emoji,.text,span,._panel,.havbbuyv,.note,.fg {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 15s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
@keyframes wtf2 {
0% {
transform: scale(1, 1) translate(0px);
}
30% {
transform: translate(-8px, -9px);
}
60% {
transform: scale(1.1, 1.1) translate(10px, 10px);
}
90% {
transform: scale(0.9, 0.9) translate(-2px, 6px);
}
100% {
transform: scale(1, 1) translate(0px, 0px);
}
}
.signup {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 0.1s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
//2022-wtf
._button:hover {
animation-name: wtf;
animation-fill-mode: forwards;
animation-duration: 0.5s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@keyframes wtf {
0% {
transform: scale(1, 1) translate(0px);
}
10% {
transform: scale(0, 0) translate(2px);
}
100% {
transform: scale(1, 1) translate(900px);
}
}
</style>

View File

@ -24,7 +24,7 @@
<div class="desc" v-html="meta.description || $ts.headlineMisskey"></div>
</div>
<div class="action">
<MkButton inline gradate @click="signup()">{{ $ts.signup }}</MkButton>
<MkButton inline gradate class="signup" @click="signup()">{{ $ts.signup }}</MkButton>
<MkButton inline @click="signin()">{{ $ts.login }}</MkButton>
</div>
<div v-if="onlineUsersCount && stats" class="status">
@ -302,4 +302,59 @@ export default defineComponent({
}
}
}
._button,.mk-emoji,.text,span,._panel,.havbbuyv,.note,.fg {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 15s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
@keyframes wtf2 {
0% {
transform: scale(1, 1) translate(0px);
}
30% {
transform: translate(-8px, -9px);
}
60% {
transform: scale(1.1, 1.1) translate(10px, 10px);
}
90% {
transform: scale(0.9, 0.9) translate(-2px, 6px);
}
100% {
transform: scale(1, 1) translate(0px, 0px);
}
}
.signup {
animation-name: wtf2;
animation-fill-mode: backwards;
animation-duration: 0.1s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
//2022-wtf
._button:hover {
animation-name: wtf;
animation-fill-mode: forwards;
animation-duration: 0.5s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@keyframes wtf {
0% {
transform: scale(1, 1) translate(0px);
}
10% {
transform: scale(0, 0) translate(2px);
}
100% {
transform: scale(1, 1) translate(900px);
}
}
</style>

View File

@ -96,8 +96,16 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Driv
Array.from(input.files).map(async file => {
if (file.type.indexOf('video') == -1) {
os.toast('It is not video file');
if (file.type.indexOf('video/mp4') === 1) {
os.toast('It is mp4 file');
os.upload(file, defaultStore.state.uploadFolder).then(driveFiles => {
res(driveFiles);
}).catch(e => {
os.alert({
type: 'error',
text: e
});
});
return
}
@ -111,7 +119,7 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Driv
console.log('end convert video');
// @ts-ignore
let convertedVideoFile = new File([convertedVideoDataObj.data], convertedVideoDataObj.name + "." + convertedVideoDataObj.format);
let convertedVideoFile = await new File([convertedVideoDataObj.data], convertedVideoDataObj.name + "." + convertedVideoDataObj.format);
os.upload(convertedVideoFile, defaultStore.state.uploadFolder).then(driveFiles => {
res(driveFiles);

View File

@ -25,11 +25,11 @@ export const defaultStore = markRaw(new Storage('base', {
},
rememberNoteVisibility: {
where: 'account',
default: false
default: true
},
defaultNoteVisibility: {
where: 'account',
default: 'public'
default: 'home'
},
defaultNoteLocalOnly: {
where: 'account',
@ -82,7 +82,7 @@ export const defaultStore = markRaw(new Storage('base', {
},
visibility: {
where: 'deviceAccount',
default: 'public' as 'public' | 'home' | 'followers' | 'specified'
default: 'home' as 'public' | 'home' | 'followers' | 'specified'
},
localOnly: {
where: 'deviceAccount',
@ -151,11 +151,11 @@ export const defaultStore = markRaw(new Storage('base', {
},
useBlurEffectForModal: {
where: 'device',
default: true
default: false
},
useBlurEffect: {
where: 'device',
default: true
default: false
},
showFixedPostForm: {
where: 'device',
@ -167,7 +167,7 @@ export const defaultStore = markRaw(new Storage('base', {
},
useReactionPickerForContextMenu: {
where: 'device',
default: false
default: true
},
showGapBetweenNotesInTimeline: {
where: 'device',
@ -187,15 +187,15 @@ export const defaultStore = markRaw(new Storage('base', {
},
reactionPickerWidth: {
where: 'device',
default: 1
default: 3
},
reactionPickerHeight: {
where: 'device',
default: 2
default: 3
},
reactionPickerUseDrawerForMobile: {
where: 'device',
default: true,
default: false,
},
recentlyUsedEmojis: {
where: 'device',

View File

@ -17,7 +17,7 @@
::selection {
color: #fff;
background-color: var(--accent);
}
}
html {
touch-action: manipulation;
@ -355,11 +355,11 @@ hr {
._section:not(:empty) {
box-sizing: border-box;
padding: var(--root-margin, 32px);
@media (max-width: 500px) {
--root-margin: 10px;
}
& + ._section:not(:empty) {
border-top: solid 0.5px var(--divider);
}

View File

@ -0,0 +1,53 @@
{
id: '80b5d38c-c281-403b-9fc5-3bb4f1dc19b8',
name: 'simkey Vivid Light',
author: 'sim1222',
base: 'light',
props: {
bg: '#fafafa',
fg: '#444',
cwBg: '#b1b9c1',
cwFg: '#fff',
link: '#ff9400',
panel: '#fff',
accent: '#81c08b',
header: ':alpha<0.7<@panel',
infoBg: '#e5f5ff',
infoFg: '#72818a',
renote: '#659CC8',
shadow: 'rgba(0, 0, 0, 0.1)',
divider: 'rgba(0, 0, 0, 0.08)',
hashtag: '#92d400',
mention: '@accent',
modalBg: 'rgba(0, 0, 0, 0.3)',
buttonBg: 'rgba(0, 0, 0, 0.05)',
cwHoverBg: '#bbc4ce',
mentionMe: '@mention',
infoWarnBg: '#fff0db',
infoWarnFg: '#8f6e31',
navHoverFg: ':darken<17<@fg',
inputBorder: 'rgba(0, 0, 0, 0.1)',
inputBorderHover: 'rgba(0, 0, 0, 0.2)',
buttonHoverBg: 'rgba(0, 0, 0, 0.1)',
fgHighlighted: ':darken<3<@fg',
fgTransparent: ':alpha<0.5<@fg',
panelHighlight: ':darken<3<@panel',
listItemHoverBg: 'rgba(0, 0, 0, 0.03)',
scrollbarHandle: 'rgba(0, 0, 0, 0.2)',
wallpaperOverlay: 'rgba(255, 255, 255, 0.5)',
fgTransparentWeak: ':alpha<0.75<@fg',
panelHeaderDivider: '@divider',
scrollbarHandleHover: 'rgba(0, 0, 0, 0.4)',
X3: 'rgba(0, 0, 0, 0.05)',
X4: 'rgba(0, 0, 0, 0.1)',
X5: 'rgba(0, 0, 0, 0.05)',
X6: 'rgba(0, 0, 0, 0.25)',
X7: 'rgba(0, 0, 0, 0.05)',
X11: 'rgba(0, 0, 0, 0.1)',
X12: 'rgba(0, 0, 0, 0.1)',
X13: 'rgba(0, 0, 0, 0.15)',
},
}