@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove obsoleted "diffusion-browse-file" behavior for coverage

Summary: Ref T13105. After moving Diffusion to DocumnentEngine, this no longer has callers. It will become part of the document behavior.

Test Plan: Grepped for calls to the `diffusion-browse-file` behavior, found none.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13105

Differential Revision: https://secure.phabricator.com/D19377

-55
-8
resources/celerity/map.php
··· 384 384 'rsrc/js/application/diffusion/behavior-audit-preview.js' => 'd835b03a', 385 385 'rsrc/js/application/diffusion/behavior-commit-branches.js' => 'bdaf4d04', 386 386 'rsrc/js/application/diffusion/behavior-commit-graph.js' => '75b83cbb', 387 - 'rsrc/js/application/diffusion/behavior-diffusion-browse-file.js' => '054a0f0b', 388 387 'rsrc/js/application/diffusion/behavior-locate-file.js' => '6d3e1947', 389 388 'rsrc/js/application/diffusion/behavior-pull-lastmodified.js' => 'f01586dc', 390 389 'rsrc/js/application/doorkeeper/behavior-doorkeeper-tag.js' => '1db13e70', ··· 597 596 'javelin-behavior-differential-feedback-preview' => '51c5ad07', 598 597 'javelin-behavior-differential-populate' => '419998ab', 599 598 'javelin-behavior-differential-user-select' => 'a8d8459d', 600 - 'javelin-behavior-diffusion-browse-file' => '054a0f0b', 601 599 'javelin-behavior-diffusion-commit-branches' => 'bdaf4d04', 602 600 'javelin-behavior-diffusion-commit-graph' => '75b83cbb', 603 601 'javelin-behavior-diffusion-locate-file' => '6d3e1947', ··· 931 929 '05270951' => array( 932 930 'javelin-util', 933 931 'javelin-magical-init', 934 - ), 935 - '054a0f0b' => array( 936 - 'javelin-behavior', 937 - 'javelin-dom', 938 - 'javelin-util', 939 - 'phabricator-tooltip', 940 932 ), 941 933 '065227cc' => array( 942 934 'javelin-behavior',
-47
webroot/rsrc/js/application/diffusion/behavior-diffusion-browse-file.js
··· 1 - /** 2 - * @provides javelin-behavior-diffusion-browse-file 3 - * @requires javelin-behavior 4 - * javelin-dom 5 - * javelin-util 6 - * phabricator-tooltip 7 - */ 8 - 9 - JX.behavior('diffusion-browse-file', function(config, statics) { 10 - if (statics.installed) { 11 - return; 12 - } 13 - statics.installed = true; 14 - 15 - var map = config.labels; 16 - 17 - JX.Stratcom.listen( 18 - ['mouseover', 'mouseout'], 19 - ['phabricator-source', 'tag:td'], 20 - function(e) { 21 - var target = e.getTarget(); 22 - 23 - // NOTE: We're using raw classnames instead of sigils and metadata here 24 - // because these elements are unusual: there are a lot of them on the 25 - // page, and rendering all the extra metadata to do this in a normal way 26 - // would be needlessly expensive. This is an unusual case. 27 - 28 - if (!target.className.match(/cov-/)) { 29 - return; 30 - } 31 - 32 - if (e.getType() == 'mouseout') { 33 - JX.Tooltip.hide(); 34 - return; 35 - } 36 - 37 - for (var k in map) { 38 - if (!target.className.match(k)) { 39 - continue; 40 - } 41 - 42 - var label = map[k]; 43 - JX.Tooltip.show(target, 300, 'E', label); 44 - break; 45 - } 46 - }); 47 - });