Permalink
Browse files

Add Apache Licence boilerplate

  • Loading branch information...
Daniel Pupius
Daniel Pupius committed Dec 5, 2011
1 parent 2996731 commit 3298bd9edcad6983b0cbde3f449a4873f06085ae
Showing with 139 additions and 3 deletions.
  1. +20 −1 README.md
  2. +15 −0 app.js
  3. +16 −1 bin/plovr-config-bundle.js
  4. +14 −0 bundle.js
  5. +15 −0 interfaces.js
  6. +15 −0 nullscreen.js
  7. +15 −0 regexpscreenfactory.js
  8. +14 −1 surf.js
  9. +15 −0 surface.js
View
@@ -151,4 +151,23 @@ Gives the screen a chance to cancel the navigation and stop itself from being de
Called before the screen is navigated away from.
`#dispose()`
-Called when the screen is being destroyed. Should do cleanup of event listeners, timers, requests, etc.
+Called when the screen is being destroyed. Should do cleanup of event listeners, timers, requests, etc.
+
+Licence
+-------
+
+```
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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
15 app.js
@@ -1,3 +1,18 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
+
/**
* @fileoverview The main application class for managing multiple surfaces and navigating between
* screens.
View
@@ -7,7 +7,22 @@
"externs": [
"./surf-externs.js"
],
- "output-wrapper": "// Copyright 2011 Daniel Pupius <https://github.com/dpup/surface>\n(function(){%output%})();",
+ "output-wrapper": [
+ "// Copyright 2011 Daniel Pupius https://github.com/dpup/surface\n",
+ "//\n",
+ "// Licensed under the Apache License, Version 2.0 (the \"License\");\n",
+ "// you may not use this file except in compliance with the License.\n",
+ "// You may obtain a copy of the License at\n",
+ "//\n",
+ "// http://www.apache.org/licenses/LICENSE-2.0\n",
+ "//\n",
+ "// Unless required by applicable law or agreed to in writing, software\n",
+ "// distributed under the License is distributed on an \"AS IS\" BASIS,\n",
+ "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
+ "// See the License for the specific language governing permissions and\n",
+ "// limitations under the License.\n",
+ "\n(function(){%output%})();",
+ ],
"mode": "ADVANCED",
"level": "VERBOSE"
}
View
@@ -1,3 +1,17 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
goog.require('surf.App');
View
@@ -1,3 +1,18 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
+
/**
* @fileoverview Interfaces for implementing individual screens. A screen factory is used by the
* app to construct Screen instances for a given navigation. The screen is then responsible for
View
@@ -1,3 +1,18 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
+
/**
* @fileoverview Implementation of the screen interface that retruns null content for all surfaces.
* Can be used as an base class or for reverting to defaults.
View
@@ -1,3 +1,18 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
+
/**
* @fileoverview Sample screen factory interface that uses a regular expression to match the path
* and returns an instance of the provided Screen constructor.
View
15 surf.js
@@ -1,4 +1,17 @@
-// Copyright (c)2011 Daniel Pupius <pupius.co.uk>
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
goog.provide('surf');
View
@@ -1,3 +1,18 @@
+// Copyright 2011 Daniel Pupius https://github.com/dpup/surface
+//
+// 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.
+
+
/**
* @fileoverview Class that manages a single "surface", which corresponds to an element in the DOM.
* Screens provide content that should be displayed when they are active.

0 comments on commit 3298bd9

Please sign in to comment.