wip
This commit is contained in:
parent
853b846c40
commit
d8d4c4d228
168 changed files with 237 additions and 237 deletions
|
|
@ -7,7 +7,7 @@
|
|||
width 256px
|
||||
height 256px
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
const Vec2 = function(x, y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@
|
|||
color rgba(0, 0, 0, 0.3)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import contains from '../../common/scripts/contains';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
opacity 0.7
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import isPromise from '../../common/scripts/is-promise';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@
|
|||
transition visibility 0s linear 0.2s
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
import contains from '../../common/scripts/contains';
|
||||
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
width 150px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
const Cropper = require('cropperjs');
|
||||
|
||||
this.image = this.opts.file;
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
margin 0 auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
transition color 0s ease
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.canThrough = opts.canThrough != null ? opts.canThrough : true;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
margin-bottom 16px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
this.mixin('api');
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</mk-contextmenu>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.browser = this.opts.browser;
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
height 100%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.folder = this.opts.folder ? this.opts.folder : null;
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
display none
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import contains from '../../../common/scripts/contains';
|
||||
import dialog from '../../scripts/dialog';
|
||||
import inputDialog from '../../scripts/input-dialog';
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</mk-contextmenu>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import copyToClipboard from '../../../common/scripts/copy-to-clipboard';
|
||||
import dialog from '../../scripts/dialog';
|
||||
import inputDialog from '../../scripts/input-dialog';
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@
|
|||
opacity 0.5
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
import bytesToSize from '../../../common/scripts/bytes-to-size';
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
</mk-contextmenu>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import inputDialog from '../../scripts/input-dialog';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
text-align left
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import dialog from '../../scripts/dialog';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
background #eee
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.folder = this.opts.folder ? this.opts.folder : null;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@
|
|||
opacity 0.7
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import isPromise from '../../common/scripts/is-promise';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@
|
|||
padding 14px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
this.mixin('user-preview');
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import seedrandom from 'seedrandom';
|
||||
|
||||
this.data = {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
view: 0,
|
||||
design: 0
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
font-size 0.7em
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@
|
|||
background #41ddde
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@
|
|||
height 200px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
channel: null,
|
||||
compact: false
|
||||
|
|
@ -137,7 +137,7 @@
|
|||
bottom 0
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import ChannelStream from '../../../common/scripts/streaming/channel-stream';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
@ -241,7 +241,7 @@
|
|||
vertical-align bottom
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.post = this.opts.post;
|
||||
this.form = this.opts.form;
|
||||
|
||||
|
|
@ -275,7 +275,7 @@
|
|||
border-color #aeaeae
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.clear = () => {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
color #999
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('widget');
|
||||
this.mixin('user-preview');
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
this.mixin('api');
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
overflow auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('widget');
|
||||
</script>
|
||||
</mk-nav-home-widget>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
overflow auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
compact: false
|
||||
};
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
transition background 0s ease
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
color #999
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import inputDialog from '../../scripts/input-dialog';
|
||||
import updateAvatar from '../../scripts/update-avatar';
|
||||
import updateBanner from '../../scripts/update-banner';
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
compact: false
|
||||
};
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
compact: false
|
||||
};
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('os');
|
||||
|
||||
this.data = {
|
||||
|
|
@ -186,7 +186,7 @@
|
|||
display block
|
||||
clear both
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import uuid from 'uuid';
|
||||
|
||||
this.viewBoxX = 50;
|
||||
|
|
@ -270,7 +270,7 @@
|
|||
clear both
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.cores = this.opts.meta.cpu.cores;
|
||||
this.model = this.opts.meta.cpu.model;
|
||||
this.connection = this.opts.connection;
|
||||
|
|
@ -328,7 +328,7 @@
|
|||
clear both
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import bytesToSize from '../../../common/scripts/bytes-to-size';
|
||||
|
||||
this.connection = this.opts.connection;
|
||||
|
|
@ -394,7 +394,7 @@
|
|||
clear both
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import bytesToSize from '../../../common/scripts/bytes-to-size';
|
||||
|
||||
this.connection = this.opts.connection;
|
||||
|
|
@ -440,7 +440,7 @@
|
|||
font-weight bold
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.connection = this.opts.connection;
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
@ -475,7 +475,7 @@
|
|||
color #505050
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.meta = this.opts.meta;
|
||||
</script>
|
||||
</mk-server-home-widget-info>
|
||||
|
|
@ -516,7 +516,7 @@
|
|||
fill rgba(0, 0, 0, 0.6)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.r = 0.4;
|
||||
|
||||
this.render = p => {
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
opacity 0
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.data = {
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
this.mixin('api');
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
design: 0
|
||||
};
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
border-radius 2px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.mixin('widget');
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
compact: false
|
||||
};
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = {
|
||||
compact: false
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
color #aaa
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('widget');
|
||||
</script>
|
||||
</mk-version-home-widget>
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@
|
|||
margin 0 auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import uuid from 'uuid';
|
||||
import Sortable from 'sortablejs';
|
||||
import dialog from '../scripts/dialog';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
grid-gap 4px
|
||||
height 256px
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.images = this.opts.images;
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
background-size cover
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.image = this.opts.image;
|
||||
this.styles = {
|
||||
'background-color': this.image.properties.average_color ? `rgb(${this.image.properties.average_color.join(',')})` : 'transparent',
|
||||
|
|
@ -145,7 +145,7 @@
|
|||
cursor zoom-out
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.image = this.opts.image;
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@
|
|||
border-color #dcdcdc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.done = false;
|
||||
|
||||
this.title = this.opts.title;
|
||||
|
|
|
|||
|
|
@ -89,5 +89,5 @@
|
|||
right 16px
|
||||
|
||||
</style>
|
||||
<script>this.user = this.opts.user</script>
|
||||
<script lang="typescript">this.user = this.opts.user</script>
|
||||
</mk-list-user>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
overflow auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.user = this.opts.user;
|
||||
|
||||
this.popout = `${_URL_}/i/messaging/${this.user.username}`;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
overflow auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
this.$refs.window.on('closed', () => {
|
||||
this.$destroy();
|
||||
|
|
|
|||
|
|
@ -214,7 +214,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import getPostSummary from '../../../../common/get-post-summary.ts';
|
||||
this.getPostSummary = getPostSummary;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
> mk-drive-browser
|
||||
height 100%
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
document.title = 'Misskey Drive';
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@
|
|||
font-size 10px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.mode = 'signin';
|
||||
|
|
@ -278,7 +278,7 @@
|
|||
color #666
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
this.$refs.signin.on('user', user => {
|
||||
this.update({
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
document.title = 'Misskey - ホームのカスタマイズ';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
import getPostSummary from '../../../../../common/get-post-summary.ts';
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
background #fff
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
width 640px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@
|
|||
border-color #dcdcdc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
const q = (new URL(location)).searchParams;
|
||||
this.multiple = q.get('multiple') == 'true' ? true : false;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Progress from '../../../common/scripts/loading';
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@
|
|||
margin-top 8px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import compile from '../../common/scripts/text-compiler';
|
||||
import dateStringify from '../../common/scripts/date-stringify';
|
||||
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@
|
|||
border-top 1px solid #eef0f2
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import compile from '../../common/scripts/text-compiler';
|
||||
import dateStringify from '../../common/scripts/date-stringify';
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
margin 16px 22px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.uploadingFiles = [];
|
||||
this.files = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -282,7 +282,7 @@
|
|||
pointer-events none
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import Sortable from 'sortablejs';
|
||||
import getKao from '../../common/scripts/get-kao';
|
||||
import notify from '../scripts/notify';
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
color #717171
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import dateStringify from '../../common/scripts/date-stringify';
|
||||
|
||||
this.mixin('user-preview');
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
to {background-position: -64px 32px;}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.title = this.opts.title;
|
||||
this.value = parseInt(this.opts.value, 10);
|
||||
this.max = parseInt(this.opts.max, 10);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.onDocumentKeydown = e => {
|
||||
if (e.target.tagName != 'INPUT' && e.target.tagName != 'TEXTAREA') {
|
||||
if (e.which == 27) { // Esc
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
border-color $theme-color
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import notify from '../scripts/notify';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import parse from '../../common/scripts/parse-search-query';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
overflow hidden
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.query = this.opts.query;
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@
|
|||
border-color #dcdcdc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.files = [];
|
||||
|
||||
this.multiple = this.opts.multiple != null ? this.opts.multiple : false;
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@
|
|||
border-color #dcdcdc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.files = [];
|
||||
|
||||
this.title = this.opts.title || '%fa:R folder%フォルダを選択';
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
color #fff
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import updateAvatar from '../scripts/update-avatar';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
color #fff
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import updateBanner from '../scripts/update-banner';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
overflow hidden
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
this.$refs.window.on('closed', () => {
|
||||
this.$destroy();
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@
|
|||
border-bottom solid 1px #eee
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.page = 'profile';
|
||||
|
||||
this.setPage = page => {
|
||||
|
|
@ -166,7 +166,7 @@
|
|||
margin-left 8px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import updateAvatar from '../scripts/update-avatar';
|
||||
import notify from '../scripts/notify';
|
||||
|
||||
|
|
@ -208,7 +208,7 @@
|
|||
background #eee
|
||||
border-radius 2px
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import passwordDialog from '../scripts/password-dialog';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
@ -231,7 +231,7 @@
|
|||
display block
|
||||
color #4a535a
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import passwordDialog from '../scripts/password-dialog';
|
||||
import dialog from '../scripts/dialog';
|
||||
import notify from '../scripts/notify';
|
||||
|
|
@ -287,7 +287,7 @@
|
|||
color #4a535a
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import passwordDialog from '../scripts/password-dialog';
|
||||
import notify from '../scripts/notify';
|
||||
|
||||
|
|
@ -370,7 +370,7 @@
|
|||
fill rgba(0, 0, 0, 0.6)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.r = 0.4;
|
||||
|
|
@ -408,7 +408,7 @@
|
|||
display block
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.apps = [];
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
font-size 80%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import compile from '../../common/scripts/text-compiler';
|
||||
|
||||
this.mixin('user-preview');
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
border-bottom-right-radius 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.posts = [];
|
||||
|
||||
this.on('update', () => {
|
||||
|
|
@ -409,7 +409,7 @@
|
|||
background rgba(0, 0, 0, 0.0125)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import compile from '../../common/scripts/text-compiler';
|
||||
import dateStringify from '../../common/scripts/date-stringify';
|
||||
|
||||
|
|
@ -693,7 +693,7 @@
|
|||
font-size 80%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import dateStringify from '../../common/scripts/date-stringify';
|
||||
|
||||
this.mixin('user-preview');
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
:scope
|
||||
display block
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
|
||||
this.openPostForm = () => {
|
||||
|
|
@ -119,7 +119,7 @@
|
|||
display none
|
||||
|
||||
</style>
|
||||
<script>this.mixin('i');</script>
|
||||
<script lang="typescript">this.mixin('i');</script>
|
||||
</mk-ui-header>
|
||||
|
||||
<mk-ui-header-search>
|
||||
|
|
@ -175,7 +175,7 @@
|
|||
box-shadow 0 0 0 2px rgba($theme-color, 0.5) !important
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('page');
|
||||
|
||||
this.onsubmit = e => {
|
||||
|
|
@ -221,7 +221,7 @@
|
|||
transition background 0s ease
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.post = e => {
|
||||
this.parent.parent.openPostForm();
|
||||
};
|
||||
|
|
@ -310,7 +310,7 @@
|
|||
overflow auto
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import contains from '../../common/scripts/contains';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
@ -487,7 +487,7 @@
|
|||
padding 0 12px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
this.mixin('api');
|
||||
|
||||
|
|
@ -604,7 +604,7 @@
|
|||
background #899492
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.now = new Date();
|
||||
|
||||
this.draw = () => {
|
||||
|
|
@ -789,7 +789,7 @@
|
|||
color $theme-color-foreground
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import contains from '../../common/scripts/contains';
|
||||
import signout from '../../common/scripts/signout';
|
||||
this.signout = signout;
|
||||
|
|
@ -869,7 +869,7 @@
|
|||
text-align center
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.on('mount', () => {
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@
|
|||
border-radius 4px
|
||||
|
||||
</style>
|
||||
<script>this.user = this.opts.user</script>
|
||||
<script lang="typescript">this.user = this.opts.user</script>
|
||||
</mk-user-followers-window>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
height 100%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
|
|
|||
|
|
@ -15,5 +15,5 @@
|
|||
border-radius 4px
|
||||
|
||||
</style>
|
||||
<script>this.user = this.opts.user</script>
|
||||
<script lang="typescript">this.user = this.opts.user</script>
|
||||
</mk-user-following-window>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
height 100%
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
right 8px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import isPromise from '../../common/scripts/is-promise';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
overflow hidden
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.username = this.opts.user;
|
||||
|
|
@ -182,7 +182,7 @@
|
|||
border solid 1px #ddd
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import updateBanner from '../scripts/update-banner';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
@ -309,7 +309,7 @@
|
|||
margin-right 8px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.age = require('s-age');
|
||||
|
||||
this.mixin('i');
|
||||
|
|
@ -411,7 +411,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import isPromise from '../../common/scripts/is-promise';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
@ -539,7 +539,7 @@
|
|||
right 16px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
|
@ -612,7 +612,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
|
@ -707,7 +707,7 @@
|
|||
color #ccc
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import ScrollFollower from '../scripts/scroll-follower';
|
||||
|
||||
this.mixin('i');
|
||||
|
|
@ -776,7 +776,7 @@
|
|||
margin-right 8px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.on('mount', () => {
|
||||
this.trigger('loaded');
|
||||
});
|
||||
|
|
@ -819,7 +819,7 @@
|
|||
transform-origin center
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import getMedian from '../../common/scripts/get-median';
|
||||
|
||||
this.mixin('api');
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('i');
|
||||
|
||||
this.limit = 30;
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
margin-right 4px
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.mixin('api');
|
||||
|
||||
this.design = this.opts.design || 0;
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
fill rgba(0, 0, 0, 0.05)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.data = this.opts.data;
|
||||
this.data.forEach(d => d.total = d.posts + d.replies + d.reposts);
|
||||
const peak = Math.max.apply(null, this.data.map(d => d.total));
|
||||
|
|
@ -184,7 +184,7 @@
|
|||
width 100%
|
||||
cursor all-scroll
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
this.viewBoxX = 140;
|
||||
this.viewBoxY = 60;
|
||||
this.zoom = 1;
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@
|
|||
background darken($theme-color, 10%)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
if (this.opts.design == null) this.opts.design = 0;
|
||||
|
||||
const eachMonthDays = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@
|
|||
height calc(100% - 40px)
|
||||
|
||||
</style>
|
||||
<script>
|
||||
<script lang="typescript">
|
||||
import anime from 'animejs';
|
||||
import contains from '../../common/scripts/contains';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue