@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.

I guess this can support JS too.

+13 -1
+13 -1
scripts/celerity_mapper.php
··· 111 111 $package_map = array(); 112 112 foreach ($package_spec as $name => $package) { 113 113 $hashes = array(); 114 + $type = null; 114 115 foreach ($package as $symbol) { 115 116 if (empty($hash_map[$symbol])) { 116 117 throw new Exception( 117 118 "Package specification for '{$name}' includes '{$symbol}', but that ". 118 119 "symbol is not defined anywhere."); 119 120 } 121 + if ($type === null) { 122 + $type = $runtime_map[$symbol]['type']; 123 + } else { 124 + $ntype = $runtime_map[$symbol]['type']; 125 + if ($type !== $ntype) { 126 + throw new Exception( 127 + "Package specification for '{$name}' mixes resources of type ". 128 + "'{$type}' with resources of type '{$ntype}'. Each package may only ". 129 + "contain one type of resource."); 130 + } 131 + } 120 132 $hashes[] = $symbol.':'.$hash_map[$symbol]; 121 133 } 122 134 $key = substr(md5(implode("\n", $hashes)), 0, 8); ··· 124 136 'name' => $name, 125 137 'symbols' => $package, 126 138 'uri' => '/res/pkg/'.$key.'/'.$name, 127 - 'type' => 'css', // TODO LOL 139 + 'type' => $type, 128 140 ); 129 141 foreach ($package as $symbol) { 130 142 $package_map['reverse'][$symbol] = $key;