@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

More tokens

Summary: Ref T11244. 8 more tokens. Probably need better math on the selector?

Test Plan: Award Dat Boi.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: putnam, Korvin

Maniphest Tasks: T11244

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

+99 -19
+5 -5
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => '55d9bb83', 10 + 'core.pkg.css' => '2fbe65a2', 11 11 'core.pkg.js' => 'f2139810', 12 12 'darkconsole.pkg.js' => 'e7393ebb', 13 13 'differential.pkg.css' => '3e81ae60', ··· 163 163 'rsrc/css/phui/workboards/phui-workpanel.css' => '92197373', 164 164 'rsrc/css/sprite-login.css' => '60e8560e', 165 165 'rsrc/css/sprite-menu.css' => '9dd65b92', 166 - 'rsrc/css/sprite-tokens.css' => '72b952bd', 166 + 'rsrc/css/sprite-tokens.css' => '9cdfd599', 167 167 'rsrc/css/syntax/syntax-default.css' => '9923583c', 168 168 'rsrc/externals/d3/d3.min.js' => 'a11a5ff2', 169 169 'rsrc/externals/font/aleo/aleo-bold.eot' => 'd3d3bed7', ··· 344 344 'rsrc/image/sprite-login.png' => '03d5af29', 345 345 'rsrc/image/sprite-menu-X2.png' => 'cfd8fca5', 346 346 'rsrc/image/sprite-menu.png' => 'd7a99faa', 347 - 'rsrc/image/sprite-tokens-X2.png' => 'e991bb40', 348 - 'rsrc/image/sprite-tokens.png' => 'fe69d6ab', 347 + 'rsrc/image/sprite-tokens-X2.png' => '804a5232', 348 + 'rsrc/image/sprite-tokens.png' => 'b41d03da', 349 349 'rsrc/image/texture/card-gradient.png' => '815f26e8', 350 350 'rsrc/image/texture/dark-menu-hover.png' => '5fa7ece8', 351 351 'rsrc/image/texture/dark-menu.png' => '7e22296e', ··· 888 888 'setup-issue-css' => 'db7e9c40', 889 889 'sprite-login-css' => '60e8560e', 890 890 'sprite-menu-css' => '9dd65b92', 891 - 'sprite-tokens-css' => '72b952bd', 891 + 'sprite-tokens-css' => '9cdfd599', 892 892 'syntax-default-css' => '9923583c', 893 893 'syntax-highlighting-css' => '769d3498', 894 894 'tokens-css' => '3d0f239e',
+40
resources/sprite/manifest/tokens.json
··· 21 21 "rule": ".tokens-coin-4", 22 22 "hash": "75832b7e42df9287b3c35c6afed12a93" 23 23 }, 24 + "tokens-emoji-1": { 25 + "name": "tokens-emoji-1", 26 + "rule": ".tokens-emoji-1", 27 + "hash": "17f57bdeb4078f9c05f1f037ccb1c162" 28 + }, 29 + "tokens-emoji-2": { 30 + "name": "tokens-emoji-2", 31 + "rule": ".tokens-emoji-2", 32 + "hash": "6877c6e0c63522d5819531aaf4aba787" 33 + }, 34 + "tokens-emoji-3": { 35 + "name": "tokens-emoji-3", 36 + "rule": ".tokens-emoji-3", 37 + "hash": "cc67534b0119d4cc385a93ed5aff86e4" 38 + }, 39 + "tokens-emoji-4": { 40 + "name": "tokens-emoji-4", 41 + "rule": ".tokens-emoji-4", 42 + "hash": "f2a6febd638670962dfb5fdd76b23cfb" 43 + }, 44 + "tokens-emoji-5": { 45 + "name": "tokens-emoji-5", 46 + "rule": ".tokens-emoji-5", 47 + "hash": "22bc23d162449fde492e0fd3eccc7301" 48 + }, 49 + "tokens-emoji-6": { 50 + "name": "tokens-emoji-6", 51 + "rule": ".tokens-emoji-6", 52 + "hash": "e3689840f410ff1bbf365f6b06043d3f" 53 + }, 54 + "tokens-emoji-7": { 55 + "name": "tokens-emoji-7", 56 + "rule": ".tokens-emoji-7", 57 + "hash": "a689b9fe7c9f6f300d757b5350e2cc4b" 58 + }, 59 + "tokens-emoji-8": { 60 + "name": "tokens-emoji-8", 61 + "rule": ".tokens-emoji-8", 62 + "hash": "26570ef132caea33307e1e7574d754e8" 63 + }, 24 64 "tokens-heart-1": { 25 65 "name": "tokens-heart-1", 26 66 "rule": ".tokens-heart-1",
resources/sprite/tokens_1x/emoji-1.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-2.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-3.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-4.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-5.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-6.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-7.png

This is a binary file and will not be displayed.

resources/sprite/tokens_1x/emoji-8.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-1.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-2.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-3.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-4.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-5.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-6.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-7.png

This is a binary file and will not be displayed.

resources/sprite/tokens_2x/emoji-8.png

This is a binary file and will not be displayed.

+1 -1
src/applications/tokens/controller/PhabricatorTokenGiveController.php
··· 90 90 $aural, 91 91 $token->renderIcon(), 92 92 )); 93 - if ((++$ii % 4) == 0) { 93 + if ((++$ii % 6) == 0) { 94 94 $buttons[] = phutil_tag('br'); 95 95 } 96 96 }
+8
src/applications/tokens/query/PhabricatorTokenQuery.php
··· 43 43 array('misc-2', pht('Evil Spooky Haunted Tree')), 44 44 array('misc-3', pht('Baby Tequila')), 45 45 array('misc-4', pht('The World Burns')), 46 + array('emoji-1', pht('100')), 47 + array('emoji-2', pht('Party Time')), 48 + array('emoji-3', pht('Y So Serious')), 49 + array('emoji-4', pht('Dat Boi')), 50 + array('emoji-5', pht('Cup of Joe')), 51 + array('emoji-6', pht('Hungry Hippo')), 52 + array('emoji-7', pht('Burninate')), 53 + array('emoji-8', pht('Pirate Logo')), 46 54 ); 47 55 48 56 $type = PhabricatorTokenTokenPHIDType::TYPECONST;
+45 -13
webroot/rsrc/css/sprite-tokens.css
··· 14 14 only screen and (min-resolution: 1.5dppx) { 15 15 .sprite-tokens { 16 16 background-image: url(/rsrc/image/sprite-tokens-X2.png); 17 - background-size: 76px 76px; 17 + background-size: 95px 95px; 18 18 } 19 19 } 20 20 ··· 35 35 background-position: -57px 0px; 36 36 } 37 37 38 - .tokens-heart-1 { 38 + .tokens-emoji-1 { 39 + background-position: -76px 0px; 40 + } 41 + 42 + .tokens-emoji-2 { 39 43 background-position: 0px -19px; 40 44 } 41 45 42 - .tokens-heart-2 { 46 + .tokens-emoji-3 { 43 47 background-position: -19px -19px; 44 48 } 45 49 46 - .tokens-like-1 { 50 + .tokens-emoji-4 { 47 51 background-position: -38px -19px; 48 52 } 49 53 50 - .tokens-like-2 { 54 + .tokens-emoji-5 { 51 55 background-position: -57px -19px; 52 56 } 53 57 54 - .tokens-medal-1 { 58 + .tokens-emoji-6 { 59 + background-position: -76px -19px; 60 + } 61 + 62 + .tokens-emoji-7 { 55 63 background-position: 0px -38px; 56 64 } 57 65 58 - .tokens-medal-2 { 66 + .tokens-emoji-8 { 59 67 background-position: -19px -38px; 60 68 } 61 69 62 - .tokens-medal-3 { 70 + .tokens-heart-1 { 63 71 background-position: -38px -38px; 64 72 } 65 73 66 - .tokens-medal-4 { 74 + .tokens-heart-2 { 67 75 background-position: -57px -38px; 68 76 } 69 77 70 - .tokens-misc-1 { 78 + .tokens-like-1 { 79 + background-position: -76px -38px; 80 + } 81 + 82 + .tokens-like-2 { 71 83 background-position: 0px -57px; 72 84 } 73 85 86 + .tokens-medal-1 { 87 + background-position: -19px -57px; 88 + } 89 + 90 + .tokens-medal-2 { 91 + background-position: -38px -57px; 92 + } 93 + 94 + .tokens-medal-3 { 95 + background-position: -57px -57px; 96 + } 97 + 98 + .tokens-medal-4 { 99 + background-position: -76px -57px; 100 + } 101 + 102 + .tokens-misc-1 { 103 + background-position: 0px -76px; 104 + } 105 + 74 106 .tokens-misc-2 { 75 - background-position: -19px -57px; 107 + background-position: -19px -76px; 76 108 } 77 109 78 110 .tokens-misc-3 { 79 - background-position: -38px -57px; 111 + background-position: -38px -76px; 80 112 } 81 113 82 114 .tokens-misc-4 { 83 - background-position: -57px -57px; 115 + background-position: -57px -76px; 84 116 }
webroot/rsrc/image/sprite-tokens-X2.png

This is a binary file and will not be displayed.

webroot/rsrc/image/sprite-tokens.png

This is a binary file and will not be displayed.