This repository has been archived by the owner on May 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Updates documentation system
- Loading branch information
1 parent
d8b10d7
commit cfa9784
Showing
280 changed files
with
17,086 additions
and
18,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
!.travis.yml | ||
!.babelrc | ||
!.circleci | ||
!.vuepress | ||
|
||
coverage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
const { distDir } = require('./dir') | ||
|
||
module.exports = () => ({ | ||
module.exports = (port = 8080) => ({ | ||
historyApiFallback: true, | ||
noInfo: true, | ||
overlay: true, | ||
inline: true, | ||
hot: true, | ||
disableHostCheck: true, | ||
host: '0.0.0.0', | ||
contentBase: distDir | ||
contentBase: distDir, | ||
port | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
const path = require('path') | ||
const { sourceDir, prepend } = require('./dir') | ||
|
||
module.exports = prefix => ({ | ||
const prod = prefix => ({ | ||
embed: path.resolve(sourceDir, 'embed', 'embed.js'), | ||
'extensions/external-events': path.resolve(sourceDir, 'extensions', 'external-events.js'), | ||
[prepend('window', prefix)]: path.resolve(sourceDir, 'embed', 'window.js'), | ||
[prepend('share', prefix)]: path.resolve(sourceDir, 'embed', 'share.js'), | ||
[prepend('vendor', prefix)]: path.resolve(sourceDir, 'vendor.js') | ||
}) | ||
|
||
const dev = () => ({ | ||
embed: path.resolve(sourceDir, 'embed', 'embed.js'), | ||
'extensions/external-events': path.resolve(sourceDir, 'extensions', 'external-events.js'), | ||
window: path.resolve(sourceDir, 'embed', 'window.js'), | ||
share: path.resolve(sourceDir, 'embed', 'share.js'), | ||
vendor: path.resolve(sourceDir, 'vendor.js'), | ||
example: path.resolve(sourceDir, 'statics', 'example', 'example.js') | ||
}) | ||
|
||
module.exports = { prod, dev } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<div class="container"> | ||
<podlove-web-player :config="config" @ready="onReady"/> | ||
|
||
<div class="row"> | ||
<div class="column"> | ||
<h4>Main</h4> | ||
<picker v-model="main" /> | ||
</div> | ||
<div class="column"> | ||
<h4>Highlight</h4> | ||
<picker v-model="highlight" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { Chrome } from 'vue-color' | ||
import PodloveWebPlayer from './PodloveWebPlayer.vue' | ||
export default { | ||
props: ['config'], | ||
name: 'ColorPicker', | ||
data() { | ||
return { | ||
main: '#2B8AC6', | ||
highlight: '#FFFFFF' | ||
} | ||
}, | ||
components: { | ||
'picker': Chrome, | ||
PodloveWebPlayer | ||
}, | ||
methods: { | ||
onReady (store) { | ||
this.store = store | ||
this.updateColors() | ||
}, | ||
updateColors () { | ||
const main = this.main.hex8 | ||
const highlight = this.highlight.hex8 | ||
this.store.dispatch({ | ||
type: 'SET_THEME', | ||
payload: { | ||
main, | ||
highlight | ||
} | ||
}) | ||
} | ||
}, | ||
watch: { | ||
main () { | ||
this.updateColors() | ||
}, | ||
highlight () { | ||
this.updateColors() | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.row { | ||
margin-bottom: 1.5em; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<template> | ||
<div class="editor-container" :style="{ height: height || '150px' }"></div> | ||
</template> | ||
|
||
<script> | ||
import Editor from 'jsoneditor/dist/jsoneditor.min' | ||
export default { | ||
name: 'json-editor', | ||
props: ['json', 'height', 'mode'], | ||
methods: { | ||
onChange (text) { | ||
try { | ||
this.$emit('update', JSON.parse(text)) | ||
} catch (e) {} | ||
} | ||
}, | ||
mounted () { | ||
this.editor = new Editor(this.$el, { | ||
search: false, | ||
onChangeText: this.onChange.bind(this), | ||
sortObjectKeys: false, | ||
mode: this.mode || 'code', | ||
statusBar: false | ||
}) | ||
this.$emit('ready', this.editor) | ||
this.editor.set(this.json) | ||
}, | ||
beforeDestroy() { | ||
this.editor.destroy() | ||
this.editor = null | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
@import '~jsoneditor/dist/jsoneditor.min.css'; | ||
@import '~milligram-scss/src/Color'; | ||
.jsoneditor { | ||
border-color: $color-primary !important; | ||
margin-bottom: 1.5em; | ||
} | ||
.jsoneditor-menu { | ||
display: none; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div> | ||
<podlove-web-player :config="example" @ready="initPlayer" /> | ||
<json-editor :json="example" @update="updateConfig" height="500px" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import example from '../public/fixtures/example.json' | ||
export default { | ||
data () { | ||
return { | ||
example, | ||
store: null | ||
} | ||
}, | ||
methods: { | ||
initPlayer (store) { | ||
this.store = store | ||
}, | ||
updateConfig (payload) { | ||
this.store.dispatch({ | ||
type: 'INIT', | ||
payload | ||
}) | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<template> | ||
<div class="player" :id="id"></div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'PodloveWebPlayer', | ||
props: ['config', 'mode', 'id'], | ||
mounted: function () { | ||
window.podlovePlayer(this.$el, this.config).then(store => { | ||
this.$emit('ready', store) | ||
return store | ||
}).then(window.registerExternalEvents(this.id)) | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.player { | ||
margin-bottom: 1.5em; | ||
} | ||
</style> |
Oops, something went wrong.