This commit is contained in:
syuilo 2018-09-28 00:48:17 +09:00
parent 8b73d02d43
commit bb157c2e6f
6 changed files with 11 additions and 9 deletions

View file

@ -214,6 +214,7 @@
"vue-loader": "15.4.2",
"vue-router": "3.0.1",
"vue-style-loader": "4.1.2",
"vue-svg-inline-loader": "1.1.3",
"vue-template-compiler": "2.5.17",
"vuedraggable": "2.16.0",
"vuewordcloud": "18.7.11",

View file

@ -14,7 +14,7 @@
<div class="main block">
<div>
<h1 v-if="name != 'Misskey'">{{ name }}</h1>
<h1 v-else><img :src="$store.state.device.darkmode ? 'assets/title.dark.svg' : 'assets/title.light.svg'" :alt="name"></h1>
<h1 v-else><img svg-inline src="../../../../assets/title.svg" :alt="name"></h1>
<div class="info">
<span><b>{{ host }}</b> - <span v-html="'%i18n:@powered-by-misskey%'"></span></span>
@ -377,9 +377,11 @@ export default Vue.extend({
> h1
margin 0
> img
> svg
margin -8px 0 0 -16px
max-width 280px
width 280px
height 100px
fill currentColor
> .info
margin 0 auto 16px auto

BIN
src/client/assets/title.dark.svg (Stored with Git LFS)

Binary file not shown.

BIN
src/client/assets/title.light.svg (Stored with Git LFS)

Binary file not shown.

BIN
src/client/assets/title.svg (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -134,6 +134,8 @@ module.exports = {
preserveWhitespace: false
}
}
}, {
loader: 'vue-svg-inline-loader'
}, {
loader: 'replace',
query: {