You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/04/07 23:07:01 UTC
[05/53] [abbrv] git commit: Cleaning up the repo
Cleaning up the repo
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/3243029e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/tree/3243029e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-registry-web/diff/3243029e
Branch: refs/heads/master
Commit: 3243029e88b49d2df7e95f23b2dc6c508853a58d
Parents: 074012f
Author: Steven Gill <st...@gmail.com>
Authored: Thu Mar 13 16:33:23 2014 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Mar 13 16:33:23 2014 -0700
----------------------------------------------------------------------
README.md | 148 +-
attachments/css/directives/pluginlist.less | 9 +
attachments/css/directives/topbar.less | 31 +
attachments/css/pages/pluginlist.less | 9 -
attachments/css/pages/topbar.less | 31 -
attachments/css/styles.less | 4 +-
attachments/css/topcoat-mobile-dark.css | 3759 ---------------------
attachments/css/topcoat-mobile-dark.min.css | 1 -
attachments/css/topcoat-mobile-light.css | 3759 ---------------------
attachments/css/topcoat-mobile-light.min.css | 1 -
attachments/index.html | 5 -
attachments/js/app.js | 7 +-
attachments/js/controllers/viewAll.js | 11 +-
attachments/js/services.js | 7 -
attachments/js/services/search-service.js | 8 -
attachments/js/site.js | 977 ------
attachments/js/stats.js | 66 -
17 files changed, 116 insertions(+), 8717 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 5f09a58..37d8636 100644
--- a/README.md
+++ b/README.md
@@ -1,84 +1,70 @@
-{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf400
-{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
-{\colortbl;\red255\green255\blue255;}
-\margl1440\margr1440\vieww10800\viewh8400\viewkind0
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-
-\f0\fs24 \cf0 Install COUCHDB\
-\
-brew install couchdb\
-\
-create registry database in couch\
-curl -X PUT http://localhost:5984/registry\
-\
-npmjs\
-git clone https://github.com/imhotep/npmjs.org\
-\
-cordova registry web\
-git clone https://git-wip-us.apache.org/repos/asf/cordova-registry-web.git\
-\
-cd npmjs\
-npm install -g couchapp\
-npm install couchapp\
-npm install semver\
-\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 couchapp push registry/app.js http://localhost:5984/registry\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 \
-cd ../cordova-registry-web\
-couchapp push app.js http://localhost:5984/registry\
-\
-Pretty much all of the work you need to do is in cordova-registry-web\
-\
-Enter this into your terminal because legacy.\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 curl http://localhost:5984/registry/_design/scratch -X COPY -H destination:'_design/app'\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 \
-## Displaying on localhost\
-\
-cd /etc/apache2/users\
-sudo vim YOURCOMPUTERUSERNAME.conf (mine was stevengill.conf)\
-\
-Paste the following rewrite rules into it.\
-\
-<VirtualHost *:80>\
- ServerName localhost\
- RewriteEngine on\
-# RewriteRule ^/downloads/(.*)$ http://cordova.iriscouch.com/downloads/$1 [P]\
-# RewriteRule ^/(.*)$ /registry/_design/ui/_rewrite/$1 [PT]\
- RewriteRule ^/((?!downloads).*)$ /registry/_design/ui/_rewrite/$1 [PT]\
- ProxyPassMatch ^/downloads/(.*)$ http://cordova.iriscouch.com/downloads/$1\
- ProxyPassMatch ^/registry/(.*)$ http://localhost:5984/registry/$1\
- RewriteLog "/var/log/apache2/plugins.cordova.io-rewrite.log"\
- RewriteLogLevel 3\
- LogLevel debug\
- ErrorLog "/var/log/apache2/plugins.cordova.io-error_log"\
- CustomLog "/var/log/apache2/plugins.cordova.io-access_log" common\
-</VirtualHost>\
-\
-back to terminal, start apache with:\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 sudo apachectl start\
-\
-go to localhost in your browser and bam! should be working.\
-\
-\
-## Publish Plugins to your local instance\
-plugman config set registry http://localhost:5984/registry/_design/app/_rewrite\
-\
-\
-##Potential Errors\
-\
-If you keep seeing `POST /_session 401` when you try to publish a plugin locally, you need to go delete your user info. In terminal type `rm -rf ~/.plugman`. Then go to the plugin you want to add and go `plugman adduser`. Enter in your username, password and email. \
-\
-\
-Alternative\
-couchapp serve app.js http://localhost:5984/registry -p 3000 -l -d attachments/\
-\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
-\cf0 \
-}
+# Cordova Registry UI
+This repo contains the assets for [plugins.cordova.io](http://plugins.cordova.io). Everything is located in the attachments folder. Below we go over the steps of getting setup and running locally.
+
+## Setup
+
+### Install COUCHDB
+
+`brew install couchdb`
+
+You can find more documentation
+
+### Create registry database in couch
+curl -X PUT http://localhost:5984/registry
+
+### npmjs
+git clone https://github.com/imhotep/npmjs.org
+
+### cordova registry web
+git clone https://git-wip-us.apache.org/repos/asf/cordova-registry-web.git
+
+cd npmjs
+npm install -g couchapp
+npm install couchapp
+npm install semver
+
+couchapp push registry/app.js http://localhost:5984/registry
+cd ../cordova-registry-web
+couchapp push app.js http://localhost:5984/registry
+
+Pretty much all of the work you need to do is in cordova-registry-web
+
+Enter this into your terminal because legacy.
+curl http://localhost:5984/registry/_design/scratch -X COPY -H destination:'_design/app'
+
+## Displaying on localhost
+
+cd /etc/apache2/users
+sudo vim YOURCOMPUTERUSERNAME.conf (mine was stevengill.conf)
+
+Paste the following rewrite rules into it.
+
+<VirtualHost *:80>
+ ServerName localhost
+ RewriteEngine on
+ RewriteRule ^/((?!downloads).*)$ /registry/_design/ui/_rewrite/$1 [PT]
+ ProxyPassMatch ^/downloads/(.*)$ http://cordova.iriscouch.com/downloads/$1
+ ProxyPassMatch ^/registry/(.*)$ http://localhost:5984/registry/$1
+ RewriteLog "/var/log/apache2/plugins.cordova.io-rewrite.log"
+ RewriteLogLevel 3
+ LogLevel debug
+ ErrorLog "/var/log/apache2/plugins.cordova.io-error_log"
+ CustomLog "/var/log/apache2/plugins.cordova.io-access_log" common
+</VirtualHost>
+
+back to terminal, start apache with:
+sudo apachectl start\
+
+go to localhost in your browser and bam! should be working.
+
+## Publish Plugins to your local instance
+plugman config set registry http://localhost:5984/registry/_design/app/_rewrite
+
+##Potential Errors
+If you keep seeing `POST /_session 401` when you try to publish a plugin locally, you need to go delete your user info. In terminal type `rm -rf ~/.plugman`. Then go to the plugin you want to add and go `plugman adduser`. Enter in your username, password and email.
+
+##Alternative
+couchapp serve app.js http://localhost:5984/registry -p 3000 -l -d attachments/
## Changes to LESS
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/attachments/css/directives/pluginlist.less
----------------------------------------------------------------------
diff --git a/attachments/css/directives/pluginlist.less b/attachments/css/directives/pluginlist.less
new file mode 100644
index 0000000..3bcc72f
--- /dev/null
+++ b/attachments/css/directives/pluginlist.less
@@ -0,0 +1,9 @@
+.pluginHeader {
+ border-bottom:solid 2px black;
+}
+
+.pluginItem {
+ border-bottom:solid 2px #bfb7b9;
+ padding-top:10px;
+ padding-bottom:10px;
+}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/attachments/css/directives/topbar.less
----------------------------------------------------------------------
diff --git a/attachments/css/directives/topbar.less b/attachments/css/directives/topbar.less
new file mode 100644
index 0000000..904ab11
--- /dev/null
+++ b/attachments/css/directives/topbar.less
@@ -0,0 +1,31 @@
+.topbar-row {
+ padding-top:5px;
+ padding-bottom:5px;
+ background-color:#ededed;
+}
+
+.topbar-search {
+ height: 35px;
+ border: 1px solid #4cc2e4;
+}
+
+.topbar-button {
+ background-color: #4cc2e4;
+ height:35px;
+ background-position: center;
+ background-image: url('/img/search_light.svg');
+ background-size: 20px 25px;
+ background-repeat: no-repeat;
+ margin-left: -5px;
+ border: 2px solid #4cc2e4;
+}
+
+.topbar-spacer {
+ padding-top:10px;
+}
+
+.topbar-browse {
+ display: block;
+ font-size: 20px;
+ padding-top:5px;
+}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/attachments/css/pages/pluginlist.less
----------------------------------------------------------------------
diff --git a/attachments/css/pages/pluginlist.less b/attachments/css/pages/pluginlist.less
deleted file mode 100644
index 3bcc72f..0000000
--- a/attachments/css/pages/pluginlist.less
+++ /dev/null
@@ -1,9 +0,0 @@
-.pluginHeader {
- border-bottom:solid 2px black;
-}
-
-.pluginItem {
- border-bottom:solid 2px #bfb7b9;
- padding-top:10px;
- padding-bottom:10px;
-}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/attachments/css/pages/topbar.less
----------------------------------------------------------------------
diff --git a/attachments/css/pages/topbar.less b/attachments/css/pages/topbar.less
deleted file mode 100644
index 904ab11..0000000
--- a/attachments/css/pages/topbar.less
+++ /dev/null
@@ -1,31 +0,0 @@
-.topbar-row {
- padding-top:5px;
- padding-bottom:5px;
- background-color:#ededed;
-}
-
-.topbar-search {
- height: 35px;
- border: 1px solid #4cc2e4;
-}
-
-.topbar-button {
- background-color: #4cc2e4;
- height:35px;
- background-position: center;
- background-image: url('/img/search_light.svg');
- background-size: 20px 25px;
- background-repeat: no-repeat;
- margin-left: -5px;
- border: 2px solid #4cc2e4;
-}
-
-.topbar-spacer {
- padding-top:10px;
-}
-
-.topbar-browse {
- display: block;
- font-size: 20px;
- padding-top:5px;
-}
http://git-wip-us.apache.org/repos/asf/cordova-registry-web/blob/3243029e/attachments/css/styles.less
----------------------------------------------------------------------
diff --git a/attachments/css/styles.less b/attachments/css/styles.less
index 103614b..86cd854 100644
--- a/attachments/css/styles.less
+++ b/attachments/css/styles.less
@@ -19,5 +19,5 @@
@import "pages/packageDetails.less";
@import "pages/viewAll.less";
@import "pages/search.less";
-@import "pages/topbar.less";
-@import "pages/pluginlist.less";
+@import "directives/topbar.less";
+@import "directives/pluginlist.less";