Commit 84df1072cfcc29c0c49d5f68526c85a3752d8bc4
Merge branch 'fix/DEFECT-1406' into 'main_dev'
fix: 隐藏github,gitlab,oneDrive按钮 See merge request yunteng/thingskit-scada!92
Showing
1 changed file
with
43 additions
and
43 deletions
@@ -5478,58 +5478,58 @@ var LinkDialog = function(editorUi, initialValue, btnLabel, fn, showPages, showN | @@ -5478,58 +5478,58 @@ var LinkDialog = function(editorUi, initialValue, btnLabel, fn, showPages, showN | ||
5478 | 5478 | ||
5479 | if (editorUi.oneDrive != null) | 5479 | if (editorUi.oneDrive != null) |
5480 | { | 5480 | { |
5481 | - addButton(IMAGE_PATH + '/onedrive-logo.svg', mxResources.get('oneDrive'), function() | ||
5482 | - { | ||
5483 | - editorUi.oneDrive.pickFile(function(id, files) | ||
5484 | - { | ||
5485 | - linkInput.value = files.value[0].webUrl; | ||
5486 | - linkInput.focus(); | ||
5487 | - }, true); | ||
5488 | - }); | 5481 | + // addButton(IMAGE_PATH + '/onedrive-logo.svg', mxResources.get('oneDrive'), function() |
5482 | + // { | ||
5483 | + // editorUi.oneDrive.pickFile(function(id, files) | ||
5484 | + // { | ||
5485 | + // linkInput.value = files.value[0].webUrl; | ||
5486 | + // linkInput.focus(); | ||
5487 | + // }, true); | ||
5488 | + // }); | ||
5489 | } | 5489 | } |
5490 | 5490 | ||
5491 | if (editorUi.gitHub != null) | 5491 | if (editorUi.gitHub != null) |
5492 | { | 5492 | { |
5493 | - addButton(IMAGE_PATH + '/github-logo.svg', mxResources.get('github'), function() | ||
5494 | - { | ||
5495 | - editorUi.gitHub.pickFile(function(path) | ||
5496 | - { | ||
5497 | - if (path != null) | ||
5498 | - { | ||
5499 | - var tokens = path.split('/'); | ||
5500 | - var org = tokens[0]; | ||
5501 | - var repo = tokens[1]; | ||
5502 | - var ref = tokens[2]; | ||
5503 | - var path = tokens.slice(3, tokens.length).join('/'); | 5493 | + // addButton(IMAGE_PATH + '/github-logo.svg', mxResources.get('github'), function() |
5494 | + // { | ||
5495 | + // editorUi.gitHub.pickFile(function(path) | ||
5496 | + // { | ||
5497 | + // if (path != null) | ||
5498 | + // { | ||
5499 | + // var tokens = path.split('/'); | ||
5500 | + // var org = tokens[0]; | ||
5501 | + // var repo = tokens[1]; | ||
5502 | + // var ref = tokens[2]; | ||
5503 | + // var path = tokens.slice(3, tokens.length).join('/'); | ||
5504 | 5504 | ||
5505 | - linkInput.value = 'https://github.com/' + org + '/' + | ||
5506 | - repo + '/blob/' + ref + '/' + path; | ||
5507 | - linkInput.focus(); | ||
5508 | - } | ||
5509 | - }); | ||
5510 | - }); | 5505 | + // linkInput.value = 'https://github.com/' + org + '/' + |
5506 | + // repo + '/blob/' + ref + '/' + path; | ||
5507 | + // linkInput.focus(); | ||
5508 | + // } | ||
5509 | + // }); | ||
5510 | + // }); | ||
5511 | } | 5511 | } |
5512 | 5512 | ||
5513 | if (editorUi.gitLab != null) | 5513 | if (editorUi.gitLab != null) |
5514 | { | 5514 | { |
5515 | - addButton(IMAGE_PATH + '/gitlab-logo.svg', mxResources.get('gitlab'), function() | ||
5516 | - { | ||
5517 | - editorUi.gitLab.pickFile(function(path) | ||
5518 | - { | ||
5519 | - if (path != null) | ||
5520 | - { | ||
5521 | - var tokens = path.split('/'); | ||
5522 | - var org = tokens[0]; | ||
5523 | - var repo = tokens[1]; | ||
5524 | - var ref = tokens[2]; | ||
5525 | - var path = tokens.slice(3, tokens.length).join('/'); | ||
5526 | - | ||
5527 | - linkInput.value = DRAWIO_GITLAB_URL + '/' + org + '/' + | ||
5528 | - repo + '/blob/' + ref + '/' + path; | ||
5529 | - linkInput.focus(); | ||
5530 | - } | ||
5531 | - }); | ||
5532 | - }); | 5515 | + // addButton(IMAGE_PATH + '/gitlab-logo.svg', mxResources.get('gitlab'), function() |
5516 | + // { | ||
5517 | + // editorUi.gitLab.pickFile(function(path) | ||
5518 | + // { | ||
5519 | + // if (path != null) | ||
5520 | + // { | ||
5521 | + // var tokens = path.split('/'); | ||
5522 | + // var org = tokens[0]; | ||
5523 | + // var repo = tokens[1]; | ||
5524 | + // var ref = tokens[2]; | ||
5525 | + // var path = tokens.slice(3, tokens.length).join('/'); | ||
5526 | + | ||
5527 | + // linkInput.value = DRAWIO_GITLAB_URL + '/' + org + '/' + | ||
5528 | + // repo + '/blob/' + ref + '/' + path; | ||
5529 | + // linkInput.focus(); | ||
5530 | + // } | ||
5531 | + // }); | ||
5532 | + // }); | ||
5533 | } | 5533 | } |
5534 | 5534 | ||
5535 | //TODO should Trello support this? | 5535 | //TODO should Trello support this? |