-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#9 - Typing of Item, Folder and File complete
- Loading branch information
1 parent
e29109a
commit defbaad
Showing
8 changed files
with
478 additions
and
379 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div>{{ file.name }}</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { type PropType } from 'vue'; | ||
import { FileClass } from '@lib/items'; | ||
defineProps({ | ||
file: { | ||
type: Object as PropType<FileClass>, | ||
required: true, | ||
}, | ||
}); | ||
</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
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,21 @@ | ||
<template> | ||
<button | ||
type="button" | ||
:class="folder.colorClass" | ||
class="mb-2 mr-2 rounded-lg bg-gradient-to-br px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-gradient-to-bl focus:outline-none focus:ring-4 focus:ring-blue-300 dark:focus:ring-blue-800" | ||
> | ||
{{ folder.name }} | ||
</button> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { type PropType } from 'vue'; | ||
import { FolderClass } from '@lib/items'; | ||
defineProps({ | ||
folder: { | ||
type: Object as PropType<FolderClass>, | ||
required: true, | ||
}, | ||
}); | ||
</script> |
Oops, something went wrong.