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
<template> | |
<div class="version-update" v-if="versionUpdate"> | |
<p>There is a new version!</p> | |
<button @click="getNewVersion">Get Update</button> | |
</div> | |
<div class="bookmark-list" v-else> | |
<button @click="refresh">Refresh</button> | |
<div v-for="(bookmark, index) in bookmarks" :key="index"> | |
<a :href="bookmark.url">{{ bookmark.title }}</a> | |
</div> |
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
<template> | |
<div class="bookmark-list" v-if="authed"> | |
<button @click="refresh">Refresh</button> | |
<div v-for="(bookmark, index) in bookmarks" :key="index"> | |
<a :href="bookmark.url">{{ bookmark.title }}</a> | |
</div> | |
</div> | |
<div class="auth" v-else> | |
<AuthForm /> | |
</div> |
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
<template> | |
<div class="bookmark-list"> | |
<button @click="refresh">Refresh</button> | |
<div v-for="(bookmark, index) in bookmarks" :key="index"> | |
<a :href="bookmark.url">{{ bookmark.title }}</a> | |
</div> | |
</div> | |
</template> | |
<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
{ | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.editor.enablePreview": false, | |
"editor.renderWhitespace": "boundary", | |
"editor.renderLineHighlight": "all", | |
"files.insertFinalNewline": true, | |
"python.linting.pylintEnabled": false, | |
"python.linting.flake8Enabled": true, | |
"editor.selectionHighlight": false, | |
"editor.scrollBeyondLastLine": false, |
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
import Vue from 'vue'; | |
import commonComponents from './components'; | |
commonComponents.forEach(component => { | |
Vue.component(component.name, component); | |
}); | |
// now load Vue |
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
import PrettyDate from './PrettyDate.vue'; | |
import SystemMessages from './SystemMessages.vue'; | |
import LoadingIndicator from './LoadingIndicator.vue'; | |
export default [ | |
PrettyDate, | |
SystemMessages, | |
LoadingIndicator | |
]; |
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
<template> | |
<div class="spinner"> | |
<div class="rect1"></div> | |
<div class="rect2"></div> | |
<div class="rect3"></div> | |
<div class="rect4"></div> | |
<div class="rect5"></div> | |
</div> | |
</template> | |
<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
<template> | |
<div class="system-messages sticky-top"> | |
<error-message | |
v-for="(error, index) in errors" | |
:key="index" | |
:error="error" | |
@clearMessage="onClearError(index)"> | |
</error-message> | |
<success-message | |
v-for="(message, index) in messages" |
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
<template> | |
<div class="system-message alert alert-danger" role="alert"> | |
<button @click.stop="$emit('clearMessage')" class="close">×</button> | |
<ul><li v-for="(message, index) in error.messages" :key="index">{{ message }}</li></ul> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'error-message', | |
props: ['error'] |
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
<template> | |
<div class="system-message alert alert-success" role="alert"> | |
<button @click.stop="$emit('clearMessage')" class="close">×</button> | |
<p>{{ message }}</p> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'success-message', | |
props: ['message'] |
NewerOlder