Permalink
Browse files

Replace xhr auth with headers when using mozSystem, directly package …

…sax.js, add license blocks. Fixes #1, #2, #3
  • Loading branch information...
1 parent 585956e commit cbb1142c4dcefeffe47d85a14ea65fc23c9739a2 @lightsofapollo lightsofapollo committed Jul 24, 2012
Showing with 1,418 additions and 22 deletions.
  1. +14 −0 LICENSE
  2. +9 −2 Makefile
  3. +401 −20 caldav.js
  4. +992 −0 lib/sax.js
  5. +2 −0 test/caldav/index_test.js
View
@@ -0,0 +1,14 @@
+Copyright 2012, Mozilla Foundation
+
+Licensed 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.
+
View
@@ -12,13 +12,14 @@ package: test-agent-config
cp ./node_modules/mocha/mocha.js $(VENDOR)
cp ./node_modules/mocha/mocha.css $(VENDOR)
cp ./node_modules/chai/chai.js $(VENDOR)
- cp ./node_modules/sax/lib/sax.js $(VENDOR)
+ cp ./lib/sax.js $(VENDOR)
cp ./node_modules/test-agent/test-agent.js $(VENDOR)
cp ./node_modules/test-agent/test-agent.css $(VENDOR)
-
+ echo '/* sax js - LICENSE: https://github.com/isaacs/sax-js/blob/master/LICENSE */' >> $(WEB_FILE)
cat $(VENDOR)/sax.js >> $(WEB_FILE)
echo ';' >> $(WEB_FILE)
+ echo '/* caldav.js */' >> $(WEB_FILE)
cat $(LIB_ROOT)/caldav.js >> $(WEB_FILE)
cat $(LIB_ROOT)/ical.js >> $(WEB_FILE)
cat $(LIB_ROOT)/responder.js >> $(WEB_FILE)
@@ -33,10 +34,16 @@ package: test-agent-config
cat $(LIB_ROOT)/request/abstract.js >> $(WEB_FILE)
cat $(LIB_ROOT)/request/propfind.js >> $(WEB_FILE)
cat $(LIB_ROOT)/request/calendar_query.js >> $(WEB_FILE)
+ cat $(LIB_ROOT)/request/calendar_home.js >> $(WEB_FILE)
+ cat $(LIB_ROOT)/request/resources.js >> $(WEB_FILE)
cat $(LIB_ROOT)/request/index.js >> $(WEB_FILE)
cat $(LIB_ROOT)/sax/index.js >> $(WEB_FILE)
cat $(LIB_ROOT)/templates/index.js >> $(WEB_FILE)
+
+ cat $(LIB_ROOT)/resources/calendar.js >> $(WEB_FILE)
+ cat $(LIB_ROOT)/resources/index.js >> $(WEB_FILE)
+
cat $(LIB_ROOT)/index.js >> $(WEB_FILE)
test: test-node test-browser
Oops, something went wrong.

0 comments on commit cbb1142

Please sign in to comment.