Better looks and css for welcome.html. For reference, __celerity_resource_map__.php

was updated with this command.

./scripts/celerity_mapper.php --with-custom webroot
This commit is contained in:
2013-11-06 02:08:28 +01:00
committed by Sergey Sharybin
parent e12d2efe81
commit 01398f762b
5 changed files with 202 additions and 135 deletions

View File

@@ -81,6 +81,8 @@ $package_spec = array(
'phabricator-jump-nav',
'phabricator-welcome-page',
'phabricator-remarkup-css',
'syntax-highlighting-css',
'aphront-pager-view-css',

View File

@@ -7,6 +7,13 @@
*/
celerity_register_resource_map(array(
'/rsrc/custom/image/blender_logo.png' =>
array(
'hash' => '098abd520f2ba8d1370299e7e4e01758',
'uri' => '/res/098abd52/rsrc/custom/image/blender_logo.png',
'disk' => '/rsrc/custom/image/blender_logo.png',
'type' => 'png',
),
'/rsrc/image/actions/edit.png' =>
array(
'hash' => 'ae90914d120ac3838ddc633b480343f3',
@@ -569,22 +576,22 @@ celerity_register_resource_map(array(
),
'/rsrc/image/sprite-apps-X2.png' =>
array(
'hash' => '68bbb3f409d0eb42d65dd94769813044',
'uri' => '/res/68bbb3f4/rsrc/image/sprite-apps-X2.png',
'hash' => '67e8a6bf2d7fbb0b7961f1a0dcf8592b',
'uri' => '/res/67e8a6bf/rsrc/image/sprite-apps-X2.png',
'disk' => '/rsrc/image/sprite-apps-X2.png',
'type' => 'png',
),
'/rsrc/image/sprite-apps-large-X2.png' =>
array(
'hash' => '15368afbac0e1402c20f99f3166cdb11',
'uri' => '/res/15368afb/rsrc/image/sprite-apps-large-X2.png',
'hash' => '9bed1778022e2bd25d658842be54844d',
'uri' => '/res/9bed1778/rsrc/image/sprite-apps-large-X2.png',
'disk' => '/rsrc/image/sprite-apps-large-X2.png',
'type' => 'png',
),
'/rsrc/image/sprite-apps-large.png' =>
array(
'hash' => 'b1f1de55803cf22eb3beb391fff17b04',
'uri' => '/res/b1f1de55/rsrc/image/sprite-apps-large.png',
'hash' => '518d6e5487c8d3758921ad85c1bb7d60',
'uri' => '/res/518d6e54/rsrc/image/sprite-apps-large.png',
'disk' => '/rsrc/image/sprite-apps-large.png',
'type' => 'png',
),
@@ -597,8 +604,8 @@ celerity_register_resource_map(array(
),
'/rsrc/image/sprite-apps.png' =>
array(
'hash' => 'bf7feaae848d44a461e63123c28e402f',
'uri' => '/res/bf7feaae/rsrc/image/sprite-apps.png',
'hash' => '9024ab95247f936f41c0b51c75e2e228',
'uri' => '/res/9024ab95/rsrc/image/sprite-apps.png',
'disk' => '/rsrc/image/sprite-apps.png',
'type' => 'png',
),
@@ -3352,7 +3359,7 @@ celerity_register_resource_map(array(
),
'phabricator-main-menu-view' =>
array(
'uri' => '/res/95ff522a/rsrc/css/application/base/main-menu-view.css',
'uri' => '/res/f45115e5/rsrc/css/application/base/main-menu-view.css',
'type' => 'css',
'requires' =>
array(
@@ -3735,6 +3742,15 @@ celerity_register_resource_map(array(
),
'disk' => '/rsrc/js/application/uiexample/ReactorSendPropertiesExample.js',
),
'phabricator-welcome-page' =>
array(
'uri' => '/res/c7e1ddad/rsrc/custom/css/phabricator-welcome-page.css',
'type' => 'css',
'requires' =>
array(
),
'disk' => '/rsrc/custom/css/phabricator-welcome-page.css',
),
'phabricator-zindex-css' =>
array(
'uri' => '/res/b443d508/rsrc/css/core/z-index.css',
@@ -3868,7 +3884,7 @@ celerity_register_resource_map(array(
),
'phui-form-view-css' =>
array(
'uri' => '/res/3621b05d/rsrc/css/phui/phui-form-view.css',
'uri' => '/res/18392610/rsrc/css/phui/phui-form-view.css',
'type' => 'css',
'requires' =>
array(
@@ -4183,7 +4199,7 @@ celerity_register_resource_map(array(
),
'sprite-apps-css' =>
array(
'uri' => '/res/37c55e75/rsrc/css/sprite-apps.css',
'uri' => '/res/774f4bad/rsrc/css/sprite-apps.css',
'type' => 'css',
'requires' =>
array(
@@ -4192,7 +4208,7 @@ celerity_register_resource_map(array(
),
'sprite-apps-large-css' =>
array(
'uri' => '/res/8ddded36/rsrc/css/sprite-apps-large.css',
'uri' => '/res/b547fab1/rsrc/css/sprite-apps-large.css',
'type' => 'css',
'requires' =>
array(
@@ -4255,7 +4271,7 @@ celerity_register_resource_map(array(
),
'sprite-menu-css' =>
array(
'uri' => '/res/764ab039/rsrc/css/sprite-menu.css',
'uri' => '/res/05b9ad87/rsrc/css/sprite-menu.css',
'type' => 'css',
'requires' =>
array(
@@ -4328,7 +4344,7 @@ celerity_register_resource_map(array(
), array(
'packages' =>
array(
'f350af41' =>
'650e555b' =>
array(
'name' => 'core.pkg.css',
'symbols' =>
@@ -4345,39 +4361,40 @@ celerity_register_resource_map(array(
9 => 'aphront-typeahead-control-css',
10 => 'aphront-list-filter-view-css',
11 => 'phabricator-jump-nav',
12 => 'phabricator-remarkup-css',
13 => 'syntax-highlighting-css',
14 => 'aphront-pager-view-css',
15 => 'phabricator-transaction-view-css',
16 => 'aphront-tooltip-css',
17 => 'phabricator-flag-css',
18 => 'aphront-error-view-css',
19 => 'sprite-icons-css',
20 => 'sprite-gradient-css',
21 => 'sprite-menu-css',
22 => 'sprite-apps-large-css',
23 => 'sprite-status-css',
24 => 'phabricator-main-menu-view',
25 => 'phabricator-notification-css',
26 => 'phabricator-notification-menu-css',
27 => 'lightbox-attachment-css',
28 => 'phui-header-view-css',
29 => 'phabricator-filetree-view-css',
30 => 'phabricator-nav-view-css',
31 => 'phabricator-side-menu-view-css',
32 => 'phabricator-crumbs-view-css',
33 => 'phui-object-item-list-view-css',
34 => 'global-drag-and-drop-css',
35 => 'phui-spacing-css',
36 => 'phui-form-css',
37 => 'phui-icon-view-css',
38 => 'phabricator-application-launch-view-css',
39 => 'phabricator-action-list-view-css',
40 => 'phui-property-list-view-css',
41 => 'phabricator-tag-view-css',
42 => 'phui-list-view-css',
12 => 'phabricator-welcome-page',
13 => 'phabricator-remarkup-css',
14 => 'syntax-highlighting-css',
15 => 'aphront-pager-view-css',
16 => 'phabricator-transaction-view-css',
17 => 'aphront-tooltip-css',
18 => 'phabricator-flag-css',
19 => 'aphront-error-view-css',
20 => 'sprite-icons-css',
21 => 'sprite-gradient-css',
22 => 'sprite-menu-css',
23 => 'sprite-apps-large-css',
24 => 'sprite-status-css',
25 => 'phabricator-main-menu-view',
26 => 'phabricator-notification-css',
27 => 'phabricator-notification-menu-css',
28 => 'lightbox-attachment-css',
29 => 'phui-header-view-css',
30 => 'phabricator-filetree-view-css',
31 => 'phabricator-nav-view-css',
32 => 'phabricator-side-menu-view-css',
33 => 'phabricator-crumbs-view-css',
34 => 'phui-object-item-list-view-css',
35 => 'global-drag-and-drop-css',
36 => 'phui-spacing-css',
37 => 'phui-form-css',
38 => 'phui-icon-view-css',
39 => 'phabricator-application-launch-view-css',
40 => 'phabricator-action-list-view-css',
41 => 'phui-property-list-view-css',
42 => 'phabricator-tag-view-css',
43 => 'phui-list-view-css',
),
'uri' => '/res/pkg/f350af41/core.pkg.css',
'uri' => '/res/pkg/650e555b/core.pkg.css',
'type' => 'css',
),
'2c1dba03' =>
@@ -4569,15 +4586,15 @@ celerity_register_resource_map(array(
),
'reverse' =>
array(
'aphront-dialog-view-css' => 'f350af41',
'aphront-error-view-css' => 'f350af41',
'aphront-list-filter-view-css' => 'f350af41',
'aphront-pager-view-css' => 'f350af41',
'aphront-panel-view-css' => 'f350af41',
'aphront-table-view-css' => 'f350af41',
'aphront-tokenizer-control-css' => 'f350af41',
'aphront-tooltip-css' => 'f350af41',
'aphront-typeahead-control-css' => 'f350af41',
'aphront-dialog-view-css' => '650e555b',
'aphront-error-view-css' => '650e555b',
'aphront-list-filter-view-css' => '650e555b',
'aphront-pager-view-css' => '650e555b',
'aphront-panel-view-css' => '650e555b',
'aphront-table-view-css' => '650e555b',
'aphront-tokenizer-control-css' => '650e555b',
'aphront-tooltip-css' => '650e555b',
'aphront-typeahead-control-css' => '650e555b',
'differential-changeset-view-css' => '1084b12b',
'differential-core-view-css' => '1084b12b',
'differential-inline-comment-editor' => '5e9e5c4e',
@@ -4591,7 +4608,7 @@ celerity_register_resource_map(array(
'differential-table-of-contents-css' => '1084b12b',
'diffusion-commit-view-css' => '7aa115b4',
'diffusion-icons-css' => '7aa115b4',
'global-drag-and-drop-css' => 'f350af41',
'global-drag-and-drop-css' => '650e555b',
'inline-comment-summary-css' => '1084b12b',
'javelin-aphlict' => '2c1dba03',
'javelin-behavior' => '3e3be199',
@@ -4666,56 +4683,57 @@ celerity_register_resource_map(array(
'javelin-util' => '3e3be199',
'javelin-vector' => '3e3be199',
'javelin-workflow' => '3e3be199',
'lightbox-attachment-css' => 'f350af41',
'lightbox-attachment-css' => '650e555b',
'maniphest-task-summary-css' => '49898640',
'phabricator-action-list-view-css' => 'f350af41',
'phabricator-application-launch-view-css' => 'f350af41',
'phabricator-action-list-view-css' => '650e555b',
'phabricator-application-launch-view-css' => '650e555b',
'phabricator-busy' => '2c1dba03',
'phabricator-content-source-view-css' => '1084b12b',
'phabricator-core-css' => 'f350af41',
'phabricator-crumbs-view-css' => 'f350af41',
'phabricator-core-css' => '650e555b',
'phabricator-crumbs-view-css' => '650e555b',
'phabricator-drag-and-drop-file-upload' => '5e9e5c4e',
'phabricator-dropdown-menu' => '2c1dba03',
'phabricator-file-upload' => '2c1dba03',
'phabricator-filetree-view-css' => 'f350af41',
'phabricator-flag-css' => 'f350af41',
'phabricator-filetree-view-css' => '650e555b',
'phabricator-flag-css' => '650e555b',
'phabricator-hovercard' => '2c1dba03',
'phabricator-jump-nav' => 'f350af41',
'phabricator-jump-nav' => '650e555b',
'phabricator-keyboard-shortcut' => '2c1dba03',
'phabricator-keyboard-shortcut-manager' => '2c1dba03',
'phabricator-main-menu-view' => 'f350af41',
'phabricator-main-menu-view' => '650e555b',
'phabricator-menu-item' => '2c1dba03',
'phabricator-nav-view-css' => 'f350af41',
'phabricator-nav-view-css' => '650e555b',
'phabricator-notification' => '2c1dba03',
'phabricator-notification-css' => 'f350af41',
'phabricator-notification-menu-css' => 'f350af41',
'phabricator-notification-css' => '650e555b',
'phabricator-notification-menu-css' => '650e555b',
'phabricator-object-selector-css' => '1084b12b',
'phabricator-phtize' => '2c1dba03',
'phabricator-prefab' => '2c1dba03',
'phabricator-project-tag-css' => '49898640',
'phabricator-remarkup-css' => 'f350af41',
'phabricator-remarkup-css' => '650e555b',
'phabricator-shaped-request' => '5e9e5c4e',
'phabricator-side-menu-view-css' => 'f350af41',
'phabricator-standard-page-view' => 'f350af41',
'phabricator-tag-view-css' => 'f350af41',
'phabricator-side-menu-view-css' => '650e555b',
'phabricator-standard-page-view' => '650e555b',
'phabricator-tag-view-css' => '650e555b',
'phabricator-textareautils' => '2c1dba03',
'phabricator-tooltip' => '2c1dba03',
'phabricator-transaction-view-css' => 'f350af41',
'phabricator-zindex-css' => 'f350af41',
'phui-button-css' => 'f350af41',
'phui-form-css' => 'f350af41',
'phui-form-view-css' => 'f350af41',
'phui-header-view-css' => 'f350af41',
'phui-icon-view-css' => 'f350af41',
'phui-list-view-css' => 'f350af41',
'phui-object-item-list-view-css' => 'f350af41',
'phui-property-list-view-css' => 'f350af41',
'phui-spacing-css' => 'f350af41',
'sprite-apps-large-css' => 'f350af41',
'sprite-gradient-css' => 'f350af41',
'sprite-icons-css' => 'f350af41',
'sprite-menu-css' => 'f350af41',
'sprite-status-css' => 'f350af41',
'syntax-highlighting-css' => 'f350af41',
'phabricator-transaction-view-css' => '650e555b',
'phabricator-welcome-page' => '650e555b',
'phabricator-zindex-css' => '650e555b',
'phui-button-css' => '650e555b',
'phui-form-css' => '650e555b',
'phui-form-view-css' => '650e555b',
'phui-header-view-css' => '650e555b',
'phui-icon-view-css' => '650e555b',
'phui-list-view-css' => '650e555b',
'phui-object-item-list-view-css' => '650e555b',
'phui-property-list-view-css' => '650e555b',
'phui-spacing-css' => '650e555b',
'sprite-apps-large-css' => '650e555b',
'sprite-gradient-css' => '650e555b',
'sprite-icons-css' => '650e555b',
'sprite-menu-css' => '650e555b',
'sprite-status-css' => '650e555b',
'syntax-highlighting-css' => '650e555b',
),
));

View File

@@ -282,12 +282,14 @@ final class PhabricatorDirectoryMainController
private function buildWelcomePanelFromFile() {
$webroot = dirname(phutil_get_library_root('phabricator')).'/webroot/';
$panel = new AphrontMiniPanelView();
$panel = new AphrontPanelView();
$panel->addClass('project-list');
$panel->appendChild(
phutil_safe_html(
FileSystem::readFile($webroot .
PhabricatorEnv::getEnvConfig('welcome.file'))));
require_celerity_resource('phabricator-welcome-page');
return $panel;
}

View File

@@ -0,0 +1,61 @@
/**
* @provides phabricator-welcome-page
*/
.project-list {
padding: 0;
background: #FFF;
border: none;
background: none;
margin-bottom: 20px;
}
.project-list .aphront-panel-header {
display: none;
}
.project-item {
float: left;
text-align: center;
background: #FFF;
height: 130px;
border: 1px solid #C7CCD9;
border-bottom: 1px solid #A1A6B0;
}
.project-item h2 {
width: 100%;
padding: 3px 0px;
color: #333;
font-size: 13pt;
font-weight: normal;
margin-bottom: 8px;
border-bottom: 1px solid #CCC;
}
.project-item li {
margin-bottom: 5px;
}
.project-item.span4 {
width: 24%;
margin-right: 1%;
}
.project-item.span8 {
float: left;
width: 49%;
}
@media all and (max-width: 800px) {
.project-item.span8 {
width: 48%;
}
}
.project-item.span8 ul {
float: left;
width: 50%;
}

View File

@@ -1,52 +1,36 @@
<div style="padding: 5pt;">
<table style="margin: 0 auto;">
<tr>
<td style="width: 200px;">
<h1><a href="project/view/2/">BF Blender</a></h1>
<div style="padding-left: 8pt; padding-top: 8pt; line-height: 2.2;">
<a href="maniphest/project/2/type/Bug/">Browse Bugs</a><br/>
<a href="maniphest/task/create/?project=2&type=Bug" class="button grey">Report Bug »</a><br/>
<a href="differential/diff/create/" class="button grey">Submit Patch »</a><br/>
<div class="project-item span4">
<h2><a href="project/view/2/">BF Blender</a></h2>
<ul>
<li><a href="maniphest/project/2/type/Bug/">Browse Bugs</a></li>
<li><a class="button grey" href="maniphest/task/create/?project=2&type=Bug">Report Bug »</a></li>
<li><a class="button grey" href="differential/diff/create/">Submit Patch »</a></li>
</ul>
</div>
</td>
<td style="width: 200px;">
<h1><a href="project/view/3/">Addons</a></h1>
<div style="padding-left: 8pt; padding-top: 8pt; line-height: 2.2;">
<a href="maniphest/project/3/type/Bug/">Browse Bugs</a><br/>
<a href="maniphest/task/create/?project=3&type=Bug" class="button grey">Report Bug »</a><br/>
<a href="differential/diff/create/" class="button grey">Submit Addon »</a><br/>
<div class="project-item span4">
<h2><a href="project/view/3/">Addons</a></h2>
<ul>
<li><a href="maniphest/project/3/type/Bug/">Browse Bugs</a></li>
<li><a class="button grey" href="maniphest/task/create/?project=3&type=Bug">Report Bug »</a></li>
<li><a class="button grey" href="differential/diff/create/">Submit Addon »</a></li>
</ul>
</div>
</td>
<td style="width: 200px;">
<h1><a href="project/query/active/">All Projects</a></h1>
<div style="padding-left: 8pt; padding-top: 8pt;">
<a href="project/view/5/">Animation</a><br/>
<a href="project/view/7/">Compositing</a><br/>
<a href="project/view/26/">Cycles</a><br/>
<a href="project/view/30/">Game Engine</a><br/>
</div>
</td>
<td style="width: 200px;">
<div style="padding-left: 8pt; padding-top: 8pt;">
<a href="project/view/30/">Game Engine</a><br/>
<a href="project/view/14/">Mesh Modeling</a><br/>
<a href="project/view/16/">Motion Tracking</a><br/>
<a href="project/view/4/">Translations</a><br/>
<a href="project/view/12/">User Interface</a><br/>
</div>
</td>
</tr>
</table>
<div class="project-item span8">
<h2><a href="project/query/active/">All Projects</a></h2>
<ul>
<li><a href="project/view/5/">Animation</a></li>
<li><a href="project/view/26/">Cycles</a></li>
<li><a href="project/view/7/">Compositing</a></li>
<li><a href="project/view/30/">Game Engine</a></li>
</ul>
<ul>
<li><a href="project/view/14/">Mesh Modeling</a></li>
<li><a href="project/view/16/">Motion Tracking</a></li>
<li><a href="project/view/12/">User Interface</a></li>
<li><a href="project/view/4/">Translations</a></li>
</ul>
</div>
<div style="clear:both;" ></div>