File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed
src/components/downloaded Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change @@ -46,28 +46,34 @@ if [[ -z $tagname ]]; then
4646fi
4747
4848if [[ $# != 1 ]]; then
49- cat << EOF
50- Usage: $0 <new-tagname>
49+ usage
50+ exit 5
51+ fi
5152
52- $FILES will be patched with the new tagname
53+ export newtag=$( tr ' ' ' -' <<< $1 ) # spaces to dashes
54+
55+ if [[ $( git tag --list) == * $newtag * ]]; then
56+ cat << EOF
57+ $newtag is already used:
58+
59+ $( git show $newtag )
5360EOF
54- exit 5
61+ exit 8
5562fi
5663
5764replace_tag_reference_in_file () {
5865 if [[ $# == 2 && -f $2 ]]; then
59- export newtag= $( tr ' ' ' - ' <<< $1 ) # spaces to dashes
60- sed -i ' ' " s/ $tagname / $newtag / " $2
66+ sed -i ' ' " s/ $tagname / $newtag / " $2
67+ export newtag= $( tr ' ' ' - ' <<< $1 ) # spaces to dashes
6168 else
62- usage " $( basename $0 ) " $tagname
63- echo " \nError: $2 file not found\n"
64- exit 6
69+ echo " \nError: $2 file not found\n"
70+ exit 6
6571 fi
6672}
6773
6874for file in " ${FILES[@]} "
6975do
70- replace_tag_reference_in_file $1 $file
76+ replace_tag_reference_in_file $1 $file
7177done
7278
7379git diff
Original file line number Diff line number Diff line change @@ -26,12 +26,13 @@ export const DowloadedFile: React.FC<DowloadedFileProps> = (props) => {
2626 const { apiBase } = useApiBase ( )
2727 const { viewType } = useDownloaded ( )
2828
29- const image = ( ) => (
29+ const Image = ( ) => (
3030 < div
31- className = "flex flex-col justify-center items-center relative gap-1 bg-black rounded-t-xl"
31+ className = "flex flex-col justify-center items-center relative gap-1 bg-black rounded-t-xl group "
3232 onClick = { ( ) => handlePlay ( file . name ) } >
3333 < div className = { `absolute cursor-pointer opacity-10
34- transition-opacity duration-500 hover:opacity-100
34+ group-hover:opacity-100
35+ transition-opacity duration-500
3536 rounded-full bg-background/30
3637 w-20 h-20 mb-[22px]
3738 flex flex-row items-center justify-center` } >
@@ -97,12 +98,12 @@ export const DowloadedFile: React.FC<DowloadedFileProps> = (props) => {
9798 </ LongPressButton >
9899 )
99100
100- const isGrid = viewType == 'grid'
101- const isList = viewType == 'list'
101+ const isGrid = viewType == 'grid'
102+ const isList = viewType == 'list'
102103
103104 return (
104105 < div className = { isList ? listClasses : gridClasses } >
105- { isGrid && image ( ) }
106+ { isGrid && < Image /> }
106107 < div
107108 className = { isList ? listNameClasses : gridNameClasses } >
108109 { file . name }
You can’t perform that action at this time.
0 commit comments