Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 4661048523096064: Issue 2120 - Add support for animations. (Closed)

Created:
April 9, 2015, 8:38 p.m. by kzar
Modified:
April 14, 2015, 5:15 p.m.
CC:
saroyanm
Visibility:
Public.

Description

Issue 2120 - Add support for animations. Depends on changes to conversion script https://github.com/kzar/adblockplus-website-converter/compare/2120-animations?expand=1

Patch Set 1 #

Total comments: 1

Patch Set 2 : Forgot to give localise_path filter a default return! #

Total comments: 16

Patch Set 3 : Improved inline_file filter and removed localise_file filter we no longer need. #

Patch Set 4 : Use base64 module for the base64 encoding in the inline_file filter. #

Total comments: 8

Patch Set 5 : Improved license header for animation.js. #

Total comments: 8

Patch Set 6 : Addressed feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -0 lines) Patch
A filters/inline_file.py View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A static/js/animation.js View 1 2 3 4 5 1 chunk +349 lines, -0 lines 0 comments Download
A templates/raw.tmpl View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 15
kzar
Patch Set 1 http://codereview.adblockplus.org/4661048523096064/diff/5629499534213120/static/js/animation.js File static/js/animation.js (right): http://codereview.adblockplus.org/4661048523096064/diff/5629499534213120/static/js/animation.js#newcode8 static/js/animation.js:8: var loadSuffix = ".xml"; I had ...
April 9, 2015, 8:40 p.m. (2015-04-09 20:40:54 UTC) #1
kzar
Patch Set 2 : Forgot to give localise_path filter a default return!
April 9, 2015, 8:45 p.m. (2015-04-09 20:45:21 UTC) #2
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py File filters/inline_image.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py#newcode19 filters/inline_image.py:19: def inline_image(path): The code here isn't specific to images. ...
April 10, 2015, 7:55 a.m. (2015-04-10 07:55:46 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py File filters/inline_image.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py#newcode22 filters/inline_image.py:22: encoded = urllib.quote(f.read().encode("base64")) I'm not a fan of Python's ...
April 10, 2015, 9:50 a.m. (2015-04-10 09:50:24 UTC) #4
kzar
Patch Set 3 : Improved inline_file filter and removed localise_file filter we no longer need. ...
April 11, 2015, 1:32 p.m. (2015-04-11 13:32:01 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py File filters/inline_image.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5741031244955648/filters/inline_image.py#newcode22 filters/inline_image.py:22: encoded = urllib.quote(f.read().encode("base64")) On 2015/04/11 13:32:01, kzar wrote: > ...
April 11, 2015, 1:56 p.m. (2015-04-11 13:56:40 UTC) #6
kzar
Patch Set 4 : Use base64 module for the base64 encoding in the inline_file filter. ...
April 11, 2015, 2:05 p.m. (2015-04-11 14:05:21 UTC) #7
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py File filters/inline_file.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py#newcode25 filters/inline_file.py:25: mime_type = mimetypes.guess_type(path)[0] or "application/octet-stream" I wonder whether we ...
April 11, 2015, 2:15 p.m. (2015-04-11 14:15:32 UTC) #8
kzar
Patch Set 5 : Improved license header for animation.js. # http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py File filters/inline_file.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py#newcode25 ...
April 12, 2015, 5:01 p.m. (2015-04-12 17:01:45 UTC) #9
Wladimir Palant
http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/filters/inline_file.py File filters/inline_file.py (right): http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/filters/inline_file.py#newcode25 filters/inline_file.py:25: mime_type = mimetypes.guess_type(path)[0] or "application/octet-stream" Please create your own ...
April 12, 2015, 6:45 p.m. (2015-04-12 18:45:26 UTC) #10
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py File filters/inline_file.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py#newcode25 filters/inline_file.py:25: mime_type = mimetypes.guess_type(path)[0] or "application/octet-stream" On 2015/04/12 17:01:45, kzar ...
April 13, 2015, 8:12 a.m. (2015-04-13 08:12:58 UTC) #11
kzar
Patch Set 6 : Addressed feedback. http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py File filters/inline_file.py (right): http://codereview.adblockplus.org/4661048523096064/diff/5709068098338816/filters/inline_file.py#newcode25 filters/inline_file.py:25: mime_type = mimetypes.guess_type(path)[0] ...
April 13, 2015, 9:05 a.m. (2015-04-13 09:05:35 UTC) #12
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/static/js/animation.js File static/js/animation.js (right): http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/static/js/animation.js#newcode5 static/js/animation.js:5: * This script is free software: you can redistribute ...
April 13, 2015, 9:41 a.m. (2015-04-13 09:41:49 UTC) #13
Sebastian Noack
http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/static/js/animation.js File static/js/animation.js (right): http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/static/js/animation.js#newcode5 static/js/animation.js:5: * This script is free software: you can redistribute ...
April 13, 2015, 10:01 a.m. (2015-04-13 10:01:51 UTC) #14
Wladimir Palant
April 14, 2015, 4:58 p.m. (2015-04-14 16:58:50 UTC) #15
LGTM

http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/stat...
File static/js/animation.js (right):

http://codereview.adblockplus.org/4661048523096064/diff/4848992307380224/stat...
static/js/animation.js:5: * This script is free software: you can redistribute
it and/or modify
On 2015/04/13 10:01:52, Sebastian Noack wrote:
> I just realized that we seem to use this header consistently in the code here.

Yes, that was the point. Unfortunately, I'm not a lawyer and deciding what that
header should look like isn't trivial. Too bad this isn't MPL 2.0 :-(

Powered by Google App Engine
This is Rietveld