<p>{this?.props?.post?.title}</p>
When you run git config --global core.editor emacs -nw, your shell splits the command line into words before invoking git. Git thus sees "emacs -nw" as two separate arguments. It only needs one to put into the config file, so the other is ignored. (Actually, that's a lie but you can check the man page for details.) You can put quotes around a series of words to tell your shell not to break them up: git config --global core.editor "emacs -nw" will give "emacs -nw" to git as a single argument which will do what you want.
$('.item').on('mouseover', '.dot', function({ delegateTarget: t }) {
$('.thumb-target', t).attr('src', this.dataset.img);
$('.dot', t).removeClass('select').filter(this).addClass('select');
});
document.querySelectorAll('.item').forEach(n => {
n.addEventListener('mouseover', onMouseOver);
});
function onMouseOver({ target: t, currentTarget: ct }) {
const dot = t.closest('.dot');
if (dot) {
ct.querySelector('.thumb-target').src = dot.dataset.img;
ct.querySelectorAll('.dot').forEach(n => {
n.classList.toggle('select', n === dot);
});
}
}
file.get()
читает один символ, возвращает его и переходит к следующему символу ввода. Поэтому код:while (file.get() != ']')
{
temp += file.get();
}
while ( (с = file.get()) != ']')
{
temp += с;
}
const columns = [...new Set(persons.flatMap(Object.keys))];
document.body.insertAdjacentHTML('beforeend', `
<table>
<thead>
<tr>
<th>#</th>
${columns.map(col => `<th>${col}</th>`).join('')}
</tr>
</thead>
<tbody>${persons.map((person, i) => `
<tr>
<th>${i}</th>
${columns.map(col => `<td>${person[col] ?? '-'}</td>`).join('')}
</tr>`).join('')}
</tbody>
</table>
`);
`${valutes.map(element => {
return `<div value="USD">${element}</div>`
})}`