generated from HIRO-MicroDataCenters-BV/template-vue-fe
-
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.
Merge pull request #6 from HIRO-MicroDataCenters-BV/feature/videos-on…
…-graph Feature/videos on graph
- Loading branch information
Showing
45 changed files
with
300 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,51 @@ | ||
<script setup lang="ts"> | ||
import { computed } from 'vue'; | ||
const props = defineProps({ | ||
data: { | ||
type: Object, | ||
required: true, | ||
}, | ||
}); | ||
const width = computed(() => { | ||
return props.data?.width || 120; | ||
}); | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="app-flow-chart-video-node" | ||
:style="{ | ||
width: `${width}px`, | ||
height: `${width * 0.5625}px`, | ||
}" | ||
> | ||
<div class="app-flow-chart-video-node__video"> | ||
<a | ||
:href="data.videoFullFileUrl || 'https://youtu.be/dQw4w9WgXcQ'" | ||
target="_blank" | ||
> | ||
<video | ||
:width="width" | ||
class="app-flow-chart-video-node__video-element" | ||
:src="data.videoFile || 'https://www.w3schools.com/html/mov_bbb.mp4'" | ||
autoplay | ||
loop | ||
muted | ||
playsinline | ||
> | ||
Your browser does not support the video tag. | ||
</video> | ||
</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.app-flow-chart-video-node { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
</style> |
File renamed without changes.
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,23 @@ | ||
import agriculture1 from '@/assets/videos/agriculture/agriculture_1.mp4'; | ||
import agriculture2 from '@/assets/videos/agriculture/agriculture_2.mp4'; | ||
import agriculture3 from '@/assets/videos/agriculture/agriculture_3.mp4'; | ||
import agriculture4 from '@/assets/videos/agriculture/agriculture_4.mp4'; | ||
|
||
export const agricultureVideos = { | ||
agriculture1: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: agriculture1, | ||
}, | ||
agriculture2: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: agriculture2, | ||
}, | ||
agriculture3: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: agriculture3, | ||
}, | ||
agriculture4: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: agriculture4, | ||
}, | ||
}; |
File renamed without changes.
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,28 @@ | ||
import city1 from '@/assets/videos/city/city_1.mp4'; | ||
import city2 from '@/assets/videos/city/city_2.mp4'; | ||
import city3 from '@/assets/videos/city/city_3.mp4'; | ||
import city4 from '@/assets/videos/city/city_4.mp4'; | ||
import city5 from '@/assets/videos/city/city_5.mp4'; | ||
|
||
export const cityVideos = { | ||
city1: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: city1, | ||
}, | ||
city2: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: city2, | ||
}, | ||
city3: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: city3, | ||
}, | ||
city4: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: city4, | ||
}, | ||
city5: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: city5, | ||
}, | ||
}; |
File renamed without changes.
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,33 @@ | ||
import energyGrid1 from '@/assets/videos/energy-grid/energy-grid-1.mp4'; | ||
import energyGrid2 from '@/assets/videos/energy-grid/energy-grid-2.mp4'; | ||
import energyGrid3 from '@/assets/videos/energy-grid/energy-grid-3.mp4'; | ||
import energyGrid4 from '@/assets/videos/energy-grid/energy-grid-4.mp4'; | ||
import energyGrid5 from '@/assets/videos/energy-grid/energy-grid-5.mp4'; | ||
import energyGrid6 from '@/assets/videos/energy-grid/energy-grid-6.mp4'; | ||
|
||
export const energyGridVideos = { | ||
energyGrid1: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid1, | ||
}, | ||
energyGrid2: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid2, | ||
}, | ||
energyGrid3: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid3, | ||
}, | ||
energyGrid4: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid4, | ||
}, | ||
energyGrid5: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid5, | ||
}, | ||
energyGrid6: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: energyGrid6, | ||
}, | ||
}; |
File renamed without changes.
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,28 @@ | ||
import health1 from '@/assets/health-videos/health1.mp4'; | ||
import health2 from '@/assets/health-videos/health2.mp4'; | ||
import health3 from '@/assets/health-videos/health3.mp4'; | ||
import health4 from '@/assets/health-videos/health4.mp4'; | ||
import health5 from '@/assets/health-videos/health5.mp4'; | ||
|
||
export const healthVideos = { | ||
health1: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: health1, | ||
}, | ||
health2: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: health2, | ||
}, | ||
health3: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: health3, | ||
}, | ||
health4: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: health4, | ||
}, | ||
health5: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: health5, | ||
}, | ||
}; |
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,28 @@ | ||
import industry1 from '@/assets/videos/industry/industry_1.mp4'; | ||
import industry2 from '@/assets/videos/industry/industry_2.mp4'; | ||
import industry3 from '@/assets/videos/industry/industry_3.mp4'; | ||
import industry4 from '@/assets/videos/industry/industry_4.mp4'; | ||
import industry5 from '@/assets/videos/industry/industry_5.mp4'; | ||
|
||
export const industryVideos = { | ||
industry1: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: industry1, | ||
}, | ||
industry2: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: industry2, | ||
}, | ||
industry3: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: industry3, | ||
}, | ||
industry4: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: industry4, | ||
}, | ||
industry5: { | ||
videoFullFileUrl: 'https://www.youtube.com/watch?v=9bZkp7q19f0', | ||
videoFile: industry5, | ||
}, | ||
}; |
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
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,39 @@ | ||
#!/bin/bash | ||
|
||
# Check if the input directory is provided | ||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <input_directory>" | ||
exit 1 | ||
fi | ||
|
||
# Input directory | ||
input_directory="$1" | ||
|
||
# Output directory | ||
output_directory="${input_directory}_converted" | ||
|
||
# Ensure the output directory exists | ||
mkdir -p "$output_directory" | ||
|
||
# Extract folder name | ||
folder_name=$(basename "$input_directory") | ||
|
||
# Counter for numbering files | ||
counter=1 | ||
|
||
# Loop over all video files in the input directory | ||
for input_file in "$input_directory"/*; do | ||
if [[ -f "$input_file" ]]; then | ||
# Set the output file name and path | ||
output_file="$output_directory/${folder_name}_$counter.mp4" | ||
|
||
# Convert the video to 240p H.264 format, mute it, and use 6 CPU threads | ||
ffmpeg -i "$input_file" -vf "scale=trunc(oh*a/2)*2:240" -threads 6 -c:v libx264 -crf 30 -preset slow -an "$output_file" | ||
|
||
# Increment the counter | ||
counter=$((counter + 1)) | ||
fi | ||
done | ||
|
||
echo "Conversion completed!" | ||
|