parent
1809800980
commit
3f8ebac466
46 changed files with 244 additions and 225 deletions
|
|
@ -1,7 +1,7 @@
|
|||
require('fuckadblock');
|
||||
import dialog from './dialog';
|
||||
|
||||
declare var fuckAdBlock: any;
|
||||
declare const fuckAdBlock: any;
|
||||
|
||||
export default () => {
|
||||
if (fuckAdBlock === undefined) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
declare const _API_URL_: string;
|
||||
|
||||
import * as riot from 'riot';
|
||||
import CONFIG from '../../common/scripts/config';
|
||||
import dialog from './dialog';
|
||||
import api from '../../common/scripts/api';
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ export default (I, cb, file = null) => {
|
|||
if (folder) data.append('folder_id', folder.id);
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true);
|
||||
xhr.open('POST', _API_URL_ + '/drive/files/create', true);
|
||||
xhr.onload = e => {
|
||||
const file = JSON.parse((e.target as any).response);
|
||||
progress.close();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
declare const _API_URL_: string;
|
||||
|
||||
import * as riot from 'riot';
|
||||
import CONFIG from '../../common/scripts/config';
|
||||
import dialog from './dialog';
|
||||
import api from '../../common/scripts/api';
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ export default (I, cb, file = null) => {
|
|||
if (folder) data.append('folder_id', folder.id);
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', CONFIG.apiUrl + '/drive/files/create', true);
|
||||
xhr.open('POST', _API_URL_ + '/drive/files/create', true);
|
||||
xhr.onload = e => {
|
||||
const file = JSON.parse((e.target as any).response);
|
||||
progress.close();
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
const length = Math.min(canvW, canvH) / 4;
|
||||
const uv = new Vec2(Math.sin(angle), -Math.cos(angle));
|
||||
ctx.beginPath();
|
||||
ctx.strokeStyle = THEME_COLOR;
|
||||
ctx.strokeStyle = _THEME_COLOR_;
|
||||
ctx.lineWidth = 2;
|
||||
ctx.moveTo(canvW / 2 - uv.x * length / 5, canvH / 2 - uv.y * length / 5);
|
||||
ctx.lineTo(canvW / 2 + uv.x * length, canvH / 2 + uv.y * length);
|
||||
|
|
|
|||
|
|
@ -28,8 +28,6 @@
|
|||
|
||||
</style>
|
||||
<script>
|
||||
import CONFIG from '../../../common/scripts/config';
|
||||
|
||||
this.mixin('api');
|
||||
|
||||
this.folder = this.opts.folder ? this.opts.folder : null;
|
||||
|
|
@ -37,9 +35,9 @@
|
|||
this.popout = () => {
|
||||
const folder = this.refs.window.refs.browser.folder;
|
||||
if (folder) {
|
||||
return `${CONFIG.url}/i/drive/folder/${folder.id}`;
|
||||
return `${_URL_}/i/drive/folder/${folder.id}`;
|
||||
} else {
|
||||
return `${CONFIG.url}/i/drive`;
|
||||
return `${_URL_}/i/drive`;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -114,8 +114,8 @@
|
|||
let broadcasts = [];
|
||||
if (meta.broadcasts) {
|
||||
meta.broadcasts.forEach(broadcast => {
|
||||
if (broadcast[LANG]) {
|
||||
broadcasts.push(broadcast[LANG]);
|
||||
if (broadcast[_LANG_]) {
|
||||
broadcasts.push(broadcast[_LANG_]);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@
|
|||
<mk-channel-post>
|
||||
<header>
|
||||
<a class="index" onclick={ reply }>{ post.index }:</a>
|
||||
<a class="name" href={ CONFIG.url + '/' + post.user.username }><b>{ post.user.name }</b></a>
|
||||
<a class="name" href={ _URL_ + '/' + post.user.username }><b>{ post.user.name }</b></a>
|
||||
<span>ID:<i>{ post.user.username }</i></span>
|
||||
</header>
|
||||
<div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<mk-version-home-widget>
|
||||
<p>ver { version } (葵 aoi)</p>
|
||||
<p>ver { _VERSION_ } (葵 aoi)</p>
|
||||
<style>
|
||||
:scope
|
||||
display block
|
||||
|
|
@ -16,7 +16,5 @@
|
|||
</style>
|
||||
<script>
|
||||
this.mixin('widget');
|
||||
|
||||
this.version = VERSION;
|
||||
</script>
|
||||
</mk-version-home-widget>
|
||||
|
|
|
|||
|
|
@ -19,11 +19,9 @@
|
|||
|
||||
</style>
|
||||
<script>
|
||||
import CONFIG from '../../../common/scripts/config';
|
||||
|
||||
this.user = this.opts.user;
|
||||
|
||||
this.popout = `${CONFIG.url}/i/messaging/${this.user.username}`;
|
||||
this.popout = `${_URL_}/i/messaging/${this.user.username}`;
|
||||
|
||||
this.on('mount', () => {
|
||||
this.refs.window.on('closed', () => {
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@
|
|||
</mk-entrance>
|
||||
|
||||
<mk-entrance-signin>
|
||||
<a class="help" href={ CONFIG.aboutUrl + '/help' } title="お困りですか?"><i class="fa fa-question"></i></a>
|
||||
<a class="help" href={ _ABOUT_URL_ + '/help' } title="お困りですか?"><i class="fa fa-question"></i></a>
|
||||
<div class="form">
|
||||
<h1><img if={ user } src={ user.avatar_url + '?thumbnail&size=32' }/>
|
||||
<p>{ user ? user.name : 'アカウント' }</p>
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@
|
|||
</header>
|
||||
<div class="body">
|
||||
<div class="text" ref="text">
|
||||
<p class="channel" if={ p.channel != null }><a href={ CONFIG.chUrl + '/' + p.channel.id } target="_blank">{ p.channel.title }</a>:</p>
|
||||
<p class="channel" if={ p.channel != null }><a href={ _CH_URL_ + '/' + p.channel.id } target="_blank">{ p.channel.title }</a>:</p>
|
||||
<a class="reply" if={ p.reply }>
|
||||
<i class="fa fa-reply"></i>
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@
|
|||
<ul>
|
||||
<virtual if={ SIGNIN }>
|
||||
<li class="home { active: page == 'home' }">
|
||||
<a href={ CONFIG.url }>
|
||||
<a href={ _URL_ }>
|
||||
<i class="fa fa-home"></i>
|
||||
<p>%i18n:desktop.tags.mk-ui-header-nav.home%</p>
|
||||
</a>
|
||||
|
|
@ -393,7 +393,7 @@
|
|||
</li>
|
||||
</virtual>
|
||||
<li class="ch">
|
||||
<a href={ CONFIG.chUrl } target="_blank">
|
||||
<a href={ _CH_URL_ } target="_blank">
|
||||
<i class="fa fa-television"></i>
|
||||
<p>%i18n:desktop.tags.mk-ui-header-nav.ch%</p>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue