整理した
21
src/client/assets/404.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const yn = window.confirm(
|
||||
'サーバー上に存在しないスクリプトがリクエストされました。お使いのMisskeyのバージョンが古いことが原因の可能性があります。Misskeyを更新しますか?');
|
||||
|
||||
if (yn) {
|
||||
// Clear cache (serive worker)
|
||||
try {
|
||||
navigator.serviceWorker.controller.postMessage('clear');
|
||||
|
||||
navigator.serviceWorker.getRegistrations().then(registrations => {
|
||||
registrations.forEach(registration => registration.unregister());
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
localStorage.removeItem('v');
|
||||
|
||||
location.reload(true);
|
||||
} else {
|
||||
alert('問題が解決しない場合はサーバー管理者までお問い合せください。');
|
||||
}
|
||||
93
src/client/assets/code-highlight.css
Normal file
@@ -0,0 +1,93 @@
|
||||
.hljs {
|
||||
font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #444;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.hljs-keyword {
|
||||
color: #2973b7;
|
||||
}
|
||||
|
||||
.hljs-number {
|
||||
color: #ae81ff;
|
||||
}
|
||||
|
||||
.hljs-string {
|
||||
color: #e96900;
|
||||
}
|
||||
|
||||
.hljs-regexp {
|
||||
color: #e9003f;
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-selector-tag,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-doctag,
|
||||
.hljs-name {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-type,
|
||||
.hljs-selector-id,
|
||||
.hljs-selector-class,
|
||||
.hljs-quote,
|
||||
.hljs-template-tag,
|
||||
.hljs-deletion {
|
||||
color: #880000;
|
||||
}
|
||||
|
||||
.hljs-title,
|
||||
.hljs-section {
|
||||
color: #880000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-symbol,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-link,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #BC6060;
|
||||
}
|
||||
|
||||
/* Language color: hue: 90; */
|
||||
|
||||
.hljs-literal {
|
||||
color: #78A960;
|
||||
}
|
||||
|
||||
.hljs-built_in,
|
||||
.hljs-bullet,
|
||||
.hljs-code,
|
||||
.hljs-addition {
|
||||
color: #397300;
|
||||
}
|
||||
|
||||
/* Meta color: hue: 200 */
|
||||
|
||||
.hljs-meta {
|
||||
color: #1f7199;
|
||||
}
|
||||
|
||||
.hljs-meta-string {
|
||||
color: #4d99bf;
|
||||
}
|
||||
|
||||
/* Misc effects */
|
||||
|
||||
.hljs-emphasis {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight: bold;
|
||||
}
|
||||
BIN
src/client/assets/error.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
src/client/assets/favicon.ico
Normal file
|
After Width: | Height: | Size: 352 KiB |
BIN
src/client/assets/label.svg
Normal file
|
After Width: | Height: | Size: 441 B |
7
src/client/assets/manifest.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"short_name": "Misskey",
|
||||
"name": "Misskey",
|
||||
"start_url": "/",
|
||||
"display": "standalone",
|
||||
"background_color": "#313a42"
|
||||
}
|
||||
BIN
src/client/assets/message.mp3
Normal file
BIN
src/client/assets/othello-put-me.mp3
Normal file
BIN
src/client/assets/othello-put-you.mp3
Normal file
BIN
src/client/assets/post.mp3
Normal file
BIN
src/client/assets/reactions/angry.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
src/client/assets/reactions/confused.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
src/client/assets/reactions/congrats.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/client/assets/reactions/hmm.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
src/client/assets/reactions/laugh.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
src/client/assets/reactions/like.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
src/client/assets/reactions/love.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
src/client/assets/reactions/pudding.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
src/client/assets/reactions/surprise.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
36
src/client/assets/recover.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Misskeyのリカバリ</title>
|
||||
<script>
|
||||
|
||||
const yn = window.confirm('キャッシュをクリアしますか?(他のタブでMisskeyを開いている状態だと正常にクリアできないので、他のMisskeyのタブをすべて閉じてから行ってください)\n\nDo you want to clear caches?');
|
||||
|
||||
if (yn) {
|
||||
try {
|
||||
navigator.serviceWorker.controller.postMessage('clear');
|
||||
|
||||
navigator.serviceWorker.getRegistrations().then(registrations => {
|
||||
registrations.forEach(registration => registration.unregister());
|
||||
});
|
||||
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
alert('キャッシュをクリアしました。');
|
||||
|
||||
alert('まもなくページを再度読み込みします。再度読み込みが終わると、再度キャッシュをクリアするか尋ねられるので、「キャンセル」を選択して抜けてください。');
|
||||
|
||||
setTimeout(() => {
|
||||
location.reload(true);
|
||||
}, 100);
|
||||
} else {
|
||||
location.href = '/';
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
BIN
src/client/assets/title.svg
Normal file
|
After Width: | Height: | Size: 1021 B |
BIN
src/client/assets/unread.svg
Normal file
|
After Width: | Height: | Size: 536 B |
BIN
src/client/assets/welcome-bg.svg
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
src/client/assets/welcome-fg.svg
Normal file
|
After Width: | Height: | Size: 19 KiB |