Skip to content

Commit

Permalink
Revert "web(feat): enable custom html header"
Browse files Browse the repository at this point in the history
This reverts commit ace01ce.
  • Loading branch information
fliiiix committed Apr 7, 2020
1 parent 41b98bc commit 32b7865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 0 additions & 9 deletions web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,5 @@ yarn build
yarn lint
```

### Basic Header Theeming

Not happy with the default Docat logo and header?
Just add your custom html header with `VUE_APP_HEADER_HTML`.

```
VUE_APP_HEADER_HTML="<h1>MyCompany</h1>"
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
9 changes: 2 additions & 7 deletions web/src/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<div class="md-layout-item md-size-15 md-small-hide"></div>
<div class="md-layout-item">
<router-link to="/">
<div v-html="header" />
<img class="logo" alt="docat logo" src="../assets/logo.png" />
<h1>DOCAT</h1>
</router-link>
<slot name="toolbar"></slot>
</div>
Expand All @@ -32,12 +33,6 @@ export default {
name: 'layout',
props: {
fullscreen: Boolean,
},
data() {
const defaultHeader = '<img class="logo" alt="docat logo" src="' + require('../assets/logo.png') + '" /><h1>DOCAT</h1>';
return {
header: process.env.VUE_APP_HEADER_HTML || defaultHeader,
}
}
}
</script>
Expand Down

0 comments on commit 32b7865

Please sign in to comment.