Compare commits

...

140 Commits

Author SHA1 Message Date
7a6b524f9d fix: cant reaction at note detailed 2022-09-12 02:37:27 +09:00
ThinaticSystem
79311124cb 22.09.1 2022-09-12 01:32:54 +09:00
ThinaticSystem
384afefde2 Merge branch 'Thinatic/react-with-renote' into honi-dev 2022-09-12 01:31:51 +09:00
ThinaticSystem
84d6f6634a fix tab index 2022-09-12 01:31:26 +09:00
ThinaticSystem
7d11634c7c 22.09.0 2022-09-12 01:16:08 +09:00
ThinaticSystem
0b707da157 style 2022-09-12 01:15:16 +09:00
ThinaticSystem
46a310292f fix emojiPicker 2022-09-12 01:14:34 +09:00
ThinaticSystem
52ba77a8e1 fix type 2022-09-12 01:07:22 +09:00
ThinaticSystem
c494eec931 毎回withRenoteをfalseに 2022-09-12 00:44:50 +09:00
ThinaticSystem
f9f72d954c fix 2022-09-12 00:25:22 +09:00
ThinaticSystem
a8c7c0745c i18n 2022-09-12 00:11:36 +09:00
ThinaticSystem
14f4c78aa9 うごいた 2022-09-12 00:02:31 +09:00
ThinaticSystem
b6554a4f53 Merge Original Release 2022-09-11 22:32:56 +09:00
ThinaticSystem
9bfa6a949c Merge Original Release 2022-08-11 10:30:11 +09:00
ThinaticSystem
4a9c68401a Merge Original Release 2022-08-07 01:44:27 +09:00
ThinaticSystem
b035f82e7d 22.07.10 2022-07-24 16:30:46 +09:00
ThinaticSystem
bad1ec7833 Merge Original Release 2022-07-24 11:54:48 +09:00
ThinaticSystem
addf1f7a26 Merge Original Release 2022-07-17 15:56:17 +09:00
ThinaticSystem
81f79c86c4 Merge Original Release 2022-07-16 23:54:33 +09:00
ThinaticSystem
3acbd5eda7 Merge Original Release 2022-07-16 18:24:04 +09:00
ThinaticSystem
a0ccda2c61 ; 2022-07-16 18:22:42 +09:00
ThinaticSystem
2484fbc9ed Merge Original Release 2022-07-15 22:54:20 +09:00
ThinaticSystem
cdc3fe81a0 Merge Original Release 2022-07-14 06:11:16 +09:00
ThinaticSystem
23fd790231 Merge Original Release 2022-07-09 18:45:10 +09:00
ThinaticSystem
6690fd8443 22.07.2 2022-07-09 18:15:23 +09:00
ThinaticSystem
9ebed95fb6 Revert "Fix notification (#2654)"
This reverts commit 09cb1bba713072e075858a24eee2712076793dde.
2022-07-09 18:13:20 +09:00
ThinaticSystem
d03e9a4da1 Revert "on push"
This reverts commit 21ec16b50f948cdc8e960424454eb208e2023656.
2022-07-09 18:13:11 +09:00
ThinaticSystem
09c9bdb95d 22.07.1 2022-07-09 18:11:47 +09:00
mei23
004cf8fa91 Fix massive update notification parameters 2022-07-09 18:07:15 +09:00
MeiMei
09cb1bba71 Fix notification (#2654) 2022-07-09 18:07:15 +09:00
mei23
21ec16b50f on push 2022-07-09 18:07:15 +09:00
ThinaticSystem
66d92ea4fe Merge Original Release 2022-07-07 22:04:46 +09:00
ThinaticSystem
628f91a96c 22.06.3 2022-06-20 06:52:12 +09:00
ThinaticSystem
3b49cb4e27 Merge branch 'Thinatic/feature-aiscript-restapi' into honi-dev 2022-06-20 00:47:13 +09:00
ThinaticSystem
4f95837240 ステータスコードも返すように 2022-06-19 23:40:38 +09:00
ThinaticSystem
5042354ce0 🧹 2022-06-19 22:08:30 +09:00
ThinaticSystem
2adbc3c0c8 返り値にヘッダーも付加 2022-06-19 22:01:29 +09:00
ThinaticSystem
20c0b2bedf remove parsing function 2022-06-19 21:17:36 +09:00
ThinaticSystem
b7f2b6c322 オプションをオブジェクトで受けるように 2022-06-19 20:52:46 +09:00
ThinaticSystem
3fbfd1a145 Content-Typeの判定をゆるふわに 2022-06-19 04:25:28 +09:00
ThinaticSystem
16717567b7 format, add comments 2022-06-19 00:36:55 +09:00
ThinaticSystem
fbe42927df おこがましい名前に変更 2022-06-19 00:29:58 +09:00
ThinaticSystem
6085ae1b87 下に移動 2022-06-19 00:28:55 +09:00
ThinaticSystem
8bc8f5551c add response parser 2022-06-19 00:27:06 +09:00
ThinaticSystem
83d0a84a6d とりあえず 2022-06-18 21:53:05 +09:00
ThinaticSystem
c7e7d8e822 Merge Original Release 2022-06-13 05:11:59 +09:00
ThinaticSystem
10d03e7e21 Merge branch 'honi-dev' of github.com:ThinaticSystem/honisskey into honi-dev 2022-06-11 19:48:17 +09:00
ThinaticSystem
d1f0cca197 feat: digging after renote 2022-06-11 19:47:30 +09:00
しなちくシステム
76dfeec604
Merge pull request #70 from ThinaticSystem/Thinatic/feature-renote-impressions-digger
feat: RN先の言及を見るボタン
2022-06-11 19:46:55 +09:00
ThinaticSystem
f5d9322d45 Merge Original Release 2022-06-11 19:42:58 +09:00
ThinaticSystem
9a9e77a44b user.url: null対策 2022-05-21 06:46:25 +09:00
ThinaticSystem
283f0b6d62 refactor 2022-05-21 06:38:15 +09:00
ThinaticSystem
d3e4d76148 最新の投稿が取得済のユーザーの場合はリノート詳細ページを表示するように 2022-05-21 06:27:37 +09:00
ThinaticSystem
7ae9d4163f とりあえず 2022-05-20 23:38:04 +09:00
ThinaticSystem
1438b2a3d7 version 2022-05-12 03:55:19 +09:00
ThinaticSystem
5acc7a4c97 Merge Original Release 2022-05-12 03:41:00 +09:00
しなちくシステム
7c1e28d301
Merge pull request #69 from ThinaticSystem:Thinatic/quicktime--play-on-chrome-win
video/quicktime再生
2022-05-12 03:38:52 +09:00
ThinaticSystem
bacdacee99 できた 2022-05-12 03:36:46 +09:00
ThinaticSystem
b40d9370af Merge Original Release 2022-04-24 05:21:16 +09:00
ThinaticSystem
af12409036 Merge remote-tracking branch 'upstream/master' 2022-04-24 05:20:29 +09:00
ThinaticSystem
c90703e4f6 Merge Original Release 2022-04-11 23:23:12 +09:00
ThinaticSystem
89c55cb72f Merge remote-tracking branch 'upstream/master' 2022-04-11 23:22:37 +09:00
ThinaticSystem
395c8aeeb2 Merge Original Release 2022-04-08 17:01:08 +09:00
ThinaticSystem
b054c407d9 Merge remote-tracking branch 'upstream/master' 2022-04-08 17:00:09 +09:00
ThinaticSystem
3c73d602df Merge branch 'honi-dev' of github.com:ThinaticSystem/honisskey into honi-dev 2022-04-05 04:50:19 +09:00
ThinaticSystem
0b0ef34c1c Merge Original Release 2022-04-05 04:39:50 +09:00
ThinaticSystem
3df7ee30b1 Merge remote-tracking branch 'upstream/master' 2022-04-02 16:57:51 +09:00
ThinaticSystem
f95f8a1692 Merge remote-tracking branch 'upstream/master' 2022-04-02 15:48:28 +09:00
しなちくシステム
7ed9bc8501
Merge pull request #65 from ThinaticSystem:Thinatic/fix-contributing.md
fix contributing.md(developブランチ→honi-devブランチ)
2022-04-01 17:32:01 +09:00
ThinaticSystem
e07304067e 2022-04-01 17:28:55 +09:00
しなちくシステム
a38e1cda40
Merge pull request #64 from ThinaticSystem:Thinatic/perf-april-fool-evaluation
perf エイプリルフールのif文評価を高速化
2022-04-01 17:21:50 +09:00
ThinaticSystem
e5b3ccc97b エイプリルフールの式評価を高速化 2022-04-01 17:06:08 +09:00
しなちくシステム
47ac20d027
Merge pull request #63 from ThinaticSystem/Thinatic/feat-april-fool
feature エイプリルフール
2022-04-01 02:52:24 +09:00
ThinaticSystem
eeb97d1509 2022-04-01 02:29:21 +09:00
ThinaticSystem
59c00da57b 非ログイン画面の右上gitリポジトリリンク差し替え 2022-03-26 14:37:41 +09:00
ThinaticSystem
1255b195e3 Merge remote-tracking branch 'upstream/master' 2022-03-12 19:36:54 +09:00
ThinaticSystem
8cfd9a69c0 Merge remote-tracking branch 'upstream/master' 2022-03-09 23:05:29 +09:00
ThinaticSystem
56c8428ac2 テーマカラー変更 2022-02-14 09:12:02 +09:00
ThinaticSystem
d0981f5053 Merge remote-tracking branch 'upstream/master' 2022-02-13 00:55:20 +09:00
ThinaticSystem
78139a95a0 Merge remote-tracking branch 'upstream/master' 2022-02-11 22:18:02 +09:00
ThinaticSystem
33c6c8cc6a Merge remote-tracking branch 'upstream/master' 2022-02-11 21:44:11 +09:00
ThinaticSystem
8762aa719f Merge remote-tracking branch 'upstream/master' 2022-02-11 19:50:01 +09:00
ThinaticSystem
7714309988 Merge remote-tracking branch 'upstream/master' 2022-02-11 19:14:57 +09:00
ThinaticSystem
770e8f56d3 Merge remote-tracking branch 'upstream/master' 2022-02-10 02:23:18 +09:00
ThinaticSystem
3617625ca4 マージミス 2022-02-09 14:54:47 +09:00
ThinaticSystem
bc883386e4 Merge remote-tracking branch 'upstream/master' 2022-02-09 14:51:18 +09:00
ThinaticSystem
07c1987282 マージ間違えた 2022-02-02 01:47:23 +09:00
ThinaticSystem
79bc4defdf Merge remote-tracking branch 'upstream/master' 2022-02-02 01:35:23 +09:00
ThinaticSystem
804ffd2e2e Merge remote-tracking branch 'upstream/master' 2022-01-29 05:38:43 +09:00
ThinaticSystem
6e322ce3d2 マージまちがえた™ 2022-01-27 03:04:27 +09:00
ThinaticSystem
0008b18d7d Merge remote-tracking branch 'upstream/master' 2022-01-27 02:59:00 +09:00
ThinaticSystem
b2ffdc0a34 Merge remote-tracking branch 'upstream/master' 2021-12-29 17:26:11 +09:00
ThinaticSystem
a4d86fe745 Merge remote-tracking branch 'upstream/master' 2021-12-29 17:24:48 +09:00
ThinaticSystem
013d25df1f Merge remote-tracking branch 'upstream/master' 2021-12-18 21:00:52 +09:00
ThinaticSystem
89f4112aad Merge remote-tracking branch 'upstream/master' 2021-12-18 00:29:17 +09:00
ThinaticSystem
25204471c9 Merge remote-tracking branch 'upstream/master' 2021-12-17 16:19:25 +09:00
ThinaticSystem
c84bdb18e3 Merge remote-tracking branch 'upstream/master' 2021-12-14 23:29:22 +09:00
ThinaticSystem
8fae2356e3 Merge remote-tracking branch 'upstream/master' 2021-12-14 23:14:43 +09:00
ThinaticSystem
56ee66a20d Merge remote-tracking branch 'upstream/master' 2021-12-14 23:06:04 +09:00
ThinaticSystem
0ea466a6ad Merge remote-tracking branch 'upstream/master' 2021-12-14 22:42:15 +09:00
ThinaticSystem
0bb29d10ba Merge remote-tracking branch 'upstream/master' 2021-12-03 22:54:02 +09:00
ThinaticSystem
f20d8a8f3f Merge remote-tracking branch 'upstream/master' 2021-11-19 20:48:40 +09:00
ThinaticSystem
659be968cf Merge remote-tracking branch 'upstream/master' 2021-11-13 17:10:20 +09:00
ThinaticSystem
965f9dee1b Merge remote-tracking branch 'upstream/master' into Thinatic/12.96 2021-11-13 15:28:17 +09:00
ThinaticSystem
104b983e04 remove isbot switch in userSetting 2021-11-07 09:51:10 +09:00
ThinaticSystem
e820a8b44f Merge remote-tracking branch 'upstream/master' 2021-11-02 05:29:18 +09:00
ThinaticSystem
3dc39f3730 Merge remote-tracking branch 'upstream/master' 2021-10-25 05:56:53 +09:00
ThinaticSystem
143dec52ce Merge remote-tracking branch 'upstream/master' 2021-10-25 03:09:20 +09:00
ThinaticSystem
49ca370a9a Merge remote-tracking branch 'upstream/master' 2021-10-24 21:21:06 +09:00
ThinaticSystem
cd86a52571 Merge remote-tracking branch 'upstream/master' 2021-10-23 02:50:04 +09:00
ThinaticSystem
b8c1c2d822 Merge remote-tracking branch 'upstream/master' 2021-10-23 01:14:00 +09:00
ThinaticSystem
9b8c7a6d5d Merge tag '12.92.0' 2021-10-16 19:57:27 +09:00
ThinaticSystem
920919d453 ja-HN お手紙 2021-10-10 17:55:39 +09:00
ThinaticSystem
0bf5e44a31 Merge remote-tracking branch 'upstream/master' 2021-09-22 22:55:42 +09:00
ThinaticSystem
8b5b6c150e format 2021-09-12 11:04:05 +09:00
ThinaticSystem
cc47190aa8 toriaezu 2021-09-12 10:59:51 +09:00
ThinaticSystem
e50e6734b5 Merge branch 'Thinatic/fixSidebar.postCSS' 2021-09-05 17:40:57 +09:00
ThinaticSystem
3857ad73af remove background 2021-09-05 17:20:57 +09:00
ThinaticSystem
42691d6b06 マージミス 2021-09-05 16:31:44 +09:00
ThinaticSystem
e9351dc7d0 Merge remote-tracking branch 'upstream/master' 2021-09-05 16:29:32 +09:00
ThinaticSystem
667ef0e49f Merge remote-tracking branch 'upstream/master' 2021-09-04 20:42:36 +09:00
ThinaticSystem
64552ef9c7 Merge remote-tracking branch 'upstream/master' 2021-08-24 14:43:11 +09:00
ThinaticSystem
30fbcf9b5b Merge remote-tracking branch 'upstream/master' 2021-08-24 13:21:52 +09:00
ThinaticSystem
03825a3ff9 Merge remote-tracking branch 'upstream/master' 2021-08-22 12:16:46 +09:00
ThinaticSystem
2a19e099b2 Merge remote-tracking branch 'upstream/master' 2021-08-18 06:20:06 +09:00
ThinaticSystem
55b53b30b0 もれ ja-HN.yml 2021-08-12 22:18:28 +09:00
ThinaticSystem
4c0dca8c07 typo ja-JP.yml 2021-08-12 22:09:42 +09:00
ThinaticSystem
6fd77a071d fix サインアップ画面のパスワード再入力をいい感じに 2021-08-12 20:10:16 +09:00
ThinaticSystem
6dfa0a8099 ja-HNをデフォルトUI言語に 2021-08-12 19:41:37 +09:00
ThinaticSystem
c111020ec7 ja-HN.yml のじゃ抜け修正 2021-08-12 17:56:58 +09:00
ThinaticSystem
1520517170 ja-HN.yml のじゃロリ 2021-08-12 17:34:30 +09:00
しなちくシステム
d62ea8ff80
ja-HN.yml あなた -> おぬし 2021-08-12 16:19:55 +09:00
ThinaticSystem
dc96ada2bb Merge remote-tracking branch 'upstream/master' 2021-08-12 12:57:02 +09:00
ThinaticSystem
caae47a9fd Merge remote-tracking branch 'upstream/master' 2021-08-12 08:19:43 +09:00
ThinaticSystem
d65d7d1568 package.json thinachize 2021-08-12 08:14:05 +09:00
ThinaticSystem
6385cca64c Merge remote-tracking branch 'upstream/master' 2021-08-02 21:56:19 +09:00
ThinaticSystem
95cdf7ad7e Fix "Misskey" -> "Honisskey" 2021-07-27 16:19:25 +09:00
ThinaticSystem
caad4424b3 Merge branch 'honi'
konyanyachiwaize, ja-HN
2021-07-25 17:48:33 +09:00
ThinaticSystem
27cdcd8d34 Add ja-HN 2021-07-25 16:55:59 +09:00
ThinaticSystem
f6107f646e Add konyanyachiwaize 2021-07-19 02:37:11 +09:00
28 changed files with 1775 additions and 39 deletions

View File

@ -30,8 +30,10 @@ Also, when you start implementation, assign yourself to the Issue (if you cannot
## Well-known branches
- **`master`** branch is tracking the latest release and used for production purposes.
- **`develop`** branch is where we work for the next release.
- **`honi-dev`** branch is where we work for the next release.
- When you create a PR, basically target it to this branch.
- **`develop`** branch is where original misskey team work for the next release.
- You **must not** target your PR to this branch.
- **`l10n_develop`** branch is reserved for localization management.
## Creating a PR

View File

@ -107,6 +107,7 @@ clickToShow: "Click to show"
sensitive: "NSFW"
add: "Add"
reaction: "Reactions"
reactWithRenote: "Renote the note after reacting to it"
reactionSetting: "Reactions to show in the reaction picker"
reactionSettingDescription2: "Drag to reorder, click to delete, press \"+\" to add."
rememberNoteVisibility: "Remember note visibility settings"

View File

@ -25,6 +25,7 @@ const languages = [
'it-IT',
'ja-JP',
'ja-KS',
'ja-HN',
'kab-KAB',
'kn-IN',
'ko-KR',
@ -53,11 +54,12 @@ const clean = (text) => text.replace(new RegExp(String.fromCodePoint(0x08), 'g')
const locales = languages.reduce((a, c) => (a[c] = yaml.load(clean(fs.readFileSync(`${__dirname}/${c}.yml`, 'utf-8'))) || {}, a), {});
module.exports = Object.entries(locales)
.reduce((a, [k ,v]) => (a[k] = (() => {
.reduce((a, [k, v]) => (a[k] = (() => {
const [lang] = k.split('-');
switch (k) {
case 'ja-JP': return v;
case 'ja-KS':
case 'ja-HN':
case 'en-US': return merge(locales['ja-JP'], v);
default: return merge(
locales['ja-JP'],

1683
locales/ja-HN.yml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -107,6 +107,7 @@ clickToShow: "クリックして表示"
sensitive: "閲覧注意"
add: "追加"
reaction: "リアクション"
reactWithRenote: "ついでにRenoteする"
reactionSetting: "ピッカーに表示するリアクション"
reactionSettingDescription2: "ドラッグして並び替え、クリックして削除、+を押して追加します。"
rememberNoteVisibility: "公開範囲を記憶する"

View File

@ -1,10 +1,10 @@
{
"name": "misskey",
"version": "12.119.0",
"name": "honisskey",
"version": "12.119.0-22.09.1",
"codename": "indigo",
"repository": {
"type": "git",
"url": "https://github.com/misskey-dev/misskey.git"
"url": "https://github.com/ThinaticSystem/honisskey.git"
},
"private": true,
"scripts": {

View File

@ -2,6 +2,7 @@ export function nyaize(text: string): string {
return text
// ja-JP
.replace(/な/g, 'にゃ').replace(/ナ/g, 'ニャ').replace(/ナ/g, 'ニャ')
.replace(/(?<=こ)んにち[は|わ]/g, 'にゃにゃちわ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ').replace(/(?<=コ)ンニチ[ハ|ワ]/g, 'ニャニャチワ')
// en-US
.replace(/(?<=n)a/gi, x => x === 'A' ? 'YA' : 'ya')
.replace(/(?<=morn)ing/gi, x => x === 'ING' ? 'YAN' : 'yan')

View File

@ -33,9 +33,9 @@
let lang = localStorage.getItem('lang');
if (lang == null || !supportedLangs.includes(lang)) {
if (supportedLangs.includes(navigator.language)) {
lang = navigator.language;
lang = (navigator.language === 'ja-JP') ? 'ja-HN' : navigator.language;
} else {
lang = supportedLangs.find(x => x.split('-')[0] === navigator.language);
lang = (navigator.language === 'ja') ? 'ja-HN' : supportedLangs.find(x => x.split('-')[0] === navigator.language);
// Fallback
if (lang == null) lang = 'en-US';

View File

@ -4,7 +4,7 @@
"start_url": "/",
"display": "standalone",
"background_color": "#313a42",
"theme_color": "#86b300",
"theme_color": "#77b58c",
"icons": [
{
"src": "/static-assets/icons/192.png",

View File

@ -23,8 +23,8 @@ html
meta(charset='utf-8')
meta(name='application-name' content='Misskey')
meta(name='referrer' content='origin')
meta(name='theme-color' content= themeColor || '#86b300')
meta(name='theme-color-orig' content= themeColor || '#86b300')
meta(name='theme-color' content= themeColor || '#77b58c')
meta(name='theme-color-orig' content= themeColor || '#77b58c')
meta(property='twitter:card' content='summary')
meta(property='og:site_name' content= instanceName || 'Misskey')
meta(name='viewport' content='width=device-width, initial-scale=1')

View File

@ -51,7 +51,7 @@ export async function sendEmail(to: string, subject: string, html: string, text:
a {
text-decoration: none;
color: #86b300;
color: #77b58c;
}
a:hover {
text-decoration: underline;
@ -65,7 +65,7 @@ export async function sendEmail(to: string, subject: string, html: string, text:
}
main > header {
padding: 32px;
background: #86b300;
background: #77b58c;
}
main > header > img {
max-width: 128px;

View File

@ -74,6 +74,7 @@
<button class="_button tab" :class="{ active: tab === 'unicode' }" @click="tab = 'unicode'"><i class="fas fa-leaf fa-fw"></i></button>
<button class="_button tab" :class="{ active: tab === 'tags' }" @click="tab = 'tags'"><i class="fas fa-hashtag fa-fw"></i></button>
</div>
<MkSwitch v-if="props.asReactionPicker" v-model="withRenote" class="withRenote">{{ i18n.ts.reactWithRenote }}</MkSwitch>
</div>
</template>
@ -90,6 +91,7 @@ import { deviceKind } from '@/scripts/device-kind';
import { emojiCategories, instance } from '@/instance';
import { i18n } from '@/i18n';
import { defaultStore } from '@/store';
import MkSwitch from '@/components/form/switch.vue';
const props = withDefaults(defineProps<{
showPinned?: boolean;
@ -101,10 +103,11 @@ const props = withDefaults(defineProps<{
});
const emit = defineEmits<{
(ev: 'chosen', v: string): void;
(ev: 'chosen', v: { reaction: string, withRenote: boolean } | string): void;
}>();
const search = ref<HTMLInputElement>();
const withRenote = ref<boolean>(true);
const emojis = ref<HTMLDivElement>();
const {
@ -278,6 +281,7 @@ function focus() {
function reset() {
if (emojis.value) emojis.value.scrollTop = 0;
q.value = '';
withRenote.value = false; // Renotefalse
}
function getKey(emoji: string | Misskey.entities.CustomEmoji | UnicodeEmojiDef): string {
@ -294,7 +298,7 @@ function chosen(emoji: any, ev?: MouseEvent) {
}
const key = getKey(emoji);
emit('chosen', key);
emit('chosen', (props.asReactionPicker) ? { reaction: key, withRenote: withRenote.value } : key);
// 使
if (!pinned.value.includes(key)) {
@ -452,6 +456,10 @@ defineExpose({
}
}
> .withRenote {
padding: 12px;
}
> .tabs {
display: flex;
display: none;

View File

@ -51,8 +51,8 @@ const emit = defineEmits<{
const modal = ref<InstanceType<typeof MkModal>>();
const picker = ref<InstanceType<typeof MkEmojiPicker>>();
function chosen(emoji: any) {
emit('done', emoji);
function chosen(results: { reaction: string, withRenote: boolean }) {
emit('done', results);
modal.value?.close();
}

View File

@ -16,7 +16,7 @@
>
<source
:src="video.url"
:type="video.type"
:type="(video.type === 'video/quicktime') ? null : video.type"
>
</video>
<i class="fas fa-eye-slash" @click="hide = true"></i>

View File

@ -207,11 +207,17 @@ function reply(viaKeyboard = false): void {
function react(viaKeyboard = false): void {
pleaseLogin();
blur();
reactionPicker.show(reactButton.value, reaction => {
reactionPicker.show(reactButton.value, results => {
os.api('notes/reactions/create', {
noteId: appearNote.id,
reaction: reaction,
reaction: results.reaction,
});
if (results.withRenote) {
os.api('notes/create', {
renoteId: appearNote.id,
isRenote: true,
});
}
}, () => {
focus();
});

View File

@ -215,7 +215,7 @@ function react(viaKeyboard = false): void {
reactionPicker.show(reactButton.value, reaction => {
os.api('notes/reactions/create', {
noteId: appearNote.id,
reaction: reaction,
reaction: reaction.reaction,
});
}, () => {
focus();

View File

@ -61,6 +61,7 @@
<Mfm :text="getNoteSummary(notification.note)" :plain="true" :nowrap="!full" :custom-emojis="notification.note.emojis"/>
<i class="fas fa-quote-right"></i>
</MkA>
<button v-if="notification.type === 'renote'" class="_textButton" @click="openRenoteDestination(notification)">RN先を覗く👀</button>
<span v-if="notification.type === 'follow'" class="text" style="opacity: 0.6;">{{ i18n.ts.youGotNewFollower }}<div v-if="full"><MkFollowButton :user="notification.user" :full="true"/></div></span>
<span v-if="notification.type === 'followRequestAccepted'" class="text" style="opacity: 0.6;">{{ i18n.ts.followRequestAccepted }}</span>
<span v-if="notification.type === 'receiveFollowRequest'" class="text" style="opacity: 0.6;">{{ i18n.ts.receiveFollowRequest }}<div v-if="full && !followRequestDone"><button class="_textButton" @click="acceptFollowRequest()">{{ i18n.ts.accept }}</button> | <button class="_textButton" @click="rejectFollowRequest()">{{ i18n.ts.reject }}</button></div></span>
@ -158,6 +159,21 @@ useTooltip(reactionRef, (showing) => {
targetElement: reactionRef.value.$el,
}, {}, 'closed');
});
function openRenoteDestination(renoteNotification: misskey.entities.Notification): void {
if (renoteNotification.type !== 'renote') {
throw new Error("openRenoteDestination()の引数には type: 'renote' のNotificationが渡される必要があります");
}
os.api('users/show', {userId: renoteNotification.user.id}).then((user: misskey.entities.UserDetailed) => {
if (user.host != null && user.followersCount === 0) { // 稿
if (user.url === null) { throw new Error('User page URL is Null'); };
window.open(user.url, '_blank', 'rel="nofollow noopener"');
} else {
os.pageWindow(notePage(renoteNotification.note));
}
});
}
</script>
<style lang="scss" scoped>

View File

@ -40,7 +40,7 @@ import { getUrlWithoutLoginId } from '@/scripts/login-id';
import { getAccountFromId } from '@/scripts/get-account-from-id';
(async () => {
console.info(`Misskey v${version}`);
console.info(`Honisskey v${version}`);
if (_DEV_) {
console.warn('Development mode!!!');

View File

@ -19,7 +19,7 @@
</div>
<FormSection>
<div class="_formLinks">
<FormLink to="https://github.com/misskey-dev/misskey" external>
<FormLink to="https://github.com/ThinaticSystem/honisskey" external>
<template #icon><i class="fas fa-code"></i></template>
{{ i18n.ts._aboutMisskey.source }}
<template #suffix>GitHub</template>

View File

@ -188,8 +188,8 @@ export default defineComponent({
pointRadius: 0,
tension: 0,
borderWidth: 2,
borderColor: '#86b300',
backgroundColor: alpha('#86b300', 0.1),
borderColor: '#77b58c',
backgroundColor: alpha('#77b58c', 0.1),
data: []
}, {
label: 'MEM (active)',

View File

@ -55,7 +55,6 @@
<FormSwitch v-model="profile.isCat" class="_formBlock">{{ i18n.ts.flagAsCat }}<template #caption>{{ i18n.ts.flagAsCatDescription }}</template></FormSwitch>
<FormSwitch v-model="profile.showTimelineReplies" class="_formBlock">{{ i18n.ts.flagShowTimelineReplies }}<template #caption>{{ i18n.ts.flagShowTimelineRepliesDescription }} {{ i18n.ts.reflectMayTakeTime }}</template></FormSwitch>
<FormSwitch v-model="profile.isBot" class="_formBlock">{{ i18n.ts.flagAsBot }}<template #caption>{{ i18n.ts.flagAsBotDescription }}</template></FormSwitch>
</div>
</template>

View File

@ -39,5 +39,18 @@ export function createAiScriptEnv(opts) {
utils.assertString(key);
return utils.jsToVal(JSON.parse(localStorage.getItem('aiscript:' + opts.storageKey + ':' + key.value)));
}),
'Mk:fetch': values.FN_NATIVE(async ([resource, init]) => {
utils.assertString(resource);
const response = init ? await fetch(resource.value, utils.valToJs(init)) : await fetch(resource.value);
const returnObject = {
status: response.status,
headers: new Object(),
body: await response.text(),
};
response.headers.forEach((value, key) => {
returnObject.headers[key] = value;
});
return utils.jsToVal(returnObject);
}),
};
}

View File

@ -4,7 +4,7 @@ import { popup } from '@/os';
class ReactionPicker {
private src: Ref<HTMLElement | null> = ref(null);
private manualShowing = ref(false);
private onChosen?: (reaction: string) => void;
private onChosen?: ({ reaction: string, withRenote: boolean }) => void;
private onClosed?: () => void;
constructor() {
@ -17,8 +17,8 @@ class ReactionPicker {
asReactionPicker: true,
manualShowing: this.manualShowing
}, {
done: reaction => {
this.onChosen!(reaction);
done: results => {
this.onChosen!({ reaction: results.reaction, withRenote: results.withRenote });
},
close: () => {
this.manualShowing.value = false;

View File

@ -9,7 +9,7 @@
kind: 'dark',
props: {
accent: '#86b300',
accent: '#77b58c',
accentDarken: ':darken<10<@accent',
accentLighten: ':lighten<10<@accent',
accentedBg: ':alpha<0.15<@accent',
@ -43,7 +43,7 @@
hashtag: '#ff9156',
mention: '@accent',
mentionMe: '@mention',
renote: '#229e82',
renote: '#229e92',
modalBg: 'rgba(0, 0, 0, 0.5)',
scrollbarHandle: 'rgba(255, 255, 255, 0.2)',
scrollbarHandleHover: 'rgba(255, 255, 255, 0.4)',
@ -71,7 +71,7 @@
wallpaperOverlay: 'rgba(0, 0, 0, 0.5)',
badge: '#31b1ce',
messageBg: '@bg',
success: '#86b300',
success: '#77b58c',
error: '#ec4137',
warn: '#ecb637',
codeString: '#ffb675',

View File

@ -4,12 +4,12 @@
id: 'light',
name: 'Light',
author: 'syuilo',
author: 'ThinaticSystem',
desc: 'Default light theme',
kind: 'light',
props: {
accent: '#86b300',
accent: '#77b58c',
accentDarken: ':darken<10<@accent',
accentLighten: ':lighten<10<@accent',
accentedBg: ':alpha<0.15<@accent',
@ -43,7 +43,7 @@
hashtag: '#ff9156',
mention: '@accent',
mentionMe: '@mention',
renote: '#229e82',
renote: '#229e92',
modalBg: 'rgba(0, 0, 0, 0.3)',
scrollbarHandle: 'rgba(0, 0, 0, 0.2)',
scrollbarHandleHover: 'rgba(0, 0, 0, 0.4)',
@ -71,7 +71,7 @@
wallpaperOverlay: 'rgba(255, 255, 255, 0.5)',
badge: '#31b1ce',
messageBg: '@bg',
success: '#86b300',
success: '#77b58c',
error: '#ec4137',
warn: '#ecb637',
codeString: '#b98710',

View File

@ -195,7 +195,6 @@ export default defineComponent({
top: 0;
z-index: 1;
padding: 16px 0;
background: var(--bg);
> .button {
min-width: 0;

View File

@ -1,6 +1,6 @@
<template>
<div class="mk-app">
<a v-if="root" href="https://github.com/misskey-dev/misskey" target="_blank" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:var(--panel); color:var(--fg); position: fixed; z-index: 10; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<a v-if="root" href="https://github.com/ThinaticSystem/honisskey" target="_blank" class="github-corner" aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250" style="fill:var(--panel); color:var(--fg); position: fixed; z-index: 10; top: 0; border: 0; right: 0;" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>
<div v-if="!narrow && !root" class="side">
<XKanban class="kanban" full/>

View File

@ -77,8 +77,13 @@ const tick = () => {
const ny = now.getFullYear();
year.value = ny;
if (nd === 1 && nm + 1 === 4) { //
month.value = 3;
day.value = 32;
} else { //
month.value = nm + 1;
day.value = nd;
}
weekDay.value = [
i18n.ts._weekday.sunday,
i18n.ts._weekday.monday,