Skip to content

Commit ea7071d

Browse files
committed
update shortcut link
1 parent ff4a5d6 commit ea7071d

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

pages/import/index.vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,25 @@
2121
>
2222
Error: Missing URL parameters. Please scan the QR code from the app again.
2323
</div>
24-
<button
25-
class="inline-block px-6 py-3 m-2 text-base text-white no-underline transition-colors duration-200 bg-blue-500 border-none rounded-lg cursor-pointer hover:bg-blue-700"
26-
@click="copyAddress"
27-
>
28-
{{ isCopied ? 'Copied!' : 'Copy Server Address' }}
29-
</button>
24+
<div class="flex justify-center">
25+
<button
26+
class="px-6 py-3 m-2 text-base text-white no-underline transition-colors duration-200 bg-blue-500 border-none rounded-lg cursor-pointer hover:bg-blue-700"
27+
@click="copyAddress"
28+
>
29+
{{ isCopied ? 'Copied!' : 'Copy Server Address' }}
30+
</button>
31+
</div>
3032

3133
<div class="">
3234
<a
33-
href="https://www.icloud.com/shortcuts/19ad1427410e49b98117afe91607081b"
35+
href="shortcuts://run-shortcut?name=Import%20toPhotos"
3436
class="inline-block px-6 py-3 m-2 text-base text-white no-underline transition-colors duration-200 bg-green-500 border-none rounded-lg cursor-pointer hover:bg-green-600"
35-
>Open Shortcut</a
37+
>Run Shortcut</a
3638
>
3739
<a
38-
href="shortcuts://run-shortcut?name=Import%20Testing"
40+
href="https://www.icloud.com/shortcuts/a3c7ea48a0b14f148d9cc83a9e646509"
3941
class="inline-block px-6 py-3 m-2 text-base text-white no-underline transition-colors duration-200 bg-green-500 border-none rounded-lg cursor-pointer hover:bg-green-600"
40-
>Run Shortcut</a
42+
>Import and Run Shortcut</a
4143
>
4244
</div>
4345
</div>
@@ -63,5 +65,9 @@ function copyAddress() {
6365
const address = `http://${local}:${port}/${jsonFile}`;
6466
6567
copy(address);
68+
isCopied.value = true;
69+
setTimeout(() => {
70+
isCopied.value = false;
71+
}, 2000);
6672
}
6773
</script>

0 commit comments

Comments
 (0)