Skip to content

Commit

Permalink
Merge branch 'dev' into dev_terminal_split
Browse files Browse the repository at this point in the history
  • Loading branch information
pobu168 committed Jan 7, 2025
2 parents 95a81ae + 14f3066 commit 725e508
Show file tree
Hide file tree
Showing 8 changed files with 19,776 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ api/terminal/build/*
# ui
ui/node_modules
ui/dist
ui/.env
ui/vue.config.js
2 changes: 1 addition & 1 deletion api/terminal/etc/gunicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bind = '%s:%d' % (CONF.server.bind, CONF.server.port)
backlog = CONF.server.backlog
# 超时
timeout = 30
timeout = 30*60
# 进程数
workers = max(multiprocessing.cpu_count() * 2, 8)
# 指定每个进程开启的线程数
Expand Down
2 changes: 1 addition & 1 deletion api/terminal/terminal/common/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def parse_url(url):

def upload_file(self, bucket, object_key, filepath):
endpoint_info = self.parse_url(self.endpoint)
client = minio.Minio(self.endpoint, self.access_key, self.secret_key, secure=endpoint_info['secure'])
client = minio.Minio(endpoint_info['host'], self.access_key, self.secret_key, secure=endpoint_info['secure'])
return client.fput_object(bucket, object_key, filepath)

def download_file(self, url, filepath):
Expand Down
5 changes: 4 additions & 1 deletion api/terminal/terminal/server/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ def upload(session_id, filepath, endpoint, ak, sk, bucket, object_key):
if not os.path.exists(filepath):
return
client = s3.S3Client(endpoint, ak, sk)
fullurl = '/'.join(['http://' + endpoint.rstrip('/'), bucket, object_key])
urlprefix = endpoint.rstrip('/')
if not urlprefix.startswith('http'):
urlprefix = 'http://' + urlprefix
fullurl = '/'.join([urlprefix, bucket, object_key])
try:
client.upload_file(bucket, object_key, filepath)
resource.SessionRecord().update(session_id, {'filepath': fullurl})
Expand Down
19,796 changes: 19,762 additions & 34 deletions ui/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"rimraf": "^2.6.0",
"sass": "^1.77.5",
"sass-loader": "^7.1.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"semver": "^5.7.2",
"shelljs": "^0.8.5",
"style-resources-loader": "^1.3.2",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^1.1.2",
Expand Down
6 changes: 4 additions & 2 deletions ui/src/pages/components/table-page/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ export default {
margin: 2px 4px;
line-height: 18px;
}
.multiFilter ::deep.ivu-checkbox-group-item {
.multiFilter ::v-deep .ivu-checkbox-group-item {
display: block;
padding: 0 16px;
margin: 0;
Expand Down Expand Up @@ -1114,9 +1114,11 @@ export default {
.cell {
overflow: hidden;
}
::deep .ivu-tooltip-rel {
/deep/ .ivu-tooltip-rel {
display: block;
}
.poplableSty {
// max-width: 150px;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion ui/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const CompressionPlugin = require('compression-webpack-plugin')
const path = require('path')
const baseUrl = ''
const baseUrl = process.env.TARGET
module.exports = {
devServer: {
// hot: true,
Expand Down

0 comments on commit 725e508

Please sign in to comment.