<commit_before>import chain from "ramda/es/chain";

export default {
	methods: {
		buildMenu () {
			let items = [];

			let accounts = this.$store.getters.getAccounts();
			for (let id in accounts) {
				let account = accounts[id];

				if (account.visible !== false) {
					items.push({
						id: 'account' + account.id,
						key: 'account' + account.id,
						text: account.name,
						bullet: account.bullet, // TODO
						router: {
							name: 'accountSettings',
							params: {
								accountId: account.id,
							}
						}
					})
				}

				let folders = this.$store.getters.getFolders(account.id);
				for (let id in folders) {
					let folder = folders[id];

					let icon = 'folder';
					if (folder.specialUse) {
						icon = folder.specialUse;
					}

					items.push({
						id: 'account' + account.id + '_' + folder.id,
						key: 'account' + account.id + '_' + folder.id,
						text: folder.name,
						icon: 'icon-' + icon,
						router: {
							name: 'folder',
							params: {
								accountId: account.id,
								folderId: folder.id,
							}
						},
						utils: {
							counter: folder.unread,
						}
					})
				}
			}

			console.info(items)

			return {
				id: 'accounts-list',
				new: {
					'id': 'mail_new_message',
					text: t('mail', 'New message'),
					icon: 'icon-add',
					action: () => {
						this.$router.push('/new');
					}
				},
				items: items,
				utils: {
					counter: 0
				}
			}
		}
	}
}<commit_msg>Remove debug stmt<commit_after>import chain from "ramda/es/chain";

export default {
	methods: {
		buildMenu () {
			let items = [];

			let accounts = this.$store.getters.getAccounts();
			for (let id in accounts) {
				let account = accounts[id];

				if (account.visible !== false) {
					items.push({
						id: 'account' + account.id,
						key: 'account' + account.id,
						text: account.name,
						bullet: account.bullet, // TODO
						router: {
							name: 'accountSettings',
							params: {
								accountId: account.id,
							}
						}
					})
				}

				let folders = this.$store.getters.getFolders(account.id);
				for (let id in folders) {
					let folder = folders[id];

					let icon = 'folder';
					if (folder.specialUse) {
						icon = folder.specialUse;
					}

					items.push({
						id: 'account' + account.id + '_' + folder.id,
						key: 'account' + account.id + '_' + folder.id,
						text: folder.name,
						icon: 'icon-' + icon,
						router: {
							name: 'folder',
							params: {
								accountId: account.id,
								folderId: folder.id,
							}
						},
						utils: {
							counter: folder.unread,
						}
					})
				}
			}

			return {
				id: 'accounts-list',
				new: {
					'id': 'mail_new_message',
					text: t('mail', 'New message'),
					icon: 'icon-add',
					action: () => {
						this.$router.push('/new');
					}
				},
				items: items,
				utils: {
					counter: 0
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.1551961459050241, 'fraction_numerical': 0.0006882312456985547, 'mean_word_length': 1.8032786885245902, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3363062', 'n_tokens_mistral': 1491, 'n_tokens_neox': 966, 'n_words': 211}