1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-07-08 02:24:45 +02:00

Compare commits

..

12 Commits
4.2.0 ... 4.3.1

Author SHA1 Message Date
syuilo
127c126ef5 4.3.1 2018-06-19 08:03:39 +09:00
syuilo
01ff8d171a Fix bug 2018-06-19 08:03:00 +09:00
syuilo
b07911ec68 Fix 2018-06-19 07:56:26 +09:00
syuilo
f7959c073f 4.3.0 2018-06-18 17:25:45 +09:00
syuilo
6953970be7 Merge branch 'master' of https://github.com/syuilo/misskey 2018-06-18 17:25:23 +09:00
syuilo
1496fdaf80 nanka 2018-06-18 17:25:20 +09:00
syuilo
0fc034b1ac Merge pull request #1743 from Tosuke/patch-1
Replace "size" to "sizes"
2018-06-18 16:48:49 +09:00
tosuke
c3312c918e replace "size" to "sizes"
やらかした
2018-06-18 16:44:42 +09:00
syuilo
5a13964ced Fix bug 2018-06-18 16:34:26 +09:00
syuilo
fe07b1cb7f Merge pull request #1742 from Tosuke/patch-1
Fix path
2018-06-18 15:39:40 +09:00
tosuke
d805a70508 Fix path 2018-06-18 15:38:58 +09:00
syuilo
0f0009e0db Clean up 2018-06-18 15:12:29 +09:00
13 changed files with 41 additions and 23 deletions

View File

@@ -47,6 +47,7 @@ common:
ok: "OK"
update-available: "A new version of Misskey is now available({newer}, the current version is {current}). Reload the page to apply updates."
my-token-regenerated: "Your token has been renewed so you will be signed out."
i-like-sushi: "I like sushi rather than pudding"
widgets:
analog-clock: "Analog clock"
profile: "Profile"

View File

@@ -52,6 +52,7 @@ common:
ok: "わかった"
update-available: "Misskeyの新しいバージョンがあります({newer}。現在{current}を利用中)。ページを再度読み込みすると更新が適用されます。"
my-token-regenerated: "あなたのトークンが更新されたのでサインアウトします。"
i-like-sushi: "私は(プリンよりむしろ)寿司が好き"
widgets:
analog-clock: "アナログ時計"

View File

@@ -1,8 +1,8 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "4.2.0",
"clientVersion": "1.0.6620",
"version": "4.3.1",
"clientVersion": "1.0.6630",
"codename": "nighthike",
"main": "./built/index.js",
"private": true,

View File

@@ -8,7 +8,10 @@
<img v-if="reaction == 'congrats'" src="/assets/reactions/congrats.png" alt="%i18n:common.reactions.congrats%">
<img v-if="reaction == 'angry'" src="/assets/reactions/angry.png" alt="%i18n:common.reactions.angry%">
<img v-if="reaction == 'confused'" src="/assets/reactions/confused.png" alt="%i18n:common.reactions.confused%">
<img v-if="reaction == 'pudding'" src="/assets/reactions/pudding.png" alt="%i18n:common.reactions.pudding%">
<template v-if="reaction == 'pudding'">
<img v-if="$store.getters.isSignedIn && $store.state.settings.iLikeSushi" src="/assets/reactions/sushi.png" alt="%i18n:common.reactions.pudding%">
<img v-else src="/assets/reactions/pudding.png" alt="%i18n:common.reactions.pudding%">
</template>
</span>
</template>

View File

@@ -45,6 +45,7 @@
<mk-switch v-model="darkmode" text="%i18n:@dark-mode%"/>
<mk-switch v-model="$store.state.settings.circleIcons" @change="onChangeCircleIcons" text="%i18n:@circle-icons%"/>
<mk-switch v-model="$store.state.settings.gradientWindowHeader" @change="onChangeGradientWindowHeader" text="%i18n:@gradient-window-header%"/>
<mk-switch v-model="$store.state.settings.iLikeSushi" @change="onChangeILikeSushi" text="%i18n:common.i-like-sushi%"/>
</div>
<mk-switch v-model="$store.state.settings.showPostFormOnTopOfTl" @change="onChangeShowPostFormOnTopOfTl" text="%i18n:@post-form-on-timeline%"/>
<mk-switch v-model="$store.state.settings.showReplyTarget" @change="onChangeShowReplyTarget" text="%i18n:@show-reply-target%"/>
@@ -362,6 +363,12 @@ export default Vue.extend({
value: v
});
},
onChangeILikeSushi(v) {
this.$store.dispatch('settings/set', {
key: 'iLikeSushi',
value: v
});
},
onChangeGradientWindowHeader(v) {
this.$store.dispatch('settings/set', {
key: 'gradientWindowHeader',

View File

@@ -13,7 +13,7 @@
<h1 v-else><img :src="$store.state.device.darkmode ? 'assets/title.dark.svg' : 'assets/title.light.svg'" alt="Misskey"></h1>
<p class="powerd-by" v-if="name">powerd by <b>Misskey</b></p>
<p class="desc" v-html="description || '%i18n:common.about%'"></p>
<a ref="signup" @click="signup">%i18n:@signup%</a>
<a ref="signup" @click="signup">📦 %i18n:@signup%</a>
</div>
<div class="login">
<mk-signin/>

View File

@@ -12,6 +12,7 @@
<ui-switch v-model="darkmode">%i18n:@dark-mode%</ui-switch>
<ui-switch v-model="$store.state.settings.circleIcons" @change="onChangeCircleIcons">%i18n:@circle-icons%</ui-switch>
<ui-switch v-model="$store.state.settings.iLikeSushi" @change="onChangeILikeSushi">%i18n:common.i-like-sushi%</ui-switch>
<div>
<div>%i18n:@timeline%</div>
@@ -174,6 +175,13 @@ export default Vue.extend({
});
},
onChangeILikeSushi(v) {
this.$store.dispatch('settings/set', {
key: 'iLikeSushi',
value: v
});
},
onChangeShowReplyTarget(v) {
this.$store.dispatch('settings/set', {
key: 'showReplyTarget',

View File

@@ -18,7 +18,8 @@ const defaultSettings = {
showRenotedMyNotes: true,
loadRemoteMedia: true,
disableViaMobile: false,
memo: null
memo: null,
iLikeSushi: false
};
const defaultDeviceSettings = {

View File

@@ -6,33 +6,33 @@
"background_color": "#313a42",
"icons": [
{
"src": "/assets/icon/16.png",
"size": "16x16",
"src": "/assets/icons/16.png",
"sizes": "16x16",
"type": "image/png"
},
{
"src": "/assets/icon/32.png",
"size": "32x32",
"src": "/assets/icons/32.png",
"sizes": "32x32",
"type": "image/png"
},
{
"src": "/assets/icon/64.png",
"size": "64x64",
"src": "/assets/icons/64.png",
"sizes": "64x64",
"type": "image/png"
},
{
"src": "/assets/icon/128.png",
"size": "128x128",
"src": "/assets/icons/128.png",
"sizes": "128x128",
"type": "image/png"
},
{
"src": "/assets/icon/192.png",
"size": "192x192",
"src": "/assets/icons/192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/assets/icon/256.png",
"size": "256x256",
"src": "/assets/icons/256.png",
"sizes": "256x256",
"type": "image/png"
}
],

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

@@ -54,11 +54,11 @@ export default async function renderNote(note: INote, dive = true): Promise<any>
? [`${attributedTo}/followers`].concat(mentions)
: [];
const mentionedUsers = await User.find({
const mentionedUsers = note.mentions ? await User.find({
_id: {
$in: note.mentions
}
});
}) : [];
const hashtagTags = (note.tags || []).map(tag => renderHashtag(tag));
const mentionTags = mentionedUsers.map(u => renderMention(u));

View File

@@ -45,7 +45,6 @@ router.post('/signin', require('./private/signin').default);
router.use(require('./service/github').routes());
router.use(require('./service/twitter').routes());
router.use(require('./bot/interfaces/line').routes());
// Register router
app.use(router.routes());

View File

@@ -49,9 +49,7 @@ const router = new Router();
//#region static assets
router.get('/assets/*', async ctx => {
// 互換性のため
const path = ctx.path.replace('.raw.js', '.js').replace('.min.js', '.js');
await send(ctx, path, {
await send(ctx, ctx.path, {
root: client,
maxage: ms('7 days'),
immutable: true