File tree Expand file tree Collapse file tree 4 files changed +17
-19
lines changed
src/components/Generator/GeneredTaskfile Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ function banner {
19
19
# =========================================================
20
20
21
21
function task:init { # # Set up the project for local development
22
- project:npm-config
23
22
project:git-config
24
23
task:update
25
24
task:help
@@ -52,12 +51,6 @@ function project:install-dependencies {
52
51
npm install
53
52
}
54
53
55
- function project:npm-config {
56
- title " Configuring NPM"
57
- npm config --location=project set legacy-peer-deps=true \
58
- && echo -e " All ${GREEN} good${RESET} ."
59
- }
60
-
61
54
function project:git-config {
62
55
title " Setting git configuration"
63
56
git config --local core.hooksPath dev/git-hooks
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import { ReactElement } from 'react' ;
4
- import { taskfile } from '@/components/Generator/GeneredTaskfile/taskfile' ;
5
- import { useFormContext } from 'react-hook-form' ;
6
- import { GeneratorSettings } from '@/components/Generator/Generator' ;
3
+ import { ReactElement } from 'react' ;
4
+ import { taskfile } from '@/components/Generator/GeneredTaskfile/taskfile' ;
5
+ import { useFormContext } from 'react-hook-form' ;
6
+ import { GeneratorSettings } from '@/components/Generator/Generator' ;
7
7
import SaveFile from './SaveFile' ;
8
- import { highlighter } from './Highlighter' ;
8
+ import { highlighter } from './Highlighter' ;
9
9
10
10
const GeneratedTaskfile = ( ) : ReactElement => {
11
11
const form = useFormContext < GeneratorSettings > ( ) ;
Original file line number Diff line number Diff line change 1
1
'use client' ;
2
2
3
- import { ReactElement , useState } from 'react' ;
3
+ import { ReactElement , useState } from 'react' ;
4
4
5
5
import styles from './save-file.module.scss' ;
6
6
@@ -19,7 +19,7 @@ const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
19
19
} ;
20
20
21
21
const download = ( ) : void => {
22
- const blob = new Blob ( [ content ] , { type : 'text/x-shellscript' } ) ;
22
+ const blob = new Blob ( [ content ] , { type : 'text/x-shellscript' } ) ;
23
23
const elem = window . document . createElement ( 'a' ) ;
24
24
elem . href = window . URL . createObjectURL ( blob ) ;
25
25
elem . download = 'Taskfile' ;
@@ -31,7 +31,12 @@ const CopyToClipboard = ({ content }: CopyProps): ReactElement => {
31
31
return (
32
32
< div className = { styles . container } >
33
33
< button type = "button" className = { `${ styles . download } ` } onClick = { download } title = "Download Taskfile" />
34
- < button type = "button" className = { `${ styles . copy } ${ isCopied && styles . copied } ` } onClick = { onClick } title = "Copy Taskfile content" />
34
+ < button
35
+ type = "button"
36
+ className = { `${ styles . copy } ${ isCopied && styles . copied } ` }
37
+ onClick = { onClick }
38
+ title = "Copy Taskfile content"
39
+ />
35
40
</ div >
36
41
) ;
37
42
} ;
Original file line number Diff line number Diff line change 22
22
background-repeat : no-repeat ;
23
23
background-position : center ;
24
24
border-radius : 0.2rem ;
25
- transition :
26
- background-color 200ms ease-in-out ;
25
+ transition : background-color 200ms ease-in-out ;
27
26
}
28
27
29
28
.download {
32
31
33
32
.copy {
34
33
background-image : url (' ./clipboard.svg' );
35
- background-size : 1.0 rem ;
34
+ background-size : 1 rem ;
36
35
}
37
36
38
- .copy :hover , .download :hover {
37
+ .copy :hover ,
38
+ .download :hover {
39
39
color : #fff ;
40
40
border-color : #fff ;
41
41
}
You can’t perform that action at this time.
0 commit comments