Finish migrating most everything to TS
This commit is contained in:
parent
0407e97aa1
commit
378a26a7c5
13 changed files with 209 additions and 263 deletions
|
@ -2,17 +2,15 @@ import Vue from 'vue';
|
|||
import Icon from "../../../core/Icon";
|
||||
|
||||
export default Vue.component('file-context-menu', {
|
||||
components: {
|
||||
Icon,
|
||||
},
|
||||
components: { Icon },
|
||||
|
||||
template: `
|
||||
<div class="context-menu">
|
||||
<div>
|
||||
<div class="context-row">
|
||||
<div class="icon">
|
||||
<icon name="edit3"/>
|
||||
</div>
|
||||
<icon name="edit-3"/>
|
||||
</div>
|
||||
<div class="action"><span>Rename</span></div>
|
||||
</div>
|
||||
<div class="context-row">
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import Vue from 'vue';
|
||||
import { formatDate } from "../../../../helpers";
|
||||
import Icon from "../../../core/Icon";
|
||||
import { formatDate } from "@/helpers";
|
||||
import Icon from "@/components/core/Icon";
|
||||
|
||||
export default Vue.component('folder-row', {
|
||||
components: {
|
||||
Icon,
|
||||
},
|
||||
components: { Icon },
|
||||
|
||||
props: {
|
||||
directory: {type: Object, required: true},
|
||||
|
@ -34,7 +32,7 @@ export default Vue.component('folder-row', {
|
|||
:to="{ name: 'server-files', params: { path: getClickablePath(directory.name).replace(/^\\//, '') }}"
|
||||
>
|
||||
<div class="flex-none icon">
|
||||
<folder-icon/>
|
||||
<icon name="folder"/>
|
||||
</div>
|
||||
<div class="flex-1">{{directory.name}}</div>
|
||||
<div class="flex-1 text-right text-grey-dark"></div>
|
||||
|
|
Reference in a new issue