This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- DROP function test2; | |
CREATE OR REPLACE FUNCTION test2() RETURNS void AS $$ | |
DECLARE | |
siteId integer; | |
attributeId int; | |
enumId int; | |
BEGIN | |
FOR siteId IN select id from site LOOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.threads.aggregate([ | |
{ | |
"$match": { | |
"$text": { | |
"$search": "modx" | |
} | |
} | |
}, | |
{ | |
"$facet":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.threads.aggregate([ | |
{ | |
"$match": { | |
"ci": { | |
"$in": [ObjectId("60fefc1f535ed8596d08c151"), ObjectId("6102e3c4535ed8596d3723da"), ObjectId("612163ca535ed8596dd57732"), ObjectId("61216d9a535ed8596dd5d3a0"), ObjectId("6121762d535ed8596dd61f13"), ObjectId("6121d19d535ed8596dd8c7e8"), ObjectId("6121f226535ed8596dd9b0da"), ObjectId("6121f282535ed8596dd9b386"), ObjectId("61227509535ed8596dde2d40"), ObjectId("61227a35535ed8596dde637d"), ObjectId("61227ed2535ed8596ddea2d1"), ObjectId("6122b672535ed8596d0bda85"), ObjectId("612385b8535ed8596d56e6a9"), ObjectId("6124099c535ed8596d5bd76a"), ObjectId("61311e2a535ed8596dc35295"), ObjectId("61312b78535ed8596dc4a781"), ObjectId("61312e75535ed8596dc4eb72"), ObjectId("61313c49535ed8596dc6c06b"), ObjectId("61313d82535ed8596dc6eb85"), ObjectId("6131420c535ed8596dc77e46"), ObjectId("6132851f535ed8596deabc01"), ObjectId("6133e0fe535ed8596d1800a1"), ObjectId("6133e4f6535ed8596d185541"), ObjectId("6133e5c8535ed8596d1867fa"), ObjectId("6133e948535ed8596d18bd9c"), O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.threads | |
//.explain("executionStats") | |
.aggregate([ | |
{ | |
"$match": { | |
"ci": { | |
"$in": [ | |
ObjectId("60fefc1f535ed8596d08c151"), | |
ObjectId("6102e3c4535ed8596d3723da"), | |
ObjectId("612163ca535ed8596dd57732"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Suspense, useEffect, useMemo, useRef, useState} from "react"; | |
import ReactDOM from 'react-dom'; | |
import Slider from "react-slick"; | |
import CardBig from "../Catalog/CardBig"; | |
import {default as axios} from "axios"; | |
import {connect, useSelector} from "react-redux"; | |
import Test from "../Test"; | |
import Context from './../../Context' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//картинка и превю маленькое | |
'thumb' => [ | |
'type' => 'thumb', | |
'image' => 'image', | |
'actions' => ['del', 'edit'], | |
'attr' => 'style="width:60px; float:left;"' | |
], | |
'image' => [ | |
'type' => 'image', | |
'thumb' => 'thumb', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (empty($user)) { | |
return; | |
} | |
$totalPrice = $commerce->getCart()->getTotal(); | |
$sales = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = $params['data']['id']; | |
$document = \DocumentManager::get($id); | |
$tvs = $document->getTvAttribute()->pluck('value','name')->toArray(); | |
$mfContent = json_decode($tvs['mf_content'],true); | |
if(!function_exists('parseContent')){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SiteContent | |
{ | |
public function scopeWithTVs($query, $tvList = array(), $sep = ':', $tree = false) | |
{ | |
$main_table = 'site_content'; | |
if ($tree) { | |
$main_table = 't2'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# basic script, before use need change logins,passwords in this script | |
# put this script in project folder and run: sh evo.sh | |
## vova krasavchyk | |
#variables | |
EVO_VERSION="3.x-dev" | |
INSTALL_TYPE=1 | |
DATABASE_TYPE="mysql" |
NewerOlder