<b-table
ref="selectableTable"
selectable
:select-mode="selectMode"
:items="items"
:fields="fields"
@row-clicked="onRowClicked" <!-- вот здесь наш обработчик -->
responsive="sm"
>
onRowClicked(item, index, event) {
if (!item.isActive) {
this.$nextTick(function() {
this.$refs.selectableTable.unselectRow(index);
});
}
},
let procent = { email : false, phone : false, mail : true };
for(var i in procent){!procent[i] && delete(procent[i])};
// теперь здесь только true
console.log(procent);
if (isset($_COOKIE['redirect_cookie']))
$url = $_COOKIE['redirect_cookie'];
else {
$pages = ['http://yandex.ru', 'http://google.ru'];
$redirect = $pages[array_rand($pages)];
SetCookie("redirect_cookie", $redirect, time() + 3600);
$url = $redirect;
}
header('Location: ' . $url);
if (!isset($_COOKIE['redirect_cookie'])) {
$pages = ['http://yandex.ru', 'http://google.ru'];
$redirect = $pages[array_rand($pages)];
SetCookie("redirect_cookie", $redirect, time() + 3600);
}
header('Location: ' . $_COOKIE['redirect_cookie']);
version: '2.0'
services:
rabbitmq:
image: 'bitnami/rabbitmq:latest'
nginx:
image: nginx:latest
ports:
- "8000:80"
volumes:
- ./hosts:/etc/nginx/conf.d
- ./www:/var/www
- ./logs:/var/log/nginx
# nginx должен общаться с php контейнером
links:
- php
php:
build: ./images/php
links:
- mysql
- rabbitmq
volumes:
- ./www:/var/www
mysql:
image: mariadb
ports:
- "3306:3306"
volumes:
- ./mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: secret
environment:
PMA_HOST: mysql
MYSQL_USERNAME: root
MYSQL_ROOT_PASSWORD: secret
php:
build: ./images/php
links:
- mysql
volumes:
- ./www:/var/www
version: '2'
networks:
app-tier:
driver: bridge
services:
rabbitmq:
image: 'bitnami/rabbitmq:latest'
networks:
- app-tier
myapp:
image: 'YOUR_APPLICATION_IMAGE'
networks:
- app-tier
image: 'YOUR_APPLICATION_IMAGE'