Best JavaScript code snippet using ng-mocks
editor.js
Source:editor.js
1import Vue from 'vue';2export default {3 namespaced: true,4 state: {5 settings: [],6 changesElemSettings: [],7 currentElemSettings: [],8 defaultElemSettings: [],9 fontFamily: [],10 counter: 0,11 isDisabledNext: true,12 isDisabledBack: true,13 isDisabledClear: true,14 isOpenSearchIframe: false,15 iFrameURL: '//romanhristofor.github.io/Shop-with-Angularjs/',16 },17 getters: {18 getIFrameURL(state) {19 return state.iFrameURL;20 },21 settings(state) {22 return state.settings;23 },24 getFonts(state) {25 return state.fontFamily;26 },27 getElemSettingsLength(state) {28 return state.changesElemSettings.length;29 },30 getCounter(state) {31 return state.counter;32 },33 getIsDisabledBtn(state) {34 return {35 next: state.isDisabledNext,36 back: state.isDisabledBack,37 }38 },39 getIsDisabledClear(state) {40 return state.isDisabledClear;41 },42 getElemSettings(state) {43 return state.currentElemSettings;44 },45 getCurrentElemSettings: state => (id) => {46 return state.currentElemSettings.find(item => item.id === id);47 },48 getOpenSearchStatus(state) {49 return state.isOpenSearchIframe;50 },51 getData(state) {52 let data = {};53 _.each(state.currentElemSettings, item => {54 data[item.name] = item.newValue;55 });56 return data;57 },58 },59 mutations: {60 setCurrentElemSettings(state, payload) {61 if (!state.currentElemSettings.find(item => item.id === payload.id)) {62 state.currentElemSettings.push(payload);63 }64 else {65 let i = _.findIndex(state.currentElemSettings, (o) => {66 return o.id === payload.id;67 });68 state.currentElemSettings.splice(i, 1, payload);69 }70 },71 setElemSettings(state, payload) {72 if (state.changesElemSettings.length === 0) {73 state.defaultElemSettings = _.cloneDeep(state.currentElemSettings);74 }75 // if (payload.newValue && payload.oldValue) {76 state.changesElemSettings.push(payload);77 state.counter = state.changesElemSettings.length;78 // }79 },80 setSaveElemSettings(state, payload) {// get for next or back81 let currentEl = {};82 if (payload === 'back') {83 currentEl = state.changesElemSettings[state.counter];84 let newValue = currentEl.newValue;85 currentEl.newValue = currentEl.oldValue;86 currentEl.oldValue = newValue;87 }88 if (payload === 'next') {89 currentEl = state.changesElemSettings[state.counter];90 let oldValue = currentEl.oldValue;91 currentEl.oldValue = currentEl.newValue;92 currentEl.newValue = oldValue;93 }94 let i = _.findIndex(state.currentElemSettings, function(o) {95 return o.id === currentEl.id;96 });97 state.currentElemSettings.splice(i, 1, currentEl);98 },99 setCurrentElem(state, payload) {100 if (payload === 'back') {101 state.counter -= 1;102 }103 if (payload === 'next') {104 state.counter += 1;105 }106 },107 isDisabledBtn(state) {108 state.isDisabledNext = state.counter >= state.changesElemSettings.length;109 state.isDisabledBack = state.counter === 0;110 state.isDisabledClear = state.changesElemSettings.length === 0;111 },112 clearChangesElemSettings(state, payload) {113 state.changesElemSettings = [];114 state.changesElemSettings.length = 0;115 state.counter = 0;116 if (payload.history === 'clear') {117 state.currentElemSettings = state.defaultElemSettings;118 }119 },120 clearCurrentElemSettings(state) {121 state.currentElemSettings = [];122 state.currentElemSettings.length = 0;123 },124 loadSettings(state, data) {125 state.fontFamily = data[0].fonts;126 state.settings = data;127 },128 isReplaceElement(state) {129 if (state.counter < state.changesElemSettings.length) {130 state.changesElemSettings.splice(state.counter, state.changesElemSettings.length - state.counter);131 }132 },133 setOpenCloseSearch(state) {134 state.isOpenSearchIframe = !state.isOpenSearchIframe;135 },136 },137 actions: {138 clearChangesElemSettings(store, payload) {139 store.commit('clearChangesElemSettings', payload);140 store.commit('isDisabledBtn');141 },142 isDisabledBtn(store) {143 store.commit('isDisabledBtn');144 },145 setSaveElemSettings(store, newElement) {146 store.commit('setSaveElemSettings', newElement);147 },148 setElemSettings(store, newSettings) {149 store.commit('isReplaceElement');150 store.commit('setElemSettings', newSettings);151 store.commit('isDisabledBtn');152 store.commit('setCurrentElemSettings', newSettings);153 },154 replaceElement(store) {155 store.commit('replaceElement');156 },157 setCurrentElemSettings(store, newElement) {158 store.commit('setCurrentElemSettings', newElement);159 },160 setCurrentElem(store, count) {161 store.commit('setCurrentElem', count);162 },163 clearCurrentElemSettings(store) {164 store.commit('clearCurrentElemSettings');165 },166 loadSettings(store) {167 store.commit('loadSettings', loadSettings());168 },169 setOpenCloseSearch(store) {170 store.commit('setOpenCloseSearch');171 },172 pushCurrentElemSettings(store) {173 Vue.http.post('api/editor', {174 data: store.getters.getData,175 type: 'dispatcher',176 })177 .then(({data}) => {178 if (data.errors === false && data.data) {179 // call method editor/clear changes180 }181 },182 (reason) => {183 console.log('error', reason);184 },185 );186 },187 },188};189// GET settings for Design Editor190function loadSettings() {191 return [192 {193 id: 0,194 name: 'FontFamily',195 fonts: [196 { name: 'Rubik', font: 'Rubik' },197 { name: 'Inconsolata', font: 'Inconsolata&Regular' },198 { name: 'Roboto', font: 'Roboto' },199 { name: 'Montserrat', font: 'Montserrat' },200 { name: 'Pacifico', font: 'Pacifico' },201 // {"name":"Helvetica","font":"Helvetica"},202 // {"name":"Didact Gothic","font":"Didact Gothic&Regular"},203 // {"name":"Roboto Regular","font":"Roboto&Regular"},204 // {"name":"Roboto Light","font":"Roboto&Light"},205 // {"name":"Roboto Bold","font":"Roboto&Bold"},206 // {"name":"Playfair Display Regular","font":"Playfair Display&Regular"},207 // {"name":"Playfair Display Bold","font":"Playfair Display&Bold"},208 // {"name":"Raleway Regular","font":"Raleway&Regular"},209 // {"name":"Raleway Light","font":"Raleway&Light"},210 // {"name":"Raleway Bold","font":"Raleway&Bold"},211 //212 // {"name":"Open Sans Regular","font":"Open Sans&Regular"},213 // {"name":"Open Sans Light","font":"Open Sans&light"},214 // {"name":"Open Sans Bold","font":"Open Sans&bold"},215 // {"name":"Open Sans Condensed","font":"Open+Sans+Condensed:300&subset=latin,cyrillic"},216 // {"name":"Fira Sans Regular","font":"Fira Sans&Regular"},217 // {"name":"Fira Sans Light","font":"Fira Sans&Light"},218 // {"name":"Fira Sans Bold","font":"Fira Sans&Bold"},219 // {"name":"Fira Sans Condensed Regular","font":"Fira Sans Condensed&Regular"},220 // {"name":"Fira Sans Condensed Light","font":"Fira Sans Condensed&Light"},221 // {"name":"Fira Sans Condensed Bold","font":"Fira Sans Condensed&Bold"},222 //223 // {"name":"Lato Light","font":"Lato&Light"},224 // {"name":"Lato Bold","font":"Lato&Bold"},225 // {"name":"Lato Regular","font":"Lato&Regular"},226 ],227 },228 {229 id: 10,230 page: 'menu',231 url: '/menu',232 elements: [233 {234 id: 0, name: "bg-color-menu_page", type: "colorPicker",235 label: "Фон менÑ", defValue: "rgba(217, 221, 245, 1)", opacity: true,236 selector: [237 `header .md-menu__main .md-menu__li-l1.active>a,238 .mod--vertical-menu .md-menu--mobile .md-menu__main .active > a,239 .mod--vertical-menu .md-menu--mobile .md-menu__wrap-l2 .active > a`,240 '.md-menu__href-l1',241 ],242 css: [ 'background-color: %val% !important', 'box-shadow:0 0 10px %val%' ]243 },244 {245 id: 1, name: "font-site-menu_page", type: "fontSelect",246 label: "ШÑиÑÑ Ð¼ÐµÐ½Ñ", defValue: "Roboto", search: 'search',247 selector: ["body"],248 css: ["font-family: %val%"]249 },250 {251 id: 2, name: "size-point-menu_page", type: "slider",252 label: 'Ð Ð°Ð·Ð¼ÐµÑ Ð¿ÑнкÑа менÑ', defValue: 10, min: 6, max: 20,253 selector: [],254 css: []255 },256 {257 id: 3, name: "format-menu_page", type: "fontSelect",258 label: "ФоÑÐ¼Ð°Ñ Ð¼ÐµÐ½Ñ", defValue: "center",259 array: [260 { name: 'center' },261 { name: 'left' },262 { name: 'right' },263 ],264 selector: [".md-menu"],265 css: ["text-align"]266 },267 {268 id: 4, name: "font-letter-spacing-menu_page", type: "slider",269 label: 'ÐежбÑквеннÑй инÑеÑвал', defValue: 3, min: 0, max: 7,270 selector: [".md-menu__href-l1"],271 css: ["letter-spacing"]272 },273 {274 id: 5, name: "font-color-menu_page", type: "colorPicker",275 label: "Ð¦Ð²ÐµÑ Ð¿ÑнкÑа менÑ", defValue: "rgba(0,0,0,0.87)", opacity: true,276 selector: [".application.theme--light"],277 css: ["color"]278 },279 {280 id: 6, name: "link-color-hover-menu_page", type: "colorPicker",281 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивного пÑнкÑа менÑ", defValue: "#5468f6",282 selector: [".application.theme--light a"], opacity: true,283 css: ["color"]284 },285 {286 id: 7, name: "arrow-up-color-menu_page", type: "colorPicker",287 label: "Фон подменÑ", defValue: "#e73617", opacity: true,288 selector: ["body"],289 css: ["color"]290 },291 {292 id: 8, name: "width-catalog-submenu-menu_page", type: "slider",293 label: 'Ð Ð°Ð·Ð¼ÐµÑ Ð¿ÑнкÑа подменÑ', defValue: 3, min: 0, max: 7,294 selector: [295 `header .md-menu__main .md-menu__li-l1.active>a,296 .mod--vertical-menu .md-menu--mobile .md-menu__main .active > a,297 .mod--vertical-menu .md-menu--mobile .md-menu__wrap-l2 .active > a`,298 ],299 css: [ "width" ]300 },301 {302 id: 10, name: "arrow-up-color-hover-menu_page", type: "colorPicker",303 label: "Ð¦Ð²ÐµÑ Ð¿ÑнкÑа подменÑ", defValue: "#a7e707",304 selector: ["body"], opacity: true,305 css: ["color"]306 },307 {308 id: 11, name: "link-color-active-menu_page", type: "colorPicker", show: true,309 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивного пÑнкÑа менÑ", defValue: "#e35e19",310 selector: ["body"], opacity: true,311 css: ["color"]312 },313 {314 id: 12, name: "bg-color-mobile-menu_page", type: "colorPicker", show: true,315 label: "Фон Ð¼ÐµÐ½Ñ Ð² мобилÑной веÑÑии", defValue: "#a1e3df",316 selector: ["body"], opacity: true,317 css: ["color"]318 },319 {320 id: 13, name: "arrow-up-color-hover-menu_page", type: "colorPicker",321 label: "Ð¦Ð²ÐµÑ Ð¿ÑнкÑа Ð¼ÐµÐ½Ñ Ð² мобилÑной веÑÑии", defValue: "#24e78f",322 selector: ["body"], opacity: true,323 css: ["color"]324 },325 {326 id: 14, name: "link-color-active-mobile-menu_page", type: "colorPicker",327 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивного пÑнкÑа Ð¼ÐµÐ½Ñ Ð² мобилÑной веÑÑии", defValue: "#0e2287",328 selector: ["body"], opacity: true,329 css: ["color"]330 },331 {332 id: 15, name: "effect-menu-active-menu_page", type: "selectComposite",333 label: "ÐÑÑÐµÐºÑ Ð¿Ñи наведении на пÑнкÑ", defValue: 'вÑделение ÑвеÑом',334 selector: ["body"], css: ["color"],335 options: [336 {name: 'вÑделение ÑвеÑом', slider: false, picker: false },337 {name: 'подÑеÑкивание', slider: true, picker: false },338 {name: 'заÑеÑкивание', slider: true, picker: false },339 {name: 'маÑкеÑ', slider: true, picker: true }340 ],341 components: [342 {343 id: 17, name: "effect-link-weight-menu-menu_page", type: "slider",344 label: "ТолÑина линии", defValue: 2, min: 1, max: 5,345 selector: ["body"],346 css: ["color"]347 },348 {349 id: 18, name: "effect-link-color-menu-menu_page", type: "colorPicker",350 opacity: true, label: "Ð¦Ð²ÐµÑ Ð»Ð¸Ð½Ð¸Ð¸", defValue: "#2a66e3",351 selector: ["body"],352 css: ["color"]353 },354 ],355 },356 {357 id: 19, name: "vertical-indents-menu_page", type: "slider",358 label: "ÐеÑÑикалÑнÑе оÑÑÑÑÐ¿Ñ Ð¼ÐµÐ½Ñ", defValue: 70, min: 69, max: 100,359 selector: ["body"],360 css: ["color"]361 },362 {363 id: 20, name: "font-letter-spacing-menu_page", type: "slider",364 label: "РаÑÑÑоÑние Ð¼ÐµÐ¶Ð´Ñ Ð¿ÑнкÑами менÑ", defValue: 13, min: 1, max: 27,365 selector: ["body"],366 css: ["color"]367 },368 {369 id: 21, name: "link-color-active-mobile-menu_page", type: "colorPicker",370 label: "Ð¦Ð²ÐµÑ ÑазделиÑелÑной линии", defValue: "#871e0d",371 selector: ["body"], opacity: true,372 css: ["color"]373 },374 {375 id: 22, name: "align-menu-content-menu_page", type: "switch",376 label: 'ÐÑÑовнÑÑÑ Ð¼ÐµÐ½Ñ Ð¿Ð¾ ÑиÑине конÑенÑа ÑайÑа', defValue: false,377 selector: ["body"],378 css: ["color"]379 },380 {381 id: 23, name: "location-submenu-menu_page", type: "fontSelect",382 label: "РаÑположение подменÑ", defValue: "Center",383 array: [384 { name: 'Center' },385 { name: 'Left' },386 { name: 'Right' },387 ],388 selector: ["body"],389 css: ["color"]390 },391 {392 id: 24, name: "menu-scroll-events-menu_page", type: "radio",393 label: "Ðоведение Ð¼ÐµÐ½Ñ Ð¿Ñи пÑокÑÑÑке ÑÑÑаниÑÑ", defValue: 'не показÑваÑÑ',394 array: [395 { label: 'не показÑваÑÑ', v: 'не показÑваÑÑ' },396 { label: 'закÑепиÑÑ Ð²Ð²ÐµÑÑ
Ñ', v: 'fix_to_top' },397 { label: 'подгÑÑзиÑÑ ÑвеÑÑ
Ñ', v: 'load_top' }398 ],399 selector: ["body"],400 css: ["color"]401 },402 {403 id: 25, name: "align-menu-content-menu_page", type: "switch",404 label: "ÐÑÑÐµÐºÑ Ð¿Ð»Ð°Ð²Ð½Ð¾Ð³Ð¾ поÑÐ²Ð»ÐµÐ½Ð¸Ñ Ð¼ÐµÐ½Ñ ÑвеÑÑ
Ñ", defValue: false,405 selector: ["body"],406 css: ["color"]407 },408 {409 id: 26, name: "location-submenu-menu_page", type: "input",410 label: "РазделиÑÐµÐ»Ñ Ð¼ÐµÐ¶Ð´Ñ Ð¿ÑнкÑами менÑ", defValue: "*", maxLength: 3,411 selector: ["body"],412 css: ["color"]413 },414 {415 id: 27, name: "align-menu-content-menu_page", type: "switch",416 label: "РаÑположиÑÑ Ð¼ÐµÐ½Ñ Ð¿Ð¾Ð´ ÑлайдеÑом", defValue: false, // (only DEV)417 selector: ["body"],418 css: ["color"]419 },420 {421 id: 28, name: "view-icon-basket-menu_page", type: "radio", picture: true,422 label: "Ðид иконки \"ÐоÑзина\"", defValue: 'account',423 array: [424 { src: 'account_circle', v: 'account' },425 { src: 'star', v: 'star' },426 { src: 'cake', v: 'cake' },427 { src: 'check_circle', v: 'check' },428 ],429 selector: ["body"],430 css: ["color"]431 },432 {433 id: 29, name: "menu-scroll-events-menu_page", type: "radio",434 label: "ÐÑобÑажение иконки \"ÐоÑзина\" ", defValue: 'shop',435 array: [436 { label: 'ÑолÑко на ÑÑÑаниÑаÑ
магазина', v: 'shop' },437 { label: 'на вÑеÑ
ÑÑÑаниÑаÑ
ÑайÑа', v: 'all_pages' },438 ],439 selector: ["body"],440 css: ["color"]441 },442 {443 id: 30, name: "design-menu-menu_page", type: "radio", picture: true,444 label: "Ðид менÑ", defValue: 'cake', // (еÑÑÑ 14 видов менÑ)445 array: [446 { src: 'account_circle', v: 'account' },447 { src: 'star', v: 'star' },448 { src: 'cake', v: 'cake' },449 { src: 'check_circle', v: 'check' },450 ],451 selector: ["body"],452 css: ["color"]453 },454 ],455 },456 {457 id: 20,458 page: 'general',459 url: '/',460 elements: [461 {462 id: 0, name: "width-site", type: "slider", units: true,463 label: "ШиÑина ÑайÑа",464 switchId: 1, switchName: "switch-width-site", switchValue: '%',465 dim: { 0: '%', 1: 'Px' },466 range: {467 0: { v: 90, min: 1, max: 100, step: 10 },468 1: { v: 900, min: 600, max: 2500, step: 50 }469 },470 selector: ["body"],471 css: ["color"]472 },473 {474 id: 2, name: "bg-color-site", type: "colorPicker",475 label: "Фон ÑайÑа", defValue: "rgba(224,224,224,1)",476 selector: ["body"],477 css: ["color"]478 },479 {480 id: 2, name: "font-site", type: "fontSelect",481 label: "ШÑиÑÑ ÑайÑа", defValue: "Rubik", search: 'search',482 selector: ["body"],483 css: ["color"]484 },485 {486 id: 3, name: "color-font-text", type: "colorPicker",487 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "rgba(0,0,0,0.87)", opacity: true,488 selector: ["body"],489 css: ["color"]490 },491 {492 id: 4, name: "color-links-hover", type: "colorPicker",493 label: "Ð¦Ð²ÐµÑ ÑÑÑлок пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,494 selector: ["body"],495 css: ["color"]496 },497 {498 id: 5, name: "color-arrow-top", type: "colorPicker",499 label: "Ð¦Ð²ÐµÑ ÑÑÑелки \"ввеÑÑ
\"", defValue: "rgba(211,123,123,1)", opacity: true,500 selector: ["body"],501 css: ["color"]502 },503 {504 id: 6, name: "color-arrow-top-hover", type: "colorPicker",505 label: "Ð¦Ð²ÐµÑ ÑÑÑелки \"ввеÑÑ
\" пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,506 selector: ["body"],507 css: ["color"]508 },509 {510 id: 7, name: "color-elem-slider", type: "colorPicker",511 label: "ÐлеменÑÑ Ð½Ð°Ð²Ð¸Ð³Ð°Ñии ÑлайдеÑа", defValue: "rgba(211,123,123,1)", opacity: true,512 selector: ["body"],513 css: ["color"]514 },515 {516 id: 8, name: "color-elem-slider-hover", type: "colorPicker",517 label: "ÐлеменÑÑ Ð½Ð°Ð²Ð¸Ð³Ð°Ñии ÑлайдеÑа пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,518 selector: ["body"],519 css: ["color"]520 },521 ],522 },523 {524 id: 30,525 page: 'search',526 url: '/search',527 elements: [528 {529 id: 0, name: "bg-color-search", type: "colorPicker",530 label: "Фон ÑÑÑаниÑÑ Ð¿Ð¾Ð¸Ñка", defValue: "rgba(224,224,224,1)",531 selector: ["body"],532 css: ["color"]533 },534 {535 id: 1, name: "color-search-close", type: "colorPicker",536 label: "ÐлеменÑÑ ÑÑÑаниÑÑ Ð¿Ð¾Ð¸Ñка", defValue: "rgba(211,123,123,1)", opacity: true,537 selector: ["body"],538 css: ["color"]539 },540 ],541 },542 {543 id: 40,544 page: 'blog_categories',545 url: '/categories',546 elements: [547 {548 id: 0, name: "font-categories", type: "fontSelect",549 label: "ШÑиÑÑ ÐºÐ°ÑегоÑии", defValue: "Rubik", search: 'search',550 selector: ["body"],551 css: ["color"]552 },553 {554 id: 1, name: "size-font-categories", type: "slider",555 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа каÑегоÑии", defValue: 2, min: 1, max: 5,556 selector: ["body"],557 css: ["color"]558 },559 {560 id: 2, name: "color-categories", type: "colorPicker",561 label: "Ð¦Ð²ÐµÑ ÐºÐ°ÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,562 selector: ["body"],563 css: ["color"]564 },565 {566 id: 3, name: "color-active-categories", type: "colorPicker",567 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивной каÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,568 selector: ["body"],569 css: ["color"]570 },571 {572 id: 4, name: "position-categories", type: "fontSelect",573 label: "РаÑположение каÑегоÑии", defValue: "Center",574 array: [575 { name: 'Center' },576 { name: 'Left' },577 { name: 'Right' },578 ],579 selector: ["body"],580 css: ["color"]581 },582 ],583 },584 {585 id: 50,586 page: 'blog_page',587 url: '/page',588 elements: [589 {590 id: 0, name: "width-blog-page", type: "slider", units: true,591 label: "ШиÑина блога",592 switchId: 1, switchName: "switch-blog-page", switchValue: '%',593 dim: { 0: '%', 1: 'Px' },594 range: {595 0: { v: 20, min: 1, max: 100, step: 30 },596 1: { v: 4, min: 1, max: 5, step: 1 }597 },598 selector: ["body"],599 css: ["color"]600 },601 {602 id: 2, name: "bg-blog-page", type: "selectComposite",603 label: "Фон запиÑи", defValue: 'иÑполÑзоваÑÑ Ñон ÑайÑа',604 selector: [], css: [], options: [605 {name: 'иÑполÑзоваÑÑ Ñон ÑайÑа', picker: false},606 {name: 'ÑÐ²ÐµÑ Ñона', picker: true},607 ],608 components: [609 {610 id: 3, name: "sub_bg-blog-page", type: "colorPicker",611 label: "", defValue: "#e35e19", opacity: true,612 selector: [],613 css: []614 },615 ],616 },617 {618 id: 4, name: "bg-side-panel", type: "selectComposite",619 label: "Фон боковой панели", defValue: 'ÑÐ²ÐµÑ Ñона',620 selector: ["body"], css: ["color"], options: [621 {name: 'иÑполÑзоваÑÑ Ñон ÑайÑа', picker: false},622 {name: 'ÑÐ²ÐµÑ Ñона', picker: true},623 ],624 components: [625 {626 id: 5, name: "sub_bg-side-panel", type: "colorPicker",627 label: "", defValue: "#193EE3", opacity: true,628 selector: ["body"],629 css: ["color"]630 },631 ],632 },633 {634 id: 6, name: "color-preview-blog-page", type: "colorPicker",635 label: "Фон пÑевÑÑ", defValue: "rgba(211,123,123,1)", opacity: true,636 selector: ["body"],637 css: ["color"]638 },639 {640 id: 7, name: "size-preview-blog-page", type: "slider",641 label: "РаÑÑÑоÑние Ð¼ÐµÐ¶Ð´Ñ Ð¿ÑевÑÑ", defValue: 2, min: 1, max: 10,642 selector: ["body"], css: ["color"]643 },644 {645 id: 8, name: "location-description-blog-page", type: "fontSelect",646 label: "РаÑположение опиÑаниÑ", defValue: "Center",647 selector: ["body"], css: ["color"],648 array: [649 { name: 'Center' },650 { name: 'Left' },651 { name: 'Right' },652 ]653 },654 {655 id: 9, name: "width-border-post-blog-page", type: "slider",656 label: "ТолÑина гÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи", defValue: 2, min: 1, max: 5,657 selector: ["body"],658 css: ["color"]659 },660 {661 id: 10, name: "color-border-post-blog-page", type: "colorPicker",662 label: "Ð¦Ð²ÐµÑ Ð³ÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи", defValue: "rgba(211,123,123,1)", opacity: true,663 selector: ["body"],664 css: ["color"]665 },666 {667 id: 11, name: "color-line-under-post", type: "colorPicker",668 label: "Ð¦Ð²ÐµÑ Ð»Ð¸Ð½Ð¸Ð¸ под запиÑÑÑ", defValue: "rgba(211,123,123,1)", opacity: true,669 selector: ["body"],670 css: ["color"]671 },672 {673 id: 12, name: "color-icons-blog-page", type: "colorPicker",674 label: "Ð¦Ð²ÐµÑ Ð¸ÐºÐ¾Ð½Ð¾Ðº", defValue: "rgba(123,177,211,1)", opacity: true,675 selector: ["body"],676 css: ["color"]677 },678 {679 id: 13, name: "color-decor_elem-blog-page", type: "colorPicker",680 label: "Ð¦Ð²ÐµÑ Ð´ÐµÐºÐ¾ÑаÑивнÑÑ
ÑлеменÑов", defValue: "rgba(222, 236, 245, 1)", opacity: true,681 selector: ["body"],682 css: ["color"]683 },684 {685 id: 14, name: "color-decor_line-blog-page", type: "colorPicker",686 label: "Ð¦Ð²ÐµÑ Ð´ÐµÐºÐ¾ÑаÑивнÑÑ
линий", defValue: "rgba(239, 230, 189, 1)", opacity: true,687 selector: ["body"],688 css: ["color"]689 },690 {691 id: 15, name: "color-navigation-blog-page", type: "colorPicker",692 label: "Ð¦Ð²ÐµÑ Ð½Ð°Ð²Ð¸Ð³Ð°Ñии", defValue: "rgba(123,177,211,1)", opacity: true,693 selector: ["body"],694 css: ["color"]695 },696 {697 id: 16, name: "bg-button-blog-page", type: "colorPicker",698 label: "Ð¦Ð²ÐµÑ Ñона кнопки \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: "#D70CF2", opacity: true,699 selector: ["body"],700 css: ["color"]701 },702 {703 id: 17, name: "font-header-blog-page", type: "fontSelect",704 label: "ШÑиÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "Rubik", search: 'search',705 selector: ["body"],706 css: ["color"]707 },708 {709 id: 18, name: "size-header-blog-page", type: "slider",710 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа заголовка", defValue: 2, min: 1, max: 5,711 selector: ["body"],712 css: ["color"]713 },714 {715 id: 19, name: "bg-header-blog-page", type: "colorPicker",716 label: "Ð¦Ð²ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "#000", opacity: true,717 selector: ["body"],718 css: ["color"]719 },720 {721 id: 20, name: "font-text-blog-page", type: "fontSelect",722 label: "ШÑиÑÑ ÑекÑÑа", defValue: "Rubik", search: 'search',723 selector: ["body"],724 css: ["color"]725 },726 {727 id: 21, name: "size-font-text-blog-page", type: "slider",728 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑекÑÑа", defValue: 2, min: 1, max: 5,729 selector: ["body"],730 css: ["color"]731 },732 {733 id: 22, name: "bg-text-blog-page", type: "colorPicker",734 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "#959899", opacity: true,735 selector: ["body"],736 css: ["color"]737 },738 {739 id: 23, name: "font-description-blog-page", type: "fontSelect",740 label: "ШÑиÑÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: "Rubik", search: 'search',741 selector: ["body"],742 css: ["color"]743 },744 {745 id: 24, name: "size-font-descript-blog-page", type: "slider",746 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа опиÑаниÑ", defValue: 2, min: 1, max: 5,747 selector: ["body"],748 css: ["color"]749 },750 {751 id: 25, name: "bg-descript-blog-page", type: "colorPicker",752 label: "Ð¦Ð²ÐµÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: "#dadee3", opacity: true,753 selector: ["body"],754 css: ["color"]755 },756 {757 id: 26, name: "font-date-blog-page", type: "fontSelect",758 label: "ШÑиÑÑ Ð´Ð°ÑÑ", defValue: "Rubik", search: 'search',759 selector: ["body"],760 css: ["color"]761 },762 {763 id: 27, name: "size-font-date-blog-page", type: "slider",764 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа даÑÑ", defValue: 2, min: 1, max: 5,765 selector: ["body"],766 css: ["color"]767 },768 {769 id: 28, name: "bg-date-blog-page", type: "colorPicker",770 label: "Ð¦Ð²ÐµÑ Ð´Ð°ÑÑ", defValue: "#589939", opacity: true,771 selector: ["body"],772 css: ["color"]773 },774 {775 id: 29, name: "font-tags-blog-page", type: "fontSelect",776 label: "ШÑиÑÑ Ñегов", defValue: "Rubik", search: 'search',777 selector: ["body"],778 css: ["color"]779 },780 {781 id: 30, name: "size-font-tags-blog-page", type: "slider",782 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа Ñегов", defValue: 2, min: 1, max: 5,783 selector: ["body"],784 css: ["color"]785 },786 {787 id: 31, name: "bg-tags-blog-page", type: "colorPicker",788 label: "Ð¦Ð²ÐµÑ Ñегов", defValue: "#997920", opacity: true,789 selector: ["body"],790 css: ["color"]791 },792 {793 id: 32, name: "font-links-blog-page", type: "fontSelect",794 label: "ШÑиÑÑ ÑÑÑлки \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: "Rubik", search: 'search',795 selector: ["body"],796 css: ["color"]797 },798 {799 id: 33, name: "size-font-links-blog-page", type: "slider",800 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑÑÑлки \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: 2, min: 1, max: 5,801 selector: ["body"],802 css: ["color"]803 },804 {805 id: 34, name: "color-link-read-blog-page", type: "colorPicker",806 label: "Ð¦Ð²ÐµÑ ÑÑÑлки \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: "#99341d", opacity: true,807 selector: ["body"],808 css: ["color"]809 },810 {811 id: 35, name: "size-font-text-blog-page", type: "slider",812 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑекÑÑа \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: 2, min: 1, max: 5,813 selector: ["body"],814 css: ["color"]815 },816 {817 id: 36, name: "color-text-read-blog-page", type: "colorPicker",818 label: "Ð¦Ð²ÐµÑ ÑекÑÑа \"ЧиÑаÑÑ Ð´Ð°Ð»ÐµÐµ\"", defValue: "#079993", opacity: true,819 selector: ["body"],820 css: ["color"]821 },822 ],823 },824 {825 id: 60,826 page: 'blog_post',827 url: '/post',828 elements: [829 {830 id: 0, name: "width-blog-post", type: "slider", units: true,831 label: 'ШиÑина ÑÑÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи',832 switchId: 1, switchName: "switch-width-blog-post", switchValue: '%',833 dim: { 0: '%', 1: 'Px' },834 range: {835 0: { v: 90, min: 1, max: 100, step: 10 },836 1: { v: 900, min: 600, max: 2500, step: 50 }837 },838 selector: ["body"],839 css: ["color"]840 },841 {842 id: 2, name: "effect-menu-active", type: "selectComposite",843 label: "Фон запиÑи", defValue: 'иÑполÑзоваÑÑ Ñон ÑайÑа',844 selector: [], css: [], options: [845 {name: 'иÑполÑзоваÑÑ Ñон ÑайÑа', picker: false},846 {name: 'ÑÐ²ÐµÑ Ñона', picker: true},847 ],848 components: [849 {850 id: 3, name: "sub_bg-blog-post", type: "colorPicker",851 label: "", defValue: "#b2e354",852 selector: ["body"], css: ["color"]853 },854 ],855 },856 {857 id: 4, name: "weight-border-blog-post", type: "slider",858 label: "ТолÑина гÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи", defValue: 2, min: 1, max: 10,859 selector: [],860 css: []861 },862 {863 id: 5, name: "color-border-blog-post", type: "colorPicker",864 label: "Ð¦Ð²ÐµÑ Ð³ÑаниÑÑ Ð·Ð°Ð¿Ð¸Ñи", defValue: "#e35e19", opacity: true,865 selector: [],866 css: []867 },868 {869 id: 6, name: "color-line-under-blog-post", type: "colorPicker",870 label: "Ð¦Ð²ÐµÑ Ð»Ð¸Ð½Ð¸Ð¸ под запиÑÑÑ", defValue: "#43a1e3", opacity: true,871 selector: [],872 css: []873 },874 {875 id: 7, name: "color-elem-under-blog-post", type: "colorPicker",876 label: "Ð¦Ð²ÐµÑ ÑлеменÑов под запиÑÑÑ", defValue: "#e393aa", opacity: true,877 selector: [],878 css: []879 },880 {881 id: 8, name: "color-decor-elem-blog-post", type: "colorPicker",882 label: "Ð¦Ð²ÐµÑ Ð´ÐµÐºÐ¾ÑаÑивнÑÑ
ÑлеменÑов", defValue: "#997920", opacity: true,883 selector: [],884 css: []885 },886 {887 id: 9, name: "color-navigation-blog-post", type: "colorPicker",888 label: "Ð¦Ð²ÐµÑ Ð½Ð°Ð²Ð¸Ð³Ð°Ñии", defValue: "#bfbab1", opacity: true,889 selector: [],890 css: []891 },892 {893 id: 10, name: "font-header-blog-post", type: "fontSelect",894 label: "ШÑиÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "Rubik", search: 'search',895 selector: [],896 css: []897 },898 {899 id: 11, name: "size-font-blog-post", type: "slider",900 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа заголовка", defValue: 2, min: 1, max: 10,901 selector: [],902 css: []903 },904 {905 id: 12, name: "color-heading-blog-post", type: "colorPicker",906 label: "Ð¦Ð²ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "#2d2927", opacity: true,907 selector: [],908 css: []909 },910 {911 id: 13, name: "font-text-blog-post", type: "fontSelect",912 label: "ШÑиÑÑ ÑекÑÑа", defValue: "Rubik", search: 'search',913 selector: [],914 css: []915 },916 {917 id: 14, name: "size-font-text-blog-post", type: "slider",918 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑекÑÑа", defValue: 2, min: 1, max: 10,919 selector: [],920 css: []921 },922 {923 id: 15, name: "color-heading-blog-post", type: "colorPicker",924 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "#000000", opacity: true,925 selector: [],926 css: []927 },928 {929 id: 16, name: "font-date-blog-post", type: "fontSelect",930 label: "ШÑиÑÑ Ð´Ð°ÑÑ", defValue: "Rubik", search: 'search',931 selector: [],932 css: []933 },934 {935 id: 17, name: "size-font-date-blog-post", type: "slider",936 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа даÑÑ", defValue: 2, min: 1, max: 10,937 selector: [],938 css: []939 },940 {941 id: 18, name: "color-heading-blog-post", type: "colorPicker",942 label: "Ð¦Ð²ÐµÑ Ð´Ð°ÑÑ", defValue: "#cb692d", opacity: true,943 selector: [],944 css: []945 },946 ],947 },948 {949 id: 70,950 page: 'blog_slider',951 url: '/slider',952 elements: [953 {954 id: 0, name: "height-blog-slider", type: "slider",955 label: "ÐÑÑоÑа ÑлайдеÑа", defValue: 2, min: 1, max: 5,956 selector: ["body"],957 css: ["color"]958 },959 {960 id: 1, name: "width-blog-slider", type: "slider",961 label: "ШиÑина ÑлайдеÑа", defValue: 1500, min: 600, max: 2590,962 selector: [],963 css: []964 },965 {966 id: 2, name: "indent-preview-blog-slider", type: "slider",967 label: "ÐÑÑÑÑп Ð¼ÐµÐ¶Ð´Ñ Ð¿ÑевÑÑ", defValue: 30, min: 1, max: 100,968 selector: [],969 css: []970 },971 {972 id: 3, name: "bg-blog-slider", type: "colorPicker",973 label: "Ð¦Ð²ÐµÑ Ñона", defValue: "#c9dfe2", opacity: true,974 selector: [],975 css: []976 },977 {978 id: 4, name: "show-button-blog-slider", type: "switchComposite",979 label: "ÐÑобÑажаÑÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸ Ð´Ð»Ñ Ð¿ÑолиÑÑÑваниÑ", defValue: false, tag: "enable-buttons",980 selector: [], css: [],981 components: [982 {983 id: 5, name: "color-button-blog-slider", type: "colorPicker",984 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿Ð¾Ðº", defValue: "#2d88e3", opacity: true,985 selector: [],986 css: []987 },988 {989 id: 6, name: "color-button-hover-blog-slider", type: "colorPicker",990 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿Ð¾Ðº пÑи наведении", defValue: "#bfbab1", opacity: true,991 selector: [],992 css: []993 },994 ],995 },996 {997 id: 7, name: "show-arrow-blog-slider", type: "switchComposite",998 label: "ÐÑобÑажаÑÑ ÑÑÑелки Ð´Ð»Ñ Ð¿ÑолиÑÑÑваниÑ", defValue: false, tag: "enable-arrows",999 selector: [], css: [],1000 components: [1001 {1002 id: 8, name: "color-arrow-blog-slider", type: "colorPicker",1003 label: "Ð¦Ð²ÐµÑ ÑÑÑелок", defValue: "#19e3cb", opacity: true,1004 selector: [],1005 css: []1006 },1007 {1008 id: 9, name: "color-arrow-hover-blog-slider", type: "colorPicker",1009 label: "Ð¦Ð²ÐµÑ ÑÑÑелок пÑи наведении", defValue: "#3089bf", opacity: true,1010 selector: [],1011 css: []1012 },1013 ],1014 },1015 {1016 id: 10, name: "color-scroll-blog-slider", type: "colorPicker",1017 label: "Ð¦Ð²ÐµÑ Ð¿ÑокÑÑÑки", defValue: "#adc3c6", opacity: true,1018 selector: [],1019 css: []1020 },1021 {1022 id: 11, name: "bg-under-text-blog-slider", type: "colorPicker",1023 label: "Фон под ÑекÑÑом", defValue: "#da3b76",1024 selector: [],1025 css: []1026 },1027 {1028 id: 12, name: "font-heading-blog-slider", type: "fontSelect",1029 label: "ШÑиÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "Rubik", search: 'search',1030 selector: [],1031 css: []1032 },1033 {1034 id: 13, name: "size-heading-blog-slider", type: "slider",1035 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: 2, min: 1, max: 5,1036 selector: [],1037 css: []1038 },1039 {1040 id: 14, name: "color-heading-blog-slider", type: "colorPicker",1041 label: "Ð¦Ð²ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ°", defValue: "#4d5556", opacity: true,1042 selector: [],1043 css: []1044 },1045 {1046 id: 15, name: "font-description-blog-slider", type: "fontSelect",1047 label: "ШÑиÑÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: "Rubik", search: 'search',1048 selector: [],1049 css: []1050 },1051 {1052 id: 16, name: "size-description-blog-slider", type: "slider",1053 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: 2, min: 1, max: 5,1054 selector: [],1055 css: []1056 },1057 {1058 id: 17, name: "color-description-blog-slider", type: "colorPicker",1059 label: "Ð¦Ð²ÐµÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: "#43a1e3", opacity: true,1060 selector: [],1061 css: []1062 },1063 {1064 id: 18, name: "color-links-hover-blog-slider", type: "colorPicker",1065 label: "Ð¦Ð²ÐµÑ ÑÑÑлки пÑи наведении", defValue: "#b2e354", opacity: true,1066 selector: [],1067 css: []1068 },1069 {1070 id: 19, name: "position-text-blog-slider", type: "fontSelect",1071 label: "РаÑположение ÑекÑÑа", defValue: "Center",1072 selector: [], css: [],1073 array: [1074 { name: 'Center' },1075 { name: 'Left' },1076 { name: 'Right' },1077 ]1078 },1079 {1080 id: 20, name: "show-arrow-blog-slider", type: "switchComposite",1081 label: "ÐклÑÑиÑÑ ÑлайдÑоÑ", defValue: false, tag: "enable-slide-show",1082 selector: [], css: [],1083 components: [1084 {1085 id: 21, name: "interval-blog-slider", type: "slider",1086 label: "ÐнÑеÑвал", defValue: 2, min: 1, max: 5,1087 selector: [], css: [],1088 },1089 ],1090 },1091 ],1092 },1093 {1094 id: 80,1095 page: 'shop_categories',1096 url: '/categories',1097 elements: [1098 {1099 id: 0, name: "shop-font-categories", type: "fontSelect",1100 label: "ШÑиÑÑ ÐºÐ°ÑегоÑии", defValue: "Rubik", search: 'search',1101 selector: ["body"],1102 css: ["color"]1103 },1104 {1105 id: 1, name: "shop-size-categories", type: "slider",1106 label: "Ð Ð°Ð·Ð¼ÐµÑ ÐºÐ°ÑегоÑии", defValue: 2, min: 1, max: 5,1107 selector: [], css: []1108 },1109 {1110 id: 2, name: "format-categories", type: "fontSelect",1111 label: "ФоÑÐ¼Ð°Ñ ÐºÐ°ÑегоÑии", defValue: "Center",1112 array: [1113 { name: 'Center' },1114 { name: 'Left' },1115 { name: 'Right' },1116 ],1117 selector: [], css: []1118 },1119 {1120 id: 3, name: "letter-spacing-categories", type: "slider",1121 label: "ÐежбÑквеннÑй инÑеÑвал каÑегоÑий", defValue: 3, min: 1, max: 5,1122 selector: [], css: []1123 },1124 {1125 id: 4, name: "line-spacing-categories", type: "slider",1126 label: "ÐежÑÑÑоÑнÑй инÑеÑвал каÑегоÑий", defValue: 2, min: 1, max: 5,1127 selector: [], css: []1128 },1129 {1130 id: 5, name: "color-categories", type: "colorPicker",1131 label: "Ð¦Ð²ÐµÑ ÐºÐ°ÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,1132 selector: [], css: []1133 },1134 {1135 id: 6, name: "color-active-categories", type: "colorPicker",1136 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивной каÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,1137 selector: [], css: []1138 },1139 {1140 id: 7, name: "color-active-hover-categories", type: "colorPicker",1141 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивной каÑегоÑии пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,1142 selector: [], css: []1143 },1144 {1145 id: 8, name: "bg-subcategories", type: "colorPicker",1146 label: "Фон Ð´Ð»Ñ Ð¿Ð¾Ð´ÐºÐ°ÑегоÑий", defValue: "#43a1e3", opacity: true,1147 selector: [], css: []1148 },1149 {1150 id: 9, name: "size-subcategories", type: "slider",1151 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð¿Ð¾Ð´ÐºÐ°ÑегоÑии", defValue: 2, min: 1, max: 5,1152 selector: [], css: []1153 },1154 {1155 id: 10, name: "format-name-subcategories", type: "fontSelect",1156 label: "ФоÑÐ¼Ð°Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð´ÐºÐ°ÑегоÑий", defValue: "Left",1157 array: [1158 { name: 'Center' },1159 { name: 'Left' },1160 { name: 'Right' },1161 ],1162 selector: [], css: []1163 },1164 {1165 id: 11, name: "letter-spacing-subcategories", type: "slider",1166 label: "ÐежбÑквеннÑй инÑеÑвал подкаÑегоÑий", defValue: 2, min: 1, max: 5,1167 selector: [], css: []1168 },1169 {1170 id: 12, name: "line-spacing-subcategories", type: "slider",1171 label: "ÐежÑÑÑоÑнÑй инÑеÑвал подкаÑегоÑий", defValue: 1, min: 1, max: 5,1172 selector: [], css: []1173 },1174 {1175 id: 13, name: "color-subcategories", type: "colorPicker",1176 label: "Ð¦Ð²ÐµÑ Ð¿Ð¾Ð´ÐºÐ°ÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,1177 selector: [], css: []1178 },1179 {1180 id: 14, name: "color-active-subcategories", type: "colorPicker",1181 label: "Ð¦Ð²ÐµÑ Ð°ÐºÑивной подкаÑегоÑии", defValue: "rgba(211,123,123,1)", opacity: true,1182 selector: [], css: []1183 },1184 {1185 id: 15, name: "color-active-hover-subcategories", type: "colorPicker",1186 label: "Ð¦Ð²ÐµÑ Ð¿Ð¾Ð´ÐºÐ°ÑегоÑии пÑи наведении", defValue: "#b2e354", opacity: true,1187 selector: [], css: []1188 },1189 ],1190 },1191 {1192 id: 90,1193 page: 'shop_catalog',1194 url: '/catalog',1195 elements: [1196 {1197 id: 0, name: "size-shop_catalog", type: "slider", units: true,1198 label: "ШиÑина каÑалога",1199 switchId: 1, switchName: "switch-size-shop_catalog", switchValue: '%',1200 dim: { 0: '%', 1: 'Px' },1201 range: {1202 0: { v: 20, min: 1, max: 100, step: 10 },1203 1: { v: 2, min: 1, max: 5, step: 0 }1204 },1205 selector: ["body"],1206 css: ["color"]1207 },1208 {1209 id: 2, name: "size-font-shop_catalog", type: "slider",1210 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа", defValue: 2, min: 1, max: 5,1211 selector: [], css: []1212 },1213 {1214 id: 3, name: "color-text-shop_catalog", type: "colorPicker",1215 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "rgba(211,123,123,1)", opacity: true,1216 selector: [], css: []1217 },1218 {1219 id: 4, name: "bg-preview-hover-shop_catalog", type: "colorPicker",1220 label: "Фон пÑи наведении на пÑевÑÑ", defValue: "rgba(211,123,123,1)", opacity: true,1221 selector: [], css: []1222 },1223 {1224 id: 5, name: "name-product-shop_catalog", type: "colorPicker",1225 label: "Ðазвание ÑоваÑа", defValue: "#b2e354", opacity: true,1226 selector: [], css: []1227 },1228 {1229 id: 6, name: "text-up-preview-shop_catalog", type: "colorPicker",1230 label: "ТекÑÑ Ð½Ð°Ð´ пÑевÑÑ", defValue: "rgba(211,123,123,1)", opacity: true,1231 selector: [], css: []1232 },1233 {1234 id: 7, name: "price-shop_catalog", type: "colorPicker",1235 label: "Цена", defValue: "rgba(211,123,123,1)", opacity: true,1236 selector: [], css: []1237 },1238 {1239 id: 8, name: "discount-price-shop_catalog", type: "colorPicker",1240 label: "Цена по Ñкидке", defValue: "rgba(211,123,123,1)", opacity: true,1241 selector: [], css: []1242 },1243 {1244 id: 9, name: "bg-icon-shop_catalog", type: "colorPicker",1245 label: "Фон иконки \"РкоÑзинÑ\"", defValue: "rgba(211,123,123,1)", opacity: true,1246 selector: [], css: []1247 },1248 {1249 id: 10, name: "bg-icon-hover-shop_catalog", type: "colorPicker",1250 label: "Фон иконки \"РкоÑзинÑ\" пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,1251 selector: [], css: []1252 },1253 {1254 id: 11, name: "basket-icon-shop_catalog", type: "colorPicker",1255 label: "Ðконка \"РкоÑзинÑ\"", defValue: "rgba(211,123,123,1)", opacity: true,1256 selector: [], css: []1257 },1258 {1259 id: 12, name: "basket-icon-hover-shop_catalog", type: "colorPicker",1260 label: "Ðконка \"РкоÑзинÑ\" пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,1261 selector: [], css: []1262 },1263 ],1264 },1265 {1266 id: 100,1267 page: 'shop_product',1268 url: '/product',1269 elements: [1270 {1271 id: 0, name: "size-shop_product", type: "slider", units: true,1272 label: "ШиÑина ÑÑÑаниÑÑ ÑоваÑа", defValue: 12,1273 switchId: 1, switchName: "switch-size-shop_catalog", switchValue: '%',1274 dim: { 0: '%', 1: 'Px' },1275 range: {1276 0: { v: 20, min: 1, max: 100, step: 10 },1277 1: { v: 2, min: 1, max: 5, step: 0 }1278 },1279 selector: ["body"],1280 css: ["color"]1281 },1282 {1283 id: 2, name: "font-select-shop_product", type: "fontSelect",1284 label: "ШÑиÑÑ ÑÑÑаниÑÑ", defValue: "Helvetica", search: 'search',1285 selector: [], css: []1286 },1287 {1288 id: 3, name: "size-font-breadcrumbs-shop_product", type: "slider",1289 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа \"Ñ
лебнÑÑ
кÑоÑек\"", defValue: 2, min: 1, max: 5,1290 selector: [], css: []1291 },1292 {1293 id: 4, name: "color-breadcrumbs-shop_product", type: "colorPicker",1294 label: "Ð¦Ð²ÐµÑ \"Ñ
лебнÑÑ
кÑоÑек\"", defValue: "rgba(211,123,123,1)", opacity: true,1295 selector: [], css: []1296 },1297 {1298 id: 5, name: "color-breadcrumbs-hover-shop_product", type: "colorPicker",1299 label: "Ð¦Ð²ÐµÑ \"Ñ
лебнÑÑ
кÑоÑек\" пÑи наведении", defValue: "rgba(211,123,123,1)", opacity: true,1300 selector: [], css: []1301 },1302 {1303 id: 6, name: "size-font-name-shop_product", type: "slider",1304 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа названиÑ", defValue: 2, min: 1, max: 5,1305 selector: [], css: []1306 },1307 {1308 id: 7, name: "color-name-shop_product", type: "colorPicker",1309 label: "Ð¦Ð²ÐµÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÑоваÑа", defValue: "#43a1e3", opacity: true,1310 selector: [], css: []1311 },1312 {1313 id: 8, name: "size-font-price-shop_product", type: "slider",1314 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑенÑ", defValue: 2, min: 1, max: 5,1315 selector: [], css: []1316 },1317 {1318 id: 9, name: "color-price-shop_product", type: "colorPicker",1319 label: "Ð¦Ð²ÐµÑ ÑенÑ", defValue: "#e3875b", opacity: true,1320 selector: [], css: []1321 },1322 {1323 id: 10, name: "size-font-price-discount-shop_product", type: "slider",1324 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑÐµÐ½Ñ Ñо Ñкидкой", defValue: 2, min: 1, max: 5,1325 selector: [], css: []1326 },1327 {1328 id: 11, name: "color-price-discount-shop_product", type: "colorPicker",1329 label: "Ð¦Ð²ÐµÑ ÑÐµÐ½Ñ Ñо Ñкидкой", defValue: "#e31524", opacity: true,1330 selector: [], css: []1331 },1332 {1333 id: 12, name: "size-font-price-discount-shop_product", type: "slider",1334 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑообÑÐµÐ½Ð¸Ñ Ð¾ колиÑеÑÑве ÑоваÑов", defValue: 2, min: 1, max: 5,1335 selector: [], css: []1336 },1337 // {1338 // id: 13, name: "color-price-discount-shop_product", type: "colorPicker",1339 // label: "Ð¦Ð²ÐµÑ ÑÐµÐ½Ñ Ñо Ñкидкой", defValue: "#2be3d3",1340 // selector: [], css: []1341 // },1342 {1343 id: 14, name: "color-msg-count_price-shop_product", type: "colorPicker",1344 label: "Ð¦Ð²ÐµÑ ÑообÑÐµÐ½Ð¸Ñ Ð¾ колиÑеÑÑве ÑоваÑов", defValue: "#e31524",1345 opacity: true, selector: [], css: []1346 },1347 {1348 id: 15, name: "size-font-description-shop_product", type: "slider",1349 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа опиÑаниÑ", defValue: 2, min: 1, max: 5,1350 selector: [], css: []1351 },1352 {1353 id: 16, name: "color-description-shop_product", type: "colorPicker",1354 label: "Ð¦Ð²ÐµÑ Ð¾Ð¿Ð¸ÑаниÑ", defValue: "#808e90", opacity: true,1355 selector: [], css: []1356 },1357 {1358 id: 17, name: "color-icon-add-cart-shop_product", type: "colorPicker",1359 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸ \"ÐобавиÑÑ Ð² коÑзинÑ\"", defValue: "#abbdc0", opacity: true,1360 selector: [], css: []1361 },1362 {1363 id: 18, name: "color-icon-add-cart-shop_product", type: "colorPicker",1364 label: "Ð¦Ð²ÐµÑ ÑекÑÑа \"ÐобавиÑÑ Ð² коÑзинÑ\"", defValue: "#197BC1", opacity: true,1365 selector: [], css: []1366 },1367 {1368 id: 19, name: "bg-button-photo-big-size-shop_product", type: "colorPicker",1369 label: "Ð¦Ð²ÐµÑ Ñона под ÑоÑо в болÑÑом ÑазмеÑе", defValue: "#14907c", opacity: true,1370 selector: [], css: []1371 },1372 ],1373 },1374 {1375 id: 110,1376 page: 'shop_order_page',1377 // url: '/order/page',1378 elements: [1379 {1380 id: 0, name: "font-page-shop_order", type: "fontSelect",1381 label: "ШÑиÑÑ ÑÑÑаниÑÑ", defValue: "Rubik", search: 'search',1382 selector: ["body"],1383 css: ["color"]1384 },1385 {1386 id: 1, name: "size-font-heading-shop_order", type: "slider",1387 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа заголовка", defValue: 2, min: 1, max: 5,1388 selector: [], css: []1389 },1390 {1391 id: 2, name: "color-heading-shop_order", type: "colorPicker",1392 label: "Ð¦Ð²ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð² на ÑÑÑаниÑе", defValue: "rgba(211,123,123,1)", opacity: true,1393 selector: [], css: []1394 },1395 {1396 id: 3, name: "size-font-name-column-shop_order", type: "slider",1397 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð»Ð¾Ð½Ð¾Ðº в ÑаблиÑе", defValue: 2, min: 1, max: 5,1398 selector: [], css: []1399 },1400 {1401 id: 4, name: "color-name-column-shop_order", type: "colorPicker",1402 label: "Ð¦Ð²ÐµÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð»Ð¾Ð½Ð¾Ðº в ÑаблиÑе", defValue: "rgba(211,123,123,1)", opacity: true,1403 selector: [], css: []1404 },1405 {1406 id: 5, name: "size-font-product-description-shop_order", type: "slider",1407 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа опиÑÐ°Ð½Ð¸Ñ ÑоваÑов", defValue: 2, min: 1, max: 5,1408 selector: [], css: []1409 },1410 {1411 id: 6, name: "color-product-description-shop_order", type: "colorPicker",1412 label: "Ð¦Ð²ÐµÑ Ð¾Ð¿Ð¸ÑÐ°Ð½Ð¸Ñ ÑоваÑов", defValue: "rgba(211,123,123,1)", opacity: true,1413 selector: [], css: []1414 },1415 {1416 id: 7, name: "size-font-product-params-shop_order", type: "slider",1417 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа паÑамеÑÑов ÑоваÑов", defValue: 2, min: 1, max: 5,1418 selector: [], css: []1419 },1420 {1421 id: 8, name: "color-product-params-shop_order", type: "colorPicker",1422 label: "Ð¦Ð²ÐµÑ Ð¿Ð°ÑамеÑÑов ÑоваÑов", defValue: "rgba(211,123,123,1)", opacity: true,1423 selector: [], css: []1424 },1425 {1426 id: 9, name: "size-font-total-price-shop_order", type: "slider",1427 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа иÑоговой ÑÑммÑ", defValue: 2, min: 1, max: 5,1428 selector: [], css: []1429 },1430 {1431 id: 10, name: "color-total-price-shop_order", type: "colorPicker",1432 label: "Ð¦Ð²ÐµÑ Ð¸Ñоговой ÑÑммÑ", defValue: "rgba(211,123,123,1)", opacity: true,1433 selector: [], css: []1434 },1435 {1436 id: 11, name: "size-font-bottom-text-block-shop_order", type: "slider",1437 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑекÑÑового блока внизÑ", defValue: 2, min: 1, max: 5,1438 selector: [], css: []1439 },1440 {1441 id: 12, name: "color-bottom-text-block-shop_order", type: "colorPicker",1442 label: "Ð¦Ð²ÐµÑ ÑекÑÑового блока внизÑ", defValue: "rgba(211,123,123,1)", opacity: true,1443 selector: [], css: []1444 },1445 {1446 id: 13, name: "size-font-delivery-methods-shop_order", type: "slider",1447 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑпоÑобов доÑÑавки", defValue: 2, min: 1, max: 5,1448 selector: [], css: []1449 },1450 {1451 id: 14, name: "color-delivery-method-shop_order", type: "colorPicker",1452 label: "Ð¦Ð²ÐµÑ ÑпоÑобов доÑÑавки", defValue: "rgba(211,123,123,1)", opacity: true,1453 selector: [], css: []1454 },1455 {1456 id: 15, name: "size-font-payment-methods-shop_order", type: "slider",1457 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑпоÑобов оплаÑÑ", defValue: 2, min: 1, max: 5,1458 selector: [], css: []1459 },1460 {1461 id: 16, name: "color-payment-methods-shop_order", type: "colorPicker",1462 label: "Ð¦Ð²ÐµÑ ÑпоÑобов оплаÑÑ", defValue: "rgba(211,123,123,1)", opacity: true,1463 selector: [], css: []1464 },1465 {1466 id: 17, name: "size-font-link-promo-code-shop_order", type: "slider",1467 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑÑиÑÑа ÑекÑÑа ÑÑÑлки на пÑомо-код", defValue: 2, min: 1, max: 5,1468 selector: [], css: []1469 },1470 {1471 id: 18, name: "color-split-lanes-shop_order", type: "colorPicker",1472 label: "Ð¦Ð²ÐµÑ ÑазделиÑелÑнÑÑ
полоÑ", defValue: "rgba(211,123,123,1)", opacity: true,1473 selector: [], css: []1474 },1475 ],1476 },1477 {1478 id: 111,1479 page: 'shop_order_form',1480 elements: [1481 //Ðид полей1482 {1483 id: 19, name: "type-fields-shop_order", type: "radio", sample: true,1484 label: "Ðид полей", defValue: 'square',1485 selector: [], css: [],1486 array: [1487 { className: 'sample-square', v: 'square' },1488 { className: 'sample-circle', v: 'circle' },1489 { className: 'sample-ellipse', v: 'ellipse' },1490 { className: 'sample-inline', v: 'inline' },1491 ]1492 },1493 {1494 id: 20, name: "color-bg-fields-shop_order", type: "colorPicker",1495 label: "Ð¦Ð²ÐµÑ Ñона полей", defValue: "rgba(86, 73, 73, 1)", opacity: true,1496 selector: [], css: []1497 },1498 {1499 id: 21, name: "border-fields-shop_order", type: "selectComposite",1500 label: "Ðбводка полей", defValue: 'ÑÐ²ÐµÑ Ð¿Ð¾Ð»ÐµÐ¹',1501 selector: [], css: [],1502 options: [1503 {name: 'ÑÐ²ÐµÑ Ð¿Ð¾Ð»ÐµÐ¹', picker: true, slider: false},1504 {name: 'ÑолÑина линии', picker: false, slider: true},1505 ],1506 components: [1507 {1508 id: 22, name: "border-fields-color-shop_order", type: "colorPicker",1509 label: "", defValue: "#ae93e3", opacity: true,1510 selector: [], css: []1511 },1512 {1513 id: 23, name: "border-fields-weight-shop_order", type: "slider",1514 label: "", defValue: 2, min: 1, max: 3,1515 selector: [], css: []1516 },1517 ],1518 },1519 {1520 id: 24, name: "font-text-field-shop_order", type: "fontSelect",1521 label: "ШÑиÑÑ ÑекÑÑа полÑ", defValue: "Rubik", search: 'search',1522 selector: [], css: []1523 },1524 {1525 id: 25, name: "size-text-field-shop_order", type: "slider",1526 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑекÑÑа полÑ", defValue: 2, min: 1, max: 5,1527 selector: [], css: []1528 },1529 {1530 id: 26, name: "format-text-shop_order", type: "fontSelect",1531 label: "ФоÑÐ¼Ð°Ñ ÑекÑÑа", defValue: "regular",1532 selector: [], css: [],1533 array: [1534 { name: 'regular' },1535 { name: 'bold' },1536 { name: 'italic' },1537 ]1538 },1539 {1540 id: 27, name: "letter-spacing-shop_order", type: "slider",1541 label: "ÐежбÑквеннÑй инÑеÑвал", defValue: 2, min: 1, max: 5,1542 selector: [], css: []1543 },1544 {1545 id: 28, name: "color-field-text-shop_order", type: "colorPicker",1546 label: "Ð¦Ð²ÐµÑ ÑекÑÑа полÑ", defValue: "#313b40", opacity: true,1547 selector: [], css: []1548 },1549 {1550 id: 29, name: "color-field-text-input-shop_order", type: "colorPicker",1551 label: "Ð¦Ð²ÐµÑ ÑекÑÑа Ð¿Ð¾Ð»Ñ Ð¿Ñи вводе", defValue: "#000", opacity: true,1552 selector: [], css: []1553 },1554 {1555 id: 30, name: "color-field-text-input-shop_order", type: "colorPicker",1556 label: "Ð¦Ð²ÐµÑ ÑекÑÑа без полÑ", defValue: "#264027", opacity: true,1557 selector: [], css: []1558 },1559 {1560 id: 31, name: "menu-scroll-events-shop_order", type: "radio",1561 label: "ÐÑÑÐµÐºÑ Ð¿Ñи вводе даннÑÑ
", defValue: 'hidden-field-name',1562 selector: [], css: [],1563 array: [1564 { label: 'ÑкÑÑваÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ðµ полÑ', v: 'hidden-field-name' },1565 { label: 'ÑменÑÑаÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ðµ полÑ', v: 'lower-field-name' },1566 ]1567 },1568 {1569 id: 32, name: "distance-between-fields-shop_order", type: "slider",1570 label: "РаÑÑÑоÑние Ð¼ÐµÐ¶Ð´Ñ Ð¿Ð¾Ð»Ñми", defValue: 2, min: 1, max: 5,1571 selector: [], css: []1572 },1573 {1574 id: 33, name: "distance-from-form-to-button-shop_order", type: "slider",1575 label: "РаÑÑÑоÑние Ð¾Ñ ÑоÑÐ¼Ñ Ð´Ð¾ кнопки", defValue: 2, min: 1, max: 5,1576 selector: [], css: []1577 },1578 //Ðид кнопки1579 {1580 id: 34, name: "view-button-shop_order", type: "radio", sample: true,1581 label: "Ðид кнопки", defValue: 'circle',1582 selector: [], css: [],1583 array: [1584 { className: 'sample-square', v: 'square' },1585 { className: 'sample-circle', v: 'circle' },1586 { className: 'sample-ellipse', v: 'ellipse' },1587 ]1588 },1589 {1590 id: 35, name: "color-button-shop_order", type: "colorPicker",1591 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸", defValue: "#63c0c0", opacity: true,1592 selector: [], css: []1593 },1594 {1595 id: 36, name: "color-button-hover-shop_order", type: "colorPicker",1596 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸ пÑи наведении", defValue: "#4c6ec0", opacity: true,1597 selector: [], css: []1598 },1599 {1600 id: 37, name: "border-button-shop_order", type: "selectComposite",1601 label: "Ðбводка кнопки", defValue: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки',1602 selector: [], css: [],1603 options: [1604 {name: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки', picker: true, slider: false},1605 {name: 'ÑолÑина обводки кнопки', picker: false, slider: true},1606 ],1607 components: [1608 {1609 id: 38, name: "color-border-button-shop_order", type: "colorPicker",1610 label: "", defValue: "#b2e354", opacity: true,1611 selector: [], css: []1612 },1613 {1614 id: 39, name: "weight-border-button-shop_order", type: "slider",1615 label: "", defValue: 2, min: 1, max: 3,1616 selector: [], css: []1617 },1618 ],1619 },1620 {1621 id: 40, name: "border-button-hover-shop_order", type: "selectComposite",1622 label: "Ðбводка кнопки пÑи наведении", defValue: 'ÑолÑина обводки кнопки',1623 selector: [], css: [],1624 options: [1625 {name: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки', picker: true, slider: false},1626 {name: 'ÑолÑина обводки кнопки', picker: false, slider: true},1627 ],1628 components: [1629 {1630 id: 41, name: "color-border-button-hover-shop_order", type: "colorPicker",1631 label: "", defValue: "#e37a79", opacity: true,1632 selector: [], css: []1633 },1634 {1635 id: 42, name: "weight-border-button-hover-shop_order", type: "slider",1636 label: "", defValue: 2, min: 1, max: 5,1637 selector: [], css: []1638 },1639 ],1640 },1641 {1642 id: 43, name: "font-text-button-shop_order", type: "fontSelect",1643 label: "ШÑиÑÑ ÑекÑÑа", defValue: "Rubik", search: 'search',1644 selector: [], css: []1645 },1646 {1647 id: 44, name: "size-text-button-field-shop_order", type: "slider",1648 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑекÑÑа полÑ", defValue: 2, min: 1, max: 5,1649 selector: [], css: []1650 },1651 {1652 id: 45, name: "format-text-button-shop_order", type: "fontSelect",1653 label: "ФоÑÐ¼Ð°Ñ ÑекÑÑа", defValue: "regular",1654 selector: [], css: [],1655 array: [1656 { name: 'regular' },1657 { name: 'bold' },1658 { name: 'italic' },1659 ]1660 },1661 {1662 id: 46, name: "letter-spacing-button-shop_order", type: "slider",1663 label: "ÐежбÑквеннÑй инÑеÑвал", defValue: 2, min: 1, max: 5,1664 selector: [], css: []1665 },1666 {1667 id: 47, name: "color-text-button-shop_order", type: "colorPicker",1668 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "#313b40", opacity: true,1669 selector: [], css: []1670 },1671 {1672 id: 48, name: "color-text-hover-button-shop_order", type: "colorPicker",1673 label: "Ð¦Ð²ÐµÑ ÑекÑÑа пÑи наведении", defValue: "#000", opacity: true,1674 selector: [], css: []1675 },1676 {1677 id: 49, name: "size-lateral-indents-in-button-shop_order", type: "slider",1678 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð±Ð¾ÐºÐ¾Ð²ÑÑ
оÑÑÑÑпов внÑÑÑи кнопки", defValue: 2, min: 1, max: 5,1679 selector: [], css: []1680 },1681 {1682 id: 50, name: "format-text-button-shop_order", type: "fontSelect",1683 label: "ÐÑÑавнивание", defValue: "left",1684 selector: [], css: [],1685 array: [1686 { name: 'left' },1687 { name: 'center' },1688 { name: 'right' },1689 ]1690 },1691 {1692 id: 51, name: "stretch-button-full-form-shop_order", type: "switch",1693 label: "РаÑÑÑнÑÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð° вÑÑ ÑиÑÐ¸Ð½Ñ ÑоÑмÑ", defValue: false,1694 selector: [], css: []1695 },1696 ],1697 },1698 {1699 id: 120,1700 page: 'shop_pre_order_page',1701 // url: '/pre-order',1702 elements: [1703 {1704 id: 0, name: "size-heading-ordering-shop_pre_order", type: "slider",1705 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ° \"ÐÑоÑмление заказа\"", defValue: 500, min: 300, max: 1000,1706 selector: [], css: []1707 },1708 {1709 id: 1, name: "color-heading-ordering-shop_pre_order", type: "colorPicker",1710 label: "Ð¦Ð²ÐµÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ° \"ÐÑоÑмление заказа\"", defValue: "rgba(86, 73, 73, 1)", opacity: true,1711 selector: [], css: []1712 },1713 {1714 id: 2, name: "size-text-upper-form-shop_pre_order", type: "slider",1715 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑекÑÑа над ÑоÑмой", defValue: 500, min: 300, max: 1000,1716 selector: [], css: []1717 },1718 {1719 id: 3, name: "color-text-upper-form-shop_pre_order", type: "colorPicker",1720 label: "Ð¦Ð²ÐµÑ ÑекÑÑа над ÑоÑмой", defValue: "rgba(86, 73, 73, 1)", opacity: true,1721 selector: [], css: []1722 },1723 ],1724 },1725 {1726 id: 121,1727 page: 'shop_pre_order_form',1728 elements: [1729 //Ðид полей1730 {1731 id: 19, name: "type-fields-shop_pre_order", type: "radio", sample: true,1732 label: "Ðид полей", defValue: 'circle',1733 selector: [], css: [],1734 array: [1735 { className: 'sample-square', v: 'square' },1736 { className: 'sample-circle', v: 'circle' },1737 { className: 'sample-ellipse', v: 'ellipse' },1738 { className: 'sample-inline', v: 'inline' },1739 ]1740 },1741 {1742 id: 20, name: "color-bg-fields-shop_pre_order", type: "colorPicker",1743 label: "Ð¦Ð²ÐµÑ Ñона полей", defValue: "rgba(86, 73, 73, 1)", opacity: true,1744 selector: [], css: []1745 },1746 {1747 id: 21, name: "border-fields-shop_pre_order", type: "selectComposite",1748 label: "Ðбводка полей", defValue: 'ÑÐ²ÐµÑ Ð¿Ð¾Ð»ÐµÐ¹',1749 selector: [], css: [],1750 options: [1751 {name: 'ÑÐ²ÐµÑ Ð¿Ð¾Ð»ÐµÐ¹', picker: true, slider: false},1752 {name: 'ÑолÑина линии', picker: false, slider: true},1753 ],1754 components: [1755 {1756 id: 22, name: "border-fields-color-shop_pre_order", type: "colorPicker",1757 label: "", defValue: "#ae93e3", opacity: true,1758 selector: [], css: []1759 },1760 {1761 id: 23, name: "border-fields-weight-shop_pre_order", type: "slider",1762 label: "", defValue: 2, min: 1, max: 3,1763 selector: [], css: []1764 },1765 ],1766 },1767 {1768 id: 24, name: "font-text-field-shop_pre_order", type: "fontSelect",1769 label: "ШÑиÑÑ ÑекÑÑа полÑ", defValue: "Rubik", search: 'search',1770 selector: [], css: []1771 },1772 {1773 id: 25, name: "size-text-field-shop_pre_order", type: "slider",1774 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑекÑÑа полÑ", defValue: 2, min: 1, max: 5,1775 selector: [], css: []1776 },1777 {1778 id: 26, name: "format-text-shop_pre_order", type: "fontSelect",1779 label: "ФоÑÐ¼Ð°Ñ ÑекÑÑа", defValue: "regular",1780 selector: [], css: [],1781 array: [1782 { name: 'regular' },1783 { name: 'bold' },1784 { name: 'italic' },1785 ]1786 },1787 {1788 id: 27, name: "letter-spacing-shop_pre_order", type: "slider",1789 label: "ÐежбÑквеннÑй инÑеÑвал", defValue: 2, min: 1, max: 5,1790 selector: [], css: []1791 },1792 {1793 id: 28, name: "color-field-text-shop_pre_order", type: "colorPicker",1794 label: "Ð¦Ð²ÐµÑ ÑекÑÑа полÑ", defValue: "#313b40", opacity: true,1795 selector: [], css: []1796 },1797 {1798 id: 29, name: "color-field-text-input-shop_pre_order", type: "colorPicker",1799 label: "Ð¦Ð²ÐµÑ ÑекÑÑа Ð¿Ð¾Ð»Ñ Ð¿Ñи вводе", defValue: "#000", opacity: true,1800 selector: [], css: []1801 },1802 {1803 id: 30, name: "color-field-text-input-shop_pre_order", type: "colorPicker",1804 label: "Ð¦Ð²ÐµÑ ÑекÑÑа без полÑ", defValue: "#264027", opacity: true,1805 selector: [], css: []1806 },1807 {1808 id: 31, name: "menu-scroll-events-shop_pre_order", type: "radio",1809 label: "ÐÑÑÐµÐºÑ Ð¿Ñи вводе даннÑÑ
", defValue: 'hidden-field-name',1810 selector: [], css: [],1811 array: [1812 { label: 'ÑкÑÑваÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ðµ полÑ', v: 'hidden-field-name' },1813 { label: 'ÑменÑÑаÑÑ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ðµ полÑ', v: 'lower-field-name' },1814 ]1815 },1816 {1817 id: 32, name: "distance-between-fields-shop_pre_order", type: "slider",1818 label: "РаÑÑÑоÑние Ð¼ÐµÐ¶Ð´Ñ Ð¿Ð¾Ð»Ñми", defValue: 2, min: 1, max: 5,1819 selector: [], css: []1820 },1821 {1822 id: 33, name: "distance-from-form-to-button-shop_pre_order", type: "slider",1823 label: "РаÑÑÑоÑние Ð¾Ñ ÑоÑÐ¼Ñ Ð´Ð¾ кнопки", defValue: 2, min: 1, max: 5,1824 selector: [], css: []1825 },1826 //Ðид кнопки1827 {1828 id: 34, name: "view-button-shop_pre_order", type: "radio", sample: true,1829 label: "Ðид кнопки", defValue: 'square',1830 selector: [], css: [],1831 array: [1832 { className: 'sample-square', v: 'square' },1833 { className: 'sample-circle', v: 'circle' },1834 { className: 'sample-ellipse', v: 'ellipse' },1835 ]1836 },1837 {1838 id: 35, name: "color-button-shop_pre_order", type: "colorPicker",1839 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸", defValue: "#63c0c0", opacity: true,1840 selector: [], css: []1841 },1842 {1843 id: 36, name: "color-button-hover-shop_pre_order", type: "colorPicker",1844 label: "Ð¦Ð²ÐµÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸ пÑи наведении", defValue: "#4c6ec0", opacity: true,1845 selector: [], css: []1846 },1847 {1848 id: 37, name: "border-button-shop_pre_order", type: "selectComposite",1849 label: "Ðбводка кнопки", defValue: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки',1850 selector: [], css: [],1851 options: [1852 {name: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки', picker: true, slider: false},1853 {name: 'ÑолÑина обводки кнопки', picker: false, slider: true},1854 ],1855 components: [1856 {1857 id: 38, name: "color-border-button-shop_pre_order", type: "colorPicker",1858 label: "", defValue: "#b2e354", opacity: true, selector: [], css: []1859 },1860 {1861 id: 39, name: "weight-border-button-shop_pre_order", type: "slider",1862 label: "", defValue: 2, min: 1, max: 3,1863 selector: [], css: []1864 },1865 ],1866 },1867 {1868 id: 40, name: "border-button-hover-shop_pre_order", type: "selectComposite",1869 label: "Ðбводка кнопки пÑи наведении", defValue: 'ÑолÑина обводки кнопки',1870 selector: [], css: [],1871 options: [1872 {name: 'ÑÐ²ÐµÑ Ð¾Ð±Ð²Ð¾Ð´ÐºÐ¸ кнопки', picker: true, slider: false},1873 {name: 'ÑолÑина обводки кнопки', picker: false, slider: true},1874 ],1875 components: [1876 {1877 id: 41, name: "color-border-button-hover-shop_pre_order", type: "colorPicker",1878 label: "", defValue: "#e37a79", opacity: true, selector: [], css: []1879 },1880 {1881 id: 42, name: "weight-border-button-hover-shop_pre_order", type: "slider",1882 label: "", defValue: 2, min: 1, max: 5,1883 selector: [], css: []1884 },1885 ],1886 },1887 {1888 id: 43, name: "font-text-button-shop_pre_order", type: "fontSelect",1889 label: "ШÑиÑÑ ÑекÑÑа", defValue: "Rubik", search: 'search',1890 selector: [], css: []1891 },1892 {1893 id: 44, name: "size-text-button-field-shop_pre_order", type: "slider",1894 label: "Ð Ð°Ð·Ð¼ÐµÑ ÑекÑÑа полÑ", defValue: 2, min: 1, max: 5,1895 selector: [], css: []1896 },1897 {1898 id: 45, name: "format-text-button-shop_pre_order", type: "fontSelect",1899 label: "ФоÑÐ¼Ð°Ñ ÑекÑÑа", defValue: "regular",1900 selector: [], css: [],1901 array: [1902 { name: 'regular' },1903 { name: 'bold' },1904 { name: 'italic' },1905 ]1906 },1907 {1908 id: 46, name: "letter-spacing-button-shop_pre_order", type: "slider",1909 label: "ÐежбÑквеннÑй инÑеÑвал", defValue: 2, min: 1, max: 5,1910 selector: [], css: []1911 },1912 {1913 id: 47, name: "color-text-button-shop_pre_order", type: "colorPicker",1914 label: "Ð¦Ð²ÐµÑ ÑекÑÑа", defValue: "#313b40", opacity: true,1915 selector: [], css: []1916 },1917 {1918 id: 48, name: "color-text-hover-button-shop_pre_order", type: "colorPicker",1919 label: "Ð¦Ð²ÐµÑ ÑекÑÑа пÑи наведении", defValue: "#000", opacity: true,1920 selector: [], css: []1921 },1922 {1923 id: 49, name: "size-lateral-indents-in-button-shop_pre_order", type: "slider",1924 label: "Ð Ð°Ð·Ð¼ÐµÑ Ð±Ð¾ÐºÐ¾Ð²ÑÑ
оÑÑÑÑпов внÑÑÑи кнопки", defValue: 2, min: 1, max: 5,1925 selector: [], css: []1926 },1927 {1928 id: 50, name: "format-text-button-shop_pre_order", type: "fontSelect",1929 label: "ÐÑÑавнивание", defValue: "left", selector: [], css: [],1930 array: [1931 { name: 'left' },1932 { name: 'center' },1933 { name: 'right' },1934 ]1935 },1936 {1937 id: 51, name: "stretch-button-full-form-shop_pre_order", type: "switch",1938 label: "РаÑÑÑнÑÑÑ ÐºÐ½Ð¾Ð¿ÐºÑ Ð½Ð° вÑÑ ÑиÑÐ¸Ð½Ñ ÑоÑмÑ", defValue: false,1939 selector: [], css: []1940 },1941 ],1942 }1943 ];...
select_tree.js
Source:select_tree.js
1var SelectTree = function() {23};456/**7 * å è½½å®å§ä¼æºæ8 * code:å®ä¹éæ©åçIDå¼9 * defValue é»è®¤å¼10 */11SelectTree.loadIsMemberSelect = function loadIsMemberSelect(code,param,defValue){12 SelectTree.loadBaseSelect(BASE_URL+"/system/sysorg/isMemberTree",code,param,defValue);13}141516/**17 * å è½½ç»ç»æºæ18 * code:å®ä¹éæ©åçIDå¼19 * defValue é»è®¤å¼20 */21SelectTree.loadOrgSelect = function loadOrgSelect(code,param,defValue){22 SelectTree.loadBaseSelect(BASE_URL+"/system/sysorg/orgtree",code,param,defValue);23}2425/**26 * æ ¹æ®ç»ç»æºæIDå è½½å®ä¸é¢çç»ç»æºæ27 * code:å®ä¹éæ©åçIDå¼28 * defValue é»è®¤å¼29 */30SelectTree.loadOrgByOrgidSelect = function loadOrgSelect(code,param,defValue,fn){31 SelectTree.loadBaseSelect(BASE_URL+"/system/sysorg/orgtreeByOrgid",code,param,defValue,fn);32}3334/**35 * å è½½ä¼ä¸è¯¦ç»ä¿¡æ¯æ 36 * 37 */38SelectTree.loadBaseInfoSelect = function loadBaseInfoSelect(code,param,defValue,fn){39 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entsafeinfomenu/safemenutree",code,param,defValue,fn);40}4142/**43 * å è½½æé¤é¡¹æ 44 * 45 */46SelectTree.loadHdiCheckitemSelect = function loadHdiCheckitemSelect(code,param,defValue,fn){47 SelectTree.loadBaseSelect(BASE_URL+"/hiddendanger/hdicheckitem/checkitementtree",code,param,defValue,fn);48}4950/**51 * ä»»å¡æ书ä¸ææ 52 * 53 */54SelectTree.loadDocmenuTree = function loadDocmenuTree(code,param,defValue,fn){55 SelectTree.loadBaseSelect(BASE_URL+"/law/lawmydoc/docmenutree",code,param,defValue,fn);56}5758/**59 * å è½½æ书信æ¯æ 60 * 61 */62SelectTree.loadLawDocInfoSelect = function loadLawDocInfoSelect(code,param,defValue,fn){63 SelectTree.loadBaseSelect(BASE_URL+"/law/lawdocinfo/lawmenutree",code,param,defValue,fn);64}6566/**67 * å è½½é¨é¨68 * code:å®ä¹éæ©åçIDå¼69 * defValue é»è®¤å¼70 */71SelectTree.loadDepartSelect = function loadDepartSelect(code,param,defValue) {72 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdepart/departtree",code,param,defValue);73};747576/**77 * æ¥è¯¢æéæ (æé管ç)78 * code:å®ä¹éæ©åçIDå¼79 * defValue é»è®¤å¼80 */ 81SelectTree.loadDistrictSelect = function loadDistrictSelect(code,param,defValue) {82 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdistrict/districttree",code,param,defValue);83};848586/**87 * å è½½è¡æ¿åºå(ææèç¹)88 * code:å®ä¹éæ©åçIDå¼89 * defValue é»è®¤å¼90 */ 91SelectTree.loadDistrictAllSelect = function loadDistrictAllSelect(code,param,defValue) {92 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdistrict/districtalltree",code,param,defValue);93};9495/**96 * å è½½è¡æ¿åºå(æ¥è¯¢å½åç¨æ·æå¨æºæä¸çæå±è¡æ¿åºå)97 * code:å®ä¹éæ©åçIDå¼98 * defValue é»è®¤å¼99 */ 100SelectTree.loadSelfDistrictSelect = function loadSelfDistrictSelect(code,param,defValue) {101 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdistrict/districtTreeById",code,param,defValue);102};103104/**105 * å 载系ç»æé106 * code:å®ä¹éæ©åçIDå¼107 * defValue é»è®¤å¼108 */ 109SelectTree.loadPrivIdSelect = function loadPrivIdSelect(code,param,defValue) {110 SelectTree.loadBaseSelect(BASE_URL+"/system/syspriv/privtree",code,param,defValue);111};112113/**114 * å è½½å½æ°ç»æµè¡ä¸åç±»(æå±è¡ä¸)115 * code:å®ä¹éæ©åçIDå¼116 * defValue é»è®¤å¼117 */ 118SelectTree.loadEconindustrySelect = function loadEconindustrySelect(code,param,defValue) {119 SelectTree.loadBaseSelect(BASE_URL+"/system/syseconindustry/econindustrytree",code,param,defValue);120};121122/**123 * å è½½ç»æµç±»å 124 * code:å®ä¹éæ©åçIDå¼125 * defValue é»è®¤å¼126 */ 127SelectTree.loadEconomictypeSelect = function loadEconomictypeSelect(code,param,defValue) {128 SelectTree.loadBaseSelect(BASE_URL+"/system/syseconomictype/economictypetree",code,param,defValue);129};130131132/**133 * å è½½ç管åç±»134 * code:å®ä¹éæ©åçIDå¼135 * defValue é»è®¤å¼136 */ 137SelectTree.loadManagerTypeSelect = function loadManagerTypeSelect(code,param,defValue) {138 SelectTree.loadBaseSelect(BASE_URL+"/system/sysmanagertype/managertypetree",code,param,defValue);139};140141/**142 * å è½½è¡ä¸ä¸»ç®¡åç±»-éèå¶åèç¹143 * code:å®ä¹éæ©åçIDå¼144 * defValue é»è®¤å¼145 */ 146SelectTree.loadDirectorTypeSelect = function loadDirectorTypeSelect(code,param,defValue) {147 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdirectortype/directortypetree",code,param,defValue);148};149150/**151 * å è½½è¡ä¸ä¸»ç®¡åç±»-å
¨é¨152 * code:å®ä¹éæ©åçIDå¼153 * defValue é»è®¤å¼154 */ 155SelectTree.loadDirectorTypeAllSelect = function loadDirectorTypeAllSelect(code,param,defValue,fn) {156 SelectTree.loadBaseSelect(BASE_URL+"/system/sysdirectortype/directorTypeAllTree",code,param,defValue,fn);157};158159/**160 * å è½½ç¹ç§ä½ä¸å²ä½æ 161 * code:å®ä¹éæ©åçIDå¼162 * defValue é»è®¤å¼163 */ 164SelectTree.loadSpecialPositionSelect = function loadSpecialPositionSelect(code,param,defValue,fn) {165 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entoperator/specialpositiontree",code,param,defValue,fn);166};167168/**169 * å è½½ç¹ç§è®¾å¤ä½ä¸å²ä½æ 170 * code:å®ä¹éæ©åçIDå¼171 * defValue é»è®¤å¼172 */ 173SelectTree.loadSpecialEquipPositionSelect = function loadSpecialEquipPositionSelect(code,param,defValue,fn) {174 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entequipoperator/specialequippositiontree",code,param,defValue,fn);175};176177/**178 * å è½½å±é©è®¾å¤ç±»åæ 179 * code:å®ä¹éæ©åçIDå¼180 * defValue é»è®¤å¼181 */ 182SelectTree.loadDangerEquipTypeSelect = function loadDangerEquipTypeSelect(code,param,defValue,fn) {183 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entdangerequip/dangerequiptypetree",code,param,defValue,fn);184};185186/**187 * å è½½å®å
¨ç产æå
¥é¢åç±»åæ 188 * code:å®ä¹éæ©åçIDå¼189 * defValue é»è®¤å¼190 */ 191SelectTree.loadInvestFieldSelect = function loadInvestFieldSelect(code,param,defValue,fn) {192 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entsafeinvestinfo/investfieldtree",code,param,defValue,fn);193};194195/**196 * å è½½å®å
¨ç产许å¯è¯ç
§ç±»åæ 197 * code:å®ä¹éæ©åçIDå¼198 * defValue é»è®¤å¼199 */ 200SelectTree.loadPermitTypeSelect = function loadPermitTypeSelect(code,param,defValue,fn) {201 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entpermitphoto/permittypetree",code,param,defValue,fn);202};203204/**205 * å è½½èä¸å±å®³å ç´ æ 206 * code:å®ä¹éæ©åçIDå¼207 * defValue é»è®¤å¼208 */ 209SelectTree.loadHarmFactorSelect = function loadHarmFactorSelect(code,param,defValue,fn) {210 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entproharmctrl/harmfactortree",code,param,defValue,fn);211};212213/**214 * å è½½å±ååä¼ä¸ç±»åæ (ææèç¹)215 * code:å®ä¹éæ©åçIDå¼216 * defValue é»è®¤å¼217 */ 218SelectTree.loadChemicalEntTypeAllSelect = function loadChemicalEntTypeAllSelect(code,param,defValue) {219 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/entchemicaltype/chemicaltypeAllTree",code,param,defValue);220};221222223/**224 * å è½½å±é©å工工èºç®å½225 * code:å®ä¹éæ©åçIDå¼226 * defValue é»è®¤å¼227 */228SelectTree.loadDancatalogSelect = function loadDancatalogSelect(code,param,defValue) {229 SelectTree.loadBaseSelect(BASE_URL+"/enterprise/sysdancheprocatalog/dancatalogtree",code,param,defValue);230};231232/**233 * å è½½å±ååç®å½234 * code:å®ä¹éæ©åçIDå¼235 * defValue é»è®¤å¼236 */237SelectTree.loadChecatalogSelect = function loadChecatalogSelect(code,param,defValue) {238 SelectTree.loadBaseSelect(BASE_URL+"/knowledge/knochemicalcatal/checatalogtree",code,param,defValue);239};240241/**242 * å è½½ææ¥é¡¹243 * code:å®ä¹éæ©åçIDå¼244 * defValue é»è®¤å¼245 */246SelectTree.loadCheckitemSelect = function loadCheckitemSelect(code,param,defValue) {247 SelectTree.loadBaseSelect(BASE_URL+"/hiddendanger/hdicheckitem/checkitemtree",code,param,defValue);248};249250/**251 * å 载巡æ¥äººå252 * code:å®ä¹éæ©åçIDå¼253 * defValue é»è®¤å¼254 */255SelectTree.loadPatrollerSelect = function loadPatrollerSelect(code,param,defValue) {256 SelectTree.loadBaseSelect(BASE_URL+"/hiddendanger/hdipatroller/patrolleTree",code,param,defValue);257};258259/**260 * å è½½ é大å±é©æº çæµçæ§ ä¸»æºåå·261 * code:å®ä¹éæ©åçIDå¼262 * defValue é»è®¤å¼263 */264SelectTree.loadMacVideoBrandTypeSelect = function loadMacVideoBrandTypeSelect(code,param,defValue) {265 SelectTree.loadBaseSelect(BASE_URL+"/monitor/macvideobrandtype/loadMacVideoBrandTypeTree",code,param,defValue);266};267268/**269 * å è½½ é大å±é©æº çæµçæ§ çæµä¸»æºåå·270 * code:å®ä¹éæ©åçIDå¼271 * defValue é»è®¤å¼272 */273SelectTree.loadMacProbeBrandTypeSelect = function loadMacProbeBrandTypeSelect(code,param,defValue) {274 SelectTree.loadBaseSelect(BASE_URL+"/monitor/macprobebrandtype/loadMacProbeBrandTypeTree",code,param,defValue);275};276277/**278 * å è½½æ§æ³é¨é¨279 * code:å®ä¹éæ©åçIDå¼280 * defValue é»è®¤å¼281 */ 282SelectTree.loadLawDeptSelect = function loadLawDeptSelect(code,param,defValue) {283 SelectTree.loadBaseSelect(BASE_URL+"/law/lawdept/lawdepttree",code,param,defValue);284};285286/**287 * å è½½åºæ¥æºæ288 * code:å®ä¹éæ©åçIDå¼289 * defValue é»è®¤å¼290 */ 291SelectTree.loadEmsResOrgSelect = function loadEmsResOrgSelect(code,param,defValue) {292 SelectTree.loadBaseSelect(BASE_URL+"/ems/emsresorg/emsresorgtree",code,param,defValue);293};294295/**296 * é¢æ¡æ¨¡æ¿å
ç´ (ææèç¹)297 * code:å®ä¹éæ©åçIDå¼298 * defValue é»è®¤å¼299 */300SelectTree.loadPlanElementAllSelect = function loadPlanElementAllSelect(code,param,defValue){301 SelectTree.loadBaseSelect(BASE_URL+"/ems/emsplaelement/planelementtree",code,param,defValue);302};303304/**305 * å è½½äºæ
ç±»åæ (ææèç¹)306 * code:å®ä¹éæ©åçIDå¼307 * defValue é»è®¤å¼308 */ 309SelectTree.loadEventTypeAllTreeSelect = function loadEventTypeAllTreeSelect(code,param,defValue) {310 SelectTree.loadBaseSelect(BASE_URL+"/ems/emsplaproacc/loadEventTypeAllTree",code,param,defValue);311};312313/**314 * å 载弹åºæ 315 * loadurl:å¼¹åºæ 请æ±å°å316 * code:å®ä¹éæ©åçIDå¼317 * defValue é»è®¤å¼318 */319SelectTree.loadBaseSelect = function loadBaseSelect(loadurl,code,jsonParam,defValue,fn) {320 // çææ çDIV321 $('#'+code).attr("readOnly","true");322 323 if(defValue!=null&&defValue!=""&&defValue!=undefined){324 $('#'+code).val(defValue);325 }326 327 //è·åæ¯å¦å¤é328 var isMuti=$('#'+code).attr("selectmulti");329 if(isMuti=='true'||isMuti==true){330 isMuti=true;331 }else{332 isMuti=false;333 }334 335 //è·åç¶èç¹æ¯å¦å¯ç¹336 var rootclick =$('#'+code).attr('rootclick');337 if(rootclick=='true'||rootclick==true){338 rootclick=true;339 }else{340 rootclick=false;341 }342 343 //å¼¹åºæ¡å®½åº¦344 var selectwidth =$('#'+code).attr('selectwidth');345 if(!selectwidth){346 selectwidth=174;347 }348 //å¼¹åºæ¡é«åº¦349 var selectheight =$('#'+code).attr('selectheight');350 if(!selectheight){351 selectheight=200;352 }353 354 //è·åéå å±æ§355 var alias=$('#'+code).attr('alias');356 357 var hide_div='hide_div_tree'+code;358 var hide_tree='hide_tree_id'+code;359 360 var treeDIV = $('<div id='+hide_div+' class="dropdown-menu" style="display:none; position: absolute;z-index: 9000;"><ul id='+hide_tree+' class="ztree" style="margin-top:0; width:'+selectwidth+';height:'+selectheight+';overflow:auto"></ul></div>"');361 $(document.body).append(treeDIV);362363 var resultcode=code+"_select";364 var resultname=$('#'+code).attr("selectname");365 if(resultname==""||resultname==undefined){366 alert(code+"æªå®ä¹selectname");367 return;368 }369370 var hideIdDIV = $('<input id="'371 + resultcode372 + '" name="'373 + resultname374 + '" type="text" readonly value="" style="width:120px; display: none"/>');375 $("#" + code).after(hideIdDIV);376 $("#" + code)377 .bind(378 "click",379 function() {380 var nameObj = $("#" + code);381 var nameObjOffset = $("#" + code).offset();382 $("#"+hide_div).css(383 {384 left : nameObjOffset.left + "px",385 top : nameObjOffset.top386 + nameObj.outerHeight() + "px"387 }).slideDown("fast");388 $("body")389 .bind(390 "mousedown",391 function(event) {392 if (!(event.target.id == "menuBtn"393 || event.target.id == hide_div || $(394 event.target).parents(395 "#"+hide_div).length > 0)) {396 $("#"+hide_div).fadeOut(397 "fast");398 $("body")399 .unbind(400 "mousedown",401 function(event) {402 SelectTree403 .onBodyDown(event,code);404 });405 }406 });407 });408 409 var setting = {410 check : {411 enable : isMuti412 },413 view : {414 dblClickExpand : false415 },416 data : {417 simpleData : {418 enable : true419 }420 },421 callback : {422 beforeClick : function(treeId, treeNode) {423 if(rootclick){424 return true;425 }else{426 if(treeNode && treeNode.isParent){427 return false;428 }else{429 return true;430 }431 }432 },433 onCheck : function() {434 var zTree = $.fn.zTree.getZTreeObj(hide_tree), nodes = zTree435 .getCheckedNodes(true), v = "";436 var eventId = "";437 nodes.sort(function compare(a, b) {438 return a.id - b.id;439 });440 for ( var i = 0, l = nodes.length; i < l; i++) {441 if (!nodes[i].isParent) {442 v += nodes[i][alias] + ",";443 eventId += nodes[i].id + ",";444 }445446 }447 if (v.length > 0)448 v = v.substring(0, v.length - 1);449 if (eventId.length > 0)450 eventId = eventId.substring(0, eventId.length - 1);451 $("#" + code).val(v);452 $('#'+code).attr("selectvalue",eventId);453 $('#' + resultcode).val(eventId);454455 },456 onClick : function(event, treeId, treeNode, clickFlag) {457 $("#" + code).val();458 $("#" + resultcode).val();459 if(alias){460 $("#" + code).val(treeNode[alias]);461 }else{462 $("#" + code).val(treeNode.name);463 }464 $("#" + resultcode).val(treeNode.id);465 $('#'+code).attr("selectvalue",treeNode.id);466 if(fn != undefined){467 fn(treeNode);468 }469 $('#'+code).focus();470 SelectTree.hideMenu(event,code);471 }472 }473 };474 475 $.ajax( {476 type : "post",477 url : loadurl,478 dataType : 'json',479 data:jsonParam,480 global : false,481 async : false,482 success : function(json) {483 var tree = $.fn.zTree.init($("#"+hide_tree), setting, json);484 tree.expandAll(true);485 var selnames="";486 var selIds = $('#' + code).attr('selectvalue');487 $("#" + resultcode).val(selIds);488 489 if(selIds==""||selIds==null||selIds=='null'){490 selnames=defValue;491 }else{492 if(isMuti){493 if (selIds != null && selIds != "" && tree.setting.check.enable) {494 var ids = selIds.split(",");495 if (ids.length > 0) {496 for ( var i = 0; i < ids.length; i++) {497 var id = ids[i];498 var node = tree.getNodeByParam("id", id, null);499 tree.checkNode(node, true, false);500 if(attr){501 selnames+=','+node[alias];502 }else{503 selnames+=','+node.name;504 }505 }506 }507 508 }509 }else{510 var node = tree.getNodeByParam("id", selIds, null);511 if(node != null){512 if(alias){513 selnames+=','+node[alias];514 }else{515 selnames+=','+node.name;516 }517 }else{518 selnames=",";519 }520 }521 selnames=selnames.substring(1);522 }523 $('#'+code).val(selnames);524 //è¿åå½æ°525 if(fn != undefined){526 fn(selIds);527 }528 },529 error : function() {530531 }532 });533};534535//æ èç¹å¯¹è±¡536function Node(id, pId, name, open, icon,datatype,url, tablename, doccode) {537 this.id = id;538 this.pId = pId;539 this.name = name;540 this.open = open;541 this.icon = icon;542 this.datatype=datatype;543 this.url = url; 544 this.tablename = tablename;545 this.doccode = doccode;546}547548SelectTree.hideMenu = function hideMenu(event,code) {549 $("#hide_div_tree"+code).fadeOut("fast");550 $("body").unbind("mousedown", SelectTree.onBodyDown(event,code));551};552SelectTree.onBodyDown = function onBodyDown(event,code) {553 if (!(event.target.id == "menuBtn" || event.target.id == "hide_div_tree"+code || $(554 event.target).parents("#hide_div_tree"+code).length > 0)) {555 SelectTree.hideMenu(event,code);556 }
...
get-column-detials.js
Source:get-column-detials.js
1const realTypeOf = require('realtypeof');2const getColumnDetails = defValue => {3 switch (realTypeOf(defValue)) {4 case 'string':5 return {6 $column: defValue,7 };8 case 'array':9 return {10 $column: defValue,11 $type: 'array',12 };13 case 'object':14 if ('$column' in defValue) {15 defValue.$type = defValue.$type ? defValue.$type.toLowerCase() : undefined;16 return defValue;17 }18 return {19 $column: defValue,20 $type: 'object',21 };22 default:23 throw Error(`The definition object has a non-standard value: ${defValue}`);24 }25};...
Using AI Code Generation
1import { defValue } from 'ng-mocks';2import { MockBuilder, MockRender } from 'ng-mocks';3import ngMocks from 'ng-mocks';4import { MockInstance } from 'ng-mocks';5import { MockRender } from 'ng-mocks';6import { MockReset } from 'ng-mocks';7import { MockService } from 'ng-mocks';8import { MockRender } from 'ng-mocks';9import { MockRender } from 'ng-mocks';10import { MockRender } from 'ng-mocks';11import { MockRender } from 'ng-mocks';12import { MockRender } from 'ng-mocks';13import { MockRender } from 'ng-mocks';14import { MockRender } from 'ng-mocks';15import { MockRender } from 'ng-mocks';16import { MockRender } from 'ng-mocks';17import { MockRender } from 'ng-mocks';18import { MockRender } from 'ng-mocks';19import { MockRender } from 'ng-mocks';20import { MockRender } from 'ng-mocks';21import { MockRender } from 'ng-mocks';22import { MockRender } from 'ng-mocks';23import { MockRender } from 'ng-mocks';
Using AI Code Generation
1import { defValue } from 'ng-mocks';2import { MyService } from './myservice';3describe('test', () => {4 it('test', () => {5 defValue(MyService, 'myMethod', 'Hello');6 const myService = new MyService();7 expect(myService.myMethod()).toEqual('Hello');8 });9});
Using AI Code Generation
1import { defValue } from 'ng-mocks';2describe('ng-mocks', () => {3 it('should be able to use defValue', () => {4 const mock = defValue({ a: 1 });5 expect(mock.a).toEqual(1);6 });7});8✓ ng-mocks: it should be able to use defValue (3ms)9import { defValue } from 'ng-mocks';10describe('ng-mocks', () => {11 it('should be able to use defValue', () => {12 const mock = defValue({ a: 1 });13 expect(mock.a).toEqual(1);14 });15});16✓ ng-mocks: it should be able to use defValue (3ms)
Using AI Code Generation
1import { defValue } from 'ng-mocks';2describe('MyComponent', () => {3 it('should be ok', () => {4 const fixture = MockRender(MyComponent);5 const component = defValue(fixture.debugElement.componentInstance);6 expect(component).toBeDefined();7 });8});9@Component({10})11export class MyComponent {12 public myMethod(): void {13 console.log('Hello world');14 }15}16describe('MyComponent', () => {17 it('should be ok', () => {18 const component = new MyComponent();19 expect(component).toBeDefined();20 });21});22describe('MyComponent', () => {23 it('should be ok', () => {24 const component = MockInstance(MyComponent);25 expect(component).toBeDefined();26 });27});28describe('MyComponent', () => {29 it('should be ok', () => {30 const component = MockProvider(MyComponent);31 expect(component).toBeDefined();32 });33});34describe('MyComponent', () => {35 it('should be ok', () => {36 const component = MockService(MyComponent);37 expect(component).toBeDefined();38 });39});40describe('MyComponent', () => {41 it('should be ok', () => {42 const component = MockType(MyComponent);43 expect(component).toBeDefined();44 });45});46describe('MyComponent', () => {47 it('should be ok', () => {48 const component = MockDirective(MyComponent);49 expect(component).toBeDefined();50 });51});52describe('MyComponent', () => {53 it('should be ok', () => {54 const component = MockPipe(MyComponent);55 expect(component).toBeDefined();56 });57});58describe('MyComponent', () => {59 it('should be ok', () => {60 const component = MockRender(MyComponent);61 expect(component).toBeDefined();62 });63});64describe('MyComponent', () => {65 it('should be ok', () => {66 const component = MockRender(MyComponent, { detectChanges: false });67 expect(component
Using AI Code Generation
1var mock = ngMocks.defaultMock($http, 'get', 'test');2expect(mock).toBeDefined();3expect(mock).not.toBeNull();4var mock = jasmine.createSpyObj('$http', ['get']);5expect(mock).toBeDefined();6expect(mock).not.toBeNull();7var mock = sinon.mock($http);8expect(mock).toBeDefined();9expect(mock).not.toBeNull();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!