<commit_before><template>
<div class="toolbar">

	<el-tooltip class="item" effect="dark" content="Switch preview mode" placement="top">
		<el-select placeholder="view" v-model="view" class="switch-view">
			<el-option v-for="(view, key) in views" :label="view.label" :value="key" :key="view.label">
				<div class="view-icon">
					<icon :name="view.icon" aria-hidden="true" width="20" height="20" />
				</div>
				<span class="view-label">{{ view.label }}</span>
			</el-option>
		</el-select>
	</el-tooltip>

	<el-button class="toolbar__button-save" type="success" @click="savePage" v-loading.fullscreen.lock="fullscreenLoading">Save</el-button>

	<el-button class="toolbar__button-preview" :plain="true" type="info" @click="previewPage">Preview <icon name="newwindow" aria-hidden="true" width="14" height="14" class="ico" /></el-button>

	<el-button v-if="invalidBlocks===true" class="toolbar__button-publish" type="danger" @click="showPublishModal">Publish ...</el-button>
	<el-button v-if="invalidBlocks===false" class="toolbar__button-publish" type="danger" @click="showPublishValidationWarningModal">Publish ...</el-button>

</div>


</template>


<script>
import { mapState, mapMutations, mapActions, mapGetters } from 'vuex';

import Icon from 'components/Icon';
import { undoStackInstance } from 'plugins/undo-redo';
import { win } from 'classes/helpers';
import Config from 'classes/Config';
<commit_msg>Update main toolbar to match the look of the menu editor buttons.<commit_after><template>
<div class="toolbar">

	<el-tooltip class="item" effect="dark" content="Switch preview mode" placement="top">
		<el-select placeholder="view" v-model="view" class="switch-view">
			<el-option v-for="(view, key) in views" :label="view.label" :value="key" :key="view.label">
				<div class="view-icon">
					<icon :name="view.icon" aria-hidden="true" width="20" height="20" />
				</div>
				<span class="view-label">{{ view.label }}</span>
			</el-option>
		</el-select>
	</el-tooltip>

	<el-button class="toolbar__button-save" type="primary" @click="savePage" v-loading.fullscreen.lock="fullscreenLoading">Save</el-button>

	<el-button class="toolbar__button-preview" :plain="true" type="primary" @click="previewPage">Preview <icon name="newwindow" aria-hidden="true" width="14" height="14" class="ico" /></el-button>

	<el-button
		class="toolbar__button-publish"
		v-if="invalidBlocks"
		type="success"
		@click="showPublishModal"
	>Publish...</el-button>
	<el-button
		class="toolbar__button-publish"
		v-else
		type="success"
		@click="showPublishValidationWarningModal"
	>Publish...</el-button>

</div>


</template>


<script>
import { mapState, mapMutations, mapActions, mapGetters } from 'vuex';

import Icon from 'components/Icon';
import { undoStackInstance } from 'plugins/undo-redo';
import { win } from 'classes/helpers';
import Config from 'classes/Config';

{'fraction_non_alphanumeric': 0.18763029881862406, 'fraction_numerical': 0.005559416261292564, 'mean_word_length': 5.679814385150812, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '240943', 'n_tokens_mistral': 1007, 'n_tokens_neox': 939, 'n_words': 195}