Skip to content

Commit

Permalink
Build stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zixaphir committed Jan 24, 2015
1 parent a7c8763 commit c675565
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Auto detect text files and perform LF normalization
* text=auto

builds/* -text
text eol=lf

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
Expand Down
4 changes: 2 additions & 2 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ module.exports = (grunt) ->
grunt.util.linefeed = '\n'

importCSS = (filename) ->
"\"\"\"#{grunt.file.read("src/General/css/#{filename}.css").replace(/\s+/g, ' ').trim()}\"\"\""
"\"\"\"#{grunt.file.read("src/General/css/#{filename}.css").replace(/\s+/g, ' ').replace(/\r/g, '').trim()}\"\"\""

importHTML = (filename) ->
"(innerHTML: #{JSON.stringify(grunt.file.read("src/General/html/#{filename}.html").replace(/^\s+|\s+$</gm, '').replace(/\n/g, '')).replace(/\\\\u/g, '\\u')})"
"(innerHTML: #{JSON.stringify(grunt.file.read("src/General/html/#{filename}.html").replace(/^ +| +$</gm, '').replace(/\r?\n/g, '')).replace(/\\\\u/g, '\\u')})"

html = (template) ->
parts = template.split /([\$&@]){([^}`]*)}/
Expand Down
17 changes: 5 additions & 12 deletions builds/appchan-x.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 5 additions & 12 deletions builds/crx/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Filtering/Anonymize.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Anonymize =
archive: ->
$.ready ->
name.textContent = 'Anonymous' for name in $$ '.name'
$.rm trip for trip in $$ '.postertrip'
$.rm trip for trip in $$ '.postertrip'
return
1 change: 1 addition & 0 deletions src/General/Header.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Header =
a.className = 'current'
if Conf['JSON Navigation']
$.on a, 'click', Navigate.navigate for a in $$ 'a', footer
return

bar: $.el 'div',
id: 'header-bar'
Expand Down
1 change: 1 addition & 0 deletions src/Monitoring/Unread.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ Unread =
updatePosition: ->
while Unread.position and !Unread.posts.has Unread.position.ID
Unread.position = Unread.position.next
return

saveLastReadPost: $.debounce 2 * $.SECOND, ->
postIDs = Unread.thread.posts.keys
Expand Down

0 comments on commit c675565

Please sign in to comment.