<commit_before><template>
	<v-form ref="form" v-model="valid" lazy-validation style="height: 100%;">
		<v-container grid-list-xs fill-height style="overflow: auto;">
			<v-layout row wrap>
				<v-flex tag="h1" style="margin-bottom: 10px;" class="white--text" xs12>
					<span class="headline">{{$t('profile.setting')}}</span>
				</v-flex>
				<v-flex d-flex xs4>
					<v-text-field outline dark v-model="name" :label="$t('name')" :placeholder="`Minecraft ${mcversion}`"></v-text-field>
				</v-flex>
				<v-flex d-flex xs4>
					<version-menu @value="mcversion = $event">
						<template v-slot="{ on }">
							<v-text-field style="cursor: pointer !important;" outline dark append-icon="arrow" v-model="mcversion"
							  :label="$t('minecraft.version')" :readonly="true" @click:append="on.keydown" v-on="on"></v-text-field>
						</template>
					</version-menu>
				</v-flex>
				<v-flex d-flex xs4 class="local-version">
					<v-tooltip top>
						<template v-slot:activator="{ on }">
							<v-select v-on="on" hide-details dark outline :item-text="(v)=>v.id" :item-value="(v)=>v"
							  :label="$t('profile.localVersion')" :placeholder="$t('profile.noLocalVersion')"
							  :no-data-text="$t('profile.noLocalVersion')" v-model="localVersion" :items="localVersions"></v-select>
						</template>
						{{$t('profile.localVersionHint')}}
					</v-tooltip>
				</v-flex>
				<v-flex d-flex xs6>
					<forge-version-menu @value="onSelectForge">
						<template v-slot="{ on }">
							<v-text-field hide-details outline dark :value="forgeVersion" placeholder="Disabled" :label="$t('forge.version')"
							  :readonly="true" v-on="on"></v-text-field>
						</template>
					</forge-version-menu>
				</v-flex>
				<v-flex d-flex xs6>
					<v-checkbox hide-details dark v-model="hideLauncher" :label="$t('launch.hideLauncher')"></v-checkbox>
				</v-flex>
			</v-layout>
		</v-container>
	</v-form>
</template>

<script>
import AbstractSetting from './AbstractSetting';

export default {
  mixins: [AbstractSetting],
  data: function () {
    return {
      valid: true,
      hideLauncher: false,
      name: '',
    }
  },
  computed: {
    mcversion: {
      get() { return this.$repo.getters['selectedProfile'].mcversion; },
      set(v) { this.$repo.dispatch('editProfile', { mcversion: v }); },
    },
    forgeVersion: {
      get() { return this.$repo.getters['selectedProfile'].forge.version; },
      set(v) { return this.$repo.dispatch('editProfile', { forge: { version: v } }); }
    },<commit_msg>fix: missing import forge version menu<commit_after><template>
	<v-form ref="form" v-model="valid" lazy-validation style="height: 100%;">
		<v-container grid-list-xs fill-height style="overflow: auto;">
			<v-layout row wrap>
				<v-flex tag="h1" style="margin-bottom: 10px;" class="white--text" xs12>
					<span class="headline">{{$t('profile.setting')}}</span>
				</v-flex>
				<v-flex d-flex xs4>
					<v-text-field outline dark v-model="name" :label="$t('name')" :placeholder="`Minecraft ${mcversion}`"></v-text-field>
				</v-flex>
				<v-flex d-flex xs4>
					<version-menu @value="mcversion = $event">
						<template v-slot="{ on }">
							<v-text-field style="cursor: pointer !important;" outline dark append-icon="arrow" v-model="mcversion"
							  :label="$t('minecraft.version')" :readonly="true" @click:append="on.keydown" v-on="on"></v-text-field>
						</template>
					</version-menu>
				</v-flex>
				<v-flex d-flex xs4 class="local-version">
					<v-tooltip top>
						<template v-slot:activator="{ on }">
							<v-select v-on="on" hide-details dark outline :item-text="(v)=>v.id" :item-value="(v)=>v"
							  :label="$t('profile.localVersion')" :placeholder="$t('profile.noLocalVersion')"
							  :no-data-text="$t('profile.noLocalVersion')" v-model="localVersion" :items="localVersions"></v-select>
						</template>
						{{$t('profile.localVersionHint')}}
					</v-tooltip>
				</v-flex>
				<v-flex d-flex xs6>
					<forge-version-menu @value="onSelectForge">
						<template v-slot="{ on }">
							<v-text-field hide-details outline dark :value="forgeVersion" placeholder="Disabled" :label="$t('forge.version')"
							  :readonly="true" v-on="on"></v-text-field>
						</template>
					</forge-version-menu>
				</v-flex>
				<v-flex d-flex xs6>
					<v-checkbox hide-details dark v-model="hideLauncher" :label="$t('launch.hideLauncher')"></v-checkbox>
				</v-flex>
			</v-layout>
		</v-container>
	</v-form>
</template>

<script>
import AbstractSetting from './AbstractSetting';
import ForgeVersionMenu from '../ForgeVersionMenu';

export default {
  mixins: [AbstractSetting],
  components: { ForgeVersionMenu },
  data: function () {
    return {
      valid: true,
      hideLauncher: false,
      name: '',
    }
  },
  computed: {
    mcversion: {
      get() { return this.$repo.getters['selectedProfile'].mcversion; },
      set(v) { this.$repo.dispatch('editProfile', { mcversion: v }); },
    },
    forgeVersion: {
      get() { return this.$repo.getters['selectedProfile'].forge.version; },
      set(v) { return this.$repo.dispatch('editProfile', { forge: { version: v } }); }
    },
{'fraction_non_alphanumeric': 0.20419661938993589, 'fraction_numerical': 0.005051486302700602, 'mean_word_length': 3.3590177815410667, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6270479', 'n_tokens_mistral': 2107, 'n_tokens_neox': 1740, 'n_words': 317}