Compare commits
102 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
99c2f0fc8d | ||
|
58d9228aec | ||
|
85738d72ae | ||
|
2fe60a3b69 | ||
|
06c944a35d | ||
|
0f75972616 | ||
|
f55b08cbf3 | ||
|
51814e49d7 | ||
|
36d8a00a49 | ||
|
1c8ca3b5f9 | ||
|
1cbd6992e3 | ||
|
1f3a27325b | ||
|
890ec772f9 | ||
|
b072012976 | ||
|
8982058a25 | ||
|
fb95e077e9 | ||
|
dc08f46909 | ||
|
3e6a47d5f7 | ||
|
aabcfb230f | ||
|
ee99a660c2 | ||
|
5063061a70 | ||
|
c3ce7bd516 | ||
|
95efd96c3e | ||
|
abf5274c06 | ||
|
db5d3182bc | ||
|
0527c978ce | ||
|
b36de5dc26 | ||
|
92b47e56f7 | ||
|
fc967f92f3 | ||
|
1882bbf0b6 | ||
|
a3fed1f6f0 | ||
|
eae0fd1768 | ||
|
a7a99fc3a2 | ||
|
fedd80477b | ||
|
844d145e09 | ||
|
a817c14925 | ||
|
70e145eceb | ||
|
438f11c11d | ||
|
edf75d1915 | ||
|
9de26d9998 | ||
|
ab5a786197 | ||
|
272b613e18 | ||
|
35c10e0c7d | ||
|
7795adf173 | ||
|
dca2e5fdab | ||
|
eb6dcdfa5d | ||
|
9f4f788519 | ||
|
1d7588e4e4 | ||
|
81c476c1bb | ||
|
ccc44ca769 | ||
|
82c5a853cb | ||
|
e11af25ba6 | ||
|
16b68bb190 | ||
|
051dbb3b1b | ||
|
bdf2b9be71 | ||
|
0b6a76d01a | ||
|
bd1e1f7ee8 | ||
|
e9c7ffe825 | ||
|
9e735bc7df | ||
|
eefc03c4f3 | ||
|
135caffaec | ||
|
c1f7abac58 | ||
|
a325c50f1f | ||
|
37daa5638b | ||
|
8118806f4e | ||
|
3f7aaa7e99 | ||
|
700de676d0 | ||
|
52a8ec8033 | ||
|
40a884b4f5 | ||
|
62df4e2fac | ||
|
69d60a7372 | ||
|
9623b79197 | ||
|
ec1481aed0 | ||
|
1e76867fd1 | ||
|
7ff01413e5 | ||
|
48b3ed3aca | ||
|
e75d52f985 | ||
|
3f95e755b5 | ||
|
9d0f4096f8 | ||
|
e402e0e7a7 | ||
|
38c77fb39e | ||
|
3020adbe9d | ||
|
4df390713c | ||
|
bec4444388 | ||
|
2d249f6f19 | ||
|
4d1053ce99 | ||
|
0522331977 | ||
|
eb9520397c | ||
|
f0c93b8fce | ||
|
b3e9c3d6ce | ||
|
99793f2e20 | ||
|
f43bd64be2 | ||
|
fa440e8d9b | ||
|
db4d457325 | ||
|
d87245899e | ||
|
ac6260ab24 | ||
|
91bc8c8bdd | ||
|
74d756d43b | ||
|
2281d0ca35 | ||
|
31cc929c68 | ||
|
80ce93785a | ||
|
1710ab0035 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,6 +20,7 @@ app/view/bg
|
|||||||
app/view/cs
|
app/view/cs
|
||||||
app/view/ps
|
app/view/ps
|
||||||
app/view/es-AR
|
app/view/es-AR
|
||||||
|
app/view/it-IT
|
||||||
app/git
|
app/git
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
releasenote.md
|
releasenote.md
|
||||||
|
15
.travis.yml
15
.travis.yml
@@ -15,6 +15,20 @@ before_deploy:
|
|||||||
- cd app
|
- cd app
|
||||||
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
|
- VERSION=$(cat package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')
|
||||||
- yarn install --no-lockfile --prod
|
- yarn install --no-lockfile --prod
|
||||||
|
- yarn construct:store
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then cd ../build;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then mv *.dmg TheDesk-$VERSION-store.dmg;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then cd ../app;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux snap:x64 -p never;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../build;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then mv *.snap TheDesk-$VERSION-store.snap;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../app;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then yarn add electron-builder;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win appx:x64 -p never ;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then mv *.appx TheDesk-$VERSION-store.appx;else :;fi
|
||||||
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../app;else :;fi
|
||||||
- yarn construct
|
- yarn construct
|
||||||
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "osx" ];then electron-builder --mac -p never;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then electron-builder --linux --x64 -p never;else :;fi
|
||||||
@@ -22,7 +36,6 @@ before_deploy:
|
|||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ];then ls;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then ls;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ];then mv thedesk-*.zip thedesk.zip;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then mv thedesk-*.zip thedesk.zip;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../app;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "linux" ];then cd ../app;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "windows" ];then yarn add electron-builder;else :;fi
|
|
||||||
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win --ia32 -p never;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then electron-builder --win --ia32 -p never;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then cd ../build;else :;fi
|
||||||
- if [ "$TRAVIS_OS_NAME" = "windows" ];then ls;else :;fi
|
- if [ "$TRAVIS_OS_NAME" = "windows" ];then ls;else :;fi
|
||||||
|
@@ -13,6 +13,9 @@ Mastodon/Misskey client for PC(Windows/Linux/macOS)
|
|||||||
|
|
||||||
Download:[TheDesk](https://thedesk.top) [](https://status.cutls.com)
|
Download:[TheDesk](https://thedesk.top) [](https://status.cutls.com)
|
||||||
|
|
||||||
|
On GitHub Releases, `-store.*` assets are made for some application store or manager(Snapcraft, Homebrew, Microsoft Store).
|
||||||
|
They do not check the latest version(Which you can get the latest ver or not depends on the store)
|
||||||
|
|
||||||
<a href="https://www.patreon.com/cutls"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="Become a Patron!" width="160"></a>
|
<a href="https://www.patreon.com/cutls"><img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" alt="Become a Patron!" width="160"></a>
|
||||||
<a href="https://liberapay.com/cutls/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>
|
<a href="https://liberapay.com/cutls/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>
|
||||||

|

|
||||||
@@ -147,7 +150,7 @@ macOS
|
|||||||
|
|
||||||
### PWA support
|
### PWA support
|
||||||
|
|
||||||
TheDesk is a wed-based app, so you can run it on a browser. Of course, the main stream is as Electron. Some features won't work as well as Electron.
|
TheDesk is a web-based app, so you can run it on a browser. Of course, the main stream is as Electron. Some features won't work as well as Electron.
|
||||||
|
|
||||||
You can run `npm run build:pwa` to build as PWA, including `manifest.json` and the ServiceWorker.
|
You can run `npm run build:pwa` to build as PWA, including `manifest.json` and the ServiceWorker.
|
||||||
|
|
||||||
|
@@ -14,6 +14,8 @@ Download:[TheDesk](https://thedesk.top) [
|
[Pixiv FANBOX](https://www.pixiv.net/fanbox/creator/28105985)
|
||||||
|
|
||||||
|
`-store.*`とあるアセットはストアやパッケージマネージャ向けのもので、アップデートの確認をソフト本体で行いません。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## ライセンス
|
## ライセンス
|
||||||
|
5
app/.eslintignore
Normal file
5
app/.eslintignore
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
js/common/blurhash.js
|
||||||
|
js/common/hammer.min.js
|
||||||
|
js/common/sha256.js
|
||||||
|
js/platform/punycode.js
|
||||||
|
js/platform/tj-deck.js
|
14
app/.eslintrc.json
Normal file
14
app/.eslintrc.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"env": {"browser": true},
|
||||||
|
"rules": {
|
||||||
|
"no-console": "off",
|
||||||
|
"semi": ["error", "never"]
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"$": false,
|
||||||
|
"ver": true,
|
||||||
|
"pwa": true,
|
||||||
|
"lang": true
|
||||||
|
}
|
||||||
|
}
|
@@ -21,6 +21,15 @@ html {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#acct-list .btn-flat.white-text {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#acct-list .btn-flat.red-text {
|
||||||
|
background-color: white !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.lts {
|
.lts {
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,7 @@ body {
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
@@ -14,9 +14,9 @@ html {
|
|||||||
.titlebar,
|
.titlebar,
|
||||||
.menubar-menu-container,
|
.menubar-menu-container,
|
||||||
.action-menu-item {
|
.action-menu-item {
|
||||||
background-color: var(--notfbox) !important;
|
background-color: var(--subcolor) !important;
|
||||||
filter: brightness(110%) !important;
|
filter: brightness(110%) !important;
|
||||||
color: var(--color) !important;
|
color: var(--text) !important;
|
||||||
}
|
}
|
||||||
.action-menu-item:hover {
|
.action-menu-item:hover {
|
||||||
filter: brightness(80%) !important;
|
filter: brightness(80%) !important;
|
||||||
@@ -231,7 +231,8 @@ blockquote:before,
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: calc(100vh - 3rem);
|
height: calc(100vh - 3rem);
|
||||||
background-color: var(--bg);
|
background-color: var(--bg);
|
||||||
color: var(--color);
|
filter: brightness(50%);
|
||||||
|
color: var(--text);
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -242,7 +243,7 @@ blockquote:before,
|
|||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: var(--bg);
|
background-color: var(--bg);
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -253,7 +254,7 @@ blockquote:before,
|
|||||||
#pip {
|
#pip {
|
||||||
z-index: 504;
|
z-index: 504;
|
||||||
width: 418px;
|
width: 418px;
|
||||||
background-color: var(--subcolor);
|
background-color: var(--thirdColor);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.pip-bottom {
|
.pip-bottom {
|
||||||
@@ -314,10 +315,10 @@ blockquote:before,
|
|||||||
}
|
}
|
||||||
.collapsible-header,
|
.collapsible-header,
|
||||||
.tabs {
|
.tabs {
|
||||||
background-color: var(--subcolor);
|
background-color: var(--thirdColor);
|
||||||
}
|
}
|
||||||
.collapsible-header:focus {
|
.collapsible-header:focus {
|
||||||
background-color: var(--subcolor) !important;
|
background-color: var(--thirdColor) !important;
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
background-color: var(--modalfooter) !important;
|
background-color: var(--modalfooter) !important;
|
||||||
@@ -331,16 +332,29 @@ blockquote:before,
|
|||||||
}
|
}
|
||||||
.release-do {
|
.release-do {
|
||||||
border: solid 2px;
|
border: solid 2px;
|
||||||
border-color: var(--color);
|
border-color: var(--text);
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
#pickers {
|
#pickers {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
input[type="color"] {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
border: none;
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
input[type="color"]::-webkit-color-swatch-wrapper {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
input[type="color"]::-webkit-color-swatch {
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
#menu {
|
#menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
z-index: 9999;
|
z-index: 999;
|
||||||
background-color: var(--postbox);
|
background-color: var(--postbox);
|
||||||
width: 540px;
|
width: 540px;
|
||||||
top: calc(50% - 150px);
|
top: calc(50% - 150px);
|
||||||
@@ -366,7 +380,7 @@ blockquote:before,
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
#left-menu a:hover {
|
#left-menu a:hover {
|
||||||
background-color: var(--beforehover);
|
background-color: var(--beforehover);
|
||||||
@@ -377,6 +391,9 @@ blockquote:before,
|
|||||||
#left-menu a.active {
|
#left-menu a.active {
|
||||||
background-color: var(--emphasized);
|
background-color: var(--emphasized);
|
||||||
}
|
}
|
||||||
|
#left-menu a.active span {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
#right-menu {
|
#right-menu {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
@@ -394,7 +411,7 @@ blockquote:before,
|
|||||||
width: 13rem;
|
width: 13rem;
|
||||||
height: 3.1rem;
|
height: 3.1rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
#tltype .type span {
|
#tltype .type span {
|
||||||
width: calc(100% - 2.3rem);
|
width: calc(100% - 2.3rem);
|
||||||
@@ -421,7 +438,7 @@ blockquote:before,
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
width: calc(100% + 0.8rem);
|
width: calc(100% + 0.8rem);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
filter: brightness(80%);
|
filter: brightness(80%);
|
||||||
margin-left: -0.4rem;
|
margin-left: -0.4rem;
|
||||||
margin-right: -0.4rem;
|
margin-right: -0.4rem;
|
||||||
@@ -442,7 +459,7 @@ blockquote:before,
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: -300px;
|
bottom: -300px;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
padding: 0.8rem;
|
padding: 0.8rem;
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -468,16 +485,16 @@ blockquote:before,
|
|||||||
}
|
}
|
||||||
input,
|
input,
|
||||||
textarea {
|
textarea {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
font-size: 1rem !important;
|
font-size: 1rem !important;
|
||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
}
|
}
|
||||||
.swal2-popup {
|
.swal2-popup {
|
||||||
background-color: var(--notfbox) !important;
|
background-color: var(--subcolor) !important;
|
||||||
}
|
}
|
||||||
.swal2-title,
|
.swal2-title,
|
||||||
.swal2-content {
|
.swal2-content {
|
||||||
color: var(--color) !important;
|
color: var(--text) !important;
|
||||||
}
|
}
|
||||||
#src-contents svg {
|
#src-contents svg {
|
||||||
margin-right: 0.4rem;
|
margin-right: 0.4rem;
|
||||||
@@ -526,7 +543,7 @@ textarea {
|
|||||||
left: calc(50vw - 11.53rem);
|
left: calc(50vw - 11.53rem);
|
||||||
width: 23rem;
|
width: 23rem;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
z-index: 501;
|
z-index: 501;
|
||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
}
|
}
|
||||||
@@ -606,3 +623,14 @@ textarea {
|
|||||||
.darwin .win {
|
.darwin .win {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.dropdown-content.header:hover {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
button {
|
||||||
|
font-family: inherit !important;
|
||||||
|
}
|
||||||
|
.via-dropdown {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
@@ -86,7 +86,7 @@ textarea {
|
|||||||
max-height: 7.7rem;
|
max-height: 7.7rem;
|
||||||
}
|
}
|
||||||
#default-emoji a {
|
#default-emoji a {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
margin-right: 0.15rem;
|
margin-right: 0.15rem;
|
||||||
}
|
}
|
||||||
.character-counter {
|
.character-counter {
|
||||||
@@ -126,8 +126,8 @@ textarea {
|
|||||||
}
|
}
|
||||||
#posttgl,
|
#posttgl,
|
||||||
#toot-post-btn {
|
#toot-post-btn {
|
||||||
background-color: var(--accentbtn);
|
background-color: var(--active);
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
/*mini*/
|
/*mini*/
|
||||||
.mini-post .mize {
|
.mini-post .mize {
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
background-color: var(--modalfooter);
|
background-color: var(--modalfooter);
|
||||||
margin: 0.4rem;
|
margin: 0.4rem;
|
||||||
border-radius: 0.4rem;
|
border-radius: 0.4rem;
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 3.3rem 1fr 4.6rem;
|
grid-template-columns: 3.3rem 1fr 4.6rem;
|
||||||
|
@@ -1,192 +1,22 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg: white;
|
|
||||||
--drag: rgba(255, 255, 255, 0.8);
|
|
||||||
--color: black;
|
|
||||||
--beforehover: #757575;
|
|
||||||
--modal: white;
|
|
||||||
--subcolor: #e0e0e0;
|
|
||||||
--box: white;
|
|
||||||
--sidebar: #eeeeee;
|
|
||||||
--shared: #cfd8dc;
|
|
||||||
--notfbox: white;
|
|
||||||
--emphasized: #81c784;
|
|
||||||
--his-data: rgba(255, 255, 255, 0.9);
|
|
||||||
--active: #e6ee9c;
|
|
||||||
--postbox: white;
|
|
||||||
--modalfooter: #fafafa;
|
|
||||||
--accentbtn: #009688;
|
|
||||||
--selected: #c0c0c0;
|
|
||||||
--selectedWithShare: #b2babd;
|
|
||||||
--gray: #757575;
|
|
||||||
}
|
|
||||||
#imagemodal {
|
|
||||||
background: url("../img/pixel.white.svg");
|
|
||||||
}
|
|
||||||
.blacktheme {
|
|
||||||
--bg: #212121;
|
--bg: #212121;
|
||||||
--drag: rgba(0, 0, 0, 0.8);
|
--drag: rgba(0, 0, 0, 0.8);
|
||||||
--color: white;
|
--text: white;
|
||||||
--beforehover: #9e9e9e;
|
--beforehover: #9e9e9e;
|
||||||
--modal: black;
|
--modal: black;
|
||||||
--subcolor: #212121;
|
--thirdColor: #212121;
|
||||||
--box: #424242;
|
--bottom: #424242;
|
||||||
--sidebar: #424242;
|
--accent: #004d40;
|
||||||
--shared: #004d40;
|
--subcolor: #333333;
|
||||||
--notfbox: #333333;
|
|
||||||
--emphasized: #4e342e;
|
--emphasized: #4e342e;
|
||||||
--his-data: rgba(0, 0, 0, 0.8);
|
--his-data: rgba(0, 0, 0, 0.8);
|
||||||
--active: #757575;
|
|
||||||
--postbox: #424242;
|
--postbox: #424242;
|
||||||
--modalfooter: #212121;
|
--modalfooter: #212121;
|
||||||
--accentbtn: #3f51b5;
|
--active: #3f51b5;
|
||||||
--selected: #3f3f3f;
|
--selected: #3f3f3f;
|
||||||
--selectedWithShare: #003a30;
|
--selectedWithShare: #003a30;
|
||||||
--gray: #cccccc;
|
--gray: #cccccc;
|
||||||
}
|
}
|
||||||
.blacktheme #imagemodal {
|
#imagemodal {
|
||||||
background: url("../img/pixel.svg");
|
background: url("../img/pixel.svg");
|
||||||
}
|
}
|
||||||
.indigotheme {
|
|
||||||
--bg: #031833;
|
|
||||||
--drag: rgba(0, 0, 0, 0.8);
|
|
||||||
--color: white;
|
|
||||||
--beforehover: #9e9e9e;
|
|
||||||
--modal: #0d1351;
|
|
||||||
--subcolor: #0d1351;
|
|
||||||
--shared: #004d40;
|
|
||||||
--box: #0d1351;
|
|
||||||
--sidebar: #0d1351;
|
|
||||||
--notfbox: #0d47a1;
|
|
||||||
--emphasized: #4e342e;
|
|
||||||
--his-data: rgba(13, 19, 81, 0.8);
|
|
||||||
--active: #757575;
|
|
||||||
--postbox: #1a237e;
|
|
||||||
--modalfooter: #031833;
|
|
||||||
--accentbtn: #00acc1;
|
|
||||||
--selected: #214f8a;
|
|
||||||
--selectedWithShare: #003a30;
|
|
||||||
--gray: #cccccc ;
|
|
||||||
}
|
|
||||||
.indigotheme #imagemodal {
|
|
||||||
background: url("../img/pixel.svg");
|
|
||||||
}
|
|
||||||
.browntheme {
|
|
||||||
--bg: #261411;
|
|
||||||
--drag: rgba(0, 0, 0, 0.8);
|
|
||||||
--color: white;
|
|
||||||
--beforehover: #9e9e9e;
|
|
||||||
--modal: #261411;
|
|
||||||
--subcolor: #4e342e;
|
|
||||||
--shared: #004d40;
|
|
||||||
--box: #4e342e;
|
|
||||||
--sidebar: #4e342e;
|
|
||||||
--notfbox: #4e342e;
|
|
||||||
--emphasized: #0d47a1;
|
|
||||||
--his-data: rgba(62, 39, 35, 0.8);
|
|
||||||
--active: #757575;
|
|
||||||
--postbox: #4e342e;
|
|
||||||
--modalfooter: #261411;
|
|
||||||
--accentbtn: #827717;
|
|
||||||
--selected: #6d352b;
|
|
||||||
--selectedWithShare: #003a30;
|
|
||||||
--gray: #cccccc;
|
|
||||||
}
|
|
||||||
.browntheme #imagemodal {
|
|
||||||
background: url("../img/pixel.svg");
|
|
||||||
}
|
|
||||||
.greentheme {
|
|
||||||
--bg: #c8e6c9;
|
|
||||||
--drag: rgba(255, 255, 255, 0.8);
|
|
||||||
--color: black;
|
|
||||||
--beforehover: #757575;
|
|
||||||
--modal: #81c784;
|
|
||||||
--subcolor: #a5d6a7;
|
|
||||||
--box: #81c784;
|
|
||||||
--sidebar: #c5e1a5;
|
|
||||||
--shared: #ffcc80;
|
|
||||||
--notfbox: #a5d6a7;
|
|
||||||
--emphasized: #9e9d24;
|
|
||||||
--his-data: rgba(255, 255, 255, 0.9);
|
|
||||||
--active: #e6ee9c;
|
|
||||||
--postbox: #a5d6a7;
|
|
||||||
--modalfooter: #81c784;
|
|
||||||
--accentbtn: #33691e;
|
|
||||||
--selected: #78c17a;
|
|
||||||
--selectedWithShare: #caa266;
|
|
||||||
--gray: #757575;
|
|
||||||
}
|
|
||||||
.greentheme #imagemodal {
|
|
||||||
background: url("../img/pixel.white.svg");
|
|
||||||
}
|
|
||||||
.bluetheme {
|
|
||||||
--bg: #c9e1ec;
|
|
||||||
--drag: rgba(255, 255, 255, 0.8);
|
|
||||||
--color: black;
|
|
||||||
--beforehover: #757575;
|
|
||||||
--modal: #b2ebf2;
|
|
||||||
--subcolor: #90caf9;
|
|
||||||
--box: #90caf9;
|
|
||||||
--sidebar: #b6e6f5;
|
|
||||||
--shared: #e0ffe4;
|
|
||||||
--notfbox: #90caf9;
|
|
||||||
--emphasized: #c5e1a5;
|
|
||||||
--his-data: rgba(255, 255, 255, 0.9);
|
|
||||||
--active: #b39ddb;
|
|
||||||
--postbox: #dff1ff;
|
|
||||||
--modalfooter: #2196f3;
|
|
||||||
--accentbtn: #2f7bb7;
|
|
||||||
--selected: #9dcade;
|
|
||||||
--selectedWithShare: #c1dac4;
|
|
||||||
--gray: #757575;
|
|
||||||
}
|
|
||||||
.bluetheme #imagemodal {
|
|
||||||
background: url("../img/pixel.white.svg");
|
|
||||||
}
|
|
||||||
.polartheme {
|
|
||||||
--bg: #2e3440;
|
|
||||||
--drag: rgba(0, 0, 0, 0.8);
|
|
||||||
--color: white;
|
|
||||||
--beforehover: #8d94a0;
|
|
||||||
--modal: #3b4252;
|
|
||||||
--subcolor: #434c5e;
|
|
||||||
--box: #4c566a;
|
|
||||||
--sidebar: #3b4252;
|
|
||||||
--shared: #2d3b58;
|
|
||||||
--notfbox: #2a3857;
|
|
||||||
--emphasized: #2f4b86;
|
|
||||||
--his-data: rgba(0, 0, 0, 0.8);
|
|
||||||
--active: #2a3857;
|
|
||||||
--postbox: #434c5e;
|
|
||||||
--modalfooter: #485166;
|
|
||||||
--accentbtn: #2f4b86;
|
|
||||||
--selected: #464f61;
|
|
||||||
--selectedWithShare: #3e527e;
|
|
||||||
--gray: #cccccc;
|
|
||||||
}
|
|
||||||
.polartheme #imagemodal {
|
|
||||||
background: url("../img/pixel.svg");
|
|
||||||
}
|
|
||||||
.snowtheme {
|
|
||||||
--bg: #eceff4;
|
|
||||||
--drag: rgba(255, 255, 255, 0.8);
|
|
||||||
--color: #36425a;
|
|
||||||
--beforehover: #344058;
|
|
||||||
--modal: #e5e9f0;
|
|
||||||
--subcolor: #d8dee9;
|
|
||||||
--box: #c0c8d6;
|
|
||||||
--sidebar: #eeeeee;
|
|
||||||
--shared: #c3d4e6;
|
|
||||||
--notfbox: #d8dee9;
|
|
||||||
--emphasized: #88c0d0;
|
|
||||||
--his-data: rgba(255, 255, 255, 0.9);
|
|
||||||
--active: #8fbcbb;
|
|
||||||
--postbox: #d8dee9;
|
|
||||||
--modalfooter: #b2bed4;
|
|
||||||
--accentbtn: #81a1c1;
|
|
||||||
--selected: #b4bdd0;
|
|
||||||
--selectedWithShare: #a3afbb;
|
|
||||||
--gray: #5c6c8c;
|
|
||||||
}
|
|
||||||
.snowtheme #imagemodal {
|
|
||||||
background: url("../img/pixel.white.svg");
|
|
||||||
}
|
|
102
app/css/tl.css
102
app/css/tl.css
@@ -18,7 +18,7 @@
|
|||||||
padding: 0.23rem;
|
padding: 0.23rem;
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
padding-left: 3rem;
|
padding-left: 3rem;
|
||||||
background-color: var(--sidebar);
|
background-color: var(--bottom);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
}
|
}
|
||||||
#bottom a,
|
#bottom a,
|
||||||
#demogroup a {
|
#demogroup a {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
#bottom i {
|
#bottom i {
|
||||||
font-size: 2.3rem;
|
font-size: 2.3rem;
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 3rem 2.3rem 2.5fr 1fr 4.6rem;
|
grid-template-columns: 3rem 2.3rem 2.5fr 1fr 4.6rem;
|
||||||
grid-template-rows: 1.7rem 1.5rem;
|
grid-template-rows: 1.7rem 1.5rem;
|
||||||
grid-template-areas: 'cover name name artist refresh' 'cover progress progress progress time';
|
grid-template-areas: 'cover name name name refresh' 'cover progress progress progress time';
|
||||||
}
|
}
|
||||||
#spot-refresh {
|
#spot-refresh {
|
||||||
grid-area: refresh;
|
grid-area: refresh;
|
||||||
@@ -108,18 +108,12 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
line-height: 1.92rem;
|
line-height: 1.92rem;
|
||||||
}
|
}
|
||||||
#spot-artist {
|
|
||||||
grid-area: artist;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow: hidden;
|
|
||||||
line-height: 1.92rem;
|
|
||||||
}
|
|
||||||
#spot-img {
|
#spot-img {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
}
|
}
|
||||||
#spot-time {
|
#spot-time {
|
||||||
grid-area: time;
|
grid-area: time;
|
||||||
|
line-height: 0.5rem;
|
||||||
}
|
}
|
||||||
.progress {
|
.progress {
|
||||||
grid-area: progress;
|
grid-area: progress;
|
||||||
@@ -157,7 +151,8 @@ iframe,
|
|||||||
}
|
}
|
||||||
.box {
|
.box {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
min-width: 23rem;
|
min-width: 300px;
|
||||||
|
max-width: 600px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -217,10 +212,14 @@ iframe,
|
|||||||
.emoji,
|
.emoji,
|
||||||
.emoji-img {
|
.emoji-img {
|
||||||
width: 1.153rem;
|
width: 1.153rem;
|
||||||
|
height: 1.153rem;
|
||||||
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
.area-toot .emoji,
|
.area-toot .emoji,
|
||||||
.area-toot .emoji-img {
|
.area-toot .emoji-img {
|
||||||
width: 1.538rem;
|
width: 1.538rem;
|
||||||
|
height: 1.538rem;
|
||||||
|
object-fit: cover;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
margin: -1px 0;
|
margin: -1px 0;
|
||||||
}
|
}
|
||||||
@@ -238,6 +237,7 @@ iframe,
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
background-color: var(--bg);
|
||||||
}
|
}
|
||||||
.additional {
|
.additional {
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
@@ -430,7 +430,7 @@ iframe,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-flat {
|
.btn-flat {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
.area-side i {
|
.area-side i {
|
||||||
margin-left: 0.75rem;
|
margin-left: 0.75rem;
|
||||||
@@ -449,44 +449,15 @@ iframe,
|
|||||||
color: var(--beforehover);
|
color: var(--beforehover);
|
||||||
}
|
}
|
||||||
.actct:hover {
|
.actct:hover {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
transition: 0.5s;
|
transition: 0.5s;
|
||||||
}
|
}
|
||||||
#contextWrap {
|
.contextMenu.dropdown-content {
|
||||||
position: fixed;
|
padding-top: 5px;
|
||||||
width: 199vw;
|
overflow-y: hidden;
|
||||||
height: 100vh;
|
left: calc(100% - 200px) !important;
|
||||||
z-index: 100;
|
width: 200px !important;
|
||||||
}
|
}
|
||||||
.contextMenu {
|
|
||||||
position: fixed;
|
|
||||||
background-color: var(--box);
|
|
||||||
z-index: 9999;
|
|
||||||
border-radius: 0.4rem;
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
.contextMenu.bottom:before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 100%;
|
|
||||||
right: 2rem;
|
|
||||||
border: 1.2rem solid transparent;
|
|
||||||
border-top: 1.2rem solid var(--box);
|
|
||||||
}
|
|
||||||
.contextMenu.top:before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: -2.3rem;
|
|
||||||
right: 2rem;
|
|
||||||
border: 1.5rem solid transparent;
|
|
||||||
border-bottom: 1.5rem solid var(--box);
|
|
||||||
}
|
|
||||||
.contextMenu .btn-flat {
|
|
||||||
text-transform: none !important;
|
|
||||||
width: 100%;
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.gray {
|
.gray {
|
||||||
color: var(--gray);
|
color: var(--gray);
|
||||||
}
|
}
|
||||||
@@ -525,7 +496,7 @@ iframe,
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.cbadge-hover {
|
.cbadge-hover {
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
.cbadge-hover:hover {
|
.cbadge-hover:hover {
|
||||||
@@ -541,7 +512,7 @@ p:not(:last-child) {
|
|||||||
margin-bottom: 0.76rem;
|
margin-bottom: 0.76rem;
|
||||||
}
|
}
|
||||||
.shared {
|
.shared {
|
||||||
background-color: var(--shared);
|
background-color: var(--accent);
|
||||||
}
|
}
|
||||||
.emphasized {
|
.emphasized {
|
||||||
background-color: var(--emphasized);
|
background-color: var(--emphasized);
|
||||||
@@ -551,7 +522,7 @@ p:not(:last-child) {
|
|||||||
}
|
}
|
||||||
.notice-box {
|
.notice-box {
|
||||||
top: 0;
|
top: 0;
|
||||||
background-color: var(--notfbox);
|
background-color: var(--subcolor);
|
||||||
filter: brightness(110%);
|
filter: brightness(110%);
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 0.7rem;
|
margin-right: 0.7rem;
|
||||||
@@ -620,7 +591,7 @@ p:not(:last-child) {
|
|||||||
.notf-box {
|
.notf-box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 5.4rem;
|
right: 5.4rem;
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
border: thin solid gray;
|
border: thin solid gray;
|
||||||
z-index: 501;
|
z-index: 501;
|
||||||
width: 30rem;
|
width: 30rem;
|
||||||
@@ -657,14 +628,29 @@ p:not(:last-child) {
|
|||||||
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
|
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
|
||||||
0 5px 5px -3px rgba(0, 0, 0, 0.3), 0px -10px 10px 0px rgba(0, 0, 0, 0.3) inset;
|
0 5px 5px -3px rgba(0, 0, 0, 0.3), 0px -10px 10px 0px rgba(0, 0, 0, 0.3) inset;
|
||||||
}
|
}
|
||||||
|
.notf-indv-box label span {
|
||||||
|
padding-left: 23px !important;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
.notf-indv-box .setting {
|
||||||
|
font-size: 1rem;
|
||||||
|
width: calc(25% - 3px);
|
||||||
|
text-align: left;
|
||||||
|
padding: 5px;
|
||||||
|
height: 70px;
|
||||||
|
}
|
||||||
|
.notf-exclude-btn:hover {
|
||||||
|
background-color: inherit !important;
|
||||||
|
border: 1px solid;
|
||||||
|
}
|
||||||
.type-b {
|
.type-b {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
}
|
}
|
||||||
.ballons {
|
.ballons {
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
@@ -722,11 +708,11 @@ p:not(:last-child) {
|
|||||||
transition-duration: 0.5s;
|
transition-duration: 0.5s;
|
||||||
}
|
}
|
||||||
.votebtn:hover {
|
.votebtn:hover {
|
||||||
background-color: var(--color);
|
background-color: var(--text);
|
||||||
}
|
}
|
||||||
.leadPoll {
|
.leadPoll {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: var(--box);
|
background-color: var(--subcolor);
|
||||||
height: 1.5rem;
|
height: 1.5rem;
|
||||||
border-radius: 0.23rem;
|
border-radius: 0.23rem;
|
||||||
}
|
}
|
||||||
@@ -788,11 +774,11 @@ audio {
|
|||||||
.cw_btn {
|
.cw_btn {
|
||||||
margin: 0.23rem;
|
margin: 0.23rem;
|
||||||
background-color: var(--emphasized);
|
background-color: var(--emphasized);
|
||||||
color: var(--color);
|
color: var(--text);
|
||||||
padding-left: 0.23rem;
|
padding-left: 0.23rem;
|
||||||
padding-right: 0.23rem;
|
padding-right: 0.23rem;
|
||||||
border-radius: 0.23rem;
|
border-radius: 0.23rem;
|
||||||
border: 1px solid var(--color);
|
border: 1px solid var(--text);
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
.vis-data {
|
.vis-data {
|
||||||
@@ -882,7 +868,7 @@ audio {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: solid 1px;
|
border: solid 1px;
|
||||||
padding-left: 0.15rem;
|
padding-left: 0.15rem;
|
||||||
background-color: var(--notfbox);
|
background-color: var(--subcolor);
|
||||||
border-radius: 0.15rem;
|
border-radius: 0.15rem;
|
||||||
}
|
}
|
||||||
.announReaction img {
|
.announReaction img {
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/*アイコンをクリックした時とかにでてくるユーザーデータ*/
|
/*アイコンをクリックした時とかにでてくるユーザーデータ*/
|
||||||
#his-data {
|
#his-data {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-image: url("../img/loading.svg");
|
background-image: url('../img/loading.svg');
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
#his-data .btn .material-icons {
|
#his-data .btn .material-icons {
|
||||||
@@ -15,7 +15,6 @@
|
|||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
#his-prof {
|
#his-prof {
|
||||||
float: left;
|
|
||||||
width: 7.7rem;
|
width: 7.7rem;
|
||||||
margin-right: 0.4rem;
|
margin-right: 0.4rem;
|
||||||
}
|
}
|
||||||
@@ -26,16 +25,20 @@
|
|||||||
#his-float-data {
|
#his-float-data {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
|
|
||||||
}
|
}
|
||||||
#his-leftside {
|
#his-leftside {
|
||||||
width: 38.4rem;
|
width: 28.4rem;
|
||||||
|
max-width: 30vw;
|
||||||
}
|
}
|
||||||
#his-float-timeline {
|
#his-float-timeline {
|
||||||
max-width: 59.6rem;
|
max-width: 47.5rem;
|
||||||
|
min-width: calc(100% - 29.4rem);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
#his-basic-prof {
|
#his-basic-prof {
|
||||||
|
display: flex;
|
||||||
min-height: 10rem;
|
min-height: 10rem;
|
||||||
}
|
}
|
||||||
#his-field {
|
#his-field {
|
||||||
@@ -61,7 +64,7 @@
|
|||||||
padding-left: 0.4rem;
|
padding-left: 0.4rem;
|
||||||
}
|
}
|
||||||
.his-var-content a span.ellipsis:after {
|
.his-var-content a span.ellipsis:after {
|
||||||
content: "...";
|
content: '...';
|
||||||
}
|
}
|
||||||
.his-var-content a:not(.mention) span:last-of-type {
|
.his-var-content a:not(.mention) span:last-of-type {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -87,12 +90,13 @@
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
height: calc(100% - 3.4rem);
|
height: calc(100% - 3.4rem);
|
||||||
|
padding-bottom: 60px;
|
||||||
}
|
}
|
||||||
#my-data-nav .btn {
|
#my-data-nav .btn {
|
||||||
width: 10.7rem;
|
width: 10.6rem;
|
||||||
}
|
}
|
||||||
.active-back {
|
#my-data-nav .active-back {
|
||||||
background-color: var(--active);
|
display: none;
|
||||||
}
|
}
|
||||||
#his-name .emojione,
|
#his-name .emojione,
|
||||||
#his-name .emoji-img {
|
#his-name .emoji-img {
|
||||||
@@ -122,7 +126,7 @@
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
#his-sign-action .btn {
|
#his-sign-action .btn {
|
||||||
flex-basis: 31.2%;
|
flex-basis: calc(50% - 10.6px);
|
||||||
}
|
}
|
||||||
#his-des .mention {
|
#his-des .mention {
|
||||||
color: #039be5;
|
color: #039be5;
|
||||||
@@ -142,6 +146,14 @@
|
|||||||
#hisdropdown {
|
#hisdropdown {
|
||||||
background-color: var(--bg);
|
background-color: var(--bg);
|
||||||
}
|
}
|
||||||
|
#hisdropdown li a {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
#hisdropdown li:hover {
|
#hisdropdown li:hover {
|
||||||
background-color: var(--active);
|
background-color: var(--active);
|
||||||
}
|
}
|
||||||
|
#his-data-title {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
69
app/img/2025.svg
Normal file
69
app/img/2025.svg
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg width="100%" height="100%" viewBox="0 0 600 600" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
||||||
|
<g id="輝き" transform="matrix(0.892356,0,0,0.892356,36.941,-15.9516)">
|
||||||
|
<g transform="matrix(2.39479,0,0,2.21494,-178.97,-182.183)">
|
||||||
|
<ellipse cx="123.217" cy="151.049" rx="36.923" ry="35.804" style="fill:rgb(84,82,81);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,8.39159,-32.1678)">
|
||||||
|
<ellipse cx="120.479" cy="305.524" rx="112.5" ry="52" style="fill:rgb(84,82,81);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.952046,-0.305955,0.305955,0.952046,-139.881,8.62199)">
|
||||||
|
<ellipse cx="134.479" cy="430.524" rx="46.5" ry="84" style="fill:rgb(84,82,81);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,2.39158,-65.1678)">
|
||||||
|
<ellipse cx="130.479" cy="561.024" rx="72.5" ry="74.5" style="fill:rgb(84,82,81);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,8.39159,-32.1678)">
|
||||||
|
<ellipse cx="156.979" cy="651.76" rx="68" ry="60.235" style="fill:rgb(84,82,81);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.954888,0.296965,-0.296965,0.954888,55.6063,-54.2336)">
|
||||||
|
<ellipse cx="199.479" cy="158.995" rx="98.5" ry="51" style="fill:rgb(240,132,46);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.931851,0.362841,-0.362841,0.931851,63.1962,-89.0819)">
|
||||||
|
<ellipse cx="344.979" cy="135.857" rx="74" ry="90.137" style="fill:rgb(240,132,46);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,-56.6084,-45.1678)">
|
||||||
|
<ellipse cx="493.479" cy="301.22" rx="126.5" ry="55.5" style="fill:rgb(240,132,46);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,-14.6084,-70.1678)">
|
||||||
|
<ellipse cx="531.479" cy="368.22" rx="58.5" ry="54.5" style="fill:rgb(240,132,46);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.973706,-0.227807,0.227807,0.973706,-124.722,44.48)">
|
||||||
|
<ellipse cx="265.479" cy="614.97" rx="98.5" ry="37.5" style="fill:rgb(54,76,159);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.982834,-0.184492,0.184492,0.982834,-148.417,-31.379)">
|
||||||
|
<ellipse cx="407.479" cy="676.47" rx="71.5" ry="96" style="fill:rgb(54,76,159);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,-34.6084,-22.1678)">
|
||||||
|
<ellipse cx="468.979" cy="511.47" rx="48" ry="31" style="fill:rgb(54,76,159);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.880625,0.473815,-0.473815,0.880625,260.236,-235.714)">
|
||||||
|
<ellipse cx="533.979" cy="472.97" rx="46" ry="99.5" style="fill:rgb(54,76,159);"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,9.39159,-36.1678)">
|
||||||
|
<circle cx="69.229" cy="310.72" r="24.25" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,8.39159,-48.1678)">
|
||||||
|
<circle cx="98.229" cy="417.72" r="25.25" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(0.76,0,0,0.76,96.9465,101.545)">
|
||||||
|
<circle cx="375.229" cy="646.72" r="56.25" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
<g transform="matrix(1,0,0,1,8.39159,-32.1678)">
|
||||||
|
<circle cx="427.729" cy="287.22" r="32.75" style="fill:white;"/>
|
||||||
|
</g>
|
||||||
|
<g id="cat" transform="matrix(0.0249784,0,0,0.0249784,346.146,563.341)">
|
||||||
|
<path d="M1592.47,2584L2048.94,2584C2048.94,2519.11 2044.31,2506.24 1936.84,2506.24C1954.01,2454.74 2023.79,2330.13 2062.57,2330.13C2096.88,2330.13 2137.81,2332.02 2137.81,2410.3C2137.81,2499.17 2287.37,2642.46 2323.63,2584C2377.67,2496.88 2230.72,2523.45 2230.72,2313.35C2230.72,2025.92 2398.46,2066.84 2398.46,1905.36C2398.46,1824.57 2376.14,1813.66 2376.14,1755.9C2376.14,1679.56 2443.39,1683.99 2430.31,1620.7C2421.27,1576.98 2414.2,1541.92 2408.93,1489.05C2405.19,1451.54 2404,1411.55 2365.03,1413.16C2319.25,1415.05 2301.88,1495.63 2230.72,1501.41C2159.7,1507.18 2099.15,1440.95 2071.66,1450.41C2044.41,1459.79 2052.98,1533.73 2069.14,1586.24C2094.54,1668.78 2149.93,1776.1 2048.94,1792.26C1947.95,1808.42 1774.25,1824.58 1649.02,1990.2C1523.79,2155.82 1528.42,2350.19 1479.36,2410.31C1314.72,2612.08 1146,2529.23 1146,2697.11C1146,2772.27 1273.35,2826.38 1293.55,2802.14C1313.75,2777.9 1121.93,2705.68 1336.56,2620.36C1519.91,2547.46 1536.28,2532.58 1592.47,2584Z" style="fill:rgb(5,127,254);"/>
|
||||||
|
</g>
|
||||||
|
<g id="cat1" serif:id="cat" transform="matrix(-0.0249784,0,0,0.0249784,147.519,318.341)">
|
||||||
|
<path d="M1592.47,2584L2048.94,2584C2048.94,2519.11 2044.31,2506.24 1936.84,2506.24C1954.01,2454.74 2023.79,2330.13 2062.57,2330.13C2096.88,2330.13 2137.81,2332.02 2137.81,2410.3C2137.81,2499.17 2287.37,2642.46 2323.63,2584C2377.67,2496.88 2230.72,2523.45 2230.72,2313.35C2230.72,2025.92 2398.46,2066.84 2398.46,1905.36C2398.46,1824.57 2376.14,1813.66 2376.14,1755.9C2376.14,1679.56 2443.39,1683.99 2430.31,1620.7C2421.27,1576.98 2414.2,1541.92 2408.93,1489.05C2405.19,1451.54 2404,1411.55 2365.03,1413.16C2319.25,1415.05 2301.88,1495.63 2230.72,1501.41C2159.7,1507.18 2099.15,1440.95 2071.66,1450.41C2044.41,1459.79 2052.98,1533.73 2069.14,1586.24C2094.54,1668.78 2149.93,1776.1 2048.94,1792.26C1947.95,1808.42 1774.25,1824.58 1649.02,1990.2C1523.79,2155.82 1528.42,2350.19 1479.36,2410.31C1314.72,2612.08 1146,2529.23 1146,2697.11C1146,2772.27 1273.35,2826.38 1293.55,2802.14C1313.75,2777.9 1121.93,2705.68 1336.56,2620.36C1519.91,2547.46 1536.28,2532.58 1592.47,2584Z" style="fill:rgb(5,127,254);"/>
|
||||||
|
</g>
|
||||||
|
<g id="cat2" serif:id="cat" transform="matrix(-0.0249784,0,0,0.0249784,120.519,222.341)">
|
||||||
|
<path d="M1592.47,2584L2048.94,2584C2048.94,2519.11 2044.31,2506.24 1936.84,2506.24C1954.01,2454.74 2023.79,2330.13 2062.57,2330.13C2096.88,2330.13 2137.81,2332.02 2137.81,2410.3C2137.81,2499.17 2287.37,2642.46 2323.63,2584C2377.67,2496.88 2230.72,2523.45 2230.72,2313.35C2230.72,2025.92 2398.46,2066.84 2398.46,1905.36C2398.46,1824.57 2376.14,1813.66 2376.14,1755.9C2376.14,1679.56 2443.39,1683.99 2430.31,1620.7C2421.27,1576.98 2414.2,1541.92 2408.93,1489.05C2405.19,1451.54 2404,1411.55 2365.03,1413.16C2319.25,1415.05 2301.88,1495.63 2230.72,1501.41C2159.7,1507.18 2099.15,1440.95 2071.66,1450.41C2044.41,1459.79 2052.98,1533.73 2069.14,1586.24C2094.54,1668.78 2149.93,1776.1 2048.94,1792.26C1947.95,1808.42 1774.25,1824.58 1649.02,1990.2C1523.79,2155.82 1528.42,2350.19 1479.36,2410.31C1314.72,2612.08 1146,2529.23 1146,2697.11C1146,2772.27 1273.35,2826.38 1293.55,2802.14C1313.75,2777.9 1121.93,2705.68 1336.56,2620.36C1519.91,2547.46 1536.28,2532.58 1592.47,2584Z" style="fill:rgb(5,127,254);"/>
|
||||||
|
</g>
|
||||||
|
<g id="cat3" serif:id="cat" transform="matrix(0.0249784,0,0,0.0249784,390.146,196.341)">
|
||||||
|
<path d="M1592.47,2584L2048.94,2584C2048.94,2519.11 2044.31,2506.24 1936.84,2506.24C1954.01,2454.74 2023.79,2330.13 2062.57,2330.13C2096.88,2330.13 2137.81,2332.02 2137.81,2410.3C2137.81,2499.17 2287.37,2642.46 2323.63,2584C2377.67,2496.88 2230.72,2523.45 2230.72,2313.35C2230.72,2025.92 2398.46,2066.84 2398.46,1905.36C2398.46,1824.57 2376.14,1813.66 2376.14,1755.9C2376.14,1679.56 2443.39,1683.99 2430.31,1620.7C2421.27,1576.98 2414.2,1541.92 2408.93,1489.05C2405.19,1451.54 2404,1411.55 2365.03,1413.16C2319.25,1415.05 2301.88,1495.63 2230.72,1501.41C2159.7,1507.18 2099.15,1440.95 2071.66,1450.41C2044.41,1459.79 2052.98,1533.73 2069.14,1586.24C2094.54,1668.78 2149.93,1776.1 2048.94,1792.26C1947.95,1808.42 1774.25,1824.58 1649.02,1990.2C1523.79,2155.82 1528.42,2350.19 1479.36,2410.31C1314.72,2612.08 1146,2529.23 1146,2697.11C1146,2772.27 1273.35,2826.38 1293.55,2802.14C1313.75,2777.9 1121.93,2705.68 1336.56,2620.36C1519.91,2547.46 1536.28,2532.58 1592.47,2584Z" style="fill:rgb(5,127,254);"/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 7.8 KiB |
@@ -10,7 +10,7 @@ $(document).ready(function () {
|
|||||||
belowOrigin: false, // Displays dropdown below the button
|
belowOrigin: false, // Displays dropdown below the button
|
||||||
alignment: 'left', // Displays dropdown with edge aligned to the left of button
|
alignment: 'left', // Displays dropdown with edge aligned to the left of button
|
||||||
stopPropagation: false
|
stopPropagation: false
|
||||||
});
|
})
|
||||||
$('.dropdown-trigger').dropdown({
|
$('.dropdown-trigger').dropdown({
|
||||||
inDuration: 300,
|
inDuration: 300,
|
||||||
outDuration: 225,
|
outDuration: 225,
|
||||||
@@ -21,9 +21,9 @@ $(document).ready(function () {
|
|||||||
alignment: 'left', // Displays dropdown with edge aligned to the left of button
|
alignment: 'left', // Displays dropdown with edge aligned to the left of button
|
||||||
stopPropagation: false // Stops event propagation
|
stopPropagation: false // Stops event propagation
|
||||||
}
|
}
|
||||||
);
|
)
|
||||||
$('.collapsible').collapsible();
|
$('.collapsible').collapsible()
|
||||||
$('#videomodal').modal({
|
$('#videomodal').modal({
|
||||||
onCloseEnd: stopVideo
|
onCloseEnd: stopVideo
|
||||||
});
|
})
|
||||||
});
|
})
|
@@ -17,26 +17,26 @@
|
|||||||
(function (factory) {
|
(function (factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
// AMD. Register as an anonymous module.
|
// AMD. Register as an anonymous module.
|
||||||
define(['jquery'], factory);
|
define(['jquery'], factory)
|
||||||
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
} else if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||||
factory(require('jquery'));
|
factory(require('jquery'))
|
||||||
} else {
|
} else {
|
||||||
// Browser globals
|
// Browser globals
|
||||||
factory(jQuery);
|
factory(jQuery)
|
||||||
}
|
}
|
||||||
}(function ($) {
|
}(function ($) {
|
||||||
$.timeago = function (timestamp) {
|
$.timeago = function (timestamp) {
|
||||||
if (timestamp instanceof Date) {
|
if (timestamp instanceof Date) {
|
||||||
return inWords(timestamp);
|
return inWords(timestamp)
|
||||||
} else if (typeof timestamp === "string") {
|
} else if (typeof timestamp === "string") {
|
||||||
return inWords($.timeago.parse(timestamp));
|
return inWords($.timeago.parse(timestamp))
|
||||||
} else if (typeof timestamp === "number") {
|
} else if (typeof timestamp === "number") {
|
||||||
return inWords(new Date(timestamp));
|
return inWords(new Date(timestamp))
|
||||||
} else {
|
} else {
|
||||||
return inWords($.timeago.datetime(timestamp));
|
return inWords($.timeago.datetime(timestamp))
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
var $t = $.timeago;
|
var $t = $.timeago
|
||||||
$.extend($.timeago, {
|
$.extend($.timeago, {
|
||||||
settings: {
|
settings: {
|
||||||
refreshMillis: 60000,
|
refreshMillis: 60000,
|
||||||
@@ -69,33 +69,33 @@
|
|||||||
|
|
||||||
inWords: function (distanceMillis) {
|
inWords: function (distanceMillis) {
|
||||||
if (!this.settings.allowPast && !this.settings.allowFuture) {
|
if (!this.settings.allowPast && !this.settings.allowFuture) {
|
||||||
throw 'timeago allowPast and allowFuture settings can not both be set to false.';
|
throw 'timeago allowPast and allowFuture settings can not both be set to false.'
|
||||||
}
|
}
|
||||||
|
|
||||||
var $l = this.settings.strings;
|
var $l = this.settings.strings
|
||||||
var prefix = $l.prefixAgo;
|
var prefix = $l.prefixAgo
|
||||||
var suffix = $l.suffixAgo;
|
var suffix = $l.suffixAgo
|
||||||
if (this.settings.allowFuture) {
|
if (this.settings.allowFuture) {
|
||||||
if (distanceMillis < 0) {
|
if (distanceMillis < 0) {
|
||||||
prefix = $l.prefixFromNow;
|
prefix = $l.prefixFromNow
|
||||||
suffix = $l.suffixFromNow;
|
suffix = $l.suffixFromNow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.settings.allowPast && distanceMillis >= 0) {
|
if (!this.settings.allowPast && distanceMillis >= 0) {
|
||||||
return this.settings.strings.inPast;
|
return this.settings.strings.inPast
|
||||||
}
|
}
|
||||||
|
|
||||||
var seconds = Math.abs(distanceMillis) / 1000;
|
var seconds = Math.abs(distanceMillis) / 1000
|
||||||
var minutes = seconds / 60;
|
var minutes = seconds / 60
|
||||||
var hours = minutes / 60;
|
var hours = minutes / 60
|
||||||
var days = hours / 24;
|
var days = hours / 24
|
||||||
var years = days / 365;
|
var years = days / 365
|
||||||
|
|
||||||
function substitute(stringOrFunction, number) {
|
function substitute(stringOrFunction, number) {
|
||||||
var string = $.isFunction(stringOrFunction) ? stringOrFunction(number, distanceMillis) : stringOrFunction;
|
var string = $.isFunction(stringOrFunction) ? stringOrFunction(number, distanceMillis) : stringOrFunction
|
||||||
var value = ($l.numbers && $l.numbers[number]) || number;
|
var value = ($l.numbers && $l.numbers[number]) || number
|
||||||
return string.replace(/%d/i, value);
|
return string.replace(/%d/i, value)
|
||||||
}
|
}
|
||||||
|
|
||||||
var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) ||
|
var words = seconds < 45 && substitute($l.seconds, Math.round(seconds)) ||
|
||||||
@@ -108,124 +108,124 @@
|
|||||||
days < 45 && substitute($l.month, 1) ||
|
days < 45 && substitute($l.month, 1) ||
|
||||||
days < 365 && substitute($l.months, Math.round(days / 30)) ||
|
days < 365 && substitute($l.months, Math.round(days / 30)) ||
|
||||||
years < 1.5 && substitute($l.year, 1) ||
|
years < 1.5 && substitute($l.year, 1) ||
|
||||||
substitute($l.years, Math.round(years));
|
substitute($l.years, Math.round(years))
|
||||||
|
|
||||||
var separator = $l.wordSeparator || "";
|
var separator = $l.wordSeparator || ""
|
||||||
if ($l.wordSeparator === undefined) { separator = " "; }
|
if ($l.wordSeparator === undefined) { separator = " " }
|
||||||
return $.trim([prefix, words, suffix].join(separator));
|
return $.trim([prefix, words, suffix].join(separator))
|
||||||
},
|
},
|
||||||
|
|
||||||
parse: function (iso8601) {
|
parse: function (iso8601) {
|
||||||
var s = $.trim(iso8601);
|
var s = $.trim(iso8601)
|
||||||
s = s.replace(/\.\d+/, ""); // remove milliseconds
|
s = s.replace(/\.\d+/, "") // remove milliseconds
|
||||||
s = s.replace(/-/, "/").replace(/-/, "/");
|
s = s.replace(/-/, "/").replace(/-/, "/")
|
||||||
s = s.replace(/T/, " ").replace(/Z/, " UTC");
|
s = s.replace(/T/, " ").replace(/Z/, " UTC")
|
||||||
s = s.replace(/([\+\-]\d\d)\:?(\d\d)/, " $1$2"); // -04:00 -> -0400
|
s = s.replace(/([\+\-]\d\d)\:?(\d\d)/, " $1$2") // -04:00 -> -0400
|
||||||
s = s.replace(/([\+\-]\d\d)$/, " $100"); // +09 -> +0900
|
s = s.replace(/([\+\-]\d\d)$/, " $100") // +09 -> +0900
|
||||||
return new Date(s);
|
return new Date(s)
|
||||||
},
|
},
|
||||||
datetime: function (elem) {
|
datetime: function (elem) {
|
||||||
var iso8601 = $t.isTime(elem) ? $(elem).attr("datetime") : $(elem).attr("title");
|
var iso8601 = $t.isTime(elem) ? $(elem).attr("datetime") : $(elem).attr("title")
|
||||||
return $t.parse(iso8601);
|
return $t.parse(iso8601)
|
||||||
},
|
},
|
||||||
isTime: function (elem) {
|
isTime: function (elem) {
|
||||||
// jQuery's `is()` doesn't play well with HTML5 in IE
|
// jQuery's `is()` doesn't play well with HTML5 in IE
|
||||||
return $(elem).get(0).tagName.toLowerCase() === "time"; // $(elem).is("time");
|
return $(elem).get(0).tagName.toLowerCase() === "time" // $(elem).is("time");
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
|
||||||
// functions that can be called via $(el).timeago('action')
|
// functions that can be called via $(el).timeago('action')
|
||||||
// init is default when no action is given
|
// init is default when no action is given
|
||||||
// functions are called with context of a single element
|
// functions are called with context of a single element
|
||||||
var functions = {
|
var functions = {
|
||||||
init: function () {
|
init: function () {
|
||||||
functions.dispose.call(this);
|
functions.dispose.call(this)
|
||||||
var refresh_el = $.proxy(refresh, this);
|
var refresh_el = $.proxy(refresh, this)
|
||||||
refresh_el();
|
refresh_el()
|
||||||
var $s = $t.settings;
|
var $s = $t.settings
|
||||||
if ($s.refreshMillis > 0) {
|
if ($s.refreshMillis > 0) {
|
||||||
this._timeagoInterval = setInterval(refresh_el, $s.refreshMillis);
|
this._timeagoInterval = setInterval(refresh_el, $s.refreshMillis)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
update: function (timestamp) {
|
update: function (timestamp) {
|
||||||
var date = (timestamp instanceof Date) ? timestamp : $t.parse(timestamp);
|
var date = (timestamp instanceof Date) ? timestamp : $t.parse(timestamp)
|
||||||
$(this).data('timeago', { datetime: date });
|
$(this).data('timeago', { datetime: date })
|
||||||
if ($t.settings.localeTitle) {
|
if ($t.settings.localeTitle) {
|
||||||
$(this).attr("title", date.toLocaleString());
|
$(this).attr("title", date.toLocaleString())
|
||||||
}
|
}
|
||||||
refresh.apply(this);
|
refresh.apply(this)
|
||||||
},
|
},
|
||||||
updateFromDOM: function () {
|
updateFromDOM: function () {
|
||||||
$(this).data('timeago', { datetime: $t.parse($t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title")) });
|
$(this).data('timeago', { datetime: $t.parse($t.isTime(this) ? $(this).attr("datetime") : $(this).attr("title")) })
|
||||||
refresh.apply(this);
|
refresh.apply(this)
|
||||||
},
|
},
|
||||||
dispose: function () {
|
dispose: function () {
|
||||||
if (this._timeagoInterval) {
|
if (this._timeagoInterval) {
|
||||||
window.clearInterval(this._timeagoInterval);
|
window.clearInterval(this._timeagoInterval)
|
||||||
this._timeagoInterval = null;
|
this._timeagoInterval = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
$.fn.timeago = function (action, options) {
|
$.fn.timeago = function (action, options) {
|
||||||
var fn = action ? functions[action] : functions.init;
|
var fn = action ? functions[action] : functions.init
|
||||||
if (!fn) {
|
if (!fn) {
|
||||||
throw new Error("Unknown function name '" + action + "' for timeago");
|
throw new Error("Unknown function name '" + action + "' for timeago")
|
||||||
}
|
}
|
||||||
// each over objects here and call the requested function
|
// each over objects here and call the requested function
|
||||||
this.each(function () {
|
this.each(function () {
|
||||||
fn.call(this, options);
|
fn.call(this, options)
|
||||||
});
|
})
|
||||||
return this;
|
return this
|
||||||
};
|
}
|
||||||
|
|
||||||
function refresh() {
|
function refresh() {
|
||||||
var $s = $t.settings;
|
var $s = $t.settings
|
||||||
|
|
||||||
//check if it's still visible
|
//check if it's still visible
|
||||||
if ($s.autoDispose && !$.contains(document.documentElement, this)) {
|
if ($s.autoDispose && !$.contains(document.documentElement, this)) {
|
||||||
//stop if it has been removed
|
//stop if it has been removed
|
||||||
$(this).timeago("dispose");
|
$(this).timeago("dispose")
|
||||||
return this;
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = prepareData(this);
|
var data = prepareData(this)
|
||||||
|
|
||||||
if (!isNaN(data.datetime)) {
|
if (!isNaN(data.datetime)) {
|
||||||
if ($s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
|
if ($s.cutoff === 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
|
||||||
$(this).text(inWords(data.datetime));
|
$(this).text(inWords(data.datetime))
|
||||||
} else {
|
} else {
|
||||||
if ($(this).attr('title').length > 0) {
|
if ($(this).attr('title').length > 0) {
|
||||||
$(this).text($(this).attr('title'));
|
$(this).text($(this).attr('title'))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this;
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepareData(element) {
|
function prepareData(element) {
|
||||||
element = $(element);
|
element = $(element)
|
||||||
if (!element.data("timeago")) {
|
if (!element.data("timeago")) {
|
||||||
element.data("timeago", { datetime: $t.datetime(element) });
|
element.data("timeago", { datetime: $t.datetime(element) })
|
||||||
var text = $.trim(element.text());
|
var text = $.trim(element.text())
|
||||||
if ($t.settings.localeTitle) {
|
if ($t.settings.localeTitle) {
|
||||||
element.attr("title", element.data('timeago').datetime.toLocaleString());
|
element.attr("title", element.data('timeago').datetime.toLocaleString())
|
||||||
} else if (text.length > 0 && !($t.isTime(element) && element.attr("title"))) {
|
} else if (text.length > 0 && !($t.isTime(element) && element.attr("title"))) {
|
||||||
element.attr("title", text);
|
element.attr("title", text)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return element.data("timeago");
|
return element.data("timeago")
|
||||||
}
|
}
|
||||||
|
|
||||||
function inWords(date) {
|
function inWords(date) {
|
||||||
return $t.inWords(distance(date));
|
return $t.inWords(distance(date))
|
||||||
}
|
}
|
||||||
|
|
||||||
function distance(date) {
|
function distance(date) {
|
||||||
return (new Date().getTime() - date.getTime());
|
return (new Date().getTime() - date.getTime())
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix for IE6 suckage
|
// fix for IE6 suckage
|
||||||
document.createElement("abbr");
|
document.createElement("abbr")
|
||||||
document.createElement("time");
|
document.createElement("time")
|
||||||
}));
|
}))
|
@@ -1,5 +1,6 @@
|
|||||||
//バージョンチェッカー
|
//バージョンチェッカー
|
||||||
function verck(ver, jp) {
|
function verck(ver, jp) {
|
||||||
|
if (store) return false
|
||||||
console.log('%c Welcome😊 ' + ver, 'color: red;font-size:200%;')
|
console.log('%c Welcome😊 ' + ver, 'color: red;font-size:200%;')
|
||||||
$('body').addClass(localStorage.getItem('platform'))
|
$('body').addClass(localStorage.getItem('platform'))
|
||||||
var date = new Date()
|
var date = new Date()
|
||||||
@@ -327,82 +328,8 @@ function closeSupport() {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
function storeDialog(platform, ver) {
|
|
||||||
if($('body').hasClass('accessibility')) return false
|
|
||||||
if (platform == 'win32') {
|
|
||||||
var mes = lang.lang_version_platform
|
|
||||||
} else if (platform == 'linux') {
|
|
||||||
var mes = lang.lang_version_platform_linux
|
|
||||||
} else if (platform == 'darwin') {
|
|
||||||
var mes = lang.lang_version_platform_mac
|
|
||||||
} else {
|
|
||||||
var mes = false
|
|
||||||
}
|
|
||||||
if (mes) {
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Select your platform',
|
|
||||||
text: mes,
|
|
||||||
type: 'info',
|
|
||||||
showCancelButton: true,
|
|
||||||
confirmButtonColor: '#3085d6',
|
|
||||||
cancelButtonColor: '#3085d6',
|
|
||||||
confirmButtonText: lang.lang_no,
|
|
||||||
cancelButtonText: lang.lang_yesno
|
|
||||||
}).then(result => {
|
|
||||||
//逆にしてる
|
|
||||||
if (!result.value) {
|
|
||||||
localStorage.setItem('winstore', 'winstore')
|
|
||||||
} else {
|
|
||||||
localStorage.setItem('winstore', 'localinstall')
|
|
||||||
}
|
|
||||||
localStorage.setItem('ver', ver)
|
|
||||||
showVer = true
|
|
||||||
if(pwa) return false
|
|
||||||
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('#releasenote').modal('open')
|
|
||||||
verp = ver.replace('(', '')
|
|
||||||
verp = verp.replace('.', '-')
|
|
||||||
verp = verp.replace('.', '-')
|
|
||||||
verp = verp.replace('[', '-')
|
|
||||||
verp = verp.replace(']', '')
|
|
||||||
verp = verp.replace(')', '')
|
|
||||||
verp = verp.replace(' ', '_')
|
|
||||||
console.log('%c ' + verp, 'color: red;font-size:200%;')
|
|
||||||
if (lang.language == 'ja') {
|
|
||||||
$('#release-' + verp).show()
|
|
||||||
} else {
|
|
||||||
$('#release-en').show()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
localStorage.setItem('ver', ver)
|
|
||||||
showVer = true
|
|
||||||
console.log('%c Thank you for your update🎉', 'color: red;font-size:200%;')
|
|
||||||
$(document).ready(function() {
|
|
||||||
if(pwa) return false
|
|
||||||
$('#releasenote').modal('open')
|
|
||||||
verp = ver.replace('(', '')
|
|
||||||
verp = verp.replace('.', '-')
|
|
||||||
verp = verp.replace('.', '-')
|
|
||||||
verp = verp.replace('[', '-')
|
|
||||||
verp = verp.replace(']', '')
|
|
||||||
verp = verp.replace(')', '')
|
|
||||||
verp = verp.replace(' ', '_')
|
|
||||||
console.log('%c ' + verp, 'color: red;font-size:200%;')
|
|
||||||
if (lang.language == 'ja') {
|
|
||||||
$('#release-' + verp).show()
|
|
||||||
} else {
|
|
||||||
$('#release-en').show()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
function closeStart() {
|
function closeStart() {
|
||||||
$('#start').css('display', 'none')
|
$('#start').css('display', 'none')
|
||||||
var platform = localStorage.getItem('platform')
|
var platform = localStorage.getItem('platform')
|
||||||
var ver = localStorage.getItem('ver')
|
var ver = localStorage.getItem('ver')
|
||||||
storeDialog(platform, ver)
|
|
||||||
}
|
}
|
||||||
|
@@ -92,7 +92,7 @@ var activity=[
|
|||||||
{shortcode:"man-rowing-boat",css:"95.8333% 14.5833%"},
|
{shortcode:"man-rowing-boat",css:"95.8333% 14.5833%"},
|
||||||
{shortcode:"man-biking",css:"95.8333% 39.5833%"},
|
{shortcode:"man-biking",css:"95.8333% 39.5833%"},
|
||||||
{shortcode:"man-mountain-biking",css:"95.8333% 64.5833%"}
|
{shortcode:"man-mountain-biking",css:"95.8333% 64.5833%"}
|
||||||
];
|
]
|
||||||
var flag=[
|
var flag=[
|
||||||
{shortcode:"checkered_flag",css:"16.6667% 58.3333%"},
|
{shortcode:"checkered_flag",css:"16.6667% 58.3333%"},
|
||||||
{shortcode:"crossed_flags",css:"14.5833% 60.4167%"},
|
{shortcode:"crossed_flags",css:"14.5833% 60.4167%"},
|
||||||
@@ -356,7 +356,7 @@ var flag=[
|
|||||||
{shortcode:"rainbow-flag",css:"83.3333% 100%"},
|
{shortcode:"rainbow-flag",css:"83.3333% 100%"},
|
||||||
{shortcode:"triangular_flag_on_post",css:"54.1667% 6.25%"},
|
{shortcode:"triangular_flag_on_post",css:"54.1667% 6.25%"},
|
||||||
{shortcode:"waving_black_flag",css:"20.8333% 29.1667%"},
|
{shortcode:"waving_black_flag",css:"20.8333% 29.1667%"},
|
||||||
{shortcode:"waving_white_flag",css:"20.8333% 27.0833%"}];
|
{shortcode:"waving_white_flag",css:"20.8333% 27.0833%"}]
|
||||||
var food=[
|
var food=[
|
||||||
{shortcode:"green_apple",css:"12.5% 25%"},
|
{shortcode:"green_apple",css:"12.5% 25%"},
|
||||||
{shortcode:"apple",css:"12.5% 22.9167%"},
|
{shortcode:"apple",css:"12.5% 22.9167%"},
|
||||||
@@ -444,7 +444,7 @@ var food=[
|
|||||||
{shortcode:"spoon",css:"62.5% 14.5833%"},
|
{shortcode:"spoon",css:"62.5% 14.5833%"},
|
||||||
{shortcode:"fork_and_knife",css:"14.5833% 0%"},
|
{shortcode:"fork_and_knife",css:"14.5833% 0%"},
|
||||||
{shortcode:"knife_fork_plate",css:"14.5833% 18.75%"}
|
{shortcode:"knife_fork_plate",css:"14.5833% 18.75%"}
|
||||||
];
|
]
|
||||||
var nature=[
|
var nature=[
|
||||||
{shortcode:"dog",css:"22.9167% 62.5%"},
|
{shortcode:"dog",css:"22.9167% 62.5%"},
|
||||||
{shortcode:"cat",css:"22.9167% 52.0833%"},
|
{shortcode:"cat",css:"22.9167% 52.0833%"},
|
||||||
@@ -605,7 +605,7 @@ var nature=[
|
|||||||
{shortcode:"droplet",css:"35.4167% 39.5833%"},
|
{shortcode:"droplet",css:"35.4167% 39.5833%"},
|
||||||
{shortcode:"sweat_drops",css:"35.4167% 37.5%"},
|
{shortcode:"sweat_drops",css:"35.4167% 37.5%"},
|
||||||
{shortcode:"umbrella_with_rain_drops",css:"0% 100%"}
|
{shortcode:"umbrella_with_rain_drops",css:"0% 100%"}
|
||||||
];
|
]
|
||||||
var object=[
|
var object=[
|
||||||
{shortcode:"watch",css:"0% 29.1667%"},
|
{shortcode:"watch",css:"0% 29.1667%"},
|
||||||
{shortcode:"iphone",css:"39.5833% 0%"},
|
{shortcode:"iphone",css:"39.5833% 0%"},
|
||||||
@@ -780,7 +780,7 @@ var object=[
|
|||||||
{shortcode:"closed_lock_with_key",css:"39.5833% 62.5%"},
|
{shortcode:"closed_lock_with_key",css:"39.5833% 62.5%"},
|
||||||
{shortcode:"lock",css:"39.5833% 66.6667%"},
|
{shortcode:"lock",css:"39.5833% 66.6667%"},
|
||||||
{shortcode:"unlock",css:"39.5833% 68.75%"}
|
{shortcode:"unlock",css:"39.5833% 68.75%"}
|
||||||
];
|
]
|
||||||
var people=[
|
var people=[
|
||||||
{shortcode:"grinning",css:"45.8333% 68.75%"},
|
{shortcode:"grinning",css:"45.8333% 68.75%"},
|
||||||
{shortcode:"smiley",css:"45.8333% 75%"},
|
{shortcode:"smiley",css:"45.8333% 75%"},
|
||||||
@@ -1096,7 +1096,7 @@ var people=[
|
|||||||
{shortcode:"woman-raising-hand",css:"93.75% 29.1667%"},
|
{shortcode:"woman-raising-hand",css:"93.75% 29.1667%"},
|
||||||
{shortcode:"woman-frowning",css:"93.75% 54.1667%"},
|
{shortcode:"woman-frowning",css:"93.75% 54.1667%"},
|
||||||
{shortcode:"woman-pouting",css:"93.75% 79.1667%"}
|
{shortcode:"woman-pouting",css:"93.75% 79.1667%"}
|
||||||
];
|
]
|
||||||
var place=[
|
var place=[
|
||||||
{shortcode:"car",css:"52.0833% 60.4167%"},
|
{shortcode:"car",css:"52.0833% 60.4167%"},
|
||||||
{shortcode:"taxi",css:"52.0833% 56.25%"},
|
{shortcode:"taxi",css:"52.0833% 56.25%"},
|
||||||
@@ -1217,7 +1217,7 @@ var place=[
|
|||||||
{shortcode:"milky_way",css:"8.33333% 93.75%"},
|
{shortcode:"milky_way",css:"8.33333% 93.75%"},
|
||||||
{shortcode:"bridge_at_night",css:"8.33333% 87.5%"},
|
{shortcode:"bridge_at_night",css:"8.33333% 87.5%"},
|
||||||
{shortcode:"foggy",css:"8.33333% 70.8333%"}
|
{shortcode:"foggy",css:"8.33333% 70.8333%"}
|
||||||
];
|
]
|
||||||
var symbol=[
|
var symbol=[
|
||||||
{shortcode:"heart",css:"6.25% 62.5%"},
|
{shortcode:"heart",css:"6.25% 62.5%"},
|
||||||
{shortcode:"yellow_heart",css:"35.4167% 14.5833%"},
|
{shortcode:"yellow_heart",css:"35.4167% 14.5833%"},
|
||||||
@@ -1492,7 +1492,7 @@ var symbol=[
|
|||||||
{shortcode:"female_sign",css:"2.08333% 37.5%"},
|
{shortcode:"female_sign",css:"2.08333% 37.5%"},
|
||||||
{shortcode:"male_sign",css:"2.08333% 39.5833%"},
|
{shortcode:"male_sign",css:"2.08333% 39.5833%"},
|
||||||
{shortcode:"staff_of_aesculapius",css:"2.08333% 87.5%"}
|
{shortcode:"staff_of_aesculapius",css:"2.08333% 87.5%"}
|
||||||
];
|
]
|
||||||
var faicons=[
|
var faicons=[
|
||||||
"fa-500px",
|
"fa-500px",
|
||||||
"fa-address-book",
|
"fa-address-book",
|
||||||
|
@@ -83,6 +83,6 @@ var idata = {
|
|||||||
"nitiasa.com_quote":"enabled",
|
"nitiasa.com_quote":"enabled",
|
||||||
"biwakodon.com_quote":"enabled",
|
"biwakodon.com_quote":"enabled",
|
||||||
"comm.cx_quote":"enabled"
|
"comm.cx_quote":"enabled"
|
||||||
};
|
}
|
||||||
|
|
||||||
localStorage.setItem("instance", JSON.stringify(idata));
|
localStorage.setItem("instance", JSON.stringify(idata))
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//ログアウトします
|
//ログアウトします
|
||||||
function logout() {
|
function logout() {
|
||||||
localStorage.removeItem("acct_" + acct_id + "_at");
|
localStorage.removeItem("acct_" + acct_id + "_at")
|
||||||
localStorage.removeItem("domain_" + acct_id);
|
localStorage.removeItem("domain_" + acct_id)
|
||||||
location.href = "index.html";
|
location.href = "index.html"
|
||||||
todc();
|
todc()
|
||||||
}
|
}
|
@@ -130,17 +130,11 @@ function playSound() {
|
|||||||
volumeControl.gain.value = vol
|
volumeControl.gain.value = vol
|
||||||
source.start(0)
|
source.start(0)
|
||||||
soundFile = source
|
soundFile = source
|
||||||
|
|
||||||
function newFunction() {
|
|
||||||
var source
|
|
||||||
return source
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
function nano() {
|
function nano() {
|
||||||
postMessage(['nano', null], '*')
|
postMessage(['nano', null], '*')
|
||||||
}
|
}
|
||||||
onmessage = function(e) {
|
onmessage = function(e) {
|
||||||
console.log(e)
|
|
||||||
if (e.data[0] == 'details') {
|
if (e.data[0] == 'details') {
|
||||||
details(e.data[1][0], e.data[1][1])
|
details(e.data[1][0], e.data[1][1])
|
||||||
} else if (e.data[0] == 'udg') {
|
} else if (e.data[0] == 'udg') {
|
||||||
@@ -176,7 +170,7 @@ onmessage = function(e) {
|
|||||||
} else if (e.data[0] == 'npCore') {
|
} else if (e.data[0] == 'npCore') {
|
||||||
npCore(e.data[1])
|
npCore(e.data[1])
|
||||||
} else if (e.data[0] == 'renderMem') {
|
} else if (e.data[0] == 'renderMem') {
|
||||||
renderMem(e.data[1][0], e.data[1][1], e.data[1][2])
|
renderMem(e.data[1][0], e.data[1][1], e.data[1][2], e.data[1][3], e.data[1][4])
|
||||||
} else if (e.data[0] == 'updateProg') {
|
} else if (e.data[0] == 'updateProg') {
|
||||||
updateProg(e.data[1])
|
updateProg(e.data[1])
|
||||||
} else if (e.data[0] == 'updateMess') {
|
} else if (e.data[0] == 'updateMess') {
|
||||||
|
@@ -88,17 +88,18 @@ function formattimeutc(date) {
|
|||||||
}
|
}
|
||||||
postMessage(['sendSinmpleIpc', 'custom-css-request'], '*')
|
postMessage(['sendSinmpleIpc', 'custom-css-request'], '*')
|
||||||
function makeCID() {
|
function makeCID() {
|
||||||
return (
|
let chars = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("")
|
||||||
randomStr(8) +
|
for (let i = 0, len = chars.length; i < len; i++) {
|
||||||
'-' +
|
switch (chars[i]) {
|
||||||
randomStr(4) +
|
case "x":
|
||||||
'-' +
|
chars[i] = Math.floor(Math.random() * 16).toString(16)
|
||||||
randomStr(4) +
|
break
|
||||||
'-' +
|
case "y":
|
||||||
randomStr(4) +
|
chars[i] = (Math.floor(Math.random() * 4) + 8).toString(16)
|
||||||
'-' +
|
break
|
||||||
randomStr(12)
|
}
|
||||||
)
|
}
|
||||||
|
return chars.join("")
|
||||||
}
|
}
|
||||||
function randomStr(l) {
|
function randomStr(l) {
|
||||||
// 生成する文字列に含める文字セット
|
// 生成する文字列に含める文字セット
|
||||||
|
@@ -2,25 +2,9 @@ var electron = require('electron')
|
|||||||
const shell = electron.shell
|
const shell = electron.shell
|
||||||
var ipc = electron.ipcRenderer
|
var ipc = electron.ipcRenderer
|
||||||
//title bar
|
//title bar
|
||||||
const customTitlebar = require('custom-electron-titlebar')
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {
|
window.addEventListener('DOMContentLoaded', () => {
|
||||||
document.title = 'TheDesk'
|
document.title = 'TheDesk'
|
||||||
ipc.send('acsCheck', '')
|
ipc.send('acsCheck', '')
|
||||||
ipc.send('frameCheck', '')
|
|
||||||
ipc.on('frame', function(event, args) {
|
|
||||||
const file = location.href.substr(-10)
|
|
||||||
if (
|
|
||||||
file == 'index.html' ||
|
|
||||||
file == '/acct.html' ||
|
|
||||||
file == 'tting.html'
|
|
||||||
) {
|
|
||||||
new customTitlebar.Titlebar({
|
|
||||||
backgroundColor: customTitlebar.Color.fromHex('#000'),
|
|
||||||
titleHorizontalAlignment: 'right',
|
|
||||||
icon: '../../img/desk.png'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onmessage = function(e) {
|
onmessage = function(e) {
|
||||||
@@ -207,6 +191,7 @@ ipc.on('theme-json-response', function(event, args) {
|
|||||||
postMessage(['customConnect', args], '*')
|
postMessage(['customConnect', args], '*')
|
||||||
})
|
})
|
||||||
ipc.on('theme-json-create-complete', function(event, args) {
|
ipc.on('theme-json-create-complete', function(event, args) {
|
||||||
|
if(args != '') alert(args)
|
||||||
postMessage(['clearCustomImport', ''], '*')
|
postMessage(['clearCustomImport', ''], '*')
|
||||||
postMessage(['ctLoad', ''], '*')
|
postMessage(['ctLoad', ''], '*')
|
||||||
})
|
})
|
||||||
@@ -219,7 +204,7 @@ ipc.on('memory', function(event, arg) {
|
|||||||
var use = arg[0]
|
var use = arg[0]
|
||||||
var cpu = arg[1]
|
var cpu = arg[1]
|
||||||
var total = arg[2]
|
var total = arg[2]
|
||||||
postMessage(['renderMem', [use, cpu, total]], '*')
|
postMessage(['renderMem', [use, cpu, total, arg[3], arg[4]]], '*')
|
||||||
})
|
})
|
||||||
//log
|
//log
|
||||||
ipc.on('logData', function(event, args) {
|
ipc.on('logData', function(event, args) {
|
||||||
|
@@ -680,35 +680,9 @@ function staEx(mode) {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
function toggleAction(elem, height) {
|
function toggleAction(id) {
|
||||||
var cont = elem.parents('.cvo').find('.contextMenu')
|
const elm = document.getElementById(id)
|
||||||
if (cont.hasClass('hide')) {
|
const instance = M.Dropdown.init(elm);
|
||||||
$('#contextWrap').removeClass('hide')
|
console.log(instance.isOpen)
|
||||||
var left = elem.offset().left + 60
|
instance.open()
|
||||||
var top = elem.offset().top - height
|
|
||||||
if (top < 75) {
|
|
||||||
top = elem.offset().top + 45
|
|
||||||
cont.removeClass('bottom')
|
|
||||||
cont.addClass('top')
|
|
||||||
} else {
|
|
||||||
cont.removeClass('top')
|
|
||||||
cont.addClass('bottom')
|
|
||||||
}
|
|
||||||
if (elem.parents('.cvo').attr('id') == 'toot-this') {
|
|
||||||
console.log($('#toot-this').offset().top, elem.offset().top)
|
|
||||||
left = $('#toot-this').offset().left + elem.offset().left + 10
|
|
||||||
top = $('#toot-this').offset().top - $('#toot-this').height() - height + 25
|
|
||||||
}
|
|
||||||
cont.css('top', top + 'px')
|
|
||||||
cont.css('right', `calc(100vw - ${left}px)`)
|
|
||||||
cont.removeClass('hide')
|
|
||||||
elem
|
|
||||||
.parents('.cvo')
|
|
||||||
.find('.act-icon')
|
|
||||||
.text('expand_less')
|
|
||||||
} else {
|
|
||||||
$('#contextWrap').addClass('hide')
|
|
||||||
$('.contextMenu').addClass('hide')
|
|
||||||
$('.act-icon').text('expand_more')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -335,6 +335,13 @@ function cardCheck(tlid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function mov(id, tlid, type) {
|
function mov(id, tlid, type) {
|
||||||
|
const dropdownTrigger = `dropdown_${tlid}_${id}`
|
||||||
|
const elm = document.getElementById(dropdownTrigger)
|
||||||
|
const instance = M.Dropdown.getInstance(elm)
|
||||||
|
if(instance) {
|
||||||
|
if(instance.isOpen) return false
|
||||||
|
}
|
||||||
|
|
||||||
var click = false
|
var click = false
|
||||||
if (tlid == 'notf') {
|
if (tlid == 'notf') {
|
||||||
var tlide = '[data-notf=' + acct_id + ']'
|
var tlide = '[data-notf=' + acct_id + ']'
|
||||||
@@ -361,9 +368,9 @@ function mov(id, tlid, type) {
|
|||||||
}
|
}
|
||||||
if (mouseover == 'hide') {
|
if (mouseover == 'hide') {
|
||||||
if (click) {
|
if (click) {
|
||||||
$(tlide + ' [toot-id=' + id + ']').toggleClass('hide-actions')
|
$(tlide + ' [unique-id=' + id + ']').toggleClass('hide-actions')
|
||||||
} else {
|
} else {
|
||||||
$(tlide + ' [toot-id=' + id + ']').removeClass('hide-actions')
|
$(tlide + ' [unique-id=' + id + ']').removeClass('hide-actions')
|
||||||
}
|
}
|
||||||
|
|
||||||
//$(tlide + " [toot-id=" + id + "] .area-vis").toggleClass("hide")
|
//$(tlide + " [toot-id=" + id + "] .area-vis").toggleClass("hide")
|
||||||
|
@@ -1,95 +1,98 @@
|
|||||||
//日付パーサー
|
//日付パーサー
|
||||||
function date(str, datetype) {
|
function date(str, datetype, lastStatus) {
|
||||||
if (datetype == "relative") {
|
if (lastStatus) {
|
||||||
return '<time class="timeago" datetime="' + str + '"></time>';
|
var date = new Date(str)
|
||||||
|
return date.getFullYear() + "/" + (date.getMonth() + 1) + "/" + date.getDate()
|
||||||
|
} else if (datetype == "relative") {
|
||||||
|
return '<time class="timeago" datetime="' + str + '"></time>'
|
||||||
} else {
|
} else {
|
||||||
var date = new Date(str);
|
var date = new Date(str)
|
||||||
if (datetype == "unix") {
|
if (datetype == "unix") {
|
||||||
var unixm = date.getTime();
|
var unixm = date.getTime()
|
||||||
return Math.floor(unixm / 1000);
|
return Math.floor(unixm / 1000)
|
||||||
}
|
}
|
||||||
var now = new Date();
|
var now = new Date()
|
||||||
var month = date.getMonth() + 1;
|
var month = date.getMonth() + 1
|
||||||
if (date.getMinutes() < 10) {
|
if (date.getMinutes() < 10) {
|
||||||
var min = "0" + date.getMinutes();
|
var min = "0" + date.getMinutes()
|
||||||
} else {
|
} else {
|
||||||
var min = date.getMinutes();
|
var min = date.getMinutes()
|
||||||
}
|
}
|
||||||
var sec = null;
|
var sec = null
|
||||||
if (date.getSeconds() < 10) {
|
if (date.getSeconds() < 10) {
|
||||||
sec = "0" + date.getSeconds();
|
sec = "0" + date.getSeconds()
|
||||||
} else {
|
} else {
|
||||||
sec = date.getSeconds();
|
sec = date.getSeconds()
|
||||||
}
|
}
|
||||||
if (datetype == "full") {
|
if (datetype == "full") {
|
||||||
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + "/ " +
|
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + "/ " +
|
||||||
date.getHours() + ":" + min + ":" + sec;
|
date.getHours() + ":" + min + ":" + sec
|
||||||
}
|
}
|
||||||
if (date.getFullYear() == now.getFullYear()) {
|
if (date.getFullYear() == now.getFullYear()) {
|
||||||
if (date.getMonth() == now.getMonth()) {
|
if (date.getMonth() == now.getMonth()) {
|
||||||
if (date.getDate() == now.getDate()) {
|
if (date.getDate() == now.getDate()) {
|
||||||
if (datetype == "medium") {
|
if (datetype == "medium") {
|
||||||
var ret = '<time class="timeago" datetime="' + str + '"></time>';
|
var ret = '<time class="timeago" datetime="' + str + '"></time>'
|
||||||
} else {
|
} else {
|
||||||
var ret = date.getHours() + ":" + min + ":" + sec;
|
var ret = date.getHours() + ":" + min + ":" + sec
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" +
|
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" +
|
||||||
min + ":" + sec;
|
min + ":" + sec
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" + min +
|
var ret = month + "/" + date.getDate() + " " + date.getHours() + ":" + min +
|
||||||
":" + sec;
|
":" + sec
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + " " +
|
var ret = date.getFullYear() + "/" + month + "/" + date.getDate() + " " +
|
||||||
date.getHours() + ":" + min + ":" + sec;
|
date.getHours() + ":" + min + ":" + sec
|
||||||
}
|
}
|
||||||
if (datetype == "double") {
|
if (datetype == "double") {
|
||||||
return '<time class="timeago" datetime="' + str + '"></time>/' + ret;
|
return '<time class="timeago" datetime="' + str + '"></time>/' + ret
|
||||||
} else {
|
} else {
|
||||||
return ret;
|
return ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//特殊フォーマット(インスタンス情報で利用)
|
//特殊フォーマット(インスタンス情報で利用)
|
||||||
function crat(str) {
|
function crat(str) {
|
||||||
var date = new Date(str);
|
var date = new Date(str)
|
||||||
var mnt = null;
|
var mnt = null
|
||||||
if (date.getMonth() < 9) {
|
if (date.getMonth() < 9) {
|
||||||
mnt = "0" + (date.getMonth() + 1);
|
mnt = "0" + (date.getMonth() + 1)
|
||||||
} else {
|
} else {
|
||||||
mnt = date.getMonth() + 1;
|
mnt = date.getMonth() + 1
|
||||||
}
|
}
|
||||||
if (date.getDate() < 10) {
|
if (date.getDate() < 10) {
|
||||||
var dat = "0" + date.getDate();
|
var dat = "0" + date.getDate()
|
||||||
} else {
|
} else {
|
||||||
var dat = date.getDate();
|
var dat = date.getDate()
|
||||||
}
|
}
|
||||||
if (date.getHours() < 10) {
|
if (date.getHours() < 10) {
|
||||||
var hrs = "0" + date.getHours();
|
var hrs = "0" + date.getHours()
|
||||||
} else {
|
} else {
|
||||||
var hrs = date.getHours();
|
var hrs = date.getHours()
|
||||||
}
|
}
|
||||||
if (date.getMinutes() < 10) {
|
if (date.getMinutes() < 10) {
|
||||||
var mns = "0" + date.getMinutes();
|
var mns = "0" + date.getMinutes()
|
||||||
} else {
|
} else {
|
||||||
var mns = date.getMinutes();
|
var mns = date.getMinutes()
|
||||||
}
|
}
|
||||||
if (date.getSeconds() < 10) {
|
if (date.getSeconds() < 10) {
|
||||||
var sec = "0" + date.getSeconds();
|
var sec = "0" + date.getSeconds()
|
||||||
} else {
|
} else {
|
||||||
var sec = date.getSeconds();
|
var sec = date.getSeconds()
|
||||||
}
|
}
|
||||||
format_str = 'YYYY-MM-DD hh:mm:ss';
|
format_str = 'YYYY-MM-DD hh:mm:ss'
|
||||||
format_str = format_str.replace(/YYYY/g, date.getFullYear());
|
format_str = format_str.replace(/YYYY/g, date.getFullYear())
|
||||||
format_str = format_str.replace(/MM/g, mnt);
|
format_str = format_str.replace(/MM/g, mnt)
|
||||||
format_str = format_str.replace(/DD/g, dat);
|
format_str = format_str.replace(/DD/g, dat)
|
||||||
format_str = format_str.replace(/hh/g, hrs);
|
format_str = format_str.replace(/hh/g, hrs)
|
||||||
format_str = format_str.replace(/mm/g, mns);
|
format_str = format_str.replace(/mm/g, mns)
|
||||||
format_str = format_str.replace(/ss/g, sec);
|
format_str = format_str.replace(/ss/g, sec)
|
||||||
|
|
||||||
return format_str;
|
return format_str
|
||||||
}
|
}
|
||||||
|
@@ -1,49 +1,49 @@
|
|||||||
//ディレクトリ
|
//ディレクトリ
|
||||||
//ディレクトリトグル
|
//ディレクトリトグル
|
||||||
function dirMenu() {
|
function dirMenu() {
|
||||||
$("#dir-contents").html("");
|
$("#dir-contents").html("")
|
||||||
directory();
|
directory()
|
||||||
$("#left-menu a").removeClass("active");
|
$("#left-menu a").removeClass("active")
|
||||||
$("#dirMenu").addClass("active");
|
$("#dirMenu").addClass("active")
|
||||||
$(".menu-content").addClass("hide");
|
$(".menu-content").addClass("hide")
|
||||||
$("#dir-box").removeClass("hide");
|
$("#dir-box").removeClass("hide")
|
||||||
}
|
}
|
||||||
function dirselCk() {
|
function dirselCk() {
|
||||||
var acct = $("#dir-acct-sel").val();
|
var acct = $("#dir-acct-sel").val()
|
||||||
if (acct == "noauth") {
|
if (acct == "noauth") {
|
||||||
$("#dirNoAuth").removeClass("hide");
|
$("#dirNoAuth").removeClass("hide")
|
||||||
} else {
|
} else {
|
||||||
$("#dirNoAuth").addClass("hide");
|
$("#dirNoAuth").addClass("hide")
|
||||||
directory();
|
directory()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function directory(isMore) {
|
function directory(isMore) {
|
||||||
var order = $("[name=sort]:checked").val();
|
var order = $("[name=sort]:checked").val()
|
||||||
if (!order) {
|
if (!order) {
|
||||||
order = "active";
|
order = "active"
|
||||||
}
|
}
|
||||||
var local_only = $("#local_only:checked").val();
|
var local_only = $("#local_only:checked").val()
|
||||||
if (local_only) {
|
if (local_only) {
|
||||||
local_only = "true";
|
local_only = "true"
|
||||||
} else {
|
} else {
|
||||||
local_only = "false";
|
local_only = "false"
|
||||||
}
|
}
|
||||||
var acct_id = $("#dir-acct-sel").val();
|
var acct_id = $("#dir-acct-sel").val()
|
||||||
if (acct_id == "noauth") {
|
if (acct_id == "noauth") {
|
||||||
var domain = $("#dirNoAuth-url").val();
|
var domain = $("#dirNoAuth-url").val()
|
||||||
var at = "";
|
var at = ""
|
||||||
} else {
|
} else {
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
}
|
}
|
||||||
if (isMore) {
|
if (isMore) {
|
||||||
var addOffset = $("#dir-contents .cvo").length;
|
var addOffset = $("#dir-contents .cvo").length
|
||||||
} else {
|
} else {
|
||||||
var addOffset = 0;
|
var addOffset = 0
|
||||||
$("#dir-contents").html("");
|
$("#dir-contents").html("")
|
||||||
}
|
}
|
||||||
var start = "https://" + domain + "/api/v1/directory?order=" + order + "&local=" + local_only + "&offset=" + addOffset;
|
var start = "https://" + domain + "/api/v1/directory?order=" + order + "&local=" + local_only + "&offset=" + addOffset
|
||||||
console.log(start);
|
console.log(start)
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -54,23 +54,23 @@ function directory(isMore) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
if (json) {
|
if (json) {
|
||||||
$("#moreDir").removeClass("disabled");
|
$("#moreDir").removeClass("disabled")
|
||||||
var html = userparse(json, null, acct_id, "dir", null);
|
var html = userparse(json, null, acct_id, "dir", null)
|
||||||
$("#dir-contents").append(html);
|
$("#dir-contents").append(html)
|
||||||
jQuery("time.timeago").timeago();
|
jQuery("time.timeago").timeago()
|
||||||
} else {
|
} else {
|
||||||
$("#moreDir").addClass("disabled");
|
$("#moreDir").addClass("disabled")
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
|
488
app/js/tl/dm.js
488
app/js/tl/dm.js
@@ -1,8 +1,8 @@
|
|||||||
//DM(Conv) TL
|
//DM(Conv) TL
|
||||||
function dm(acct_id, tlid, type, delc, voice) {
|
function dm(acct_id, tlid, type, delc, voice) {
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v1/conversations";
|
var start = "https://" + domain + "/api/v1/conversations"
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -13,38 +13,38 @@ function dm(acct_id, tlid, type, delc, voice) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>";
|
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"
|
||||||
localStorage.setItem("lastobj_" + tlid, json[0].id);
|
localStorage.setItem("lastobj_" + tlid, json[0].id)
|
||||||
$("#timeline_" + tlid).html(templete);
|
$("#timeline_" + tlid).html(templete)
|
||||||
additional(acct_id, tlid);
|
additional(acct_id, tlid)
|
||||||
jQuery("time.timeago").timeago();
|
jQuery("time.timeago").timeago()
|
||||||
todc();
|
todc()
|
||||||
//reload(type, '', acct_id, tlid, data, mute, delc,voice);
|
//reload(type, '', acct_id, tlid, data, mute, delc,voice);
|
||||||
$(window).scrollTop(0);
|
$(window).scrollTop(0)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
function dmmore(tlid) {
|
function dmmore(tlid) {
|
||||||
var multi = localStorage.getItem("column");
|
var multi = localStorage.getItem("column")
|
||||||
var obj = JSON.parse(multi);
|
var obj = JSON.parse(multi)
|
||||||
var acct_id = obj[tlid].domain;
|
var acct_id = obj[tlid].domain
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var sid = $("#timeline_" + tlid + " .cvo")
|
var sid = $("#timeline_" + tlid + " .cvo")
|
||||||
.last()
|
.last()
|
||||||
.attr("unique-id");
|
.attr("unique-id")
|
||||||
var start = "https://" + domain + "/api/v1/conversations?max_id=" + sid;
|
var start = "https://" + domain + "/api/v1/conversations?max_id=" + sid
|
||||||
var type = "dm";
|
var type = "dm"
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -55,444 +55,444 @@ function dmmore(tlid) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>";
|
var templete = '<div id="convList' + tlid + '">' + dmListParse(json, type, acct_id, tlid, "", mute) + "</div>"
|
||||||
$("#timeline_" + tlid).append(templete);
|
$("#timeline_" + tlid).append(templete)
|
||||||
additional(acct_id, tlid);
|
additional(acct_id, tlid)
|
||||||
jQuery("time.timeago").timeago();
|
jQuery("time.timeago").timeago()
|
||||||
moreloading = false;
|
moreloading = false
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//DMオブジェクトパーサー(トゥート)
|
//DMオブジェクトパーサー(トゥート)
|
||||||
function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
function dmListParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||||
var templete = "";
|
var templete = ""
|
||||||
if (obj[0]) {
|
if (obj[0]) {
|
||||||
localStorage.setItem("lastunix_" + tlid, date(obj[0].created_at, "unix"));
|
localStorage.setItem("lastunix_" + tlid, date(obj[0].created_at, "unix"))
|
||||||
}
|
}
|
||||||
|
|
||||||
var actb = localStorage.getItem("action_btns");
|
var actb = localStorage.getItem("action_btns")
|
||||||
var actb = "re,rt,fav,qt,del,pin,red";
|
var actb = "re,rt,fav,qt,del,pin,red"
|
||||||
if (actb) {
|
if (actb) {
|
||||||
var actb = actb.split(",");
|
var actb = actb.split(",")
|
||||||
var disp = {};
|
var disp = {}
|
||||||
for (var k = 0; k < actb.length; k++) {
|
for (var k = 0; k < actb.length; k++) {
|
||||||
if (k < 4) {
|
if (k < 4) {
|
||||||
var tp = "type-a";
|
var tp = "type-a"
|
||||||
} else {
|
} else {
|
||||||
var tp = "type-b";
|
var tp = "type-b"
|
||||||
}
|
}
|
||||||
disp[actb[k]] = tp;
|
disp[actb[k]] = tp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var datetype = localStorage.getItem("datetype");
|
var datetype = localStorage.getItem("datetype")
|
||||||
var nsfwtype = localStorage.getItem("nsfw");
|
var nsfwtype = localStorage.getItem("nsfw")
|
||||||
var sent = localStorage.getItem("sentence");
|
var sent = localStorage.getItem("sentence")
|
||||||
var ltr = localStorage.getItem("letters");
|
var ltr = localStorage.getItem("letters")
|
||||||
var gif = localStorage.getItem("gif");
|
var gif = localStorage.getItem("gif")
|
||||||
var imh = localStorage.getItem("img-height");
|
var imh = localStorage.getItem("img-height")
|
||||||
//独自ロケール
|
//独自ロケール
|
||||||
var locale = localStorage.getItem("locale");
|
var locale = localStorage.getItem("locale")
|
||||||
if (locale == "yes") {
|
if (locale == "yes") {
|
||||||
var locale = false;
|
var locale = false
|
||||||
}
|
}
|
||||||
//ネイティブ通知
|
//ネイティブ通知
|
||||||
var native = localStorage.getItem("nativenotf");
|
var native = localStorage.getItem("nativenotf")
|
||||||
if (!native) {
|
if (!native) {
|
||||||
native = "yes";
|
native = "yes"
|
||||||
}
|
}
|
||||||
//クライアント強調
|
//クライアント強調
|
||||||
var emp = localStorage.getItem("client_emp");
|
var emp = localStorage.getItem("client_emp")
|
||||||
if (emp) {
|
if (emp) {
|
||||||
var emp = JSON.parse(emp);
|
var emp = JSON.parse(emp)
|
||||||
}
|
}
|
||||||
//クライアントミュート
|
//クライアントミュート
|
||||||
var mute = localStorage.getItem("client_mute");
|
var mute = localStorage.getItem("client_mute")
|
||||||
if (mute) {
|
if (mute) {
|
||||||
var mute = JSON.parse(mute);
|
var mute = JSON.parse(mute)
|
||||||
}
|
}
|
||||||
//ユーザー強調
|
//ユーザー強調
|
||||||
var useremp = localStorage.getItem("user_emp");
|
var useremp = localStorage.getItem("user_emp")
|
||||||
if (useremp) {
|
if (useremp) {
|
||||||
var useremp = JSON.parse(useremp);
|
var useremp = JSON.parse(useremp)
|
||||||
}
|
}
|
||||||
//ワード強調
|
//ワード強調
|
||||||
var wordemp = localStorage.getItem("word_emp");
|
var wordemp = localStorage.getItem("word_emp")
|
||||||
if (wordemp) {
|
if (wordemp) {
|
||||||
var wordemp = JSON.parse(wordemp);
|
var wordemp = JSON.parse(wordemp)
|
||||||
}
|
}
|
||||||
//ワードミュート
|
//ワードミュート
|
||||||
var wordmute = localStorage.getItem("word_mute");
|
var wordmute = localStorage.getItem("word_mute")
|
||||||
if (wordmute) {
|
if (wordmute) {
|
||||||
var wordmute = JSON.parse(wordmute);
|
var wordmute = JSON.parse(wordmute)
|
||||||
wordmute = wordmute.concat(mutefilter);
|
wordmute = wordmute.concat(mutefilter)
|
||||||
} else {
|
} else {
|
||||||
wordmute = mutefilter;
|
wordmute = mutefilter
|
||||||
}
|
}
|
||||||
//Ticker
|
//Ticker
|
||||||
var tickerck = localStorage.getItem("ticker_ok");
|
var tickerck = localStorage.getItem("ticker_ok")
|
||||||
if (tickerck) {
|
if (tickerck) {
|
||||||
var ticker = true;
|
var ticker = true
|
||||||
} else {
|
} else {
|
||||||
var ticker = false;
|
var ticker = false
|
||||||
}
|
}
|
||||||
//Cards
|
//Cards
|
||||||
var card = localStorage.getItem("card_" + tlid);
|
var card = localStorage.getItem("card_" + tlid)
|
||||||
|
|
||||||
if (!sent) {
|
if (!sent) {
|
||||||
var sent = 500;
|
var sent = 500
|
||||||
}
|
}
|
||||||
if (!ltr) {
|
if (!ltr) {
|
||||||
var ltr = 500;
|
var ltr = 500
|
||||||
}
|
}
|
||||||
if (!nsfwtype || nsfwtype == "yes") {
|
if (!nsfwtype || nsfwtype == "yes") {
|
||||||
var nsfw = "ok";
|
var nsfw = "ok"
|
||||||
} else {
|
} else {
|
||||||
var nsfw;
|
var nsfw
|
||||||
}
|
}
|
||||||
var cwtype = localStorage.getItem("cw");
|
var cwtype = localStorage.getItem("cw")
|
||||||
if (!cwtype || cwtype == "yes") {
|
if (!cwtype || cwtype == "yes") {
|
||||||
var cw = "ok";
|
var cw = "ok"
|
||||||
} else {
|
} else {
|
||||||
var cw;
|
var cw
|
||||||
}
|
}
|
||||||
if (!datetype) {
|
if (!datetype) {
|
||||||
datetype = "absolute";
|
datetype = "absolute"
|
||||||
}
|
}
|
||||||
if (!gif) {
|
if (!gif) {
|
||||||
var gif = "yes";
|
var gif = "yes"
|
||||||
}
|
}
|
||||||
if (!imh) {
|
if (!imh) {
|
||||||
var imh = "200";
|
var imh = "200"
|
||||||
}
|
}
|
||||||
if (!emp) {
|
if (!emp) {
|
||||||
var emp = [];
|
var emp = []
|
||||||
}
|
}
|
||||||
if (!mute) {
|
if (!mute) {
|
||||||
var mute = [];
|
var mute = []
|
||||||
}
|
}
|
||||||
if (!useremp) {
|
if (!useremp) {
|
||||||
var useremp = [];
|
var useremp = []
|
||||||
}
|
}
|
||||||
if (!wordemp) {
|
if (!wordemp) {
|
||||||
var wordemp = [];
|
var wordemp = []
|
||||||
}
|
}
|
||||||
if (!wordmute) {
|
if (!wordmute) {
|
||||||
var wordmute = [];
|
var wordmute = []
|
||||||
}
|
}
|
||||||
//via通知
|
//via通知
|
||||||
var viashow = localStorage.getItem("viashow");
|
var viashow = localStorage.getItem("viashow")
|
||||||
if (!viashow) {
|
if (!viashow) {
|
||||||
viashow = "via-hide";
|
viashow = "via-hide"
|
||||||
}
|
}
|
||||||
if (viashow == "hide") {
|
if (viashow == "hide") {
|
||||||
viashow = "via-hide";
|
viashow = "via-hide"
|
||||||
}
|
}
|
||||||
//認証なしTL
|
//認証なしTL
|
||||||
if (mix == "noauth") {
|
if (mix == "noauth") {
|
||||||
var noauth = "hide";
|
var noauth = "hide"
|
||||||
var antinoauth = "";
|
var antinoauth = ""
|
||||||
} else {
|
} else {
|
||||||
var noauth = "";
|
var noauth = ""
|
||||||
var antinoauth = "hide";
|
var antinoauth = "hide"
|
||||||
}
|
}
|
||||||
//マウスオーバーのみ
|
//マウスオーバーのみ
|
||||||
var mouseover = localStorage.getItem("mouseover");
|
var mouseover = localStorage.getItem("mouseover")
|
||||||
if (!mouseover) {
|
if (!mouseover) {
|
||||||
mouseover = "";
|
mouseover = ""
|
||||||
} else if (mouseover == "yes" || mouseover == "click") {
|
} else if (mouseover == "yes" || mouseover == "click") {
|
||||||
mouseover = "hide";
|
mouseover = "hide"
|
||||||
} else if (mouseover == "no") {
|
} else if (mouseover == "no") {
|
||||||
mouseover = "";
|
mouseover = ""
|
||||||
}
|
}
|
||||||
var local = [];
|
var local = []
|
||||||
var times = [];
|
var times = []
|
||||||
Object.keys(obj).forEach(function(key) {
|
Object.keys(obj).forEach(function(key) {
|
||||||
var conv_id = obj[key].id;
|
var conv_id = obj[key].id
|
||||||
var toot = obj[key].last_status;
|
var toot = obj[key].last_status
|
||||||
var dis_name = escapeHTML(toot.account.display_name);
|
var dis_name = escapeHTML(toot.account.display_name)
|
||||||
if (toot.account.emojis) {
|
if (toot.account.emojis) {
|
||||||
var actemojick = toot.account.emojis[0];
|
var actemojick = toot.account.emojis[0]
|
||||||
} else {
|
} else {
|
||||||
var actemojick = false;
|
var actemojick = false
|
||||||
}
|
}
|
||||||
//絵文字があれば
|
//絵文字があれば
|
||||||
if (actemojick) {
|
if (actemojick) {
|
||||||
Object.keys(toot.account.emojis).forEach(function(key5) {
|
Object.keys(toot.account.emojis).forEach(function(key5) {
|
||||||
var emoji = toot.account.emojis[key5];
|
var emoji = toot.account.emojis[key5]
|
||||||
var shortcode = emoji.shortcode;
|
var shortcode = emoji.shortcode
|
||||||
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">';
|
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
|
||||||
var regExp = new RegExp(":" + shortcode + ":", "g");
|
var regExp = new RegExp(":" + shortcode + ":", "g")
|
||||||
dis_name = dis_name.replace(regExp, emoji_url);
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
var noticeavatar = "";
|
var noticeavatar = ""
|
||||||
var if_notf = "";
|
var if_notf = ""
|
||||||
var uniqueid = toot.id;
|
var uniqueid = toot.id
|
||||||
var notice = "";
|
var notice = ""
|
||||||
var boostback = "";
|
var boostback = ""
|
||||||
//ユーザー強調
|
//ユーザー強調
|
||||||
if (toot.account.username != toot.account.acct) {
|
if (toot.account.username != toot.account.acct) {
|
||||||
var fullname = toot.account.acct;
|
var fullname = toot.account.acct
|
||||||
} else {
|
} else {
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var fullname = toot.account.acct + "@" + domain;
|
var fullname = toot.account.acct + "@" + domain
|
||||||
}
|
}
|
||||||
if (useremp) {
|
if (useremp) {
|
||||||
Object.keys(useremp).forEach(function(key10) {
|
Object.keys(useremp).forEach(function(key10) {
|
||||||
var user = useremp[key10];
|
var user = useremp[key10]
|
||||||
if (user == fullname) {
|
if (user == fullname) {
|
||||||
boostback = "emphasized";
|
boostback = "emphasized"
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
var id = toot.id;
|
var id = toot.id
|
||||||
var home = "";
|
var home = ""
|
||||||
if (toot.account.locked) {
|
if (toot.account.locked) {
|
||||||
var locked = ' <i class="fas fa-lock red-text"></i>';
|
var locked = ' <i class="fas fa-lock red-text"></i>'
|
||||||
} else {
|
} else {
|
||||||
var locked = "";
|
var locked = ""
|
||||||
}
|
}
|
||||||
if (!toot.application) {
|
if (!toot.application) {
|
||||||
var via = "";
|
var via = ""
|
||||||
viashow = "hide";
|
viashow = "hide"
|
||||||
} else {
|
} else {
|
||||||
var via = escapeHTML(toot.application.name);
|
var via = escapeHTML(toot.application.name)
|
||||||
//強調チェック
|
//強調チェック
|
||||||
Object.keys(emp).forEach(function(key6) {
|
Object.keys(emp).forEach(function(key6) {
|
||||||
var cli = emp[key6];
|
var cli = emp[key6]
|
||||||
if (cli == via) {
|
if (cli == via) {
|
||||||
boostback = "emphasized";
|
boostback = "emphasized"
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
//ミュートチェック
|
//ミュートチェック
|
||||||
Object.keys(mute).forEach(function(key7) {
|
Object.keys(mute).forEach(function(key7) {
|
||||||
var cli = mute[key7];
|
var cli = mute[key7]
|
||||||
if (cli == via) {
|
if (cli == via) {
|
||||||
boostback = "hide";
|
boostback = "hide"
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
if (mix == "pinned") {
|
if (mix == "pinned") {
|
||||||
boostback = "emphasized";
|
boostback = "emphasized"
|
||||||
}
|
}
|
||||||
if (toot.spoiler_text && cw) {
|
if (toot.spoiler_text && cw) {
|
||||||
var content = toot.content;
|
var content = toot.content
|
||||||
var spoil = escapeHTML(toot.spoiler_text);
|
var spoil = escapeHTML(toot.spoiler_text)
|
||||||
var spoiler = "cw cw_hide_" + toot.id;
|
var spoiler = "cw cw_hide_" + toot.id
|
||||||
var api_spoil = "gray";
|
var api_spoil = "gray"
|
||||||
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_cwshow + "</a><br>";
|
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_cwshow + "</a><br>"
|
||||||
} else {
|
} else {
|
||||||
var ct1 = toot.content.split("</p>").length + toot.content.split("<br />").length - 2;
|
var ct1 = toot.content.split("</p>").length + toot.content.split("<br />").length - 2
|
||||||
var ct2 = toot.content.split("</p>").length + toot.content.split("<br>").length - 2;
|
var ct2 = toot.content.split("</p>").length + toot.content.split("<br>").length - 2
|
||||||
if (ct1 > ct2) {
|
if (ct1 > ct2) {
|
||||||
var ct = ct1;
|
var ct = ct1
|
||||||
} else {
|
} else {
|
||||||
var ct = ct2;
|
var ct = ct2
|
||||||
}
|
}
|
||||||
if ((sent < ct && $.mb_strlen($.strip_tags(toot.content)) > 5) || ($.strip_tags(toot.content).length > ltr && $.mb_strlen($.strip_tags(toot.content)) > 5)) {
|
if ((sent < ct && $.mb_strlen($.strip_tags(toot.content)) > 5) || ($.strip_tags(toot.content).length > ltr && $.mb_strlen($.strip_tags(toot.content)) > 5)) {
|
||||||
var content = '<span class="gray">' + lang.lang_parse_fulltext + "</span><br>" + toot.content;
|
var content = '<span class="gray">' + lang.lang_parse_fulltext + "</span><br>" + toot.content
|
||||||
var spoil = '<span class="cw-long-' + toot.id + '">' + $.mb_substr($.strip_tags(toot.content), 0, 100) + '</span><span class="gray">' + lang.lang_parse_autofold + "</span>";
|
var spoil = '<span class="cw-long-' + toot.id + '">' + $.mb_substr($.strip_tags(toot.content), 0, 100) + '</span><span class="gray">' + lang.lang_parse_autofold + "</span>"
|
||||||
var spoiler = "cw cw_hide_" + toot.id;
|
var spoiler = "cw cw_hide_" + toot.id
|
||||||
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_more + "</a><br>";
|
var spoiler_show = '<a href="#" onclick="cw_show(\'' + toot.id + '\')" class="nex parsed">' + lang.lang_parse_more + "</a><br>"
|
||||||
} else {
|
} else {
|
||||||
var content = toot.content;
|
var content = toot.content
|
||||||
var spoil = escapeHTML(toot.spoiler_text);
|
var spoil = escapeHTML(toot.spoiler_text)
|
||||||
var spoiler = "";
|
var spoiler = ""
|
||||||
var spoiler_show = "";
|
var spoiler_show = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var urls = $.strip_tags(content)
|
var urls = $.strip_tags(content)
|
||||||
.replace(/\n/g, " ")
|
.replace(/\n/g, " ")
|
||||||
.match(/https?:\/\/([-a-zA-Z0-9@.]+)\/?(?!.*((media|tags)|mentions)).*([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)?/);
|
.match(/https?:\/\/([-a-zA-Z0-9@.]+)\/?(?!.*((media|tags)|mentions)).*([-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)?/)
|
||||||
if (urls) {
|
if (urls) {
|
||||||
var analyze = "<a onclick=\"additionalIndv('" + tlid + "'," + acct_id + ",'" + id + '\')" class="add-show pointer">' + lang.lang_parse_url + "</a><br>";
|
var analyze = "<a onclick=\"additionalIndv('" + tlid + "'," + acct_id + ",'" + id + '\')" class="add-show pointer">' + lang.lang_parse_url + "</a><br>"
|
||||||
} else {
|
} else {
|
||||||
var analyze = "";
|
var analyze = ""
|
||||||
}
|
}
|
||||||
var viewer = "";
|
var viewer = ""
|
||||||
var hasmedia = "";
|
var hasmedia = ""
|
||||||
var youtube = "";
|
var youtube = ""
|
||||||
if (toot.emojis) {
|
if (toot.emojis) {
|
||||||
var emojick = toot.emojis[0];
|
var emojick = toot.emojis[0]
|
||||||
} else {
|
} else {
|
||||||
var emojick = false;
|
var emojick = false
|
||||||
}
|
}
|
||||||
//絵文字があれば
|
//絵文字があれば
|
||||||
if (emojick) {
|
if (emojick) {
|
||||||
Object.keys(toot.emojis).forEach(function(key5) {
|
Object.keys(toot.emojis).forEach(function(key5) {
|
||||||
var emoji = toot.emojis[key5];
|
var emoji = toot.emojis[key5]
|
||||||
var shortcode = emoji.shortcode;
|
var shortcode = emoji.shortcode
|
||||||
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">';
|
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
|
||||||
var regExp = new RegExp(":" + shortcode + ":", "g");
|
var regExp = new RegExp(":" + shortcode + ":", "g")
|
||||||
content = content.replace(regExp, emoji_url);
|
content = content.replace(regExp, emoji_url)
|
||||||
spoil = spoil.replace(regExp, emoji_url);
|
spoil = spoil.replace(regExp, emoji_url)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//ニコフレ絵文字
|
//ニコフレ絵文字
|
||||||
if (toot.profile_emojis) {
|
if (toot.profile_emojis) {
|
||||||
var nicoemojick = toot.profile_emojis[0];
|
var nicoemojick = toot.profile_emojis[0]
|
||||||
} else {
|
} else {
|
||||||
var nicoemojick = false;
|
var nicoemojick = false
|
||||||
}
|
}
|
||||||
//絵文字があれば
|
//絵文字があれば
|
||||||
if (nicoemojick) {
|
if (nicoemojick) {
|
||||||
Object.keys(toot.profile_emojis).forEach(function(keynico) {
|
Object.keys(toot.profile_emojis).forEach(function(keynico) {
|
||||||
var emoji = toot.profile_emojis[keynico];
|
var emoji = toot.profile_emojis[keynico]
|
||||||
var shortcode = emoji.shortcode;
|
var shortcode = emoji.shortcode
|
||||||
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">';
|
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" alt=" :' + shortcode + ': ">'
|
||||||
var regExp = new RegExp(":" + shortcode + ":", "g");
|
var regExp = new RegExp(":" + shortcode + ":", "g")
|
||||||
content = content.replace(regExp, emoji_url);
|
content = content.replace(regExp, emoji_url)
|
||||||
spoil = spoil.replace(regExp, emoji_url);
|
spoil = spoil.replace(regExp, emoji_url)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//デフォ絵文字
|
//デフォ絵文字
|
||||||
content = twemoji.parse(content);
|
content = twemoji.parse(content)
|
||||||
if (dis_name) {
|
if (dis_name) {
|
||||||
dis_name = twemoji.parse(dis_name);
|
dis_name = twemoji.parse(dis_name)
|
||||||
}
|
}
|
||||||
if (spoil) {
|
if (spoil) {
|
||||||
spoil = twemoji.parse(spoil);
|
spoil = twemoji.parse(spoil)
|
||||||
}
|
}
|
||||||
var mediack = toot.media_attachments[0];
|
var mediack = toot.media_attachments[0]
|
||||||
//メディアがあれば
|
//メディアがあれば
|
||||||
var media_ids = "";
|
var media_ids = ""
|
||||||
if (mediack) {
|
if (mediack) {
|
||||||
hasmedia = "hasmedia";
|
hasmedia = "hasmedia"
|
||||||
var cwdt = 100 / toot.media_attachments.length;
|
var cwdt = 100 / toot.media_attachments.length
|
||||||
Object.keys(toot.media_attachments).forEach(function(key2) {
|
Object.keys(toot.media_attachments).forEach(function(key2) {
|
||||||
var media = toot.media_attachments[key2];
|
var media = toot.media_attachments[key2]
|
||||||
var purl = media.preview_url;
|
var purl = media.preview_url
|
||||||
media_ids = media_ids + media.id + ",";
|
media_ids = media_ids + media.id + ","
|
||||||
var url = media.url;
|
var url = media.url
|
||||||
if (toot.sensitive && nsfw) {
|
if (toot.sensitive && nsfw) {
|
||||||
var sense = "sensitive";
|
var sense = "sensitive"
|
||||||
} else {
|
} else {
|
||||||
var sense = "";
|
var sense = ""
|
||||||
}
|
}
|
||||||
viewer = viewer + "<a onclick=\"imgv('" + id + "','" + key2 + "','" + acct_id + '\')" id="' + id + "-image-" + key2 + '" data-url="' + url + '" data-type="' + media.type + '" class="img-parsed"><img src="' + purl + '" class="' + sense + ' toot-img pointer" style="width:' + cwdt + "%; height:" + imh + 'px;"></a></span>';
|
viewer = viewer + "<a onclick=\"imgv('" + id + "','" + key2 + "','" + acct_id + '\')" id="' + id + "-image-" + key2 + '" data-url="' + url + '" data-type="' + media.type + '" class="img-parsed"><img src="' + purl + '" class="' + sense + ' toot-img pointer" style="width:' + cwdt + "%; height:" + imh + 'px;"></a></span>'
|
||||||
});
|
})
|
||||||
media_ids = media_ids.slice(0, -1);
|
media_ids = media_ids.slice(0, -1)
|
||||||
} else {
|
} else {
|
||||||
viewer = "";
|
viewer = ""
|
||||||
hasmedia = "nomedia";
|
hasmedia = "nomedia"
|
||||||
}
|
}
|
||||||
var menck = toot.mentions[0];
|
var menck = toot.mentions[0]
|
||||||
var mentions = "";
|
var mentions = ""
|
||||||
//メンションであれば
|
//メンションであれば
|
||||||
if (menck) {
|
if (menck) {
|
||||||
mentions = "";
|
mentions = ""
|
||||||
Object.keys(toot.mentions).forEach(function(key3) {
|
Object.keys(toot.mentions).forEach(function(key3) {
|
||||||
var mention = toot.mentions[key3];
|
var mention = toot.mentions[key3]
|
||||||
mentions = mentions + "<a onclick=\"udg('" + mention.id + "'," + acct_id + ')" class="pointer">@' + mention.acct + "</a> ";
|
mentions = mentions + "<a onclick=\"udg('" + mention.id + "'," + acct_id + ')" class="pointer">@' + mention.acct + "</a> "
|
||||||
});
|
})
|
||||||
mentions = '<div style="float:right">' + mentions + "</div>";
|
mentions = '<div style="float:right">' + mentions + "</div>"
|
||||||
}
|
}
|
||||||
var tagck = toot.tags[0];
|
var tagck = toot.tags[0]
|
||||||
var tags = "";
|
var tags = ""
|
||||||
//タグであれば
|
//タグであれば
|
||||||
if (tagck) {
|
if (tagck) {
|
||||||
Object.keys(toot.tags).forEach(function(key4) {
|
Object.keys(toot.tags).forEach(function(key4) {
|
||||||
var tag = toot.tags[key4];
|
var tag = toot.tags[key4]
|
||||||
tags = tags + '<span class="hide" data-tag="' + tag.name + '">#' + tag.name + ":<a onclick=\"tl('tag','" + tag.name + "'," + acct_id + ',\'add\')" class="pointer" title="' + lang.lang_parse_tagTL.replace("{{tag}}", "#" + tag.name) + '">TL</a> <a onclick="brInsert(\'#' + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}", "#" + tag.name) + '">Toot</a> ' + "<a onclick=\"tagPin('" + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagpin.replace("{{tag}}", "#" + tag.name) + '">Pin</a></span> ';
|
tags = tags + '<span class="hide" data-tag="' + tag.name + '">#' + tag.name + ":<a onclick=\"tl('tag','" + tag.name + "'," + acct_id + ',\'add\')" class="pointer" title="' + lang.lang_parse_tagTL.replace("{{tag}}", "#" + tag.name) + '">TL</a> <a onclick="brInsert(\'#' + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagtoot.replace("{{tag}}", "#" + tag.name) + '">Toot</a> ' + "<a onclick=\"tagPin('" + tag.name + '\')" class="pointer" title="' + lang.lang_parse_tagpin.replace("{{tag}}", "#" + tag.name) + '">Pin</a></span> '
|
||||||
});
|
})
|
||||||
tags = '<div style="float:right">' + tags + "</div>";
|
tags = '<div style="float:right">' + tags + "</div>"
|
||||||
}
|
}
|
||||||
//アニメ再生
|
//アニメ再生
|
||||||
if (gif == "yes") {
|
if (gif == "yes") {
|
||||||
var avatar = toot.account.avatar;
|
var avatar = toot.account.avatar
|
||||||
} else {
|
} else {
|
||||||
var avatar = toot.account.avatar_static;
|
var avatar = toot.account.avatar_static
|
||||||
}
|
}
|
||||||
//ワードミュート
|
//ワードミュート
|
||||||
if (wordmute) {
|
if (wordmute) {
|
||||||
Object.keys(wordmute).forEach(function(key8) {
|
Object.keys(wordmute).forEach(function(key8) {
|
||||||
var worde = wordmute[key8];
|
var worde = wordmute[key8]
|
||||||
if (worde) {
|
if (worde) {
|
||||||
if (worde.tag) {
|
if (worde.tag) {
|
||||||
var word = worde.tag;
|
var word = worde.tag
|
||||||
} else {
|
} else {
|
||||||
var word = worde;
|
var word = worde
|
||||||
}
|
}
|
||||||
var regExp = new RegExp(word, "g");
|
var regExp = new RegExp(word, "g")
|
||||||
if ($.strip_tags(content).match(regExp)) {
|
if ($.strip_tags(content).match(regExp)) {
|
||||||
boostback = "hide by_filter";
|
boostback = "hide by_filter"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//ワード強調
|
//ワード強調
|
||||||
if (wordemp) {
|
if (wordemp) {
|
||||||
Object.keys(wordemp).forEach(function(key9) {
|
Object.keys(wordemp).forEach(function(key9) {
|
||||||
var word = wordemp[key9];
|
var word = wordemp[key9]
|
||||||
if (word) {
|
if (word) {
|
||||||
var word = word.tag;
|
var word = word.tag
|
||||||
var regExp = new RegExp(word, "g");
|
var regExp = new RegExp(word, "g")
|
||||||
content = content.replace(regExp, '<span class="emp">' + escapeHTML(word) + "</span>");
|
content = content.replace(regExp, '<span class="emp">' + escapeHTML(word) + "</span>")
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//日本語じゃない
|
//日本語じゃない
|
||||||
if (toot.language != "ja") {
|
if (toot.language != "ja") {
|
||||||
var trans = '<div class="action pin"><a onclick="trans(\'' + toot.language + '\')" class="waves-effect waves-dark btn-flat" style="padding:0" title="' + lang.lang_parse_trans + '"><i class="material-icons">g_translate</i></a></div>';
|
var trans = '<div class="action pin"><a onclick="trans(\'' + toot.language + '\')" class="waves-effect waves-dark btn-flat" style="padding:0" title="' + lang.lang_parse_trans + '"><i class="material-icons">g_translate</i></a></div>'
|
||||||
} else {
|
} else {
|
||||||
var trans = "";
|
var trans = ""
|
||||||
}
|
}
|
||||||
if (toot.favourited) {
|
if (toot.favourited) {
|
||||||
var if_fav = " yellow-text";
|
var if_fav = " yellow-text"
|
||||||
var fav_app = "faved";
|
var fav_app = "faved"
|
||||||
} else {
|
} else {
|
||||||
var if_fav = "";
|
var if_fav = ""
|
||||||
var fav_app = "";
|
var fav_app = ""
|
||||||
}
|
}
|
||||||
//Cards
|
//Cards
|
||||||
if (!card && toot.card) {
|
if (!card && toot.card) {
|
||||||
var cards = toot.card;
|
var cards = toot.card
|
||||||
if (cards.provider_name == "Twitter") {
|
if (cards.provider_name == "Twitter") {
|
||||||
if (cards.image) {
|
if (cards.image) {
|
||||||
var twiImg = '<br><img src="' + cards.image + '">';
|
var twiImg = '<br><img src="' + cards.image + '">'
|
||||||
} else {
|
} else {
|
||||||
var twiImg = "";
|
var twiImg = ""
|
||||||
}
|
}
|
||||||
analyze = '<blockquote class="twitter-tweet"><b>' + escapeHTML(cards.author_name) + "</b><br>" + escapeHTML(cards.description) + twiImg + "</blockquote>";
|
analyze = '<blockquote class="twitter-tweet"><b>' + escapeHTML(cards.author_name) + "</b><br>" + escapeHTML(cards.description) + twiImg + "</blockquote>"
|
||||||
}
|
}
|
||||||
if (cards.title) {
|
if (cards.title) {
|
||||||
analyze = '<span class="gray">URL' + lang.lang_cards_check + ":<br>Title:" + escapeHTML(cards.title) + "<br>" + escapeHTML(cards.description) + "</span>";
|
analyze = '<span class="gray">URL' + lang.lang_cards_check + ":<br>Title:" + escapeHTML(cards.title) + "<br>" + escapeHTML(cards.description) + "</span>"
|
||||||
}
|
}
|
||||||
if (cards.html) {
|
if (cards.html) {
|
||||||
analyze = cards.html + '<i class="material-icons" onclick="pip(' + id + ')" title="' + lang.lang_cards_pip + '">picture_in_picture_alt</i>';
|
analyze = cards.html + '<i class="material-icons" onclick="pip(' + id + ')" title="' + lang.lang_cards_pip + '">picture_in_picture_alt</i>'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Ticker
|
//Ticker
|
||||||
var tickerdom = "";
|
var tickerdom = ""
|
||||||
if (ticker) {
|
if (ticker) {
|
||||||
var tickerdata = localStorage.getItem("ticker");
|
var tickerdata = localStorage.getItem("ticker")
|
||||||
if (tickerdata) {
|
if (tickerdata) {
|
||||||
var tickerdata = JSON.parse(tickerdata);
|
var tickerdata = JSON.parse(tickerdata)
|
||||||
|
|
||||||
var thisdomain = toot.account.acct.split("@");
|
var thisdomain = toot.account.acct.split("@")
|
||||||
if (thisdomain.length > 1) {
|
if (thisdomain.length > 1) {
|
||||||
thisdomain = thisdomain[1];
|
thisdomain = thisdomain[1]
|
||||||
}
|
}
|
||||||
for (var i = 0; i < tickerdata.length; i++) {
|
for (var i = 0; i < tickerdata.length; i++) {
|
||||||
var value = tickerdata[i];
|
var value = tickerdata[i]
|
||||||
if (value.domain == thisdomain) {
|
if (value.domain == thisdomain) {
|
||||||
var tickerdom = '<div style="background:linear-gradient(to left,transparent, ' + value.bg + " 96%) !important; color:" + value.text + ';width:100%; height:0.9rem; font-size:0.8rem;"><img src="' + value.image + '" style="height:100%;"><span style="position:relative; top:-0.2rem;"> ' + escapeHTML(value.name) + "</span></div>";
|
var tickerdom = '<div style="background:linear-gradient(to left,transparent, ' + value.bg + " 96%) !important; color:" + value.text + ';width:100%; height:0.9rem; font-size:0.8rem;"><img src="' + value.image + '" style="height:100%;"><span style="position:relative; top:-0.2rem;"> ' + escapeHTML(value.name) + "</span></div>"
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' + boostback + " " + fav_app + " " + hasmedia + '" toot-id="' + id + '" unique-id="' + uniqueid + '" data-medias="' + media_ids + ' " unixtime="' + date(obj[key].created_at, "unix") + '" ' + if_notf + ' onclick="dmStatus()">' + '<div class="area-notice"><span class="gray sharesta">' + notice + home + "</span></div>" + '<div class="area-icon"><a onclick="udg(\'' + toot.account.id + "'," + acct_id + ');" user="' + toot.account.acct + '" class="udg">' + '<img src="' + avatar + '" width="40" class="prof-img" user="' + toot.account.acct + '"></a>' + noticeavatar + "</div>" + '<div class="area-display_name"><div class="flex-name"><span class="user">' + dis_name + '</span><span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;"> @' + toot.account.acct + locked + "</span></div>" + '<div class="flex-time"><span class="cbadge cbadge-hover pointer waves-effect" onclick="tootUriCopy(\'' + toot.url + '\');" title="' + date(toot.created_at, "absolute") + "(" + lang.lang_parse_clickcopyurl + ')"><i class="far fa-clock-o"></i>' + date(toot.created_at, datetype) + "</span>" + "</div></div>" + '<div class="area-toot">' + tickerdom + '<span class="' + api_spoil + " cw_text_" + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show + '</span><span class="toot ' + spoiler + '">' + content + "</span>" + "" + viewer + "" + "<br><a onclick=\"details('" + toot.id + "'," + acct_id + ",'" + tlid + "','dm')\" class=\"pointer waves-effect\">" + lang.lang_parse_thread + "</a></div>" + '<div class="area-vis"></div>' + "</div></div>";
|
templete = templete + '<div id="pub_' + toot.id + '" class="cvo ' + boostback + " " + fav_app + " " + hasmedia + '" toot-id="' + id + '" unique-id="' + uniqueid + '" data-medias="' + media_ids + ' " unixtime="' + date(obj[key].created_at, "unix") + '" ' + if_notf + ' onclick="dmStatus()">' + '<div class="area-notice"><span class="gray sharesta">' + notice + home + "</span></div>" + '<div class="area-icon"><a onclick="udg(\'' + toot.account.id + "'," + acct_id + ');" user="' + toot.account.acct + '" class="udg">' + '<img src="' + avatar + '" width="40" class="prof-img" user="' + toot.account.acct + '"></a>' + noticeavatar + "</div>" + '<div class="area-display_name"><div class="flex-name"><span class="user">' + dis_name + '</span><span class="sml gray" style="overflow: hidden;white-space: nowrap;text-overflow: ellipsis; cursor:text;"> @' + toot.account.acct + locked + "</span></div>" + '<div class="flex-time"><span class="cbadge cbadge-hover pointer waves-effect" onclick="tootUriCopy(\'' + toot.url + '\');" title="' + date(toot.created_at, "absolute") + "(" + lang.lang_parse_clickcopyurl + ')"><i class="far fa-clock-o"></i>' + date(toot.created_at, datetype) + "</span>" + "</div></div>" + '<div class="area-toot">' + tickerdom + '<span class="' + api_spoil + " cw_text_" + toot.id + '"><span class="cw_text">' + spoil + "</span>" + spoiler_show + '</span><span class="toot ' + spoiler + '">' + content + "</span>" + "" + viewer + "" + "<br><a onclick=\"details('" + toot.id + "'," + acct_id + ",'" + tlid + "','dm')\" class=\"pointer waves-effect\">" + lang.lang_parse_thread + "</a></div>" + '<div class="area-vis"></div>' + "</div></div>"
|
||||||
});
|
})
|
||||||
return templete;
|
return templete
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -19,7 +19,22 @@ async function mixtl(acct_id, tlid, type, delc, voice) {
|
|||||||
additional(acct_id, tlid)
|
additional(acct_id, tlid)
|
||||||
jQuery('time.timeago').timeago()
|
jQuery('time.timeago').timeago()
|
||||||
todc()
|
todc()
|
||||||
|
if(mastodonBaseWsStatus[domain] == 'cannotuse') {
|
||||||
mixre(acct_id, tlid, 'mix', mute, voice, '')
|
mixre(acct_id, tlid, 'mix', mute, voice, '')
|
||||||
|
} else if (mastodonBaseWsStatus[domain] == 'undetected' || mastodonBaseWsStatus[domain] == 'connecting') {
|
||||||
|
const mbws = setInterval(function () {
|
||||||
|
if(mastodonBaseWsStatus[domain] == 'cannotuse') {
|
||||||
|
mixre(acct_id, tlid, 'mix', mute, voice, '')
|
||||||
|
clearInterval(mbws)
|
||||||
|
} else if(mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: 'subscribe', stream: 'public:local'}))
|
||||||
|
clearInterval(mbws)
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
} else if(mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: 'subscribe', stream: 'public:local'}))
|
||||||
|
}
|
||||||
|
|
||||||
$(window).scrollTop(0)
|
$(window).scrollTop(0)
|
||||||
lastId = integrated[0].id
|
lastId = integrated[0].id
|
||||||
beforeLastId = integrated[1].id
|
beforeLastId = integrated[1].id
|
||||||
|
@@ -116,7 +116,7 @@ function notfColumn(acct_id, tlid, sys) {
|
|||||||
var start = 'wss://' + domain + '/?i=' + at
|
var start = 'wss://' + domain + '/?i=' + at
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function notfCommon(acct_id, tlid, sys) {
|
function notfCommon(acct_id, tlid, sys, stream) {
|
||||||
todo('Notifications Loading...')
|
todo('Notifications Loading...')
|
||||||
var native = localStorage.getItem('nativenotf')
|
var native = localStorage.getItem('nativenotf')
|
||||||
var at = localStorage.getItem('acct_' + acct_id + '_at')
|
var at = localStorage.getItem('acct_' + acct_id + '_at')
|
||||||
@@ -147,6 +147,10 @@ function notfCommon(acct_id, tlid, sys) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(stream == 'only') {
|
||||||
|
notfWS(misskey, acct_id, tlid, domain, at)
|
||||||
|
return false
|
||||||
|
}
|
||||||
fetch(start, i)
|
fetch(start, i)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
console.log('header to get param:' + response.headers.get('link'))
|
console.log('header to get param:' + response.headers.get('link'))
|
||||||
@@ -203,10 +207,11 @@ function notfCommon(acct_id, tlid, sys) {
|
|||||||
}
|
}
|
||||||
$('#notf-box').addClass('fetched')
|
$('#notf-box').addClass('fetched')
|
||||||
todc()
|
todc()
|
||||||
notfWS(misskey, acct_id, tlid, domain, at)
|
if(stream != 'no') notfWS(misskey, acct_id, tlid, domain, at)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
function notfWS(misskey, acct_id, tlid, domain, at) {
|
function notfWS(misskey, acct_id, tlid, domain, at) {
|
||||||
|
if(mastodonBaseWsStatus[domain] == 'available') return false
|
||||||
if (!misskey) {
|
if (!misskey) {
|
||||||
if (localStorage.getItem('streaming_' + acct_id)) {
|
if (localStorage.getItem('streaming_' + acct_id)) {
|
||||||
var wss = localStorage.getItem('streaming_' + acct_id)
|
var wss = localStorage.getItem('streaming_' + acct_id)
|
||||||
@@ -258,7 +263,7 @@ function notfWS(misskey, acct_id, tlid, domain, at) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
websocketNotf[acct_id].onerror = function(error) {
|
websocketNotf[acct_id].onerror = function(error) {
|
||||||
console.error('WebSocket Error ' + error)
|
console.error('WebSocket Error ', error)
|
||||||
errorct++
|
errorct++
|
||||||
console.log(errorct)
|
console.log(errorct)
|
||||||
if (errorct < 3) {
|
if (errorct < 3) {
|
||||||
@@ -266,7 +271,7 @@ function notfWS(misskey, acct_id, tlid, domain, at) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
websocketNotf[acct_id].onclose = function(error) {
|
websocketNotf[acct_id].onclose = function(error) {
|
||||||
console.error('WebSocket Close ' + error)
|
console.error('WebSocket Close ', error)
|
||||||
errorct++
|
errorct++
|
||||||
console.log(errorct)
|
console.log(errorct)
|
||||||
if (errorct < 3) {
|
if (errorct < 3) {
|
||||||
|
@@ -224,7 +224,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
dis_name = dis_name.replace(regExp, emoji_url)
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
@@ -241,7 +241,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
noticeavatar = toot.account.avatar_static
|
noticeavatar = toot.account.avatar_static
|
||||||
}
|
}
|
||||||
noticeavatar = `<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg">
|
noticeavatar = `<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg">
|
||||||
<img draggable="false" src="${noticeavatar}" width="20" class="notf-icon prof-img" user="${toot.account.acct}" alt="">
|
<img draggable="false" src="${noticeavatar}" width="20" class="notf-icon prof-img" user="${toot.account.acct}" alt="" loading="lazy">
|
||||||
</a>`
|
</a>`
|
||||||
if (toot.type == 'mention') {
|
if (toot.type == 'mention') {
|
||||||
var what = lang.lang_parse_mentioned
|
var what = lang.lang_parse_mentioned
|
||||||
@@ -379,7 +379,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
dis_name = dis_name.replace(regExp, emoji_url)
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
@@ -395,7 +395,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
noticeavatar = `<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg" aria-hidden="true">
|
noticeavatar = `<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg" aria-hidden="true">
|
||||||
<img draggable="false" src="${noticeavatar}" width="20" class="notf-icon prof-img"
|
<img draggable="false" src="${noticeavatar}" width="20" class="notf-icon prof-img"
|
||||||
user="${toot.account.acct}" onerror="this.src=\'../../img/loading.svg\'">
|
user="${toot.account.acct}" onerror="this.src=\'../../img/loading.svg\'" loading="lazy">
|
||||||
</a>`
|
</a>`
|
||||||
var rebtxt = lang.lang_parse_btedsimple
|
var rebtxt = lang.lang_parse_btedsimple
|
||||||
var rticon = 'fa-retweet light-blue-text'
|
var rticon = 'fa-retweet light-blue-text'
|
||||||
@@ -436,7 +436,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
dis_name = dis_name.replace(regExp, emoji_url)
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
@@ -628,7 +628,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
var mty = media.remote_url.match(/.+(\..+)$/)[1]
|
var mty = media.remote_url.match(/.+(\..+)$/)[1]
|
||||||
viewer =
|
viewer =
|
||||||
viewer +
|
viewer +
|
||||||
`<a href="${media.remote_url}" title="${media.remote_url}">[${lang.lang_parse_unknown}(${mty})]</a> `
|
`<a href="${media.url ? media.url : media.remote_url}" title="${media.remote_url} from ${media.url}">[${lang.lang_parse_unknown}(${mty})]</a> `
|
||||||
} else if (media.type == 'audio') {
|
} else if (media.type == 'audio') {
|
||||||
viewer =
|
viewer =
|
||||||
viewer +
|
viewer +
|
||||||
@@ -652,7 +652,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
id="${id}-image-${key2}" data-url="${url}" data-original="${remote_url}" data-type="${media.type}"
|
id="${id}-image-${key2}" data-url="${url}" data-original="${remote_url}" data-type="${media.type}"
|
||||||
class="img-parsed img-link" style="width:calc(${cwdt}% - 1px); height:${imh};">
|
class="img-parsed img-link" style="width:calc(${cwdt}% - 1px); height:${imh};">
|
||||||
<img draggable="false" src="${purl}" class="${sense} toot-img pointer"
|
<img draggable="false" src="${purl}" class="${sense} toot-img pointer"
|
||||||
onerror="this.src=\'../../img/loading.svg\'" title="${escapeHTML(desc)}" alt="${escapeHTML(desc)}">
|
onerror="this.src=\'../../img/loading.svg\'" title="${escapeHTML(desc)}" alt="${escapeHTML(desc)}" loading="lazy">
|
||||||
${nsfwmes}
|
${nsfwmes}
|
||||||
</a>`
|
</a>`
|
||||||
}
|
}
|
||||||
@@ -855,7 +855,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
content = content.replace(regExp, emoji_url)
|
content = content.replace(regExp, emoji_url)
|
||||||
@@ -875,7 +875,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
var emoji = toot.profile_emojis[keynico]
|
var emoji = toot.profile_emojis[keynico]
|
||||||
var shortcode = emoji.shortcode
|
var shortcode = emoji.shortcode
|
||||||
var emoji_url = `<img draggable="false" src="${emoji.url}" class="emoji-img" data-emoji="${shortcode}" alt=" :${shortcode}: "
|
var emoji_url = `<img draggable="false" src="${emoji.url}" class="emoji-img" data-emoji="${shortcode}" alt=" :${shortcode}: "
|
||||||
title="${shortcode}" onclick="this.classList.toggle(\'bigemoji\');">`
|
title="${shortcode}" onclick="this.classList.toggle(\'bigemoji\');" loading="lazy">`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
content = content.replace(regExp, emoji_url)
|
content = content.replace(regExp, emoji_url)
|
||||||
spoil = spoil.replace(regExp, emoji_url)
|
spoil = spoil.replace(regExp, emoji_url)
|
||||||
@@ -901,12 +901,10 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
}
|
}
|
||||||
//日本語じゃない
|
//日本語じゃない
|
||||||
if (toot.language != lang.language && toot.language) {
|
if (toot.language != lang.language && toot.language) {
|
||||||
var trans = `<div class="">
|
var trans = `<li onclick="trans('${toot.language}','${lang.language}', $(this))"
|
||||||
<a onclick="trans('${toot.language}','${lang.language}', $(this))"
|
style="padding:0">
|
||||||
class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
|
||||||
<i class="material-icons" aria-hidden="true">g_translate</i>${lang.lang_parse_trans}
|
<i class="material-icons" aria-hidden="true">g_translate</i>${lang.lang_parse_trans}
|
||||||
</a>
|
</li>`
|
||||||
</div>`
|
|
||||||
} else {
|
} else {
|
||||||
var trans = ''
|
var trans = ''
|
||||||
}
|
}
|
||||||
@@ -964,7 +962,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
};width:100%; height:0.9rem; font-size:0.8rem;" class="tickers">
|
};width:100%; height:0.9rem; font-size:0.8rem;" class="tickers">
|
||||||
<img draggable="false" src="${
|
<img draggable="false" src="${
|
||||||
value.favicon
|
value.favicon
|
||||||
}" style="height:100%;" onerror="this.src=\'../../img/loading.svg\'">
|
}" style="height:100%;" onerror="this.src=\'../../img/loading.svg\'" loading="lazy">
|
||||||
<span style="position:relative; top:-0.2rem;">${escapeHTML(value.name)}</span>
|
<span style="position:relative; top:-0.2rem;">${escapeHTML(value.name)}</span>
|
||||||
</div>`
|
</div>`
|
||||||
break
|
break
|
||||||
@@ -986,7 +984,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
<a onclick="udg('${toot.quote.account.id}','${acct_id}');" user="${
|
<a onclick="udg('${toot.quote.account.id}','${acct_id}');" user="${
|
||||||
toot.quote.account.acct
|
toot.quote.account.acct
|
||||||
}" class="udg">
|
}" class="udg">
|
||||||
<img draggable="false" src="${toot.quote.account.avatar}">
|
<img draggable="false" src="${toot.quote.account.avatar}" loading="lazy">
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="renote-user">
|
<div class="renote-user">
|
||||||
@@ -1034,15 +1032,15 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
'unix'
|
'unix'
|
||||||
)}"
|
)}"
|
||||||
${if_notf}
|
${if_notf}
|
||||||
onmouseover="mov('${toot.id}','${tlid}','mv')"
|
onmouseover="mov('${uniqueid}','${tlid}','mv')"
|
||||||
onclick="mov('${toot.id}','${tlid}','cl')"
|
onclick="mov('${uniqueid}','${tlid}','cl')"
|
||||||
onmouseout="resetmv('mv')"
|
onmouseout="resetmv('mv')"
|
||||||
>
|
>
|
||||||
<div class="area-notice grid"><span class="gray sharesta">${notice}${home}</span></div>
|
<div class="area-notice grid"><span class="gray sharesta">${notice}${home}</span></div>
|
||||||
<div class="area-icon grid">
|
<div class="area-icon grid">
|
||||||
<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg">
|
<a onclick="udg('${toot.account.id}','${acct_id}');" user="${toot.account.acct}" class="udg">
|
||||||
<img draggable="false" src="${avatar}" width="40" class="prof-img"
|
<img draggable="false" src="${avatar}" width="40" class="prof-img"
|
||||||
user="${toot.account.acct}" onerror="this.src='../../img/loading.svg'" alt="" />
|
user="${toot.account.acct}" onerror="this.src='../../img/loading.svg'" alt="" loading="lazy" />
|
||||||
</a>
|
</a>
|
||||||
${noticeavatar}
|
${noticeavatar}
|
||||||
</div>
|
</div>
|
||||||
@@ -1132,8 +1130,8 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
</div>
|
</div>
|
||||||
<div class="area-side">
|
<div class="area-side">
|
||||||
<div class="action ${noauth}">
|
<div class="action ${noauth}">
|
||||||
<a onclick="toggleAction($(this), ${menuct * 39 + 6})"
|
<a onclick="toggleAction('trigger_${tlid}_${uniqueid}')" data-target="dropdown_${tlid}_${uniqueid}"
|
||||||
class="ctxMenu waves-effect waves-dark btn-flat" style="padding:0">
|
class="ctxMenu waves-effect waves-dark btn-flat" style="padding:0" id="trigger_${tlid}_${uniqueid}">
|
||||||
<i class="text-darken-3 material-icons act-icon" aria-hidden="true">expand_more</i>
|
<i class="text-darken-3 material-icons act-icon" aria-hidden="true">expand_more</i>
|
||||||
<span class="voice">Other actions</span>
|
<span class="voice">Other actions</span>
|
||||||
</a>
|
</a>
|
||||||
@@ -1146,45 +1144,32 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
|||||||
<span class="voice">${lang.lang_parse_detail}</span>
|
<span class="voice">${lang.lang_parse_detail}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="contextMenu hide z-depth-4">
|
<ul class="dropdown-content contextMenu" id="dropdown_${tlid}_${uniqueid}">
|
||||||
<div class="${viashow}">
|
<li class="${viashow} via-dropdown" onclick="client('${$.strip_tags(via)}')" title="${lang.lang_parse_clientop}">
|
||||||
via ${escapeHTML(via)}<br>
|
via ${escapeHTML(via)}</a>
|
||||||
<a onclick="client('${$.strip_tags(via)}')" class="pointer">${lang.lang_parse_clientop}</a>
|
</li>
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<button onclick="bkm('${uniqueid}','${acct_id}','${tlid}')"
|
<li onclick="bkm('${uniqueid}','${acct_id}','${tlid}')"
|
||||||
class="waves-effect waves-dark btn-flat actct bkm-btn" style="padding:0">
|
class="bkm-btn bkmStr_${uniqueid}" style="padding:0">
|
||||||
<i class="fas text-darken-3 fa-bookmark bkm_${toot.id} ${if_bkm}"></i>
|
<i class="fas text-darken-3 fa-bookmark bkm_${toot.id} ${if_bkm}"></i>${bkmStr}
|
||||||
<span class="bkmStr_${uniqueid}">${bkmStr}</span>
|
</li>
|
||||||
</button>
|
<li class="${if_mine}" onclick="del('${uniqueid}','${acct_id}')"
|
||||||
</div>
|
|
||||||
<div class="${if_mine}">
|
|
||||||
<button onclick="del('${uniqueid}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
|
||||||
style="padding:0">
|
style="padding:0">
|
||||||
<i class="fas fa-trash"></i>${lang.lang_parse_del}
|
<i class="fas fa-trash"></i>${lang.lang_parse_del}
|
||||||
</button>
|
</li>
|
||||||
</div>
|
<li class="${if_mine}" onclick="pin('${uniqueid}','${acct_id}')" style="padding:0" class="pinStr_${uniqueid}">
|
||||||
<div class="${if_mine}">
|
<i class="fas fa-map-pin pin_${uniqueid} ${if_pin}"></i>${pinStr}
|
||||||
<button onclick="pin('${uniqueid}','${acct_id}')" class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
</li>
|
||||||
<i class="fas fa-map-pin pin_${uniqueid} ${if_pin}"></i>
|
<li class="${if_mine}" onclick="redraft('${uniqueid}','${acct_id}')"
|
||||||
<span class="pinStr_${uniqueid}">${pinStr}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="${if_mine}">
|
|
||||||
<button onclick="redraft('${uniqueid}','${acct_id}')" class="waves-effect waves-dark btn-flat actct"
|
|
||||||
style="padding:0">
|
style="padding:0">
|
||||||
<i class="material-icons" aria-hidden="true">redo</i>${lang.lang_parse_redraft}
|
<i class="material-icons" aria-hidden="true">redo</i>${lang.lang_parse_redraft}
|
||||||
</button>
|
</li>
|
||||||
</div>
|
|
||||||
${trans}
|
${trans}
|
||||||
<div>
|
<li onclick="postMessage(['openUrl', '${toot.url}'], '*')"
|
||||||
<button onclick="postMessage(['openUrl', '${toot.url}'], '*')"
|
style="padding:0">
|
||||||
class="waves-effect waves-dark btn-flat actct" style="padding:0">
|
<i class="fas text-darken-3 fa-globe"></i>${lang.lang_parse_link}
|
||||||
<i class="fas text-darken-3 fa-globe"></i>
|
</li>
|
||||||
${lang.lang_parse_link}
|
</ul>
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
@@ -1246,7 +1231,6 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
} else if (auth == 'request') {
|
} else if (auth == 'request') {
|
||||||
var ftxt = lang.lang_parse_request
|
var ftxt = lang.lang_parse_request
|
||||||
}
|
}
|
||||||
console.log(auth, ftxt)
|
|
||||||
if (popup > 0 || popup == -1 || notf) {
|
if (popup > 0 || popup == -1 || notf) {
|
||||||
var notftext = ftxt + '<br>'
|
var notftext = ftxt + '<br>'
|
||||||
} else {
|
} else {
|
||||||
@@ -1296,7 +1280,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
dis_name = dis_name.replace(regExp, emoji_url)
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
@@ -1319,7 +1303,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
} else {
|
} else {
|
||||||
var udg = `<a onclick="udg('${toot.id}','${acct_id}');" user="${toot.acct}" class="udg">`
|
var udg = `<a onclick="udg('${toot.id}','${acct_id}');" user="${toot.acct}" class="udg">`
|
||||||
}
|
}
|
||||||
var latest = date(toot.last_status_at, 'relative')
|
var latest = date(toot.last_status_at, 'relative', true)
|
||||||
if (toot.last_status_at) {
|
if (toot.last_status_at) {
|
||||||
var latesthtml = `<div class="cbadge" style="width:100px;">Last <span class="voice">toot</span>: ${latest}</div>`
|
var latesthtml = `<div class="cbadge" style="width:100px;">Last <span class="voice">toot</span>: ${latest}</div>`
|
||||||
} else {
|
} else {
|
||||||
@@ -1339,6 +1323,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
user="${toot.acct}"
|
user="${toot.acct}"
|
||||||
onerror="this.src='../../img/loading.svg'"
|
onerror="this.src='../../img/loading.svg'"
|
||||||
alt=""
|
alt=""
|
||||||
|
loading="lazy"
|
||||||
/>
|
/>
|
||||||
</a></div>
|
</a></div>
|
||||||
<div class="area-display_name">
|
<div class="area-display_name">
|
||||||
@@ -1372,7 +1357,6 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||||||
}
|
}
|
||||||
//クライアントダイアログ
|
//クライアントダイアログ
|
||||||
function client(name) {
|
function client(name) {
|
||||||
$('#contextWrap').addClass('hide')
|
|
||||||
if (name != 'Unknown') {
|
if (name != 'Unknown') {
|
||||||
//聞く
|
//聞く
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
@@ -1530,7 +1514,7 @@ function pollParse(poll, acct_id, emojis) {
|
|||||||
}
|
}
|
||||||
var emoji_url = `
|
var emoji_url = `
|
||||||
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
<img draggable="false" src="${emoSource}" class="emoji-img" data-emoji="${shortcode}"
|
||||||
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');">
|
alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy">
|
||||||
`
|
`
|
||||||
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
var regExp = new RegExp(':' + shortcode + ':', 'g')
|
||||||
choiceText = choiceText.replace(regExp, emoji_url)
|
choiceText = choiceText.replace(regExp, emoji_url)
|
||||||
@@ -1560,3 +1544,312 @@ function pollParse(poll, acct_id, emojis) {
|
|||||||
</div>`
|
</div>`
|
||||||
return pollHtml
|
return pollHtml
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//MastodonBaseStreaming
|
||||||
|
var mastodonBaseWs = {}
|
||||||
|
var mastodonBaseWsStatus = {}
|
||||||
|
function mastodonBaseStreaming(acct_id) {
|
||||||
|
console.log('start to connect mastodonBaseStreaming of ' + acct_id)
|
||||||
|
notfCommon(acct_id, 0, null, 'no')
|
||||||
|
const domain = localStorage.getItem(`domain_${acct_id}`)
|
||||||
|
if (mastodonBaseWsStatus[domain]) return
|
||||||
|
mastodonBaseWsStatus[domain] = 'undetected'
|
||||||
|
const at = localStorage.getItem(`acct_${acct_id}_at`)
|
||||||
|
let wss = 'wss://' + domain
|
||||||
|
if (localStorage.getItem('streaming_' + acct_id)) {
|
||||||
|
wss = localStorage.getItem('streaming_' + acct_id)
|
||||||
|
}
|
||||||
|
const start = `${wss}/api/v1/streaming/?access_token=${at}`
|
||||||
|
mastodonBaseWs[domain] = new WebSocket(start)
|
||||||
|
mastodonBaseWs[domain].onopen = function () {
|
||||||
|
mastodonBaseWsStatus[domain] = 'connecting'
|
||||||
|
setTimeout(function () {
|
||||||
|
mastodonBaseWsStatus[domain] = 'available'
|
||||||
|
}, 3000)
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: 'subscribe', stream: 'user'}))
|
||||||
|
$('.notice_icon_acct_' + acct_id).removeClass('red-text')
|
||||||
|
}
|
||||||
|
mastodonBaseWs[domain].onmessage = function (mess) {
|
||||||
|
const typeA = JSON.parse(mess.data).event
|
||||||
|
if (typeA == 'delete') {
|
||||||
|
$(`[unique-id=${JSON.parse(mess.data).payload}]`).hide()
|
||||||
|
$(`[unique-id=${JSON.parse(mess.data).payload}]`).remove()
|
||||||
|
} else if (typeA == 'update' || typeA == 'conversation') {
|
||||||
|
//markers show中はダメ
|
||||||
|
const tl = JSON.parse(mess.data).stream
|
||||||
|
const obj = JSON.parse(JSON.parse(mess.data).payload)
|
||||||
|
const tls = getTlMeta(tl[0], tl, acct_id, obj)
|
||||||
|
insertTl(obj, tls)
|
||||||
|
} else if (typeA == 'filters_changed') {
|
||||||
|
filterUpdate(acct_id)
|
||||||
|
} else if (~typeA.indexOf('announcement')) {
|
||||||
|
announ(acct_id, tlid)
|
||||||
|
} else if (typeA == 'notification') {
|
||||||
|
const obj = JSON.parse(JSON.parse(mess.data).payload)
|
||||||
|
let template = ''
|
||||||
|
localStorage.setItem('lastnotf_' + acct_id, obj.id)
|
||||||
|
let popup = localStorage.getItem('popup')
|
||||||
|
if (!popup) {
|
||||||
|
popup = 0
|
||||||
|
}
|
||||||
|
if (obj.type != 'follow' && obj.type != 'follow_request') {
|
||||||
|
template = parse([obj], 'notf', acct_id, 'notf', popup)
|
||||||
|
} else if (obj.type == 'follow_request') {
|
||||||
|
template = userparse([obj.account], 'request', acct_id, 'notf', -1)
|
||||||
|
} else {
|
||||||
|
template = userparse([obj], obj.type, acct_id, 'notf', popup)
|
||||||
|
}
|
||||||
|
if (!$('div[data-notfIndv=' + acct_id + '_' + obj.id + ']').length) {
|
||||||
|
$('div[data-notf=' + acct_id + ']').prepend(template)
|
||||||
|
$('div[data-const=notf_' + acct_id + ']').prepend(template)
|
||||||
|
}
|
||||||
|
jQuery('time.timeago').timeago()
|
||||||
|
} else {
|
||||||
|
console.error('unknown type ' + typeA)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mastodonBaseWs[domain].onerror = function (error) {
|
||||||
|
notfCommon(acct_id, 0, null, 'only') //fallback
|
||||||
|
console.error("Error closing " + domain)
|
||||||
|
console.error(error)
|
||||||
|
if (mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
/*M.toast({
|
||||||
|
html:
|
||||||
|
`${lang.lang_parse_disconnected}<button class="btn-flat toast-action" onclick="location.reload()">${lang.lang_layout_reconnect}</button>`,
|
||||||
|
completeCallback: function () {
|
||||||
|
parseColumn()
|
||||||
|
|
||||||
|
},
|
||||||
|
displayLength: 3000
|
||||||
|
})*/
|
||||||
|
parseColumn()
|
||||||
|
}
|
||||||
|
mastodonBaseWsStatus[domain] = 'cannotuse'
|
||||||
|
setTimeout(function () {
|
||||||
|
mastodonBaseWsStatus[domain] = 'cannotuse'
|
||||||
|
}, 3000)
|
||||||
|
mastodonBaseWs[domain] = false
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
mastodonBaseWs[domain].onclose = function () {
|
||||||
|
notfCommon(acct_id, 0, null, 'only') //fallback
|
||||||
|
console.warn("Closing " + domain)
|
||||||
|
if (mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
/*M.toast({
|
||||||
|
html:
|
||||||
|
`${lang.lang_parse_disconnected}<button class="btn-flat toast-action" onclick="location.reload()">${lang.lang_layout_reconnect}</button>`,
|
||||||
|
completeCallback: function () {
|
||||||
|
parseColumn()
|
||||||
|
|
||||||
|
},
|
||||||
|
displayLength: 3000
|
||||||
|
})*/
|
||||||
|
parseColumn()
|
||||||
|
}
|
||||||
|
mastodonBaseWs[domain] = false
|
||||||
|
mastodonBaseWsStatus[domain] = 'cannotuse'
|
||||||
|
setTimeout(function () {
|
||||||
|
mastodonBaseWsStatus[domain] = 'cannotuse'
|
||||||
|
}, 3000)
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function insertTl(obj, tls) {
|
||||||
|
for (const timeline of tls) {
|
||||||
|
const { id, voice, type, acct_id } = timeline
|
||||||
|
const mute = getFilterTypeByAcct(acct_id, type)
|
||||||
|
if ($(`#unread_${id} .material-icons`).hasClass('teal-text')) continue
|
||||||
|
if (!$(`#timeline_${id} [toot-id=${obj.id}]`).length) {
|
||||||
|
if (voice) {
|
||||||
|
say(obj.content)
|
||||||
|
}
|
||||||
|
const template = parse([obj], type, acct_id, id, '', mute, type)
|
||||||
|
console.log($(`#timeline_box_${id}_box .tl-box`).scrollTop(), `timeline_box_${id}_box .tl-box`)
|
||||||
|
if (
|
||||||
|
$(`#timeline_box_${id}_box .tl-box`).scrollTop() === 0
|
||||||
|
) {
|
||||||
|
$(`#timeline_${id}`).prepend(template)
|
||||||
|
} else {
|
||||||
|
let pool = localStorage.getItem('pool_' + id)
|
||||||
|
if (pool) {
|
||||||
|
pool = template + pool
|
||||||
|
} else {
|
||||||
|
pool = template
|
||||||
|
}
|
||||||
|
localStorage.setItem('pool_' + id, pool)
|
||||||
|
}
|
||||||
|
scrollck()
|
||||||
|
additional(acct_id, id)
|
||||||
|
jQuery('time.timeago').timeago()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getTlMeta(type, data, num, status) {
|
||||||
|
const acct_id = num.toString()
|
||||||
|
const columns = localStorage.getItem('column')
|
||||||
|
const obj = JSON.parse(columns)
|
||||||
|
let ret = []
|
||||||
|
let i = -1
|
||||||
|
switch (type) {
|
||||||
|
case 'user':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'mix' || tl.type == 'home') {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break
|
||||||
|
case 'public:local':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'mix' || tl.type == 'local') {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break
|
||||||
|
case 'public:local:media':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'local-media') {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'public':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'pub') {
|
||||||
|
console.log(i, tl)
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'public:media':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'pub-media') {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'list':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'list' && tl.data == data[1]) {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'direct':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
if (tl.type == 'dm') {
|
||||||
|
let voice = false
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'hashtag':
|
||||||
|
for (const tl of obj) {
|
||||||
|
i++
|
||||||
|
if (tl.domain != acct_id) continue
|
||||||
|
const columnDataRaw = tl.data
|
||||||
|
let columnData
|
||||||
|
if (!columnDataRaw.name) {
|
||||||
|
columnData = { name: columnDataRaw }
|
||||||
|
} else {
|
||||||
|
columnData = columnDataRaw
|
||||||
|
}
|
||||||
|
if (tl.type == 'tag') {
|
||||||
|
let voice = false
|
||||||
|
let can = false
|
||||||
|
if (columnData.name == data[1]) can = true
|
||||||
|
//any
|
||||||
|
if (columnData.any.split(',').includes(data[1])) can = true
|
||||||
|
//all
|
||||||
|
const { tags } = status
|
||||||
|
if (columnData.all) can = true
|
||||||
|
for (const { name } of tags) {
|
||||||
|
if (!columnData.all.split(',').includes(name)) {
|
||||||
|
can = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//none
|
||||||
|
if (columnData.none) can = true
|
||||||
|
for (const { name } of tags) {
|
||||||
|
if (columnData.none.split(',').includes(name)) {
|
||||||
|
can = false
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (localStorage.getItem('voice_' + i)) voice = true
|
||||||
|
ret.push({
|
||||||
|
id: i,
|
||||||
|
voice: voice,
|
||||||
|
type: tl.type,
|
||||||
|
acct_id: tl.domain
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
console.error(`Cannot catch`);
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}
|
@@ -219,9 +219,9 @@ function moreTs(tlid, q) {
|
|||||||
function graphDraw(tag, acct_id) {
|
function graphDraw(tag, acct_id) {
|
||||||
var tags = ''
|
var tags = ''
|
||||||
var his = tag.history
|
var his = tag.history
|
||||||
return graphDrawCore(his, tag)
|
return graphDrawCore(his, tag, acct_id)
|
||||||
}
|
}
|
||||||
function graphDrawCore(his, tag) {
|
function graphDrawCore(his, tag, acct_id) {
|
||||||
var max = Math.max.apply(null, [
|
var max = Math.max.apply(null, [
|
||||||
his[0].uses,
|
his[0].uses,
|
||||||
his[1].uses,
|
his[1].uses,
|
||||||
@@ -307,7 +307,7 @@ function trend() {
|
|||||||
Object.keys(json).forEach(function(keye) {
|
Object.keys(json).forEach(function(keye) {
|
||||||
var tag = json[keye]
|
var tag = json[keye]
|
||||||
var his = tag.history
|
var his = tag.history
|
||||||
tags = graphDrawCore(his, tag)
|
tags = graphDrawCore(his, tag, acct_id)
|
||||||
|
|
||||||
$('#src-contents').append(tags)
|
$('#src-contents').append(tags)
|
||||||
})
|
})
|
||||||
|
@@ -206,7 +206,7 @@ function tl(type, data, acct_id, tlid, delc, voice, mode) {
|
|||||||
additional(acct_id, tlid)
|
additional(acct_id, tlid)
|
||||||
jQuery('time.timeago').timeago()
|
jQuery('time.timeago').timeago()
|
||||||
todc()
|
todc()
|
||||||
reload(type, '', acct_id, tlid, data, mute, delc, voice)
|
reload(type, 'from timeline to reload', acct_id, tlid, data, mute, delc, voice)
|
||||||
if (type == 'home' || type == 'notf') {
|
if (type == 'home' || type == 'notf') {
|
||||||
//Markers
|
//Markers
|
||||||
var markers = localStorage.getItem('markers')
|
var markers = localStorage.getItem('markers')
|
||||||
@@ -247,7 +247,57 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
|||||||
}
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
} else {
|
} else {
|
||||||
|
var domain = localStorage.getItem('domain_' + acct_id)
|
||||||
|
if (mastodonBaseWsStatus[domain] == 'cannotuse') {
|
||||||
|
oldStreaming(type, cc, acct_id, tlid, data, mute, delc, voice, mode)
|
||||||
|
} else if (mastodonBaseWsStatus[domain] == 'undetected' || mastodonBaseWsStatus[domain] == 'connecting') {
|
||||||
|
const mbws = setInterval(function () {
|
||||||
|
if (mastodonBaseWsStatus[domain] == 'cannotuse') {
|
||||||
|
oldStreaming(type, cc, acct_id, tlid, data, mute, delc, voice, mode)
|
||||||
|
clearInterval(mbws)
|
||||||
|
} else if (mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
$('#notice_icon_' + tlid).removeClass('red-text')
|
||||||
|
stremaingSubscribe(type, acct_id, data)
|
||||||
|
clearInterval(mbws)
|
||||||
|
}
|
||||||
|
}, 1000)
|
||||||
|
} else if (mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
$('#notice_icon_' + tlid).removeClass('red-text')
|
||||||
|
stremaingSubscribe(type, acct_id, data)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function stremaingSubscribe(type, acct_id, data, unsubscribe) {
|
||||||
|
let command = 'subscribe'
|
||||||
|
if (unsubscribe) command = 'unsubscribe'
|
||||||
|
let stream
|
||||||
|
const domain = localStorage.getItem('domain_' + acct_id)
|
||||||
|
if(type == 'home') return false
|
||||||
|
if (type === 'local' || type === 'mix') { stream = 'public:local' }
|
||||||
|
else if (type === 'local-media') { stream = 'public:local:media' }
|
||||||
|
else if (type === 'pub') { stream = 'public' }
|
||||||
|
else if (type === 'pub-media') { stream = 'public:media' }
|
||||||
|
else if (type === 'list') {
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: command, stream: 'list', list: data}))
|
||||||
|
return true
|
||||||
|
} else if (type === 'tag') {
|
||||||
|
let arr = []
|
||||||
|
let name = data
|
||||||
|
if (data.name) name = data.name
|
||||||
|
arr.push(name)
|
||||||
|
if (data.any) arr = arr.concat(data.any.split(','))
|
||||||
|
if (data.all) arr = arr.concat(data.all.split(','))
|
||||||
|
for (const tag of arr) {
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: command, stream: 'hashtag', tag: tag}))
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
mastodonBaseWs[domain].send(JSON.stringify({type: command, stream: stream}))
|
||||||
|
}
|
||||||
|
function oldStreaming(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
||||||
var misskey = false
|
var misskey = false
|
||||||
|
const domain = localStorage.getItem(`domain_${acct_id}`)
|
||||||
|
var at = localStorage.getItem('acct_' + acct_id + '_at')
|
||||||
if (localStorage.getItem('streaming_' + acct_id)) {
|
if (localStorage.getItem('streaming_' + acct_id)) {
|
||||||
var wss = localStorage.getItem('streaming_' + acct_id)
|
var wss = localStorage.getItem('streaming_' + acct_id)
|
||||||
} else {
|
} else {
|
||||||
@@ -276,18 +326,19 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
|||||||
'/api/v1/streaming/?stream=public:local:media&only_media=true&access_token=' +
|
'/api/v1/streaming/?stream=public:local:media&only_media=true&access_token=' +
|
||||||
at
|
at
|
||||||
} else if (type == 'tag') {
|
} else if (type == 'tag') {
|
||||||
if (type == 'tag') {
|
|
||||||
var tag = localStorage.getItem('tag-range')
|
var tag = localStorage.getItem('tag-range')
|
||||||
if (tag == 'local') {
|
if (tag == 'local') {
|
||||||
data = data + '&local=true'
|
data = data + '&local=true'
|
||||||
}
|
}
|
||||||
|
if (data.name) {
|
||||||
|
data = data.name
|
||||||
}
|
}
|
||||||
var start =
|
var start =
|
||||||
wss +
|
wss +
|
||||||
'/api/v1/streaming/?stream=hashtag&tag=' +
|
'/api/v1/streaming/?stream=hashtag&tag=' +
|
||||||
data +
|
data +
|
||||||
'&access_token=' +
|
'&access_token=' +
|
||||||
at
|
at + add
|
||||||
} else if (type == 'noauth') {
|
} else if (type == 'noauth') {
|
||||||
var start = 'wss://' + acct_id + '/api/v1/streaming/?stream=public:local'
|
var start = 'wss://' + acct_id + '/api/v1/streaming/?stream=public:local'
|
||||||
} else if (type == 'list') {
|
} else if (type == 'list') {
|
||||||
@@ -433,8 +484,6 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//一定のスクロールで発火
|
//一定のスクロールで発火
|
||||||
function moreload(type, tlid) {
|
function moreload(type, tlid) {
|
||||||
var multi = localStorage.getItem('column')
|
var multi = localStorage.getItem('column')
|
||||||
@@ -998,7 +1047,7 @@ function reconnector(tlid, type, acct_id, data, mode) {
|
|||||||
var voice = false
|
var voice = false
|
||||||
}
|
}
|
||||||
var mute = getFilterTypeByAcct(acct_id, type)
|
var mute = getFilterTypeByAcct(acct_id, type)
|
||||||
reload(type, '', acct_id, tlid, data, mute, '', voice, mode)
|
var domain = localStorage.getItem('domain_' + acct_id)
|
||||||
}
|
}
|
||||||
M.toast({ html: lang.lang_tl_reconnect, displayLength: 2000 })
|
M.toast({ html: lang.lang_tl_reconnect, displayLength: 2000 })
|
||||||
}
|
}
|
||||||
@@ -1008,6 +1057,12 @@ function columnReload(tlid, type) {
|
|||||||
var multi = localStorage.getItem('column')
|
var multi = localStorage.getItem('column')
|
||||||
var obj = JSON.parse(multi)
|
var obj = JSON.parse(multi)
|
||||||
var acct_id = obj[tlid].domain
|
var acct_id = obj[tlid].domain
|
||||||
|
var domain = localStorage.getItem('domain_' + acct_id)
|
||||||
|
if (mastodonBaseWsStatus[domain] == 'available') {
|
||||||
|
stremaingSubscribe(type, acct_id, obj[tlid].data, true)
|
||||||
|
parseColumn(tlid, true)
|
||||||
|
return true
|
||||||
|
}
|
||||||
if (type == 'mix' || type == 'integrated' || type == 'plus') {
|
if (type == 'mix' || type == 'integrated' || type == 'plus') {
|
||||||
if (localStorage.getItem('voice_' + tlid)) {
|
if (localStorage.getItem('voice_' + tlid)) {
|
||||||
var voice = true
|
var voice = true
|
||||||
@@ -1027,15 +1082,10 @@ function columnReload(tlid, type) {
|
|||||||
$('#notice_icon_' + tlid).removeClass('red-text')
|
$('#notice_icon_' + tlid).removeClass('red-text')
|
||||||
getBookmark(acct_id, tlid, false)
|
getBookmark(acct_id, tlid, false)
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var wss = localStorage.getItem('wss_' + tlid)
|
var wss = localStorage.getItem('wss_' + tlid)
|
||||||
websocket[wss].close()
|
websocket[wss].close()
|
||||||
if (localStorage.getItem('voice_' + tlid)) {
|
parseColumn(tlid, false)
|
||||||
var voice = true
|
|
||||||
} else {
|
|
||||||
var voice = false
|
|
||||||
}
|
|
||||||
var mute = getFilterTypeByAcct(acct_id, type)
|
|
||||||
parseColumn(tlid)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Markers
|
//Markers
|
||||||
@@ -1418,7 +1468,7 @@ function announ(acct_id, tlid) {
|
|||||||
$('.notf-announ_' + acct_id).addClass('hide')
|
$('.notf-announ_' + acct_id).addClass('hide')
|
||||||
}
|
}
|
||||||
var templete = announParse(json, acct_id, tlid)
|
var templete = announParse(json, acct_id, tlid)
|
||||||
$('#announce_' + tlid).html(templete)
|
$('.announce_' + acct_id).html(templete)
|
||||||
jQuery('time.timeago').timeago()
|
jQuery('time.timeago').timeago()
|
||||||
todc()
|
todc()
|
||||||
}
|
}
|
||||||
|
@@ -120,7 +120,7 @@ function imageXhr(id, key, murl) {
|
|||||||
element.onload = function() {
|
element.onload = function() {
|
||||||
var width = element.naturalWidth
|
var width = element.naturalWidth
|
||||||
if(width < 650) {
|
if(width < 650) {
|
||||||
width = 650;
|
width = 650
|
||||||
}
|
}
|
||||||
var height = element.naturalHeight
|
var height = element.naturalHeight
|
||||||
var windowH = $(window).height()
|
var windowH = $(window).height()
|
||||||
@@ -182,7 +182,7 @@ function zoom(z) {
|
|||||||
$('#imagewrap img').css('height', hgt + 'px')
|
$('#imagewrap img').css('height', hgt + 'px')
|
||||||
}
|
}
|
||||||
//スマホ対応ドラッグ移動システム
|
//スマホ対応ドラッグ移動システム
|
||||||
;(function() {
|
(function() {
|
||||||
$.fn.dragScroll = function() {
|
$.fn.dragScroll = function() {
|
||||||
var target = this
|
var target = this
|
||||||
$(this)
|
$(this)
|
||||||
|
@@ -42,18 +42,16 @@ function parseColumn(target, dontclose) {
|
|||||||
var multi = localStorage.getItem('multi')
|
var multi = localStorage.getItem('multi')
|
||||||
if (multi) {
|
if (multi) {
|
||||||
var obj = JSON.parse(multi)
|
var obj = JSON.parse(multi)
|
||||||
|
|
||||||
var templete
|
var templete
|
||||||
Object.keys(obj).forEach(function (key) {
|
Object.keys(obj).forEach(function (key) {
|
||||||
var acct = obj[key]
|
var acct = obj[key]
|
||||||
|
|
||||||
localStorage.setItem('name_' + key, acct.name)
|
localStorage.setItem('name_' + key, acct.name)
|
||||||
localStorage.setItem('user_' + key, acct.user)
|
localStorage.setItem('user_' + key, acct.user)
|
||||||
localStorage.setItem('user-id_' + key, acct.id)
|
localStorage.setItem('user-id_' + key, acct.id)
|
||||||
localStorage.setItem('prof_' + key, acct.prof)
|
localStorage.setItem('prof_' + key, acct.prof)
|
||||||
localStorage.setItem('domain_' + key, acct.domain)
|
localStorage.setItem('domain_' + key, acct.domain)
|
||||||
localStorage.setItem('acct_' + key + '_at', acct.at)
|
localStorage.setItem('acct_' + key + '_at', acct.at)
|
||||||
notf(key, 0)
|
if(!target) mastodonBaseStreaming(key)
|
||||||
ckdb(key)
|
ckdb(key)
|
||||||
//フィルターデータ読もう
|
//フィルターデータ読もう
|
||||||
getFilter(key)
|
getFilter(key)
|
||||||
@@ -76,8 +74,12 @@ function parseColumn(target, dontclose) {
|
|||||||
var obj = [
|
var obj = [
|
||||||
{
|
{
|
||||||
domain: 0,
|
domain: 0,
|
||||||
type: 'local',
|
type: 'home',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
domain: 0,
|
||||||
|
type: 'local',
|
||||||
|
}
|
||||||
]
|
]
|
||||||
var json = JSON.stringify(obj)
|
var json = JSON.stringify(obj)
|
||||||
localStorage.setItem('column', json)
|
localStorage.setItem('column', json)
|
||||||
@@ -147,7 +149,6 @@ function parseColumn(target, dontclose) {
|
|||||||
icnsert = ' style="color: #' + ichex + '" '
|
icnsert = ' style="color: #' + ichex + '" '
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log(acct)
|
|
||||||
if (acctlist[acct.domain]) {
|
if (acctlist[acct.domain]) {
|
||||||
if (acctlist[acct.domain].background != 'def') {
|
if (acctlist[acct.domain].background != 'def') {
|
||||||
insert = insert + ' border-bottom:medium solid #' + acctlist[acct.domain].background + ';'
|
insert = insert + ' border-bottom:medium solid #' + acctlist[acct.domain].background + ';'
|
||||||
@@ -158,15 +159,21 @@ function parseColumn(target, dontclose) {
|
|||||||
} else {
|
} else {
|
||||||
localStorage.removeItem('hasNotfC_' + acct.domain)
|
localStorage.removeItem('hasNotfC_' + acct.domain)
|
||||||
}
|
}
|
||||||
|
var css = ''
|
||||||
var width = localStorage.getItem('width')
|
var width = localStorage.getItem('width')
|
||||||
if (width) {
|
if (width) {
|
||||||
var css = ' min-width:' + width + 'px;'
|
css = ' min-width:' + width + 'px;'
|
||||||
|
}
|
||||||
|
var maxWidth = localStorage.getItem('max-width')
|
||||||
|
if (maxWidth) {
|
||||||
|
css = css +'max-width:' + maxWidth + 'px;'
|
||||||
|
}
|
||||||
|
var margin = localStorage.getItem('margin')
|
||||||
|
if (margin) {
|
||||||
|
css = css +'margin-right:' + margin + 'px;'
|
||||||
}
|
}
|
||||||
if (acct.width) {
|
if (acct.width) {
|
||||||
var css = ' min-width:' + acct.width + 'px;max-width:' + acct.width + 'px;'
|
css = css + ' min-width:' + acct.width + 'px !important;max-width:' + acct.width + 'px !important;'
|
||||||
}
|
|
||||||
if (!css) {
|
|
||||||
var css = ''
|
|
||||||
}
|
}
|
||||||
if (acct.type == 'webview') {
|
if (acct.type == 'webview') {
|
||||||
if (localStorage.getItem('fixwidth')) {
|
if (localStorage.getItem('fixwidth')) {
|
||||||
@@ -221,65 +228,63 @@ function parseColumn(target, dontclose) {
|
|||||||
var animecss = ''
|
var animecss = ''
|
||||||
}
|
}
|
||||||
var unread = `<a id="unread_${key}" onclick="showUnread('${key}','${acct.type}','${acct.domain}')"
|
var unread = `<a id="unread_${key}" onclick="showUnread('${key}','${acct.type}','${acct.domain}')"
|
||||||
class="setting nex" title="${lang.lang_layout_unread}">
|
class="setting nex waves-effect" title="${lang.lang_layout_unread}">
|
||||||
<i class="material-icons waves-effect nex">more</i>
|
<i class="material-icons waves-effect nex">more</i><br />${lang.lang_layout_unread}
|
||||||
</a>${lang.lang_layout_unread}<br>`
|
</a>`
|
||||||
var notfDomain = acct.domain
|
var notfDomain = acct.domain
|
||||||
var notfKey = key
|
var notfKey = key
|
||||||
var if_tag = ''
|
var if_tag = ''
|
||||||
var if_tag_btn = ''
|
var if_tag_btn = ''
|
||||||
if (acct.type == 'notf') {
|
if (acct.type == 'notf') {
|
||||||
var exclude =
|
var exclude =
|
||||||
lang.lang_excluded +
|
`<div style="border: 1px solid; padding: 5px; margin-top: 5px; margin-bottom: 5px;">${lang.lang_layout_excluded}:<br>
|
||||||
`:<br>
|
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="filled-in" id="exc-reply-${key}" ${excludeCk(key, 'mention')} />
|
<input type="checkbox" class="filled-in" id="exc-reply-${key}" ${excludeCk(key, 'mention')} />
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-share exc-icons"></i>
|
${lang.lang_layout_mention}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="filled-in" id="exc-fav-${key}" ${excludeCk(key, 'favourite')} />
|
<input type="checkbox" class="filled-in" id="exc-fav-${key}" ${excludeCk(key, 'favourite')} />
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-star exc-icons"></i>
|
${lang.lang_layout_fav}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="filled-in" id="exc-bt-${key}" ${excludeCk(key, 'reblog')} />
|
<input type="checkbox" class="filled-in" id="exc-bt-${key}" ${excludeCk(key, 'reblog')} />
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-retweet exc-icons"></i>
|
${lang.lang_layout_bt}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="filled-in" id="exc-follow-${key}" ${excludeCk(key, 'follow')} />
|
<input type="checkbox" class="filled-in" id="exc-follow-${key}" ${excludeCk(key, 'follow')} />
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-users exc-icons"></i>
|
${lang.lang_status_follow}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" class="filled-in" id="exc-poll-${key}" ${excludeCk(key, 'poll')} />
|
<input type="checkbox" class="filled-in" id="exc-poll-${key}" ${excludeCk(key, 'poll')} />
|
||||||
<span>
|
<span>
|
||||||
<i class="fas fa-tasks exc-icons"></i>
|
${lang.lang_layout_poll}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label> <br />
|
||||||
<button class="btn waves-effect" style="width:60px; padding:0;" onclick="exclude('${key}')">Filter</button>`
|
<button class="btn btn-flat waves-effect notf-exclude-btn waves-light" style="width:calc(50% - 11px); padding:0;" onclick="exclude('${key}')">Filter</button>`
|
||||||
if (checkNotfFilter(key)) {
|
if (checkNotfFilter(key)) {
|
||||||
exclude =
|
exclude =
|
||||||
exclude +
|
exclude +
|
||||||
`<button class="btn red waves-effect" style="width:60px; padding:0;" onclick="resetNotfFilter('${key}')">
|
`<button class="btn btn-flat red-text waves-effect notf-exclude-btn waves-light" style="width:calc(50% - 11px); padding:0;" onclick="resetNotfFilter('${key}')">
|
||||||
Clear all
|
Clear all
|
||||||
</button>`
|
</button>`
|
||||||
}
|
}
|
||||||
exclude = exclude + '<br>'
|
exclude = exclude + '</div>'
|
||||||
notfDomain = 'dummy'
|
notfDomain = 'dummy'
|
||||||
notfKey = 'dummy'
|
notfKey = 'dummy'
|
||||||
} else if (acct.type == 'home') {
|
} else if (acct.type == 'home') {
|
||||||
var exclude = `<a onclick="ebtToggle('${key}')" class="setting nex">
|
var exclude = `<a onclick="ebtToggle('${key}')" class="setting nex waves-effect">
|
||||||
<i class="fas fa-retweet waves-effect nex" title="${lang.lang_layout_excludingbt}" style="font-size:24px"></i>
|
<i class="fas fa-retweet nex" title="${lang.lang_layout_excludingbt}" style="font-size: 24px"></i>
|
||||||
<span id="sta-bt-${key}">Off</span>
|
<span id="sta-bt-${key}">Off</span><br />
|
||||||
</a>
|
|
||||||
${lang.lang_layout_excludingbt}
|
${lang.lang_layout_excludingbt}
|
||||||
<br>`
|
</a>`
|
||||||
} else if (acct.type == 'tag') {
|
} else if (acct.type == 'tag') {
|
||||||
if (acct.data.name) {
|
if (acct.data.name) {
|
||||||
var name = acct.data.name
|
var name = acct.data.name
|
||||||
@@ -328,15 +333,13 @@ function parseColumn(target, dontclose) {
|
|||||||
var basehtml = `<div style="${css}" class="box ${animecss}" id="timeline_box_${basekey}_parentBox"></div>`
|
var basehtml = `<div style="${css}" class="box ${animecss}" id="timeline_box_${basekey}_parentBox"></div>`
|
||||||
$('#timeline-container').append(basehtml)
|
$('#timeline-container').append(basehtml)
|
||||||
}
|
}
|
||||||
var left_hold = `<a onclick="leftFoldSet('${key}')" class="setting nex">
|
var left_hold = `<a onclick="leftFoldSet('${key}')" class="setting nex waves-effect">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_leftFold}">view_agenda</i>
|
<i class="material-icons waves-effect nex" title="${lang.lang_layout_leftFold}">view_agenda</i><br />
|
||||||
</a>
|
${lang.lang_layout_leftFold}</a>`
|
||||||
${lang.lang_layout_leftFold}<br>`
|
|
||||||
} else {
|
} else {
|
||||||
var left_hold = `<a onclick="leftFoldRemove('${key}')" class="setting nex">
|
var left_hold = `<a onclick="leftFoldRemove('${key}')" class="setting nex waves-effect">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_leftUnfold}">view_column</i>
|
<i class="material-icons waves-effect nex" title="${lang.lang_layout_leftUnfold}">view_column</i><br />
|
||||||
</a>
|
${lang.lang_layout_leftUnfold}</a>`
|
||||||
${lang.lang_layout_leftUnfold}<br>`
|
|
||||||
}
|
}
|
||||||
if (key === 0) {
|
if (key === 0) {
|
||||||
left_hold = ''
|
left_hold = ''
|
||||||
@@ -355,22 +358,21 @@ function parseColumn(target, dontclose) {
|
|||||||
var addHeight = ''
|
var addHeight = ''
|
||||||
}
|
}
|
||||||
if (acct.type != 'pub' && acct.type != 'pub-media') {
|
if (acct.type != 'pub' && acct.type != 'pub-media') {
|
||||||
console.log(acct.type, key)
|
var mediaFil = `<a onclick="mediaToggle('${key}')" class="setting nex waves-effect">
|
||||||
var mediaFil = `<a onclick="mediaToggle('${key}')" class="setting nex">
|
<i class="material-icons nex" title="${lang.lang_layout_mediafil}">perm_media</i>
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_mediafil}">perm_media</i>
|
<span id="sta-media-${key}">On</span><br />
|
||||||
<span id="sta-media-${key}">On</span>
|
${lang.lang_layout_mediafil}</a>`
|
||||||
</a>${lang.lang_layout_mediafil}`
|
|
||||||
} else {
|
} else {
|
||||||
var mediaFil = `<a onclick="remoteOnly('${key}','${acct.type}')" class="setting nex">
|
var mediaFil = `<a onclick="remoteOnly('${key}','${acct.type}')" class="setting nex waves-effect">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_remoteOnly}">perm_media</i>
|
<i class="material-icons nex" title="${lang.lang_layout_remoteOnly}">perm_media</i><br />
|
||||||
<span id="sta-remote-${key}">Off</span>
|
<span id="sta-remote-${key}">Off</span>
|
||||||
</a>${lang.lang_layout_remoteOnly}`
|
${lang.lang_layout_remoteOnly}</a>`
|
||||||
}
|
}
|
||||||
var html = `
|
var html = `
|
||||||
<div class="boxIn" id="timeline_box_${key}_box" tlid="${key}" data-acct="${acct.domain}" style="${addHeight}">
|
<div class="boxIn" id="timeline_box_${key}_box" tlid="${key}" data-acct="${acct.domain}" style="${addHeight}">
|
||||||
<div class="notice-box z-depth-2" id="menu_${key}" style="${insert}">
|
<div class="notice-box z-depth-2" id="menu_${key}" style="${insert}">
|
||||||
<div class="area-notice">
|
<div class="area-notice">
|
||||||
<i class="material-icons waves-effect ${isMisRed}" id="notice_icon_${key}" ${notf_attr}
|
<i class="material-icons waves-effect ${isMisRed} notice_icon_acct_${acct.domain}" id="notice_icon_${key}" ${notf_attr}
|
||||||
style="font-size:40px; padding-top:25%;"
|
style="font-size:40px; padding-top:25%;"
|
||||||
onclick="checkStr('${acct.type}','${data}','${acct.domain}', '${key}', '${delc}','${voice}',null)"
|
onclick="checkStr('${acct.type}','${data}','${acct.domain}', '${key}', '${delc}','${voice}',null)"
|
||||||
title="${lang.lang_layout_gotop}" aria-hidden="true">
|
title="${lang.lang_layout_gotop}" aria-hidden="true">
|
||||||
@@ -413,33 +415,30 @@ function parseColumn(target, dontclose) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column-hide notf-indv-box z-depth-4" id="notf-box_${notfKey}">
|
<div class="column-hide notf-indv-box z-depth-4" id="notf-box_${notfKey}">
|
||||||
<div id="announce_${notfKey}" style="border: 1px solid"></div>
|
<div class="announce_${acct.domain}" style="border: 1px solid"></div>
|
||||||
<div id="notifications_${notfKey}" data-notf="${notfDomain}" data-type="notf" class="notf-timeline">
|
<div id="notifications_${notfKey}" data-notf="${notfDomain}" data-type="notf" class="notf-timeline">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column-hide notf-indv-box" id="util-box_${key}" style="padding:5px;">
|
<div class="column-hide notf-indv-box" id="util-box_${key}" style="padding:5px;">
|
||||||
|
${exclude}
|
||||||
${unread}
|
${unread}
|
||||||
${exclude}${left_hold}
|
${left_hold}
|
||||||
${mediaFil}<br>
|
${mediaFil}
|
||||||
<a onclick="cardToggle('${key}')" class="setting nex">
|
<a onclick="cardToggle('${key}')" class="setting nex waves-effect">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_linkanades}">link</i>
|
<i class="material-icons nex" title="${lang.lang_layout_linkanades}">link</i>
|
||||||
<span id="sta-card-${key}">On</span>
|
<span id="sta-card-${key}">On</span><br />
|
||||||
</a>
|
|
||||||
${lang.lang_layout_linkana}
|
${lang.lang_layout_linkana}
|
||||||
<br>
|
|
||||||
<a onclick="voiceToggle('${key}')" class="setting nex">
|
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_tts}">hearing</i>
|
|
||||||
<span id="sta-voice-${key}">On</span>
|
|
||||||
</a>
|
</a>
|
||||||
|
<a onclick="voiceToggle('${key}')" class="setting nex waves-effect">
|
||||||
|
<i class="material-icons nex" title="${lang.lang_layout_tts}">hearing</i>
|
||||||
|
<span id="sta-voice-${key}">On</span><br />
|
||||||
${lang.lang_layout_tts}
|
${lang.lang_layout_tts}
|
||||||
TL<br>
|
TL</a>
|
||||||
<a onclick="columnReload('${key}','${acct.type}')" class="setting nex ${if_misskey_hide}">
|
<a onclick="columnReload('${key}','${acct.type}')" class="setting nex ${if_misskey_hide} waves-effect">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_reconnect}">refresh</i>
|
<i class="material-icons nex" title="${lang.lang_layout_reconnect}">refresh</i>
|
||||||
</a>
|
<br />
|
||||||
<span>
|
|
||||||
${lang.lang_layout_reconnect}
|
${lang.lang_layout_reconnect}
|
||||||
</span>
|
</a><br />
|
||||||
<br>
|
|
||||||
${lang.lang_layout_headercolor}
|
${lang.lang_layout_headercolor}
|
||||||
<br>
|
<br>
|
||||||
<div id="picker_${key}" class="color-picker"></div>
|
<div id="picker_${key}" class="color-picker"></div>
|
||||||
@@ -786,7 +785,8 @@ function webviewParse(url, key, insert, icnsert, css) {
|
|||||||
<i class="fab fa-twitter waves-effect" id="notice_icon_${key}" style="font-size:40px; padding-top:25%;"></i>
|
<i class="fab fa-twitter waves-effect" id="notice_icon_${key}" style="font-size:40px; padding-top:25%;"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="area-notice_name tl-title">WebView('${url}')</div>
|
<div class="area-notice_name tl-title">WebView('${url}')</div>
|
||||||
<div class="area-sta"></div>
|
<div class="area-sta">
|
||||||
|
</div>
|
||||||
<div class="area-a2">
|
<div class="area-a2">
|
||||||
<a onclick="removeColumn('${key}')" class="setting nex">
|
<a onclick="removeColumn('${key}')" class="setting nex">
|
||||||
<i class="material-icons waves-effect nex" title="${lang.lang_layout_delthis}" ${icnsert}>cancel</i>
|
<i class="material-icons waves-effect nex" title="${lang.lang_layout_delthis}" ${icnsert}>cancel</i>
|
||||||
|
@@ -1,24 +1,24 @@
|
|||||||
function menu() {
|
function menu() {
|
||||||
localStorage.setItem("menu-done", true);
|
localStorage.setItem("menu-done", true)
|
||||||
$("#fukidashi").addClass("hide")
|
$("#fukidashi").addClass("hide")
|
||||||
if (!$("#menu").hasClass("appear")) {
|
if (!$("#menu").hasClass("appear")) {
|
||||||
$("#menu").addClass("appear")
|
$("#menu").addClass("appear")
|
||||||
var left = localStorage.getItem("menu-left");
|
var left = localStorage.getItem("menu-left")
|
||||||
if (left > $('body').width() - $('#menu').width()) {
|
if (left > $('body').width() - $('#menu').width()) {
|
||||||
left = $('body').width() - $('#menu').width();
|
left = $('body').width() - $('#menu').width()
|
||||||
} else if (left < 0) {
|
} else if (left < 0) {
|
||||||
left = 0;
|
left = 0
|
||||||
}
|
}
|
||||||
var top = localStorage.getItem("menu-top");
|
var top = localStorage.getItem("menu-top")
|
||||||
if (top > $('body').height() - $('#menu').height()) {
|
if (top > $('body').height() - $('#menu').height()) {
|
||||||
top = $('body').height() - $('#menu').height();
|
top = $('body').height() - $('#menu').height()
|
||||||
} else if (top < 0) {
|
} else if (top < 0) {
|
||||||
top = 0;
|
top = 0
|
||||||
}
|
}
|
||||||
$('#menu').css("left", left + "px")
|
$('#menu').css("left", left + "px")
|
||||||
$('#menu').css("top", top + "px")
|
$('#menu').css("top", top + "px")
|
||||||
var height = localStorage.getItem("menu-height");
|
var height = localStorage.getItem("menu-height")
|
||||||
var width = localStorage.getItem("menu-width");
|
var width = localStorage.getItem("menu-width")
|
||||||
if(height){
|
if(height){
|
||||||
$('#menu').css("height", height + "px")
|
$('#menu').css("height", height + "px")
|
||||||
}else{
|
}else{
|
||||||
@@ -27,13 +27,13 @@ function menu() {
|
|||||||
if(width){
|
if(width){
|
||||||
$('#menu').css("width", width + "px")
|
$('#menu').css("width", width + "px")
|
||||||
}
|
}
|
||||||
$('#menu').fadeIn();
|
$('#menu').fadeIn()
|
||||||
$("#menu-bar").html("TheDesk " + localStorage.getItem("ver"));
|
$("#menu-bar").html("TheDesk " + localStorage.getItem("ver"))
|
||||||
$(".menu-content").addClass("hide");
|
$(".menu-content").addClass("hide")
|
||||||
$("#add-box").removeClass("hide");
|
$("#add-box").removeClass("hide")
|
||||||
$("#left-menu div").removeClass("active");
|
$("#left-menu div").removeClass("active")
|
||||||
$("#addColumnMenu").addClass("active");
|
$("#addColumnMenu").addClass("active")
|
||||||
$("#addColumnMenu").click();
|
$("#addColumnMenu").click()
|
||||||
} else {
|
} else {
|
||||||
$('#menu').fadeOut()
|
$('#menu').fadeOut()
|
||||||
$("#menu").removeClass("appear")
|
$("#menu").removeClass("appear")
|
||||||
@@ -44,35 +44,35 @@ $(function () {
|
|||||||
$("#menu").draggable({
|
$("#menu").draggable({
|
||||||
handle: "#menu-bar",
|
handle: "#menu-bar",
|
||||||
stop: function () {
|
stop: function () {
|
||||||
var left = $('#menu').offset().left;
|
var left = $('#menu').offset().left
|
||||||
if (left > $('body').width() - $('#menu').width()) {
|
if (left > $('body').width() - $('#menu').width()) {
|
||||||
left = $('body').width() - $('#menu').width();
|
left = $('body').width() - $('#menu').width()
|
||||||
} else if (left < 0) {
|
} else if (left < 0) {
|
||||||
left = 0;
|
left = 0
|
||||||
}
|
}
|
||||||
var top = $('#menu').offset().top;
|
var top = $('#menu').offset().top
|
||||||
if (top > $('body').height() - $('#menu').height()) {
|
if (top > $('body').height() - $('#menu').height()) {
|
||||||
top = $('body').height() - $('#menu').height();
|
top = $('body').height() - $('#menu').height()
|
||||||
} else if (top < 0) {
|
} else if (top < 0) {
|
||||||
top = 0;
|
top = 0
|
||||||
}
|
}
|
||||||
localStorage.setItem("menu-left", left);
|
localStorage.setItem("menu-left", left)
|
||||||
localStorage.setItem("menu-top", top);
|
localStorage.setItem("menu-top", top)
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
$("#menu").resizable({
|
$("#menu").resizable({
|
||||||
minHeight: 150,
|
minHeight: 150,
|
||||||
minWidth: 200,
|
minWidth: 200,
|
||||||
stop: function (event, ui) {
|
stop: function (event, ui) {
|
||||||
localStorage.setItem("menu-height", ui.size.height);
|
localStorage.setItem("menu-height", ui.size.height)
|
||||||
localStorage.setItem("menu-width", ui.size.width);
|
localStorage.setItem("menu-width", ui.size.width)
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
function help() {
|
function help() {
|
||||||
$("#left-menu a").removeClass("active");
|
$("#left-menu a").removeClass("active")
|
||||||
$("#helpMenu").addClass("active");
|
$("#helpMenu").addClass("active")
|
||||||
$(".menu-content").addClass("hide");
|
$(".menu-content").addClass("hide")
|
||||||
$("#help-box").removeClass("hide");
|
$("#help-box").removeClass("hide")
|
||||||
postMessage(["sendSinmpleIpc", "getLogs"], "*")
|
postMessage(["sendSinmpleIpc", "getLogs"], "*")
|
||||||
}
|
}
|
@@ -1,32 +1,32 @@
|
|||||||
function pip(id) {
|
function pip(id) {
|
||||||
$("#pip-content").html($("[toot-id=" + id + "] .additional").html());
|
$("#pip-content").html($("[toot-id=" + id + "] .additional").html())
|
||||||
$("#pip").removeClass("hide");
|
$("#pip").removeClass("hide")
|
||||||
}
|
}
|
||||||
function endPip() {
|
function endPip() {
|
||||||
$("#pip-content").html("");
|
$("#pip-content").html("")
|
||||||
$("#pip").addClass("hide");
|
$("#pip").addClass("hide")
|
||||||
}
|
}
|
||||||
|
|
||||||
function pipHoriz() {
|
function pipHoriz() {
|
||||||
if ($("#pip").hasClass("pip-left")) {
|
if ($("#pip").hasClass("pip-left")) {
|
||||||
$("#pip").removeClass("pip-left");
|
$("#pip").removeClass("pip-left")
|
||||||
$(".pip-horiz").text("chevron_left");
|
$(".pip-horiz").text("chevron_left")
|
||||||
$("#pip").addClass("pip-right");
|
$("#pip").addClass("pip-right")
|
||||||
} else {
|
} else {
|
||||||
$("#pip").addClass("pip-left");
|
$("#pip").addClass("pip-left")
|
||||||
$("#pip").removeClass("pip-right");
|
$("#pip").removeClass("pip-right")
|
||||||
$(".pip-horiz").text("chevron_right");
|
$(".pip-horiz").text("chevron_right")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function pipVert() {
|
function pipVert() {
|
||||||
if ($("#pip").hasClass("pip-top")) {
|
if ($("#pip").hasClass("pip-top")) {
|
||||||
$("#pip").removeClass("pip-top");
|
$("#pip").removeClass("pip-top")
|
||||||
$("#pip").addClass("pip-bottom");
|
$("#pip").addClass("pip-bottom")
|
||||||
$(".pip-vert").text("expand_less");
|
$(".pip-vert").text("expand_less")
|
||||||
} else {
|
} else {
|
||||||
$("#pip").addClass("pip-top");
|
$("#pip").addClass("pip-top")
|
||||||
$("#pip").removeClass("pip-bottom");
|
$("#pip").removeClass("pip-bottom")
|
||||||
$(".pip-vert").text("expand_more");
|
$(".pip-vert").text("expand_more")
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -126,11 +126,6 @@ function initPostbox() {
|
|||||||
localStorage.removeItem('nohide')
|
localStorage.removeItem('nohide')
|
||||||
srcBox('close')
|
srcBox('close')
|
||||||
})
|
})
|
||||||
$('#contextWrap').click(function (e) {
|
|
||||||
$('#contextWrap').addClass('hide')
|
|
||||||
$('.contextMenu').addClass('hide')
|
|
||||||
$('.act-icon').text('expand_more')
|
|
||||||
})
|
|
||||||
$('#textarea,#cw-text').focusout(function (e) {
|
$('#textarea,#cw-text').focusout(function (e) {
|
||||||
localStorage.setItem('nohide', true)
|
localStorage.setItem('nohide', true)
|
||||||
var countup = function () {
|
var countup = function () {
|
||||||
|
@@ -1,38 +1,38 @@
|
|||||||
var r = document.getElementById("radio");
|
var r = document.getElementById("radio")
|
||||||
function Rtoggle() {
|
function Rtoggle() {
|
||||||
if ($("#radio").hasClass("play")) {
|
if ($("#radio").hasClass("play")) {
|
||||||
Rstop();
|
Rstop()
|
||||||
} else {
|
} else {
|
||||||
$("#radio-view").toggleClass("hide");
|
$("#radio-view").toggleClass("hide")
|
||||||
$("#radio-view").toggleClass("show");
|
$("#radio-view").toggleClass("show")
|
||||||
$("#radio-input").addClass("hide");
|
$("#radio-input").addClass("hide")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function Rplay(url, name) {
|
function Rplay(url, name) {
|
||||||
$("#radio").attr('src', url);
|
$("#radio").attr('src', url)
|
||||||
r.load();
|
r.load()
|
||||||
r.play();
|
r.play()
|
||||||
$("#radio").addClass("play");
|
$("#radio").addClass("play")
|
||||||
$("#radio-btn").addClass("teal-text");
|
$("#radio-btn").addClass("teal-text")
|
||||||
$("#radio-sta").html("<br>Now Playing:" + name);
|
$("#radio-sta").html("<br>Now Playing:" + name)
|
||||||
}
|
}
|
||||||
function Rstop() {
|
function Rstop() {
|
||||||
$("#radio").attr("src", "");
|
$("#radio").attr("src", "")
|
||||||
r.pause();
|
r.pause()
|
||||||
$("#radio").removeClass("play");
|
$("#radio").removeClass("play")
|
||||||
$("#radio-btn").removeClass("teal-text");
|
$("#radio-btn").removeClass("teal-text")
|
||||||
$("#radio-sta").html("");
|
$("#radio-sta").html("")
|
||||||
}
|
}
|
||||||
function Ryourself() {
|
function Ryourself() {
|
||||||
$("#radio-input").removeClass("hide");
|
$("#radio-input").removeClass("hide")
|
||||||
$("#radio-view").addClass("hide");
|
$("#radio-view").addClass("hide")
|
||||||
}
|
}
|
||||||
function Rselect() {
|
function Rselect() {
|
||||||
$("#radio-input").addClass("hide");
|
$("#radio-input").addClass("hide")
|
||||||
$("#radio-view").removeClass("hide");
|
$("#radio-view").removeClass("hide")
|
||||||
}
|
}
|
||||||
function Rinput() {
|
function Rinput() {
|
||||||
var url = $("#radio-url").val();
|
var url = $("#radio-url").val()
|
||||||
Rplay(url, url)
|
Rplay(url, url)
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
@@ -80,22 +80,6 @@ var postView = new Vue({
|
|||||||
})
|
})
|
||||||
//設定ボタン押した。
|
//設定ボタン押した。
|
||||||
function settings() {
|
function settings() {
|
||||||
var cd = $('[name=theme]:checked').val()
|
|
||||||
var ct = $('[data-ct=' + cd + ']').html()
|
|
||||||
if (cd == 'custom' && !$('#custom-sel-sel').val()) {
|
|
||||||
var theme = localStorage.getItem('theme')
|
|
||||||
if (!theme) {
|
|
||||||
var theme = 'white'
|
|
||||||
}
|
|
||||||
$('#' + theme).prop('checked', true)
|
|
||||||
} else {
|
|
||||||
if (cd != localStorage.getItem('theme')) {
|
|
||||||
M.toast({ html: lang.lang_setting_theme.replace('{{set}}', ct), displayLength: 3000 })
|
|
||||||
}
|
|
||||||
//テーマはこの場で設定
|
|
||||||
themes(cd)
|
|
||||||
localStorage.setItem('theme', cd)
|
|
||||||
}
|
|
||||||
var fontd = $('#font').val()
|
var fontd = $('#font').val()
|
||||||
if (fontd) {
|
if (fontd) {
|
||||||
if (fontd != localStorage.getItem('font')) {
|
if (fontd != localStorage.getItem('font')) {
|
||||||
@@ -167,10 +151,10 @@ function load() {
|
|||||||
var font = ''
|
var font = ''
|
||||||
}
|
}
|
||||||
$('#font').val(font)
|
$('#font').val(font)
|
||||||
$('#c1-file').text(localStorage.getItem('custom1'))
|
$('#c1-file').text(localStorage.getItem('custom1') != 'null' ? localStorage.getItem('custom1') : '')
|
||||||
$('#c2-file').text(localStorage.getItem('custom2'))
|
$('#c2-file').text(localStorage.getItem('custom2') != 'null' ? localStorage.getItem('custom2') : '')
|
||||||
$('#c3-file').text(localStorage.getItem('custom3'))
|
$('#c3-file').text(localStorage.getItem('custom3') != 'null' ? localStorage.getItem('custom3') : '')
|
||||||
$('#c4-file').text(localStorage.getItem('custom4'))
|
$('#c4-file').text(localStorage.getItem('custom4') != 'null' ? localStorage.getItem('custom4') : '')
|
||||||
var cvol = localStorage.getItem('customVol')
|
var cvol = localStorage.getItem('customVol')
|
||||||
if (cvol) {
|
if (cvol) {
|
||||||
$('#soundvol').val(cvol * 100)
|
$('#soundvol').val(cvol * 100)
|
||||||
@@ -508,35 +492,39 @@ function fontList(arg) {
|
|||||||
function insertFont(name) {
|
function insertFont(name) {
|
||||||
$('#font').val(name)
|
$('#font').val(name)
|
||||||
}
|
}
|
||||||
$('.color-picker').each(function (i, elem) {
|
function copyColor(from, to) {
|
||||||
pickerDefine(i, 'fff')
|
let props = [
|
||||||
})
|
'background', 'subcolor', 'text', 'accent',
|
||||||
function pickerDefine(i, color) {
|
'modal', 'modalFooter', 'third', 'forth',
|
||||||
var pickr = new Pickr({
|
'bottom', 'emphasized', 'postbox', 'active',
|
||||||
el: '#color-picker' + i,
|
'selected', 'selectedWithShared'
|
||||||
default: color,
|
]
|
||||||
showAlways: true,
|
let i = 0
|
||||||
appendToBody: true,
|
let color
|
||||||
closeWithKey: 'Escape',
|
for (tag of props) {
|
||||||
comparison: false,
|
if(tag == from) {
|
||||||
components: {
|
let used = $(`#use-color_${i}`).prop('checked')
|
||||||
preview: true, // Left side color comparison
|
if(!used) {
|
||||||
opacity: false, // Opacity slider
|
Swal.fire({
|
||||||
hue: true, // Hue slider
|
type: 'error',
|
||||||
interaction: {
|
title: 'Not checked',
|
||||||
rgba: false, // rgba option (red green blue and alpha)
|
|
||||||
input: true, // input / output element
|
|
||||||
},
|
|
||||||
},
|
|
||||||
strings: {
|
|
||||||
save: 'Save', // Default for save button
|
|
||||||
clear: 'Clear', // Default for clear button
|
|
||||||
},
|
|
||||||
})
|
|
||||||
pickr.on('change', (...args) => {
|
|
||||||
var rgb = 'rgb(' + args[0].toRGBA()[0] + ',' + args[0].toRGBA()[1] + ',' + args[0].toRGBA()[2] + ')'
|
|
||||||
$('#color-picker' + i + '_value').val(rgb)
|
|
||||||
})
|
})
|
||||||
|
break
|
||||||
|
}
|
||||||
|
color = $(`#color-picker${i}_value`).val()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
if(!color) return false
|
||||||
|
for (tag of props) {
|
||||||
|
if(tag == to) {
|
||||||
|
$(`#color-picker${i}_value`).val(color)
|
||||||
|
$(`#use-color_${i}`).prop('checked', true)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
i++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function customComp() {
|
function customComp() {
|
||||||
var nameC = $('#custom_name').val()
|
var nameC = $('#custom_name').val()
|
||||||
@@ -544,59 +532,32 @@ function customComp() {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var descC = $('#custom_desc').val()
|
var descC = $('#custom_desc').val()
|
||||||
var primaryC = $('#color-picker0_value').val()
|
var bgC = $('#color-picker0_value').val()
|
||||||
if (!primaryC) {
|
var subcolorC = $('#color-picker2_value').val()
|
||||||
primaryC = 'rgb(255,255,255)'
|
var textC = $('#color-picker1_value').val()
|
||||||
}
|
|
||||||
var secondaryC = $('#color-picker1_value').val()
|
|
||||||
if (!secondaryC) {
|
|
||||||
secondaryC = 'rgb(255,255,255)'
|
|
||||||
}
|
|
||||||
var textC = $('#color-picker2_value').val()
|
|
||||||
if (!textC) {
|
|
||||||
textC = 'rgb(255,255,255)'
|
|
||||||
}
|
|
||||||
var multi = localStorage.getItem('multi')
|
|
||||||
if ($('#pickers').hasClass('advanceTheme')) {
|
|
||||||
var accentC = $('#color-picker3_value').val()
|
var accentC = $('#color-picker3_value').val()
|
||||||
if (!accentC) {
|
var multi = localStorage.getItem('multi')
|
||||||
accentC = null
|
let advanced = [
|
||||||
}
|
'modal', 'modalFooter', 'third', 'forth',
|
||||||
var activeC = $('#color-picker4_value').val()
|
'bottom', 'emphasized', 'postbox', 'active',
|
||||||
if (!activeC) {
|
'selected', 'selectedWithShared'
|
||||||
activeC = null
|
]
|
||||||
}
|
|
||||||
var modalC = $('#color-picker5_value').val()
|
|
||||||
if (!modalC) {
|
|
||||||
modalC = null
|
|
||||||
}
|
|
||||||
var bottomC = $('#color-picker6_value').val()
|
|
||||||
if (!bottomC) {
|
|
||||||
bottomC = null
|
|
||||||
}
|
|
||||||
var postboxC = $('#color-picker7_value').val()
|
|
||||||
if (!postboxC) {
|
|
||||||
postboxC = null
|
|
||||||
}
|
|
||||||
var subcolorC = $('#color-picker8_value').val()
|
|
||||||
if (!subcolorC) {
|
|
||||||
subcolorC = null
|
|
||||||
}
|
|
||||||
var advanceTheme = {
|
|
||||||
TheDeskAccent: accentC,
|
|
||||||
TheDeskActive: activeC,
|
|
||||||
TheDeskModal: modalC,
|
|
||||||
TheDeskBottom: bottomC,
|
|
||||||
TheDeskPostbox: postboxC,
|
|
||||||
TheDeskSubcolor: subcolorC,
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
var advanceTheme = {}
|
var advanceTheme = {}
|
||||||
|
let i = 4
|
||||||
|
for (tag of advanced) {
|
||||||
|
let used = $(`#use-color_${i}`).prop('checked')
|
||||||
|
if (used) {
|
||||||
|
advanceTheme[tag] = $(`#color-picker${i}_value`).val()
|
||||||
|
}
|
||||||
|
i++
|
||||||
}
|
}
|
||||||
|
|
||||||
var my = JSON.parse(multi)[0].name
|
var my = JSON.parse(multi)[0].name
|
||||||
var id = $('#custom-edit-sel').val()
|
var id = $('#custom-edit-sel').val()
|
||||||
if (id == 'add_new') {
|
const defaults = [
|
||||||
|
'black','blue','brown','green','indigo','polar','snow','white'
|
||||||
|
]
|
||||||
|
if (id == 'add_new' || defaults.includes(id)) {
|
||||||
id = makeCID()
|
id = makeCID()
|
||||||
}
|
}
|
||||||
localStorage.setItem('customtheme-id', id)
|
localStorage.setItem('customtheme-id', id)
|
||||||
@@ -605,26 +566,48 @@ function customComp() {
|
|||||||
author: my,
|
author: my,
|
||||||
desc: descC,
|
desc: descC,
|
||||||
base: $('[name=direction]:checked').val(),
|
base: $('[name=direction]:checked').val(),
|
||||||
vars: {
|
primary: {
|
||||||
primary: primaryC,
|
background: bgC,
|
||||||
secondary: secondaryC,
|
subcolor: subcolorC,
|
||||||
text: textC,
|
text: textC,
|
||||||
|
accent: accentC
|
||||||
},
|
},
|
||||||
props: advanceTheme,
|
advanced: advanceTheme,
|
||||||
id: id,
|
id: id,
|
||||||
|
version: '2'
|
||||||
}
|
}
|
||||||
$('#custom_json').val(JSON.stringify(json))
|
$('#custom_json').val(JSON.stringify(json))
|
||||||
themes('custom')
|
let timerInterval
|
||||||
$('#custom').prop('checked', true)
|
Swal.fire({
|
||||||
$('#custom_name').val('')
|
title: 'Saving...',
|
||||||
$('#custom_desc').val('')
|
html: '',
|
||||||
$('#dark').prop('checked', true)
|
timer: 1000,
|
||||||
$('#custom_json').val('')
|
timerProgressBar: true,
|
||||||
for (var i = 0; i <= 8; i++) {
|
onBeforeOpen: () => {
|
||||||
$('#color-picker' + i + '-wrap').html('<div class="color-picker" id="color-picker' + i + '"></div>')
|
Swal.showLoading()
|
||||||
$('#color-picker' + i + '_value').val('')
|
},
|
||||||
pickerDefine(i, 'fff')
|
onClose: () => {
|
||||||
|
clearInterval(timerInterval)
|
||||||
}
|
}
|
||||||
|
}).then((result) => {
|
||||||
|
themes()
|
||||||
|
ctLoad()
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Refreshing...',
|
||||||
|
html: '',
|
||||||
|
timer: 1000,
|
||||||
|
timerProgressBar: true,
|
||||||
|
onBeforeOpen: () => {
|
||||||
|
Swal.showLoading()
|
||||||
|
},
|
||||||
|
onClose: () => {
|
||||||
|
clearInterval(timerInterval)
|
||||||
|
}
|
||||||
|
}).then((result) => {
|
||||||
|
$('#custom-edit-sel').val(id)
|
||||||
|
$('select').formSelect()
|
||||||
|
})
|
||||||
|
})
|
||||||
postMessage(['themeJsonCreate', JSON.stringify(json)], '*')
|
postMessage(['themeJsonCreate', JSON.stringify(json)], '*')
|
||||||
}
|
}
|
||||||
function deleteIt() {
|
function deleteIt() {
|
||||||
@@ -633,34 +616,34 @@ function deleteIt() {
|
|||||||
$('#custom_desc').val('')
|
$('#custom_desc').val('')
|
||||||
$('#dark').prop('checked', true)
|
$('#dark').prop('checked', true)
|
||||||
$('#custom_json').val('')
|
$('#custom_json').val('')
|
||||||
for (var i = 0; i <= 8; i++) {
|
for (var i = 0; i <= 13; i++) {
|
||||||
$('#color-picker' + i + '-wrap').html('<div class="color-picker" id="color-picker' + i + '"></div>')
|
if (i >= 4) $(`#use-color_${i}`).prop('checked', false)
|
||||||
$('#color-picker' + i + '_value').val('')
|
$('#color-picker' + i + '_value').val('')
|
||||||
pickerDefine(i, 'fff')
|
|
||||||
}
|
}
|
||||||
postMessage(['themeJsonDelete', id], '*')
|
postMessage(['themeJsonDelete', id + '.thedesktheme'], '*')
|
||||||
}
|
}
|
||||||
function ctLoad() {
|
function ctLoad() {
|
||||||
postMessage(['sendSinmpleIpc', 'theme-json-list'], '*')
|
postMessage(['sendSinmpleIpc', 'theme-json-list'], '*')
|
||||||
}
|
}
|
||||||
function ctLoadCore(args) {
|
function ctLoadCore(args) {
|
||||||
var templete = ''
|
var template = ''
|
||||||
|
var editTemplate = ''
|
||||||
Object.keys(args).forEach(function (key) {
|
Object.keys(args).forEach(function (key) {
|
||||||
var theme = args[key]
|
var theme = args[key]
|
||||||
var themeid = theme.id
|
var themeid = theme.id
|
||||||
templete = templete + '<option value="' + themeid + '">' + theme.name + '</option>'
|
template = template + `<option value="${themeid}">${theme.name}${theme.compatible ? `(${lang.lang_setting_compat})` : ''}</option>`
|
||||||
|
if (!theme.compatible) editTemplate = editTemplate + `<option value="${themeid}">${theme.name}</option>`
|
||||||
})
|
})
|
||||||
if (args[0]) {
|
$('#custom-sel-sel').html(template)
|
||||||
localStorage.setItem('customtheme-id', args[0].id)
|
editTemplate = '<option value="add_new">' + $('#edit-selector').attr('data-add') + '</option>' + editTemplate
|
||||||
}
|
$('#custom-edit-sel').html(editTemplate)
|
||||||
$('#custom-sel-sel').html(templete)
|
$('#custom-sel-sel').val(localStorage.getItem('customtheme-id'))
|
||||||
templete = '<option value="add_new">' + $('#edit-selector').attr('data-add') + '</option>' + templete
|
|
||||||
$('#custom-edit-sel').html(templete)
|
|
||||||
$('select').formSelect()
|
$('select').formSelect()
|
||||||
}
|
}
|
||||||
function customSel() {
|
function customSel() {
|
||||||
var id = $('#custom-sel-sel').val()
|
var id = $('#custom-sel-sel').val()
|
||||||
localStorage.setItem('customtheme-id', id)
|
localStorage.setItem('customtheme-id', id)
|
||||||
|
themes(id)
|
||||||
}
|
}
|
||||||
function custom() {
|
function custom() {
|
||||||
var id = $('#custom-edit-sel').val()
|
var id = $('#custom-edit-sel').val()
|
||||||
@@ -669,58 +652,47 @@ function custom() {
|
|||||||
$('#custom_desc').val('')
|
$('#custom_desc').val('')
|
||||||
$('#dark').prop('checked', true)
|
$('#dark').prop('checked', true)
|
||||||
$('#custom_json').val('')
|
$('#custom_json').val('')
|
||||||
for (var i = 0; i <= 8; i++) {
|
for (var i = 0; i <= 13; i++) {
|
||||||
$('#color-picker' + i + '-wrap').html('<div class="color-picker" id="color-picker' + i + '"></div>')
|
if (i >= 4) $(`#use-color_${i}`).prop('checked', false)
|
||||||
$('#color-picker' + i + '_value').val('')
|
$('#color-picker' + i + '_value').val('')
|
||||||
pickerDefine(i, 'fff')
|
|
||||||
}
|
}
|
||||||
$('#delTheme').addClass('disabled')
|
$('#delTheme').addClass('disabled')
|
||||||
} else {
|
} else {
|
||||||
$('#delTheme').removeClass('disabled')
|
$('#delTheme').removeClass('disabled')
|
||||||
postMessage(['themeJsonRequest', id], '*')
|
postMessage(['themeJsonRequest', id + '.thedesktheme'], '*')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function customConnect(raw) {
|
function customConnect(raw) {
|
||||||
var args = raw[0]
|
var args = raw[0]
|
||||||
$('#custom_name').val(args.name)
|
$('#custom_name').val(`${args.name} ${args.default ? 'Customed' : ''}`)
|
||||||
$('#custom_desc').val(args.desc)
|
$('#custom_desc').val(args.default ? 'TheDesk default theme with some changes by user' : args.desc)
|
||||||
$('#' + args.base).prop('checked', true)
|
$('#' + args.base).prop('checked', true)
|
||||||
//Primary
|
//Background
|
||||||
$('#color-picker0-wrap').html('<div class="color-picker" id="color-picker0"></div>')
|
$('#color-picker0_value').val(args.primary.background)
|
||||||
pickerDefine(0, rgbToHex(args.vars.primary))
|
|
||||||
$('#color-picker0_value').val(args.vars.primary)
|
|
||||||
//Secondary
|
|
||||||
$('#color-picker1-wrap').html('<div class="color-picker" id="color-picker1"></div>')
|
|
||||||
pickerDefine(1, rgbToHex(args.vars.secondary))
|
|
||||||
$('#color-picker1_value').val(args.vars.secondary)
|
|
||||||
//Text
|
//Text
|
||||||
$('#color-picker2-wrap').html('<div class="color-picker" id="color-picker2"></div>')
|
$('#color-picker1_value').val(args.primary.text)
|
||||||
$('#color-picker2_value').val(args.vars.text)
|
//Subcolor
|
||||||
pickerDefine(2, rgbToHex(args.vars.text))
|
$('#color-picker2_value').val(args.primary.subcolor)
|
||||||
//TheDesk Only
|
//Accent
|
||||||
advancedConncet(args, 'TheDeskAccent', 'secondary', 3)
|
$('#color-picker3_value').val(args.primary.accent)
|
||||||
advancedConncet(args, 'TheDeskActive', 'primary', 4)
|
let advanced = [
|
||||||
advancedConncet(args, 'TheDeskModal', 'secondary', 5)
|
'modal', 'modalFooter', 'third', 'forth',
|
||||||
advancedConncet(args, 'TheDeskBottom', 'primary', 6)
|
'bottom', 'emphasized', 'postbox', 'active',
|
||||||
advancedConncet(args, 'TheDeskPostbox', 'primary', 7)
|
'selected', 'selectedWithShared'
|
||||||
advancedConncet(args, 'TheDeskSubcolor', 'primary', 8)
|
]
|
||||||
|
let i = 4
|
||||||
|
for (tag of advanced) {
|
||||||
|
if (args.advanced[tag]) {
|
||||||
|
$(`#color-picker${i}_value`).val(args.advanced[tag])
|
||||||
|
|
||||||
|
}
|
||||||
|
$(`#use-color_${i}`).prop('checked', true)
|
||||||
|
i++
|
||||||
|
}
|
||||||
$('#custom_json').val(raw[1])
|
$('#custom_json').val(raw[1])
|
||||||
|
if(args.default) {
|
||||||
|
$('#delTheme').addClass('disabled')
|
||||||
}
|
}
|
||||||
function advancedConncet(args, tar, sub, i) {
|
|
||||||
if (args.props) {
|
|
||||||
if (args.props[tar]) {
|
|
||||||
var color = args.props[tar]
|
|
||||||
$('#pickers').addClass('advanceTheme')
|
|
||||||
$('.advanced').removeClass('hide')
|
|
||||||
} else {
|
|
||||||
var color = args.vars[sub]
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
var color = args.vars[sub]
|
|
||||||
}
|
|
||||||
$('#color-picker' + i + '-wrap').html('<div class="color-picker" id="color-picker' + i + '"></div>')
|
|
||||||
$('#color-picker' + i + '_value').val(color)
|
|
||||||
pickerDefine(i, rgbToHex(color))
|
|
||||||
}
|
}
|
||||||
function customImp() {
|
function customImp() {
|
||||||
var json = $('#custom_import').val()
|
var json = $('#custom_import').val()
|
||||||
@@ -754,7 +726,7 @@ function customSound(key) {
|
|||||||
}
|
}
|
||||||
function customSoundSave(key, file) {
|
function customSoundSave(key, file) {
|
||||||
localStorage.setItem('custom' + key, file)
|
localStorage.setItem('custom' + key, file)
|
||||||
$('#c1-file').text(file)
|
$(`#c${key}-file`).text(file)
|
||||||
}
|
}
|
||||||
window.onload = function () {
|
window.onload = function () {
|
||||||
//最初に読む
|
//最初に読む
|
||||||
@@ -832,3 +804,5 @@ function lastFmSet() {
|
|||||||
}
|
}
|
||||||
M.toast({ html: 'Complete: last.fm', displayLength: 3000 })
|
M.toast({ html: 'Complete: last.fm', displayLength: 3000 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stopVideo() { return false }
|
@@ -1,44 +1,44 @@
|
|||||||
//ソートデータ読み込み
|
//ソートデータ読み込み
|
||||||
function sortLoad () {
|
function sortLoad () {
|
||||||
$("#sort").html("");
|
$("#sort").html("")
|
||||||
var col = localStorage.getItem("column");
|
var col = localStorage.getItem("column")
|
||||||
if (col) {
|
if (col) {
|
||||||
var obj = JSON.parse(col);
|
var obj = JSON.parse(col)
|
||||||
}
|
}
|
||||||
Object.keys(obj).forEach(function (key) {
|
Object.keys(obj).forEach(function (key) {
|
||||||
var acct = obj[key];
|
var acct = obj[key]
|
||||||
var flag = "false";
|
var flag = "false"
|
||||||
if (localStorage.getItem("card_" + key) == "true") {
|
if (localStorage.getItem("card_" + key) == "true") {
|
||||||
flag = "true"
|
flag = "true"
|
||||||
}
|
}
|
||||||
var insert = "";
|
var insert = ""
|
||||||
|
|
||||||
if (acct.background) {
|
if (acct.background) {
|
||||||
if (acct.text == "def") {
|
if (acct.text == "def") {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (acct.text == "black") {
|
if (acct.text == "black") {
|
||||||
var txhex = "000000";
|
var txhex = "000000"
|
||||||
} else if (acct.text == "white") {
|
} else if (acct.text == "white") {
|
||||||
var txhex = "ffffff";
|
var txhex = "ffffff"
|
||||||
}
|
}
|
||||||
insert = ' style="background-color:#' + acct.background + '; color: #' + txhex + '" ';
|
insert = ' style="background-color:#' + acct.background + '; color: #' + txhex + '" '
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var user = localStorage.getItem("user_" + acct.domain);
|
var user = localStorage.getItem("user_" + acct.domain)
|
||||||
var domain = localStorage.getItem("domain_" + acct.domain);
|
var domain = localStorage.getItem("domain_" + acct.domain)
|
||||||
if (!user || !domain) {
|
if (!user || !domain) {
|
||||||
var acctdata = "";
|
var acctdata = ""
|
||||||
} else {
|
} else {
|
||||||
var acctdata = user + "@" + domain;
|
var acctdata = user + "@" + domain
|
||||||
}
|
}
|
||||||
|
|
||||||
var html = '<li class="drag-content" data-id="' + key + '" data-flag="' + flag + '"' + insert + '><div class="sorticon"><i class="material-icons">' + icon(acct.type) + '</i></div><div class="sorttitle">' + cap(acct.type, acct.data, acct.domain) + '</div><div class="sortaction"><a onclick="goColumn(' + key +
|
var html = '<li class="drag-content" data-id="' + key + '" data-flag="' + flag + '"' + insert + '><div class="sorticon"><i class="material-icons">' + icon(acct.type) + '</i></div><div class="sorttitle">' + cap(acct.type, acct.data, acct.domain) + '</div><div class="sortaction"><a onclick="goColumn(' + key +
|
||||||
')" class="setting nex"><i class="material-icons waves-effect nex" title="' + lang.lang_sort_gothis + '">forward</i></a> <a onclick="removeColumn(' + key +
|
')" class="setting nex"><i class="material-icons waves-effect nex" title="' + lang.lang_sort_gothis + '">forward</i></a> <a onclick="removeColumn(' + key +
|
||||||
')" class="setting nex"><i class="material-icons waves-effect nex" title="このカラムを削除">cancel</i></a></div><div class="sortacct">' + acctdata + '</div></li>';
|
')" class="setting nex"><i class="material-icons waves-effect nex" title="このカラムを削除">cancel</i></a></div><div class="sortacct">' + acctdata + '</div></li>'
|
||||||
$("#sort").append(html);
|
$("#sort").append(html)
|
||||||
});
|
})
|
||||||
drag();
|
drag()
|
||||||
}
|
}
|
||||||
|
|
||||||
//TLのタイトル
|
//TLのタイトル
|
||||||
@@ -62,59 +62,59 @@ function Scap(type, data) {
|
|||||||
} else if (type == "tootsearch") {
|
} else if (type == "tootsearch") {
|
||||||
return "tootsearch(" + data + ")"
|
return "tootsearch(" + data + ")"
|
||||||
} else {
|
} else {
|
||||||
console.error("unknown timeline type: " + type);
|
console.error("unknown timeline type: " + type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//jquery-ui依存
|
//jquery-ui依存
|
||||||
function drag() {
|
function drag() {
|
||||||
$('#sort').sortable();
|
$('#sort').sortable()
|
||||||
$('#sort').disableSelection();
|
$('#sort').disableSelection()
|
||||||
}
|
}
|
||||||
|
|
||||||
//ソート指定
|
//ソート指定
|
||||||
function sort() {
|
function sort() {
|
||||||
var arr = [];
|
var arr = []
|
||||||
var flags = [];
|
var flags = []
|
||||||
$(".drag-content").each(function (i, elem) {
|
$(".drag-content").each(function (i, elem) {
|
||||||
var id = $(this).attr("data-id");
|
var id = $(this).attr("data-id")
|
||||||
var flag = $(this).attr("data-flag");
|
var flag = $(this).attr("data-flag")
|
||||||
arr.push(id)
|
arr.push(id)
|
||||||
flags.push(flag);
|
flags.push(flag)
|
||||||
});
|
})
|
||||||
var col = localStorage.getItem("column");
|
var col = localStorage.getItem("column")
|
||||||
var obj = JSON.parse(col);
|
var obj = JSON.parse(col)
|
||||||
var newobj = [];
|
var newobj = []
|
||||||
for (i = 0; i < arr.length; i++) {
|
for (i = 0; i < arr.length; i++) {
|
||||||
var data = obj[arr[i]];
|
var data = obj[arr[i]]
|
||||||
var add = {
|
var add = {
|
||||||
domain: data.domain,
|
domain: data.domain,
|
||||||
type: data.type,
|
type: data.type,
|
||||||
data: data.data,
|
data: data.data,
|
||||||
background: data.background,
|
background: data.background,
|
||||||
text: data.text
|
text: data.text
|
||||||
};
|
}
|
||||||
newobj.push(add);
|
newobj.push(add)
|
||||||
if (flags[i] == "true") {
|
if (flags[i] == "true") {
|
||||||
localStorage.setItem("card_" + i, "true");
|
localStorage.setItem("card_" + i, "true")
|
||||||
} else {
|
} else {
|
||||||
localStorage.removeItem("card_" + i);
|
localStorage.removeItem("card_" + i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var json = JSON.stringify(newobj);
|
var json = JSON.stringify(newobj)
|
||||||
localStorage.setItem("column", json);
|
localStorage.setItem("column", json)
|
||||||
$("#sort").html("");
|
$("#sort").html("")
|
||||||
M.toast({ html: "Sorted", displayLength: 3000 })
|
M.toast({ html: "Sorted", displayLength: 3000 })
|
||||||
sortLoad();
|
sortLoad()
|
||||||
parseColumn();
|
parseColumn()
|
||||||
sortMenu()
|
sortMenu()
|
||||||
}
|
}
|
||||||
//ソートボタントグル
|
//ソートボタントグル
|
||||||
function sortMenu() {
|
function sortMenu() {
|
||||||
$("#left-menu a").removeClass("active");
|
$("#left-menu a").removeClass("active")
|
||||||
$("#sortMenu").addClass("active");
|
$("#sortMenu").addClass("active")
|
||||||
$(".menu-content").addClass("hide");
|
$(".menu-content").addClass("hide")
|
||||||
$("#sort-box").removeClass("hide");
|
$("#sort-box").removeClass("hide")
|
||||||
$("#sort").html("");
|
$("#sort").html("")
|
||||||
sortLoad();
|
sortLoad()
|
||||||
}
|
}
|
@@ -188,9 +188,8 @@ function nowplaying(mode) {
|
|||||||
var item = json.recenttracks.track[0]
|
var item = json.recenttracks.track[0]
|
||||||
if (!item['@attr']) return false
|
if (!item['@attr']) return false
|
||||||
var img = item.image[3]['#text']
|
var img = item.image[3]['#text']
|
||||||
var isImg = item.streamable * 1
|
|
||||||
var flag = localStorage.getItem('artwork')
|
var flag = localStorage.getItem('artwork')
|
||||||
if (flag && isImg && img) {
|
if (flag && img != 'https://lastfm.freetls.fastly.net/i/u/300x300/2a96cbd8b46e442fc41c2b86b821562f.png' && img) {
|
||||||
postMessage(['bmpImage', [img, 0]], '*')
|
postMessage(['bmpImage', [img, 0]], '*')
|
||||||
}
|
}
|
||||||
var content = localStorage.getItem('np-temp')
|
var content = localStorage.getItem('np-temp')
|
||||||
|
@@ -1,35 +1,20 @@
|
|||||||
//テーマ適用
|
//テーマ適用
|
||||||
function themes(theme) {
|
function themes(theme) {
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
var theme = localStorage.getItem('theme')
|
var theme = localStorage.getItem('customtheme-id')
|
||||||
if (!theme) {
|
if (!theme) {
|
||||||
var theme = 'black'
|
localStorage.setItem('customtheme-id', 'black')
|
||||||
localStorage.setItem('theme', 'black')
|
theme = 'black'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
postMessage(['themeCSSRequest', theme + '.thedesktheme'], '*')
|
||||||
var el = document.getElementsByTagName('html')[0]
|
var el = document.getElementsByTagName('html')[0]
|
||||||
|
el.style.backgroundColor = 'var(--bg)'
|
||||||
el.classList.remove('indigotheme')
|
|
||||||
el.classList.remove('greentheme')
|
|
||||||
el.classList.remove('browntheme')
|
|
||||||
el.classList.remove('blacktheme')
|
|
||||||
el.classList.remove('bluetheme')
|
|
||||||
el.classList.remove('polartheme')
|
|
||||||
el.classList.remove('snowtheme')
|
|
||||||
el.classList.remove('customtheme')
|
|
||||||
el.classList.add(theme + 'theme')
|
|
||||||
var font = localStorage.getItem('font')
|
var font = localStorage.getItem('font')
|
||||||
if(font) {
|
if(font) {
|
||||||
font = font.replace(/"(.+)"/, '$1')
|
el.style.fontFamily = font
|
||||||
el.style.fontFamily = '"' + font + '"'
|
|
||||||
} else {
|
} else {
|
||||||
el.style.fontFamily = ''
|
el.style.fontFamily = ''
|
||||||
}
|
}
|
||||||
if (theme == 'custom') {
|
|
||||||
if (localStorage.getItem('customtheme-id')) {
|
|
||||||
postMessage(['themeCSSRequest', localStorage.getItem('customtheme-id')], '*')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
el.style.backgroundColor = 'var(--bg)'
|
|
||||||
}
|
}
|
||||||
themes()
|
themes()
|
||||||
|
@@ -63,16 +63,21 @@ function tips(mode) {
|
|||||||
function startmem() {
|
function startmem() {
|
||||||
postMessage(['sendSinmpleIpc', 'startmem'], '*')
|
postMessage(['sendSinmpleIpc', 'startmem'], '*')
|
||||||
}
|
}
|
||||||
function renderMem(use, cpu, total) {
|
function renderMem(use, cpu, total, core, uptime) {
|
||||||
|
let day = Math.floor(uptime / 60 / 60 / 24)
|
||||||
|
let hour = Math.floor(uptime / 60 /60 % 24)
|
||||||
|
if(hour < 10) hour = '0' + hour
|
||||||
|
let min = Math.floor(uptime / 60 % 60)
|
||||||
|
if(min < 10) min = '0' + min
|
||||||
|
let sec = Math.floor(uptime % 60)
|
||||||
|
if(sec < 10) sec = '0' + sec
|
||||||
|
let time = `${day ? day + ' days ' : ''}${hour ? hour + ':' : ''}${min}:${sec}`
|
||||||
|
//Intel
|
||||||
|
cpu = cpu.replace('Intel(R)', '').replace('(TM)', '').replace(' CPU', '')
|
||||||
|
//AMD
|
||||||
|
cpu = cpu.replace('AMD ', '').replace(/\s[0-9]{1,3}-Core\sProcessor/, '')
|
||||||
$('#tips-text').html(
|
$('#tips-text').html(
|
||||||
escapeHTML(cpu) +
|
`${escapeHTML(cpu)} x ${core}<br />RAM: ${Math.floor(use / 1024 / 1024 / 102.4) / 10}/${Math.floor(total / 1024 / 1024 / 102.4) / 10}GB(${Math.floor((use / total) * 100)}%) UP:${time}`
|
||||||
'<br>Memory:' +
|
|
||||||
Math.floor(use / 1024 / 1024 / 102.4) / 10 +
|
|
||||||
'/' +
|
|
||||||
Math.floor(total / 1024 / 1024 / 102.4) / 10 +
|
|
||||||
'GB(' +
|
|
||||||
Math.floor((use / total) * 100) +
|
|
||||||
'%)'
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
//トレンドタグ
|
//トレンドタグ
|
||||||
@@ -196,12 +201,10 @@ function spotifytips() {
|
|||||||
<i class="material-icons pointer" onclick="nowplaying('spotify');show()" style="font-size:20px">send</i>
|
<i class="material-icons pointer" onclick="nowplaying('spotify');show()" style="font-size:20px">send</i>
|
||||||
</div>
|
</div>
|
||||||
<div id="spot-cover">
|
<div id="spot-cover">
|
||||||
<img src="${img}" id="spot-img">
|
<img src="${img}" id="spot-img" draggable="false">
|
||||||
</div>
|
</div>
|
||||||
<div id="spot-name">
|
<div id="spot-name">
|
||||||
${escapeHTML(item.name)}
|
${escapeHTML(item.name)}
|
||||||
</div>
|
|
||||||
<div id="spot-artist">
|
|
||||||
<span class="gray sml" id="spot-art">${artisttxt}</span>
|
<span class="gray sml" id="spot-art">${artisttxt}</span>
|
||||||
</div>
|
</div>
|
||||||
<div id="spot-time">
|
<div id="spot-time">
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -1,65 +1,65 @@
|
|||||||
//プロフ編集
|
//プロフ編集
|
||||||
//文字系
|
//文字系
|
||||||
function profedit() {
|
function profedit() {
|
||||||
var acct_id = $('#his-data').attr("use-acct");
|
var acct_id = $('#his-data').attr("use-acct")
|
||||||
todo("Updating...");
|
todo("Updating...")
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v1/accounts/update_credentials";
|
var start = "https://" + domain + "/api/v1/accounts/update_credentials"
|
||||||
var name = $("#his-name-val").val();
|
var name = $("#his-name-val").val()
|
||||||
var des = $("#his-des-val").val();
|
var des = $("#his-des-val").val()
|
||||||
var httpreq = new XMLHttpRequest();
|
var httpreq = new XMLHttpRequest()
|
||||||
httpreq.open('PATCH', start, true);
|
httpreq.open('PATCH', start, true)
|
||||||
httpreq.setRequestHeader('Content-Type', 'application/json');
|
httpreq.setRequestHeader('Content-Type', 'application/json')
|
||||||
httpreq.setRequestHeader('Authorization', 'Bearer ' + at);
|
httpreq.setRequestHeader('Authorization', 'Bearer ' + at)
|
||||||
httpreq.responseType = "json";
|
httpreq.responseType = "json"
|
||||||
httpreq.send(JSON.stringify({
|
httpreq.send(JSON.stringify({
|
||||||
display_name: name,
|
display_name: name,
|
||||||
note: des,
|
note: des,
|
||||||
}));
|
}))
|
||||||
httpreq.onreadystatechange = function () {
|
httpreq.onreadystatechange = function () {
|
||||||
if (httpreq.readyState === 4) {
|
if (httpreq.readyState === 4) {
|
||||||
$('#his-data').modal('close');
|
$('#his-data').modal('close')
|
||||||
todc();
|
todc()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//画像系
|
//画像系
|
||||||
function imgChange(imgfile, target) {
|
function imgChange(imgfile, target) {
|
||||||
var acct_id = $('#his-data').attr("use-acct");
|
var acct_id = $('#his-data').attr("use-acct")
|
||||||
todo("アップロードしています")
|
todo("アップロードしています")
|
||||||
if (!imgfile.files.length) {
|
if (!imgfile.files.length) {
|
||||||
console.warn("No Image to upload");
|
console.warn("No Image to upload")
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
var file = imgfile.files[0];
|
var file = imgfile.files[0]
|
||||||
var fr = new FileReader();
|
var fr = new FileReader()
|
||||||
fr.onload = function (evt) {
|
fr.onload = function (evt) {
|
||||||
var b64 = this.result;
|
var b64 = this.result
|
||||||
var blob = toBlob(b64, 'image/png');
|
var blob = toBlob(b64, 'image/png')
|
||||||
var fd = new FormData();
|
var fd = new FormData()
|
||||||
fd.append(target, blob);
|
fd.append(target, blob)
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v1/accounts/update_credentials";
|
var start = "https://" + domain + "/api/v1/accounts/update_credentials"
|
||||||
var httpreq = new XMLHttpRequest();
|
var httpreq = new XMLHttpRequest()
|
||||||
httpreq.open('PATCH', start, true);
|
httpreq.open('PATCH', start, true)
|
||||||
httpreq.upload.addEventListener("progress", progshow, false);
|
httpreq.upload.addEventListener("progress", progshow, false)
|
||||||
httpreq.setRequestHeader('Authorization', 'Bearer ' + at);
|
httpreq.setRequestHeader('Authorization', 'Bearer ' + at)
|
||||||
httpreq.responseType = "json";
|
httpreq.responseType = "json"
|
||||||
httpreq.send(fd);
|
httpreq.send(fd)
|
||||||
httpreq.onreadystatechange = function () {
|
httpreq.onreadystatechange = function () {
|
||||||
if (httpreq.readyState === 4) {
|
if (httpreq.readyState === 4) {
|
||||||
var json = httpreq.response;
|
var json = httpreq.response
|
||||||
if(this.status!==200){ setLog(start, this.status, this.response); }
|
if(this.status!==200){ setLog(start, this.status, this.response) }
|
||||||
$('#his-data').modal('close');
|
$('#his-data').modal('close')
|
||||||
todc();
|
todc()
|
||||||
localStorage.removeItem("image");
|
localStorage.removeItem("image")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#prof-change").html($("#prof-change").html());
|
$("#prof-change").html($("#prof-change").html())
|
||||||
$("#header-change").html($("#header-change").html());
|
$("#header-change").html($("#header-change").html())
|
||||||
fr.readAsDataURL(file);
|
fr.readAsDataURL(file)
|
||||||
}
|
}
|
||||||
|
@@ -1,31 +1,31 @@
|
|||||||
//ユーザーデータ表示
|
//ユーザーデータ表示
|
||||||
localStorage.removeItem("history");
|
localStorage.removeItem("history")
|
||||||
//コード受信
|
//コード受信
|
||||||
if (location.search) {
|
if (location.search) {
|
||||||
var m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/);
|
var m = location.search.match(/\?mode=([a-zA-Z-0-9]+)\&code=(.+)/)
|
||||||
var mode = m[1];
|
var mode = m[1]
|
||||||
var codex = m[2];
|
var codex = m[2]
|
||||||
if (mode == "user") {
|
if (mode == "user") {
|
||||||
udgEx(codex, "main");
|
udgEx(codex, "main")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function udgEx(user, acct_id) {
|
function udgEx(user, acct_id) {
|
||||||
if (user == "selector") {
|
if (user == "selector") {
|
||||||
user = $("#his-acct").attr("fullname");
|
user = $("#his-acct").attr("fullname")
|
||||||
}
|
}
|
||||||
if (acct_id == "selector") {
|
if (acct_id == "selector") {
|
||||||
acct_id = $("#user-acct-sel").val();
|
acct_id = $("#user-acct-sel").val()
|
||||||
}
|
}
|
||||||
if (acct_id == "main") {
|
if (acct_id == "main") {
|
||||||
acct_id = localStorage.getItem("main");
|
acct_id = localStorage.getItem("main")
|
||||||
}
|
}
|
||||||
console.log("Get user data of " + user);
|
console.log("Get user data of " + user)
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
if (localStorage.getItem("mode_" + domain) == "misskey") {
|
if (localStorage.getItem("mode_" + domain) == "misskey") {
|
||||||
return false;
|
return false
|
||||||
}
|
}
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v2/search?resolve=true&q=" + encodeURIComponent(user);
|
var start = "https://" + domain + "/api/v2/search?resolve=true&q=" + encodeURIComponent(user)
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -36,39 +36,39 @@ function udgEx(user, acct_id) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
if (json.accounts[0]) {
|
if (json.accounts[0]) {
|
||||||
var id = json.accounts[0].id;
|
var id = json.accounts[0].id
|
||||||
udg(id, acct_id);
|
udg(id, acct_id)
|
||||||
} else {
|
} else {
|
||||||
postMessage(["openUrl", user], "*");
|
postMessage(["openUrl", user], "*")
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
return true;
|
return true
|
||||||
}
|
}
|
||||||
function udg(user, acct_id) {
|
function udg(user, acct_id) {
|
||||||
reset();
|
reset()
|
||||||
if (!user) {
|
if (!user) {
|
||||||
user = localStorage.getItem("user-id_" + acct_id);
|
user = localStorage.getItem("user-id_" + acct_id)
|
||||||
}
|
}
|
||||||
todo("User Data Loading...");
|
todo("User Data Loading...")
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
if (localStorage.getItem("mode_" + domain) == "misskey") {
|
if (localStorage.getItem("mode_" + domain) == "misskey") {
|
||||||
misskeyUdg(user, acct_id);
|
misskeyUdg(user, acct_id)
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v1/accounts/" + user;
|
var start = "https://" + domain + "/api/v1/accounts/" + user
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -79,188 +79,188 @@ function udg(user, acct_id) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
//一つ前のユーザーデータ
|
//一つ前のユーザーデータ
|
||||||
if (!localStorage.getItem("history")) {
|
if (!localStorage.getItem("history")) {
|
||||||
$("#his-history-btn").prop("disabled", true);
|
$("#his-history-btn").prop("disabled", true)
|
||||||
} else {
|
} else {
|
||||||
$("#his-history-btn").prop("disabled", false);
|
$("#his-history-btn").prop("disabled", false)
|
||||||
$("#his-data").attr("history", localStorage.getItem("history"));
|
$("#his-data").attr("history", localStorage.getItem("history"))
|
||||||
}
|
}
|
||||||
//moved設定時
|
//moved設定時
|
||||||
if (json.moved) {
|
if (json.moved) {
|
||||||
M.toast({
|
M.toast({
|
||||||
html: lang.lang_showontl_movetxt + '<button class="btn-flat toast-action" onclick="udg(\'' + json.moved.id + "','" + acct_id + "')\">" + lang.lang_showontl_movebtn + "</button>",
|
html: lang.lang_showontl_movetxt + '<button class="btn-flat toast-action" onclick="udg(\'' + json.moved.id + "','" + acct_id + "')\">" + lang.lang_showontl_movebtn + "</button>",
|
||||||
displayLength: 4000
|
displayLength: 4000
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
$("#his-data").modal("open");
|
$("#his-data").modal("open")
|
||||||
$("#his-data").attr("user-id", user);
|
$("#his-data").attr("user-id", user)
|
||||||
$("#his-data").attr("use-acct", acct_id);
|
$("#his-data").attr("use-acct", acct_id)
|
||||||
if (json.username != json.acct) {
|
if (json.username != json.acct) {
|
||||||
//Remote
|
//Remote
|
||||||
$("#his-data").attr("remote", "true");
|
$("#his-data").attr("remote", "true")
|
||||||
var fullname = json.acct;
|
var fullname = json.acct
|
||||||
} else {
|
} else {
|
||||||
$("#his-data").attr("remote", "false");
|
$("#his-data").attr("remote", "false")
|
||||||
var fullname = json.acct + "@" + domain;
|
var fullname = json.acct + "@" + domain
|
||||||
}
|
}
|
||||||
utlShow(json.id, "", acct_id);
|
utlShow(json.id, "", acct_id)
|
||||||
flw(json.id, "", acct_id);
|
flw(json.id, "", acct_id)
|
||||||
fer(json.id, "", acct_id);
|
fer(json.id, "", acct_id)
|
||||||
var dis_name = escapeHTML(json.display_name);
|
var dis_name = escapeHTML(json.display_name)
|
||||||
dis_name = twemoji.parse(dis_name);
|
dis_name = twemoji.parse(dis_name)
|
||||||
|
|
||||||
var note = json.note;
|
var note = json.note
|
||||||
if (json.emojis) {
|
if (json.emojis) {
|
||||||
var actemojick = json.emojis[0];
|
var actemojick = json.emojis[0]
|
||||||
} else {
|
} else {
|
||||||
var actemojick = false;
|
var actemojick = false
|
||||||
}
|
}
|
||||||
//絵文字があれば
|
//絵文字があれば
|
||||||
if (actemojick) {
|
if (actemojick) {
|
||||||
Object.keys(json.emojis).forEach(function(key5) {
|
Object.keys(json.emojis).forEach(function(key5) {
|
||||||
var emoji = json.emojis[key5];
|
var emoji = json.emojis[key5]
|
||||||
var shortcode = emoji.shortcode;
|
var shortcode = emoji.shortcode
|
||||||
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" draggable="false">';
|
var emoji_url = '<img src="' + emoji.url + '" class="emoji-img" data-emoji="' + shortcode + '" draggable="false">'
|
||||||
var regExp = new RegExp(":" + shortcode + ":", "g");
|
var regExp = new RegExp(":" + shortcode + ":", "g")
|
||||||
dis_name = dis_name.replace(regExp, emoji_url);
|
dis_name = dis_name.replace(regExp, emoji_url)
|
||||||
note = note.replace(regExp, emoji_url);
|
note = note.replace(regExp, emoji_url)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//noteの解析
|
//noteの解析
|
||||||
//var tags = '<a onclick="tl(\'tag\',\'$1\',' + acct_id +',\'add\')" class="pointer parsed">#$1</a>';
|
//var tags = '<a onclick="tl(\'tag\',\'$1\',' + acct_id +',\'add\')" class="pointer parsed">#$1</a>';
|
||||||
//var mens = '<a onclick="udgEx(\'$1\',' + acct_id +')" class="pointer parsed">@$1</a>';
|
//var mens = '<a onclick="udgEx(\'$1\',' + acct_id +')" class="pointer parsed">@$1</a>';
|
||||||
//note=note.replace(/#(\S+)/gi, tags)
|
//note=note.replace(/#(\S+)/gi, tags)
|
||||||
//note=note.replace(/\s@([a-zA-Z_0-9@.-]+)/gi, mens)
|
//note=note.replace(/\s@([a-zA-Z_0-9@.-]+)/gi, mens)
|
||||||
$("#his-name").html(dis_name);
|
$("#his-name").html(dis_name)
|
||||||
$("#his-acct").text(json.acct);
|
$("#his-acct").text(json.acct)
|
||||||
$("#his-acct").attr("fullname", fullname);
|
$("#his-acct").attr("fullname", fullname)
|
||||||
$("#his-prof").attr("src", json.avatar);
|
$("#his-prof").attr("src", json.avatar)
|
||||||
$("#his-data").css("background-image", "url(" + json.header + ")");
|
$("#his-data").css("background-image", "url(" + json.header + ")")
|
||||||
$("#his-sta").text(json.statuses_count);
|
$("#his-sta").text(json.statuses_count)
|
||||||
$("#his-follow").text(json.following_count);
|
$("#his-follow").text(json.following_count)
|
||||||
var flerc = json.followers_count;
|
var flerc = json.followers_count
|
||||||
if (flerc < 0) {
|
if (flerc < 0) {
|
||||||
flerc = "-";
|
flerc = "-"
|
||||||
}
|
}
|
||||||
$("#his-follower").text(flerc);
|
$("#his-follower").text(flerc)
|
||||||
$("#his-since").text(crat(json.created_at));
|
$("#his-since").text(crat(json.created_at))
|
||||||
$("#his-openin").attr("data-href", json.url);
|
$("#his-openin").attr("data-href", json.url)
|
||||||
if (json.fields) {
|
if (json.fields) {
|
||||||
var table = "";
|
var table = ""
|
||||||
if (json.fields.length > 0) {
|
if (json.fields.length > 0) {
|
||||||
$("#his-des").css("max-height", "250px");
|
$("#his-des").css("max-height", "250px")
|
||||||
table = '<table id="his-field">';
|
table = '<table id="his-field">'
|
||||||
for (var i = 0; i < json.fields.length; i++) {
|
for (var i = 0; i < json.fields.length; i++) {
|
||||||
var fname = json.fields[i].name;
|
var fname = json.fields[i].name
|
||||||
var fval = json.fields[i].value;
|
var fval = json.fields[i].value
|
||||||
if (json.fields[i].verified_at) {
|
if (json.fields[i].verified_at) {
|
||||||
var when = lang.lang_showontl_verified + ":" + crat(json.fields[i].verified_at);
|
var when = lang.lang_showontl_verified + ":" + crat(json.fields[i].verified_at)
|
||||||
var color = "rgba(121,189,154,.25);";
|
var color = "rgba(121,189,154,.25);"
|
||||||
} else {
|
} else {
|
||||||
var when = "";
|
var when = ""
|
||||||
var color = "inherit";
|
var color = "inherit"
|
||||||
}
|
}
|
||||||
table = table + '<tr><td class="his-field-title">' + escapeHTML(fname) + '</td><td class="his-field-content" title="' + when + '" style="background-color:' + color + '">' + fval + "</td></tr>";
|
table = table + '<tr><td class="his-field-title">' + escapeHTML(fname) + '</td><td class="his-field-content" title="' + when + '" style="background-color:' + color + '">' + fval + "</td></tr>"
|
||||||
}
|
}
|
||||||
table = table + "</table>";
|
table = table + "</table>"
|
||||||
$("#his-des").html(twemoji.parse(note));
|
$("#his-des").html(twemoji.parse(note))
|
||||||
} else {
|
} else {
|
||||||
$("#his-des").css("max-height", "400px");
|
$("#his-des").css("max-height", "400px")
|
||||||
}
|
}
|
||||||
$("#his-table").html(twemoji.parse(table));
|
$("#his-table").html(twemoji.parse(table))
|
||||||
} else {
|
} else {
|
||||||
$("#his-des").css("max-height", "400px");
|
$("#his-des").css("max-height", "400px")
|
||||||
}
|
}
|
||||||
$("#his-des").html(twemoji.parse(note));
|
$("#his-des").html(twemoji.parse(note))
|
||||||
if (json.bot) {
|
if (json.bot) {
|
||||||
$("#his-bot").html(lang.lang_showontl_botacct);
|
$("#his-bot").html(lang.lang_showontl_botacct)
|
||||||
}
|
}
|
||||||
$("#his-des").attr("data-acct", acct_id);
|
$("#his-des").attr("data-acct", acct_id)
|
||||||
$("#his-data").css("background-size", "cover");
|
$("#his-data").css("background-size", "cover")
|
||||||
$("#his-float-timeline").css("height", $("#his-data-show").height() + "px");
|
$("#his-float-timeline").css("height", $("#his-data-show").height() + "px")
|
||||||
localStorage.setItem("history", user);
|
localStorage.setItem("history", user)
|
||||||
//自分の時
|
//自分の時
|
||||||
if (json.acct == localStorage.getItem("user_" + acct_id)) {
|
if (json.acct == localStorage.getItem("user_" + acct_id)) {
|
||||||
showFav("", acct_id);
|
showFav("", acct_id)
|
||||||
showBlo("", acct_id);
|
showBlo("", acct_id)
|
||||||
showMut("", acct_id);
|
showMut("", acct_id)
|
||||||
showDom("", acct_id);
|
showDom("", acct_id)
|
||||||
showReq("", acct_id);
|
showReq("", acct_id)
|
||||||
showFrl("", acct_id);
|
showFrl("", acct_id)
|
||||||
$("#his-name-val").val(json.display_name);
|
$("#his-name-val").val(json.display_name)
|
||||||
if (json.fields.length > 0) {
|
if (json.fields.length > 0) {
|
||||||
if (json.fields[0]) {
|
if (json.fields[0]) {
|
||||||
$("#his-f1-name").val(json.fields[0].name);
|
$("#his-f1-name").val(json.fields[0].name)
|
||||||
$("#his-f1-val").val($.strip_tags(json.fields[0].value));
|
$("#his-f1-val").val($.strip_tags(json.fields[0].value))
|
||||||
}
|
}
|
||||||
if (json.fields[1]) {
|
if (json.fields[1]) {
|
||||||
$("#his-f2-name").val(json.fields[1].name);
|
$("#his-f2-name").val(json.fields[1].name)
|
||||||
$("#his-f2-val").val($.strip_tags(json.fields[1].value));
|
$("#his-f2-val").val($.strip_tags(json.fields[1].value))
|
||||||
}
|
}
|
||||||
if (json.fields[2]) {
|
if (json.fields[2]) {
|
||||||
$("#his-f3-name").val(json.fields[2].name);
|
$("#his-f3-name").val(json.fields[2].name)
|
||||||
$("#his-f3-val").val($.strip_tags(json.fields[2].value));
|
$("#his-f3-val").val($.strip_tags(json.fields[2].value))
|
||||||
}
|
}
|
||||||
if (json.fields[3]) {
|
if (json.fields[3]) {
|
||||||
$("#his-f4-name").val(json.fields[3].name);
|
$("#his-f4-name").val(json.fields[3].name)
|
||||||
$("#his-f4-val").val($.strip_tags(json.fields[3].value));
|
$("#his-f4-val").val($.strip_tags(json.fields[3].value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var des = json.note;
|
var des = json.note
|
||||||
des = des.replace(/<br \/>/g, "\n");
|
des = des.replace(/<br \/>/g, "\n")
|
||||||
des = $.strip_tags(des);
|
des = $.strip_tags(des)
|
||||||
$("#his-des-val").val(des);
|
$("#his-des-val").val(des)
|
||||||
$("#his-follow-btn").hide();
|
$("#his-follow-btn").hide()
|
||||||
$("#his-block-btn").hide();
|
$("#his-block-btn").hide()
|
||||||
$("#his-mute-btn").hide();
|
$("#his-mute-btn").hide()
|
||||||
$("#his-notf-btn").hide();
|
$("#his-notf-btn").hide()
|
||||||
$("#his-domain-btn").hide();
|
$("#his-domain-btn").hide()
|
||||||
$("#his-emp-btn").hide();
|
$("#his-emp-btn").hide()
|
||||||
$(".only-my-data").show();
|
$(".only-my-data").show()
|
||||||
$(".only-his-data").hide();
|
$(".only-his-data").hide()
|
||||||
if (localStorage.getItem("main") == acct_id) {
|
if (localStorage.getItem("main") == acct_id) {
|
||||||
$("#his-main-acct").hide();
|
$("#his-main-acct").hide()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
relations(user, acct_id);
|
relations(user, acct_id)
|
||||||
$(".only-my-data").hide();
|
$(".only-my-data").hide()
|
||||||
$(".only-his-data").show();
|
$(".only-his-data").show()
|
||||||
}
|
}
|
||||||
todc();
|
todc()
|
||||||
if(json.locked) {
|
if(json.locked) {
|
||||||
$('#his-data').addClass('locked')
|
$('#his-data').addClass('locked')
|
||||||
} else {
|
} else {
|
||||||
$('#his-data').removeClass('locked')
|
$('#his-data').removeClass('locked')
|
||||||
}
|
}
|
||||||
//外部データ取得(死かもしれないので)
|
//外部データ取得(死かもしれないので)
|
||||||
udAdd(acct_id, user, json.url);
|
udAdd(acct_id, user, json.url)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
function misskeyUdg(user, acct_id) {
|
function misskeyUdg(user, acct_id) {
|
||||||
reset();
|
reset()
|
||||||
if (!user) {
|
if (!user) {
|
||||||
user = localStorage.getItem("user-id_" + acct_id);
|
user = localStorage.getItem("user-id_" + acct_id)
|
||||||
}
|
}
|
||||||
todo("User Data Loading...");
|
todo("User Data Loading...")
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
if (localStorage.getItem("mode_" + domain) != "misskey") {
|
if (localStorage.getItem("mode_" + domain) != "misskey") {
|
||||||
udg(user, acct_id);
|
udg(user, acct_id)
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/users/show";
|
var start = "https://" + domain + "/api/users/show"
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -274,127 +274,127 @@ function misskeyUdg(user, acct_id) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
//一つ前のユーザーデータ
|
//一つ前のユーザーデータ
|
||||||
if (!localStorage.getItem("history")) {
|
if (!localStorage.getItem("history")) {
|
||||||
$("#his-history-btn").prop("disabled", true);
|
$("#his-history-btn").prop("disabled", true)
|
||||||
} else {
|
} else {
|
||||||
$("#his-history-btn").prop("disabled", false);
|
$("#his-history-btn").prop("disabled", false)
|
||||||
$("#his-data").attr("history", localStorage.getItem("history"));
|
$("#his-data").attr("history", localStorage.getItem("history"))
|
||||||
}
|
}
|
||||||
$("#his-data").modal("open");
|
$("#his-data").modal("open")
|
||||||
$("#his-data").attr("user-id", user);
|
$("#his-data").attr("user-id", user)
|
||||||
$("#his-data").attr("use-acct", acct_id);
|
$("#his-data").attr("use-acct", acct_id)
|
||||||
if (json.host) {
|
if (json.host) {
|
||||||
//Remote
|
//Remote
|
||||||
$("#his-data").attr("remote", "false");
|
$("#his-data").attr("remote", "false")
|
||||||
var fullname = json.username + "@" + json.host;
|
var fullname = json.username + "@" + json.host
|
||||||
} else {
|
} else {
|
||||||
$("#his-data").attr("remote", "false");
|
$("#his-data").attr("remote", "false")
|
||||||
var fullname = json.acct + "@" + domain;
|
var fullname = json.acct + "@" + domain
|
||||||
}
|
}
|
||||||
utlShow(json.id, "", acct_id);
|
utlShow(json.id, "", acct_id)
|
||||||
flw(json.id, "", acct_id);
|
flw(json.id, "", acct_id)
|
||||||
fer(json.id, "", acct_id);
|
fer(json.id, "", acct_id)
|
||||||
if (json.name) {
|
if (json.name) {
|
||||||
var dis_name = escapeHTML(json.name);
|
var dis_name = escapeHTML(json.name)
|
||||||
dis_name = twemoji.parse(dis_name);
|
dis_name = twemoji.parse(dis_name)
|
||||||
} else {
|
} else {
|
||||||
var dis_name = json.name;
|
var dis_name = json.name
|
||||||
}
|
}
|
||||||
$("#his-name").html(dis_name);
|
$("#his-name").html(dis_name)
|
||||||
$("#his-acct").text(json.username);
|
$("#his-acct").text(json.username)
|
||||||
$("#his-acct").attr("fullname", fullname);
|
$("#his-acct").attr("fullname", fullname)
|
||||||
$("#his-prof").attr("src", json.avatarUrl);
|
$("#his-prof").attr("src", json.avatarUrl)
|
||||||
$("#his-data").css("background-image", "url(" + json.bannerUrl + ")");
|
$("#his-data").css("background-image", "url(" + json.bannerUrl + ")")
|
||||||
$("#his-sta").text(json.notesCount);
|
$("#his-sta").text(json.notesCount)
|
||||||
$("#his-follow").text(json.followingCount);
|
$("#his-follow").text(json.followingCount)
|
||||||
$("#his-follower").text(json.followersCount);
|
$("#his-follower").text(json.followersCount)
|
||||||
$("#his-since").text(crat(json.createdAt));
|
$("#his-since").text(crat(json.createdAt))
|
||||||
var note = escapeHTML(json.description);
|
var note = escapeHTML(json.description)
|
||||||
$("#his-des").html(twemoji.parse(note));
|
$("#his-des").html(twemoji.parse(note))
|
||||||
if (json.isCat) {
|
if (json.isCat) {
|
||||||
$("#his-bot").html("Cat" + twemoji.parse("😺"));
|
$("#his-bot").html("Cat" + twemoji.parse("😺"))
|
||||||
}
|
}
|
||||||
$("#his-data").css("background-size", "cover");
|
$("#his-data").css("background-size", "cover")
|
||||||
localStorage.setItem("history", user);
|
localStorage.setItem("history", user)
|
||||||
//自分の時
|
//自分の時
|
||||||
if (json.username == localStorage.getItem("user_" + acct_id) && !json.host) {
|
if (json.username == localStorage.getItem("user_" + acct_id) && !json.host) {
|
||||||
//showFav('', acct_id);
|
//showFav('', acct_id);
|
||||||
//showMut('', acct_id);
|
//showMut('', acct_id);
|
||||||
//showReq('', acct_id);
|
//showReq('', acct_id);
|
||||||
showFrl("", acct_id);
|
showFrl("", acct_id)
|
||||||
$("#his-name-val").val(json.name);
|
$("#his-name-val").val(json.name)
|
||||||
var des = json.note;
|
var des = json.note
|
||||||
des = nl2br(des);
|
des = nl2br(des)
|
||||||
des = $.strip_tags(des);
|
des = $.strip_tags(des)
|
||||||
$("#his-des-val").val(des);
|
$("#his-des-val").val(des)
|
||||||
$("#his-follow-btn").hide();
|
$("#his-follow-btn").hide()
|
||||||
$("#his-block-btn").hide();
|
$("#his-block-btn").hide()
|
||||||
$("#his-mute-btn").hide();
|
$("#his-mute-btn").hide()
|
||||||
$("#his-notf-btn").hide();
|
$("#his-notf-btn").hide()
|
||||||
$("#his-domain-btn").hide();
|
$("#his-domain-btn").hide()
|
||||||
$("#his-emp-btn").hide();
|
$("#his-emp-btn").hide()
|
||||||
$(".only-my-data").show();
|
$(".only-my-data").show()
|
||||||
$(".only-his-data").hide();
|
$(".only-his-data").hide()
|
||||||
if (localStorage.getItem("main") == acct_id) {
|
if (localStorage.getItem("main") == acct_id) {
|
||||||
$("#his-main-acct").hide();
|
$("#his-main-acct").hide()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (json.isFollowing) {
|
if (json.isFollowing) {
|
||||||
//自分がフォローしている
|
//自分がフォローしている
|
||||||
$("#his-data").addClass("following");
|
$("#his-data").addClass("following")
|
||||||
$("#his-follow-btn-text").text(lang.lang_status_unfollow);
|
$("#his-follow-btn-text").text(lang.lang_status_unfollow)
|
||||||
hisList(user, acct_id);
|
hisList(user, acct_id)
|
||||||
} else {
|
} else {
|
||||||
$("#his-follow-btn-text").text(lang.lang_status_follow);
|
$("#his-follow-btn-text").text(lang.lang_status_follow)
|
||||||
}
|
}
|
||||||
if (json.isFollowed) {
|
if (json.isFollowed) {
|
||||||
//フォローされてる
|
//フォローされてる
|
||||||
$("#his-relation").text(lang.lang_showontl_followed);
|
$("#his-relation").text(lang.lang_showontl_followed)
|
||||||
}
|
}
|
||||||
$("#his-block-btn").hide();
|
$("#his-block-btn").hide()
|
||||||
if (json.isMuted) {
|
if (json.isMuted) {
|
||||||
$("#his-data").addClass("muting");
|
$("#his-data").addClass("muting")
|
||||||
$("#his-mute-btn-text").text(lang.lang_status_unmute);
|
$("#his-mute-btn-text").text(lang.lang_status_unmute)
|
||||||
} else {
|
} else {
|
||||||
$("#his-mute-btn-text").text(lang.lang_status_mute);
|
$("#his-mute-btn-text").text(lang.lang_status_mute)
|
||||||
}
|
}
|
||||||
$(".only-my-data").hide();
|
$(".only-my-data").hide()
|
||||||
$(".only-his-data").show();
|
$(".only-his-data").show()
|
||||||
}
|
}
|
||||||
todc();
|
todc()
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
//一つ前のユーザーデータ表示
|
//一つ前のユーザーデータ表示
|
||||||
function historyShow() {
|
function historyShow() {
|
||||||
var acct_id = $("#his-data").attr("use-acct");
|
var acct_id = $("#his-data").attr("use-acct")
|
||||||
var user = $("#his-data").attr("history");
|
var user = $("#his-data").attr("history")
|
||||||
udg(user, acct_id, "true");
|
udg(user, acct_id, "true")
|
||||||
}
|
}
|
||||||
//選択アカウントのプロフ
|
//選択アカウントのプロフ
|
||||||
function profShow() {
|
function profShow() {
|
||||||
var acct_id = $("#post-acct-sel").val();
|
var acct_id = $("#post-acct-sel").val()
|
||||||
var user = localStorage.getItem("user-id_" + acct_id);
|
var user = localStorage.getItem("user-id_" + acct_id)
|
||||||
udg(user, acct_id);
|
udg(user, acct_id)
|
||||||
hide();
|
hide()
|
||||||
}
|
}
|
||||||
|
|
||||||
//FF関係取得
|
//FF関係取得
|
||||||
function relations(user, acct_id) {
|
function relations(user, acct_id) {
|
||||||
var domain = localStorage.getItem("domain_" + acct_id);
|
var domain = localStorage.getItem("domain_" + acct_id)
|
||||||
var at = localStorage.getItem("acct_" + acct_id + "_at");
|
var at = localStorage.getItem("acct_" + acct_id + "_at")
|
||||||
var start = "https://" + domain + "/api/v1/accounts/relationships?id=" + user;
|
var start = "https://" + domain + "/api/v1/accounts/relationships?id=" + user
|
||||||
fetch(start, {
|
fetch(start, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: {
|
headers: {
|
||||||
@@ -405,18 +405,18 @@ function relations(user, acct_id) {
|
|||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
response.text().then(function(text) {
|
response.text().then(function(text) {
|
||||||
setLog(response.url, response.status, text);
|
setLog(response.url, response.status, text)
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json()
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
todo(error);
|
todo(error)
|
||||||
setLog(start, "JSON", error);
|
setLog(start, "JSON", error)
|
||||||
console.error(error);
|
console.error(error)
|
||||||
})
|
})
|
||||||
.then(function(json) {
|
.then(function(json) {
|
||||||
var json = json[0];
|
var json = json[0]
|
||||||
if(json.requested) {
|
if(json.requested) {
|
||||||
//フォロリク中
|
//フォロリク中
|
||||||
$('#his-data').addClass('following')
|
$('#his-data').addClass('following')
|
||||||
@@ -425,138 +425,140 @@ function relations(user, acct_id) {
|
|||||||
if (json.following) {
|
if (json.following) {
|
||||||
//自分がフォローしている
|
//自分がフォローしている
|
||||||
$("#his-data").addClass("following")
|
$("#his-data").addClass("following")
|
||||||
$("#his-follow-btn-text").text(lang.lang_status_unfollow);
|
$("#his-follow-btn-text").text(lang.lang_status_unfollow)
|
||||||
hisList(user, acct_id);
|
hisList(user, acct_id)
|
||||||
} else {
|
} else {
|
||||||
$("#his-follow-btn-text").text(lang.lang_status_follow);
|
$("#his-follow-btn-text").text(lang.lang_status_follow)
|
||||||
}
|
}
|
||||||
if (json.followed_by) {
|
if (json.followed_by) {
|
||||||
//フォローされてる
|
//フォローされてる
|
||||||
$("#his-relation").text(lang.lang_showontl_followed);
|
$("#his-relation").text(lang.lang_showontl_followed)
|
||||||
}
|
}
|
||||||
if (json.blocking) {
|
if (json.blocking) {
|
||||||
$("#his-data").addClass("blocking");
|
$("#his-data").addClass("blocking")
|
||||||
$("#his-block-btn-text").text(lang.lang_status_unblock);
|
$("#his-block-btn-text").text(lang.lang_status_unblock)
|
||||||
} else {
|
} else {
|
||||||
$("#his-block-btn-text").text(lang.lang_status_block);
|
$("#his-block-btn-text").text(lang.lang_status_block)
|
||||||
}
|
}
|
||||||
if (json.muting) {
|
if (json.muting) {
|
||||||
$("#his-data").addClass("muting");
|
$("#his-data").addClass("muting")
|
||||||
$("#his-mute-btn-text").text(lang.lang_status_unmute);
|
$("#his-mute-btn-text").text(lang.lang_status_unmute)
|
||||||
} else {
|
} else {
|
||||||
$("#his-mute-btn-text").text(lang.lang_status_mute);
|
$("#his-mute-btn-text").text(lang.lang_status_mute)
|
||||||
}
|
}
|
||||||
if (json.muting_notifications) {
|
if (json.muting_notifications) {
|
||||||
$("#his-data").addClass("mutingNotf");
|
$("#his-data").addClass("mutingNotf")
|
||||||
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_unmute);
|
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_unmute)
|
||||||
} else {
|
} else {
|
||||||
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_mute);
|
$("#his-notf-btn-text").text(lang.lang_showontl_notf + lang.lang_status_mute)
|
||||||
}
|
}
|
||||||
if (json.domain_blocking) {
|
if (json.domain_blocking) {
|
||||||
$("#his-data").addClass("blockingDom");
|
$("#his-data").addClass("blockingDom")
|
||||||
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_unblock);
|
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_unblock)
|
||||||
} else {
|
} else {
|
||||||
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_block);
|
$("#his-domain-btn-text").text(lang.lang_showontl_domain + lang.lang_status_block)
|
||||||
}
|
}
|
||||||
//Endorsed
|
//Endorsed
|
||||||
if (json.endorsed) {
|
if (json.endorsed) {
|
||||||
$("#his-end-btn").addClass("endorsed");
|
$("#his-end-btn").addClass("endorsed")
|
||||||
$("#his-end-btn-text").text(lang.lang_status_unendorse);
|
$("#his-end-btn-text").text(lang.lang_status_unendorse)
|
||||||
} else {
|
} else {
|
||||||
$("#his-end-btn").removeClass("endorsed");
|
$("#his-end-btn").removeClass("endorsed")
|
||||||
$("#his-end-btn-text").text(lang.lang_status_endorse);
|
$("#his-end-btn-text").text(lang.lang_status_endorse)
|
||||||
}
|
}
|
||||||
//Blocked
|
//Blocked
|
||||||
if (json.blocked_by) {
|
if (json.blocked_by) {
|
||||||
$("#my-data-nav .btn").addClass("disabled");
|
$("#my-data-nav .btn").addClass("disabled")
|
||||||
$(".his-var-content").hide();
|
$(".his-var-content").hide()
|
||||||
$("#his-float-blocked").show();
|
$("#his-float-blocked").show()
|
||||||
$("#his-follow-btn").hide();
|
$("#his-follow-btn").hide()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
function profbrws() {
|
function profbrws() {
|
||||||
var url = $("#his-openin").attr("data-href");
|
var url = $("#his-openin").attr("data-href")
|
||||||
postMessage(["openUrl", url], "*");
|
postMessage(["openUrl", url], "*")
|
||||||
}
|
}
|
||||||
function setMain() {
|
function setMain() {
|
||||||
var acct_id = $("#his-data").attr("use-acct");
|
var acct_id = $("#his-data").attr("use-acct")
|
||||||
localStorage.setItem("main", acct_id);
|
localStorage.setItem("main", acct_id)
|
||||||
multiSelector(true);
|
multiSelector(true)
|
||||||
M.toast({ html: lang.lang_manager_mainAcct, displayLength: 3000 });
|
M.toast({ html: lang.lang_manager_mainAcct, displayLength: 3000 })
|
||||||
}
|
}
|
||||||
//オールリセット
|
//オールリセット
|
||||||
function hisclose() {
|
function hisclose() {
|
||||||
$("#his-data").modal("close");
|
$("#his-data").modal("close")
|
||||||
reset();
|
reset()
|
||||||
$("#his-data").attr("history", "");
|
$("#his-data").attr("history", "")
|
||||||
localStorage.removeItem("history");
|
localStorage.removeItem("history")
|
||||||
}
|
}
|
||||||
function reset() {
|
function reset() {
|
||||||
$(".his-var-content:eq(0)").show();
|
$(".his-var-content:eq(0)").show()
|
||||||
$(".his-var-content:gt(0)").hide();
|
$(".his-var-content:gt(0)").hide()
|
||||||
$("#my-data-nav .btn").removeClass("disabled");
|
$("#my-data-nav .btn").removeClass("disabled")
|
||||||
$(".active-back").removeClass("active-back");
|
$(".active-back").removeClass("active-back")
|
||||||
$(".column-first").addClass("active-back");
|
$(".column-first").addClass("active-back")
|
||||||
$("#his-name").text("Loading");
|
$("#his-name").text("Loading")
|
||||||
$("#his-acct").text("");
|
$("#his-acct").text("")
|
||||||
$("#his-prof").attr("src", "../../img/loading.svg");
|
$("#his-prof").attr("src", "../../img/loading.svg")
|
||||||
$("#his-data").css("background-image", "url(../../img/loading.svg)");
|
$("#his-data").css("background-image", "url(../../img/loading.svg)")
|
||||||
$("#his-sta").text("");
|
$("#his-sta").text("")
|
||||||
$("#his-follow").text("");
|
$("#his-follow").text("")
|
||||||
$("#his-follower").text("");
|
$("#his-follower").text("")
|
||||||
$("#his-des").html("");
|
$("#his-des").html("")
|
||||||
$("#his-data").css("background-size", "cover");
|
$("#his-data").css("background-size", "cover")
|
||||||
$("#his-since").text("");
|
$("#his-since").text("")
|
||||||
$("#his-data").removeClass("following");
|
$("#his-data").removeClass("following")
|
||||||
$("#his-data").removeClass("muting");
|
$("#his-data").removeClass("muting")
|
||||||
$("#his-data").removeClass("blocking");
|
$("#his-data").removeClass("blocking")
|
||||||
$("#his-data").removeClass("mutingNotf");
|
$("#his-data").removeClass("mutingNotf")
|
||||||
$("#his-data").removeClass("blockingDom");
|
$("#his-data").removeClass("blockingDom")
|
||||||
$("#his-end-btn").removeClass("endorsed");
|
$("#his-end-btn").removeClass("endorsed")
|
||||||
$("#his-des").css("max-height", "250px");
|
$("#his-des").css("max-height", "250px")
|
||||||
$("#his-bot").html("");
|
$("#his-bot").html("")
|
||||||
$("#his-follow-btn").show();
|
$("#his-follow-btn").show()
|
||||||
$("#his-block-btn").show();
|
$("#his-block-btn").show()
|
||||||
$("#his-mute-btn").show();
|
$("#his-mute-btn").show()
|
||||||
$("#his-notf-btn").show();
|
$("#his-notf-btn").show()
|
||||||
$("#his-domain-btn").show();
|
$("#his-domain-btn").show()
|
||||||
$("#his-emp-btn").show();
|
$("#his-emp-btn").show()
|
||||||
$("#his-follow-btn-text").text(lang.lang_status_follow);
|
$("#his-follow-btn-text").text(lang.lang_status_follow)
|
||||||
$("#his-mute-btn-text").text(lang.lang_status_mute);
|
$("#his-mute-btn-text").text(lang.lang_status_mute)
|
||||||
$("#his-block-btn-text").text(lang.lang_status_block);
|
$("#his-block-btn-text").text(lang.lang_status_block)
|
||||||
$("#his-notf-btn").text(lang.lang_showontl_notf + lang.lang_status_mute);
|
$("#his-notf-btn").text(lang.lang_showontl_notf + lang.lang_status_mute)
|
||||||
$("#his-domain-btn").text(lang.lang_showontl_domain + lang.lang_status_block);
|
$("#his-domain-btn").text(lang.lang_showontl_domain + lang.lang_status_block)
|
||||||
$("#his-relation").text("");
|
$("#his-relation").text("")
|
||||||
$(".cont-series").html("");
|
$(".cont-series").html("")
|
||||||
$("#domainblock").val("");
|
$("#domainblock").val("")
|
||||||
$("#his-lists-a").html(lang.lang_showontl_listwarn);
|
$("#his-lists-a").html(lang.lang_showontl_listwarn)
|
||||||
$("#his-lists-b").html("");
|
$("#his-lists-b").html("")
|
||||||
$("#his-name-val").val("");
|
$("#his-name-val").val("")
|
||||||
$("#his-des-val").val("");
|
$("#his-des-val").val("")
|
||||||
$("#his-f1-name").val("");
|
$("#his-f1-name").val("")
|
||||||
$("#his-f1-val").val("");
|
$("#his-f1-val").val("")
|
||||||
$("#his-f2-name").val("");
|
$("#his-f2-name").val("")
|
||||||
$("#his-f2-val").val("");
|
$("#his-f2-val").val("")
|
||||||
$("#his-f3-name").val("");
|
$("#his-f3-name").val("")
|
||||||
$("#his-f3-val").val("");
|
$("#his-f3-val").val("")
|
||||||
$("#his-f4-name").val("");
|
$("#his-f4-name").val("")
|
||||||
$("#his-f4-val").val("");
|
$("#his-f4-val").val("")
|
||||||
$("#his-endorse").html("");
|
$("#his-endorse").html("")
|
||||||
$("#his-openin").attr("data-href", "");
|
$("#his-openin").attr("data-href", "")
|
||||||
$("#his-float-timeline").show();
|
$("#his-float-timeline").show()
|
||||||
$("#his-float-blocked").hide();
|
$("#his-float-blocked").hide()
|
||||||
$("#his-main-acct").show();
|
$("#his-main-acct").show()
|
||||||
$("#his-proof-prof").html("");
|
$("#his-proof-prof").html("")
|
||||||
$('#his-data').removeClass('locked')
|
$('#his-data').removeClass('locked')
|
||||||
$('#his-data').removeClass('requesting')
|
$('#his-data').removeClass('requesting')
|
||||||
}
|
}
|
||||||
$("#my-data-nav .anc-link").on("click", function() {
|
$("#my-data-nav .anc-link").on("click", function() {
|
||||||
var target = $(this).attr("go");
|
var target = $(this).attr("go")
|
||||||
if (target) {
|
if (target) {
|
||||||
$("#my-data-nav .anc-link").removeClass("active-back");
|
const title = $(this).html()
|
||||||
$(this).addClass("active-back");
|
$('#his-data-title').html(title)
|
||||||
$(target).show();
|
$("#my-data-nav .anc-link").removeClass("active-back")
|
||||||
$(".his-var-content:not(" + target + ")").hide();
|
$(this).addClass("active-back")
|
||||||
|
$(target).show()
|
||||||
|
$(".his-var-content:not(" + target + ")").hide()
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
|
22
app/main.js
22
app/main.js
@@ -124,7 +124,6 @@ function createWindow() {
|
|||||||
var max_info_path = join(app.getPath('userData'), 'max-window-size.json')
|
var max_info_path = join(app.getPath('userData'), 'max-window-size.json')
|
||||||
var ha_path = join(app.getPath('userData'), 'hardwareAcceleration')
|
var ha_path = join(app.getPath('userData'), 'hardwareAcceleration')
|
||||||
var ua_path = join(app.getPath('userData'), 'useragent')
|
var ua_path = join(app.getPath('userData'), 'useragent')
|
||||||
var frame_path = join(app.getPath('userData'), 'frame')
|
|
||||||
try {
|
try {
|
||||||
fs.readFileSync(ha_path, 'utf8')
|
fs.readFileSync(ha_path, 'utf8')
|
||||||
app.disableHardwareAcceleration()
|
app.disableHardwareAcceleration()
|
||||||
@@ -152,19 +151,6 @@ function createWindow() {
|
|||||||
y: 'string',
|
y: 'string',
|
||||||
} // デフォルトバリュー
|
} // デフォルトバリュー
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
var frameRaw = fs.readFileSync(frame_path, 'utf8')
|
|
||||||
if (frameRaw == 'false') {
|
|
||||||
var frame = false
|
|
||||||
var frameTitle = 'hidden'
|
|
||||||
} else {
|
|
||||||
var frame = true
|
|
||||||
var frameTitle = 'default'
|
|
||||||
}
|
|
||||||
} catch {
|
|
||||||
var frame = true
|
|
||||||
}
|
|
||||||
// メイン画面の表示。ウィンドウの幅、高さを指定できる
|
// メイン画面の表示。ウィンドウの幅、高さを指定できる
|
||||||
var platform = process.platform
|
var platform = process.platform
|
||||||
var bit = process.arch
|
var bit = process.arch
|
||||||
@@ -173,6 +159,7 @@ function createWindow() {
|
|||||||
webviewTag: true,
|
webviewTag: true,
|
||||||
nodeIntegration: false,
|
nodeIntegration: false,
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
|
spellcheck: false,
|
||||||
preload: join(__dirname, 'js', 'platform', 'preload.js'),
|
preload: join(__dirname, 'js', 'platform', 'preload.js'),
|
||||||
},
|
},
|
||||||
width: window_size.width,
|
width: window_size.width,
|
||||||
@@ -180,7 +167,6 @@ function createWindow() {
|
|||||||
x: window_size.x,
|
x: window_size.x,
|
||||||
y: window_size.y,
|
y: window_size.y,
|
||||||
show: false,
|
show: false,
|
||||||
frame: frame,
|
|
||||||
}
|
}
|
||||||
if (platform == 'linux') {
|
if (platform == 'linux') {
|
||||||
arg.resizable = true
|
arg.resizable = true
|
||||||
@@ -189,7 +175,6 @@ function createWindow() {
|
|||||||
arg.simpleFullscreen = true
|
arg.simpleFullscreen = true
|
||||||
} else if (platform == 'darwin') {
|
} else if (platform == 'darwin') {
|
||||||
arg.simpleFullscreen = true
|
arg.simpleFullscreen = true
|
||||||
arg.titleBarStyle = frameTitle
|
|
||||||
}
|
}
|
||||||
mainWindow = new BrowserWindow(arg)
|
mainWindow = new BrowserWindow(arg)
|
||||||
mainWindow.once('page-title-updated', () => {
|
mainWindow.once('page-title-updated', () => {
|
||||||
@@ -293,10 +278,7 @@ function createWindow() {
|
|||||||
|
|
||||||
var platform = process.platform
|
var platform = process.platform
|
||||||
var bit = process.arch
|
var bit = process.arch
|
||||||
Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang, mainWindow, packaged, dir, dirname, frame)))
|
Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang, mainWindow, packaged, dir, dirname)))
|
||||||
if (!frame) {
|
|
||||||
mainWindow.setMenu(null)
|
|
||||||
}
|
|
||||||
//CSS
|
//CSS
|
||||||
css.css(mainWindow)
|
css.css(mainWindow)
|
||||||
//アップデータとダウンロード
|
//アップデータとダウンロード
|
||||||
|
199
app/main/css.js
199
app/main/css.js
@@ -31,23 +31,131 @@ function css(mainWindow) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
ipc.on('theme-json-delete', function (e, arg) {
|
ipc.on('theme-json-delete', function (e, arg) {
|
||||||
var themecss = join(app.getPath("userData"), arg + ".thedesktheme");
|
try{
|
||||||
|
var themecss = join(app.getPath("userData"), arg);
|
||||||
console.log(themecss);
|
console.log(themecss);
|
||||||
fs.unlink(themecss, function (err) {
|
fs.unlink(themecss, function (err) {
|
||||||
e.sender.webContents.send('theme-json-delete-complete', "");
|
e.sender.webContents.send('theme-json-delete-complete', "");
|
||||||
});
|
});
|
||||||
|
} catch {
|
||||||
|
e.sender.webContents.send('theme-json-delete-complete', 'cannot delete');
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
ipc.on('theme-json-request', function (e, arg) {
|
ipc.on('theme-json-request', function (e, arg) {
|
||||||
var themecss = join(app.getPath("userData"), arg + ".thedesktheme");
|
try {
|
||||||
|
var themecss = join(app.getAppPath(), '/source/themes', arg)
|
||||||
var raw = fs.readFileSync(themecss, 'utf8')
|
var raw = fs.readFileSync(themecss, 'utf8')
|
||||||
var json = JSON5.parse(raw);
|
var json = JSON5.parse(raw)
|
||||||
|
} catch {
|
||||||
|
var themecss = join(app.getPath("userData"), arg)
|
||||||
|
var raw = fs.readFileSync(themecss, 'utf8')
|
||||||
|
var json = JSON5.parse(raw)
|
||||||
|
}
|
||||||
e.sender.webContents.send('theme-json-response', [json, raw]);
|
e.sender.webContents.send('theme-json-response', [json, raw]);
|
||||||
})
|
})
|
||||||
ipc.on('theme-css-request', function (e, arg) {
|
ipc.on('theme-css-request', function (e, arg) {
|
||||||
var themecss = join(app.getPath("userData"), arg + ".thedesktheme");
|
|
||||||
try {
|
try {
|
||||||
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'));
|
var themecss = join(app.getAppPath(), '/source/themes', arg)
|
||||||
|
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'))
|
||||||
|
} catch {
|
||||||
|
var themecss = join(app.getPath("userData"), arg)
|
||||||
|
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'))
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
var css
|
||||||
|
if (json.version) {
|
||||||
|
var bg = json.primary.background
|
||||||
|
var subcolor = json.primary.subcolor
|
||||||
|
var text = json.primary.text
|
||||||
|
var accent = json.primary.accent
|
||||||
|
if (json.base == "light") {
|
||||||
|
var drag = "rgba(255, 255, 255, 0.8)";
|
||||||
|
var beforehover = "#757575";
|
||||||
|
var selected = "#3f3f3f"
|
||||||
|
var selectedWithShare = "#b2babd"
|
||||||
|
var gray = "#757575"
|
||||||
|
var hisData = 'rgba(255, 255, 255, 0.9)'
|
||||||
|
} else {
|
||||||
|
var drag = "rgba(0, 0, 0, 0.8)";
|
||||||
|
var beforehover = "#9e9e9e";
|
||||||
|
var selected = "#c0c0c0"
|
||||||
|
var selectedWithShare = "#003a30"
|
||||||
|
var gray = "#cccccc"
|
||||||
|
var hisData = 'rgba(0, 0, 0, 0.8)'
|
||||||
|
}
|
||||||
|
if (!json.advanced) {
|
||||||
|
json.advanced = {}
|
||||||
|
}
|
||||||
|
if (json.advanced.modal) {
|
||||||
|
var modal = json.advanced.modal
|
||||||
|
} else {
|
||||||
|
var modal = bg
|
||||||
|
}
|
||||||
|
if (json.advanced.modalFooter) {
|
||||||
|
var modalFooter = json.advanced.modalFooter
|
||||||
|
} else {
|
||||||
|
var modalFooter = bg
|
||||||
|
if (modal != bg) modalFooter = modal
|
||||||
|
}
|
||||||
|
if (json.advanced.thirdColor) {
|
||||||
|
var thirdColor = json.advanced.thirdColor
|
||||||
|
} else {
|
||||||
|
var thirdColor = subcolor
|
||||||
|
}
|
||||||
|
if (json.advanced.forthColor) {
|
||||||
|
var forthColor = json.advanced.forthColor
|
||||||
|
} else {
|
||||||
|
var forthColor = subcolor
|
||||||
|
if (thirdColor != subcolor) forthColor = thirdColor
|
||||||
|
}
|
||||||
|
if (json.advanced.bottom) {
|
||||||
|
var bottom = json.advanced.bottom
|
||||||
|
} else {
|
||||||
|
var bottom = subcolor
|
||||||
|
}
|
||||||
|
if (json.advanced.emphasized) {
|
||||||
|
var emphasized = json.advanced.emphasized
|
||||||
|
} else {
|
||||||
|
var emphasized = accent
|
||||||
|
}
|
||||||
|
if (json.advanced.postbox) {
|
||||||
|
var postbox = json.advanced.postbox
|
||||||
|
} else {
|
||||||
|
var postbox = subcolor
|
||||||
|
}
|
||||||
|
if (json.advanced.active) {
|
||||||
|
var active = json.advanced.active
|
||||||
|
} else {
|
||||||
|
var active = accent
|
||||||
|
}
|
||||||
|
if (json.advanced.selected) {
|
||||||
|
var selected = json.advanced.selected
|
||||||
|
}
|
||||||
|
if (json.advanced.selectedWithShare) {
|
||||||
|
var selectedWithShare = json.advanced.selectedWithShare
|
||||||
|
}
|
||||||
|
|
||||||
|
var css = ":root {--bg:" + bg + ";--drag:" + drag + ";" +
|
||||||
|
"--text:" + text + ";--beforehover:" + beforehover + ";--modal:" +
|
||||||
|
modal + ";--thirdColor:" + thirdColor + ";--subcolor:" + forthColor +
|
||||||
|
";--bottom:" + bottom + ";--accent:" + accent + ";" + ";--emphasized:" + emphasized + ";--his-data:" +
|
||||||
|
hisData +
|
||||||
|
";--active:" + active + ";--postbox:" + postbox + ";--modalfooter:" +
|
||||||
|
modalFooter + ";--selected:" + selected + ";--selectedWithShare:" + selectedWithShare +
|
||||||
|
";--gray:" + gray + ";}" +
|
||||||
|
".customtheme #imagemodal{background: url(\"../img/pixel.svg\");}";
|
||||||
|
} else {
|
||||||
|
var css = compatibleTheme(json)
|
||||||
|
}
|
||||||
|
e.sender.webContents.send('theme-css-response', css);
|
||||||
|
} catch (e) {
|
||||||
|
var css = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
function compatibleTheme(json) {
|
||||||
var primary = json.vars.primary;
|
var primary = json.vars.primary;
|
||||||
var secondary = json.vars.secondary;
|
var secondary = json.vars.secondary;
|
||||||
var text = json.vars.text;
|
var text = json.vars.text;
|
||||||
@@ -64,34 +172,34 @@ function css(mainWindow) {
|
|||||||
var selectedWithShare = "#003a30"
|
var selectedWithShare = "#003a30"
|
||||||
var gray = "#cccccc"
|
var gray = "#cccccc"
|
||||||
}
|
}
|
||||||
if (json.props) {
|
if (json.advanced) {
|
||||||
if (json.props.TheDeskAccent) {
|
if (json.advanced.TheDeskAccent) {
|
||||||
var emphasized = json.props.TheDeskAccent
|
var emphasized = json.advanced.TheDeskAccent
|
||||||
} else {
|
} else {
|
||||||
var emphasized = secondary
|
var emphasized = secondary
|
||||||
}
|
}
|
||||||
if (json.props.TheDeskActive) {
|
if (json.advanced.TheDeskActive) {
|
||||||
var active = json.props.TheDeskActive
|
var active = json.advanced.TheDeskActive
|
||||||
} else {
|
} else {
|
||||||
var active = primary
|
var active = primary
|
||||||
}
|
}
|
||||||
if (json.props.TheDeskModal) {
|
if (json.advanced.TheDeskModal) {
|
||||||
var modal = json.props.TheDeskModal
|
var modal = json.advanced.TheDeskModal
|
||||||
} else {
|
} else {
|
||||||
var modal = secondary
|
var modal = secondary
|
||||||
}
|
}
|
||||||
if (json.props.TheDeskBottom) {
|
if (json.advanced.TheDeskBottom) {
|
||||||
var bottom = json.props.TheDeskBottom
|
var bottom = json.advanced.TheDeskBottom
|
||||||
} else {
|
} else {
|
||||||
var bottom = primary
|
var bottom = primary
|
||||||
}
|
}
|
||||||
if (json.props.TheDeskPostbox) {
|
if (json.advanced.TheDeskPostbox) {
|
||||||
var postbox = json.props.TheDeskPostbox
|
var postbox = json.advanced.TheDeskPostbox
|
||||||
} else {
|
} else {
|
||||||
var postbox = primary
|
var postbox = primary
|
||||||
}
|
}
|
||||||
if (json.props.TheDeskSubcolor) {
|
if (json.advanced.TheDeskSubcolor) {
|
||||||
var subcolor = json.props.TheDeskSubcolor
|
var subcolor = json.advanced.TheDeskSubcolor
|
||||||
} else {
|
} else {
|
||||||
var subcolor = primary
|
var subcolor = primary
|
||||||
}
|
}
|
||||||
@@ -106,26 +214,43 @@ function css(mainWindow) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var css = ".customtheme {--bg:" + secondary + ";--drag:" + drag + ";" +
|
var css = ".customtheme {--bg:" + secondary + ";--drag:" + drag + ";" +
|
||||||
"--color:" + text + ";--beforehover:" + beforehover + ";--modal:" +
|
"--text:" + text + ";--beforehover:" + beforehover + ";--modal:" +
|
||||||
modal + ";--subcolor:" + subcolor + ";--box:" + subcolor +
|
modal + ";--thirdColor:" + subcolor + ";--subcolor:" + subcolor +
|
||||||
";--sidebar:" + bottom + ";--shared:" + emphasized + ";" +
|
";--bottom:" + bottom + ";--accent:" + emphasized + ";" +
|
||||||
"--notfbox:" + secondary + ";--emphasized:" + active + ";--his-data:" +
|
"--subcolor:" + secondary + ";--emphasized:" + active + ";--his-data:" +
|
||||||
secondary +
|
secondary +
|
||||||
";--active:" + active + ";--postbox:" + postbox + ";--modalfooter:" +
|
";--active:" + active + ";--postbox:" + postbox + ";--modalfooter:" +
|
||||||
primary +
|
primary +
|
||||||
";--accentbtn:" + subcolor + ";--selected:" + selected + ";--selectedWithShare:" + selectedWithShare + "}"+
|
";--active:" + subcolor + ";--selected:" + selected + ";--selectedWithShare:" + selectedWithShare + "}" +
|
||||||
"--gray:" + gray + ";" +
|
"--gray:" + gray + ";" +
|
||||||
".customtheme #imagemodal{background: url(\"../img/pixel.svg\");}";
|
".customtheme #imagemodal{background: url(\"../img/pixel.svg\");}";
|
||||||
e.sender.webContents.send('theme-css-response', css);
|
return css
|
||||||
} catch (e) {
|
|
||||||
var css = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
|
||||||
ipc.on('theme-json-list', function (e, arg) {
|
ipc.on('theme-json-list', function (e, arg) {
|
||||||
fs.readdir(app.getPath("userData"), function (err, files) {
|
var files1 = fs.readdirSync(join(app.getAppPath(), '/source/themes'))
|
||||||
if (err || !files) throw err;
|
var file1List = files1.filter(function (file) {
|
||||||
var fileList = files.filter(function (file) {
|
if (file.match(/\.thedesktheme$/)) {
|
||||||
|
var tfile = join(app.getAppPath(), '/source/themes', file)
|
||||||
|
return fs.statSync(tfile).isFile() && /.*\.thedesktheme$/.test(tfile)
|
||||||
|
} else {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
var themes = [];
|
||||||
|
for (var i = 0; i < file1List.length; i++) {
|
||||||
|
var themecss = join(app.getAppPath(), '/source/themes', file1List[i]);
|
||||||
|
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'));
|
||||||
|
let compat = true
|
||||||
|
if (json.version) compat = false
|
||||||
|
themes.push({
|
||||||
|
name: json.name,
|
||||||
|
id: json.id,
|
||||||
|
compatible: compat,
|
||||||
|
default: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
var files2 = fs.readdirSync(app.getPath("userData"))
|
||||||
|
var file2List = files2.filter(function (file) {
|
||||||
if (file.match(/\.thedesktheme$/)) {
|
if (file.match(/\.thedesktheme$/)) {
|
||||||
var tfile = join(app.getPath("userData"), file)
|
var tfile = join(app.getPath("userData"), file)
|
||||||
return fs.statSync(tfile).isFile() && /.*\.thedesktheme$/.test(tfile)
|
return fs.statSync(tfile).isFile() && /.*\.thedesktheme$/.test(tfile)
|
||||||
@@ -133,17 +258,19 @@ function css(mainWindow) {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
var themes = [];
|
for (var i = 0; i < file2List.length; i++) {
|
||||||
for (var i = 0; i < fileList.length; i++) {
|
var themecss = join(app.getPath("userData"), file2List[i]);
|
||||||
var themecss = join(app.getPath("userData"), fileList[i]);
|
|
||||||
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'));
|
var json = JSON5.parse(fs.readFileSync(themecss, 'utf8'));
|
||||||
|
let compat = true
|
||||||
|
if (json.version) compat = false
|
||||||
themes.push({
|
themes.push({
|
||||||
name: json.name,
|
name: json.name,
|
||||||
id: json.id
|
id: json.id,
|
||||||
|
compatible: compat,
|
||||||
|
default: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
e.sender.webContents.send('theme-json-list-response', themes);
|
e.sender.webContents.send('theme-json-list-response', themes);
|
||||||
});
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
exports.css = css;
|
exports.css = css;
|
||||||
|
@@ -28,6 +28,7 @@ function dl(mainWindow, lang_path, base, dirname) {
|
|||||||
show: false
|
show: false
|
||||||
})
|
})
|
||||||
var lang = fs.readFileSync(lang_path, 'utf8')
|
var lang = fs.readFileSync(lang_path, 'utf8')
|
||||||
|
//updatewin.toggleDevTools()
|
||||||
updatewin.loadURL(base + lang + '/update.html')
|
updatewin.loadURL(base + lang + '/update.html')
|
||||||
updatewin.webContents.once('dom-ready', () => {
|
updatewin.webContents.once('dom-ready', () => {
|
||||||
updatewin.show()
|
updatewin.show()
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
// Create the Application's main menu
|
// Create the Application's main menu
|
||||||
function templete(lang, mainWindow, packaged, dir, dirname, frame) {
|
function templete(lang, mainWindow, packaged, dir, dirname) {
|
||||||
//フレーム
|
//フレーム
|
||||||
if(lang !="ja" && lang != "en"){
|
if(lang !="ja" && lang != "en"){
|
||||||
lang = "en"
|
lang = "en"
|
||||||
@@ -9,11 +9,6 @@ function templete(lang, mainWindow, packaged, dir, dirname, frame) {
|
|||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
const BrowserWindow = electron.BrowserWindow;
|
const BrowserWindow = electron.BrowserWindow;
|
||||||
const join = require('path').join;
|
const join = require('path').join;
|
||||||
ipc.on("frameCheck", function(e, arg) {
|
|
||||||
if(!frame) {
|
|
||||||
e.sender.webContents.send("frame", "");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
const dict = {
|
const dict = {
|
||||||
"application": {
|
"application": {
|
||||||
"ja": "アプリケーション",
|
"ja": "アプリケーション",
|
||||||
|
@@ -188,8 +188,8 @@ function system(mainWindow, dir, lang, dirname) {
|
|||||||
})
|
})
|
||||||
function mems() {
|
function mems() {
|
||||||
var mem = os.totalmem() - os.freemem()
|
var mem = os.totalmem() - os.freemem()
|
||||||
if (mainWindow) {
|
if (mainWindow && event.webContents) {
|
||||||
event.webContents.send('memory', [mem, os.cpus()[0].model, os.totalmem()])
|
event.webContents.send('memory', [mem, os.cpus()[0].model, os.totalmem(), os.cpus().length, os.uptime()])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ipc.on('endmem', (e, arg) => {
|
ipc.on('endmem', (e, arg) => {
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
[
|
[
|
||||||
"TheDeskは自称ステイホームの必須アイテム",
|
|
||||||
"あと数秒でPCのファンが全力で回り始める",
|
"あと数秒でPCのファンが全力で回り始める",
|
||||||
"カラムの数だけ夢があるがネットワークは逼迫する",
|
"カラムの数だけ夢があるがネットワークは逼迫する",
|
||||||
"朝起きたらストリーミングが止まっていた…",
|
"朝起きたらストリーミングが止まっていた…",
|
||||||
@@ -50,5 +49,11 @@
|
|||||||
"N押すとトゥートのボックスが出て、すぐ打ち込める。",
|
"N押すとトゥートのボックスが出て、すぐ打ち込める。",
|
||||||
"Xを押すとトゥートのボックスは出るけど、打ち込めない。その代わりもう一度押すと消せる。",
|
"Xを押すとトゥートのボックスは出るけど、打ち込めない。その代わりもう一度押すと消せる。",
|
||||||
"トゥートした後ボックスを閉じるとかそのままにしておくとかは、設定で変えられます。",
|
"トゥートした後ボックスを閉じるとかそのままにしておくとかは、設定で変えられます。",
|
||||||
"OpenStickerへの登録データ募集中"
|
"OpenStickerへの登録データ募集中",
|
||||||
|
"Microsoft Store版のアップデートは向こうに止められてます",
|
||||||
|
"いのちの輝き版ロゴ",
|
||||||
|
"いのちの輝き版ロゴ",
|
||||||
|
"いのちの輝き版ロゴ",
|
||||||
|
"いのちの輝き版ロゴ",
|
||||||
|
"いのちの輝き版ロゴ"
|
||||||
]
|
]
|
@@ -6,6 +6,7 @@
|
|||||||
<link href="./css/tl.css" type="text/css" rel="stylesheet" />
|
<link href="./css/tl.css" type="text/css" rel="stylesheet" />
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
||||||
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" type="text/css" rel="stylesheet">
|
<link href="./node_modules/@fortawesome/fontawesome-free/css/all.min.css" type="text/css" rel="stylesheet">
|
||||||
|
<script type="text/javascript" src="./node_modules/grapheme-splitter/index.js"></script>
|
||||||
<title>TheDesk Nano</title>
|
<title>TheDesk Nano</title>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
@@ -15,7 +16,7 @@
|
|||||||
height: 100vh;
|
height: 100vh;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
color: var(--color) !important;
|
color: var(--text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -44,7 +45,7 @@
|
|||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
color: var(--color) !important;
|
color: var(--text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
@@ -82,12 +83,16 @@
|
|||||||
.cvo {
|
.cvo {
|
||||||
grid-template-rows: auto 1rem 1fr auto 2rem;
|
grid-template-rows: auto 1rem 1fr auto 2rem;
|
||||||
}
|
}
|
||||||
|
.voice {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js"></script>
|
<script type="text/javascript" src="./node_modules/jquery/dist/jquery.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
var pwa = false
|
||||||
$.strip_tags = function(str, allowed) {
|
$.strip_tags = function(str, allowed) {
|
||||||
if (!str) {
|
if (!str) {
|
||||||
return "";
|
return "";
|
||||||
@@ -141,7 +146,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script>
|
<script src="https://twemoji.maxcdn.com/2/twemoji.min.js?2.7"></script>
|
||||||
<script type="text/javascript" src="view/en/main.js"></script>
|
<script type="text/javascript" src="./js/platform/first.js"></script>
|
||||||
<script type="text/javascript" src="./js/post/status.js"></script>
|
<script type="text/javascript" src="./js/post/status.js"></script>
|
||||||
<script type="text/javascript" src="./js/post/post.js"></script>
|
<script type="text/javascript" src="./js/post/post.js"></script>
|
||||||
<script type="text/javascript" src="./js/post/use-txtbox.js"></script>
|
<script type="text/javascript" src="./js/post/use-txtbox.js"></script>
|
||||||
|
@@ -75,7 +75,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="center" style="overflow: hidden;">
|
<body class="center" style="overflow: hidden;">
|
||||||
<img src="./img/desk-animation.svg" style="max-width: 62%;" />
|
<img src="./img/desk-animation.svg" id="leader" style="max-width: 62%;" />
|
||||||
<h1>TheDesk</h1>
|
<h1>TheDesk</h1>
|
||||||
<span id="ver"></span><br />
|
<span id="ver"></span><br />
|
||||||
<span class="loading"></span><br />
|
<span class="loading"></span><br />
|
||||||
@@ -84,11 +84,12 @@
|
|||||||
<script>
|
<script>
|
||||||
if (location.search) {
|
if (location.search) {
|
||||||
var m = location.search.match(/\?ver=([0-9.]+)&codename=([a-zA-Z]+)&maxim=(.+)/)
|
var m = location.search.match(/\?ver=([0-9.]+)&codename=([a-zA-Z]+)&maxim=(.+)/)
|
||||||
|
var maxim = decodeURI(m[3])
|
||||||
|
if(maxim == 'いのちの輝き版ロゴ') document.getElementById('leader').setAttribute('src', './img/2025.svg')
|
||||||
var ver = m[1]
|
var ver = m[1]
|
||||||
var code = m[2]
|
var code = m[2]
|
||||||
var maxim = m[3]
|
|
||||||
document.getElementById('ver').innerText = `${ver}(${code})`
|
document.getElementById('ver').innerText = `${ver}(${code})`
|
||||||
document.getElementById('maxim').innerText = `${decodeURI(maxim)}`
|
document.getElementById('maxim').innerText = maxim
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "thedesk",
|
"name": "thedesk",
|
||||||
"version": "21.0.5",
|
"version": "21.2.4",
|
||||||
"codename": "Mayu",
|
"codename": "Mayu",
|
||||||
"description": "TheDesk is a Mastodon client for PC.",
|
"description": "TheDesk is a Mastodon client for PC.",
|
||||||
"repository": "https://github.com/cutls/TheDesk",
|
"repository": "https://github.com/cutls/TheDesk",
|
||||||
@@ -8,14 +8,21 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"construct": "cd view/make && node make --automatic && cd ../../",
|
"construct": "cd view/make && node make --automatic && cd ../../",
|
||||||
|
"construct:store": "cd view/make && node make --automatic --store && cd ../../",
|
||||||
"dev": "npx electron ./ --dev",
|
"dev": "npx electron ./ --dev",
|
||||||
"dist": "build --linux snap",
|
"dist": "build --linux snap",
|
||||||
"watchview": "node view/make/make.js --automatic --watch",
|
"watchview": "node view/make/make.js --automatic --watch",
|
||||||
"build:js": "node build.js",
|
"build:js": "node build.js",
|
||||||
"build": "node view/make/make.js --automatic && npx electron-builder",
|
"build": "node view/make/make.js --automatic && npx electron-builder",
|
||||||
"build:all": "npx electron-builder --win --linux",
|
"build:pwa": "node view/make/make.js --automatic --pwa",
|
||||||
"build:win": "npx electron-builder --win",
|
"build:win:web": "node view/make/make.js --automatic && npx electron-builder --win",
|
||||||
"build:pwa": "node view/make/make.js --automatic --pwa"
|
"build:win:msstore": "node view/make/make.js --automatic --store && npx electron-builder --win appx",
|
||||||
|
"build:linux:web": "node view/make/make.js --automatic && npx electron-builder --linux",
|
||||||
|
"build:linux:snapstore": "node view/make/make.js --automatic --store && npx electron-builder --linux",
|
||||||
|
"build:mac:web": "node view/make/make.js --automatic && npx electron-builder --mac",
|
||||||
|
"build:mac:homebrew": "node view/make/make.js --automatic --store && npx electron-builder --mac",
|
||||||
|
"lint:fix": "eslint js --fix",
|
||||||
|
"lint": "eslint js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"mastodon",
|
"mastodon",
|
||||||
@@ -33,7 +40,8 @@
|
|||||||
"url": "https://cutls.dev",
|
"url": "https://cutls.dev",
|
||||||
"email": "p@cutls.com"
|
"email": "p@cutls.com"
|
||||||
},
|
},
|
||||||
"contributor": [{
|
"contributor": [
|
||||||
|
{
|
||||||
"name": "とねぢ",
|
"name": "とねぢ",
|
||||||
"url": "https://minohdon.jp/@toneji",
|
"url": "https://minohdon.jp/@toneji",
|
||||||
"email": "solfa.tono@gmail.com"
|
"email": "solfa.tono@gmail.com"
|
||||||
@@ -52,27 +60,27 @@
|
|||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^5.14.0",
|
"@fortawesome/fontawesome-free": "^5.14.0",
|
||||||
"custom-electron-titlebar": "^3.2.3",
|
"electron-dl": "^3.0.2",
|
||||||
"electron-dl": "^3.0.1",
|
"jimp": "^0.16.1",
|
||||||
"jimp": "^0.14.0",
|
|
||||||
"jquery": "^3.5.1",
|
"jquery": "^3.5.1",
|
||||||
"jquery-ui-dist": "^1.12.1",
|
"jquery-ui-dist": "^1.12.1",
|
||||||
"json5": "^2.1.3",
|
"json5": "^2.1.3",
|
||||||
"lodash": "^4.17.19",
|
"lodash": "^4.17.20",
|
||||||
"materialize-css": "git://github.com/cutls/materialize#v1-dev",
|
"materialize-css": "git://github.com/cutls/materialize#v1-dev",
|
||||||
"sumchecker": "^3.0.1",
|
"sumchecker": "^3.0.1",
|
||||||
"sweetalert2": "^9.17.0",
|
"sweetalert2": "^10.3.5",
|
||||||
"system-font-families": "^0.4.1",
|
"system-font-families": "^0.4.1",
|
||||||
"vue": "^2.6.11"
|
"vue": "^2.6.12"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"itunes-nowplaying-mac": "0.3.1"
|
"itunes-nowplaying-mac": "0.3.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chokidar": "^3.4.1",
|
"chokidar": "^3.4.2",
|
||||||
"electron": "^9.1.1",
|
"electron": "^10.1.2",
|
||||||
"electron-builder": "^22.7.0",
|
"electron-builder": "^22.8.1",
|
||||||
"electron-rebuild": "^1.11.0",
|
"electron-rebuild": "^2.0.3",
|
||||||
|
"eslint": "^7.9.0",
|
||||||
"readline-sync": "1.4.10"
|
"readline-sync": "1.4.10"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
@@ -88,8 +96,8 @@
|
|||||||
"icon": "build/thedesk.ico",
|
"icon": "build/thedesk.ico",
|
||||||
"target": [
|
"target": [
|
||||||
"nsis",
|
"nsis",
|
||||||
"portable",
|
"appx",
|
||||||
"appx"
|
"portable"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"appx": {
|
"appx": {
|
||||||
@@ -111,6 +119,7 @@
|
|||||||
"icon": "build/icons",
|
"icon": "build/icons",
|
||||||
"target": [
|
"target": [
|
||||||
"zip",
|
"zip",
|
||||||
|
"appImage",
|
||||||
"snap",
|
"snap",
|
||||||
"deb"
|
"deb"
|
||||||
],
|
],
|
||||||
|
BIN
app/source/bubble.wav
Normal file
BIN
app/source/bubble.wav
Normal file
Binary file not shown.
27
app/source/themes/black.thedesktheme
Normal file
27
app/source/themes/black.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Black',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'dark',
|
||||||
|
primary: {
|
||||||
|
background: '#212121',
|
||||||
|
subcolor: '#424242',
|
||||||
|
text: '#fff',
|
||||||
|
accent: '#004d40',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#000',
|
||||||
|
modalFooter: '#212121',
|
||||||
|
third: '#212121',
|
||||||
|
forth: '#333333',
|
||||||
|
bottom: '#424242',
|
||||||
|
emphasized: '#4e342e',
|
||||||
|
postbox: '#424242',
|
||||||
|
active: '#3f51b5',
|
||||||
|
selected: '#3f3f3f',
|
||||||
|
selectedWithShared: '#003a30',
|
||||||
|
},
|
||||||
|
id: 'black',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/blue.thedesktheme
Normal file
27
app/source/themes/blue.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Blue',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'light',
|
||||||
|
primary: {
|
||||||
|
background: '#c9e1ec',
|
||||||
|
subcolor: '#dff1ff',
|
||||||
|
text: '#000',
|
||||||
|
accent: '#e0ffe4',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#b2ebf2',
|
||||||
|
modalFooter: '#2196f3',
|
||||||
|
third: '#90caf9',
|
||||||
|
forth: '#90caf9',
|
||||||
|
bottom: '#b6e6f5',
|
||||||
|
emphasized: '#c5e1a5',
|
||||||
|
postbox: '#dff1ff',
|
||||||
|
active: '#2f7bb7',
|
||||||
|
selected: '#9dcade',
|
||||||
|
selectedWithShared: '#c1dac4',
|
||||||
|
},
|
||||||
|
id: 'blue',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/brown.thedesktheme
Normal file
27
app/source/themes/brown.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Brown',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'dark',
|
||||||
|
primary: {
|
||||||
|
background: '#261411',
|
||||||
|
subcolor: '#4e342e',
|
||||||
|
text: '#fff',
|
||||||
|
accent: '#004d40',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#261411',
|
||||||
|
modalFooter: '#261411',
|
||||||
|
third: '#4e342e',
|
||||||
|
forth: '#4e342e',
|
||||||
|
bottom: '#4e342e',
|
||||||
|
emphasized: '#0d47a1',
|
||||||
|
postbox: '#4e342e',
|
||||||
|
active: '#827717',
|
||||||
|
selected: '#6d352b',
|
||||||
|
selectedWithShared: '#003a30',
|
||||||
|
},
|
||||||
|
id: 'brown',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/green.thedesktheme
Normal file
27
app/source/themes/green.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Green',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'light',
|
||||||
|
primary: {
|
||||||
|
background: '#c8e6c9',
|
||||||
|
subcolor: '#a5d6a7',
|
||||||
|
text: '#000',
|
||||||
|
accent: '#ffcc80',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#81c784',
|
||||||
|
modalFooter: '#81c784',
|
||||||
|
third: '#a5d6a7',
|
||||||
|
forth: '#81c784',
|
||||||
|
bottom: '#c5e1a5',
|
||||||
|
emphasized: '#9e9d24',
|
||||||
|
postbox: '#a5d6a7',
|
||||||
|
active: '#33691e',
|
||||||
|
selected: '#78c17a',
|
||||||
|
selectedWithShared: '#caa266',
|
||||||
|
},
|
||||||
|
id: 'green',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/indigo.thedesktheme
Normal file
27
app/source/themes/indigo.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Indigo',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'dark',
|
||||||
|
primary: {
|
||||||
|
background: '#031833',
|
||||||
|
subcolor: '#1a237e',
|
||||||
|
text: '#fff',
|
||||||
|
accent: '#004d40',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#0d1351',
|
||||||
|
modalFooter: '#031833',
|
||||||
|
third: '#0d1351',
|
||||||
|
forth: '#0d47a1',
|
||||||
|
bottom: '#0d1351',
|
||||||
|
emphasized: '#4e342e',
|
||||||
|
postbox: '#1a237e',
|
||||||
|
active: '#00acc1',
|
||||||
|
selected: '#214f8a',
|
||||||
|
selectedWithShared: '#003a30',
|
||||||
|
},
|
||||||
|
id: 'indigo',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/polar.thedesktheme
Normal file
27
app/source/themes/polar.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Polar Night',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'dark',
|
||||||
|
primary: {
|
||||||
|
background: '#2e3440',
|
||||||
|
subcolor: '#434c5e',
|
||||||
|
text: '#ffffff',
|
||||||
|
accent: '#2d3b58',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#3b4252',
|
||||||
|
modalFooter: '#485166',
|
||||||
|
third: '#434c5e',
|
||||||
|
forth: '#4c566a',
|
||||||
|
bottom: '#3b4252',
|
||||||
|
emphasized: '#2f4b86',
|
||||||
|
postbox: '#434c5e',
|
||||||
|
active: '#2f4b86',
|
||||||
|
selected: '#464f61',
|
||||||
|
selectedWithShared: '#3e527e',
|
||||||
|
},
|
||||||
|
id: 'polar',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/snow.thedesktheme
Normal file
27
app/source/themes/snow.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'Snow Storm',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'light',
|
||||||
|
primary: {
|
||||||
|
background: '#eceff4',
|
||||||
|
subcolor: '#d8dee9',
|
||||||
|
text: '#36425a',
|
||||||
|
accent: '#c3d4e6',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#e5e9f0',
|
||||||
|
modalFooter: '#b2bed4',
|
||||||
|
third: '#d8dee9',
|
||||||
|
forth: '#4c566a',
|
||||||
|
bottom: '#eeeeee',
|
||||||
|
emphasized: '#88c0d0',
|
||||||
|
postbox: '#d8dee9',
|
||||||
|
active: '#81a1c1',
|
||||||
|
selected: '#b4bdd0',
|
||||||
|
selectedWithShared: '#a3afbb',
|
||||||
|
},
|
||||||
|
id: 'snow',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
27
app/source/themes/white.thedesktheme
Normal file
27
app/source/themes/white.thedesktheme
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
name: 'White',
|
||||||
|
author: 'TheDesk',
|
||||||
|
desc: 'TheDesk Default Theme',
|
||||||
|
base: 'light',
|
||||||
|
primary: {
|
||||||
|
background: '#fff',
|
||||||
|
subcolor: '#fff',
|
||||||
|
text: '#000',
|
||||||
|
accent: '#cfd8dc',
|
||||||
|
},
|
||||||
|
advanced: {
|
||||||
|
modal: '#fff',
|
||||||
|
modalFooter: '#fafafa',
|
||||||
|
third: '#e0e0e0',
|
||||||
|
forth: '#fff',
|
||||||
|
bottom: '#eeeeee',
|
||||||
|
emphasized: '#81c784',
|
||||||
|
postbox: '#fff',
|
||||||
|
active: '#009688',
|
||||||
|
selected: '#c0c0c0',
|
||||||
|
selectedWithShared: '#b2babd',
|
||||||
|
},
|
||||||
|
id: 'white',
|
||||||
|
version: '2',
|
||||||
|
default: true
|
||||||
|
}
|
@@ -1,5 +1,7 @@
|
|||||||
{
|
{
|
||||||
"latest":[],
|
"latest":[],
|
||||||
|
"3.2.0": [],
|
||||||
|
"3.1.5": [],
|
||||||
"3.1.4": [
|
"3.1.4": [
|
||||||
"リモート限定の連合タイムライン"
|
"リモート限定の連合タイムライン"
|
||||||
],
|
],
|
||||||
|
@@ -3,12 +3,12 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Account Manager - TheDesk</title>
|
<title>Account Manager - TheDesk</title>
|
||||||
<meta content="width=device-width,initial-scale=1.0" name="viewport" />
|
<meta content="width=device-width,initial-scale=1.0" name="viewport" />
|
||||||
|
<link href="../../css/themes.css" type="text/css" rel="stylesheet">
|
||||||
<link
|
<link
|
||||||
href="../../@@node_base@@/materialize-css/dist/css/materialize.css"
|
href="../../@@node_base@@/materialize-css/dist/css/materialize.css"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<link href="../../css/themes.css" type="text/css" rel="stylesheet" />
|
|
||||||
<link href="../../css/master.css" type="text/css" rel="stylesheet" />
|
<link href="../../css/master.css" type="text/css" rel="stylesheet" />
|
||||||
<link href="../../css/tl.css" rel="stylesheet" type="text/css" />
|
<link href="../../css/tl.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="../../css/userdata.css" rel="stylesheet" type="text/css" />
|
<link href="../../css/userdata.css" rel="stylesheet" type="text/css" />
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
<script type="text/javascript" src="https://cdn.crowdin.com/jipt/jipt.js"></script>
|
||||||
@@comment-end@@
|
@@comment-end@@
|
||||||
@@pwa@@
|
@@pwa@@ @@store@@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="mainView" class="@@pwaClass@@">
|
<body id="mainView" class="@@pwaClass@@">
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notifications",
|
"notf": "Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL": "Show this TL:",
|
"showThisTL": "Show this TL:",
|
||||||
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"sortSet": "Sort",
|
"sortSet": "Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
@@ -101,8 +109,8 @@
|
|||||||
"or": "or",
|
"or": "or",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://github.com/MiyonMiyon/InstanceTicker_List\">About #InstanceTicker</a> (c)2018-2020 MiyonMiyon. Released under the MIT License.",
|
"tickerwarn": "Show the instance name and favicon of tooters <a href=\"https://opensticker.0px.io\">About OpenSticker</a>",
|
||||||
"animation": "Animation of timelines",
|
"animation": "Animation of timelines",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notifications",
|
"notf": "Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL": "Show this TL:",
|
"showThisTL": "Show this TL:",
|
||||||
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"sortSet": "Sort",
|
"sortSet": "Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
@@ -101,8 +109,8 @@
|
|||||||
"or": "or",
|
"or": "or",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://github.com/MiyonMiyon/InstanceTicker_List\">About #InstanceTicker</a> (c)2018-2020 MiyonMiyon. Released under the MIT License.",
|
"tickerwarn": "Show the instance name and favicon of tooters <a href=\"https://opensticker.0px.io\">About OpenSticker</a>",
|
||||||
"animation": "Animation of timelines",
|
"animation": "Animation of timelines",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
||||||
|
@@ -136,7 +136,11 @@
|
|||||||
"lang_layout_nodata": "[Няма данни]<br>F5/⌘+R за презареждане",
|
"lang_layout_nodata": "[Няма данни]<br>F5/⌘+R за презареждане",
|
||||||
"lang_layout_dm": "Директни съобщения",
|
"lang_layout_dm": "Директни съобщения",
|
||||||
"lang_layout_webviewmode": "Предпочитания за WebView",
|
"lang_layout_webviewmode": "Предпочитания за WebView",
|
||||||
"lang_excluded": "Изключване на вид уведомление",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
"lang_layout_excludingbt": "Показване в BT режим (ИЗКЛ./Изключване BT/ Само в BT)",
|
"lang_layout_excludingbt": "Показване в BT режим (ИЗКЛ./Изключване BT/ Само в BT)",
|
||||||
"lang_layout_leftFold": "Стъпка наляво",
|
"lang_layout_leftFold": "Стъпка наляво",
|
||||||
"lang_layout_leftUnfold": "Док отдясно",
|
"lang_layout_leftUnfold": "Док отдясно",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Показване на вграденият HTML код",
|
"lang_parse_html": "Показване на вграденият HTML код",
|
||||||
"lang_parse_notffilter": "Показване на известията от този потребител",
|
"lang_parse_notffilter": "Показване на известията от този потребител",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Повторно публикуване",
|
"lang_misskeyparse_renote": "Повторно публикуване",
|
||||||
"lang_misskeyparse_renoteqt": "Повторна бележка",
|
"lang_misskeyparse_renoteqt": "Повторна бележка",
|
||||||
"lang_misskeyparse_reaction": "Реакция",
|
"lang_misskeyparse_reaction": "Реакция",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " реагирали на следващата ви публикация.",
|
"lang_misskeyparse_reacted": " реагирали на следващата ви публикация.",
|
||||||
"lang_setting_time": "Времеви формат:{{set}}",
|
"lang_setting_time": "Времеви формат:{{set}}",
|
||||||
"lang_setting_theme": "Тема:{{set}}",
|
"lang_setting_theme": "Тема:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "NSFW:{{set}}",
|
"lang_setting_nsfw": "NSFW:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Вътрешно уведомяване",
|
"nativenotf": "Вътрешно уведомяване",
|
||||||
"nnwarn": "Това не работи в Windows Portable вер.",
|
"nnwarn": "Това не работи в Windows Portable вер.",
|
||||||
"nntest": "Тест за уведомяване",
|
"nntest": "Тест за уведомяване",
|
||||||
"minwidth": "Минимална ширина на колоните",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Лентата за превъртане ще се покаже, когато размерът на прозореца е по-голям от размера на колони.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Минимална ширина на браузъра TweetDeck",
|
"fixwidth": "Минимална ширина на браузъра TweetDeck",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "над",
|
"above": "над",
|
||||||
"font": "Шрифт",
|
"font": "Шрифт",
|
||||||
"fontwarn": "Изберете любимия си шрифт с „Избор“ (само за Windows / macOS)",
|
"fontwarn": "Изберете любимия си шрифт с „Избор“ (само за Windows / macOS)",
|
||||||
@@ -45,17 +46,24 @@
|
|||||||
"themeSel": "Изберете тема",
|
"themeSel": "Изберете тема",
|
||||||
"customtheme": "Редактирайте и добавете персонализирани теми",
|
"customtheme": "Редактирайте и добавете персонализирани теми",
|
||||||
"customthemeDirection": "Цветова схема",
|
"customthemeDirection": "Цветова схема",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Цвят на фона",
|
|
||||||
"secondarycolor": "Компоненти на фона",
|
|
||||||
"text": "Цвят на текста",
|
"text": "Цвят на текста",
|
||||||
"accent": "Фон на подсилването",
|
"accent": "Фон на подсилването",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Добавяне на нов",
|
"add_new": "Добавяне на нов",
|
||||||
"name": "Име",
|
"name": "Име",
|
||||||
"desc": "Относно тази тема",
|
"desc": "Относно тази тема",
|
||||||
@@ -101,7 +109,7 @@
|
|||||||
"or": "или",
|
"or": "или",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://cdn.weep.me/mastodon/\">About #InstanceTicker</a> Copyright 2018 weepjp, kyori19.",
|
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://cdn.weep.me/mastodon/\">About #InstanceTicker</a> Copyright 2018 weepjp, kyori19.",
|
||||||
"animation": "Анимация на времевата линия",
|
"animation": "Анимация на времевата линия",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notifications",
|
"notf": "Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL": "Show this TL:",
|
"showThisTL": "Show this TL:",
|
||||||
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"sortSet": "Sort",
|
"sortSet": "Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
@@ -101,8 +109,8 @@
|
|||||||
"or": "or",
|
"or": "or",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://github.com/MiyonMiyon/InstanceTicker_List\">About #InstanceTicker</a> (c)2018-2020 MiyonMiyon. Released under the MIT License.",
|
"tickerwarn": "Show the instance name and favicon of tooters <a href=\"https://opensticker.0px.io\">About OpenSticker</a>",
|
||||||
"animation": "Animation of timelines",
|
"animation": "Animation of timelines",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
||||||
|
@@ -136,7 +136,11 @@
|
|||||||
"lang_layout_nodata": "[Žádná data]<br>Obnovte stránku klávesami F5/⌘+R",
|
"lang_layout_nodata": "[Žádná data]<br>Obnovte stránku klávesami F5/⌘+R",
|
||||||
"lang_layout_dm": "Přímá zpráva",
|
"lang_layout_dm": "Přímá zpráva",
|
||||||
"lang_layout_webviewmode": "Preferovat WebView",
|
"lang_layout_webviewmode": "Preferovat WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Znovusdílení",
|
"lang_misskeyparse_renote": "Znovusdílení",
|
||||||
"lang_misskeyparse_renoteqt": "Renotování",
|
"lang_misskeyparse_renoteqt": "Renotování",
|
||||||
"lang_misskeyparse_reaction": "Reakce",
|
"lang_misskeyparse_reaction": "Reakce",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reagoval/a na váš následující příspěvek.",
|
"lang_misskeyparse_reacted": " reagoval/a na váš následující příspěvek.",
|
||||||
"lang_setting_time": "Časový formát: {{set}}",
|
"lang_setting_time": "Časový formát: {{set}}",
|
||||||
"lang_setting_theme": "Motiv: {{set}}",
|
"lang_setting_theme": "Motiv: {{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Citlivý obsah: {{set}}",
|
"lang_setting_nsfw": "Citlivý obsah: {{set}}",
|
||||||
"lang_setting_cw": "Varování: {{set}}",
|
"lang_setting_cw": "Varování: {{set}}",
|
||||||
"lang_setting_cwtext": "Výchozí text varování: {{set}}",
|
"lang_setting_cwtext": "Výchozí text varování: {{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Odskoušet oznámení",
|
"nntest": "Odskoušet oznámení",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimální šířka TweetDeck prohlížeče",
|
"fixwidth": "Minimální šířka TweetDeck prohlížeče",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Písmo",
|
"font": "Písmo",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -45,17 +46,24 @@
|
|||||||
"themeSel": "Vybrat motiv",
|
"themeSel": "Vybrat motiv",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add custom themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notifications",
|
"notf": "Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL": "Show this TL:",
|
"showThisTL": "Show this TL:",
|
||||||
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"sortSet": "Sort",
|
"sortSet": "Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
@@ -101,8 +109,8 @@
|
|||||||
"or": "or",
|
"or": "or",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://github.com/MiyonMiyon/InstanceTicker_List\">About #InstanceTicker</a> (c)2018-2020 MiyonMiyon. Released under the MIT License.",
|
"tickerwarn": "Show the instance name and favicon of tooters <a href=\"https://opensticker.0px.io\">About OpenSticker</a>",
|
||||||
"animation": "Animation of timelines",
|
"animation": "Animation of timelines",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"list": "Accountliste",
|
"list": "Konten",
|
||||||
"back": "Zurück",
|
"back": "Zurück",
|
||||||
"add": "Konto hinzufügen",
|
"add": "Konto hinzufügen",
|
||||||
"addAcct": "Fill the instance domain (like mastodon.social)",
|
"addAcct": "Geben Sie die Instanz-Domain ein (wie mastodon.social)",
|
||||||
"codesetupwarn": "Check if TheDesk is not working on Windows, you want to login Pleroma servers, you cannot login when it checked.",
|
"codesetupwarn": "Check if TheDesk is not working on Windows, you want to login Pleroma servers, you cannot login when it checked.",
|
||||||
"codesetup": "Code-Setup",
|
"codesetup": "Code-Setup",
|
||||||
"mainacct": "Hauptkonto",
|
"mainacct": "Hauptkonto",
|
||||||
@@ -21,5 +21,5 @@
|
|||||||
"misskeylogin": "Lies die <a href=\"https://thedesk.top/how-to-misskey-login.html\">Doku (japanisch)</a> um dich bei Misskey einzuloggen.",
|
"misskeylogin": "Lies die <a href=\"https://thedesk.top/how-to-misskey-login.html\">Doku (japanisch)</a> um dich bei Misskey einzuloggen.",
|
||||||
"nodata": "Keine Daten",
|
"nodata": "Keine Daten",
|
||||||
"accessTokenSetup": "Benutze Zugangs-Token zum Anmelden (Klicke nach Ausfüllen nicht den Code, sondern den Access-Token im Kästchen: Erweitert)",
|
"accessTokenSetup": "Benutze Zugangs-Token zum Anmelden (Klicke nach Ausfüllen nicht den Code, sondern den Access-Token im Kästchen: Erweitert)",
|
||||||
"haveExported": "Having the exported file of TheDesk, click here to jump setting page"
|
"haveExported": "Haben Sie eine exportierte Datei von TheDesk, klicken Sie hier für die Einstellungen"
|
||||||
}
|
}
|
@@ -20,8 +20,8 @@
|
|||||||
"yes": "Ja",
|
"yes": "Ja",
|
||||||
"temp": "Dateien anhängen",
|
"temp": "Dateien anhängen",
|
||||||
"nothing": "Keine",
|
"nothing": "Keine",
|
||||||
"stamp": "Stamp",
|
"stamp": "Stempel",
|
||||||
"stampWarn": "Your acct(aa@bb.cc) is printed on the right-bottom of the uploaded image",
|
"stampWarn": "Ihr acct(aa@bb.cc) wird rechts unten des hochgeladenen Bildes gedruckt",
|
||||||
"vis": "Status Privatsphäre anpassen",
|
"vis": "Status Privatsphäre anpassen",
|
||||||
"cwtext": "Warntext",
|
"cwtext": "Warntext",
|
||||||
"selectVis": "Status Privatsphäre anpassen",
|
"selectVis": "Status Privatsphäre anpassen",
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"toots": "Tröts",
|
"toots": "Tröts",
|
||||||
"follow": "Folgen",
|
"follow": "Folgen",
|
||||||
"follower": "Abonnenten",
|
"follower": "Abonnenten",
|
||||||
"utlColumn": "Show as a column",
|
"utlColumn": "Als Spalte anzeigen",
|
||||||
"timeline": "Verlauf",
|
"timeline": "Verlauf",
|
||||||
"operateOtherAcct": "Cross-Account",
|
"operateOtherAcct": "Cross-Account",
|
||||||
"list": "Liste",
|
"list": "Liste",
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
"filterWord": "Filterwörter",
|
"filterWord": "Filterwörter",
|
||||||
"degree": "Kontexte filtern",
|
"degree": "Kontexte filtern",
|
||||||
"conver": "Gespräche",
|
"conver": "Gespräche",
|
||||||
"prof": "Profiles",
|
"prof": "Profile",
|
||||||
"option": "Einstellungen",
|
"option": "Einstellungen",
|
||||||
"matchWord": "Ganze Wörter",
|
"matchWord": "Ganze Wörter",
|
||||||
"warnMatchWord": "Schön für lateinische Sprachen",
|
"warnMatchWord": "Schön für lateinische Sprachen",
|
||||||
@@ -184,5 +184,5 @@
|
|||||||
"acctManDesc": "Fügen Sie weitere Konten hinzu und loggen Sie sie aus.",
|
"acctManDesc": "Fügen Sie weitere Konten hinzu und loggen Sie sie aus.",
|
||||||
"settingDesc": "Hier sind sehr, sehr viele Einstellungen. Du könntest gar nicht alles ausprobieren!",
|
"settingDesc": "Hier sind sehr, sehr viele Einstellungen. Du könntest gar nicht alles ausprobieren!",
|
||||||
"nanoDescPlus": "Mini-Fenster-Klient (experimentell)",
|
"nanoDescPlus": "Mini-Fenster-Klient (experimentell)",
|
||||||
"menuDesc": "All daily TheDesk and Mastodon tuning like <b>add and sort columns</b>, <b>list and filter check</b>."
|
"menuDesc": "Alle täglichen TheDesk und Mastodon-Einstellungen wie <b>hinzufügen und sortieren von Spalten</b>, <b>Liste und Filter prüfen</b>."
|
||||||
}
|
}
|
@@ -136,7 +136,11 @@
|
|||||||
"lang_layout_nodata": "[Keine Daten]<br>F5/⌘+R zum Neu laden",
|
"lang_layout_nodata": "[Keine Daten]<br>F5/⌘+R zum Neu laden",
|
||||||
"lang_layout_dm": "Direkte Nachricht",
|
"lang_layout_dm": "Direkte Nachricht",
|
||||||
"lang_layout_webviewmode": "Web-Ansicht bevorzugen",
|
"lang_layout_webviewmode": "Web-Ansicht bevorzugen",
|
||||||
"lang_excluded": "Ausgeschlossene Benachrichtigungsart",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
"lang_layout_excludingbt": "BT-Modus anzeigen (aus/kein BT/Nur BT)",
|
"lang_layout_excludingbt": "BT-Modus anzeigen (aus/kein BT/Nur BT)",
|
||||||
"lang_layout_leftFold": "Nach links Stapeln",
|
"lang_layout_leftFold": "Nach links Stapeln",
|
||||||
"lang_layout_leftUnfold": "Rechts Anheften",
|
"lang_layout_leftUnfold": "Rechts Anheften",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Benachrichtigungen dieses Benutzers anzeigen",
|
"lang_parse_notffilter": "Benachrichtigungen dieses Benutzers anzeigen",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Weiterleiten",
|
"lang_misskeyparse_renote": "Weiterleiten",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaktion",
|
"lang_misskeyparse_reaction": "Reaktion",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " hat auf Ihren folgenden Beitrag reagiert.",
|
"lang_misskeyparse_reacted": " hat auf Ihren folgenden Beitrag reagiert.",
|
||||||
"lang_setting_time": "Zeitformat:{{set}}",
|
"lang_setting_time": "Zeitformat:{{set}}",
|
||||||
"lang_setting_theme": "Design:{{set}}",
|
"lang_setting_theme": "Design:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "NSFW:{{set}}",
|
"lang_setting_nsfw": "NSFW:{{set}}",
|
||||||
"lang_setting_cw": "NSFW:{{set}}",
|
"lang_setting_cw": "NSFW:{{set}}",
|
||||||
"lang_setting_cwtext": "Standard-NSFW-Text:{{set}}",
|
"lang_setting_cwtext": "Standard-NSFW-Text:{{set}}",
|
||||||
|
@@ -13,8 +13,8 @@
|
|||||||
"setlang": "Sprachen",
|
"setlang": "Sprachen",
|
||||||
"backup": "Import und Export von Einstellungen",
|
"backup": "Import und Export von Einstellungen",
|
||||||
"backupWarn": "If you got a error when you choose the file, please paste the strings printed when you open the file and click import",
|
"backupWarn": "If you got a error when you choose the file, please paste the strings printed when you open the file and click import",
|
||||||
"import": "Import",
|
"import": "Importieren",
|
||||||
"export": "Export",
|
"export": "Exportieren",
|
||||||
"hardwareAcceleration": "Hardwarebeschleunigung deaktivieren",
|
"hardwareAcceleration": "Hardwarebeschleunigung deaktivieren",
|
||||||
"hardwareAccelerationWarn": "Automatischer Neustart",
|
"hardwareAccelerationWarn": "Automatischer Neustart",
|
||||||
"theme": "Designs",
|
"theme": "Designs",
|
||||||
@@ -24,38 +24,46 @@
|
|||||||
"nativenotf": "System Benachrichtigungen",
|
"nativenotf": "System Benachrichtigungen",
|
||||||
"nnwarn": "Dies funktioniert nicht mit der Portablen Windows Version.",
|
"nnwarn": "Dies funktioniert nicht mit der Portablen Windows Version.",
|
||||||
"nntest": "Benachrichtigungen testen",
|
"nntest": "Benachrichtigungen testen",
|
||||||
"minwidth": "Minimale Breite der Spalten",
|
"width": "Spaltenbreite",
|
||||||
"minwidthwarn": "Die Scroll-Leiste wird angezeigt, wenn Spalten breiter als das Fenster sind.",
|
"widthwarn": "Die Bildlaufleiste wird angezeigt, wenn die Fenstergröße größer als die Spaltenanzahl ist.",
|
||||||
"fixwidth": "Minimale Breite des TweetDeck-Browsers",
|
"fixwidth": "Minimale Breite des TweetDeck-Browsers",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Abstand zwischen Zeitleisten",
|
||||||
"above": "über",
|
"above": "über",
|
||||||
"font": "Schriftart",
|
"font": "Schriftart",
|
||||||
"fontwarn": "Wählen Sie Ihre Lieblingsschrift. 'Select'(nur Windows/ macOS)",
|
"fontwarn": "Wählen Sie Ihre Lieblingsschrift. 'Select'(nur Windows/ macOS)",
|
||||||
"fontsize": "Schriftgröße",
|
"fontsize": "Schriftgröße",
|
||||||
"savefolder": "Ordner zum Speichern",
|
"savefolder": "Ordner zum Speichern",
|
||||||
"savefolderwarn": "TheDesk verwendet diesen Ordner, wenn es versucht Bilder zu speichern oder Screenshots zu machen.",
|
"savefolderwarn": "TheDesk verwendet diesen Ordner, wenn es versucht Bilder zu speichern oder Screenshots zu machen.",
|
||||||
"useragent": "User agent",
|
"useragent": "User-Agent",
|
||||||
"useragentWarn": "Restart when changed",
|
"useragentWarn": "Neustart bei Änderung",
|
||||||
"frame": "Window frame",
|
"frame": "Fensterrahmen",
|
||||||
"frameWarn": "If 'off', the window looks cool.",
|
"frameWarn": "If 'off', the window looks cool.",
|
||||||
"downloadWin": "Versioning(o Windows downloader)",
|
"downloadWin": "Versioning(o Windows downloader)",
|
||||||
"absolute": "Absoluter Wert",
|
"absolute": "Absoluter Wert",
|
||||||
"srcUrl": "Search engine",
|
"srcUrl": "Suchmaschine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Design auswählen",
|
"themeSel": "Design auswählen",
|
||||||
"customtheme": "Bearbeiten und hinzufügen von eigenen Designs",
|
"customtheme": "Bearbeiten und hinzufügen von eigenen Designs",
|
||||||
"customthemeDirection": "Farbschema",
|
"customthemeDirection": "Farbschema",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Erweiterte Einstellungen",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Kopieren von",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Hintergrundfarbe",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Hintergrundfarbe",
|
|
||||||
"secondarycolor": "Hintergrund der Komponenten",
|
|
||||||
"text": "Textfarbe",
|
"text": "Textfarbe",
|
||||||
"accent": "Hintergrund des Boosts",
|
"accent": "Hintergrund des Boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Neues hinzufügen",
|
"add_new": "Neues hinzufügen",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "Über dieses Design",
|
"desc": "Über dieses Design",
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notifications",
|
"notf": "Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL": "Show this TL:",
|
"showThisTL": "Show this TL:",
|
||||||
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn": "TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add": "Add",
|
"add": "Add",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"sortSet": "Sort",
|
"sortSet": "Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced": "Advanced options(6 additional colors)",
|
"advanced": "Advanced options",
|
||||||
"advancedWarn": "Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn": "",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom": "Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox": "Background of post box and menu",
|
"subcolor": "Distinguishable from background",
|
||||||
"subcolor": "Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom": "Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox": "Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
@@ -101,8 +109,8 @@
|
|||||||
"or": "or",
|
"or": "or",
|
||||||
"imgheight": "Height of images",
|
"imgheight": "Height of images",
|
||||||
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
"imgheightwarn": "Option:Set \"full\" to uncrop.",
|
||||||
"ticker": "Enable #InstanceTicker",
|
"ticker": "Enable OpenSticker",
|
||||||
"tickerwarn": "Show colorful stickers about the server. <a href=\"https://github.com/MiyonMiyon/InstanceTicker_List\">About #InstanceTicker</a> (c)2018-2020 MiyonMiyon. Released under the MIT License.",
|
"tickerwarn": "Show the instance name and favicon of tooters <a href=\"https://opensticker.0px.io\">About OpenSticker</a>",
|
||||||
"animation": "Animation of timelines",
|
"animation": "Animation of timelines",
|
||||||
"markers": "Markers(mark as read) on HTL and notifications",
|
"markers": "Markers(mark as read) on HTL and notifications",
|
||||||
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
"markerswarn": "Mastodon 3.0~. Shared on WebUI and third-party supported clients.",
|
||||||
|
@@ -136,7 +136,11 @@
|
|||||||
"lang_layout_nodata": "crwdns3656:0crwdne3656:0",
|
"lang_layout_nodata": "crwdns3656:0crwdne3656:0",
|
||||||
"lang_layout_dm": "crwdns3658:0crwdne3658:0",
|
"lang_layout_dm": "crwdns3658:0crwdne3658:0",
|
||||||
"lang_layout_webviewmode": "crwdns3660:0crwdne3660:0",
|
"lang_layout_webviewmode": "crwdns3660:0crwdne3660:0",
|
||||||
"lang_excluded": "crwdns3662:0crwdne3662:0",
|
"lang_layout_excluded": "crwdns4508:0crwdne4508:0",
|
||||||
|
"lang_layout_mention": "crwdns4510:0crwdne4510:0",
|
||||||
|
"lang_layout_fav": "crwdns4512:0crwdne4512:0",
|
||||||
|
"lang_layout_bt": "crwdns4514:0crwdne4514:0",
|
||||||
|
"lang_layout_poll": "crwdns4516:0crwdne4516:0",
|
||||||
"lang_layout_excludingbt": "crwdns3664:0crwdne3664:0",
|
"lang_layout_excludingbt": "crwdns3664:0crwdne3664:0",
|
||||||
"lang_layout_leftFold": "crwdns3666:0crwdne3666:0",
|
"lang_layout_leftFold": "crwdns3666:0crwdne3666:0",
|
||||||
"lang_layout_leftUnfold": "crwdns3668:0crwdne3668:0",
|
"lang_layout_leftUnfold": "crwdns3668:0crwdne3668:0",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "crwdns4388:0crwdne4388:0",
|
"lang_parse_html": "crwdns4388:0crwdne4388:0",
|
||||||
"lang_parse_notffilter": "crwdns3802:0crwdne3802:0",
|
"lang_parse_notffilter": "crwdns3802:0crwdne3802:0",
|
||||||
"lang_parse_hidden": "crwdns4498:0crwdne4498:0",
|
"lang_parse_hidden": "crwdns4498:0crwdne4498:0",
|
||||||
|
"lang_parse_disconnected": "crwdns4538:0crwdne4538:0",
|
||||||
"lang_misskeyparse_renote": "crwdns3804:0crwdne3804:0",
|
"lang_misskeyparse_renote": "crwdns3804:0crwdne3804:0",
|
||||||
"lang_misskeyparse_renoteqt": "crwdns3806:0crwdne3806:0",
|
"lang_misskeyparse_renoteqt": "crwdns3806:0crwdne3806:0",
|
||||||
"lang_misskeyparse_reaction": "crwdns3808:0crwdne3808:0",
|
"lang_misskeyparse_reaction": "crwdns3808:0crwdne3808:0",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": "crwdns3826:0crwdne3826:0",
|
"lang_misskeyparse_reacted": "crwdns3826:0crwdne3826:0",
|
||||||
"lang_setting_time": "crwdns3828:0{{set}}crwdne3828:0",
|
"lang_setting_time": "crwdns3828:0{{set}}crwdne3828:0",
|
||||||
"lang_setting_theme": "crwdns3830:0{{set}}crwdne3830:0",
|
"lang_setting_theme": "crwdns3830:0{{set}}crwdne3830:0",
|
||||||
|
"lang_setting_compat": "crwdns4518:0crwdne4518:0",
|
||||||
"lang_setting_nsfw": "crwdns3832:0{{set}}crwdne3832:0",
|
"lang_setting_nsfw": "crwdns3832:0{{set}}crwdne3832:0",
|
||||||
"lang_setting_cw": "crwdns3834:0{{set}}crwdne3834:0",
|
"lang_setting_cw": "crwdns3834:0{{set}}crwdne3834:0",
|
||||||
"lang_setting_cwtext": "crwdns3836:0{{set}}crwdne3836:0",
|
"lang_setting_cwtext": "crwdns3836:0{{set}}crwdne3836:0",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "crwdns3946:0crwdne3946:0",
|
"nativenotf": "crwdns3946:0crwdne3946:0",
|
||||||
"nnwarn": "crwdns3948:0crwdne3948:0",
|
"nnwarn": "crwdns3948:0crwdne3948:0",
|
||||||
"nntest": "crwdns3950:0crwdne3950:0",
|
"nntest": "crwdns3950:0crwdne3950:0",
|
||||||
"minwidth": "crwdns3952:0crwdne3952:0",
|
"width": "crwdns4502:0crwdne4502:0",
|
||||||
"minwidthwarn": "crwdns3954:0crwdne3954:0",
|
"widthwarn": "crwdns4504:0crwdne4504:0",
|
||||||
"fixwidth": "crwdns3956:0crwdne3956:0",
|
"fixwidth": "crwdns3956:0crwdne3956:0",
|
||||||
"fixwidthwarn": "crwdns3958:0crwdne3958:0",
|
"fixwidthwarn": "crwdns3958:0crwdne3958:0",
|
||||||
|
"margin": "crwdns4506:0crwdne4506:0",
|
||||||
"above": "crwdns3960:0crwdne3960:0",
|
"above": "crwdns3960:0crwdne3960:0",
|
||||||
"font": "crwdns3962:0crwdne3962:0",
|
"font": "crwdns3962:0crwdne3962:0",
|
||||||
"fontwarn": "crwdns4360:0crwdne4360:0",
|
"fontwarn": "crwdns4360:0crwdne4360:0",
|
||||||
@@ -47,15 +48,22 @@
|
|||||||
"customthemeDirection": "crwdns3978:0crwdne3978:0",
|
"customthemeDirection": "crwdns3978:0crwdne3978:0",
|
||||||
"advanced": "crwdns4326:0crwdne4326:0",
|
"advanced": "crwdns4326:0crwdne4326:0",
|
||||||
"advancedWarn": "crwdns4328:0crwdne4328:0",
|
"advancedWarn": "crwdns4328:0crwdne4328:0",
|
||||||
"active": "crwdns4330:0crwdne4330:0",
|
"use": "crwdns4520:0crwdne4520:0",
|
||||||
"modal": "crwdns4332:0crwdne4332:0",
|
"copyFrom": "crwdns4522:0crwdne4522:0",
|
||||||
"bottom": "crwdns4334:0crwdne4334:0",
|
"bg": "crwdns4524:0crwdne4524:0",
|
||||||
"postbox": "crwdns4336:0crwdne4336:0",
|
|
||||||
"subcolor": "crwdns4338:0crwdne4338:0",
|
"subcolor": "crwdns4338:0crwdne4338:0",
|
||||||
"primary": "crwdns3980:0crwdne3980:0",
|
|
||||||
"secondarycolor": "crwdns3982:0crwdne3982:0",
|
|
||||||
"text": "crwdns3984:0crwdne3984:0",
|
"text": "crwdns3984:0crwdne3984:0",
|
||||||
"accent": "crwdns3986:0crwdne3986:0",
|
"accent": "crwdns3986:0crwdne3986:0",
|
||||||
|
"modal": "crwdns4332:0crwdne4332:0",
|
||||||
|
"modalFooter": "crwdns4526:0crwdne4526:0",
|
||||||
|
"thirdColor": "crwdns4528:0crwdne4528:0",
|
||||||
|
"forthColor": "crwdns4530:0crwdne4530:0",
|
||||||
|
"bottom": "crwdns4334:0crwdne4334:0",
|
||||||
|
"emphasized": "crwdns4532:0crwdne4532:0",
|
||||||
|
"postbox": "crwdns4336:0crwdne4336:0",
|
||||||
|
"active": "crwdns4330:0crwdne4330:0",
|
||||||
|
"selected": "crwdns4534:0crwdne4534:0",
|
||||||
|
"selectedWithShare": "crwdns4536:0crwdne4536:0",
|
||||||
"add_new": "crwdns3988:0crwdne3988:0",
|
"add_new": "crwdns3988:0crwdne3988:0",
|
||||||
"name": "crwdns3990:0crwdne3990:0",
|
"name": "crwdns3990:0crwdne3990:0",
|
||||||
"desc": "crwdns3992:0crwdne3992:0",
|
"desc": "crwdns3992:0crwdne3992:0",
|
||||||
|
@@ -130,7 +130,7 @@
|
|||||||
"notf":"Notifications",
|
"notf":"Notifications",
|
||||||
"bookmark": "Bookmarks",
|
"bookmark": "Bookmarks",
|
||||||
"showThisTL":"Show this TL:",
|
"showThisTL":"Show this TL:",
|
||||||
"webviewWarn":"TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Keyboard shortcuts will irritate you. When you feel so, you check 'Prefer WebView' on top of the column.",
|
"webviewWarn":"TweetDeck with customed TJDeck(<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Code</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>).",
|
||||||
"add":"Add",
|
"add":"Add",
|
||||||
"search":"Search",
|
"search":"Search",
|
||||||
"sortSet":"Sort",
|
"sortSet":"Sort",
|
||||||
|
@@ -131,13 +131,17 @@
|
|||||||
"lang_layout_linkana": "Auto Link Analyzer",
|
"lang_layout_linkana": "Auto Link Analyzer",
|
||||||
"lang_layout_linkanades": "Auto link analyzer",
|
"lang_layout_linkanades": "Auto link analyzer",
|
||||||
"lang_layout_tts": "Text to speech ",
|
"lang_layout_tts": "Text to speech ",
|
||||||
"lang_layout_reconnect": "Reload this column",
|
"lang_layout_reconnect": "Reload",
|
||||||
"lang_layout_headercolor": "Header color of this column",
|
"lang_layout_headercolor": "Header color of this column",
|
||||||
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
"lang_layout_nodata": "[No data]<br>F5/⌘+R to reload",
|
||||||
"lang_layout_dm": "Direct Message",
|
"lang_layout_dm": "Direct Message",
|
||||||
"lang_layout_webviewmode": "Prefer WebView",
|
"lang_layout_webviewmode": "Prefer WebView",
|
||||||
"lang_excluded": "Excluded type of notification",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
"lang_layout_excludingbt": "Show BT mode(OFF/Exclude BT/Only BT)",
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
|
"lang_layout_excludingbt": "Show BT mode",
|
||||||
"lang_layout_leftFold": "Stack to the left",
|
"lang_layout_leftFold": "Stack to the left",
|
||||||
"lang_layout_leftUnfold": "Dock on the right",
|
"lang_layout_leftUnfold": "Dock on the right",
|
||||||
"lang_layout_deleteColumn": "Delete this column",
|
"lang_layout_deleteColumn": "Delete this column",
|
||||||
@@ -222,6 +226,7 @@
|
|||||||
"lang_parse_html": "Show embed HTML",
|
"lang_parse_html": "Show embed HTML",
|
||||||
"lang_parse_notffilter": "Show this user's notifications",
|
"lang_parse_notffilter": "Show this user's notifications",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Unvisible quoted toot",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Repost",
|
"lang_misskeyparse_renote": "Repost",
|
||||||
"lang_misskeyparse_renoteqt": "Renote",
|
"lang_misskeyparse_renoteqt": "Renote",
|
||||||
"lang_misskeyparse_reaction": "Reaction",
|
"lang_misskeyparse_reaction": "Reaction",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reacted your following post.",
|
"lang_misskeyparse_reacted": " reacted your following post.",
|
||||||
"lang_setting_time": "Time format:{{set}}",
|
"lang_setting_time": "Time format:{{set}}",
|
||||||
"lang_setting_theme": "Theme:{{set}}",
|
"lang_setting_theme": "Theme:{{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
"lang_setting_nsfw": "Sensitive media:{{set}}",
|
||||||
"lang_setting_cw": "CW:{{set}}",
|
"lang_setting_cw": "CW:{{set}}",
|
||||||
"lang_setting_cwtext": "Default CW text:{{set}}",
|
"lang_setting_cwtext": "Default CW text:{{set}}",
|
||||||
|
@@ -24,10 +24,11 @@
|
|||||||
"nativenotf": "Native notification",
|
"nativenotf": "Native notification",
|
||||||
"nnwarn": "This does not work on Windows Portable ver.",
|
"nnwarn": "This does not work on Windows Portable ver.",
|
||||||
"nntest": "Notification test",
|
"nntest": "Notification test",
|
||||||
"minwidth": "Minimum width of columns",
|
"width": "Width of columns",
|
||||||
"minwidthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
"widthwarn": "Scroll bar will be shown when your window size is more than ammounts of columns.",
|
||||||
"fixwidth": "Minimum width of TweetDeck browser",
|
"fixwidth": "Minimum width of TweetDeck browser",
|
||||||
"fixwidthwarn": "",
|
"fixwidthwarn": "",
|
||||||
|
"margin": "Margin between timelines",
|
||||||
"above": "above",
|
"above": "above",
|
||||||
"font": "Font",
|
"font": "Font",
|
||||||
"fontwarn": "Select your favorite font to 'Select'(On Linux, it may not work.)",
|
"fontwarn": "Select your favorite font to 'Select'(On Linux, it may not work.)",
|
||||||
@@ -43,19 +44,26 @@
|
|||||||
"srcUrl": "Search engine",
|
"srcUrl": "Search engine",
|
||||||
"srcUrlWarn": "{q} will be replaced to query.",
|
"srcUrlWarn": "{q} will be replaced to query.",
|
||||||
"themeSel": "Select theme",
|
"themeSel": "Select theme",
|
||||||
"customtheme": "Edit and add custom themes",
|
"customtheme": "Edit and add themes",
|
||||||
"customthemeDirection": "Color scheme",
|
"customthemeDirection": "Color scheme",
|
||||||
"advanced":"Advanced options(6 additional colors)",
|
"advanced":"Advanced options",
|
||||||
"advancedWarn":"Advanced options will be <i>null</i> if you set nothing, while basic 3 options will be white(<i>fff</i>). They(adv. options) will be reset if you saved with advanced panel closed.",
|
"advancedWarn":"",
|
||||||
"active": "Background of Show or CW buttons, selected options...",
|
"use": "Use this",
|
||||||
"modal": "Background of modals",
|
"copyFrom": "Copy from",
|
||||||
"bottom":"Background of bottom bar",
|
"bg": "Background color",
|
||||||
"postbox":"Background of post box and menu",
|
"subcolor":"Distinguishable from background",
|
||||||
"subcolor":"Subcolor, has harmony with secondary color",
|
|
||||||
"primary": "Background color",
|
|
||||||
"secondarycolor": "Background of components",
|
|
||||||
"text": "Text color",
|
"text": "Text color",
|
||||||
"accent": "Background of boosts",
|
"accent": "Background of boosts",
|
||||||
|
"modal": "Background of modal window",
|
||||||
|
"modalFooter": "Background of modal window's footer",
|
||||||
|
"thirdColor": "Backgroud of tag buttons, etc(near to Background)",
|
||||||
|
"forthColor": "Title bar(same scheme to Background)",
|
||||||
|
"bottom":"Background of menu-bar at bottom of window",
|
||||||
|
"emphasized": "Emphasized toot's background",
|
||||||
|
"postbox":"Background of post-box and menu",
|
||||||
|
"active": "Background of 'active' elements",
|
||||||
|
"selected": "Background of selected with arrow keys",
|
||||||
|
"selectedWithShare": "Background of selected with arrow keys(boosted toots)",
|
||||||
"add_new": "Add new",
|
"add_new": "Add new",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
"desc": "About this theme",
|
"desc": "About this theme",
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
"list": "Lista de cuentas",
|
"list": "Lista de cuentas",
|
||||||
"back": "Volver",
|
"back": "Volver",
|
||||||
"add": "Agregar una cuenta",
|
"add": "Agregar una cuenta",
|
||||||
"addAcct": "Fill the instance domain (like mastodon.social)",
|
"addAcct": "Ingresá el dominio de la instancia (ej. mastodon.social)",
|
||||||
"codesetupwarn": "No seleccionar para saltar el pegado de código (iniciá sesión de Mastodon en Windows o macOS) (Recomendado: pcheck)",
|
"codesetupwarn": "No seleccionar para saltar el pegado de código (iniciá sesión de Mastodon en Windows o macOS) (Recomendado: pcheck)",
|
||||||
"codesetup": "Configuración de código",
|
"codesetup": "Configuración de código",
|
||||||
"mainacct": "Establecer una cuenta",
|
"mainacct": "Establecer una cuenta",
|
||||||
@@ -20,6 +20,6 @@
|
|||||||
"thisismisskey": "Iniciar sesión con Misskey",
|
"thisismisskey": "Iniciar sesión con Misskey",
|
||||||
"misskeylogin": "Leé <a href=\"https://docs.thedesk.top/\">la documentación (en japonés)</a> para usar Misskey.",
|
"misskeylogin": "Leé <a href=\"https://docs.thedesk.top/\">la documentación (en japonés)</a> para usar Misskey.",
|
||||||
"nodata": "Sin datos",
|
"nodata": "Sin datos",
|
||||||
"accessTokenSetup": "Use access token to login(click after fill not code but access-token in box: Advanced)",
|
"accessTokenSetup": "Usar token de acceso para iniciar sesión (hacer clic después de completar no el código sino el token de acceso en la casilla: Avanzado)",
|
||||||
"haveExported": "Having the exported file of TheDesk, click here to jump setting page"
|
"haveExported": "Teniendo el archivo exportado de TheDesk, hacé clic acá para ir a la página de opciones"
|
||||||
}
|
}
|
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"draghere": "Arrastrá y soltá acá para subir",
|
"draghere": "Arrastrá y soltá acá para subir",
|
||||||
"close": "Cerrar",
|
"close": "Cerrar",
|
||||||
"webSrc": "Search on Web",
|
"webSrc": "Buscar en la Web",
|
||||||
"tsSrc": "Search on tootsearch",
|
"tsSrc": "Buscar en tootsearch",
|
||||||
"showSelectProf": "Mostrar perfil de la cuenta seleccionada",
|
"showSelectProf": "Mostrar perfil de la cuenta seleccionada",
|
||||||
"closethisbox": "Cerrar esta caja",
|
"closethisbox": "Cerrar esta caja",
|
||||||
"toot": "Tootear",
|
"toot": "Tootear",
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
"toots": "Toots",
|
"toots": "Toots",
|
||||||
"follow": "Seguir",
|
"follow": "Seguir",
|
||||||
"follower": "Seguidor",
|
"follower": "Seguidor",
|
||||||
"utlColumn": "Show as a column",
|
"utlColumn": "Mostrar como columna",
|
||||||
"timeline": "Línea temporal",
|
"timeline": "Línea temporal",
|
||||||
"operateOtherAcct": "Cuenta cruzada",
|
"operateOtherAcct": "Cuenta cruzada",
|
||||||
"list": "Enlistar",
|
"list": "Enlistar",
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
"notf": "Notificaciones",
|
"notf": "Notificaciones",
|
||||||
"bookmark": "Marcadores",
|
"bookmark": "Marcadores",
|
||||||
"showThisTL": "Mostrar esta línea temporal:",
|
"showThisTL": "Mostrar esta línea temporal:",
|
||||||
"webviewWarn": "TweetDeck con TJDeck personalizado (<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Código</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Los atajos de teclado te irritarán. Cuando lo sientas, revisá \"Preferir WebView\" en la parte superior de la columna.",
|
"webviewWarn": "TweetDeck con TJDeck personalizado (<a href='https://gist.github.com/cutls/8787a55d2c1c53274e68a427966046a6' target='_blank'>Código</a>/<a href='https://gist.github.com/totoraj930/d1394dadb51d75666a76829f61e7280c' target='_blank'>TJDeck</a>). Los atajos de teclado te irritarán. Cuando lo sientas, revisá 'Preferir WebView' en la parte superior de la columna.",
|
||||||
"add": "Agregar",
|
"add": "Agregar",
|
||||||
"search": "Buscar",
|
"search": "Buscar",
|
||||||
"sortSet": "Ordenar",
|
"sortSet": "Ordenar",
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
"filterWord": "Palabras filtradas",
|
"filterWord": "Palabras filtradas",
|
||||||
"degree": "Filtrar contextos",
|
"degree": "Filtrar contextos",
|
||||||
"conver": "Conversaciones",
|
"conver": "Conversaciones",
|
||||||
"prof": "Profiles",
|
"prof": "Perfiles",
|
||||||
"option": "Configuración",
|
"option": "Configuración",
|
||||||
"matchWord": "Palabra completa",
|
"matchWord": "Palabra completa",
|
||||||
"warnMatchWord": "Útil para lenguas romances",
|
"warnMatchWord": "Útil para lenguas romances",
|
||||||
@@ -178,11 +178,11 @@
|
|||||||
"active": "Recientemente activo",
|
"active": "Recientemente activo",
|
||||||
"newcomer": "Recién llegados",
|
"newcomer": "Recién llegados",
|
||||||
"local_only": "Sólo local",
|
"local_only": "Sólo local",
|
||||||
"menu": "Menu",
|
"menu": "Menú",
|
||||||
"demoBottomBtns": "Guía de bienvenida",
|
"demoBottomBtns": "Guía de bienvenida",
|
||||||
"lookAtBottom": "Mirá en la parte inferior de esta ventana. Acá tenés algunas sugerencias.",
|
"lookAtBottom": "Mirá en la parte inferior de esta ventana. Acá tenés algunas sugerencias.",
|
||||||
"acctManDesc": "Agregá más cuentas y administralas.",
|
"acctManDesc": "Agregá más cuentas y administralas.",
|
||||||
"settingDesc": "Muchas configuraciones. ¡No vas a poder con todas!",
|
"settingDesc": "Muchas configuraciones. ¡No vas a poder con todas!",
|
||||||
"nanoDescPlus": "Miniventana (experimental)",
|
"nanoDescPlus": "Miniventana (experimental)",
|
||||||
"menuDesc": "All daily TheDesk and Mastodon tuning like <b>add and sort columns</b>, <b>list and filter check</b>."
|
"menuDesc": "Toda la configuración diaria de TheDesk y Mastodon, como <b>agregar y ordenar columnas</b> y <b>revisión de listas y filtros</b>."
|
||||||
}
|
}
|
@@ -60,8 +60,8 @@
|
|||||||
"lang_postimg_delete": "Hacé clic para agregar descripción, o clic secundario para eliminar esto",
|
"lang_postimg_delete": "Hacé clic para agregar descripción, o clic secundario para eliminar esto",
|
||||||
"lang_postimg_desc": "Descripción",
|
"lang_postimg_desc": "Descripción",
|
||||||
"lang_postimg_leadContext": "hacé clic secundario sobre la miniatura para eliminar esto",
|
"lang_postimg_leadContext": "hacé clic secundario sobre la miniatura para eliminar esto",
|
||||||
"lang_post_syncDetail": "Upload media synchronously",
|
"lang_post_syncDetail": "Subir multimedia sincrónicamente",
|
||||||
"lang_post_syncDetailText": "Click each picture icon to get the thumbnail. If you can get, the media you uploaded are completely processed.",
|
"lang_post_syncDetailText": "Hacé clic en cada ícono de la imagen para obtener la miniatura. Si podés obtenerla, el archivo multimedia que subiste se procesó completamente.",
|
||||||
"lang_post_tagTL": "Este toot no contiene una etiqueta predeterminada. Este toot no se mostrará en la línea temporal local. ¿Querés continuar?",
|
"lang_post_tagTL": "Este toot no contiene una etiqueta predeterminada. Este toot no se mostrará en la línea temporal local. ¿Querés continuar?",
|
||||||
"lang_post_tagVis": "Este toot (toot no público) no se muestra en la línea temporal de esta etiqueta.",
|
"lang_post_tagVis": "Este toot (toot no público) no se muestra en la línea temporal de esta etiqueta.",
|
||||||
"lang_post_cwtitle": "Alerta automática de Advertencia de contenido",
|
"lang_post_cwtitle": "Alerta automática de Advertencia de contenido",
|
||||||
@@ -69,8 +69,8 @@
|
|||||||
"lang_post_btn1": "Cancelar (no se enviará)",
|
"lang_post_btn1": "Cancelar (no se enviará)",
|
||||||
"lang_post_btn2": "Crear el texto oculto automáticamente",
|
"lang_post_btn2": "Crear el texto oculto automáticamente",
|
||||||
"lang_post_btn3": "Continuar con el envío",
|
"lang_post_btn3": "Continuar con el envío",
|
||||||
"lang_post_unfinishedMedia": "The server has not finished processing your media. Retry.",
|
"lang_post_unfinishedMedia": "El servidor no ha terminado de procesar tu archivo. Volvé a intentarlo.",
|
||||||
"lang_post_retry": "Retry",
|
"lang_post_retry": "Reintentar",
|
||||||
"lang_status_favWarn": "Llevará un minuto marcar un toot remoto como favorito.",
|
"lang_status_favWarn": "Llevará un minuto marcar un toot remoto como favorito.",
|
||||||
"lang_status_btWarn": "Llevará un minuto retootear un toot remoto.",
|
"lang_status_btWarn": "Llevará un minuto retootear un toot remoto.",
|
||||||
"lang_status_follow": "Seguir",
|
"lang_status_follow": "Seguir",
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
"lang_layout_delthis": "Quitar esta columna",
|
"lang_layout_delthis": "Quitar esta columna",
|
||||||
"lang_layout_setthis": "Configuración de esta columna",
|
"lang_layout_setthis": "Configuración de esta columna",
|
||||||
"lang_layout_mediafil": "Filtro de medio",
|
"lang_layout_mediafil": "Filtro de medio",
|
||||||
"lang_layout_remoteOnly": "Remote only",
|
"lang_layout_remoteOnly": "Solo remoto",
|
||||||
"lang_layout_linkana": "Analizador automático de enlace",
|
"lang_layout_linkana": "Analizador automático de enlace",
|
||||||
"lang_layout_linkanades": "Analizador automático de enlace",
|
"lang_layout_linkanades": "Analizador automático de enlace",
|
||||||
"lang_layout_tts": "Texto hablado ",
|
"lang_layout_tts": "Texto hablado ",
|
||||||
@@ -136,7 +136,11 @@
|
|||||||
"lang_layout_nodata": "[Sin datos]<br>F5/⌘+R para refrescar",
|
"lang_layout_nodata": "[Sin datos]<br>F5/⌘+R para refrescar",
|
||||||
"lang_layout_dm": "Mensaje directo",
|
"lang_layout_dm": "Mensaje directo",
|
||||||
"lang_layout_webviewmode": "Preferir WebView",
|
"lang_layout_webviewmode": "Preferir WebView",
|
||||||
"lang_excluded": "Tipo de notificación excluida",
|
"lang_layout_excluded": "Excluded type of notification",
|
||||||
|
"lang_layout_mention": "Mentions",
|
||||||
|
"lang_layout_fav": "Favourites",
|
||||||
|
"lang_layout_bt": "Boosts",
|
||||||
|
"lang_layout_poll": "Polls",
|
||||||
"lang_layout_excludingbt": "Mostrar modo de retoot (DESACTIVADO / Excluir retoots / Sólo retoots)",
|
"lang_layout_excludingbt": "Mostrar modo de retoot (DESACTIVADO / Excluir retoots / Sólo retoots)",
|
||||||
"lang_layout_leftFold": "Pegar a la izquierda",
|
"lang_layout_leftFold": "Pegar a la izquierda",
|
||||||
"lang_layout_leftUnfold": "Colocar en la derecha",
|
"lang_layout_leftUnfold": "Colocar en la derecha",
|
||||||
@@ -144,7 +148,7 @@
|
|||||||
"lang_layout_deleteColumnDesc": "Eliminar esta columna",
|
"lang_layout_deleteColumnDesc": "Eliminar esta columna",
|
||||||
"lang_layout_unread": "Sin leer",
|
"lang_layout_unread": "Sin leer",
|
||||||
"lang_layout_tagManager": "Administrador de etiqueta de línea temporal",
|
"lang_layout_tagManager": "Administrador de etiqueta de línea temporal",
|
||||||
"lang_layout_announ": "Announcement: the counter is the number of your unread announcements. If not shown, it means announcements are all marked as read.",
|
"lang_layout_announ": "Anuncio: el contador es el número de tus anuncios no leídos. Si no se muestra, significa que todos los anuncios están marcados como leídos.",
|
||||||
"lang_sort_gothis": "Ir a esta columna",
|
"lang_sort_gothis": "Ir a esta columna",
|
||||||
"lang_sort_remthis": "Eliminar esta columna",
|
"lang_sort_remthis": "Eliminar esta columna",
|
||||||
"lang_spotify_img": "Adjuntar la tapa del álbum",
|
"lang_spotify_img": "Adjuntar la tapa del álbum",
|
||||||
@@ -166,7 +170,7 @@
|
|||||||
"lang_showontl_domain": "Dominio ",
|
"lang_showontl_domain": "Dominio ",
|
||||||
"lang_showontl_listwarn": "Seguí a este usuario para agregarlo a las listas.",
|
"lang_showontl_listwarn": "Seguí a este usuario para agregarlo a las listas.",
|
||||||
"lang_showontl_verified": "Este sitio web está verificado por su propietario en ",
|
"lang_showontl_verified": "Este sitio web está verificado por su propietario en ",
|
||||||
"lang_status_requesting": "Requesting",
|
"lang_status_requesting": "Solicitando",
|
||||||
"lang_parse_mentioned": " te respondió",
|
"lang_parse_mentioned": " te respondió",
|
||||||
"lang_parse_faved": " marcó tu toot como favorito",
|
"lang_parse_faved": " marcó tu toot como favorito",
|
||||||
"lang_parse_bted": " retooteó tu toot",
|
"lang_parse_bted": " retooteó tu toot",
|
||||||
@@ -174,7 +178,7 @@
|
|||||||
"lang_parse_polled": " hizo una encuesta",
|
"lang_parse_polled": " hizo una encuesta",
|
||||||
"lang_parse_notftime": "Enviado el",
|
"lang_parse_notftime": "Enviado el",
|
||||||
"lang_parse_cwshow": "Mostrar",
|
"lang_parse_cwshow": "Mostrar",
|
||||||
"lang_parse_cwshow_acc": "This is a post with content warning. click to show the whole content",
|
"lang_parse_cwshow_acc": "Esta es una publicación con advertencia de contenido. Hacé clic para mostrar todo el contenido",
|
||||||
"lang_parse_fulltext": "Tamaño de texto:",
|
"lang_parse_fulltext": "Tamaño de texto:",
|
||||||
"lang_parse_autofold": "Colapsado automáticamente",
|
"lang_parse_autofold": "Colapsado automáticamente",
|
||||||
"lang_parse_more": "Más",
|
"lang_parse_more": "Más",
|
||||||
@@ -221,7 +225,8 @@
|
|||||||
"lang_parse_nsfw": "medios sensibles",
|
"lang_parse_nsfw": "medios sensibles",
|
||||||
"lang_parse_html": "Mostrar HTML insertado",
|
"lang_parse_html": "Mostrar HTML insertado",
|
||||||
"lang_parse_notffilter": "Mostrar notificaciones de este usuario",
|
"lang_parse_notffilter": "Mostrar notificaciones de este usuario",
|
||||||
"lang_parse_hidden": "Unvisible quoted toot",
|
"lang_parse_hidden": "Toot citado no visible",
|
||||||
|
"lang_parse_disconnected": "Streaming has been disconnected(retry after 3s)",
|
||||||
"lang_misskeyparse_renote": "Republicar",
|
"lang_misskeyparse_renote": "Republicar",
|
||||||
"lang_misskeyparse_renoteqt": "Renovar",
|
"lang_misskeyparse_renoteqt": "Renovar",
|
||||||
"lang_misskeyparse_reaction": "Reacción",
|
"lang_misskeyparse_reaction": "Reacción",
|
||||||
@@ -236,6 +241,7 @@
|
|||||||
"lang_misskeyparse_reacted": " reaccionó a tu siguiente entrada.",
|
"lang_misskeyparse_reacted": " reaccionó a tu siguiente entrada.",
|
||||||
"lang_setting_time": "Formato de tiempo: {{set}}",
|
"lang_setting_time": "Formato de tiempo: {{set}}",
|
||||||
"lang_setting_theme": "Tema: {{set}}",
|
"lang_setting_theme": "Tema: {{set}}",
|
||||||
|
"lang_setting_compat": "Compatible",
|
||||||
"lang_setting_nsfw": "Medios sensibles: {{set}}",
|
"lang_setting_nsfw": "Medios sensibles: {{set}}",
|
||||||
"lang_setting_cw": "Advertencia de contenido: {{set}}",
|
"lang_setting_cw": "Advertencia de contenido: {{set}}",
|
||||||
"lang_setting_cwtext": "Texto predeterminado de advertencia de contenido: {{set}}",
|
"lang_setting_cwtext": "Texto predeterminado de advertencia de contenido: {{set}}",
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user