{"id":352336,"date":"2024-05-20T22:06:46","date_gmt":"2024-05-20T22:06:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=352336"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-20T22:06:46","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=352336","title":{"rendered":"<span>\u0414\u0432\u0430 \u0442\u0438\u043f\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: +DRY, -KISS<\/em><\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 (\u0434\u0430 \u0438 \u0432\u00a0\u0436\u0438\u0437\u043d\u0438 \u0432\u00a0\u0446\u0435\u043b\u043e\u043c) \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 <strong>\u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 <\/strong>\u0438<strong> \u0441\u0432\u044f\u0437\u044f\u043c\u0438<\/strong>. \u0412\u0442\u043e\u0440\u043e\u0435, \u043d\u0430\u00a0\u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043b\u0443\u0447\u0448\u0438\u043c \u0438 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0438\u0434\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f, \u0432\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443 \u043d\u0435\u00a0\u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0438, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c, \u043d\u0435\u00a0\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f. \u041d\u043e\u00a0\u043e\u043d\u043e \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f. <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c <strong>\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437\u00a0\u0436\u0438\u0437\u043d\u0438<\/strong>\u00a0\u2014 \u0443\u00a0\u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0440\u043e\u0433\u0430, \u043f\u043e\u00a0\u043d\u0435\u0439 \u0435\u0434\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442. \u041f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 \u044d\u0442\u043e \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u043d\u0438 \u0435\u0445\u0430\u043b\u0438, \u0430\u00a0\u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0445\u043e\u0434\u0430. \u0422\u0430\u043a \u0432\u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 \u044d\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0440\u043e\u0433\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435\u00a0\u0436\u0434\u0430\u043b \u0438 \u043d\u0435\u00a0\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0441\u044f, \u0432\u0441\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0438, \u043f\u043e\u00a0\u0441\u0432\u043e\u0435\u0439 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043f\u0435\u0440\u0435\u0442\u0435\u043a\u0430\u0435\u0442 \u043e\u0442\u00a0\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u0439. <\/p>\n<p><strong>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u0434\u0430. <\/strong>\u0423\u00a0\u043d\u0430\u0441 \u0435\u0441\u0442\u044c enum\u00a0\u2014 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u00a0\u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435: <\/p>\n<p>STRING <\/p>\n<p>BOOL <\/p>\n<p>DATE <\/p>\n<p>INTEGER <\/p>\n<p>DATETIME <\/p>\n<p>DECIMAL <\/p>\n<p>\u041c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p><strong>\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u043c (\u043f\u0435\u0440\u0432\u044b\u043c) \u0442\u0438\u043f\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a:<\/strong> <\/p>\n<p>1) \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u044b\u0431\u043e\u0440\u043a\u0443 switch \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">switch (type) {    case 'DATE':      return '\u0414\u0430\u0442\u0430'    case 'STRING':      return '\u0421\u0442\u0440\u043e\u043a\u0430'    case 'BOOL':      return '\u0411\u0443\u043b\u0435\u0432\u043e'    case 'INTEGER':      return '\u0427\u0438\u0441\u043b\u043e'   case 'DECIMAL':      return '\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435'   case 'DATETIME':      return '\u0412\u0440\u0435\u043c\u044f'  default:     return '\u0411\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f' } <\/code><\/pre>\n<p><strong>\u0422\u0438\u043f\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f &#171;\u0421\u0432\u044f\u0437\u0438&#187; (\u0432\u0442\u043e\u0440\u044b\u043c) \u043c\u044b \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a:<\/strong> <\/p>\n<p>1) \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e (\u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e) config file: <\/p>\n<p><em>configs\/data-types.js<\/em> <\/p>\n<pre><code class=\"javascript\">\/\/ \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 select \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445  export const dataTypes = [    {      name: '\u0421\u0442\u0440\u043e\u043a\u0430',      value: 'STRING'    },   {     name: '\u0411\u0443\u043b\u0435\u0432\u043e',      value: 'BOOL'    },   {     name: '\u0414\u0430\u0442\u0430',      value: 'DATE'    },   {      name: '\u0427\u0438\u0441\u043b\u043e',      value: 'INTEGER'    },     {      name: '\u0412\u0440\u0435\u043c\u044f',      value: 'DATETIME'    },     {      name: '\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435',      value: 'DECIMAL'    }  ] <\/code><\/pre>\n<p>2) \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u044f\u0434\u043e\u043c \u0432\u0438\u0434-\u043f\u043e-\u043a\u043b\u044e\u0447\u0443 (\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434 &#171;value: name&#187; \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430): <\/p>\n<p><em>configs\/data-types.js<\/em> <\/p>\n<pre><code class=\"javascript\">export const dataTypesKeys = {}   dataTypes.forEach(({ value, name }) => dataTypesKeys[value] = name)<\/code><\/pre>\n<p>3) \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435: <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">import { dataTypesKeys } from 'src\/configs\/data-types'  const func = type => dataTypesKeys[type]  func('BOOL') \/\/ \u0411\u0443\u043b\u0435\u0432\u043e<\/code><\/pre>\n<h3>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u0438\u0442\u043e\u0433\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/h3>\n<p>1) \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0441\u0432\u044f\u0437\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u043a \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c, \u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u044b \u0443\u0436\u0435 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b (\u043b\u0438\u0448\u044c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e export \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u0447\u0438\u0441\u0442\u043e\u0442\u0443 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445). \u0410 \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u0438\u043d\u0443\u0441, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u043c DRY, \u0445\u043e\u0442\u044c \u0438 \u043f\u043e\u0442\u0430\u043a\u0430\u0435\u043c KISS. <\/p>\n<p>2) \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043d\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u0434\u0435\u0440\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043a\u0430\u043a \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u0438\u043c\u0435\u0440\u0430. <\/p>\n<p>3) \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438. <\/p>\n<p>4) \u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e type \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c undefined, \u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u044b \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c default \u043e\u043f\u0446\u0438\u044e \u0432 switch \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u043e \u043d\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u043a\u0442: \u043d\u0430 back-end \u0438 \u043d\u0430 front-end <em>\u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435<\/em> enum-\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438\u043d\u0430\u0447\u0435 \u044d\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u042d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432: <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">import { dataTypesKeys } from 'src\/configs\/data-types'  const func = type => dataTypesKeys[type] ?? '\u0411\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f' \/\/ look at me  func('BOOL') \/\/ \u0411\u0443\u043b\u0435\u0432\u043e<\/code><\/pre>\n<p>5) \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u043d\u044b\u0435 \u0436\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e API.<\/p>\n<p>6) \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 <strong>\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b<\/strong> \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438 \u0435\u0433\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e configs.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/755010\/\"> https:\/\/habr.com\/ru\/articles\/755010\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p><em>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b: +DRY, -KISS<\/em><\/p>\n<p>\u0412 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 (\u0434\u0430 \u0438 \u0432\u00a0\u0436\u0438\u0437\u043d\u0438 \u0432\u00a0\u0446\u0435\u043b\u043e\u043c) \u0435\u0441\u0442\u044c \u0434\u0432\u0430 \u0442\u0438\u043f\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 <strong>\u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438 <\/strong>\u0438<strong> \u0441\u0432\u044f\u0437\u044f\u043c\u0438<\/strong>. \u0412\u0442\u043e\u0440\u043e\u0435, \u043d\u0430\u00a0\u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0438\u0439 \u0434\u0435\u043d\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043b\u0443\u0447\u0448\u0438\u043c \u0438 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u0438\u0434\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f, \u0432\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443 \u043d\u0435\u00a0\u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0438, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c, \u043d\u0435\u00a0\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f. \u041d\u043e\u00a0\u043e\u043d\u043e \u0447\u0443\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f. <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0434\u0435\u043c <strong>\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0437\u00a0\u0436\u0438\u0437\u043d\u0438<\/strong>\u00a0\u2014 \u0443\u00a0\u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0434\u043e\u0440\u043e\u0433\u0430, \u043f\u043e\u00a0\u043d\u0435\u0439 \u0435\u0434\u0435\u0442 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442. \u041f\u0435\u0440\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0437 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 \u044d\u0442\u043e \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u043e\u0434\u043d\u0438 \u0435\u0445\u0430\u043b\u0438, \u0430\u00a0\u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0445\u043e\u0434\u0430. \u0422\u0430\u043a \u0432\u043e\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f\u00a0\u2014 \u044d\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0432\u0435\u0442\u043e\u0444\u043e\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u043e\u0440\u043e\u0433\u0438 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043d\u0438\u043a\u0442\u043e \u043d\u0438\u043a\u043e\u0433\u043e \u043d\u0435\u00a0\u0436\u0434\u0430\u043b \u0438 \u043d\u0435\u00a0\u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b\u0441\u044f, \u0432\u0441\u0435 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0438, \u043f\u043e\u00a0\u0441\u0432\u043e\u0435\u0439 \u0442\u0440\u0430\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043f\u0435\u0440\u0435\u0442\u0435\u043a\u0430\u0435\u0442 \u043e\u0442\u00a0\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438 \u0432\u00a0\u0434\u0440\u0443\u0433\u043e\u0439. <\/p>\n<p><strong>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430\u00a0\u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u0434\u0430. <\/strong>\u0423\u00a0\u043d\u0430\u0441 \u0435\u0441\u0442\u044c enum\u00a0\u2014 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u00a0\u0441\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435: <\/p>\n<p>STRING <\/p>\n<p>BOOL <\/p>\n<p>DATE <\/p>\n<p>INTEGER <\/p>\n<p>DATETIME <\/p>\n<p>DECIMAL <\/p>\n<p>\u041c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e-\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0435 \u0441\u043b\u043e\u0432\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u0438\u043f\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p><strong>\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u043c (\u043f\u0435\u0440\u0432\u044b\u043c) \u0442\u0438\u043f\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a:<\/strong> <\/p>\n<p>1) \u0414\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432\u044b\u0431\u043e\u0440\u043a\u0443 switch \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435 <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">switch (type) {    case 'DATE':      return '\u0414\u0430\u0442\u0430'    case 'STRING':      return '\u0421\u0442\u0440\u043e\u043a\u0430'    case 'BOOL':      return '\u0411\u0443\u043b\u0435\u0432\u043e'    case 'INTEGER':      return '\u0427\u0438\u0441\u043b\u043e'   case 'DECIMAL':      return '\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435'   case 'DATETIME':      return '\u0412\u0440\u0435\u043c\u044f'  default:     return '\u0411\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f' } <\/code><\/pre>\n<p><strong>\u0422\u0438\u043f\u043e\u043c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f &#171;\u0421\u0432\u044f\u0437\u0438&#187; (\u0432\u0442\u043e\u0440\u044b\u043c) \u043c\u044b \u0431\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u0442\u0430\u043a:<\/strong> <\/p>\n<p>1) \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e (\u0438\u043b\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e) config file: <\/p>\n<p><em>configs\/data-types.js<\/em> <\/p>\n<pre><code class=\"javascript\">\/\/ \u0442\u0430\u043a \u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 select \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445  export const dataTypes = [    {      name: '\u0421\u0442\u0440\u043e\u043a\u0430',      value: 'STRING'    },   {     name: '\u0411\u0443\u043b\u0435\u0432\u043e',      value: 'BOOL'    },   {     name: '\u0414\u0430\u0442\u0430',      value: 'DATE'    },   {      name: '\u0427\u0438\u0441\u043b\u043e',      value: 'INTEGER'    },     {      name: '\u0412\u0440\u0435\u043c\u044f',      value: 'DATETIME'    },     {      name: '\u0414\u0435\u0441\u044f\u0442\u0438\u0447\u043d\u043e\u0435',      value: 'DECIMAL'    }  ] <\/code><\/pre>\n<p>2) \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0440\u044f\u0434\u043e\u043c \u0432\u0438\u0434-\u043f\u043e-\u043a\u043b\u044e\u0447\u0443 (\u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0438\u0434 &#171;value: name&#187; \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430): <\/p>\n<p><em>configs\/data-types.js<\/em> <\/p>\n<pre><code class=\"javascript\">export const dataTypesKeys = {}   dataTypes.forEach(({ value, name }) => dataTypesKeys[value] = name)<\/code><\/pre>\n<p>3) \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435: <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">import { dataTypesKeys } from 'src\/configs\/data-types'  const func = type => dataTypesKeys[type]  func('BOOL') \/\/ \u0411\u0443\u043b\u0435\u0432\u043e<\/code><\/pre>\n<h3>\u041f\u043e\u0434\u0432\u0435\u0434\u0435\u043c \u0438\u0442\u043e\u0433\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/h3>\n<p>1) \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0437\u0430 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0441\u0432\u044f\u0437\u0438 \u0442\u0435\u043a\u0441\u0442\u0430 \u043a \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u043c \u0434\u0430\u043d\u043d\u044b\u043c, \u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043c\u044b \u0443\u0436\u0435 \u043d\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b (\u043b\u0438\u0448\u044c \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e export \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u0447\u0438\u0441\u0442\u043e\u0442\u0443 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445). \u0410 \u044d\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u0438\u043d\u0443\u0441, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u043c DRY, \u0445\u043e\u0442\u044c \u0438 \u043f\u043e\u0442\u0430\u043a\u0430\u0435\u043c KISS. <\/p>\n<p>2) \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u0441\u043b\u043e\u0436\u043d\u0435\u0435, \u043d\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0435\u043c\u0443, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043d\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u0434\u0435\u0440\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432, \u043a\u0430\u043a \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u043f\u0440\u0438\u043c\u0435\u0440\u0430. <\/p>\n<p>3) \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043e \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0438 \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438. <\/p>\n<p>4) \u0418\u0437 \u043c\u0438\u043d\u0443\u0441\u043e\u0432 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043d\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e type \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c undefined, \u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u044b \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c default \u043e\u043f\u0446\u0438\u044e \u0432 switch \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u043e \u043d\u0430\u043c \u0441\u0442\u043e\u0438\u0442 \u0443\u0442\u043e\u0447\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0432\u0430\u0436\u043d\u044b\u0439 \u0444\u0430\u043a\u0442: \u043d\u0430 back-end \u0438 \u043d\u0430 front-end <em>\u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0435<\/em> enum-\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438\u043d\u0430\u0447\u0435 \u044d\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u042d\u0442\u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439 \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432: <\/p>\n<p><em>component.ext<\/em> <\/p>\n<pre><code class=\"javascript\">import { dataTypesKeys } from 'src\/configs\/data-types'  const func = type => dataTypesKeys[type] ?? '\u0411\u0435\u0437 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f' \/\/ look at me  func('BOOL') \/\/ \u0411\u0443\u043b\u0435\u0432\u043e<\/code><\/pre>\n<p>5) \u042d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 <strong>\u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>, \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u043d\u044b\u0435 \u0436\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441 \u043d\u0430\u0448\u0435\u0433\u043e API.<\/p>\n<p>6) \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 <strong>\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0438\u0441\u0442\u0438\u043d\u044b<\/strong> \u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438 \u0435\u0433\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e configs.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/755010\/\"> https:\/\/habr.com\/ru\/articles\/755010\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-352336","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=352336"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/352336\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}