diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 15:32:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-19 15:32:10 +0900 |
| commit | d392da64ab48a6c930d7f523dd9f844b0db2bd0b (patch) | |
| tree | 653e15c8c9bf54a11070df6859dcdbf31d837e37 /src/web/app/common | |
| parent | :v: (diff) | |
| download | sharkey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.tar.gz sharkey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.tar.bz2 sharkey-d392da64ab48a6c930d7f523dd9f844b0db2bd0b.zip | |
:tada:
Diffstat (limited to 'src/web/app/common')
| -rw-r--r-- | src/web/app/common/scripts/api.js | 2 | ||||
| -rw-r--r-- | src/web/app/common/scripts/messaging-stream.js | 2 | ||||
| -rw-r--r-- | src/web/app/common/scripts/stream.js | 2 | ||||
| -rw-r--r-- | src/web/app/common/tags/introduction.tag | 2 | ||||
| -rw-r--r-- | src/web/app/common/tags/signup.tag | 2 | ||||
| -rw-r--r-- | src/web/app/common/tags/twitter-setting.tag | 6 | ||||
| -rw-r--r-- | src/web/app/common/tags/uploader.tag | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/src/web/app/common/scripts/api.js b/src/web/app/common/scripts/api.js index 924d697ebc..b549fe47b9 100644 --- a/src/web/app/common/scripts/api.js +++ b/src/web/app/common/scripts/api.js @@ -24,7 +24,7 @@ module.exports = (i, endpoint, data = {}) => { return new Promise((resolve, reject) => { // Send request - fetch(endpoint.indexOf('://') > -1 ? endpoint : `${CONFIG.api.url}/${endpoint}`, { + fetch(endpoint.indexOf('://') > -1 ? endpoint : `${CONFIG.apiUrl}/${endpoint}`, { method: 'POST', body: JSON.stringify(data), credentials: endpoint === 'signin' ? 'include' : 'omit' diff --git a/src/web/app/common/scripts/messaging-stream.js b/src/web/app/common/scripts/messaging-stream.js index 17634c0707..2c00c24024 100644 --- a/src/web/app/common/scripts/messaging-stream.js +++ b/src/web/app/common/scripts/messaging-stream.js @@ -12,7 +12,7 @@ class Connection { this.event = riot.observable(); this.me = me; - const host = CONFIG.api.url.replace('http', 'ws'); + const host = CONFIG.apiUrl.replace('http', 'ws'); this.socket = new ReconnectingWebSocket(`${host}/messaging?i=${me.token}&otherparty=${otherparty}`); this.socket.addEventListener('open', this.onOpen); this.socket.addEventListener('message', this.onMessage); diff --git a/src/web/app/common/scripts/stream.js b/src/web/app/common/scripts/stream.js index 5c8c3e1073..34ddc8447d 100644 --- a/src/web/app/common/scripts/stream.js +++ b/src/web/app/common/scripts/stream.js @@ -5,7 +5,7 @@ module.exports = me => { let state = 'initializing'; const stateEv = riot.observable(); const event = riot.observable(); - const host = CONFIG.api.url.replace('http', 'ws'); + const host = CONFIG.apiUrl.replace('http', 'ws'); const socket = new ReconnectingWebSocket(`${host}?i=${me.token}`); socket.onopen = () => { diff --git a/src/web/app/common/tags/introduction.tag b/src/web/app/common/tags/introduction.tag index 7950586a27..24fe86e997 100644 --- a/src/web/app/common/tags/introduction.tag +++ b/src/web/app/common/tags/introduction.tag @@ -3,7 +3,7 @@ <h1>Misskeyとは?</h1><p><ruby>Misskey<rt>みすきー</rt></ruby>は、<a href="http://syuilo.com" target="_blank">syuilo</a>が2014年くらいから<a href="https://github.com/syuilo/misskey" target="_blank">オープンソースで</a>開発・運営を行っている、ミニブログベースのSNSです。</p> <p>Twitter, Facebook, LINE, Google+ などを<del>パクって</del><i>参考にして</i>います。</p> <p>無料で誰でも利用でき、広告は一切掲載していません。</p> -<p><a href={ CONFIG.urls.about } target="_blank">もっと知りたい方はこちら</a></p> +<p><a href={ CONFIG.aboutUrl } target="_blank">もっと知りたい方はこちら</a></p> </article> <style> :scope diff --git a/src/web/app/common/tags/signup.tag b/src/web/app/common/tags/signup.tag index 47a37108a0..7af72807a5 100644 --- a/src/web/app/common/tags/signup.tag +++ b/src/web/app/common/tags/signup.tag @@ -34,7 +34,7 @@ </label> <label class="agree-tou"> <input name="agree-tou" type="checkbox" autocomplete="off" required="required"/> - <p><a href={ CONFIG.urls.about + '/tou' } target="_blank">利用規約</a>に同意する</p> + <p><a href={ CONFIG.aboutUrl + '/tou' } target="_blank">利用規約</a>に同意する</p> </label> <button onclick={ onsubmit }>アカウント作成</button> </form> diff --git a/src/web/app/common/tags/twitter-setting.tag b/src/web/app/common/tags/twitter-setting.tag index 247f4719ee..162ccd2928 100644 --- a/src/web/app/common/tags/twitter-setting.tag +++ b/src/web/app/common/tags/twitter-setting.tag @@ -1,10 +1,10 @@ <mk-twitter-setting> - <p>お使いのTwitterアカウントをお使いのMisskeyアカウントに接続しておくと、プロフィールでTwitterアカウント情報が表示されるようになったり、Twitterを用いた便利なサインインを利用できるようになります。<a href={ CONFIG.urls.about + '/link-to-twitter' } target="_blank">詳細...</a></p> + <p>お使いのTwitterアカウントをお使いのMisskeyアカウントに接続しておくと、プロフィールでTwitterアカウント情報が表示されるようになったり、Twitterを用いた便利なサインインを利用できるようになります。<a href={ CONFIG.aboutUrl + '/link-to-twitter' } target="_blank">詳細...</a></p> <p class="account" if={ I.twitter } title={ 'Twitter ID: ' + I.twitter.user_id }>次のTwitterアカウントに接続されています: <a href={ 'https://twitter.com/' + I.twitter.screen_name } target="_blank">@{ I.twitter.screen_name }</a></p> <p> - <a href={ CONFIG.api.url + '/connect/twitter' } target="_blank">{ I.twitter ? '再接続する' : 'Twitterと接続する' }</a> + <a href={ CONFIG.apiUrl + '/connect/twitter' } target="_blank">{ I.twitter ? '再接続する' : 'Twitterと接続する' }</a> <span if={ I.twitter }> or </span> - <a href={ CONFIG.api.url + '/disconnect/twitter' } target="_blank" if={ I.twitter }>切断する</a> + <a href={ CONFIG.apiUrl + '/disconnect/twitter' } target="_blank" if={ I.twitter }>切断する</a> </p> <p class="id" if={ I.twitter }>Twitter ID: { I.twitter.user_id }</p> <style> diff --git a/src/web/app/common/tags/uploader.tag b/src/web/app/common/tags/uploader.tag index b1be019875..275a26c019 100644 --- a/src/web/app/common/tags/uploader.tag +++ b/src/web/app/common/tags/uploader.tag @@ -171,7 +171,7 @@ data.append \folder_id folder xhr = new XMLHttpRequest! - xhr.open \POST CONFIG.api.url + '/drive/files/create' true + xhr.open \POST CONFIG.apiUrl + '/drive/files/create' true xhr.onload = (e) ~> drive-file = JSON.parse e.target.response |