diff --git a/src/components/views/LocalModList.vue b/src/components/views/LocalModList.vue
index 5b5bc0922..108ba89c0 100644
--- a/src/components/views/LocalModList.vue
+++ b/src/components/views/LocalModList.vue
@@ -72,95 +72,21 @@
@end="drag=false; $emit('sort-end')"
:force-fallback="true"
:scroll-sensitivity="100">
-
-
-
-
- Deprecated
-
-
- Disabled
-
-
-
- {{key.getDisplayName()}}
-
- v{{key.getVersionNumber()}}
-
-
- by {{key.getAuthorName()}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Website
-
-
-
-
-
-
-
-
-
-
-
+ :showSort="canShowSortIcons"
+ :funkyMode="funkyMode" />
@@ -183,8 +109,6 @@ import ProfileInstallerProvider from '../../providers/ror2/installing/ProfileIns
import LoggerProvider, { LogSeverity } from '../../providers/ror2/logging/LoggerProvider';
import Profile from '../../model/Profile';
import ThunderstoreMod from '../../model/ThunderstoreMod';
-import DownloadModModal from './DownloadModModal.vue';
-import { ExpandableCard, Link, Modal } from '../all';
import ModListSort from '../../r2mm/mods/ModListSort';
import { SortDirection } from '../../model/real_enums/sort/SortDirection';
import { SortLocalDisabledMods } from '../../model/real_enums/sort/SortLocalDisabledMods';
@@ -193,23 +117,19 @@ import GameManager from '../../model/game/GameManager';
import Game from '../../model/game/Game';
import ConflictManagementProvider from '../../providers/generic/installing/ConflictManagementProvider';
import Draggable from 'vuedraggable';
-import DonateButton from '../../components/buttons/DonateButton.vue';
import SearchUtils from '../../utils/SearchUtils';
import AssociatedModsModal from './LocalModList/AssociatedModsModal.vue';
import DisableModModal from './LocalModList/DisableModModal.vue';
import UninstallModModal from './LocalModList/UninstallModModal.vue';
+import LocalModCard from './LocalModList/LocalModCard.vue';
@Component({
components: {
- DonateButton,
- DownloadModModal,
- Link,
- ExpandableCard,
- Modal,
Draggable,
AssociatedModsModal,
DisableModModal,
UninstallModModal,
+ LocalModCard,
}
})
export default class LocalModList extends Vue {
@@ -305,10 +225,6 @@ import UninstallModModal from './LocalModList/UninstallModModal.vue';
});
}
- getThunderstoreModFromMod(mod: ManifestV2) {
- return ModBridge.getCachedThunderstoreModFromMod(mod);
- }
-
async updateModListAfterChange(updatedList: ManifestV2[]) {
await this.$store.dispatch("updateModList", updatedList);
@@ -340,10 +256,6 @@ import UninstallModModal from './LocalModList/UninstallModModal.vue';
await this.updateModListAfterChange(updatedList);
}
- isLatest(mod: ManifestV2): boolean {
- return ModBridge.isCachedLatestVersion(mod);
- }
-
getMissingDependencies(vueMod: any): string[] {
const mod: Mod = new Mod().fromReactive(vueMod);
return mod.getDependencies().filter((dependency: string) => {
diff --git a/src/components/views/LocalModList/LocalModCard.vue b/src/components/views/LocalModList/LocalModCard.vue
new file mode 100644
index 000000000..1703f3346
--- /dev/null
+++ b/src/components/views/LocalModList/LocalModCard.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
+
+
+
+ Deprecated
+
+
+ Disabled
+
+
+
+ {{mod.getDisplayName()}}
+
+ v{{mod.getVersionNumber()}}
+
+
+ by {{mod.getAuthorName()}}
+
+
+
+
+
+
+
+
+
+
+
+ mod.isEnabled() ? disableMod() : enableMod(mod)"
+ class='card-header-icon'>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Website
+
+
+
+
+
+
+
+
+
+
+
+
+
+