You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2022/10/21 12:46:30 UTC
[cordova-docs] branch master updated: site(contribute): various updates (#1268)
This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 9a8e629e9 site(contribute): various updates (#1268)
9a8e629e9 is described below
commit 9a8e629e98ec9f32cf2abd35f759132a001914b4
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri Oct 21 21:46:23 2022 +0900
site(contribute): various updates (#1268)
* site(contribute): remove contributors link
* site(contribute): remove view all issues (JIRA)
* site(contribute): remove search current issue list (JIRA)
* site(contribute): first repo item to match all items
* site(contribute): improve layout design & update GitHub mark
* site(contribute): update project list
* site(contribute): update slack invite url
* site(contribute): update slack invite url in guideline
---
www/_data/contribute-repo-links.yml | 21 ++++++++++----
www/contribute/contribute_guidelines.md | 2 +-
www/contribute/index.html | 28 ++++---------------
www/static/css-src/_contribute.scss | 24 ++++------------
www/static/img/github-mark.png | Bin 0 -> 4044 bytes
www/static/js/index.js | 47 --------------------------------
6 files changed, 27 insertions(+), 95 deletions(-)
diff --git a/www/_data/contribute-repo-links.yml b/www/_data/contribute-repo-links.yml
index 400c0dbba..952bed38f 100644
--- a/www/_data/contribute-repo-links.yml
+++ b/www/_data/contribute-repo-links.yml
@@ -7,12 +7,6 @@
- project: iOS
mirror: https://github.com/apache/cordova-ios
- - project: Mac OS X
- mirror: https://github.com/apache/cordova-osx
-
- - project: Windows (desktop)
- mirror: https://github.com/apache/cordova-windows
-
- project: Browser
mirror: https://github.com/apache/cordova-browser
@@ -30,12 +24,21 @@
- project: Device
mirror: https://github.com/apache/cordova-plugin-device
+ - project: Device Motion
+ mirror: https://github.com/apache/cordova-plugin-device-motion
+
+ - project: Device Orientation
+ mirror: https://github.com/apache/cordova-plugin-device-orientation
+
- project: Dialogs
mirror: https://github.com/apache/cordova-plugin-dialogs
- project: File
mirror: https://github.com/apache/cordova-plugin-file
+ - project: File Transfer
+ mirror: https://github.com/apache/cordova-plugin-file-transfer
+
- project: Geolocation
mirror: https://github.com/apache/cordova-plugin-geolocation
@@ -92,6 +95,12 @@
- project: Cordova Fetch
mirror: https://github.com/apache/cordova-fetch
+ - project: Cordova Node Xcode (Parser Utility)
+ mirror: https://github.com/apache/cordova-node-xcode
+
+ - project: Cordova Eslint
+ mirror: https://github.com/apache/cordova-eslint
+
- project: Cordova Mobile Spec (Test Suite)
mirror: https://github.com/apache/cordova-mobile-spec
diff --git a/www/contribute/contribute_guidelines.md b/www/contribute/contribute_guidelines.md
index 738691fd9..a020265bb 100644
--- a/www/contribute/contribute_guidelines.md
+++ b/www/contribute/contribute_guidelines.md
@@ -5,7 +5,7 @@ title: Apache Cordova Contribute Guidelines
# Contributor Guidelines
-Thanks for helping to improve Cordova! This page provides a general guide on making contributions to Cordova. If you can't find something on this page, please feel free to contact the [dev mailing list](https://cordova.apache.org/contact) or ask questions on the [Cordova Slack](http://slack.cordova.io/).
+Thanks for helping to improve Cordova! This page provides a general guide on making contributions to Cordova. If you can't find something on this page, please feel free to contact the [dev mailing list](https://cordova.apache.org/contact) or ask questions on the [Cordova Slack](https://s.apache.org/cordova-slack).
## Prerequisites
diff --git a/www/contribute/index.html b/www/contribute/index.html
index e287209f8..225d1f5bd 100644
--- a/www/contribute/index.html
+++ b/www/contribute/index.html
@@ -20,26 +20,16 @@ title: Contribute
<li>File a <a href="./issues.html">bug or task</a></li>
<li>Read the <a href="./contribute_guidelines.html">Contributor Guidelines</a></li>
<li>Join the <a href="{{ site.baseurl }}/contact">Dev mailing list</a> and send a brief introduction of yourself to it</li>
- <li>Join the discussion on <a href="http://slack.cordova.io/">Slack</a></li>
+ <li>Join the discussion on <a href="https://s.apache.org/cordova-slack">Slack</a></li>
<li>Try out the next version of Cordova using <a href="{{ site.baseurl }}/contribute/nightly_builds.html">nightly builds</a></li>
</ul>
</div>
<div class="col-sm-5">
<div class="well">
- <div class="input-group">
- <input id="jira-search-box" type="text" class="form-control" placeholder="Search current issue list...">
- <span class="input-group-btn">
- <button id="jira-search-button" class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>
- </span>
- </div>
<ul class="nav issue-links">
- <li>
- <span class="glyphicon glyphicon-warning-sign"></span><i> </i>
- <a href="https://issues.apache.org/jira/browse/CB/?selectedTab=com.atlassian.jira.jira-projects-plugin:issues-panel">View All Issues</a>
- </li>
<li>
<span class="glyphicon glyphicon-list-alt"></span><i> </i>
- See all <a href="https://home.apache.org/phonebook.html?unix=cordova">Committers</a> / <a href="https://people.apache.org/unlistedclas.html">Contributors</a>
+ See all <a href="https://home.apache.org/phonebook.html?unix=cordova">Committers</a>
</li>
<li>
<span class="glyphicon glyphicon-user"></span><i> </i>
@@ -57,18 +47,10 @@ title: Contribute
<h2>{{ projectType.title }}</h2>
{% for project in projectType.projects %}
- {% if firstProjectType and forloop.first %}
- {% assign itemClass = "first" %}
- {% else %}
- {% assign itemClass = "" %}
- {% endif %}
-
- <li class="{{ itemClass }}">
+ <li>
<div class="row">
- <div class="col-xs-12 col-sm-8 project-label">
- {{ project.project }}
- </div>
- <div class="col-xs-12 col-sm-4 project-links">
+ <div class="col-xs-8 col-sm-8 project-label">{{ project.project }}</div>
+ <div class="col-xs-4 col-sm-4 project-links">
<div class="link-box">
<a class="link-github" target="_blank" href="{{ project.mirror }}"></a>
</div>
diff --git a/www/static/css-src/_contribute.scss b/www/static/css-src/_contribute.scss
index d47bd69a7..f12fae1bb 100644
--- a/www/static/css-src/_contribute.scss
+++ b/www/static/css-src/_contribute.scss
@@ -64,9 +64,10 @@
-moz-transition: background 0.25s linear;
transition: background 0.25s linear;
width: 36px;
- background: url("{{ site.baseurl }}/static/img/sprite.png") no-repeat;
- background-position: 3px -127px;
+ background: url("{{ site.baseurl }}/static/img/github-mark.png") no-repeat;
background-color: #4cc2e4;
+ background-size: 24px;
+ background-position: center;
height: 36px;
}
@@ -75,12 +76,10 @@
margin-right: 3px;
}
- a.link-github {
- background-position: 3px -127px;
- }
-
.project-label {
margin: 8px -8px 8px 8px;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
}
@@ -90,10 +89,6 @@
width: 115px;
}
- a.link-github {
- width: 90px;
- }
-
.project-label {
width: 35%;
}
@@ -117,20 +112,13 @@
margin-right: 3px;
}
- a.link-github {
- background-position: 3px -127px;
- width: 90px;
- }
-
.project-label{
+ margin: 0px -8px 0px 8px;
text-align: center;
padding: 12px;
- margin: 0px;
}
.link-box {
- width: 49.5%;
- display: inline-block;
text-align: center;
background-color: $brand-primary;
padding-top: 4px;
diff --git a/www/static/img/github-mark.png b/www/static/img/github-mark.png
new file mode 100644
index 000000000..192846a12
Binary files /dev/null and b/www/static/img/github-mark.png differ
diff --git a/www/static/js/index.js b/www/static/js/index.js
index eb3af2047..a10d3e5a1 100644
--- a/www/static/js/index.js
+++ b/www/static/js/index.js
@@ -17,45 +17,6 @@
// specific language governing permissions and limitations
// under the License.
-function submitJiraSearchForm() {
- var queryTemplate1 = '(summary ~ "%1" OR description ~ "%1" OR comment ~ "%1") AND ';
- var queryTemplate2 = 'project = CB AND resolution = Unresolved %2ORDER BY created';
- var componentKeywords = [
- /\b(ios|iphone|ipad|ipod)\b/ig, 'iOS',
- /\b(android)\b/ig, 'Android',
- /\b(blackberry|rim|bb.?|bb10|webworks)\b/ig, 'BlackBerry',
- /\b(webos)\b/ig, 'webOS',
- /\b(wp7|windows phone)\b/ig, 'WP7',
- /\b(wp8|windows phone)\b/ig, 'WP8'
- ];
- var query = document.getElementById('jira-search-box').value;
- // Check for some platform keywords:
- var components = [];
- for (var i = 0; i < componentKeywords.length; i += 2) {
- if (query.match(componentKeywords[i])) {
- query = query.replace(componentKeywords[i], '');
- components.push(componentKeywords[i + 1]);
- }
- }
- var componentsQuery = '';
- if (components.length) {
- // Add in components that apply to all platforms.
- components.push('Docs', 'mobile-spec', 'CordovaJS');
- componentsQuery = 'AND component in (' + components.join(', ') + ') ';
- }
- // Remove quotes since we are adding them in.
- query = query.replace(/"/g, '');
- var tokens = query.split(/\s+/);
- query = '';
- for (var i = 0; i < tokens.length; ++i) {
- if (tokens[i]) {
- query += queryTemplate1.replace(/%1/g, tokens[i]);
- }
- }
- query += queryTemplate2.replace('%2', componentsQuery)
- window.open('https://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=show&reset=true&navType=simple&jqlQuery=' + encodeURIComponent(query), '_newtab' + new Date);
-}
-
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
@@ -186,12 +147,4 @@ $(document).ready(function () {
);
}
});
-
- // jira search code
- $("#jira-search-button").on("click", submitJiraSearchForm);
- $("#jira-search-box").on("keypress", function searchKeypressEventHandler (e) {
- if(e.keyCode == 13) {
- submitJiraSearchForm();
- }
- });
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org