Skip to content

Commit

Permalink
style: fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Apr 14, 2021
1 parent 0aaad5b commit 510acbb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/services/InstallService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default class InstallService extends AbstractService implements IInstallS
diagnoseService.registerMatchedFix(['missingVersion'],
async (issues) => {
if (!issues[0].arguments) return
const { minecraft, forge, fabricLoader, optifine } = issues[0].arguments
const { minecraft, forge, fabricLoader, optifine } = issues[0].arguments as RuntimeVersions
let targetVersion: string | undefined
if (minecraft && this.state.version.local.every(v => v.minecraftVersion !== minecraft)) {
if (this.state.version.minecraft.versions.length === 0) {
Expand Down Expand Up @@ -534,7 +534,7 @@ export default class InstallService extends AbstractService implements IInstallS
return installFabric(artifact, this.getPath(), { side: 'client' })
}))
this.local.refreshVersions()
this.log(`Success to install fabric: yarn ${versions.yarn}, loader ${versions.loader}.`)
this.log(`Success to install fabric: yarn ${versions.yarn}, loader ${versions.loader}. The new version is ${result}`)
return result
} catch (e) {
this.warn(`An error ocurred during install fabric yarn-${versions.yarn}, loader-${versions.loader}`)
Expand Down
1 change: 0 additions & 1 deletion src/renderer/hooks/useVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export function useOptifineVersions(minecraftVersion: Ref<string>) {
const optifineVersion = ver.mcversion + '_' + ver.type + '_' + ver.patch
statusMap[optifineVersion] = localVersions[optifineVersion] ? 'local' : 'remote'
}
console.log(statusMap)
return statusMap
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@

<script lang=ts>
import { defineComponent } from '@vue/composition-api'
import {
useCurseforgeProjectDescription,
} from '/@/hooks'
import { useCurseforgeProjectDescription } from '/@/hooks'
export default defineComponent<{ project: number }>({
props: { project: Number },
Expand Down
4 changes: 0 additions & 4 deletions src/renderer/windows/main/pages/ModSettingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,13 @@
</template>

<script lang=ts>
import VirtualList from 'vue-virtual-scroll-list'
import { defineComponent, reactive, toRefs, computed, ref, Ref, provide, watch, onMounted, onUnmounted, set, nextTick } from '@vue/composition-api'
import { ForgeResource, LiteloaderResource } from '/@shared/entities/resource'
import { isCompatible } from '/@shared/entities/version'
import {
useInstanceMods,
useResourceOperation,
useInstanceVersionBase,
useDropImport,
useDropImportFile,
ModItem,
useOperation,
useDrop,
Expand Down Expand Up @@ -379,7 +376,6 @@ export default defineComponent({
components: {
ModCard,
DeleteView,
VirtualList,
FloatButton,
},
setup() {
Expand Down

0 comments on commit 510acbb

Please sign in to comment.