Skip to content

Commit ce2c904

Browse files
authored
Merge pull request #100 from phpdocker-io/dev
Moar alpine, MySQL 8 and generator checkbox toggles
2 parents a52d4f4 + f617c09 commit ce2c904

File tree

11 files changed

+57
-51
lines changed

11 files changed

+57
-51
lines changed

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"jquery": "^2.2.2",
1919
"jquery-ui": "^1.11.4",
2020
"share-button": "^1.0.3",
21-
"font-awesome": "fontawesome#^4.5.0"
21+
"font-awesome": "fontawesome#^4.5.0",
22+
"bootstrap-toggle": "^2.2.2"
2223
}
2324
}

composer.lock

Lines changed: 37 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
version: "3.1"
55
services:
66
memcached:
7-
image: phpdockerio/memcached:latest
7+
image: memcached:alpine
88
container_name: phpdocker-io-memcached
99

1010
mailhog:
11-
image: phpdockerio/mailhog:latest
11+
image: mailhog/mailhog:latest
1212
container_name: phpdocker-io-mailhog
1313
ports:
1414
- "10001:8025"
@@ -23,7 +23,7 @@ services:
2323
- MYSQL_PASSWORD=password
2424

2525
webserver:
26-
image: phpdockerio/nginx:latest
26+
image: nginx:alpine
2727
container_name: phpdocker-io-webserver
2828
volumes:
2929
- .:/var/www/phpdocker-io

src/AppBundle/Entity/Generator/MySQLOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MySQLOptions extends MySQL
3535
* @Assert\NotNull(groups={"mysqlOptions"})
3636
* @Assert\Length(min=1, max=128)
3737
*/
38-
protected $version = self::VERSION_57;
38+
protected $version = self::VERSION_80;
3939

4040
/**
4141
* @var string

src/AppBundle/Resources/public/js/main-form.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,9 @@ function doMainFormMagic() {
132132

133133
ga('send', 'event', 'builder-form', 'form-submission');
134134
});
135+
136+
// Bootstrap toggles
137+
$('#generator div.checkbox input[type=checkbox]').bootstrapToggle({
138+
size: 'small'
139+
});
135140
};

src/AppBundle/Resources/views/layout.html.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
{% stylesheets
3131
'@AppBundle/Resources/public/css/*.css'
3232
'@AppBundle/Resources/public/vendor/bootstrap-multiselect/dist/css/bootstrap-multiselect.css'
33+
'@AppBundle/Resources/public/vendor/bootstrap-toggle/css/bootstrap-toggle.css'
3334
'@AppBundle/Resources/public/vendor/jquery-ui/themes/smoothness/jquery-ui.min.css' %}
3435
<link rel="stylesheet" href="{{ asset_url }}"/>
3536
{% endstylesheets %}
@@ -91,6 +92,7 @@
9192
'@AppBundle/Resources/public/vendor/bootstrap/dist/js/bootstrap.min.js'
9293
'@AppBundle/Resources/public/vendor/jquery-ui/jquery-ui.min.js'
9394
'@AppBundle/Resources/public/vendor/bootstrap-multiselect/dist/js/bootstrap-multiselect.js'
95+
'@AppBundle/Resources/public/vendor/bootstrap-toggle/js/bootstrap-toggle.js'
9496
'@AppBundle/Resources/public/vendor/share-button/share-button.js'
9597
'@AppBundle/Resources/public/js/*' %}
9698
<script src="{{ asset_url }}"></script>

src/PHPDocker/Project/ServiceOptions/MySQL.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ class MySQL extends AbstractMySQL
3131
protected const VERSION_55 = '5.5';
3232
protected const VERSION_56 = '5.6';
3333
protected const VERSION_57 = '5.7';
34+
protected const VERSION_80 = '8.0';
3435

3536
protected const ALLOWED_VERSIONS = [
37+
self::VERSION_80 => '8.0.x',
3638
self::VERSION_57 => '5.7.x',
3739
self::VERSION_56 => '5.6.x',
3840
self::VERSION_55 => '5.5.x',
@@ -43,7 +45,7 @@ class MySQL extends AbstractMySQL
4345
*/
4446
public function __construct()
4547
{
46-
$this->version = self::VERSION_57;
48+
$this->version = self::VERSION_80;
4749
}
4850

4951
/**

src/PHPDocker/Template/docker-compose-fragments/mailhog.yml.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% if mailhogContainerName %}
22
mailhog:
3-
image: phpdockerio/mailhog:latest
3+
image: mailhog/mailhog:latest
44
container_name: {{ mailhogContainerName }}
55
ports:
66
- "{{ mailhogPort }}:8025"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if memcachedContainerName %}
22
memcached:
3-
image: phpdockerio/memcached:latest
3+
image: memcached:alpine
44
container_name: {{ memcachedContainerName }}
55
{% endif %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if redisContainerName %}
22
redis:
3-
image: phpdockerio/redis:latest
3+
image: redis:alpine
44
container_name: {{ redisContainerName }}
55
{% endif %}

0 commit comments

Comments
 (0)