Skip to content

Commit

Permalink
Migrate FtProgressBar to the composition API
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Oct 30, 2024
1 parent 741268a commit 95bddb4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/renderer/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import FtNotificationBanner from './components/ft-notification-banner/ft-notific
import FtPrompt from './components/ft-prompt/ft-prompt.vue'
import FtButton from './components/ft-button/ft-button.vue'
import FtToast from './components/ft-toast/ft-toast.vue'
import FtProgressBar from './components/ft-progress-bar/ft-progress-bar.vue'
import FtProgressBar from './components/FtProgressBar/FtProgressBar.vue'
import FtPlaylistAddVideoPrompt from './components/ft-playlist-add-video-prompt/ft-playlist-add-video-prompt.vue'
import FtCreatePlaylistPrompt from './components/ft-create-playlist-prompt/ft-create-playlist-prompt.vue'
import FtSearchFilters from './components/ft-search-filters/ft-search-filters.vue'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
inset-block-end: 0;
inset-inline-start: 0;
background-color: var(--primary-color);
z-index: 1;
transition: inline-size 0.5s;
z-index: 4;
}
18 changes: 18 additions & 0 deletions src/renderer/components/FtProgressBar/FtProgressBar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<div
class="progressBar"
:style="{ inlineSize: progressBarPercentage + '%' }"
/>
</template>

<script setup>
import { computed } from 'vue'
import store from '../../store/index'
const progressBarPercentage = computed(() => {
return store.getters.getProgressBarPercentage
})
</script>

<style scoped src="./FtProgressBar.css" />
10 changes: 0 additions & 10 deletions src/renderer/components/ft-progress-bar/ft-progress-bar.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/renderer/components/ft-progress-bar/ft-progress-bar.vue

This file was deleted.

0 comments on commit 95bddb4

Please sign in to comment.