feat: remove external css resources
This commit is contained in:
parent
10df1b4b0c
commit
f3b8d37fc5
@ -76,8 +76,10 @@
|
|||||||
:label='$t("navigation.icon")'
|
:label='$t("navigation.icon")'
|
||||||
prepend-icon='casino'
|
prepend-icon='casino'
|
||||||
v-model='current.icon'
|
v-model='current.icon'
|
||||||
|
hide-details
|
||||||
)
|
)
|
||||||
v-select(
|
.caption.pt-2.pl-5 Refer to the #[a(href='https://material.io/tools/icons/?style=baseline', target='_blank') Material Design Icons Reference] for the list of all possible values.
|
||||||
|
v-select.mt-4(
|
||||||
outline
|
outline
|
||||||
:label='$t("navigation.targetType")'
|
:label='$t("navigation.targetType")'
|
||||||
prepend-icon='near_me'
|
prepend-icon='near_me'
|
||||||
|
@ -51,14 +51,14 @@
|
|||||||
span Horizontal Bar
|
span Horizontal Bar
|
||||||
.editor-markdown-main
|
.editor-markdown-main
|
||||||
.editor-markdown-sidebar
|
.editor-markdown-sidebar
|
||||||
//- v-tooltip(right)
|
|
||||||
//- v-btn(icon, slot='activator', dark, @click='toggleModal(`editorModalMedia`)').mx-0
|
|
||||||
//- v-icon(:color='activeModal === `editorModalMedia` ? `teal` : ``') image
|
|
||||||
//- span Insert Media
|
|
||||||
v-tooltip(right, color='primary')
|
v-tooltip(right, color='primary')
|
||||||
v-btn(icon, slot='activator', dark).mx-0
|
v-btn(icon, slot='activator', dark).mx-0
|
||||||
v-icon image
|
v-icon link
|
||||||
span Insert Media
|
span Insert Link
|
||||||
|
v-tooltip(right)
|
||||||
|
v-btn(icon, slot='activator', dark, @click='toggleModal(`editorModalMedia`)').mx-0
|
||||||
|
v-icon(:color='activeModal === `editorModalMedia` ? `teal` : ``') image
|
||||||
|
span Insert Image
|
||||||
v-tooltip(right, color='primary')
|
v-tooltip(right, color='primary')
|
||||||
v-btn(icon, slot='activator', dark).mx-0
|
v-btn(icon, slot='activator', dark).mx-0
|
||||||
v-icon insert_drive_file
|
v-icon insert_drive_file
|
||||||
@ -75,15 +75,15 @@
|
|||||||
v-btn(icon, slot='activator', dark).mx-0
|
v-btn(icon, slot='activator', dark).mx-0
|
||||||
v-icon functions
|
v-icon functions
|
||||||
span Insert Math Expression
|
span Insert Math Expression
|
||||||
v-tooltip(right, color='primary')
|
|
||||||
v-btn(icon, slot='activator', dark).mx-0
|
|
||||||
v-icon link
|
|
||||||
span Insert Link
|
|
||||||
v-spacer
|
|
||||||
v-tooltip(right, color='primary')
|
v-tooltip(right, color='primary')
|
||||||
v-btn(icon, slot='activator', dark).mx-0
|
v-btn(icon, slot='activator', dark).mx-0
|
||||||
v-icon border_outer
|
v-icon border_outer
|
||||||
span Table Helper
|
span Table Helper
|
||||||
|
v-spacer
|
||||||
|
v-tooltip(right, color='primary')
|
||||||
|
v-btn(icon, slot='activator', dark, @click='toggleFullscreen').mx-0
|
||||||
|
v-icon crop_free
|
||||||
|
span Fullscreen Editor
|
||||||
v-tooltip(right, color='primary')
|
v-tooltip(right, color='primary')
|
||||||
v-btn(icon, slot='activator', dark).mx-0
|
v-btn(icon, slot='activator', dark).mx-0
|
||||||
v-icon help
|
v-icon help
|
||||||
@ -124,10 +124,7 @@ import 'codemirror/addon/selection/active-line.js'
|
|||||||
import 'codemirror/addon/display/fullscreen.js'
|
import 'codemirror/addon/display/fullscreen.js'
|
||||||
import 'codemirror/addon/display/fullscreen.css'
|
import 'codemirror/addon/display/fullscreen.css'
|
||||||
import 'codemirror/addon/selection/mark-selection.js'
|
import 'codemirror/addon/selection/mark-selection.js'
|
||||||
import 'codemirror/addon/scroll/annotatescrollbar.js'
|
|
||||||
import 'codemirror/addon/search/matchesonscrollbar.js'
|
|
||||||
import 'codemirror/addon/search/searchcursor.js'
|
import 'codemirror/addon/search/searchcursor.js'
|
||||||
import 'codemirror/addon/search/match-highlighter.js'
|
|
||||||
|
|
||||||
// Markdown-it
|
// Markdown-it
|
||||||
import MarkdownIt from 'markdown-it'
|
import MarkdownIt from 'markdown-it'
|
||||||
@ -296,6 +293,9 @@ export default {
|
|||||||
}, 500),
|
}, 500),
|
||||||
toggleAround (before, after) {
|
toggleAround (before, after) {
|
||||||
|
|
||||||
|
},
|
||||||
|
toggleFullscreen () {
|
||||||
|
this.cm.setOption('fullScreen', true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,25 +2,97 @@
|
|||||||
v-card.editor-modal-media.animated.fadeInLeft(flat, tile)
|
v-card.editor-modal-media.animated.fadeInLeft(flat, tile)
|
||||||
v-container.pa-3(grid-list-lg, fluid)
|
v-container.pa-3(grid-list-lg, fluid)
|
||||||
v-layout(row, wrap)
|
v-layout(row, wrap)
|
||||||
v-flex(xs3)
|
v-flex(xs9)
|
||||||
v-card.radius-7.animated.fadeInLeft.wait-p1s(light)
|
v-card.radius-7.animated.fadeInLeft.wait-p1s(light)
|
||||||
v-card-text
|
v-card-text
|
||||||
file-pond(
|
v-toolbar.radius-7(color='teal lighten-5', dense, flat)
|
||||||
|
.body-2.teal--text Images
|
||||||
|
v-spacer
|
||||||
|
v-btn(outline, small, color='teal')
|
||||||
|
v-icon(left) keyboard_backspace
|
||||||
|
span Parent Folder
|
||||||
|
v-btn(outline, small, color='teal')
|
||||||
|
v-icon(left) add
|
||||||
|
span New Folder
|
||||||
|
v-list.mt-3(dense, two-line)
|
||||||
|
template(v-for='(item, idx) of [1,2,3,4,5,6,7,8,9,10]')
|
||||||
|
v-list-tile(@click='')
|
||||||
|
v-list-tile-avatar
|
||||||
|
v-avatar.radius-7(color='teal', tile)
|
||||||
|
v-icon(dark) image
|
||||||
|
v-list-tile-content
|
||||||
|
v-list-tile-title Image {{item}}
|
||||||
|
v-list-tile-sub-title 1024x768, 10 KBs
|
||||||
|
v-list-tile-action
|
||||||
|
.caption.pr-3 2019-04-07
|
||||||
|
v-list-tile-action
|
||||||
|
v-chip(label, small) JPG
|
||||||
|
v-divider(v-if='idx < 10 - 1')
|
||||||
|
.d-flex.mt-3
|
||||||
|
v-toolbar.radius-7(flat, color='grey lighten-4', dense)
|
||||||
|
.body-2 / universe
|
||||||
|
v-spacer
|
||||||
|
.body-1.grey--text.text--darken-1 10 files
|
||||||
|
v-btn.ml-3(color='teal', dark, @click='insert')
|
||||||
|
v-icon(left) save_alt
|
||||||
|
span Insert
|
||||||
|
|
||||||
|
v-flex(xs3)
|
||||||
|
v-card.radius-7.animated.fadeInRight.wait-p3s(light)
|
||||||
|
v-card-text
|
||||||
|
v-toolbar.radius-7(color='teal lighten-5', dense, flat)
|
||||||
|
v-icon.mr-3(color='teal') cloud_upload
|
||||||
|
.body-2.teal--text Upload Images
|
||||||
|
file-pond.mt-3(
|
||||||
name='mediaUpload'
|
name='mediaUpload'
|
||||||
ref='pond'
|
ref='pond'
|
||||||
label-idle='Drop files here...'
|
label-idle='Browse or Drop files here...'
|
||||||
allow-multiple='true'
|
allow-multiple='true'
|
||||||
accepted-file-types='image/jpeg, image/png'
|
accepted-file-types='image/jpeg, image/png'
|
||||||
:files='files'
|
:files='files'
|
||||||
)
|
)
|
||||||
v-flex(xs9)
|
v-divider
|
||||||
v-card.radius-7.animated.fadeInLeft.wait-p3s(light)
|
v-card-actions.pa-3
|
||||||
v-card-text Beep boop
|
.caption.grey--text.text-darken-2 Max 20 files, 5 MB each
|
||||||
|
v-spacer
|
||||||
|
v-btn(color='teal', dark) Upload
|
||||||
|
|
||||||
|
v-card.mt-3.radius-7.animated.fadeInRight.wait-p4s(light)
|
||||||
|
v-card-text.pb-0
|
||||||
|
v-toolbar.radius-7(color='teal lighten-5', dense, flat)
|
||||||
|
v-icon.mr-3(color='teal') cloud_download
|
||||||
|
.body-2.teal--text Fetch Remote Image
|
||||||
|
v-text-field.mt-3(
|
||||||
|
v-model='remoteImageUrl'
|
||||||
|
outline
|
||||||
|
single-line
|
||||||
|
background-color='grey lighten-2'
|
||||||
|
placeholder='https://example.com/image.jpg'
|
||||||
|
)
|
||||||
|
v-divider
|
||||||
|
v-card-actions.pa-3
|
||||||
|
.caption.grey--text.text-darken-2 Max 5 MB
|
||||||
|
v-spacer
|
||||||
|
v-btn(color='teal', dark) Fetch
|
||||||
|
|
||||||
|
v-card.mt-3.radius-7.animated.fadeInRight.wait-p4s(light)
|
||||||
|
v-card-text.pb-0
|
||||||
|
v-toolbar.radius-7(color='teal lighten-5', dense, flat)
|
||||||
|
v-icon.mr-3(color='teal') format_align_left
|
||||||
|
.body-2.teal--text Alignment
|
||||||
|
v-select.mt-3(
|
||||||
|
v-model='imageAlignment'
|
||||||
|
:items='imageAlignments'
|
||||||
|
outline
|
||||||
|
single-line
|
||||||
|
background-color='grey lighten-2'
|
||||||
|
placeholder='None'
|
||||||
|
)
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import _ from 'lodash'
|
// import _ from 'lodash'
|
||||||
// import { sync } from 'vuex-pathify'
|
import { sync } from 'vuex-pathify'
|
||||||
import vueFilePond from 'vue-filepond'
|
import vueFilePond from 'vue-filepond'
|
||||||
import 'filepond/dist/filepond.min.css'
|
import 'filepond/dist/filepond.min.css'
|
||||||
|
|
||||||
@ -42,16 +114,28 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
files: []
|
files: [],
|
||||||
|
remoteImageUrl: '',
|
||||||
|
imageAlignments: [
|
||||||
|
{ text: 'None', value: '' },
|
||||||
|
{ text: 'Centered', value: 'center' },
|
||||||
|
{ text: 'Right', value: 'right' },
|
||||||
|
{ text: 'Absolute Top Right', value: 'abstopright' }
|
||||||
|
],
|
||||||
|
imageAlignment: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
isShown: {
|
isShown: {
|
||||||
get() { return this.value },
|
get() { return this.value },
|
||||||
set(val) { this.$emit('input', val) }
|
set(val) { this.$emit('input', val) }
|
||||||
}
|
},
|
||||||
|
activeModal: sync('editor/activeModal')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
insert () {
|
||||||
|
this.activeModal = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -376,10 +376,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-family: 'Varela Round' !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.social-login-btn {
|
.social-login-btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -297,10 +297,6 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-family: 'Varela Round' !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-text-field.centered input {
|
.v-text-field.centered input {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@import "global";
|
@import "global";
|
||||||
|
|
||||||
@import "base/base";
|
@import "base/base";
|
||||||
|
@import "base/fonts";
|
||||||
@import "base/icons";
|
@import "base/icons";
|
||||||
@import "base/animation";
|
@import "base/animation";
|
||||||
|
|
||||||
|
79
client/scss/base/fonts.scss
Normal file
79
client/scss/base/fonts.scss
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-MediumItalic.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-MediumItalic.woff') format('woff');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-Italic.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-Bold.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('/fonts/SourceSansPro-Bold.woff2') format('woff2'),
|
||||||
|
url('/fonts/SourceSansPro-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-Regular.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-Regular.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('/fonts/SourceSansPro-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('/fonts/SourceSansPro-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('/fonts/SourceSansPro-Regular.woff2') format('woff2'),
|
||||||
|
url('/fonts/SourceSansPro-Regular.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('/fonts/Roboto-Medium.woff2') format('woff2'),
|
||||||
|
url('/fonts/Roboto-Medium.woff') format('woff');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('/fonts/SourceSansPro-Italic.woff2') format('woff2'),
|
||||||
|
url('/fonts/SourceSansPro-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
@ -1,3 +1,38 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Material Icons';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: local('Material Icons'),
|
||||||
|
local('MaterialIcons-Regular'),
|
||||||
|
url(/fonts/MaterialIcons-Regular.woff2) format('woff2'),
|
||||||
|
url(/fonts/MaterialIcons-Regular.woff) format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
.material-icons {
|
||||||
|
font-family: 'Material Icons';
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 24px; /* Preferred icon size */
|
||||||
|
display: inline-flex;
|
||||||
|
line-height: 1;
|
||||||
|
text-transform: none;
|
||||||
|
letter-spacing: normal;
|
||||||
|
word-wrap: normal;
|
||||||
|
white-space: nowrap;
|
||||||
|
direction: ltr;
|
||||||
|
|
||||||
|
/* Support for all WebKit browsers. */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
/* Support for Safari and Chrome. */
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
|
||||||
|
/* Support for Firefox. */
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
/* Support for IE. */
|
||||||
|
font-feature-settings: 'liga';
|
||||||
|
}
|
||||||
|
|
||||||
.icons {
|
.icons {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: mc('grey', '800');
|
color: mc('grey', '800');
|
||||||
|
BIN
client/static/fonts/MaterialIcons-Regular.woff
Normal file
BIN
client/static/fonts/MaterialIcons-Regular.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/MaterialIcons-Regular.woff2
Normal file
BIN
client/static/fonts/MaterialIcons-Regular.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Bold.woff
Normal file
BIN
client/static/fonts/Roboto-Bold.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Bold.woff2
Normal file
BIN
client/static/fonts/Roboto-Bold.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-BoldItalic.woff
Normal file
BIN
client/static/fonts/Roboto-BoldItalic.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-BoldItalic.woff2
Normal file
BIN
client/static/fonts/Roboto-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Italic.woff
Normal file
BIN
client/static/fonts/Roboto-Italic.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Italic.woff2
Normal file
BIN
client/static/fonts/Roboto-Italic.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Medium.woff
Normal file
BIN
client/static/fonts/Roboto-Medium.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Medium.woff2
Normal file
BIN
client/static/fonts/Roboto-Medium.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-MediumItalic.woff
Normal file
BIN
client/static/fonts/Roboto-MediumItalic.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-MediumItalic.woff2
Normal file
BIN
client/static/fonts/Roboto-MediumItalic.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Regular.woff
Normal file
BIN
client/static/fonts/Roboto-Regular.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/Roboto-Regular.woff2
Normal file
BIN
client/static/fonts/Roboto-Regular.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Bold.woff
Normal file
BIN
client/static/fonts/SourceSansPro-Bold.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Bold.woff2
Normal file
BIN
client/static/fonts/SourceSansPro-Bold.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-BoldItalic.woff
Normal file
BIN
client/static/fonts/SourceSansPro-BoldItalic.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-BoldItalic.woff2
Normal file
BIN
client/static/fonts/SourceSansPro-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Italic.woff
Normal file
BIN
client/static/fonts/SourceSansPro-Italic.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Italic.woff2
Normal file
BIN
client/static/fonts/SourceSansPro-Italic.woff2
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Regular.woff
Normal file
BIN
client/static/fonts/SourceSansPro-Regular.woff
Normal file
Binary file not shown.
BIN
client/static/fonts/SourceSansPro-Regular.woff2
Normal file
BIN
client/static/fonts/SourceSansPro-Regular.woff2
Normal file
Binary file not shown.
80
client/static/fonts/stylesheet.css
Normal file
80
client/static/fonts/stylesheet.css
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-MediumItalic.woff2') format('woff2'),
|
||||||
|
url('Roboto-MediumItalic.woff') format('woff');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-Italic.woff2') format('woff2'),
|
||||||
|
url('Roboto-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-Bold.woff2') format('woff2'),
|
||||||
|
url('Roboto-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('SourceSansPro-Bold.woff2') format('woff2'),
|
||||||
|
url('SourceSansPro-Bold.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-Regular.woff2') format('woff2'),
|
||||||
|
url('Roboto-Regular.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('Roboto-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('SourceSansPro-BoldItalic.woff2') format('woff2'),
|
||||||
|
url('SourceSansPro-BoldItalic.woff') format('woff');
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('SourceSansPro-Regular.woff2') format('woff2'),
|
||||||
|
url('SourceSansPro-Regular.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('Roboto-Medium.woff2') format('woff2'),
|
||||||
|
url('Roboto-Medium.woff') format('woff');
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Source Sans Pro';
|
||||||
|
src: url('SourceSansPro-Italic.woff2') format('woff2'),
|
||||||
|
url('SourceSansPro-Italic.woff') format('woff');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
@ -32,8 +32,6 @@ html
|
|||||||
var siteConfig = !{JSON.stringify({ title: config.title, theme: config.theming.theme, darkMode: config.theming.darkMode, lang: config.lang.code, company: config.company })}
|
var siteConfig = !{JSON.stringify({ title: config.title, theme: config.theming.theme, darkMode: config.theming.darkMode, lang: config.lang.code, company: config.company })}
|
||||||
|
|
||||||
//- CSS
|
//- CSS
|
||||||
link(type='text/css', rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Roboto:400,500,700|Varela+Round|Source+Code+Pro:400,700|Material+Icons')
|
|
||||||
link(type='text/css', rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css')
|
|
||||||
<% for (var index in htmlWebpackPlugin.files.css) { %>
|
<% for (var index in htmlWebpackPlugin.files.css) { %>
|
||||||
<% if (htmlWebpackPlugin.files.cssIntegrity) { %>
|
<% if (htmlWebpackPlugin.files.cssIntegrity) { %>
|
||||||
link(
|
link(
|
||||||
|
@ -22,8 +22,6 @@ html
|
|||||||
var siteConfig = !{JSON.stringify({ title: config.title })}
|
var siteConfig = !{JSON.stringify({ title: config.title })}
|
||||||
|
|
||||||
//- CSS
|
//- CSS
|
||||||
link(type='text/css', rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Roboto:400,500,700|Source+Code+Pro:400,700|Material+Icons')
|
|
||||||
link(type='text/css', rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css')
|
|
||||||
<% for (var index in htmlWebpackPlugin.files.css) { %>
|
<% for (var index in htmlWebpackPlugin.files.css) { %>
|
||||||
<% if (htmlWebpackPlugin.files.cssIntegrity) { %>
|
<% if (htmlWebpackPlugin.files.cssIntegrity) { %>
|
||||||
link(
|
link(
|
||||||
|
@ -7,9 +7,9 @@ html
|
|||||||
meta(name='theme-color', content='#333333')
|
meta(name='theme-color', content='#333333')
|
||||||
meta(name='msapplication-TileColor', content='#333333')
|
meta(name='msapplication-TileColor', content='#333333')
|
||||||
meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
|
meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
|
||||||
|
|
||||||
title= pageMeta.title + ' | ' + config.title
|
title= pageMeta.title + ' | ' + config.title
|
||||||
|
|
||||||
//- SEO / OpenGraph
|
//- SEO / OpenGraph
|
||||||
meta(name='description', content=pageMeta.description)
|
meta(name='description', content=pageMeta.description)
|
||||||
meta(property='og:title', content=pageMeta.title)
|
meta(property='og:title', content=pageMeta.title)
|
||||||
@ -18,7 +18,7 @@ html
|
|||||||
meta(property='og:image', content=pageMeta.image)
|
meta(property='og:image', content=pageMeta.image)
|
||||||
meta(property='og:url', content=pageMeta.url)
|
meta(property='og:url', content=pageMeta.url)
|
||||||
meta(property='og:site_name', content=config.title)
|
meta(property='og:site_name', content=config.title)
|
||||||
|
|
||||||
//- Favicon
|
//- Favicon
|
||||||
each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
|
each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
|
||||||
link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
|
link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
|
||||||
@ -26,34 +26,32 @@ html
|
|||||||
each favsize in [32, 96, 16]
|
each favsize in [32, 96, 16]
|
||||||
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
|
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
|
||||||
link(rel='manifest', href='/manifest.json')
|
link(rel='manifest', href='/manifest.json')
|
||||||
|
|
||||||
//- Site Properties
|
//- Site Properties
|
||||||
script.
|
script.
|
||||||
var siteConfig = !{JSON.stringify({ title: config.title, theme: config.theming.theme, darkMode: config.theming.darkMode, lang: config.lang.code, company: config.company })}
|
var siteConfig = !{JSON.stringify({ title: config.title, theme: config.theming.theme, darkMode: config.theming.darkMode, lang: config.lang.code, company: config.company })}
|
||||||
|
|
||||||
//- CSS
|
//- CSS
|
||||||
link(type='text/css', rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Roboto:400,500,700|Varela+Round|Source+Code+Pro:400,700|Material+Icons')
|
|
||||||
link(type='text/css', rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css')
|
|
||||||
|
|
||||||
|
|
||||||
//- JS
|
|
||||||
|
|
||||||
|
//- JS
|
||||||
|
|
||||||
|
|
||||||
script(
|
script(
|
||||||
type='text/javascript'
|
type='text/javascript'
|
||||||
src='/js/runtime.js'
|
src='/js/runtime.js'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
script(
|
script(
|
||||||
type='text/javascript'
|
type='text/javascript'
|
||||||
src='/js/app.js'
|
src='/js/app.js'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
block head
|
block head
|
||||||
|
|
||||||
body
|
body
|
||||||
block body
|
block body
|
||||||
|
@ -8,7 +8,7 @@ html
|
|||||||
meta(name='msapplication-TileColor', content='#333333')
|
meta(name='msapplication-TileColor', content='#333333')
|
||||||
meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
|
meta(name='msapplication-TileImage', content='/favicons/ms-icon-144x144.png')
|
||||||
title Wiki.js Setup
|
title Wiki.js Setup
|
||||||
|
|
||||||
//- Favicon
|
//- Favicon
|
||||||
each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
|
each favsize in [57, 60, 72, 76, 114, 120, 144, 152, 180]
|
||||||
link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
|
link(rel='apple-touch-icon', sizes=favsize + 'x' + favsize, href='/favicons/apple-icon-' + favsize + 'x' + favsize + '.png')
|
||||||
@ -16,33 +16,31 @@ html
|
|||||||
each favsize in [32, 96, 16]
|
each favsize in [32, 96, 16]
|
||||||
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
|
link(rel='icon', type='image/png', sizes=favsize + 'x' + favsize, href='/favicons/favicon-' + favsize + 'x' + favsize + '.png')
|
||||||
link(rel='manifest', href='/manifest.json')
|
link(rel='manifest', href='/manifest.json')
|
||||||
|
|
||||||
//- Site Lang
|
//- Site Lang
|
||||||
script.
|
script.
|
||||||
var siteConfig = !{JSON.stringify({ title: config.title })}
|
var siteConfig = !{JSON.stringify({ title: config.title })}
|
||||||
|
|
||||||
//- CSS
|
//- CSS
|
||||||
link(type='text/css', rel='stylesheet', href='https://fonts.googleapis.com/icon?family=Roboto:400,500,700|Source+Code+Pro:400,700|Material+Icons')
|
|
||||||
link(type='text/css', rel='stylesheet', href='https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css')
|
|
||||||
|
|
||||||
|
|
||||||
//- JS
|
|
||||||
|
|
||||||
|
//- JS
|
||||||
|
|
||||||
|
|
||||||
script(
|
script(
|
||||||
type='text/javascript'
|
type='text/javascript'
|
||||||
src='/js/runtime.js'
|
src='/js/runtime.js'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
script(
|
script(
|
||||||
type='text/javascript'
|
type='text/javascript'
|
||||||
src='/js/setup.js'
|
src='/js/setup.js'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
body
|
body
|
||||||
#root
|
#root
|
||||||
setup(telemetry-id=telemetryClientID, wiki-version=packageObj.version)
|
setup(telemetry-id=telemetryClientID, wiki-version=packageObj.version)
|
||||||
|
Loading…
Reference in New Issue
Block a user