Failed to start The Apache ...А полностью посмотреть ошибку, не?
<VirtualHost *:80>
ServerName test.loc
ServerAlias test.local
DocumentRoot "D:\projects\__test"
DirectoryIndex index.php
<Directory "D:\projects\__test">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
config.columnDefs = [
{
"render": generateAdmincrmUserLink,
"targets": 0,
},
{
"width": "25%",
"render": generateUserLink,
"targets": 1,
},
{
"render": generateBalanceLink,
"targets": getColId("Баланс"),
},
{
"render": replaceCommaWithSpace,
"targets": [
getColId("Телефон"),
getColId("Телефон SMS"),
],
},
{
"render": generateMailtoLink,
"targets": [
getColId("email"),
],
},
{
"render": dateFormat,
"targets": [
getColId("Регистрация"),
getColId("Последний визит")
],
},
}
function replaceCommaWithSpace(val) {
return val ? val.replace(',', ' ') : val
}
function generateMailtoLink(cellValue) {
return cellValue ? `<a href="mailto:${cellValue}">${cellValue}</a>` : ''
}
function dateFormatGenerator() {
let cache = new Map()
let dateFormatterToday = new Intl.DateTimeFormat('ru-RU', { hour: 'numeric', minute: 'numeric' })
let dateFormatterLastYear = new Intl.DateTimeFormat('ru-RU', { month: 'long', day: 'numeric' })
let dateFormatterPast = new Intl.DateTimeFormat('ru-RU', { month: 'short', year: 'numeric' })
let now = new Date()
let yearAgo = new Date()
yearAgo.setFullYear(now.getFullYear() - 1)
function dateFormat(dateInput, type) {
if (dateInput < '10') return ''
let returnValue = '';
let formatter;
if (type === 'sort') { // при сортировке используется timestamp
returnValue = dateInput
} else if (cache.has(dateInput)) {
returnValue = cache.get(dateInput)
} else { // при рендере текстовое значение
let date = new Date(dateInput)
let dateStr;
if (now.toDateString() === date.toDateString()) { // today
formatter = dateFormatterToday
} else if (date > yearAgo) { // last year
formatter = dateFormatterLastYear
} else {
formatter = dateFormatterPast
}
try {
dateStr = formatter.format(date)
} catch (e) {
console.log('dateFormatError: ', e)
}
returnValue = `<span title="${dateInput}">${dateStr}</span>`
cache.set(dateInput, returnValue)
}
return returnValue
}
return dateFormat
}