File tree Expand file tree Collapse file tree 24 files changed +508
-406
lines changed Expand file tree Collapse file tree 24 files changed +508
-406
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
3
<button
4
+ id =" copyLinkButton"
4
5
type =" button"
5
- class =" inline-flex items-center justify-center gap-1 p-2 text-sm transition-transform transform rounded-md shadow outline-none justify-self-end focus:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg copy-uri-button"
6
+ class ="
7
+ inline-flex
8
+ items-center
9
+ justify-center
10
+ gap-1
11
+ p-2
12
+ text-sm
13
+ transition-transform
14
+ transform
15
+ rounded-md
16
+ shadow
17
+ outline-none
18
+ justify-self-end
19
+ focus:ring-4
20
+ active:scale-y-75
21
+ hover:scale-105 hover:shadow-lg
22
+ copy-uri-button
23
+ "
6
24
aria-label =" Click here to copy url to clipboard"
7
- id =" copyLinkButton"
8
25
:class =" {
9
26
'bg-blue-500 text-white': !copied,
10
27
'bg-green-500 text-gray-800': copied,
17
34
role =" status"
18
35
>
19
36
<span v-show =" copied" class =" inline" aria-hidden =" true" >
20
- <svg
21
- class =" w-4 h-4"
22
- fill =" none"
23
- stroke =" currentColor"
24
- viewBox =" 0 0 24 24"
25
- xmlns =" http://www.w3.org/2000/svg"
26
- >
27
- <path
28
- stroke-linecap =" round"
29
- stroke-linejoin =" round"
30
- stroke-width =" 2"
31
- d =" M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"
32
- ></path >
33
- </svg >
37
+ <Copied />
34
38
</span >
35
39
<span v-show =" copied" class =" hidden md:inline-block" >Copied</span >
36
40
<span v-show =" !copied" class =" inline" aria-hidden =" true" >
37
- <svg
38
- class =" w-4 h-4"
39
- fill =" none"
40
- stroke =" currentColor"
41
- viewBox =" 0 0 24 24"
42
- xmlns =" http://www.w3.org/2000/svg"
43
- >
44
- <path
45
- stroke-linecap =" round"
46
- stroke-linejoin =" round"
47
- stroke-width =" 2"
48
- d =" M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"
49
- ></path >
50
- </svg >
41
+ <Link />
51
42
</span >
52
43
<span v-show =" !copied" class =" hidden md:inline-block" >Copy link</span >
53
44
</span >
56
47
</template >
57
48
<script lang="ts">
58
49
import Vue from ' vue'
50
+ import Link from ' ~/components/icons/link.vue'
51
+ import Copied from ' ~/components/icons/copied.vue'
59
52
export default Vue .extend ({
53
+ components: { Link , Copied },
60
54
props: {
61
55
clickHandler: {
62
56
type: Function ,
Original file line number Diff line number Diff line change 2
2
<div id =" nextDiffSection" class =" inline-flex items-center gap-1" >
3
3
<button
4
4
id =" nextDiff"
5
- class =" inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm outline-none dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
5
+ class ="
6
+ inline-flex
7
+ items-center
8
+ justify-center
9
+ px-1
10
+ py-1
11
+ text-sm text-gray-600
12
+ transition-transform
13
+ transform
14
+ bg-gray-300
15
+ border border-gray-800
16
+ rounded-sm
17
+ outline-none
18
+ dark:border-gray-400 dark:text-white dark:bg-gray-800
19
+ align-center
20
+ focus:ring-4
21
+ active:scale-y-75
22
+ hover:scale-105 hover:shadow-lg
23
+ "
6
24
aria-label =" Go to next diff"
7
25
type =" button"
8
26
@click =" clickHandler"
9
27
>
10
- <svg
11
- aria-hidden =" true"
12
- class =" w-4 h-4"
13
- fill =" none"
14
- stroke =" currentColor"
15
- viewBox =" 0 0 24 24"
16
- xmlns =" http://www.w3.org/2000/svg"
17
- >
18
- <path
19
- stroke-linecap =" round"
20
- stroke-linejoin =" round"
21
- stroke-width =" 2"
22
- d =" M16 17l-4 4m0 0l-4-4m4 4V3"
23
- ></path >
24
- </svg >
28
+ <Down />
25
29
<span aria-hidden =" true" >Next diff</span >
26
30
</button >
27
31
</div >
28
- </template >
29
- <script lang="ts">
30
- import Vue from ' vue'
31
- export default Vue .extend ({
32
- props: {
33
- clickHandler: {
34
- type: Function ,
35
- required: true ,
36
- },
37
- },
38
- })
39
- </script >
40
32
</template >
33
+ <script lang="ts">
34
+ import Vue from ' vue'
35
+ import Down from ' ~/components/icons/down.vue'
36
+ export default Vue .extend ({
37
+ components: { Down },
38
+ props: {
39
+ clickHandler: {
40
+ type: Function ,
41
+ required: true ,
42
+ },
43
+ },
44
+ })
45
+ </script >
Original file line number Diff line number Diff line change 2
2
<div id =" prevDiffSection" class =" inline-flex items-center gap-1" >
3
3
<button
4
4
id =" prevDiff"
5
- class =" inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm outline-none dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
5
+ class ="
6
+ inline-flex
7
+ items-center
8
+ justify-center
9
+ px-1
10
+ py-1
11
+ text-sm text-gray-600
12
+ transition-transform
13
+ transform
14
+ bg-gray-300
15
+ border border-gray-800
16
+ rounded-sm
17
+ outline-none
18
+ dark:border-gray-400 dark:text-white dark:bg-gray-800
19
+ align-center
20
+ focus:ring-4
21
+ active:scale-y-75
22
+ hover:scale-105 hover:shadow-lg
23
+ "
6
24
aria-label =" Go to previous diff"
7
25
type =" button"
8
26
@click =" clickHandler"
9
27
>
10
- <svg
11
- aria-hidden =" true"
12
- class =" w-4 h-4"
13
- fill =" none"
14
- stroke =" currentColor"
15
- viewBox =" 0 0 24 24"
16
- xmlns =" http://www.w3.org/2000/svg"
17
- >
18
- <path
19
- stroke-linecap =" round"
20
- stroke-linejoin =" round"
21
- stroke-width =" 2"
22
- d =" M8 7l4-4m0 0l4 4m-4-4v18"
23
- ></path >
24
- </svg >
28
+ <Up />
25
29
<span aria-hidden =" true" >Previous diff</span >
26
30
</button >
27
31
</div >
28
32
</template >
29
33
<script >
30
34
import Vue from ' vue'
35
+ import Up from ' ~/components/icons/up.vue'
31
36
export default Vue .extend ({
37
+ components: { Up },
32
38
props: {
33
39
clickHandler: {
34
40
type: Function ,
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" sticky top-0 text-right z-1" >
3
3
<button
4
- class =" absolute top-0 right-0 p-2 text-gray-800 transition-all transform rounded-full shadow dark:text-gray-50 z-1 hover:shadow-lg hover:scale-110 hover:rotate-12"
4
+ class ="
5
+ absolute
6
+ top-0
7
+ right-0
8
+ p-2
9
+ text-gray-800
10
+ transition-all
11
+ transform
12
+ rounded-full
13
+ shadow
14
+ dark:text-gray-50
15
+ z-1
16
+ hover:shadow-lg hover:scale-110 hover:rotate-12
17
+ "
5
18
:class =" {
6
19
'bg-gray-100 dark:bg-gray-600': !copied,
7
20
'bg-green-500': copied,
11
24
@click =" handleClick"
12
25
>
13
26
<span aria-live =" assertive" role =" status" >
14
- <span aria-label =" copy to clipboard" v-show = " !copied " >
27
+ <span v-show = " !copied " aria-label =" copy to clipboard" >
15
28
<svg
16
29
aria-hidden =" true"
17
30
class =" w-6 h-6"
28
41
></path >
29
42
</svg >
30
43
</span >
31
- <span aria-label =" copied" v-show =" copied" >
44
+ <span v-show =" copied" aria-label =" copied" >
32
45
<svg
33
46
aria-hidden =" true"
34
47
class =" w-6 h-6"
Original file line number Diff line number Diff line change 3
3
<button
4
4
id =" toggleInlineDiffView"
5
5
type =" button"
6
- class =" inline-flex items-center justify-center px-1 py-1 text-sm text-gray-600 transition-transform transform bg-gray-300 border border-gray-800 rounded-sm outline-none dark:border-gray-400 dark:text-white dark:bg-gray-800 align-center focus:ring-4 active:scale-y-75 hover:scale-105 hover:shadow-lg"
6
+ class ="
7
+ inline-flex
8
+ items-center
9
+ justify-center
10
+ px-1
11
+ py-1
12
+ text-sm text-gray-600
13
+ transition-transform
14
+ transform
15
+ bg-gray-300
16
+ border border-gray-800
17
+ rounded-sm
18
+ outline-none
19
+ dark:border-gray-400 dark:text-white dark:bg-gray-800
20
+ align-center
21
+ focus:ring-4
22
+ active:scale-y-75
23
+ hover:scale-105 hover:shadow-lg
24
+ "
7
25
@click =" toggleInlineDiffView"
8
26
>
9
27
<svg
15
33
viewBox =" 0 0 122.88 101.61"
16
34
stroke =" currentColor"
17
35
xml:space =" preserve"
18
- class =" w-4 h-4 mr-1 transition-all duration-500 transform transform -gpu"
36
+ class =" w-4 h-4 mr-1 transition-all duration-500 transform-gpu"
19
37
:class =" {
20
38
'rotate-90': isEnabled,
21
39
}"
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<footer
3
- class =" sticky py-4 mt-4 text-center text-gray-800 top-full bg-inherit dark:text-gray-50 min-h-max"
3
+ class ="
4
+ sticky
5
+ py-4
6
+ mt-4
7
+ text-center text-gray-800
8
+ top-full
9
+ bg-inherit
10
+ dark:text-gray-50
11
+ min-h-max
12
+ "
4
13
>
5
14
Made with &hearts ; using
6
15
<a
7
16
href =" https://nuxtjs.org"
8
17
title =" nuxtjs a vuejs based framework inspired by nextjs"
9
18
aria-label =" nuxtjs a vuejs based framework inspired by nextjs"
10
19
>
11
- <svg
12
- class =" inline w-4 h-4"
13
- viewBox =" 0 0 124 124"
14
- fill =" none"
15
- xmlns =" http://www.w3.org/2000/svg"
16
- >
17
- <path
18
- fill-rule =" evenodd"
19
- clip-rule =" evenodd"
20
- d =" M55.7498 27.1551C52.5277 21.615 44.4723 21.6149 41.2502 27.1551L6.13404 87.5346C2.91191 93.0748 6.93956 100 13.3838 100H40.7975C38.0438 97.5934 37.0241 93.4303 39.1079 89.8584L65.7033 44.2694L55.7498 27.1551Z"
21
- fill =" #80EEC0"
22
- />
23
- <path
24
- d =" M78.0002 40.3997C80.6668 35.8668 87.3332 35.8668 89.9998 40.3997L119.061 89.801C121.728 94.3339 118.395 100 113.062 100H54.9383C49.6052 100 46.2719 94.3339 48.9385 89.801L78.0002 40.3997Z"
25
- fill =" #00DC82"
26
- />
27
- </svg >
20
+ <Nuxt />
28
21
</a >
29
22
<span >&</span >
30
23
<a
31
24
href =" https://tailwindcss.com/"
32
25
title =" tailwind css"
33
26
aria-label =" tailwind css"
34
27
>
35
- <svg
36
- xmlns =" http://www.w3.org/2000/svg"
37
- fill =" none"
38
- viewBox =" 0 0 54 33"
39
- class =" inline w-4 h-4"
40
- >
41
- <g clip-path =" url(#prefix__clip0)" >
42
- <path
43
- fill =" #38bdf8"
44
- fill-rule =" evenodd"
45
- d =" M27 0c-7.2 0-11.7 3.6-13.5 10.8 2.7-3.6 5.85-4.95 9.45-4.05 2.054.513 3.522 2.004 5.147 3.653C30.744 13.09 33.808 16.2 40.5 16.2c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C36.756 3.11 33.692 0 27 0zM13.5 16.2C6.3 16.2 1.8 19.8 0 27c2.7-3.6 5.85-4.95 9.45-4.05 2.054.514 3.522 2.004 5.147 3.653C17.244 29.29 20.308 32.4 27 32.4c7.2 0 11.7-3.6 13.5-10.8-2.7 3.6-5.85 4.95-9.45 4.05-2.054-.513-3.522-2.004-5.147-3.653C23.256 19.31 20.192 16.2 13.5 16.2z"
46
- clip-rule =" evenodd"
47
- />
48
- </g >
49
- <defs >
50
- <clipPath id =" prefix__clip0" >
51
- <path fill =" #fff" d =" M0 0h54v32.4H0z" />
52
- </clipPath >
53
- </defs >
54
- </svg >
28
+ <Tailwind />
55
29
</a >
56
30
by © ;
57
31
<a
61
35
>
62
36
</footer >
63
37
</template >
38
+ <script lang="ts">
39
+ import Vue from ' vue'
40
+ import Tailwind from ' ~/components/icons/tailwind.vue'
41
+ import Nuxt from ' ~/components/icons/nuxt.vue'
42
+ export default Vue .extend ({
43
+ components: { Tailwind , Nuxt },
44
+ })
45
+ </script >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <svg
3
+ class =" w-6 h-6"
4
+ fill =" none"
5
+ stroke =" currentColor"
6
+ viewBox =" 0 0 24 24"
7
+ xmlns =" http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ stroke-linecap =" round"
11
+ stroke-linejoin =" round"
12
+ stroke-width =" 2"
13
+ d =" M10 19l-7-7m0 0l7-7m-7 7h18"
14
+ ></path >
15
+ </svg >
16
+ </template >
17
+ <script lang="ts">
18
+ import Vue from ' vue'
19
+ export default Vue .extend ({})
20
+ </script >
You can’t perform that action at this time.
0 commit comments