cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mura...@apache.org
Subject [3/3] cordova-registry-web git commit: Perf improvements and other updates
Date Wed, 12 Aug 2015 01:51:54 GMT
Perf improvements and other updates


Project: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/commit/a820ef4e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/a820ef4e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/a820ef4e

Branch: refs/heads/master
Commit: a820ef4ed94e3c2aa2557ac8df1698a2c7e8a75e
Parents: 48600a0
Author: Murat Sutunc <sutunc@gmail.com>
Authored: Thu Aug 6 17:05:14 2015 -0700
Committer: Murat Sutunc <sutunc@gmail.com>
Committed: Tue Aug 11 18:50:20 2015 -0700

----------------------------------------------------------------------
 attachments/npm/authors.html       |  84 ++++++++++++++++++
 attachments/npm/css/styles.css     |   2 +-
 attachments/npm/faq.html           |  13 ++-
 attachments/npm/img/loading.gif    | Bin 0 -> 7573 bytes
 attachments/npm/index.html         |   4 +-
 attachments/npm/js/app.js          |  13 +--
 npm-search/src/authors.html        |  84 ++++++++++++++++++
 npm-search/src/css/base.css        |   2 +-
 npm-search/src/developers.html     |  75 ----------------
 npm-search/src/faq.html            |  13 ++-
 npm-search/src/img/loading.gif     | Bin 0 -> 25213 bytes
 npm-search/src/index.html          |   4 +-
 npm-search/src/js/app.js           | 121 +++++++++++++++++++++++---
 npm-search/src/js/empty-plugin.jsx |  18 ++++
 npm-search/src/js/plugin.jsx       |   8 +-
 npm-search/src/js/pluginlist.jsx   | 150 ++++++++++++--------------------
 16 files changed, 393 insertions(+), 198 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/authors.html
----------------------------------------------------------------------
diff --git a/attachments/npm/authors.html b/attachments/npm/authors.html
new file mode 100644
index 0000000..5cfb73d
--- /dev/null
+++ b/attachments/npm/authors.html
@@ -0,0 +1,84 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv='Content-type' content='text/html; charset=utf-8'>
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1,
user-scalable=no">
+    <title>Cordova Search Website</title>
+    <link rel="stylesheet" href="css/styles.css" />
+  </head>
+
+  <body>
+    <div id="header">
+      <div class="wrap">
+          <a class="logo" href="//cordova.apache.org/"></a>
+          <div class="menu">
+              <a href="index.html">Home</a>
+              <a href="authors.html">Authors</a>
+              <a href="faq.html">FAQ</a>
+          </div>
+          <form class="menu-dropdown">
+              <select onchange="location = this.options[this.selectedIndex].value;">
+                  <option value="index.html">Home</option>
+                  <option value="authors.html">Authors</option>
+                  <option value="faq.html">FAQ</option>
+              </select>
+          </form>
+      </div>
+      <div class="shadow"></div>
+    </div>
+    <div class="header-placeholder"></div>
+    <div class="wrap">
+      <h2 class="icon icon-about">npm Plugin Search for Plugin Authors</h2>
+      <h4>How do I add a new plugin to Plugin Search?</h4>
+      <p>If you want your Cordova Plugin to show up in search, simply add <code>ecosystem:cordova</code>
keyword to the <code>package.json</code> file of your plugin and publish it to
npm registry.</p>
+      <h4>How can I tag supported platforms for my plugin?</h4>
+      <p>Similar to <code>ecosystem:cordova</code>, platform support too
uses keywords. Just add the platform name prefixed with "<strong>cordova-</strong>"
to plugins list of keywords. E.g.</p>
+      <pre><code>  "keywords": [
+          "ecosystem:cordova",
+          "cordova-android",
+          "cordova-ios",
+          "cordova-windows"
+        ]</code></pre>
+      <h4>My plugin is in plugins.cordova.io but I want to publish to npm. How do I
do that?</h4>
+      <ol>
+        <li>
+          <strong>Optional</strong> Decide if you want to change your plugin’s
id. If you decide to change it,
+          <ol>
+            <li>Update the id in plugin.xml and update your readme with the new id.</li>
+            <li>Send a pull request adding your new id and old id to Cordova Registry
Mapper.</li>
+            <li>We integrate that module into the Cordova CLI to warn users to use
the new id when adding plugins to their projects.</li>
+          </ol>
+        </li>
+        <li>Add a <code>package.json</code> to your plugins,
+          <ul>
+            <li>
+              <strong>Note</strong>: To keep things simple, please make sure
your <code>id</code> in <code>plugin.xml</code> is the same as your
<code>package-name</code> in <code>package.json</code>.</li>
+            <li>Use <code>plugman createpackagejson [PLUGIN DIRECTORY]</code>
to create <code>package.json</code>.
+              <ul>
+                <li>This will create defaults based on existing values in your <code>plugin.xml</code>.</li>
+                <li>It will also automatically add the keyword <code>ecosystem:cordova</code>
to your newly generated package.json file.</li>
+                <li>In addition, a cordova key will be added to your <code>package.json</code>
which we plan to use in future updates of the tooling.</li>
+              </ul>
+            </li>
+            <li>View the <code>package.json</code> of <a href="https://github.com/apache/cordova-plugin-device/blob/master/package.json"
target="_blank">cordova-plugin-device</a> to see an example of what your <code>package.json</code>
should look like after running <code>plugman createpackagejson [PLUGIN DIRECTORY]</code>
command.</li>
+            <li>Plugins still require a <code>plugin.xml</code> to be installed
into <strong>Cordova</strong> projects.</li>
+          </ul>
+        </li>
+        <li>Publish your plugin to npm using the <code>npm publish [PLUGIN DIRECTORY]</code>.</li>
+      </ol>
+      <h4>Are there any additional documents to assist me with plugins?</h4>
+      <p>Yes there are. Please take a look at <a href="http://cordova.apache.org/docs/en/edge/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide"
target="_blank">Plugin Development Guide</a> for a more detailed guide.</p>
+      <h4>I don't like X. How can I help improve the website?</h4>
+      <p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22"
target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web"
target="_blank">GitHub</a>.</p>
+    </div>
+    <script>
+      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+      ga('create', 'UA-64283057-2', 'auto');
+      ga('send', 'pageview');
+    </script>
+  </body>
+</html>

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/css/styles.css
----------------------------------------------------------------------
diff --git a/attachments/npm/css/styles.css b/attachments/npm/css/styles.css
index 2d0181b..1dd7612 100644
--- a/attachments/npm/css/styles.css
+++ b/attachments/npm/css/styles.css
@@ -431,7 +431,7 @@ html {
 
 body {
   font-family: 'Segoe UI', tahoma, arial, helvetica, sans-serif;
-  font-size: 1.6rem;
+  font-size: 1.6em;
   margin: 0;
 }
 

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/faq.html
----------------------------------------------------------------------
diff --git a/attachments/npm/faq.html b/attachments/npm/faq.html
index a3b7d03..c945922 100644
--- a/attachments/npm/faq.html
+++ b/attachments/npm/faq.html
@@ -13,13 +13,13 @@
           <a class="logo" href="//cordova.apache.org/"></a>
           <div class="menu">
               <a href="index.html">Home</a>
-              <a href="developers.html">Developers</a>
+              <a href="authors.html">Authors</a>
               <a href="faq.html">FAQ</a>
           </div>
           <form class="menu-dropdown">
               <select onchange="location = this.options[this.selectedIndex].value;">
                   <option value="index.html">Home</option>
-                  <option value="developers.html">Developers</option>
+                  <option value="authors.html">Authors</option>
                   <option value="faq.html">FAQ</option>
               </select>
           </form>
@@ -52,5 +52,14 @@
       <h4>I don't like X. How can I help improve the website?</h4>
       <p>You can help improving this site by opening bugs on <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20%3D%20Open%20AND%20component%20%3D%20%22Registry%20Web%22"
target="_blank">JIRA</a> or by sending PRs on <a href="https://github.com/apache/cordova-registry-web"
target="_blank">GitHub</a>.</p>
     </div>
+    <script>
+      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+      ga('create', 'UA-64283057-2', 'auto');
+      ga('send', 'pageview');
+    </script>
   </body>
 </html>

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/img/loading.gif
----------------------------------------------------------------------
diff --git a/attachments/npm/img/loading.gif b/attachments/npm/img/loading.gif
new file mode 100644
index 0000000..c7ca402
Binary files /dev/null and b/attachments/npm/img/loading.gif differ

http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/a820ef4e/attachments/npm/index.html
----------------------------------------------------------------------
diff --git a/attachments/npm/index.html b/attachments/npm/index.html
index e7b8453..e8ffd7d 100644
--- a/attachments/npm/index.html
+++ b/attachments/npm/index.html
@@ -33,13 +33,13 @@
           <a class="logo" href="//cordova.apache.org/"></a>
           <div class="menu">
               <a href="index.html">Home</a>
-              <a href="developers.html">Developers</a>
+              <a href="authors.html">Authors</a>
               <a href="faq.html">FAQ</a>
           </div>
           <form class="menu-dropdown">
               <select onchange="location = this.options[this.selectedIndex].value;">
                   <option value="index.html">Home</option>
-                  <option value="developers.html">Developers</option>
+                  <option value="authors.html">Authors</option>
                   <option value="faq.html">FAQ</option>
               </select>
           </form>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message