2018-02-19 19:15:18 -06:00
|
|
|
<template>
|
2018-08-31 22:05:25 -05:00
|
|
|
<a class="jvwxssxsytqlqvrpiymarjlzlsxskqsr" @click.prevent="onClick" :href="`/i/drive/folder/${ folder.id }`">
|
2018-02-19 19:15:18 -06:00
|
|
|
<div class="container">
|
2018-11-05 10:40:11 -06:00
|
|
|
<p class="name"><fa icon="folder"/>{{ folder.name }}</p><fa icon="angle-right"/>
|
2018-02-19 19:15:18 -06:00
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
|
|
props: ['folder'],
|
|
|
|
computed: {
|
|
|
|
browser(): any {
|
|
|
|
return this.$parent;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onClick() {
|
|
|
|
this.browser.cd(this.folder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-09-28 00:03:55 -05:00
|
|
|
.jvwxssxsytqlqvrpiymarjlzlsxskqsr
|
2018-02-19 19:15:18 -06:00
|
|
|
display block
|
2018-09-28 00:03:55 -05:00
|
|
|
color var(--text)
|
2018-02-19 19:15:18 -06:00
|
|
|
text-decoration none !important
|
|
|
|
|
|
|
|
*
|
|
|
|
user-select none
|
|
|
|
pointer-events none
|
|
|
|
|
|
|
|
> .container
|
|
|
|
max-width 500px
|
|
|
|
margin 0 auto
|
|
|
|
padding 16px
|
|
|
|
|
|
|
|
> .name
|
|
|
|
display block
|
|
|
|
margin 0
|
|
|
|
padding 0
|
|
|
|
|
2018-11-05 10:40:11 -06:00
|
|
|
> [data-icon]
|
2018-02-19 19:15:18 -06:00
|
|
|
margin-right 6px
|
|
|
|
|
2018-11-05 10:40:11 -06:00
|
|
|
> [data-icon]
|
2018-02-19 19:15:18 -06:00
|
|
|
position absolute
|
|
|
|
top 0
|
|
|
|
bottom 0
|
|
|
|
right 20px
|
|
|
|
|
|
|
|
> *
|
|
|
|
height 100%
|
|
|
|
|
|
|
|
</style>
|