Skip to content

Commit

Permalink
perf: 更新流程图表
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Feb 20, 2022
1 parent be08732 commit 1ab3aef
Show file tree
Hide file tree
Showing 7,575 changed files with 3,532 additions and 2,830,295 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function add()
'folder',
'document',
'mind',
'flow',
'drawio',
'word',
'excel',
'ppt',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up()
{
Schema::table('web_socket_dialog_users', function (Blueprint $table) {
if (!Schema::hasColumn('web_socket_dialog_users', 'top_at')) {
$table->timestamp('top_at')->nullable()->after('top')->comment('置顶时间');
$table->timestamp('top_at')->nullable()->after('userid')->comment('置顶时间');
}
});
}
Expand Down
28 changes: 28 additions & 0 deletions database/migrations/2022_02_20_171030_files_update_type.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

use App\Models\File;
use Illuminate\Database\Migrations\Migration;

class FilesUpdateType extends Migration
{
/**
* 更改流程图文件类型
* @return void
*/
public function up()
{
File::whereType('flow')->update([
'type' => 'drawio'
]);
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
2 changes: 1 addition & 1 deletion database/seeders/FilesTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function run()
'pid' => 0,
'cid' => 0,
'name' => '流程图',
'type' => 'flow',
'type' => 'drawio',
'ext' => '',
'size' => 5418,
'userid' => 1,
Expand Down
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ services:
- php
- office
- fileview
- drawio
restart: unless-stopped

redis:
Expand Down Expand Up @@ -108,6 +109,35 @@ services:
ipv4_address: "${APP_IPPR}.7"
restart: unless-stopped

drawio:
container_name: "dootask-drawio-${APP_ID}"
image: "jgraph/drawio"
volumes:
- ./docker/drawio/index.html:/usr/local/tomcat/webapps/draw/index.html
- ./docker/drawio/js/app.min.js:/usr/local/tomcat/webapps/draw/js/app.min.js
networks:
extnetwork:
ipv4_address: "${APP_IPPR}.8"
depends_on:
- drawio-export
environment:
- EXPORT_URL=http://drawio-export:8000/
restart: unless-stopped

drawio-export:
container_name: "dootask-drawio-export-${APP_ID}"
image: "jgraph/export-server"
expose:
- "8000"
networks:
extnetwork:
ipv4_address: "${APP_IPPR}.9"
environment:
TZ: "Asia/Shanghai"
volumes:
- ./docker/drawio/fonts:/usr/share/fonts/drawio
restart: unless-stopped

networks:
extnetwork:
name: "dootask-networks-${APP_ID}"
Expand Down
1 change: 1 addition & 0 deletions docker/drawio/fonts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading

0 comments on commit 1ab3aef

Please sign in to comment.