diff --git a/js/mods/components/clearDatabase.js b/js/mods/components/clearDatabase.js index bf14eeba..3be485b4 100644 --- a/js/mods/components/clearDatabase.js +++ b/js/mods/components/clearDatabase.js @@ -2,11 +2,12 @@ /* eslint no-multi-str: 0 */ Vue.component('clear-database', { - template: - '
\ - \ - \ -
', + template: ` +
+ + +
+ `, methods: { clearDB() { const dbName = this.$root.$refs.localDownload.dbName diff --git a/js/mods/components/customModal.js b/js/mods/components/customModal.js index 12b5bc8a..9c9d446d 100644 --- a/js/mods/components/customModal.js +++ b/js/mods/components/customModal.js @@ -16,10 +16,11 @@ Vue.component('custom-modal', { required: true } }, - template: '
\ -
\ -
\ - \ -
\ -
' + template: ` +
+
+
+ +
+
`, }) diff --git a/js/mods/components/localDownload.js b/js/mods/components/localDownload.js index d2df8696..f3d7309c 100644 --- a/js/mods/components/localDownload.js +++ b/js/mods/components/localDownload.js @@ -8,40 +8,50 @@ NAME = 'Faithful Mods' // eslint-disable-line Vue.component('local-download', { props: ['canpack', 'versions'], - template: - '
\ - \ -

Do you want to use cached versions?

\ -

Some mod resource packs may already have been downloaded. Do you want to use the cached versions? Using the cached versions is usually faster but can cause outdated textures.

\ -
\ - \ - \ -
\ -
\ - \ - \ -
\ - \ -
\ -

{{ "Step " + (currentStep+1) + ": " + steps[currentStep].name }}

\ -

{{ latestLog }}

\ -

{{ steps[currentStep].content }}{{ timeLeft }}

\ -
\ -
{{ generatedPercent + "%" }}
\ -
\ -
\ -
{{ log.value }}
\ -
\ -
\ - \ -
\ -
\ -
', + template: ` +
+ +

Do you want to use cached versions?

+

Some mod resource packs may already have been downloaded. Do you want to use the cached versions? Using the cached versions is usually faster but can cause outdated textures.

+
+ + +
+
+ +
+ +
+

{{ "Step " + (currentStep+1) + ": " + steps[currentStep].name }}

+

{{ latestLog }}

+

{{ steps[currentStep].content }}{{ timeLeft }}

+
+
{{ generatedPercent + "%" }} +
+
+
+
+ {{ log.value }} +
+
+
+ +
+
+
`, data () { return { dbName: 'mods', diff --git a/js/mods/components/modpackCard.js b/js/mods/components/modpackCard.js index ab17d1f2..f9c240eb 100644 --- a/js/mods/components/modpackCard.js +++ b/js/mods/components/modpackCard.js @@ -3,8 +3,8 @@ Vue.component('modpack-card', { props: ['modpack', 'cantDownload', 'onbuttonclick'], - template: - `
+ template: ` +
diff --git a/js/mods/components/modpackModal.js b/js/mods/components/modpackModal.js index 173dc64f..9eb3abf8 100644 --- a/js/mods/components/modpackModal.js +++ b/js/mods/components/modpackModal.js @@ -5,8 +5,8 @@ const _TEXT_LOADING = 'Loading...' Vue.component('modpack-modal', { props: ['modpackmodalopened', 'modpack', 'onclose', 'mods'], - template: - ` + template: ` +

{{ modpack.modpackName }}

Modpack version: {{ modpack.modpackVersion }}

Minecraft version: {{ modpack.minecraftVersion }}

@@ -22,7 +22,8 @@ Vue.component('modpack-modal', {
- `, + + `, data() { return { modsFound: 0, diff --git a/js/mods/components/mods/minecraftMod.js b/js/mods/components/mods/minecraftMod.js index 01f94768..f31fe7a6 100644 --- a/js/mods/components/mods/minecraftMod.js +++ b/js/mods/components/mods/minecraftMod.js @@ -10,8 +10,8 @@ Vue.component('minecraft-mod', { props: { mod: Object }, - template: - `
  • + template: ` +
  • @@ -35,7 +35,8 @@ Vue.component('minecraft-mod', { >
  • - `, + + `, data() { return { searchPages: 3, diff --git a/js/mods/components/mods/minecraftModsList.js b/js/mods/components/mods/minecraftModsList.js index 5978a057..859e15bc 100644 --- a/js/mods/components/mods/minecraftModsList.js +++ b/js/mods/components/mods/minecraftModsList.js @@ -2,6 +2,11 @@ /* eslint no-multi-str: 0 */ Vue.component('minecraft-mod-list', { + template: ` + + `, props: { mods: Object }, @@ -18,8 +23,4 @@ Vue.component('minecraft-mod-list', { return mod.resource_pack.git_repository ? mod.resource_pack.git_repository.split('/').pop() : null } }, - template: - '' }) diff --git a/js/mods/components/mods/minecraftVersions.js b/js/mods/components/mods/minecraftVersions.js index f883059c..a7924f5c 100644 --- a/js/mods/components/mods/minecraftVersions.js +++ b/js/mods/components/mods/minecraftVersions.js @@ -6,15 +6,20 @@ Vue.component('minecraft-versions', { versions: Array, breakpoints: Object }, - template: - '
    \ -
    \ -
    \ - \ -
    \ -
    \ -
    ', - + template: ` +
    +
    +
    + +
    +
    +
    + `, data () { return {} }, diff --git a/js/mods/components/zipOptions.js b/js/mods/components/zipOptions.js index bdf22e5c..bde62b8d 100644 --- a/js/mods/components/zipOptions.js +++ b/js/mods/components/zipOptions.js @@ -7,29 +7,30 @@ try { NAME = 'Faithful Mods' // eslint-disable-line Vue.component('zip-options', { - template: - '
    \ -

    \ - \ -

    \ -
    \ -
    \ - \ - \ -
    \ -
    \ - \ - \ -
    \ - \ -
    \ -
    ', + template: ` +
    +

    + +

    +
    +
    + + +
    +
    + + +
    + +
    +
    + `, data() { return { advancedOptionsEnabled: false,