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 11<template >
22 <div >
33 <button
4+ id =" copyLinkButton"
45 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+ "
624 aria-label =" Click here to copy url to clipboard"
7- id =" copyLinkButton"
825 :class =" {
926 'bg-blue-500 text-white': !copied,
1027 'bg-green-500 text-gray-800': copied,
1734 role =" status"
1835 >
1936 <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 />
3438 </span >
3539 <span v-show =" copied" class =" hidden md:inline-block" >Copied</span >
3640 <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 />
5142 </span >
5243 <span v-show =" !copied" class =" hidden md:inline-block" >Copy link</span >
5344 </span >
5647</template >
5748<script lang="ts">
5849import Vue from ' vue'
50+ import Link from ' ~/components/icons/link.vue'
51+ import Copied from ' ~/components/icons/copied.vue'
5952export default Vue .extend ({
53+ components: { Link , Copied },
6054 props: {
6155 clickHandler: {
6256 type: Function ,
Original file line number Diff line number Diff line change 22 <div id =" nextDiffSection" class =" inline-flex items-center gap-1" >
33 <button
44 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+ "
624 aria-label =" Go to next diff"
725 type =" button"
826 @click =" clickHandler"
927 >
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 />
2529 <span aria-hidden =" true" >Next diff</span >
2630 </button >
2731 </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 >
4032</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 22 <div id =" prevDiffSection" class =" inline-flex items-center gap-1" >
33 <button
44 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+ "
624 aria-label =" Go to previous diff"
725 type =" button"
826 @click =" clickHandler"
927 >
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 />
2529 <span aria-hidden =" true" >Previous diff</span >
2630 </button >
2731 </div >
2832</template >
2933<script >
3034import Vue from ' vue'
35+ import Up from ' ~/components/icons/up.vue'
3136export default Vue .extend ({
37+ components: { Up },
3238 props: {
3339 clickHandler: {
3440 type: Function ,
Original file line number Diff line number Diff line change 11<template >
22 <div class =" sticky top-0 text-right z-1" >
33 <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+ "
518 :class =" {
619 'bg-gray-100 dark:bg-gray-600': !copied,
720 'bg-green-500': copied,
1124 @click =" handleClick"
1225 >
1326 <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" >
1528 <svg
1629 aria-hidden =" true"
1730 class =" w-6 h-6"
2841 ></path >
2942 </svg >
3043 </span >
31- <span aria-label =" copied" v-show =" copied" >
44+ <span v-show =" copied" aria-label =" copied" >
3245 <svg
3346 aria-hidden =" true"
3447 class =" w-6 h-6"
Original file line number Diff line number Diff line change 33 <button
44 id =" toggleInlineDiffView"
55 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+ "
725 @click =" toggleInlineDiffView"
826 >
927 <svg
1533 viewBox =" 0 0 122.88 101.61"
1634 stroke =" currentColor"
1735 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"
1937 :class =" {
2038 'rotate-90': isEnabled,
2139 }"
Original file line number Diff line number Diff line change 11<template >
22 <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+ "
413 >
514 Made with &hearts ; using
615 <a
716 href =" https://nuxtjs.org"
817 title =" nuxtjs a vuejs based framework inspired by nextjs"
918 aria-label =" nuxtjs a vuejs based framework inspired by nextjs"
1019 >
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 />
2821 </a >
2922 <span >&</span >
3023 <a
3124 href =" https://tailwindcss.com/"
3225 title =" tailwind css"
3326 aria-label =" tailwind css"
3427 >
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 />
5529 </a >
5630 by © ;
5731 <a
6135 >
6236 </footer >
6337</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