diff --git a/app/assets/javascripts/app/app.js b/app/assets/javascripts/app/app.js index 1b0fddee1..89a79031b 100644 --- a/app/assets/javascripts/app/app.js +++ b/app/assets/javascripts/app/app.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require_self //= require_tree ./helpers @@ -129,3 +131,5 @@ var app = { $(function() { app.initialize(); }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/aspects.js b/app/assets/javascripts/app/collections/aspects.js index 33c9cb56c..ce9fca6f5 100644 --- a/app/assets/javascripts/app/collections/aspects.js +++ b/app/assets/javascripts/app/collections/aspects.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Aspects = Backbone.Collection.extend({ model: app.models.Aspect, @@ -24,3 +26,5 @@ app.collections.Aspects = Backbone.Collection.extend({ return this.selectedAspects('name').join(separator).replace(/,\s([^,]+)$/, ' ' + Diaspora.I18n.t("and") + ' $1') || Diaspora.I18n.t("my_aspects"); } }) +// @license-end + diff --git a/app/assets/javascripts/app/collections/comments.js b/app/assets/javascripts/app/collections/comments.js index 06ae95fe2..34f4e8251 100644 --- a/app/assets/javascripts/app/collections/comments.js +++ b/app/assets/javascripts/app/collections/comments.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Comments = Backbone.Collection.extend({ model: app.models.Comment, url: function() { return _.result(this.post, 'url') + '/comments'; }, @@ -22,3 +24,5 @@ app.collections.Comments = Backbone.Collection.extend({ return deferred; } }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/likes.js b/app/assets/javascripts/app/collections/likes.js index 01831d4f9..d34a92270 100644 --- a/app/assets/javascripts/app/collections/likes.js +++ b/app/assets/javascripts/app/collections/likes.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Likes = Backbone.Collection.extend({ model: app.models.Like, @@ -5,3 +7,5 @@ app.collections.Likes = Backbone.Collection.extend({ this.url = "/posts/" + options.post.id + "/likes" //not delegating to post.url() because when it is in a stream collection it delegates to that url } }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/photos.js b/app/assets/javascripts/app/collections/photos.js index 40c960b23..da8c636a9 100644 --- a/app/assets/javascripts/app/collections/photos.js +++ b/app/assets/javascripts/app/collections/photos.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Photos = Backbone.Collection.extend({ url : "/photos", @@ -10,3 +12,5 @@ app.collections.Photos = Backbone.Collection.extend({ return resp.photos; } }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/posts.js b/app/assets/javascripts/app/collections/posts.js index 47c60b682..fc5fe1bbe 100644 --- a/app/assets/javascripts/app/collections/posts.js +++ b/app/assets/javascripts/app/collections/posts.js @@ -1,4 +1,8 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Posts = Backbone.Collection.extend({ model: app.models.Post, url : "/posts" }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/reshares.js b/app/assets/javascripts/app/collections/reshares.js index d2c74c8e5..28ce59c24 100644 --- a/app/assets/javascripts/app/collections/reshares.js +++ b/app/assets/javascripts/app/collections/reshares.js @@ -1,4 +1,8 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.Reshares = Backbone.Collection.extend({ model: app.models.Reshare, url : "/reshares" }); +// @license-end + diff --git a/app/assets/javascripts/app/collections/tag_followings.js b/app/assets/javascripts/app/collections/tag_followings.js index 870878ba7..091827827 100644 --- a/app/assets/javascripts/app/collections/tag_followings.js +++ b/app/assets/javascripts/app/collections/tag_followings.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.collections.TagFollowings = Backbone.Collection.extend({ model: app.models.TagFollowing, @@ -17,3 +19,5 @@ app.collections.TagFollowings = Backbone.Collection.extend({ } }); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/date_formatter.js b/app/assets/javascripts/app/helpers/date_formatter.js index beb2d468a..1226d94c7 100644 --- a/app/assets/javascripts/app/helpers/date_formatter.js +++ b/app/assets/javascripts/app/helpers/date_formatter.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + (function(){ app.helpers.dateFormatter = { parse:function (dateString) { @@ -14,3 +16,5 @@ } } })(); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/direction_detector.js b/app/assets/javascripts/app/helpers/direction_detector.js index 768aeb8b3..2449aeead 100644 --- a/app/assets/javascripts/app/helpers/direction_detector.js +++ b/app/assets/javascripts/app/helpers/direction_detector.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + (function() { app.helpers.txtDirection = { setCssFor: function(str, on_element) { @@ -89,3 +91,5 @@ } }; })(); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/handlebars-helpers.js b/app/assets/javascripts/app/helpers/handlebars-helpers.js index 9fca473c3..00c78ffaf 100644 --- a/app/assets/javascripts/app/helpers/handlebars-helpers.js +++ b/app/assets/javascripts/app/helpers/handlebars-helpers.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + Handlebars.registerHelper('t', function(scope, values) { return Diaspora.I18n.t(scope, values.hash) }); @@ -105,3 +107,5 @@ Handlebars.registerHelper('isCurrentProfilePage', function(id, diaspora_handle, return Handlebars.helpers.isCurrentPage('person', id, options) || Handlebars.helpers.isCurrentPage('user_profile', username, options); }); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/handlebars-partials.js b/app/assets/javascripts/app/helpers/handlebars-partials.js index b5f85cbd7..50efeeb64 100644 --- a/app/assets/javascripts/app/helpers/handlebars-partials.js +++ b/app/assets/javascripts/app/helpers/handlebars-partials.js @@ -1,4 +1,8 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* we need to wrap this in a document ready to ensure JST is accessible */ $(function(){ Handlebars.registerPartial('status-message', HandlebarsTemplates['status-message_tpl']) }); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/o_embed.js b/app/assets/javascripts/app/helpers/o_embed.js index ff370f1da..be410c9d3 100644 --- a/app/assets/javascripts/app/helpers/o_embed.js +++ b/app/assets/javascripts/app/helpers/o_embed.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + (function(){ app.helpers.oEmbed = { html : function (o_embed_cache) { @@ -11,4 +13,6 @@ } } } -})(); \ No newline at end of file +})(); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/open_graph.js b/app/assets/javascripts/app/helpers/open_graph.js index cc22e312f..bc821e320 100644 --- a/app/assets/javascripts/app/helpers/open_graph.js +++ b/app/assets/javascripts/app/helpers/open_graph.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + (function(){ app.helpers.openGraph = { html : function (open_graph_cache) { @@ -6,3 +8,5 @@ } } })(); +// @license-end + diff --git a/app/assets/javascripts/app/helpers/text_formatter.js b/app/assets/javascripts/app/helpers/text_formatter.js index 6e15e2ed3..71f07abc7 100644 --- a/app/assets/javascripts/app/helpers/text_formatter.js +++ b/app/assets/javascripts/app/helpers/text_formatter.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later // cache url regex globally, for direct acces when testing $(function() { @@ -141,4 +142,5 @@ $(function() { app.helpers.textFormatter = textFormatter; })(); +// @license-end diff --git a/app/assets/javascripts/app/models.js b/app/assets/javascripts/app/models.js index 657618450..286e990c6 100644 --- a/app/assets/javascripts/app/models.js +++ b/app/assets/javascripts/app/models.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later // Mixin to provide date formatting and "createdAt" method // other attributes can be accessed by calling this.timeOf("timestamp-field") @@ -14,3 +15,5 @@ app.models.formatDateMixin = { } }; +// @license-end + diff --git a/app/assets/javascripts/app/models/aspect.js b/app/assets/javascripts/app/models/aspect.js index ec53e034a..7ff651d84 100644 --- a/app/assets/javascripts/app/models/aspect.js +++ b/app/assets/javascripts/app/models/aspect.js @@ -1,5 +1,9 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Aspect = Backbone.Model.extend({ toggleSelected: function(){ this.set({'selected' : !this.get('selected')}, {async: false}); } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/aspect_membership.js b/app/assets/javascripts/app/models/aspect_membership.js index 73a213f45..ddb503702 100644 --- a/app/assets/javascripts/app/models/aspect_membership.js +++ b/app/assets/javascripts/app/models/aspect_membership.js @@ -1,7 +1,11 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /** * this model represents the assignment of an aspect to a person. * (only valid for the context of the current user) */ app.models.AspectMembership = Backbone.Model.extend({ urlRoot: "/aspect_memberships" -}); \ No newline at end of file +}); +// @license-end + diff --git a/app/assets/javascripts/app/models/block.js b/app/assets/javascripts/app/models/block.js index ef7e8f1ef..2c6ea5eb1 100644 --- a/app/assets/javascripts/app/models/block.js +++ b/app/assets/javascripts/app/models/block.js @@ -1,3 +1,7 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Block = Backbone.Model.extend({ urlRoot : "/blocks" }); +// @license-end + diff --git a/app/assets/javascripts/app/models/comment.js b/app/assets/javascripts/app/models/comment.js index c4c35ce71..f2778f718 100644 --- a/app/assets/javascripts/app/models/comment.js +++ b/app/assets/javascripts/app/models/comment.js @@ -1,3 +1,7 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Comment = Backbone.Model.extend({ urlRoot: "/comments" }); +// @license-end + diff --git a/app/assets/javascripts/app/models/like.js b/app/assets/javascripts/app/models/like.js index 81e71a61e..2f64ebd75 100644 --- a/app/assets/javascripts/app/models/like.js +++ b/app/assets/javascripts/app/models/like.js @@ -1 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Like = Backbone.Model.extend({ }); +// @license-end + diff --git a/app/assets/javascripts/app/models/person.js b/app/assets/javascripts/app/models/person.js index de68510d7..79a04c067 100644 --- a/app/assets/javascripts/app/models/person.js +++ b/app/assets/javascripts/app/models/person.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Person = Backbone.Model.extend({ url: function() { return Routes.person_path(this.get('guid')); @@ -47,3 +49,5 @@ app.models.Person = Backbone.Model.extend({ .done(function() { app.events.trigger('person:unblock:'+self.id); }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/photo.js b/app/assets/javascripts/app/models/photo.js index a856faca1..c7a4efe92 100644 --- a/app/assets/javascripts/app/models/photo.js +++ b/app/assets/javascripts/app/models/photo.js @@ -1,6 +1,10 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Photo = Backbone.Model.extend(_.extend({}, app.models.formatDateMixin, { urlRoot : "/photos", initialize : function() {}, })); +// @license-end + diff --git a/app/assets/javascripts/app/models/poll_participation.js b/app/assets/javascripts/app/models/poll_participation.js index 36b560dbe..bc8ed46cd 100644 --- a/app/assets/javascripts/app/models/poll_participation.js +++ b/app/assets/javascripts/app/models/poll_participation.js @@ -1,5 +1,9 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.PollParticipation = Backbone.Model.extend({ urlRoot: function(){ return '/posts/' + this.get('post_id') + "/poll_participations"; } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/post.js b/app/assets/javascripts/app/models/post.js index 74a3cec90..d2aa388db 100644 --- a/app/assets/javascripts/app/models/post.js +++ b/app/assets/javascripts/app/models/post.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Post = Backbone.Model.extend(_.extend({}, app.models.formatDateMixin, { urlRoot : "/posts", @@ -68,3 +70,5 @@ app.models.Post = Backbone.Model.extend(_.extend({}, app.models.formatDateMixin, return $.trim(this.get("text")) !== "" } })); +// @license-end + diff --git a/app/assets/javascripts/app/models/post/interactions.js b/app/assets/javascripts/app/models/post/interactions.js index f4740be81..5a157ef32 100644 --- a/app/assets/javascripts/app/models/post/interactions.js +++ b/app/assets/javascripts/app/models/post/interactions.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //require ../post app.models.Post.Interactions = Backbone.Model.extend({ @@ -134,3 +136,5 @@ app.models.Post.Interactions = Backbone.Model.extend({ return publicPost && app.currentUser.authenticated() && userIsNotAuthor && userIsNotRootAuthor && notReshared; } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/profile.js b/app/assets/javascripts/app/models/profile.js index c0134017d..0039e3518 100644 --- a/app/assets/javascripts/app/models/profile.js +++ b/app/assets/javascripts/app/models/profile.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Profile = Backbone.Model.extend({ urlRoot : "/profiles" }, { @@ -18,3 +20,5 @@ app.models.Profile = Backbone.Model.extend({ return person } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/report.js b/app/assets/javascripts/app/models/report.js index d2d734221..4309a71b8 100644 --- a/app/assets/javascripts/app/models/report.js +++ b/app/assets/javascripts/app/models/report.js @@ -1,4 +1,8 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Report = Backbone.Model.extend({ urlRoot: '/report', type: 'POST' }); +// @license-end + diff --git a/app/assets/javascripts/app/models/reshare.js b/app/assets/javascripts/app/models/reshare.js index 7a4b83ff7..9fd9de3df 100644 --- a/app/assets/javascripts/app/models/reshare.js +++ b/app/assets/javascripts/app/models/reshare.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.Reshare = app.models.Post.extend({ urlRoot : "/reshares", @@ -14,3 +16,5 @@ app.models.Reshare = app.models.Post.extend({ return this.rootPost().reshareAuthor() } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/status_message.js b/app/assets/javascripts/app/models/status_message.js index bce96553d..317b4adc6 100644 --- a/app/assets/javascripts/app/models/status_message.js +++ b/app/assets/javascripts/app/models/status_message.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.StatusMessage = app.models.Post.extend({ url : function(){ return this.isNew() ? '/status_messages' : '/posts/' + this.get("id"); @@ -18,3 +20,5 @@ app.models.StatusMessage = app.models.Post.extend({ } } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/stream.js b/app/assets/javascripts/app/models/stream.js index 30b94c8ff..2e0c1e799 100644 --- a/app/assets/javascripts/app/models/stream.js +++ b/app/assets/javascripts/app/models/stream.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require ../collections/posts //= require ../collections/photos app.models.Stream = Backbone.Collection.extend({ @@ -91,3 +93,5 @@ app.models.Stream = Backbone.Collection.extend({ this.trigger("fetched") } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/stream_aspects.js b/app/assets/javascripts/app/models/stream_aspects.js index 4dc97899e..4f03fd3d1 100644 --- a/app/assets/javascripts/app/models/stream_aspects.js +++ b/app/assets/javascripts/app/models/stream_aspects.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.StreamAspects = app.models.Stream.extend({ url : function(){ @@ -22,3 +24,5 @@ app.models.StreamAspects = app.models.Stream.extend({ .done(_.bind(this.triggerFetchedEvents, this)); } }); +// @license-end + diff --git a/app/assets/javascripts/app/models/tag_following.js b/app/assets/javascripts/app/models/tag_following.js index b2ab35977..a64820116 100644 --- a/app/assets/javascripts/app/models/tag_following.js +++ b/app/assets/javascripts/app/models/tag_following.js @@ -1,3 +1,7 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.TagFollowing = Backbone.Model.extend({ urlRoot: "/tag_followings" }); +// @license-end + diff --git a/app/assets/javascripts/app/models/user.js b/app/assets/javascripts/app/models/user.js index b08f281f8..98dc67c01 100644 --- a/app/assets/javascripts/app/models/user.js +++ b/app/assets/javascripts/app/models/user.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.models.User = Backbone.Model.extend({ toggleNsfwState : function() { if(!app.currentUser.authenticated()){ return false } @@ -21,3 +23,5 @@ app.models.User = Backbone.Model.extend({ return this.authenticated() && model.get("author").id == this.id; } }); +// @license-end + diff --git a/app/assets/javascripts/app/pages/profile.js b/app/assets/javascripts/app/pages/profile.js index 32298e364..c710d6997 100644 --- a/app/assets/javascripts/app/pages/profile.js +++ b/app/assets/javascripts/app/pages/profile.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.pages.Profile = app.views.Base.extend({ events: { @@ -128,3 +129,5 @@ app.pages.Profile = app.views.Base.extend({ this.$('#profile').removeClass('loading'); } }); +// @license-end + diff --git a/app/assets/javascripts/app/pages/single-post-viewer.js b/app/assets/javascripts/app/pages/single-post-viewer.js index 16403f891..1e730890e 100644 --- a/app/assets/javascripts/app/pages/single-post-viewer.js +++ b/app/assets/javascripts/app/pages/single-post-viewer.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.pages.SinglePostViewer = app.views.Base.extend({ templateName: "single-post-viewer", @@ -38,3 +40,5 @@ app.pages.SinglePostViewer = app.views.Base.extend({ }, }); +// @license-end + diff --git a/app/assets/javascripts/app/router.js b/app/assets/javascripts/app/router.js index df6e4ff73..e5c0b3d92 100644 --- a/app/assets/javascripts/app/router.js +++ b/app/assets/javascripts/app/router.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.Router = Backbone.Router.extend({ routes: { "help": "help", @@ -152,4 +154,5 @@ app.Router = Backbone.Router.extend({ }); }); } }); +// @license-end diff --git a/app/assets/javascripts/app/views.js b/app/assets/javascripts/app/views.js index ea61a1a8d..607e02afd 100644 --- a/app/assets/javascripts/app/views.js +++ b/app/assets/javascripts/app/views.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Base = Backbone.View.extend({ initialize : function(options) { @@ -147,3 +149,5 @@ app.views.StaticContentView = app.views.Base.extend({ return this.data; }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/aspect_membership_blueprint_view.js b/app/assets/javascripts/app/views/aspect_membership_blueprint_view.js index 40b45d312..cf0f59e2c 100644 --- a/app/assets/javascripts/app/views/aspect_membership_blueprint_view.js +++ b/app/assets/javascripts/app/views/aspect_membership_blueprint_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /** * this view lets the user (de-)select aspect memberships in the context * of another users profile or the contact page. @@ -166,3 +168,5 @@ app.views.AspectMembershipBlueprint = Backbone.View.extend({ return Diaspora.I18n.t('aspect_dropdown.toggle', { 'count':cnt.toString() }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/aspect_membership_view.js b/app/assets/javascripts/app/views/aspect_membership_view.js index 85b2391e6..8348f26b6 100644 --- a/app/assets/javascripts/app/views/aspect_membership_view.js +++ b/app/assets/javascripts/app/views/aspect_membership_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require ./aspects_dropdown_view /** @@ -139,3 +141,5 @@ app.views.AspectMembership = app.views.AspectsDropdown.extend({ this._updateButton('green'); }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/aspect_view.js b/app/assets/javascripts/app/views/aspect_view.js index c8e553ea8..3cef67458 100644 --- a/app/assets/javascripts/app/views/aspect_view.js +++ b/app/assets/javascripts/app/views/aspect_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Aspect = app.views.Base.extend({ templateName: "aspect", @@ -22,3 +24,5 @@ app.views.Aspect = app.views.Base.extend({ }) } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/aspects_dropdown_view.js b/app/assets/javascripts/app/views/aspects_dropdown_view.js index 287bfe1d2..65c5c8e00 100644 --- a/app/assets/javascripts/app/views/aspects_dropdown_view.js +++ b/app/assets/javascripts/app/views/aspects_dropdown_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* * Aspects view for the publishers aspect dropdown and the aspect membership dropdown. */ @@ -45,3 +47,5 @@ app.views.AspectsDropdown = app.views.Base.extend({ button.find('.text').text(buttonText); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/aspects_list_view.js b/app/assets/javascripts/app/views/aspects_list_view.js index 615ff1098..ea8d321bf 100644 --- a/app/assets/javascripts/app/views/aspects_list_view.js +++ b/app/assets/javascripts/app/views/aspects_list_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.AspectsList = app.views.Base.extend({ templateName: 'aspects-list', @@ -62,3 +64,5 @@ app.views.AspectsList = app.views.Base.extend({ this.$el.empty(); }, }) +// @license-end + diff --git a/app/assets/javascripts/app/views/bookmarklet_view.js b/app/assets/javascripts/app/views/bookmarklet_view.js index 28bce5f47..e3757719a 100644 --- a/app/assets/javascripts/app/views/bookmarklet_view.js +++ b/app/assets/javascripts/app/views/bookmarklet_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Bookmarklet = Backbone.View.extend({ separator: ' - ', @@ -43,3 +45,5 @@ app.views.Bookmarklet = Backbone.View.extend({ this.$('h4').text(Diaspora.I18n.t('bookmarklet.post_something')); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/comment_stream_view.js b/app/assets/javascripts/app/views/comment_stream_view.js index db30390ca..32c349e8b 100644 --- a/app/assets/javascripts/app/views/comment_stream_view.js +++ b/app/assets/javascripts/app/views/comment_stream_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.CommentStream = app.views.Base.extend({ templateName: "comment-stream", @@ -96,3 +98,5 @@ app.views.CommentStream = app.views.Base.extend({ }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/comment_view.js b/app/assets/javascripts/app/views/comment_view.js index 540c54b99..daa5b31a6 100644 --- a/app/assets/javascripts/app/views/comment_view.js +++ b/app/assets/javascripts/app/views/comment_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require ./content_view app.views.Comment = app.views.Content.extend({ templateName: "comment", @@ -39,3 +41,5 @@ app.views.ExpandedComment = app.views.Comment.extend({ postRenderTemplate : function(){ } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/contacts_view.js b/app/assets/javascripts/app/views/contacts_view.js index 7ddd9fdf4..d41c069cc 100644 --- a/app/assets/javascripts/app/views/contacts_view.js +++ b/app/assets/javascripts/app/views/contacts_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Contacts = Backbone.View.extend({ el: "#contacts_container", @@ -110,3 +112,5 @@ app.views.Contacts = Backbone.View.extend({ }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/content_view.js b/app/assets/javascripts/app/views/content_view.js index e2ec64cd3..7c829c74b 100644 --- a/app/assets/javascripts/app/views/content_view.js +++ b/app/assets/javascripts/app/views/content_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Content = app.views.Base.extend({ events: { "click .expander": "expandPost" @@ -116,3 +118,5 @@ app.views.OEmbed = app.views.Base.extend({ app.views.OpenGraph = app.views.Base.extend({ templateName : "opengraph" }); +// @license-end + diff --git a/app/assets/javascripts/app/views/conversations_form_view.js b/app/assets/javascripts/app/views/conversations_form_view.js index 4134a303e..30cec16d9 100644 --- a/app/assets/javascripts/app/views/conversations_form_view.js +++ b/app/assets/javascripts/app/views/conversations_form_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.ConversationsForm = Backbone.View.extend({ initialize: function(opts) { @@ -25,3 +27,5 @@ app.views.ConversationsForm = Backbone.View.extend({ }).focus(); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/conversations_view.js b/app/assets/javascripts/app/views/conversations_view.js index b697d37c1..c30f87fdf 100644 --- a/app/assets/javascripts/app/views/conversations_view.js +++ b/app/assets/javascripts/app/views/conversations_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Conversations = Backbone.View.extend({ el: "#conversations_container", @@ -32,3 +34,5 @@ app.views.Conversations = Backbone.View.extend({ $(e.currentTarget).find('.participants').slideDown('300'); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/faq_question_view.js b/app/assets/javascripts/app/views/faq_question_view.js index b5654c549..a4a2303b3 100644 --- a/app/assets/javascripts/app/views/faq_question_view.js +++ b/app/assets/javascripts/app/views/faq_question_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.FaqQuestionView = app.views.Base.extend({ templateName: "faq_question", @@ -34,4 +36,6 @@ app.views.FaqQuestionView = app.views.Base.extend({ e.preventDefault(); }, -}); \ No newline at end of file +}); +// @license-end + diff --git a/app/assets/javascripts/app/views/feedback_actions.js b/app/assets/javascripts/app/views/feedback_actions.js index b781bccbc..861bde76d 100644 --- a/app/assets/javascripts/app/views/feedback_actions.js +++ b/app/assets/javascripts/app/views/feedback_actions.js @@ -1,7 +1,11 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //=require "./feedback_view" app.views.FeedbackActions = app.views.Feedback.extend({ id : "user-controls", templateName : "feedback-actions", events: {}, initialize: function(){} -}); \ No newline at end of file +}); +// @license-end + diff --git a/app/assets/javascripts/app/views/feedback_view.js b/app/assets/javascripts/app/views/feedback_view.js index c230d2b4f..a224bfd94 100644 --- a/app/assets/javascripts/app/views/feedback_view.js +++ b/app/assets/javascripts/app/views/feedback_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Feedback = app.views.Base.extend({ templateName: "feedback", @@ -40,3 +42,5 @@ app.views.Feedback = app.views.Base.extend({ this.model.interactions.reshare(); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/header_view.js b/app/assets/javascripts/app/views/header_view.js index db55694cc..a526c5fcd 100644 --- a/app/assets/javascripts/app/views/header_view.js +++ b/app/assets/javascripts/app/views/header_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Header = app.views.Base.extend({ templateName : "header", @@ -43,3 +45,5 @@ app.views.Header = app.views.Base.extend({ return false; } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/help_section_view.js b/app/assets/javascripts/app/views/help_section_view.js index 5c54d96e9..0d17b318f 100644 --- a/app/assets/javascripts/app/views/help_section_view.js +++ b/app/assets/javascripts/app/views/help_section_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.HelpSectionView = app.views.StaticContentView.extend({ events: { @@ -52,3 +54,5 @@ app.views.HelpSectionView = app.views.StaticContentView.extend({ }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/help_view.js b/app/assets/javascripts/app/views/help_view.js index 24234cb39..ccb2e8070 100644 --- a/app/assets/javascripts/app/views/help_view.js +++ b/app/assets/javascripts/app/views/help_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Help = app.views.StaticContentView.extend({ templateName : "help", @@ -156,3 +158,5 @@ app.views.Help = app.views.StaticContentView.extend({ return "" + text + ""; }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/hovercard_view.js b/app/assets/javascripts/app/views/hovercard_view.js index bc5dbdcbf..6bb3d51ad 100644 --- a/app/assets/javascripts/app/views/hovercard_view.js +++ b/app/assets/javascripts/app/views/hovercard_view.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.Hovercard = app.views.Base.extend({ templateName: 'hovercard', @@ -141,3 +142,5 @@ app.views.Hovercard = app.views.Base.extend({ }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/infinite_stream_view.js b/app/assets/javascripts/app/views/infinite_stream_view.js index a1f3066f3..59e493ee6 100644 --- a/app/assets/javascripts/app/views/infinite_stream_view.js +++ b/app/assets/javascripts/app/views/infinite_stream_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + // Abstract Infinite Scroll View Super Class // Requires: // a stream model, assigned to this.stream @@ -105,3 +107,5 @@ app.views.InfScroll = app.views.Base.extend({ } } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/likes_info_view.js b/app/assets/javascripts/app/views/likes_info_view.js index 737b82792..b85be03ed 100644 --- a/app/assets/javascripts/app/views/likes_info_view.js +++ b/app/assets/javascripts/app/views/likes_info_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.LikesInfo = app.views.Base.extend({ templateName : "likes-info", @@ -25,3 +27,5 @@ app.views.LikesInfo = app.views.Base.extend({ this.model.interactions.fetch() } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/location_stream.js b/app/assets/javascripts/app/views/location_stream.js index fbf60f580..fd6fae946 100644 --- a/app/assets/javascripts/app/views/location_stream.js +++ b/app/assets/javascripts/app/views/location_stream.js @@ -1,3 +1,7 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.LocationStream = app.views.Content.extend({ templateName: "status-message-location" }); +// @license-end + diff --git a/app/assets/javascripts/app/views/location_view.js b/app/assets/javascripts/app/views/location_view.js index 9d2fa6564..dfb4a5cfe 100644 --- a/app/assets/javascripts/app/views/location_view.js +++ b/app/assets/javascripts/app/views/location_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Location = Backbone.View.extend({ el: "#location", @@ -22,4 +24,5 @@ app.views.Location = Backbone.View.extend({ }); }, }); +// @license-end diff --git a/app/assets/javascripts/app/views/notifications_view.js b/app/assets/javascripts/app/views/notifications_view.js index 72bb11849..0914440bf 100644 --- a/app/assets/javascripts/app/views/notifications_view.js +++ b/app/assets/javascripts/app/views/notifications_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Notifications = Backbone.View.extend({ events: { @@ -90,3 +92,5 @@ app.views.Notifications = Backbone.View.extend({ } } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/photo_view.js b/app/assets/javascripts/app/views/photo_view.js index 072f44744..953a6f8e0 100644 --- a/app/assets/javascripts/app/views/photo_view.js +++ b/app/assets/javascripts/app/views/photo_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Photo = app.views.Base.extend({ templateName: "photo", @@ -22,3 +24,5 @@ app.views.Photo = app.views.Base.extend({ }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/photo_viewer.js b/app/assets/javascripts/app/views/photo_viewer.js index 3f30cfbd4..e2b8e939f 100644 --- a/app/assets/javascripts/app/views/photo_viewer.js +++ b/app/assets/javascripts/app/views/photo_viewer.js @@ -1,7 +1,11 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.PhotoViewer = app.views.Base.extend({ templateName : "photo-viewer", presenter : function(){ return { photos : this.model.get("photos") } //json array of attributes, not backbone models, yet. } -}); \ No newline at end of file +}); +// @license-end + diff --git a/app/assets/javascripts/app/views/photos_view.js b/app/assets/javascripts/app/views/photos_view.js index 7be0a86f2..bbba5766e 100644 --- a/app/assets/javascripts/app/views/photos_view.js +++ b/app/assets/javascripts/app/views/photos_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Photos = app.views.InfScroll.extend({ initialize : function(options) { this.stream = this.model; @@ -21,3 +23,5 @@ app.views.Photos = app.views.InfScroll.extend({ $(this.el).delegate("a.photo-link", "click", this.lightbox.lightboxImageClicked); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/poll_view.js b/app/assets/javascripts/app/views/poll_view.js index 346b7cb5a..ae6406bef 100644 --- a/app/assets/javascripts/app/views/poll_view.js +++ b/app/assets/javascripts/app/views/poll_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Poll = app.views.Base.extend({ templateName: "poll", @@ -107,3 +109,5 @@ app.views.Poll = app.views.Base.extend({ } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/post_view.js b/app/assets/javascripts/app/views/post_view.js index 59a8a985f..48473b995 100644 --- a/app/assets/javascripts/app/views/post_view.js +++ b/app/assets/javascripts/app/views/post_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Post = app.views.Base.extend({ presenter : function() { return _.extend(this.defaultPresenter(), { @@ -11,3 +13,5 @@ app.views.Post = app.views.Base.extend({ return (app.currentUser.get("showNsfw")) || !this.model.get("nsfw") } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/profile_header_view.js b/app/assets/javascripts/app/views/profile_header_view.js index 656c3dabd..681c08303 100644 --- a/app/assets/javascripts/app/views/profile_header_view.js +++ b/app/assets/javascripts/app/views/profile_header_view.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.ProfileHeader = app.views.Base.extend({ templateName: 'profile_header', @@ -65,3 +66,5 @@ app.views.ProfileHeader = app.views.Base.extend({ app.page.asyncSubHeader && app.page.asyncSubHeader.resovle(); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/profile_sidebar_view.js b/app/assets/javascripts/app/views/profile_sidebar_view.js index d94871cf3..a8b0d4074 100644 --- a/app/assets/javascripts/app/views/profile_sidebar_view.js +++ b/app/assets/javascripts/app/views/profile_sidebar_view.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later app.views.ProfileSidebar = app.views.Base.extend({ templateName: 'profile_sidebar', @@ -12,3 +13,5 @@ app.views.ProfileSidebar = app.views.Base.extend({ return (this.model.isSharing() || this.model.get('is_own_profile')); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/aspect_selector_blueprint_view.js b/app/assets/javascripts/app/views/publisher/aspect_selector_blueprint_view.js index d58beeaeb..9ae3a9785 100644 --- a/app/assets/javascripts/app/views/publisher/aspect_selector_blueprint_view.js +++ b/app/assets/javascripts/app/views/publisher/aspect_selector_blueprint_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* Copyright (c) 2010-2012, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. @@ -88,3 +90,5 @@ app.views.PublisherAspectSelectorBlueprint = Backbone.View.extend({ ); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/aspect_selector_view.js b/app/assets/javascripts/app/views/publisher/aspect_selector_view.js index ce14a612f..1926f5b73 100644 --- a/app/assets/javascripts/app/views/publisher/aspect_selector_view.js +++ b/app/assets/javascripts/app/views/publisher/aspect_selector_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require ../aspects_dropdown_view /* @@ -66,3 +68,5 @@ app.views.PublisherAspectSelector = app.views.AspectsDropdown.extend({ }); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/getting_started_view.js b/app/assets/javascripts/app/views/publisher/getting_started_view.js index fd0f921bf..a5896b8ad 100644 --- a/app/assets/javascripts/app/views/publisher/getting_started_view.js +++ b/app/assets/javascripts/app/views/publisher/getting_started_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* Copyright (c) 2010-2012, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. @@ -74,3 +76,5 @@ app.views.PublisherGettingStarted = Backbone.View.extend({ }, timeout); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/poll_creator_view.js b/app/assets/javascripts/app/views/publisher/poll_creator_view.js index f443801c5..3f49cbc17 100644 --- a/app/assets/javascripts/app/views/publisher/poll_creator_view.js +++ b/app/assets/javascripts/app/views/publisher/poll_creator_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.PublisherPollCreator = app.views.Base.extend({ templateName: "poll_creator", @@ -103,3 +105,5 @@ app.views.PublisherPollCreator = app.views.Base.extend({ return pollValid; } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/services_view.js b/app/assets/javascripts/app/views/publisher/services_view.js index 757a8f369..1ed4c988b 100644 --- a/app/assets/javascripts/app/views/publisher/services_view.js +++ b/app/assets/javascripts/app/views/publisher/services_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* Copyright (c) 2010-2012, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. @@ -61,3 +63,5 @@ app.views.PublisherServices = Backbone.View.extend({ } } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher/uploader_view.js b/app/assets/javascripts/app/views/publisher/uploader_view.js index 60b1ef8af..39ef27433 100644 --- a/app/assets/javascripts/app/views/publisher/uploader_view.js +++ b/app/assets/javascripts/app/views/publisher/uploader_view.js @@ -1,3 +1,4 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later // Uploader view for the publisher. // Initializes the file uploader plugin and handles callbacks for the upload @@ -152,3 +153,5 @@ app.views.PublisherUploader = Backbone.View.extend({ } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/publisher_view.js b/app/assets/javascripts/app/views/publisher_view.js index a14b55df7..8fcca9316 100644 --- a/app/assets/javascripts/app/views/publisher_view.js +++ b/app/assets/javascripts/app/views/publisher_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* Copyright (c) 2010-2012, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. @@ -491,3 +493,5 @@ $.fn.serializeObject = function() }); return o; }; +// @license-end + diff --git a/app/assets/javascripts/app/views/sidebar.js b/app/assets/javascripts/app/views/sidebar.js index a1f388684..d73dbf100 100644 --- a/app/assets/javascripts/app/views/sidebar.js +++ b/app/assets/javascripts/app/views/sidebar.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.Sidebar = app.views.Base.extend({ el: '.rightBar', @@ -9,3 +11,5 @@ app.views.Sidebar = app.views.Base.extend({ event.target.select(); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js index 69396abe6..eee0097ec 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_actions.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.SinglePostActions = app.views.Feedback.extend({ templateName: "single-post-viewer/single-post-actions", @@ -34,3 +36,5 @@ app.views.SinglePostActions = app.views.Feedback.extend({ } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js index b4a746a29..07f4d431d 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_comment_stream.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.SinglePostCommentStream = app.views.CommentStream.extend({ tooltipSelector: "time, .controls a", @@ -40,3 +42,5 @@ app.views.SinglePostCommentStream = app.views.CommentStream.extend({ }) }, }) +// @license-end + diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js index a012282c6..439237ec4 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_content_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.SinglePostContent = app.views.Base.extend({ templateName: 'single-post-viewer/single-post-content', tooltipSelector: "time, .post_scope", @@ -35,3 +37,5 @@ app.views.SinglePostContent = app.views.Base.extend({ return (app.currentUser.get("showNsfw")) || !this.model.get("nsfw") } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/single-post-viewer/single_post_interactions.js b/app/assets/javascripts/app/views/single-post-viewer/single_post_interactions.js index 17925c0f0..19fa85435 100644 --- a/app/assets/javascripts/app/views/single-post-viewer/single_post_interactions.js +++ b/app/assets/javascripts/app/views/single-post-viewer/single_post_interactions.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.SinglePostInteractions = app.views.Base.extend({ templateName: "single-post-viewer/single-post-interactions", tooltipSelector: ".avatar.micro", @@ -23,3 +25,5 @@ app.views.SinglePostInteractions = app.views.Base.extend({ } }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/stream/shortcuts.js b/app/assets/javascripts/app/views/stream/shortcuts.js index 11f39e2b7..9d07d42eb 100644 --- a/app/assets/javascripts/app/views/stream/shortcuts.js +++ b/app/assets/javascripts/app/views/stream/shortcuts.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.StreamShortcuts = { _headerSize: 50, @@ -103,3 +105,5 @@ app.views.StreamShortcuts = { element.className+=" shortcut_selected highlighted"; }, }; +// @license-end + diff --git a/app/assets/javascripts/app/views/stream_faces_view.js b/app/assets/javascripts/app/views/stream_faces_view.js index 949e8d0b0..9091c8bbe 100644 --- a/app/assets/javascripts/app/views/stream_faces_view.js +++ b/app/assets/javascripts/app/views/stream_faces_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.StreamFaces = app.views.Base.extend({ templateName : "stream-faces", @@ -27,3 +29,5 @@ app.views.StreamFaces = app.views.Base.extend({ this.render(); } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/stream_post_views.js b/app/assets/javascripts/app/views/stream_post_views.js index 6993bd79e..3270521bd 100644 --- a/app/assets/javascripts/app/views/stream_post_views.js +++ b/app/assets/javascripts/app/views/stream_post_views.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.StreamPost = app.views.Post.extend({ templateName: "stream-element", className : "stream_element loaded", @@ -113,3 +115,5 @@ app.views.StreamPost = app.views.Post.extend({ } }) +// @license-end + diff --git a/app/assets/javascripts/app/views/stream_view.js b/app/assets/javascripts/app/views/stream_view.js index 0cd222bd8..ca3058279 100644 --- a/app/assets/javascripts/app/views/stream_view.js +++ b/app/assets/javascripts/app/views/stream_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require ./stream/shortcuts app.views.Stream = app.views.InfScroll.extend(_.extend( @@ -38,3 +40,5 @@ app.views.Stream = app.views.InfScroll.extend(_.extend( streamSelection.find("[data-stream='" + activeStream + "']").addClass("selected"); } })); +// @license-end + diff --git a/app/assets/javascripts/app/views/tag_following_action_view.js b/app/assets/javascripts/app/views/tag_following_action_view.js index ce8dc8e30..2f770c1b9 100644 --- a/app/assets/javascripts/app/views/tag_following_action_view.js +++ b/app/assets/javascripts/app/views/tag_following_action_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.TagFollowingAction = app.views.Base.extend({ templateName: "tag_following_action", @@ -60,3 +62,5 @@ app.views.TagFollowingAction = app.views.Base.extend({ } } }); +// @license-end + diff --git a/app/assets/javascripts/app/views/tag_following_list_view.js b/app/assets/javascripts/app/views/tag_following_list_view.js index 6d7d49a68..d067b21df 100644 --- a/app/assets/javascripts/app/views/tag_following_list_view.js +++ b/app/assets/javascripts/app/views/tag_following_list_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + //= require jquery.autoSuggest.custom app.views.TagFollowingList = app.views.Base.extend({ @@ -77,3 +79,5 @@ app.views.TagFollowingList = app.views.Base.extend({ this.$el.empty(); }, }); +// @license-end + diff --git a/app/assets/javascripts/app/views/tag_following_view.js b/app/assets/javascripts/app/views/tag_following_view.js index e69c4dc6d..611b74f14 100644 --- a/app/assets/javascripts/app/views/tag_following_view.js +++ b/app/assets/javascripts/app/views/tag_following_view.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + app.views.TagFollowing = app.views.Base.extend({ templateName: "tag_following", @@ -31,3 +33,5 @@ app.views.TagFollowing = app.views.Base.extend({ } }); +// @license-end + diff --git a/app/assets/javascripts/aspects-dropdown.js b/app/assets/javascripts/aspects-dropdown.js index fe2a4447f..99ce1fac0 100644 --- a/app/assets/javascripts/aspects-dropdown.js +++ b/app/assets/javascripts/aspects-dropdown.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + // Copyright (c) 2010-2012, Diaspora Inc. This file is // licensed under the Affero General Public License version 3 or later. See // the COPYRIGHT file. @@ -73,3 +75,5 @@ var AspectsDropdown = { } }; +// @license-end + diff --git a/app/assets/javascripts/browser_detection.js b/app/assets/javascripts/browser_detection.js index 9387c379f..6a8e5adab 100644 --- a/app/assets/javascripts/browser_detection.js +++ b/app/assets/javascripts/browser_detection.js @@ -1,5 +1,9 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + jQuery.browser = {}; jQuery.browser.mozilla = /mozilla/.test(navigator.userAgent.toLowerCase()) && !/webkit/.test(navigator.userAgent.toLowerCase()); jQuery.browser.webkit = /webkit/.test(navigator.userAgent.toLowerCase()); jQuery.browser.opera = /opera/.test(navigator.userAgent.toLowerCase()); jQuery.browser.msie = /msie/.test(navigator.userAgent.toLowerCase()); +// @license-end + diff --git a/app/assets/javascripts/clear-form.js b/app/assets/javascripts/clear-form.js index 70d13f61d..db97fee95 100644 --- a/app/assets/javascripts/clear-form.js +++ b/app/assets/javascripts/clear-form.js @@ -16,3 +16,4 @@ $.fn.clearForm = function() { $(this).blur(); }); }; + diff --git a/app/assets/javascripts/contact-list.js b/app/assets/javascripts/contact-list.js index f8ee17374..53fc38873 100644 --- a/app/assets/javascripts/contact-list.js +++ b/app/assets/javascripts/contact-list.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + var List = { runDelayedSearch: function( searchTerm ) { $.getJSON('/people/refresh_search', @@ -19,3 +21,5 @@ var List = { setTimeout( "List.runDelayedSearch('" + theSearch + "')", 10000); } }; +// @license-end + diff --git a/app/assets/javascripts/diaspora.js b/app/assets/javascripts/diaspora.js index 7d683fdcb..e704f8054 100644 --- a/app/assets/javascripts/diaspora.js +++ b/app/assets/javascripts/diaspora.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + /* Copyright (c) 2010-2011, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. @@ -93,3 +95,5 @@ $(Diaspora.instantiatePage); +// @license-end + diff --git a/app/assets/javascripts/helpers/alert.js b/app/assets/javascripts/helpers/alert.js index 9f4dc97bd..0917c7cf4 100644 --- a/app/assets/javascripts/helpers/alert.js +++ b/app/assets/javascripts/helpers/alert.js @@ -1,3 +1,5 @@ +// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-v3-or-Later + Diaspora.Alert = { faceboxTemplate: '