Skip to content

Commit 9e389d6

Browse files
committed
add example command for applying diff file
1 parent 99ff0de commit 9e389d6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

index.html

+12-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
3333
<div>
3434
<p class="mt-5">
3535
<select v-model="baseVersion"
36-
@change="() => {upgradeVersion = upgradableVersions[0]; clearResult;}"
36+
@change="baseVersionChange"
3737
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">
3838
<option value="null">Current Version</option>
3939
<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
6565
<section v-show="showResult && diffString !==''" class="container mx-auto mt-3">
6666
<div class="text-center">
6767
For release notes see:
68-
<a :href="releaseLink" target="_blank">link</a>
68+
<a :href="releaseLink" target="_blank" class="underline italic">link</a>
6969
</div>
7070

7171
<div class="text-center">
7272
Click <a :href="diffFileLink" download><b class="underline text-red">here</b></a>
7373
to download patch file.
7474
</div>
7575

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+
7681
<div v-show="diffString !==''" v-html="diffHtml"></div>
7782
</section>
7883
</main>
@@ -103,6 +108,11 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
103108
this.showResult = false;
104109
},
105110

111+
baseVersionChange() {
112+
this.upgradeVersion = this.upgradableVersions[0] || null;
113+
this.clearResult();
114+
},
115+
106116
showDiff() {
107117
if (!this.tags.includes(this.baseVersion) ||
108118
!this.tags.includes(this.upgradeVersion)

0 commit comments

Comments
 (0)