1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-12 05:38:51 +09:00
This commit is contained in:
syuilo 2017-02-22 03:27:38 +09:00
parent c38a792238
commit 15b237875b
14 changed files with 20 additions and 20 deletions

View File

@ -23,7 +23,7 @@
<h1>サインインしてください</h1>
<mk-signin></mk-signin>
</main>
<footer><img src="/_/resources/auth/logo.svg" alt="Misskey"/></footer>
<footer><img src="/resources/auth/logo.svg" alt="Misskey"/></footer>
<style>
:scope
display block

View File

@ -2,5 +2,5 @@ extends ../base
block head
meta(name='viewport', content='width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no')
link(rel='stylesheet', href='/_/resources/auth/style.css')
script(src='/_/resources/auth/script.js', async, defer)
link(rel='stylesheet', href='/resources/auth/style.css')
script(src='/resources/auth/script.js', async, defer)

View File

@ -94,8 +94,8 @@ module.exports = callback => {
mixins(me);
const init = document.getElementById('ini');
init.parentNode.removeChild(init);
const ini = document.getElementById('ini');
ini.parentNode.removeChild(ini);
const app = document.createElement('div');
app.setAttribute('id', 'app');

View File

@ -7,7 +7,7 @@
function mountDesktop() {
const script = document.createElement('script');
script.setAttribute('src', '/_/resources/desktop/script.js');
script.setAttribute('src', '/resources/desktop/script.js');
script.setAttribute('async', 'true');
script.setAttribute('defer', 'true');
head.appendChild(script);
@ -20,7 +20,7 @@
head.appendChild(meta);
const script = document.createElement('script');
script.setAttribute('src', '/_/resources/mobile/script.js');
script.setAttribute('src', '/resources/mobile/script.js');
script.setAttribute('async', 'true');
script.setAttribute('defer', 'true');
head.appendChild(script);

View File

@ -1,6 +1,6 @@
<mk-core-error>
<!--i: i.fa.fa-times-circle-->
<img src="/_/resources/error.jpg" alt=""/>
<img src="/resources/error.jpg" alt=""/>
<h1>サーバーに接続できません</h1>
<p class="text">インターネット回線に問題があるか、サーバーがダウンまたはメンテナンスしている可能性があります。しばらくしてから<a onclick={ retry }>再度お試し</a>ください。</p>
<p class="thanks">いつもMisskeyをご利用いただきありがとうございます。</p>

View File

@ -191,7 +191,7 @@
&:not([data-is-me]):not([data-is-read])
> div
background-image url("/_/resources/unread.svg")
background-image url("/resources/unread.svg")
background-repeat no-repeat
background-position 0 center

View File

@ -2,7 +2,7 @@
<div class="content-container">
<div class="balloon">
<p class="read" if={ message.is_me && message.is_read }>既読</p>
<button class="delete-button" if={ message.is_me } title="メッセージを削除"><img src="/_/resources/desktop/messaging/delete.png" alt="Delete"/></button>
<button class="delete-button" if={ message.is_me } title="メッセージを削除"><img src="/resources/desktop/messaging/delete.png" alt="Delete"/></button>
<div class="content" if={ !message.is_deleted }>
<div ref="text"></div>
<div class="image" if={ message.file }><img src={ message.file.url } alt="image" title={ message.file.name }/></div>

View File

@ -1,11 +1,11 @@
<mk-drive-browser-file data-is-selected={ (file._selected || false).toString() } data-is-contextmenu-showing={ isContextmenuShowing.toString() } onclick={ onclick } oncontextmenu={ oncontextmenu } draggable="true" ondragstart={ ondragstart } ondragend={ ondragend } title={ title }>
<div class="label" if={ I.avatar_id == file.id }><img src="/_/resources/label.svg"/>
<div class="label" if={ I.avatar_id == file.id }><img src="/resources/label.svg"/>
<p>アバター</p>
</div>
<div class="label" if={ I.banner_id == file.id }><img src="/_/resources/label.svg"/>
<div class="label" if={ I.banner_id == file.id }><img src="/resources/label.svg"/>
<p>バナー</p>
</div>
<div class="label" if={ I.data.wallpaper == file.id }><img src="/_/resources/label.svg"/>
<div class="label" if={ I.data.wallpaper == file.id }><img src="/resources/label.svg"/>
<p>壁紙</p>
</div>
<div class="thumbnail"><img src={ file.url + '?thumbnail&size=128' } alt=""/></div>

View File

@ -1,5 +1,5 @@
<mk-entrance>
<main><img src="/_/resources/title.svg" alt="Misskey"/>
<main><img src="/resources/title.svg" alt="Misskey"/>
<mk-entrance-signin if={ mode == 'signin' }></mk-entrance-signin>
<mk-entrance-signup if={ mode == 'signup' }></mk-entrance-signup>
<div class="introduction" if={ mode == 'introduction' }>

View File

@ -4,7 +4,7 @@
<div class="medias { with: poll }" if={ files.length != 0 }>
<ul>
<li each={ files }>
<div class="img" style="background-image: url({ url + '?thumbnail&size=64' })" title={ name }></div><img class="remove" onclick={ _remove } src="/_/resources/desktop/remove.png" title="添付取り消し" alt=""/>
<div class="img" style="background-image: url({ url + '?thumbnail&size=64' })" title={ name }></div><img class="remove" onclick={ _remove } src="/resources/desktop/remove.png" title="添付取り消し" alt=""/>
</li>
<li class="add" if={ files.length < 4 } title="PCからファイルを添付" onclick={ selectFile }><i class="fa fa-plus"></i></li>
</ul>

View File

@ -44,7 +44,7 @@
display block
width 100%
height 48px
background-image url(/_/resources/desktop/header-logo.svg)
background-image url(/resources/desktop/header-logo.svg)
background-size 64px
background-position center
background-repeat no-repeat

View File

@ -1,5 +1,5 @@
extends ../base
block head
link(rel='stylesheet', href='/_/resources/dev/style.css')
script(src='/_/resources/dev/script.js', async, defer)
link(rel='stylesheet', href='/resources/dev/style.css')
script(src='/resources/dev/script.js', async, defer)

View File

@ -1,5 +1,5 @@
<mk-entrance>
<main><img src="/_/resources/title.svg" alt="Misskey"/>
<main><img src="/resources/title.svg" alt="Misskey"/>
<mk-entrance-signin if={ mode == 'signin' }></mk-entrance-signin>
<mk-entrance-signup if={ mode == 'signup' }></mk-entrance-signup>
<div class="introduction" if={ mode == 'introduction' }>

View File

@ -40,7 +40,7 @@ app.use((req, res, next) => {
app.use(favicon(`${__dirname}/resources/favicon.ico`));
app.get('/manifest.json', (req, res) => res.sendFile(__dirname + '/resources/manifest.json'));
app.get('/apple-touch-icon.png', (req, res) => res.sendFile(__dirname + '/resources/apple-touch-icon.png'));
app.use('/_/resources', express.static(`${__dirname}/resources`, {
app.use('/resources', express.static(`${__dirname}/resources`, {
maxAge: ms('7 days')
}));