@@ -33,7 +33,7 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
33
33
< div >
34
34
< p class ="mt-5 ">
35
35
< select v-model ="baseVersion "
36
- @change ="() => {upgradeVersion = upgradableVersions[0]; clearResult;} "
36
+ @change ="baseVersionChange "
37
37
class ="block py-2.5 px-0 w-full text-sm text-gray-500 bg-transparent border-0 border-b-2 border-gray-200 appearance-none dark:text-gray-400 dark:border-gray-700 focus:outline-none focus:ring-0 focus:border-gray-200 peer ">
38
38
< option value ="null "> Current Version</ option >
39
39
< template v-for ="tag in tags ">
@@ -65,14 +65,19 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
65
65
< section v-show ="showResult && diffString !=='' " class ="container mx-auto mt-3 ">
66
66
< div class ="text-center ">
67
67
For release notes see:
68
- < a :href ="releaseLink " target ="_blank "> link</ a >
68
+ < a :href ="releaseLink " target ="_blank " class =" underline italic " > link</ a >
69
69
</ div >
70
70
71
71
< div class ="text-center ">
72
72
Click < a :href ="diffFileLink " download > < b class ="underline text-red "> here</ b > </ a >
73
73
to download patch file.
74
74
</ div >
75
75
76
+ < div class ="text-center ">
77
+ < small > You may apply file like: </ small >
78
+ < small > < code v-text ="'git apply <file.diff>' "> </ code > </ small >
79
+ </ div >
80
+
76
81
< div v-show ="diffString !=='' " v-html ="diffHtml "> </ div >
77
82
</ section >
78
83
</ main >
@@ -103,6 +108,11 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
103
108
this . showResult = false ;
104
109
} ,
105
110
111
+ baseVersionChange ( ) {
112
+ this . upgradeVersion = this . upgradableVersions [ 0 ] || null ;
113
+ this . clearResult ( ) ;
114
+ } ,
115
+
106
116
showDiff ( ) {
107
117
if ( ! this . tags . includes ( this . baseVersion ) ||
108
118
! this . tags . includes ( this . upgradeVersion )
0 commit comments