aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/components/ThunderstoreModCard.vue
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-05-09 23:35:04 +0200
committerGitHub <noreply@github.com>2023-05-09 23:35:04 +0200
commit007e32fd632da33ea1b1442f9a55f6ad008ad177 (patch)
tree32de00dddb0a5ea3cdbf0f4c24db92f6a0713e32 /src-vue/src/components/ThunderstoreModCard.vue
parent1ce900ca2d5cf91ae410c2ec918e1431aa15a677 (diff)
downloadFlightCore-007e32fd632da33ea1b1442f9a55f6ad008ad177.tar.gz
FlightCore-007e32fd632da33ea1b1442f9a55f6ad008ad177.zip
style: Partially autoformat Vue source files (#326)
* style: Add/remove spaces where applicable * style: Add missing newlines * style: Fix indentation * style: Add newlines between CSS classes
Diffstat (limited to 'src-vue/src/components/ThunderstoreModCard.vue')
-rw-r--r--src-vue/src/components/ThunderstoreModCard.vue28
1 files changed, 14 insertions, 14 deletions
diff --git a/src-vue/src/components/ThunderstoreModCard.vue b/src-vue/src/components/ThunderstoreModCard.vue
index fec95f14..a0e8c481 100644
--- a/src-vue/src/components/ThunderstoreModCard.vue
+++ b/src-vue/src/components/ThunderstoreModCard.vue
@@ -18,7 +18,7 @@
<Star />
</el-icon>
</span>
- <br/>
+ <br />
<div class="name hide-text-overflow">{{ mod.name }}</div>
<div class="author hide-text-overflow">{{ $t('mods.card.by') }} {{ mod.owner }}</div>
@@ -53,7 +53,7 @@
<el-dropdown-item @click="openURL(mod.package_url)">
{{ $t('mods.card.more_info') }}
</el-dropdown-item>
- <el-dropdown-item @click="deleteMod(mod)">
+ <el-dropdown-item @click="deleteMod(mod)">
{{ $t('mods.card.remove') }}
</el-dropdown-item>
</el-dropdown-menu>
@@ -65,13 +65,13 @@
</template>
<script lang="ts">
-import {defineComponent} from "vue";
-import {ThunderstoreMod} from "../../../src-tauri/bindings/ThunderstoreMod";
-import {ThunderstoreModVersion} from "../../../src-tauri/bindings/ThunderstoreModVersion";
-import {invoke, shell} from "@tauri-apps/api";
-import {ThunderstoreModStatus} from "../utils/thunderstore/ThunderstoreModStatus";
-import {NorthstarMod} from "../../../src-tauri/bindings/NorthstarMod";
-import {GameInstall} from "../utils/GameInstall";
+import { defineComponent } from "vue";
+import { ThunderstoreMod } from "../../../src-tauri/bindings/ThunderstoreMod";
+import { ThunderstoreModVersion } from "../../../src-tauri/bindings/ThunderstoreModVersion";
+import { invoke, shell } from "@tauri-apps/api";
+import { ThunderstoreModStatus } from "../utils/thunderstore/ThunderstoreModStatus";
+import { NorthstarMod } from "../../../src-tauri/bindings/NorthstarMod";
+import { GameInstall } from "../utils/GameInstall";
import { NorthstarState } from "../utils/NorthstarState";
import { ElMessageBox } from "element-plus";
import { showErrorNotification, showNotification } from "../utils/ui";
@@ -89,7 +89,7 @@ export default defineComponent({
isBeingUpdated: false
}),
computed: {
- latestVersion (): ThunderstoreModVersion {
+ latestVersion(): ThunderstoreModVersion {
return this.mod.versions[0];
},
@@ -191,7 +191,7 @@ export default defineComponent({
* (e.g. "taskinoz-WallrunningTitans-1.0.0" to
* "taskinoz-WallrunningTitans").
*/
- getThunderstoreDependencyStringPrefix (dependency: string): string {
+ getThunderstoreDependencyStringPrefix(dependency: string): string {
const dependencyStringMembers = dependency.split('-');
return `${dependencyStringMembers[0]}-${dependencyStringMembers[1]}`;
},
@@ -216,7 +216,7 @@ export default defineComponent({
await invoke<string>("delete_thunderstore_mod", { gameInstall: game_install, thunderstoreModString: this.latestVersion.full_name })
.then((message) => {
- showNotification(this.$t('mods.card.remove_success', {modName: mod.name}), message);
+ showNotification(this.$t('mods.card.remove_success', { modName: mod.name }), message);
})
.catch((error) => {
showErrorNotification(error);
@@ -230,7 +230,7 @@ export default defineComponent({
})
},
- async installMod (mod: ThunderstoreMod) {
+ async installMod(mod: ThunderstoreMod) {
let game_install = {
game_path: this.$store.state.game_path,
install_type: this.$store.state.install_type
@@ -244,7 +244,7 @@ export default defineComponent({
}
await invoke<string>("install_mod_caller", { gameInstall: game_install, thunderstoreModString: this.latestVersion.full_name }).then((message) => {
- showNotification(this.$t('mods.card.install_success', {modName: mod.name}), message);
+ showNotification(this.$t('mods.card.install_success', { modName: mod.name }), message);
})
.catch((error) => {
showErrorNotification(error);