You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/02/02 22:09:03 UTC
[royale-asjs] branch feature/royalesite updated (ad357d8 -> f36cdb5)
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a change to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.
from ad357d8 put second icon on separate line
new 5ac0fae start copying from doc template
new 6215ade should use typenames instead of classname to avoid being overwritten by app dev
new 9c82e73 update site components to try to use them in asdoc
new 8f31e43 put custom fonts in template
new 6cd45fe refactor example to use new components and remove clutter
new edef66c handle display specified in stylesheets
new 87ba068 tune up site components
new 6b941bf make ASDoc look a bit better
new 026ff12 try using padding instead of fixed height to center text vertically and handle different font sizes
new 41eb804 AlternatingBackgroundColor renderer
new 818c715 use typenames
new bd31916 use hash anchor links
new 71484c4 simple routing for JS
new f36cdb5 implement routing in ASDoc
The 14 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../ASDoc/src/main/config/compile-app-config.xml | 1 +
.../src/main/resources/royale-index-template.html | 274 +++++++++++++++++++++
examples/royale/ASDoc/src/main/royale/ASDoc.mxml | 7 +
.../ASDoc/src/main/royale/ASDocMainView.mxml | 108 +++++++-
...gBackgroundColorHashAnchorStringItemRenderer.as | 87 ++++---
.../main/royale/HashAnchorStringItemRenderer.as | 64 ++---
.../ASDoc/src/main/royale/models/ASDocModel.as | 11 +-
.../src/main/resources/royale-index-template.html | 242 ++++++++++++++++++
.../src/main/royale/RoyaleWebsite.mxml | 70 +-----
.../Basic/src/main/resources/basic-manifest.xml | 3 +
.../projects/Basic/src/main/resources/defaults.css | 3 +-
.../main/royale/org/apache/royale/core/ViewBase.as | 2 +-
.../OneFlexibleChildVerticalLayoutForOverflow.as | 3 +-
...lternatingBackgroundColorStringItemRenderer.as} | 87 ++++---
.../html/supportClasses/StringItemRenderer.as | 3 +-
.../HashChangeNotifierBead.as} | 70 +++---
.../RoyaleSite/src/main/resources/defaults.css | 169 +++++++++++--
.../src/main/resources/royalesite-manifest.xml | 12 +
.../royale/site/{CurvedTop.as => DocFooter.as} | 21 +-
.../royale/site/{CurvedTop.as => DocPage.as} | 21 +-
.../site/{CurvedTop.as => DocSocialButtons.as} | 19 +-
.../royale/org/apache/royale/site/DocTagline.as} | 33 ++-
.../royale/org/apache/royale/site/DocTopBar.mxml | 23 +-
.../royale/site/{CurvedTop.as => DocTopMenu.as} | 21 +-
.../main/royale/org/apache/royale/site/Footer.mxml | 73 ++++++
.../royale/site/{CurvedTop.as => MainPage.as} | 21 +-
.../main/royale/org/apache/royale/site/Tagline.as} | 33 ++-
.../main/royale/org/apache/royale/site/TopBar.mxml | 23 +-
.../royale/org/apache/royale/site/TopMenu.mxml | 25 +-
.../royale/site/{TopMenu.as => TopMenuBase.as} | 6 +-
30 files changed, 1155 insertions(+), 380 deletions(-)
create mode 100644 examples/royale/ASDoc/src/main/resources/royale-index-template.html
copy frameworks/projects/Basic/src/main/royale/org/apache/royale/html/BinaryImage.as => examples/royale/ASDoc/src/main/royale/AlternatingBackgroundColorHashAnchorStringItemRenderer.as (51%)
copy frameworks/projects/HTML/src/main/royale/org/apache/royale/html/elements/A.as => examples/royale/ASDoc/src/main/royale/HashAnchorStringItemRenderer.as (54%)
copy frameworks/projects/Basic/src/main/royale/org/apache/royale/html/{BinaryImage.as => supportClasses/AlternatingBackgroundColorStringItemRenderer.as} (51%)
copy frameworks/projects/Basic/src/main/royale/org/apache/royale/{html/beads/TextOverflow.as => routing/HashChangeNotifierBead.as} (63%)
copy frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{CurvedTop.as => DocFooter.as} (80%)
copy frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{CurvedTop.as => DocPage.as} (81%)
copy frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{CurvedTop.as => DocSocialButtons.as} (77%)
copy frameworks/projects/{Basic/src/main/royale/org/apache/royale/html/TableHeader.as => RoyaleSite/src/main/royale/org/apache/royale/site/DocTagline.as} (75%)
copy examples/royale/MDLBlogExample/src/main/royale/App.mxml => frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.mxml (67%)
copy frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{CurvedTop.as => DocTopMenu.as} (79%)
create mode 100644 frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml
copy frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{CurvedTop.as => MainPage.as} (81%)
copy frameworks/projects/{Basic/src/main/royale/org/apache/royale/html/TableHeader.as => RoyaleSite/src/main/royale/org/apache/royale/site/Tagline.as} (75%)
copy examples/royale/MDLBlogExample/src/main/royale/App.mxml => frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml (67%)
copy examples/royale/MDLBlogExample/src/main/royale/App.mxml => frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.mxml (55%)
rename frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/{TopMenu.as => TopMenuBase.as} (93%)
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 08/14: make ASDoc look a bit better
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 6b941bf71b2527bd506b6b3752209adc74a9b6fd
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 23:14:46 2018 -0800
make ASDoc look a bit better
---
.../ASDoc/src/main/config/compile-app-config.xml | 1 +
.../src/main/resources/royale-index-template.html | 274 +++++++++++++++++++++
examples/royale/ASDoc/src/main/royale/ASDoc.mxml | 7 +
.../ASDoc/src/main/royale/ASDocMainView.mxml | 51 +++-
.../ASDoc/src/main/royale/models/ASDocModel.as | 7 +-
5 files changed, 330 insertions(+), 10 deletions(-)
diff --git a/examples/royale/ASDoc/src/main/config/compile-app-config.xml b/examples/royale/ASDoc/src/main/config/compile-app-config.xml
index 47270ef..a617364 100644
--- a/examples/royale/ASDoc/src/main/config/compile-app-config.xml
+++ b/examples/royale/ASDoc/src/main/config/compile-app-config.xml
@@ -20,4 +20,5 @@
<js-output-optimization>
<optimization>skipAsCoercions</optimization>
</js-output-optimization>
+ <html-template>../resources/royale-index-template.html</html-template>
</royale-config>
diff --git a/examples/royale/ASDoc/src/main/resources/royale-index-template.html b/examples/royale/ASDoc/src/main/resources/royale-index-template.html
new file mode 100644
index 0000000..d949120
--- /dev/null
+++ b/examples/royale/ASDoc/src/main/resources/royale-index-template.html
@@ -0,0 +1,274 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="Royale Website Template">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
+ <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
+ <link rel="stylesheet" href="ASDoc.css" />
+ <style>
+ /* bengali */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn0qii7chi9RE_lAY9XU9O0g.woff2) format('woff2');
+ unicode-range: U+0964-0965, U+0981-09FB, U+200B-200D, U+20B9, U+25CC;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn82vutNS_CBIjVgecJYPrsw.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn88Q1G5JROVRiyA48x3Y_E4.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* bengali */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0AqEXMZVoFOEO38LXywQmS6I.woff2) format('woff2');
+ unicode-range: U+0964-0965, U+0981-09FB, U+200B-200D, U+20B9, U+25CC;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0AoEMFHo8fJCOZjaCxXVE7N0.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0Ahbke1jeBh3drm8XFbAU4Xs.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xPX7z5o44AuUJ1t1avdkNXJ_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xLLF6RfyvCYuuChpfFHKAr5_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xIbCcO5IWJIaQ5MtZqYsHUp_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xHQ3DnTiPFZC1qn696_nOv9_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xLzZT6Zu7Z-BZJGL0hT-UJV_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xPJmhJzg6kSQTtrFMk-8lT5_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xIgEy7irt_A5K-aDq9kG7DHr7w4p9aSvGirXi6XmeXNA.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/FPi-c3aUC3zvYWzrDQQz-4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/easTUkYIpjx9W4QcIr8U1IX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/FVV1uRqs2-G7nbyX6T7UGYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/y5-5zezrZlJHkmIVxRH3BZBw1xU1rKptJj_0jans920.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Signika Regular'), local('Signika-Regular'), url(https://fonts.gstatic.com/s/signika/v8/ES-hggNmXmQgA9p5FjvOJ1KPGs1ZzpMvnHX-7fPOuAc.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Signika Regular'), local('Signika-Regular'), url(https://fonts.gstatic.com/s/signika/v8/DgXTNsU4VcVVFTc7jwBZzwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Signika SemiBold'), local('Signika-SemiBold'), url(https://fonts.gstatic.com/s/signika/v8/8-PQNacfI9IhpgehJGCuGAsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Signika SemiBold'), local('Signika-SemiBold'), url(https://fonts.gstatic.com/s/signika/v8/FZa_MODmDkR9DTu5jHSnSQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Signika Bold'), local('Signika-Bold'), url(https://fonts.gstatic.com/s/signika/v8/F587cG5P5ff3TX6w4JlorwsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Signika Bold'), local('Signika-Bold'), url(https://fonts.gstatic.com/s/signika/v8/7M5kxD4eGxuhgFaIk95pBQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGGWGG8n76xaP_JUl9houU473rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMP5gXq4cN8pjVji5g2q9Mf3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGIwxT-R1rCKQkeTtsDWzfjL3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGFCUBMgATkHAQY-Bv-74xcn3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMZXFz2iDKd7GJNSaxRYiSj3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGKyGJhAh-RE0BxGcd_izyev3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMzFoXZ-Kj537nB_-9jJhlA.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+ </style>
+ <title>Apache Royale</title>
+${head}
+</head>
+<body>
+${body}
+</body>
+</html>
diff --git a/examples/royale/ASDoc/src/main/royale/ASDoc.mxml b/examples/royale/ASDoc/src/main/royale/ASDoc.mxml
index 3ca0eff..fdd8eb7 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDoc.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDoc.mxml
@@ -24,6 +24,13 @@ limitations under the License.
xmlns:controllers="controllers.*"
width="900" height="500"
>
+ <fx:Style>
+ @namespace basic "library://ns.apache.org/royale/basic";
+
+ global {
+ IStatesImpl: ClassReference("org.apache.royale.core.SimpleStatesImpl");
+ }
+ </fx:Style>
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index 31d6da7..efbc016 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -17,8 +17,9 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
-<js:View xmlns:fx="http://ns.adobe.com/mxml/2009"
+<rs:DocPage xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/basic"
+ xmlns:rs="library://ns.apache.org/royale/site"
width="100%" height="100%"
>
<fx:Script>
@@ -35,10 +36,17 @@ limitations under the License.
dispatchEvent(new Event("packageChanged"));
}
+ private function packageListChangedHandler():void
+ {
+ currentPackage = packagePaneList.selectedItem as String;
+ dispatchEvent(new Event("packageChanged"));
+ }
+
public var currentClass:String;
private function classChangedHandler():void
{
+ currentState = "classDetail";
currentClass = classList.selectedItem as String;
dispatchEvent(new Event("classChanged"));
}
@@ -63,16 +71,40 @@ limitations under the License.
color: white;
text-align: center;
}
+
+ .titleGroup {
+ margin-top: 30px;
+ }
+
+ .paneTitle {
+ font-size: 24px;
+ font-weight: bold;
+ padding-left: 20px;
+ background-color: rgb( 253, 171, 125);
+ }
+
+ .paneList {
+ margin-left: 20px;
+ margin-right: 20px;
+ border-style: solid;
+ }
+
</fx:Style>
+ <js:states>
+ <js:State name="packages" />
+ <js:State name="classDetail" />
+ </js:states>
<js:beads>
<js:ViewDataBinding />
<js:OneFlexibleChildVerticalLayoutForOverflow flexibleChild="topContainer" />
</js:beads>
- <js:Group width="100%" id="titleGroup">
+ <rs:DocTopBar />
+ <rs:DocTagline />
+ <js:Group width="100%" id="titleGroup" className="titleGroup">
<js:beads>
<js:OneFlexibleChildHorizontalLayoutForOverflow flexibleChild="title" />
</js:beads>
- <js:Label text="Royale ActionScript Library Reference" id="title" height="30" style="fontSize:20"/>
+ <js:Label text="Apache Royale ActionScript Library Reference" id="title" height="30" style="fontSize:20"/>
<js:CheckBox id="topLevel" text="Top-Level" click="showTopLevel()" />
<js:CheckBox id="viewBeads" text="View Bead" click="showViewBeads()" />
</js:Group>
@@ -93,12 +125,19 @@ limitations under the License.
<js:VerticalLayout />
<js:ScrollingViewport />
</js:beads>
- <js:Group id="detailsPane" width="100%">
+ <js:Group id="packageListPane" width="100%" includeIn="packages">
+ <js:beads>
+ <js:VerticalLayout />
+ </js:beads>
+ <js:Label className="paneTitle" text="All Packages" width="100%"/>
+ <js:List className="paneList" id="packagePaneList" dataProvider="{ASDocModel(applicationModel).packageList}" change="packageListChangedHandler()"/>
+ </js:Group>
+ <js:Group id="detailsPane" width="100%" includeIn="classDetail">
<js:beads>
<js:VerticalLayout />
</js:beads>
+ <js:Label className="paneTitle" id="baseName" text="{ASDocModel(applicationModel).currentClass}" width="100%" style="fontSize:20"/>
<js:Label id="packageName" text="{ASDocModel(applicationModel).currentPackage}" width="100%"/>
- <js:Label id="baseName" text="{ASDocModel(applicationModel).currentClass}" width="100%" style="fontSize:20"/>
<js:Label id="inheritance" text="{ASDocModel(applicationModel).inheritance}" width="100%"/>
<js:MultilineLabel id="attributes" text="{ASDocModel(applicationModel).attributes}" width="100%"/>
<js:MultilineLabel id="description" text="{ASDocModel(applicationModel).description}" width="100%"/>
@@ -120,4 +159,4 @@ limitations under the License.
</js:Group>
</js:Container>
</js:Group>
-</js:View>
+</rs:DocPage>
diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
index 1d0cb83..02ba5e4 100644
--- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
+++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
@@ -73,7 +73,7 @@ package models
_knownTags = config.tags;
app.service.addEventListener("complete", completeHandler);
- app.service.url = "classes.json";
+ app.service.url = "classlist.json";
app.service.send();
}
@@ -89,10 +89,9 @@ package models
private function filterPackageList():void
{
var packages:Object = {};
- for each (var classData:Object in masterData.classes)
+ for each (var qname:String in masterData.classnames)
{
var packageName:String;
- var qname:String = classData.name;
var c:int = qname.lastIndexOf(".")
if (c == -1)
packageName = "Top Level";
@@ -105,7 +104,7 @@ package models
{
packages[packageName] = {};
}
- packages[packageName][qname] = classData;
+ packages[packageName][qname] = {};
}
var arr:Array = [];
for (var p:String in packages)
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 12/14: use hash anchor links
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit bd31916070745db3add66ce1bc34a7e93fdc86ca
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 12:24:31 2018 -0800
use hash anchor links
---
.../ASDoc/src/main/royale/ASDocMainView.mxml | 17 +++-
...gBackgroundColorHashAnchorStringItemRenderer.as | 96 ++++++++++++++++++++++
.../main/royale/HashAnchorStringItemRenderer.as | 66 +++++++++++++++
.../ASDoc/src/main/royale/models/ASDocModel.as | 4 +-
4 files changed, 178 insertions(+), 5 deletions(-)
diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index 19f92dc..e7340aa 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -20,6 +20,7 @@ limitations under the License.
<rs:DocPage xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:rs="library://ns.apache.org/royale/site"
+ xmlns:local="*"
width="100%" height="100%"
>
<fx:Script>
@@ -64,6 +65,8 @@ limitations under the License.
]]>
</fx:Script>
<fx:Style>
+ @namespace "*";
+
.sectionLabel{
font-size: 16px;
font-weight: bold;
@@ -89,10 +92,14 @@ limitations under the License.
border-style: solid;
}
+ .HashAnchorAnchor {
+ text-decoration: none;
+ }
+
</fx:Style>
<fx:Declarations>
<fx:Component className="AltBGRenderer">
- <js:AlternatingBackgroundColorStringItemRenderer backgroundColor0="#ffffff" backgroundColor1="#ffeeee" />
+ <local:AlternatingBackgroundColorHashAnchorStringItemRenderer backgroundColor0="#ffffff" backgroundColor1="#ffeeee" />
</fx:Component>
</fx:Declarations>
<js:states>
@@ -122,8 +129,12 @@ limitations under the License.
<js:beads>
<js:VerticalLayout />
</js:beads>
- <js:List id="packageList" dataProvider="{ASDocModel(applicationModel).packageList}" change="packageChangedHandler()" width="100%" height="50%"/>
- <js:List id="classList" dataProvider="{ASDocModel(applicationModel).classList}" change="classChangedHandler()" width="100%" height="50%"/>
+ <js:List id="packageList" dataProvider="{ASDocModel(applicationModel).packageList}" change="packageChangedHandler()"
+ width="100%" height="50%"
+ itemRenderer="HashAnchorStringItemRenderer"/>
+ <js:List id="classList" dataProvider="{ASDocModel(applicationModel).classList}" change="classChangedHandler()"
+ width="100%" height="50%"
+ itemRenderer="HashAnchorStringItemRenderer" labelField="label" />
</js:Group>
<js:Container className="rightSide" id="rightSide" height="100%">
<js:beads>
diff --git a/examples/royale/ASDoc/src/main/royale/AlternatingBackgroundColorHashAnchorStringItemRenderer.as b/examples/royale/ASDoc/src/main/royale/AlternatingBackgroundColorHashAnchorStringItemRenderer.as
new file mode 100644
index 0000000..6033830
--- /dev/null
+++ b/examples/royale/ASDoc/src/main/royale/AlternatingBackgroundColorHashAnchorStringItemRenderer.as
@@ -0,0 +1,96 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+
+ /**
+ * The AlternatingBackgroundColorHashAnchorItemRenderer class displays data in string form using the data's toString()
+ * function and alternates between two background colors. This is the most simple implementation for immutable lists
+ * and will not handle adding/removing renderers.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public class AlternatingBackgroundColorHashAnchorStringItemRenderer extends HashAnchorStringItemRenderer
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public function AlternatingBackgroundColorHashAnchorStringItemRenderer()
+ {
+ }
+
+ private var _color0:String;
+
+ public function get backgroundColor0():String
+ {
+ return _color0;
+ }
+ public function set backgroundColor0(value:String):void
+ {
+ _color0 = value;
+ }
+
+ private var _color1:String;
+
+ public function get backgroundColor1():String
+ {
+ return _color1;
+ }
+ public function set backgroundColor1(value:String):void
+ {
+ _color1 = value;
+ }
+
+ private var oddIndex:Boolean;
+
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+
+ var index:int = parent.getElementIndex(this);
+ oddIndex = ((index % 2) == 1)
+ COMPILE::JS
+ {
+ element.style.backgroundColor = oddIndex ? _color1 : _color0;
+ }
+ }
+
+ /**
+ * @private
+ */
+ override public function updateRenderer():void
+ {
+ super.updateRenderer();
+ COMPILE::JS
+ {
+ if (element.style.backgroundColor == null || element.style.backgroundColor == "")
+ element.style.backgroundColor = oddIndex ? _color1 : _color0;
+ }
+ }
+
+ }
+}
diff --git a/examples/royale/ASDoc/src/main/royale/HashAnchorStringItemRenderer.as b/examples/royale/ASDoc/src/main/royale/HashAnchorStringItemRenderer.as
new file mode 100644
index 0000000..274c215
--- /dev/null
+++ b/examples/royale/ASDoc/src/main/royale/HashAnchorStringItemRenderer.as
@@ -0,0 +1,66 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package
+{
+import org.apache.royale.html.supportClasses.StringItemRenderer;
+
+ /**
+ * The HashAnchorStringItemRenderer class displays data in string form using the data's toString()
+ * function. It assumes the data is an encoding of class, package or function name and
+ * sets up the renderer so the controller logic will open the right document. On JS, by
+ * using anchor tags, it should allow the browser to dictate permalinks and allow
+ * search engines to crawl the app.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public class HashAnchorStringItemRenderer extends StringItemRenderer
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public function HashAnchorStringItemRenderer()
+ {
+ typeNames += " HashAnchorStringItemRenderer"
+ }
+
+ override public function set text(value:String):void
+ {
+ COMPILE::SWF
+ {
+ textField.text = value;
+ }
+ COMPILE::JS
+ {
+ var href:String = data.href;
+ if (!href) // assume package name
+ href = value;
+ this.element.innerHTML = "<a href='#" + href + "' class='HashAnchorAnchor'>" + value + "</a>";
+ }
+ }
+
+ }
+}
diff --git a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
index 02ba5e4..cf13d92 100644
--- a/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
+++ b/examples/royale/ASDoc/src/main/royale/models/ASDocModel.as
@@ -148,9 +148,9 @@ package models
for (var p:String in packageData)
{
if (filter == null)
- arr.push(p);
+ arr.push({ label: p, href: value + "/" + p});
else if (filter(packageData[p]))
- arr.push(p);
+ arr.push({ label: p, href: value + "/" + p});
}
arr.sort();
_classList = arr;
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 09/14: try using padding instead of fixed height to
center text vertically and handle different font sizes
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 026ff125d3c0040e6b80a24e911fe1f4a999f753
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 11:24:00 2018 -0800
try using padding instead of fixed height to center text vertically and handle different font sizes
---
frameworks/projects/Basic/src/main/resources/defaults.css | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/resources/defaults.css b/frameworks/projects/Basic/src/main/resources/defaults.css
index b83dc37..920fd5e 100644
--- a/frameworks/projects/Basic/src/main/resources/defaults.css
+++ b/frameworks/projects/Basic/src/main/resources/defaults.css
@@ -519,7 +519,8 @@ Spinner
StringItemRenderer
{
IBeadController: ClassReference("org.apache.royale.html.beads.controllers.ItemRendererMouseController");
- height: 24px;
+ padding-top: 4px;
+ padding-bottom: 4px;
flex-shrink: 0;
flex-grow: 1;
cursor: pointer;
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 03/14: update site components to try to use them in
asdoc
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 9c82e73f66e9595761dabd1eb3a2cad909de2ecd
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 12:42:48 2018 -0800
update site components to try to use them in asdoc
---
.../RoyaleSite/src/main/resources/defaults.css | 151 +++++++++++++++++----
.../src/main/resources/royalesite-manifest.xml | 12 ++
.../royale/site/{TopMenu.as => DocFooter.as} | 32 ++---
.../apache/royale/site/{TopMenu.as => DocPage.as} | 32 ++---
.../site/{TopMenu.as => DocSocialButtons.as} | 28 +---
.../royale/site/{TopMenu.as => DocTagline.as} | 27 ++--
.../royale/site/{TopMenu.as => DocTopBar.as} | 32 ++---
.../royale/site/{TopMenu.as => DocTopMenu.as} | 32 ++---
.../main/royale/org/apache/royale/site/Footer.mxml | 73 ++++++++++
.../apache/royale/site/{TopMenu.as => MainPage.as} | 32 ++---
.../apache/royale/site/{TopMenu.as => Tagline.as} | 27 ++--
.../main/royale/org/apache/royale/site/TopBar.mxml | 29 ++++
.../royale/org/apache/royale/site/TopMenu.mxml | 31 +++++
.../royale/site/{TopMenu.as => TopMenuBase.as} | 6 +-
14 files changed, 343 insertions(+), 201 deletions(-)
diff --git a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
index d1c65c0..91edb96 100644
--- a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
+++ b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
@@ -12,16 +12,33 @@
* limitations under the License.
*/
-@namespace "library://ns.apache.org/royale/site";
+@namespace "http://www.w3.org/1999/xhtml";
+@namespace rs "library://ns.apache.org/royale/site";
-ASFCopyrightAttributionAndLinks
+h1 {
+ margin-top: 0px;
+}
+
+rs|Tagline {
+ font-family: 'Hind Siliguri';
+}
+
+rs|DocTagline {
+ top: 60px;
+ right: 10px;
+ font-size: 10px;
+ color: #fff;
+ position: absolute;
+}
+
+rs|ASFCopyrightAttributionAndLinks
{
text-align: center;
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
}
-CurvedTop {
+rs|CurvedTop {
background-color: #ffffff;
border-top-right-radius: 50% 20px;
border-top-left-radius: 50% 20px;
@@ -31,12 +48,12 @@ CurvedTop {
padding: 30px;
}
-ResponsiveTable {
+rs|ResponsiveTable {
display: flex;
flex-wrap: wrap;
}
-ResponsiveTableTile {
+rs|ResponsiveTableTile {
width: 350px;
}
@@ -61,7 +78,7 @@ ResponsiveTableTile {
}
-BigButton {
+rs|BigButton {
border-radius: 100px;
padding: 30px;
margin: 20px;
@@ -98,15 +115,20 @@ BigButton {
font-family:Verdana, Geneva, sans-serif;
}
-.page {
+rs|MainPage {
width: 100%;
background-color: #cccccc;
background-image: url('http://royale.codeoscopic.com/wp-content/uploads/2017/10/isometric-devices-light-curve-1920x1025.png');
background-size: 100%;
background-repeat: no-repeat;
+ margin-top: 0px;
+}
+
+rs|DocPage {
+ background-image: url('http://royale.codeoscopic.com/wp-content/uploads/2017/10/page-bg-1-1920x300.png');
}
-SocialButtons {
+rs|SocialButtons {
display: inline;
margin-top: 0px;
height: 40px;
@@ -118,26 +140,49 @@ SocialButtons {
line-height: 70px;
}
-.topbar {
- width: 100%;
+rs|DocSocialButtons {
+ color: #fff;
+}
+
+rs|TopBar {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ padding-left: 54px;
+ padding-right: 54px;
+}
+
+rs|DocTopBar {
+ color: #fff;
}
-TopMenu {
+rs|TopMenu {
display: inline-block;
vertical-align: top;
+ margin-top: 0px;
+ margin-bottom: 0px;
+ height: 40px;
list-style: none;
}
-TopMenuButton {
+rs|TopMenuButton {
display: inline;
margin-right: 20px;
- font-size: 12px;
+ font-size: 14px;
+ font-weight: 600;
+ font-family: 'Signika';
+ line-height: 70px;
+ letter-spacing: 1px;
}
.TopMenuButtonContent {
text-decoration: none;
}
+rs|DocTopMenu {
+ color: #fff;
+}
+
.orange-box {
background-color: #F93;
width: 100%;
@@ -168,62 +213,122 @@ TopMenuButton {
margin: 20px 300px;
}
+
.apache {
- color: #f0f;
+ color: #a002a0;
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
}
.apacheroyale {
- color: #f00;
+ color: rgb(250, 70, 30);
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
}
.documentation {
color: #000;
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
}
.development {
- color: #ff0;
+ color: rgb(243, 199, 103);
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
}
.community {
- color: #0f0;
+ color: rgb(42, 139, 42);
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
}
-.footer {
- width: 100%;
+rs|Footer {
+ padding-left: 54px;
+ padding-right: 54px;
+ padding-top: 48px;
+ padding-bottom: 18px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
- font-family: Verdana, Geneva, sans-serif;
+ font-family: 'Hind Siliguri';
+ font-size: 14px;
+}
+
+rs|DocFooter
+{
+ background-color: rgb(233, 233, 233);
}
.footer-column {
+ flex-grow: 1;
}
-TitledAnchorList {
+.footer-list {
list-style: none;
+ padding-left: 0px;
+ margin-bottom: 20px;
}
-.AnchorListContent {
+.footer-list_a{
text-decoration: none;
+ line-height: 26px;
+ color: rgb(67, 147, 195);
}
.aboutusdiv {
min-width: 150px;
- flex-basis: 40%;
+ flex-basis: 33%;
flex-grow: 1;
}
.aboutus {
color: #000;
+ font-family: Signika;
+ font-weight: 600;
+ line-height: 30px;
+}
+
+.aboutus_p {
+ padding-bottom: 38px;
+}
+
+.aboutus_a {
+ text-decoration: none;
+ color: rgb(67, 147, 195);
}
.aboutus-logo {
float: left;
width: 100px;
+ padding-bottom: 14px;
+ padding-right: 14px;
}
.aboutus-apache-logo {
float: right;
width: 100px;
+ padding-bottom: 14px;
+ padding-right: 14px;
+}
+
+rs|TitledAnchorList {
+ list-style: none;
+}
+
+.AnchorListContent {
+ text-decoration: none;
}
+.logo {
+ margin-top:15px;
+ margin-bottom: 5px;
+ width: 190px;
+ height: 40px;
+}
\ No newline at end of file
diff --git a/frameworks/projects/RoyaleSite/src/main/resources/royalesite-manifest.xml b/frameworks/projects/RoyaleSite/src/main/resources/royalesite-manifest.xml
index 4731370..99b47e5 100644
--- a/frameworks/projects/RoyaleSite/src/main/resources/royalesite-manifest.xml
+++ b/frameworks/projects/RoyaleSite/src/main/resources/royalesite-manifest.xml
@@ -24,10 +24,22 @@
<component id="ASFCopyrightAttributionAndLinks" class="org.apache.royale.site.ASFCopyrightAttributionAndLinks" />
<component id="BigButton" class="org.apache.royale.site.BigButton" />
<component id="CurvedTop" class="org.apache.royale.site.CurvedTop" />
+ <component id="Footer" class="org.apache.royale.site.Footer" />
+ <component id="MainPage" class="org.apache.royale.site.MainPage" />
<component id="ResponsiveTable" class="org.apache.royale.site.ResponsiveTable" />
<component id="ResponsiveTableTile" class="org.apache.royale.site.ResponsiveTableTile" />
<component id="SocialButtons" class="org.apache.royale.site.SocialButtons" />
+ <component id="Tagline" class="org.apache.royale.site.Tagline" />
<component id="TitledAnchorList" class="org.apache.royale.site.TitledAnchorList" />
+ <component id="TopBar" class="org.apache.royale.site.TopBar" />x
<component id="TopMenu" class="org.apache.royale.site.TopMenu" />
<component id="TopMenuButton" class="org.apache.royale.site.TopMenuButton" />
+
+ <component id="DocFooter" class="org.apache.royale.site.DocFooter" />
+ <component id="DocPage" class="org.apache.royale.site.DocPage" />
+ <component id="DocSocialButtons" class="org.apache.royale.site.DocSocialButtons" />
+ <component id="DocTagline" class="org.apache.royale.site.DocTagline" />
+ <component id="DocTopBar" class="org.apache.royale.site.DocTopBar" />
+ <component id="DocTopMenu" class="org.apache.royale.site.DocTopMenu" />
+
</componentPackage>
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocFooter.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocFooter.as
index 5e3a924..a17be59 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocFooter.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The DocFooter displays the Footer for the Royale
+ * documentation page.
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocFooter extends Footer
{
/**
* Constructor.
@@ -44,26 +43,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocFooter()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
- }
-
+ typeNames = "DocFooter";
+ }
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocPage.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocPage.as
index 5e3a924..07dfe67 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocPage.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.View;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The DocPage displays the view for the Royale
+ * documentation page.
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocPage extends View
{
/**
* Constructor.
@@ -44,26 +43,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocPage()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
- }
-
+ typeNames += " DocPage";
+ }
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocSocialButtons.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocSocialButtons.as
index 5e3a924..9533d6c 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocSocialButtons.as
@@ -18,23 +18,23 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
+ * The DocSocialButtons is set of social media related
+ * buttons used in the
+ * Apache Royale documentation pages.
*
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocSocialButtons extends SocialButtons
{
/**
* Constructor.
@@ -44,25 +44,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocSocialButtons()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
+ typeNames = "DocSocialButtons SocialButtons";
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTagline.as
similarity index 72%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTagline.as
index 5e3a924..42bd8ca 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTagline.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The DocTagline displays the Royale
+ * tagline "Designed for the future. Code once. Run everywhere."
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocTagline extends UIBase
{
/**
* Constructor.
@@ -44,24 +43,18 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocTagline()
{
super();
- typeNames = "TopMenu";
+ typeNames = "DocTagline Tagline";
}
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
+ COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
+ super.createElement();
+ element.innerHTML = "Designed for the future. Code once. Run everywhere.";
return element;
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as
index 5e3a924..6e87650 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The DocTopBar displays the top bar for the Royale
+ * documentation page.
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocTopBar extends TopBar
{
/**
* Constructor.
@@ -44,26 +43,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocTopBar()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
- }
-
+ typeNames = "DocTopBar TopBar";
+ }
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopMenu.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopMenu.as
index 5e3a924..01893a1 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopMenu.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The DocTopMenu displays the top menu for the Royale
+ * documentation page.
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class DocTopMenu extends TopMenu
{
/**
* Constructor.
@@ -44,26 +43,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function DocTopMenu()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
- }
-
+ typeNames = "DocTopMenu TopMenu";
+ }
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml
new file mode 100644
index 0000000..8c846bf
--- /dev/null
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Footer.mxml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<Div xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns="library://ns.apache.org/royale/html"
+ xmlns:js="library://ns.apache.org/royale/basic"
+ xmlns:rs="library://ns.apache.org/royale/site"
+ xmlns:base="org.apache.royale.site.*">
+ <Div className="Footer">
+ <Div className="footer-column">
+ <rs:TitledAnchorList title="APACHE ROYALE" titleClassName="apacheroyale">
+ <rs:AnchorListData href="index.html">Home</rs:AnchorListData>
+ <rs:AnchorListData href="features.html">Features</rs:AnchorListData>
+ <rs:AnchorListData href="tryitnow/index.html">Try it now</rs:AnchorListData>
+ <rs:AnchorListData href="download.html">Download</rs:AnchorListData>
+ <rs:AnchorListData href="showcase.html">Showcase</rs:AnchorListData>
+ <rs:AnchorListData href="blog.html">Blog</rs:AnchorListData>
+ <rs:AnchorListData href="team.html">Team</rs:AnchorListData>
+ <rs:AnchorListData href="royalenpm.html">Royale in npm</rs:AnchorListData>
+ <rs:AnchorListData href="license.html">License</rs:AnchorListData>
+ </rs:TitledAnchorList>
+ </Div>
+ <Div className="footer-column">
+ <rs:TitledAnchorList title="DOCUMENTATION" titleClassName="documentation">
+ <rs:AnchorListData href="index.html">Getting Started</rs:AnchorListData>
+ <rs:AnchorListData href="docs.html">Docs</rs:AnchorListData>
+ <rs:AnchorListData href="reference/index.html">Reference</rs:AnchorListData>
+ <rs:AnchorListData href="wiki.html">Wiki</rs:AnchorListData>
+ </rs:TitledAnchorList>
+ <rs:TitledAnchorList title="COMMUNITY" titleClassName="community">
+ <rs:AnchorListData href="contribute.html">Get Involved</rs:AnchorListData>
+ <rs:AnchorListData href="mailinglists.html">MailingLists</rs:AnchorListData>
+ <rs:AnchorListData href="faq.html">FAQ</rs:AnchorListData>
+ </rs:TitledAnchorList>
+ </Div>
+ <Div className="footer-column">
+ <rs:TitledAnchorList title="DEVELOPMENT" titleClassName="development">
+ <rs:AnchorListData href="github.html">Github</rs:AnchorListData>
+ <rs:AnchorListData href="source.html">Source Code</rs:AnchorListData>
+ <rs:AnchorListData href="issues.html">Issues</rs:AnchorListData>
+ </rs:TitledAnchorList>
+ <rs:TitledAnchorList title="APACHE" titleClassName="apache">
+ <rs:AnchorListData href="http://www.apache.org/">Apache</rs:AnchorListData>
+ <rs:AnchorListData href="http://www.apache.org/donations.html">Donations</rs:AnchorListData>
+ <rs:AnchorListData href="http://www.apache.org/thanks.html">Sponsorship</rs:AnchorListData>
+ <rs:AnchorListData href="http://www.apache.org/thanks.html">Thanks</rs:AnchorListData>
+ </rs:TitledAnchorList>
+ </Div>
+ <Div className="aboutusdiv" >
+ <P className="aboutus">ABOUT US</P>
+ <P><img class="aboutus-logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/10/apache-royale-logo-footer-circle-grey.svg"/>Apache Royale™ is a highly productive open source application technology for building expressive frontend applications that outputs to different formats and deploy consistently on all major browsers, desktops and devices.</P>
+ <P><img class="aboutus-apache-logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/10/Apache_PoweredBy.svg" />
+ Apache Royale™, Apache™ and the Apache feather logo™ are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. Read more about our privacy policy on our Privacy Policy page.</P>
+ </Div>
+ </Div>
+ <rs:ASFCopyrightAttributionAndLinks />
+</Div>
\ No newline at end of file
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/MainPage.as
similarity index 67%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/MainPage.as
index 5e3a924..02bb572 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/MainPage.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.View;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The MainPage displays the view for the Royale
+ * main web page.
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class MainPage extends View
{
/**
* Constructor.
@@ -44,26 +43,11 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function MainPage()
{
super();
- typeNames = "TopMenu";
- }
-
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
- override protected function createElement():WrappedHTMLElement
- {
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
- return element;
- }
-
+ typeNames += " MainPage";
+ }
}
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Tagline.as
similarity index 72%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Tagline.as
index 5e3a924..ef27dba 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/Tagline.as
@@ -18,23 +18,22 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.royale.site
{
- import org.apache.royale.html.Group;
+ import org.apache.royale.core.UIBase;
COMPILE::JS
{
import org.apache.royale.core.WrappedHTMLElement;
}
/**
- * The TopMenu is set of buttons at the top
- * of the
- * Apache Royale site.
- *
+ * The Tagline displays the Royale
+ * tagline "Designed for the future"
+ *
* @langversion 3.0
* @playerversion Flash 10.2
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class Tagline extends UIBase
{
/**
* Constructor.
@@ -44,24 +43,18 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function Tagline()
{
super();
- typeNames = "TopMenu";
+ typeNames = "Tagline";
}
-
- /**
- * @return The actual element to be parented.
- * @royaleignorecoercion org.apache.royale.core.WrappedHTMLElement
- * @royaleignorecoercion HTMLUListElement
- */
- COMPILE::JS
+ COMPILE::JS
override protected function createElement():WrappedHTMLElement
{
- var ul:HTMLUListElement = document.createElement("ul") as HTMLUListElement;
- element = ul as WrappedHTMLElement;
+ super.createElement();
+ element.innerHTML = "Designed for the future.";
return element;
}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
new file mode 100644
index 0000000..cda29bd
--- /dev/null
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<Div xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns="library://ns.apache.org/royale/html"
+ xmlns:js="library://ns.apache.org/royale/basic"
+ xmlns:rs="library://ns.apache.org/royale/site"
+ xmlns:local="*"
+ className="TopBar">
+ <Img className="logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/11/apache-royale-tm-logo-default.png" />
+ <rs:TopMenu />
+ <rs:SocialButtons />
+</Div>
\ No newline at end of file
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.mxml b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.mxml
new file mode 100644
index 0000000..091fe00
--- /dev/null
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.mxml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+-->
+<base:TopMenuBase xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns="library://ns.apache.org/royale/html"
+ xmlns:js="library://ns.apache.org/royale/basic"
+ xmlns:rs="library://ns.apache.org/royale/site"
+ xmlns:base="org.apache.royale.site.*">
+ <rs:TopMenuButton href="features.html">FEATURES</rs:TopMenuButton>
+ <rs:TopMenuButton href="tryitnow/index.html">TRY IT NOW</rs:TopMenuButton>
+ <rs:TopMenuButton href="download.html">DOWNLOAD</rs:TopMenuButton>
+ <rs:TopMenuButton href="documentation.html">DOCS</rs:TopMenuButton>
+ <rs:TopMenuButton href="blog.html">BLOG</rs:TopMenuButton>
+ <rs:TopMenuButton href="github.html">GITHUB</rs:TopMenuButton>
+</base:TopMenuBase>
\ No newline at end of file
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenuBase.as
similarity index 93%
rename from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
rename to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenuBase.as
index 5e3a924..3bb9d4a 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenu.as
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopMenuBase.as
@@ -25,7 +25,7 @@ package org.apache.royale.site
}
/**
- * The TopMenu is set of buttons at the top
+ * The TopMenuBase is base class for the set of buttons at the top
* of the
* Apache Royale site.
*
@@ -34,7 +34,7 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public class TopMenu extends Group
+ public class TopMenuBase extends Group
{
/**
* Constructor.
@@ -44,7 +44,7 @@ package org.apache.royale.site
* @playerversion AIR 2.6
* @productversion Royale 0.0
*/
- public function TopMenu()
+ public function TopMenuBase()
{
super();
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 07/14: tune up site components
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 87ba0687841bf01bbb000644009eb877fea34d79
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 23:14:08 2018 -0800
tune up site components
---
.../RoyaleSite/src/main/resources/defaults.css | 13 ++++++
.../royale/org/apache/royale/site/DocTopBar.as | 53 ----------------------
.../royale/site/{TopBar.mxml => DocTopBar.mxml} | 4 +-
.../main/royale/org/apache/royale/site/TopBar.mxml | 2 +-
4 files changed, 16 insertions(+), 56 deletions(-)
diff --git a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
index 91edb96..ed282a3 100644
--- a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
+++ b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
@@ -125,7 +125,11 @@ rs|MainPage {
}
rs|DocPage {
+ width: 100%;
background-image: url('http://royale.codeoscopic.com/wp-content/uploads/2017/10/page-bg-1-1920x300.png');
+ background-size: 100%;
+ background-repeat: no-repeat;
+ margin-top: 0px;
}
rs|SocialButtons {
@@ -138,6 +142,8 @@ rs|SocialButtons {
display: inline;
margin-right: 20px;
line-height: 70px;
+ color: inherit;
+ font-size: 16px;
}
rs|DocSocialButtons {
@@ -153,6 +159,11 @@ rs|TopBar {
}
rs|DocTopBar {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ padding-left: 54px;
+ padding-right: 54px;
color: #fff;
}
@@ -173,10 +184,12 @@ rs|TopMenuButton {
font-family: 'Signika';
line-height: 70px;
letter-spacing: 1px;
+ color: inherit;
}
.TopMenuButtonContent {
text-decoration: none;
+ color:inherit;
}
rs|DocTopMenu {
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as
deleted file mode 100644
index 6e87650..0000000
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.as
+++ /dev/null
@@ -1,53 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// Licensed to the Apache Software Foundation (ASF) under one or more
-// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
-// The ASF licenses this file to You under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
-// the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-////////////////////////////////////////////////////////////////////////////////
-package org.apache.royale.site
-{
- import org.apache.royale.core.UIBase;
- COMPILE::JS
- {
- import org.apache.royale.core.WrappedHTMLElement;
- }
-
- /**
- * The DocTopBar displays the top bar for the Royale
- * documentation page.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion Royale 0.0
- */
- public class DocTopBar extends TopBar
- {
- /**
- * Constructor.
- *
- * @langversion 3.0
- * @playerversion Flash 10.2
- * @playerversion AIR 2.6
- * @productversion Royale 0.0
- */
- public function DocTopBar()
- {
- super();
-
- typeNames = "DocTopBar TopBar";
- }
- }
-}
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.mxml
similarity index 91%
copy from frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
copy to frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.mxml
index cda29bd..28b71c4 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/DocTopBar.mxml
@@ -22,8 +22,8 @@ limitations under the License.
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:rs="library://ns.apache.org/royale/site"
xmlns:local="*"
- className="TopBar">
- <Img className="logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/11/apache-royale-tm-logo-default.png" />
+ className="DocTopBar TopBar">
+ <Img className="logo" src="http://royale.codeoscopic.com/wp-content/uploads/2018/01/apache-royale-tm-logo-light.svg" />
<rs:TopMenu />
<rs:SocialButtons />
</Div>
\ No newline at end of file
diff --git a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
index cda29bd..4d08ff5 100644
--- a/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
+++ b/frameworks/projects/RoyaleSite/src/main/royale/org/apache/royale/site/TopBar.mxml
@@ -23,7 +23,7 @@ limitations under the License.
xmlns:rs="library://ns.apache.org/royale/site"
xmlns:local="*"
className="TopBar">
- <Img className="logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/11/apache-royale-tm-logo-default.png" />
+ <Img className="logo" src="http://royale.codeoscopic.com/wp-content/uploads/2018/01/apache-royale-tm-logo-dark.svg" />
<rs:TopMenu />
<rs:SocialButtons />
</Div>
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 02/14: should use typenames instead of classname to
avoid being overwritten by app dev
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 6215adea5b2bb48fc1125d6748904157d2ea27f9
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 12:41:42 2018 -0800
should use typenames instead of classname to avoid being overwritten by app dev
---
.../projects/Basic/src/main/royale/org/apache/royale/core/ViewBase.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ViewBase.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ViewBase.as
index f0a692f..a3acb76 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ViewBase.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/core/ViewBase.as
@@ -62,7 +62,7 @@ package org.apache.royale.core
{
super();
- className = "royale";
+ typeNames = "royale";
}
private var _applicationModel:Object;
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 14/14: implement routing in ASDoc
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit f36cdb5efd26f6425a4e1f06eaa209dec4c3d97b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 14:08:47 2018 -0800
implement routing in ASDoc
---
.../ASDoc/src/main/royale/ASDocMainView.mxml | 42 +++++++++++++++++++---
1 file changed, 38 insertions(+), 4 deletions(-)
diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index e7340aa..0b7f84d 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -22,6 +22,7 @@ limitations under the License.
xmlns:rs="library://ns.apache.org/royale/site"
xmlns:local="*"
width="100%" height="100%"
+ initComplete="applicationModel.addEventListener('packageListChanged', packagesReadyHandler)"
>
<fx:Script>
<![CDATA[
@@ -29,6 +30,12 @@ limitations under the License.
import org.apache.royale.events.Event;
import org.apache.royale.events.DetailEvent;
+ private function packagesReadyHandler(event:Event):void
+ {
+ // wait until package data is ready before updating initial view to any anchor hash
+ updateView();
+ }
+
public var currentPackage:String;
private function packageChangedHandler():void
@@ -62,6 +69,32 @@ limitations under the License.
dispatchEvent(new DetailEvent(viewBeads.selected ? "addTag" : "removeTag", false, false, "viewbead"));
}
+ private function updateView():void
+ {
+ var hash:String = router.hash;
+ if (hash.charAt(0) == "#")
+ hash = hash.substring(1);
+ if (!hash)
+ currentState = "packages";
+ else
+ {
+ var c:int = hash.indexOf("/");
+ if (c != -1)
+ {
+ var pkg:String = hash.substr(0, c);
+ packageList.selectedItem = pkg;
+ packageChangedHandler();
+ var cls:String = hash.substr(c + 1);
+ classList.selectedItem = cls;
+ classChangedHandler();
+ }
+ else
+ {
+ packageList.selectedItem = hash;
+ packageChangedHandler();
+ }
+ }
+ }
]]>
</fx:Script>
<fx:Style>
@@ -108,7 +141,8 @@ limitations under the License.
</js:states>
<js:beads>
<js:ViewDataBinding />
- <js:OneFlexibleChildVerticalLayoutForOverflow flexibleChild="topContainer" />
+ <js:OneFlexibleChildVerticalLayoutForOverflow flexibleChild="topContainer" />
+ <js:HashChangeNotifierBead id="router" hashChange="updateView()" />
</js:beads>
<rs:DocTopBar />
<rs:DocTagline />
@@ -129,10 +163,10 @@ limitations under the License.
<js:beads>
<js:VerticalLayout />
</js:beads>
- <js:List id="packageList" dataProvider="{ASDocModel(applicationModel).packageList}" change="packageChangedHandler()"
+ <js:List id="packageList" dataProvider="{ASDocModel(applicationModel).packageList}"
width="100%" height="50%"
itemRenderer="HashAnchorStringItemRenderer"/>
- <js:List id="classList" dataProvider="{ASDocModel(applicationModel).classList}" change="classChangedHandler()"
+ <js:List id="classList" dataProvider="{ASDocModel(applicationModel).classList}"
width="100%" height="50%"
itemRenderer="HashAnchorStringItemRenderer" labelField="label" />
</js:Group>
@@ -147,7 +181,7 @@ limitations under the License.
</js:beads>
<js:Label className="paneTitle" text="All Packages" width="100%"/>
<js:List className="paneList" id="packagePaneList" dataProvider="{ASDocModel(applicationModel).packageList}"
- itemRenderer="AltBGRenderer" change="packageListChangedHandler()"/>
+ itemRenderer="AltBGRenderer"/>
</js:Group>
<js:Group id="detailsPane" width="100%" includeIn="classDetail">
<js:beads>
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 05/14: refactor example to use new components and
remove clutter
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 6cd45fe84f62ccb868f41b2b676919d65b53529b
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 12:44:32 2018 -0800
refactor example to use new components and remove clutter
---
.../src/main/royale/RoyaleWebsite.mxml | 70 ++--------------------
1 file changed, 6 insertions(+), 64 deletions(-)
diff --git a/examples/royale/RoyaleWebsite/src/main/royale/RoyaleWebsite.mxml b/examples/royale/RoyaleWebsite/src/main/royale/RoyaleWebsite.mxml
index bbd3fd6..46ce8ce 100644
--- a/examples/royale/RoyaleWebsite/src/main/royale/RoyaleWebsite.mxml
+++ b/examples/royale/RoyaleWebsite/src/main/royale/RoyaleWebsite.mxml
@@ -33,27 +33,16 @@ limitations under the License.
</js:valuesImpl>
<js:initialView>
- <js:View width="100%" height="100%" className="page">
- <Div className="topbar">
- <Img src="http://royale.codeoscopic.com/wp-content/uploads/2017/11/apache-royale-tm-logo-default.png" />
- <rs:TopMenu>
- <rs:TopMenuButton href="features.html">FEATURES</rs:TopMenuButton>
- <rs:TopMenuButton href="tryitnow/index.html">TRY IT NOW</rs:TopMenuButton>
- <rs:TopMenuButton href="download.html">DOWNLOAD</rs:TopMenuButton>
- <rs:TopMenuButton href="documentation.html">DOCS</rs:TopMenuButton>
- <rs:TopMenuButton href="blog.html">BLOG</rs:TopMenuButton>
- <rs:TopMenuButton href="github.html">GITHUB</rs:TopMenuButton>
- </rs:TopMenu>
- <rs:SocialButtons />
- </Div>
- <H3>Designed for the future</H3>
+ <rs:MainPage width="100%" height="100%">
+ <rs:TopBar />
+ <rs:Tagline />
<H2>Code Once. Run Everywhere.</H2>
<P className="intro">
Apache Royale™ is a productive open source frontend application technology that allows you to code in MXML & AS3 and output to different formats.
</P>
<Div className="big-buttons">
<rs:BigButton className="red-button" href="getstarted.html">GET STARTED</rs:BigButton>
- <rs:BigButton className="blue-button" href="tryitnow/index.html">TRY IT NOW</rs:BigButton>
+ <!--<rs:BigButton className="blue-button" href="tryitnow/index.html">TRY IT NOW</rs:BigButton>-->
</Div>
<rs:CurvedTop>
<rs:ResponsiveTable>
@@ -89,54 +78,7 @@ limitations under the License.
href="tryitnow/index.html">LEARN MORE ABOUT</rs:BigButton>
</Div>
</Div>
- <Div className="footer">
- <Div className="footer-column">
- <rs:TitledAnchorList title="APACHE ROYALE" titleClassName="apacheroyale">
- <rs:AnchorListData href="index.html">Home</rs:AnchorListData>
- <rs:AnchorListData href="features.html">Features</rs:AnchorListData>
- <rs:AnchorListData href="tryitnow/index.html">Try it now</rs:AnchorListData>
- <rs:AnchorListData href="download.html">Download</rs:AnchorListData>
- <rs:AnchorListData href="showcase.html">Showcase</rs:AnchorListData>
- <rs:AnchorListData href="blog.html">Blog</rs:AnchorListData>
- <rs:AnchorListData href="team.html">Team</rs:AnchorListData>
- <rs:AnchorListData href="royalenpm.html">Royale in npm</rs:AnchorListData>
- <rs:AnchorListData href="license.html">License</rs:AnchorListData>
- </rs:TitledAnchorList>
- </Div>
- <Div className="footer-column">
- <rs:TitledAnchorList title="DOCUMENTATION" titleClassName="documentation">
- <rs:AnchorListData href="index.html">Getting Started</rs:AnchorListData>
- <rs:AnchorListData href="docs.html">Docs</rs:AnchorListData>
- <rs:AnchorListData href="reference/index.html">Reference</rs:AnchorListData>
- <rs:AnchorListData href="wiki.html">Wiki</rs:AnchorListData>
- </rs:TitledAnchorList>
- <rs:TitledAnchorList title="COMMUNITY" titleClassName="community">
- <rs:AnchorListData href="contribute.html">Get Involved</rs:AnchorListData>
- <rs:AnchorListData href="mailinglists.html">MailingLists</rs:AnchorListData>
- <rs:AnchorListData href="faq.html">FAQ</rs:AnchorListData>
- </rs:TitledAnchorList>
- </Div>
- <Div className="footer-column">
- <rs:TitledAnchorList title="DEVELOPMENT" titleClassName="development">
- <rs:AnchorListData href="github.html">Github</rs:AnchorListData>
- <rs:AnchorListData href="source.html">Source Code</rs:AnchorListData>
- <rs:AnchorListData href="issues.html">Issues</rs:AnchorListData>
- </rs:TitledAnchorList>
- <rs:TitledAnchorList title="APACHE" titleClassName="apache">
- <rs:AnchorListData href="http://www.apache.org/">Apache</rs:AnchorListData>
- <rs:AnchorListData href="http://www.apache.org/donations.html">Donations</rs:AnchorListData>
- <rs:AnchorListData href="http://www.apache.org/thanks.html">Sponsorship</rs:AnchorListData>
- <rs:AnchorListData href="http://www.apache.org/thanks.html">Thanks</rs:AnchorListData>
- </rs:TitledAnchorList>
- </Div>
- <Div className="aboutusdiv" >
- <P className="aboutus">ABOUT US</P>
- <P><img class="aboutus-logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/10/apache-royale-logo-footer-circle-grey.svg"/>Apache Royale™ is a highly productive open source application technology for building expressive frontend applications that outputs to different formats and deploy consistently on all major browsers, desktops and devices.</P>
- <P><img class="aboutus-apache-logo" src="http://royale.codeoscopic.com/wp-content/uploads/2017/10/Apache_PoweredBy.svg" />
- Apache Royale™, Apache™ and the Apache feather logo™ are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners. Read more about our privacy policy on our Privacy Policy page.</P>
- </Div>
- </Div>
- <rs:ASFCopyrightAttributionAndLinks />
- </js:View>
+ <rs:Footer />
+ </rs:MainPage>
</js:initialView>
</js:Application>
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 13/14: simple routing for JS
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 71484c4afee6be0a250eb771839a88aa1c590459
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 14:08:30 2018 -0800
simple routing for JS
---
.../Basic/src/main/resources/basic-manifest.xml | 2 +
.../royale/routing/HashChangeNotifierBead.as | 99 ++++++++++++++++++++++
2 files changed, 101 insertions(+)
diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
index 4da5734..620cd3c 100644
--- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
@@ -196,4 +196,6 @@
<component id="TreeGrid" class="org.apache.royale.html.TreeGrid" />
<component id="TreeGridColumn" class="org.apache.royale.html.supportClasses.TreeGridColumn" />
+ <component id="HashChangeNotifierBead" class="org.apache.royale.routing.HashChangeNotifierBead" />
+
</componentPackage>
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashChangeNotifierBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashChangeNotifierBead.as
new file mode 100644
index 0000000..0102403
--- /dev/null
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/routing/HashChangeNotifierBead.as
@@ -0,0 +1,99 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.routing
+{
+
+ import org.apache.royale.core.IBead;
+ import org.apache.royale.core.IStrand;
+ import org.apache.royale.events.Event;
+ import org.apache.royale.events.IEventDispatcher;
+ import org.apache.royale.events.EventDispatcher;
+
+ /**
+ * Dispatched when the hash portion of the URL has changed
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ */
+ [Event(name="hashChange", type="org.apache.royale.events.Event")]
+
+ /**
+ * The HashChangeNotifierBead class allows you to respond to the hash changing on the url.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ */
+
+ public class HashChangeNotifierBead extends EventDispatcher implements IBead
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ */
+ public function HashChangeNotifierBead()
+ {
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.royale.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.9
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+ COMPILE::JS
+ {
+ window.addEventListener("hashchange", hashChangeHandler);
+ }
+ }
+
+ public function get hash():String
+ {
+ COMPILE::JS
+ {
+ return location.hash;
+ }
+ COMPILE::SWF
+ {
+ return null; //TODO (aharui) SWF impl
+ }
+ }
+
+ private function hashChangeHandler():void
+ {
+ dispatchEvent(new Event("hashChange"));
+ }
+
+
+ }
+}
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 11/14: use typenames
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 818c715512fca7cb6cdcbf90b309e0870f1c33cc
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 12:24:09 2018 -0800
use typenames
---
.../royale/org/apache/royale/html/supportClasses/StringItemRenderer.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
index 0160dbc..987836d 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/StringItemRenderer.as
@@ -56,6 +56,8 @@ package org.apache.royale.html.supportClasses
{
super();
+ typeNames = 'StringItemRenderer';
+
COMPILE::SWF
{
textField = new CSSTextField();
@@ -163,7 +165,6 @@ package org.apache.royale.html.supportClasses
override protected function createElement():WrappedHTMLElement
{
element = document.createElement('span') as WrappedHTMLElement;
- className = 'StringItemRenderer';
// itemRenderers should provide something for the background to handle
// the selection and highlight
backgroundView = element;
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 04/14: put custom fonts in template
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 8f31e43ebf340a63eef075752e677a8ff03a8f2a
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 12:43:33 2018 -0800
put custom fonts in template
---
.../src/main/resources/royale-index-template.html | 242 +++++++++++++++++++++
1 file changed, 242 insertions(+)
diff --git a/examples/royale/RoyaleWebsite/src/main/resources/royale-index-template.html b/examples/royale/RoyaleWebsite/src/main/resources/royale-index-template.html
index 0d97bee..4260958 100644
--- a/examples/royale/RoyaleWebsite/src/main/resources/royale-index-template.html
+++ b/examples/royale/RoyaleWebsite/src/main/resources/royale-index-template.html
@@ -23,6 +23,248 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="RoyaleWebsite.css" />
+ <style>
+ /* bengali */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn0qii7chi9RE_lAY9XU9O0g.woff2) format('woff2');
+ unicode-range: U+0964-0965, U+0981-09FB, U+200B-200D, U+20B9, U+25CC;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn82vutNS_CBIjVgecJYPrsw.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Hind Siliguri Light'), local('HindSiliguri-Light'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/fBpmjMpv5Rh6S25yVfWJn88Q1G5JROVRiyA48x3Y_E4.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* bengali */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0AqEXMZVoFOEO38LXywQmS6I.woff2) format('woff2');
+ unicode-range: U+0964-0965, U+0981-09FB, U+200B-200D, U+20B9, U+25CC;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0AoEMFHo8fJCOZjaCxXVE7N0.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Hind Siliguri';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Hind Siliguri Regular'), local('HindSiliguri-Regular'), url(https://fonts.gstatic.com/s/hindsiliguri/v4/f2eEi2pbIa8eBfNwpUl0Ahbke1jeBh3drm8XFbAU4Xs.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xPX7z5o44AuUJ1t1avdkNXJ_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xLLF6RfyvCYuuChpfFHKAr5_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xIbCcO5IWJIaQ5MtZqYsHUp_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xHQ3DnTiPFZC1qn696_nOv9_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xLzZT6Zu7Z-BZJGL0hT-UJV_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xPJmhJzg6kSQTtrFMk-8lT5_v5H-gcmDugi2HQeB0BPm.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Open Sans Condensed';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Open Sans Condensed Bold'), local('OpenSansCondensed-Bold'), url(https://fonts.gstatic.com/s/opensanscondensed/v12/gk5FxslNkTTHtojXrkp-xIgEy7irt_A5K-aDq9kG7DHr7w4p9aSvGirXi6XmeXNA.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/FPi-c3aUC3zvYWzrDQQz-4X0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/easTUkYIpjx9W4QcIr8U1IX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/FVV1uRqs2-G7nbyX6T7UGYX0hVgzZQUfRDuZrPvH3D8.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Oswald';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Oswald SemiBold'), local('Oswald-SemiBold'), url(https://fonts.gstatic.com/s/oswald/v16/y5-5zezrZlJHkmIVxRH3BZBw1xU1rKptJj_0jans920.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Signika Regular'), local('Signika-Regular'), url(https://fonts.gstatic.com/s/signika/v8/ES-hggNmXmQgA9p5FjvOJ1KPGs1ZzpMvnHX-7fPOuAc.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 400;
+ src: local('Signika Regular'), local('Signika-Regular'), url(https://fonts.gstatic.com/s/signika/v8/DgXTNsU4VcVVFTc7jwBZzwLUuEpTyoUstqEm5AMlJo4.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Signika SemiBold'), local('Signika-SemiBold'), url(https://fonts.gstatic.com/s/signika/v8/8-PQNacfI9IhpgehJGCuGAsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Signika SemiBold'), local('Signika-SemiBold'), url(https://fonts.gstatic.com/s/signika/v8/FZa_MODmDkR9DTu5jHSnSQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Signika Bold'), local('Signika-Bold'), url(https://fonts.gstatic.com/s/signika/v8/F587cG5P5ff3TX6w4JlorwsYbbCjybiHxArTLjt7FRU.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Signika';
+ font-style: normal;
+ font-weight: 700;
+ src: local('Signika Bold'), local('Signika-Bold'), url(https://fonts.gstatic.com/s/signika/v8/7M5kxD4eGxuhgFaIk95pBQzyDMXhdD8sAj6OAJTFsBI.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+/* cyrillic-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGGWGG8n76xaP_JUl9houU473rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMP5gXq4cN8pjVji5g2q9Mf3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGIwxT-R1rCKQkeTtsDWzfjL3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGFCUBMgATkHAQY-Bv-74xcn3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMZXFz2iDKd7GJNSaxRYiSj3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGKyGJhAh-RE0BxGcd_izyev3rGVtsTkPsbDajuO5ueQw.woff2) format('woff2');
+ unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+ font-family: 'Source Sans Pro';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Source Sans Pro SemiBold'), local('SourceSansPro-SemiBold'), url(https://fonts.gstatic.com/s/sourcesanspro/v11/toadOcfmlt9b38dHJxOBGMzFoXZ-Kj537nB_-9jJhlA.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212, U+2215;
+}
+ </style>
<title>Apache Royale</title>
${head}
</head>
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 06/14: handle display specified in stylesheets
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit edef66c32a2c2a0926bd91620b4337814c324a9c
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Feb 1 23:13:39 2018 -0800
handle display specified in stylesheets
---
.../html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
index 6673f1f..8e5336b 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/layouts/OneFlexibleChildVerticalLayoutForOverflow.as
@@ -132,7 +132,8 @@ package org.apache.royale.html.beads.layouts
for(var i:int=0; i < n; i++) {
var child:UIBase = contentView.getElementAt(i) as UIBase;
- if (child.element.style["display"] != "flex" && child.element.style["display"] != "none")
+ var display:String = getComputedStyle(child.element)["display"];
+ if (display != "flex" && display != "none")
child.element.style["display"] = "block";
}
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 10/14: AlternatingBackgroundColor renderer
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 41eb80478d3ca7755915386a0331c3d446d17cc5
Author: Alex Harui <ah...@apache.org>
AuthorDate: Fri Feb 2 11:24:25 2018 -0800
AlternatingBackgroundColor renderer
---
.../ASDoc/src/main/royale/ASDocMainView.mxml | 8 +-
.../Basic/src/main/resources/basic-manifest.xml | 1 +
...AlternatingBackgroundColorStringItemRenderer.as | 96 ++++++++++++++++++++++
3 files changed, 104 insertions(+), 1 deletion(-)
diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index efbc016..19f92dc 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -90,6 +90,11 @@ limitations under the License.
}
</fx:Style>
+ <fx:Declarations>
+ <fx:Component className="AltBGRenderer">
+ <js:AlternatingBackgroundColorStringItemRenderer backgroundColor0="#ffffff" backgroundColor1="#ffeeee" />
+ </fx:Component>
+ </fx:Declarations>
<js:states>
<js:State name="packages" />
<js:State name="classDetail" />
@@ -130,7 +135,8 @@ limitations under the License.
<js:VerticalLayout />
</js:beads>
<js:Label className="paneTitle" text="All Packages" width="100%"/>
- <js:List className="paneList" id="packagePaneList" dataProvider="{ASDocModel(applicationModel).packageList}" change="packageListChangedHandler()"/>
+ <js:List className="paneList" id="packagePaneList" dataProvider="{ASDocModel(applicationModel).packageList}"
+ itemRenderer="AltBGRenderer" change="packageListChangedHandler()"/>
</js:Group>
<js:Group id="detailsPane" width="100%" includeIn="classDetail">
<js:beads>
diff --git a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
index ad0ac29..4da5734 100644
--- a/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
+++ b/frameworks/projects/Basic/src/main/resources/basic-manifest.xml
@@ -93,6 +93,7 @@
<component id="Spinner" class="org.apache.royale.html.Spinner"/>
<component id="Slider" class="org.apache.royale.html.Slider"/>
<component id="NumericStepper" class="org.apache.royale.html.NumericStepper" />
+ <component id="AlternatingBackgroundColorStringItemRenderer" class="org.apache.royale.html.supportClasses.AlternatingBackgroundColorStringItemRenderer"/>
<component id="StringItemRenderer" class="org.apache.royale.html.supportClasses.StringItemRenderer"/>
<component id="AccordionItemRenderer" class="org.apache.royale.html.supportClasses.AccordionItemRenderer"/>
<component id="AccordionCollapseBead" class="org.apache.royale.html.beads.AccordionCollapseBead"/>
diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/AlternatingBackgroundColorStringItemRenderer.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/AlternatingBackgroundColorStringItemRenderer.as
new file mode 100644
index 0000000..a9e3a80
--- /dev/null
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/supportClasses/AlternatingBackgroundColorStringItemRenderer.as
@@ -0,0 +1,96 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package org.apache.royale.html.supportClasses
+{
+
+ /**
+ * The AlternatingBackgroundColorStringItemRenderer class displays data in string form using the data's toString()
+ * function and alternates between two background colors. This is the most simple implementation for immutable lists
+ * and will not handle adding/removing renderers.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public class AlternatingBackgroundColorStringItemRenderer extends StringItemRenderer
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion Royale 0.0
+ */
+ public function AlternatingBackgroundColorStringItemRenderer()
+ {
+ }
+
+ private var _color0:String;
+
+ public function get backgroundColor0():String
+ {
+ return _color0;
+ }
+ public function set backgroundColor0(value:String):void
+ {
+ _color0 = value;
+ }
+
+ private var _color1:String;
+
+ public function get backgroundColor1():String
+ {
+ return _color1;
+ }
+ public function set backgroundColor1(value:String):void
+ {
+ _color1 = value;
+ }
+
+ private var oddIndex:Boolean;
+
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+
+ var index:int = parent.getElementIndex(this);
+ oddIndex = ((index % 2) == 1)
+ COMPILE::JS
+ {
+ element.style.backgroundColor = oddIndex ? _color1 : _color0;
+ }
+ }
+
+ /**
+ * @private
+ */
+ override public function updateRenderer():void
+ {
+ super.updateRenderer();
+ COMPILE::JS
+ {
+ if (element.style.backgroundColor == null || element.style.backgroundColor == "")
+ element.style.backgroundColor = oddIndex ? _color1 : _color0;
+ }
+ }
+
+ }
+}
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.
[royale-asjs] 01/14: start copying from doc template
Posted by ah...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
aharui pushed a commit to branch feature/royalesite
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 5ac0faef3e054ac5f052227156c4cbed4c183a3f
Author: Alex Harui <ah...@apache.org>
AuthorDate: Tue Jan 30 12:58:11 2018 -0800
start copying from doc template
---
frameworks/projects/RoyaleSite/src/main/resources/defaults.css | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
index 234b365..d1c65c0 100644
--- a/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
+++ b/frameworks/projects/RoyaleSite/src/main/resources/defaults.css
@@ -108,13 +108,14 @@ BigButton {
SocialButtons {
display: inline;
- position: absolute;
- right: 0px;
+ margin-top: 0px;
+ height: 40px;
}
.SocialButton {
display: inline;
margin-right: 20px;
+ line-height: 70px;
}
.topbar {
--
To stop receiving notification emails like this one, please contact
aharui@apache.org.