Skip to content

Commit 67d9e24

Browse files
committed
Merge branch 'master' into release
Also updated assets, Version number
2 parents 3903fda + 314d98a commit 67d9e24

File tree

109 files changed

+2156
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+2156
-454
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public function boot()
2323
\Blade::directive('icon', function($expression) {
2424
return "<?php echo icon($expression); ?>";
2525
});
26+
27+
// Allow longer string lengths after upgrade to utf8mb4
28+
\Schema::defaultStringLength(191);
2629
}
2730

2831
/**

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*/
5959

6060
'locale' => env('APP_LANG', 'en'),
61-
'locales' => ['en', 'de', 'es', 'fr', 'nl', 'pt_BR', 'sk'],
61+
'locales' => ['en', 'de', 'es', 'fr', 'nl', 'pt_BR', 'sk', 'ja'],
6262

6363
/*
6464
|--------------------------------------------------------------------------

config/database.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
}
1717
}
1818

19+
$mysql_host = env('DB_HOST', 'localhost');
20+
$mysql_host_exploded = explode(':', $mysql_host);
21+
$mysql_port = env('DB_PORT', 3306);
22+
if (count($mysql_host_exploded) > 1) {
23+
$mysql_host = $mysql_host_exploded[0];
24+
$mysql_port = intval($mysql_host_exploded[1]);
25+
}
26+
1927
return [
2028

2129
/*
@@ -70,12 +78,13 @@
7078

7179
'mysql' => [
7280
'driver' => 'mysql',
73-
'host' => env('DB_HOST', 'localhost'),
81+
'host' => $mysql_host,
7482
'database' => env('DB_DATABASE', 'forge'),
7583
'username' => env('DB_USERNAME', 'forge'),
7684
'password' => env('DB_PASSWORD', ''),
77-
'charset' => 'utf8',
78-
'collation' => 'utf8_unicode_ci',
85+
'port' => $mysql_port,
86+
'charset' => 'utf8mb4',
87+
'collation' => 'utf8mb4_unicode_ci',
7988
'prefix' => '',
8089
'strict' => false,
8190
],
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class UpdateDbEncodingToUt8mb4 extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
$database = DB::getDatabaseName();
17+
$tables = DB::select('SHOW TABLES');
18+
$pdo = DB::getPdo();
19+
$pdo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
20+
$pdo->exec('ALTER DATABASE `'.$database.'` CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci');
21+
$key = 'Tables_in_' . $database;
22+
foreach ($tables as $table) {
23+
$tableName = $table->$key;
24+
$pdo->exec('ALTER TABLE `'.$tableName.'` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci');
25+
}
26+
}
27+
28+
/**
29+
* Reverse the migrations.
30+
*
31+
* @return void
32+
*/
33+
public function down()
34+
{
35+
$database = DB::getDatabaseName();
36+
$tables = DB::select('SHOW TABLES');
37+
$pdo = DB::getPdo();
38+
$pdo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
39+
$pdo->exec('ALTER DATABASE `'.$database.'` CHARACTER SET utf8 COLLATE utf8_unicode_ci');
40+
$key = 'Tables_in_' . $database;
41+
foreach ($tables as $table) {
42+
$tableName = $table->$key;
43+
$pdo->exec('ALTER TABLE `'.$tableName.'` CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci');
44+
}
45+
}
46+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"axios": "^0.16.1",
3232
"babel-preset-es2015": "^6.24.1",
3333
"clipboard": "^1.5.16",
34+
"codemirror": "^5.26.0",
3435
"dropzone": "^4.0.1",
3536
"gulp-util": "^3.0.8",
3637
"markdown-it": "^8.3.1",

public/css/export-styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/common.js

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

public/libs/highlightjs/highlight.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/libs/tinymce/license.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
GNU LESSER GENERAL PUBLIC LICENSE
2-
Version 2.1, February 1999
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 2.1, February 1999
33

44
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
55
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -10,7 +10,7 @@
1010
as the successor of the GNU Library Public License, version 2, hence
1111
the version number 2.1.]
1212

13-
Preamble
13+
Preamble
1414

1515
The licenses for most software are designed to take away your
1616
freedom to share and change it. By contrast, the GNU General Public
@@ -112,7 +112,7 @@ modification follow. Pay close attention to the difference between a
112112
former contains code derived from the library, whereas the latter must
113113
be combined with the library in order to run.
114114

115-
GNU LESSER GENERAL PUBLIC LICENSE
115+
GNU LESSER GENERAL PUBLIC LICENSE
116116
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117117

118118
0. This License Agreement applies to any software library or other
@@ -432,7 +432,7 @@ decision will be guided by the two goals of preserving the free status
432432
of all derivatives of our free software and of promoting the sharing
433433
and reuse of software generally.
434434

435-
NO WARRANTY
435+
NO WARRANTY
436436

437437
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
438438
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@@ -455,7 +455,7 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
455455
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
456456
DAMAGES.
457457

458-
END OF TERMS AND CONDITIONS
458+
END OF TERMS AND CONDITIONS
459459

460460
How to Apply These Terms to Your New Libraries
461461

0 commit comments

Comments
 (0)