Skip to content

Commit f34935c

Browse files
authored
Merge pull request #77 from Tribler/feature/macos-page
Add vue js file locally
2 parents e87f9da + 4ef8f81 commit f34935c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

js/vue/petite-vue.iife.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

macos.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
a {
3636
text-decoration: none;
3737
}
38+
[v-cloak] {
39+
display: none;
40+
}
3841
</style>
3942

4043
<script type="application/ld+json">
@@ -259,10 +262,9 @@ <h4>Q: "tribler" cannot be opened because the developer cannot be verified.</h4>
259262
</div>
260263
</footer>
261264

262-
<script type="module">
263-
import {createApp, reactive} from 'https://unpkg.com/petite-vue?module'
264-
265-
const store = reactive({
265+
<script src="./js/vue/petite-vue.iife.js"></script>
266+
<script>
267+
const store = PetiteVue.reactive({
266268
ghUser: 'Tribler',
267269
ghRepo: 'tribler',
268270
stableRelease: null,
@@ -349,7 +351,7 @@ <h4>Q: "tribler" cannot be opened because the developer cannot be verified.</h4>
349351

350352
store.fetchReleaseInfo();
351353

352-
createApp({store}).mount()
354+
PetiteVue.createApp({store}).mount()
353355
</script>
354356

355357

0 commit comments

Comments
 (0)