changeset 370:5a4d31e97937

Remove extra file extensions.
author edogawaconan <me@myconan.net>
date Tue, 14 Apr 2015 00:22:07 +0900
parents c0d4e6115642
children 62f2a4b27af6
files app/assets/javascripts/application.coffee app/assets/javascripts/application.js.coffee app/assets/javascripts/autosize_box_fix.coffee app/assets/javascripts/autosize_box_fix.js.coffee app/assets/javascripts/boot.coffee app/assets/javascripts/boot.js.coffee app/assets/javascripts/config/highlight.coffee app/assets/javascripts/config/markdown.coffee app/assets/javascripts/config/marked.coffee app/assets/javascripts/config/marked.js.coffee app/assets/javascripts/config/prettify.coffee app/assets/javascripts/config/prettify.js.coffee app/assets/javascripts/zp.clean_notice.coffee app/assets/javascripts/zp.formatter.coffee app/assets/javascripts/zp.formatter.js.coffee app/assets/javascripts/zp.hash_magic.coffee app/assets/javascripts/zp.hash_magic.js.coffee app/assets/javascripts/zp.init.coffee app/assets/javascripts/zp.init.js.coffee app/assets/javascripts/zp.new.coffee app/assets/javascripts/zp.new.js.coffee app/assets/stylesheets/alert.css.scss app/assets/stylesheets/alert.scss app/assets/stylesheets/app_bootstrap.css.scss app/assets/stylesheets/app_bootstrap.scss app/assets/stylesheets/application.css.scss app/assets/stylesheets/application.scss app/assets/stylesheets/pastes.css.scss app/assets/stylesheets/pastes.scss app/assets/stylesheets/sticky_footer.css.scss app/assets/stylesheets/sticky_footer.scss app/assets/stylesheets/tabs.css.scss app/assets/stylesheets/tabs.scss
diffstat 33 files changed, 195 insertions(+), 185 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/application.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,5 @@
+#= require jquery_ujs
+#= require bootstrap/tab
+#= require bootstrap/button
+#= require bootstrap/dropdown
+#= require boot
--- a/app/assets/javascripts/application.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#= require jquery_ujs
-#= require bootstrap/tab
-#= require bootstrap/button
-#= require bootstrap/dropdown
-#= require boot
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/autosize_box_fix.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,4 @@
+$.autosize_box_fix = (elem) ->
+  elem.css 'box-sizing', ''
+  elem.css '-webkit-box-sizing', ''
+  elem.css '-moz-box-sizing', ''
--- a/app/assets/javascripts/autosize_box_fix.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-$.autosize_box_fix = (elem) ->
-  elem.css 'box-sizing', ''
-  elem.css '-webkit-box-sizing', ''
-  elem.css '-moz-box-sizing', ''
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/boot.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,8 @@
+#= require zp.init
+#= require zp.formatter
+#= require zp.hash_magic
+#= require zp.new
+$(document).ready ->
+  zp.formatter.init()
+  zp.hash_magic.init()
+  zp.new.init()
--- a/app/assets/javascripts/boot.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-#= require zp.init
-#= require zp.formatter
-#= require zp.hash_magic
-#= require zp.new
-$(document).ready ->
-  zp.formatter.init()
-  zp.hash_magic.init()
-  zp.new.init()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/config/highlight.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,1 @@
+#= require highlightjs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/config/markdown.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,1 @@
+#= require markdown
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/config/marked.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,5 @@
+#= require marked
+marked.setOptions
+  gfm: true
+  pedantic: true
+  sanitize: true
--- a/app/assets/javascripts/config/marked.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#= require marked
-marked.setOptions
-  gfm: true
-  pedantic: true
-  sanitize: true
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/config/prettify.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,1 @@
+#= require prettify
--- a/app/assets/javascripts/config/prettify.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-#= require prettify
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/zp.clean_notice.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,8 @@
+window.zp.cleanNotice =
+  init: ->
+    if (history.replaceState)
+      queryString = "?#{window.location.search.slice(1).replace(/(^|&)notice=[^&]*(&?)/, "$2")}"
+      newPath = window.location.pathname
+      newPath += queryString if queryString != "?"
+      newPath += window.location.hash
+      history.replaceState null, "", newPath
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/zp.formatter.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,18 @@
+#= require config/marked
+#= require config/prettify
+window.zp.formatter =
+  raw: -> $("#pl pre").text()
+  links: -> $("#paste-mode a")
+  current: -> $("#paste-mode .active a").attr("href").slice(1)
+  markdown: ->
+    $("#md div")
+      .html(marked @raw())
+      .find("pre").addClass "prettyprint"
+      .end()
+      .find("a").prop "rel", "nofollow"
+  highlight: ->
+    $("#hl pre").text @raw()
+    prettyPrint()
+  init: ->
+    @markdown()
+    @highlight()
--- a/app/assets/javascripts/zp.formatter.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#= require config/marked
-#= require config/prettify
-window.zp.formatter =
-  raw: -> $("#pl pre").text()
-  links: -> $("#paste-mode a")
-  current: -> $("#paste-mode .active a").attr("href").slice(1)
-  markdown: ->
-    $("#md div")
-      .html(marked @raw())
-      .find("pre").addClass "prettyprint"
-      .end()
-      .find("a").prop "rel", "nofollow"
-  highlight: ->
-    $("#hl pre").text @raw()
-    prettyPrint()
-  init: ->
-    @markdown()
-    @highlight()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/zp.hash_magic.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,21 @@
+#= require zp.formatter
+window.zp.hash_magic =
+  load_hash: ->
+    format = window.location.hash.slice(1)
+    tab_link = (fmt) -> zp.formatter.links().filter("[href='##{fmt}']")
+
+    format = "pl" unless tab_link(format).length
+    tab_link(format).click()
+
+  set_hash: (e) ->
+    format = zp.formatter.current()
+    newpath = window.location.pathname
+    newpath += "##{format}" if (format != "pl")
+    history.replaceState null, "", newpath
+
+  init: ->
+    return unless $("#paste").length
+    @load_hash()
+    if (history.replaceState)
+      @set_hash()
+      zp.formatter.links().on("shown.bs.tab", this.set_hash)
--- a/app/assets/javascripts/zp.hash_magic.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#= require zp.formatter
-window.zp.hash_magic =
-  load_hash: ->
-    format = window.location.hash.slice(1)
-    tab_link = (fmt) -> zp.formatter.links().filter("[href='##{fmt}']")
-
-    format = "pl" unless tab_link(format).length
-    tab_link(format).click()
-
-  set_hash: (e) ->
-    format = zp.formatter.current()
-    newpath = window.location.pathname
-    newpath += "##{format}" if (format != "pl")
-    history.replaceState null, "", newpath
-
-  init: ->
-    return unless $("#paste").length
-    @load_hash()
-    if (history.replaceState)
-      @set_hash()
-      zp.formatter.links().on("shown.bs.tab", this.set_hash)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/zp.init.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,1 @@
+window.zp = {}
--- a/app/assets/javascripts/zp.init.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-window.zp = {}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/javascripts/zp.new.coffee	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,16 @@
+#= require jquery.autosize
+#= require autosize_box_fix
+window.zp.new =
+  input: -> $("#paste_paste")
+
+  clear: (e) ->
+    e.preventDefault()
+    @input().val("").focus()
+
+  init: ->
+    return unless @input().length
+
+    $(document).on "click", "#reset_paste", $.proxy(@clear, this)
+    @input().autosize className: "mirrored_text form-control", append: "\n"
+    $.autosize_box_fix $(".mirrored_text")
+    @input().focus()
--- a/app/assets/javascripts/zp.new.js.coffee	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-#= require jquery.autosize
-#= require autosize_box_fix
-window.zp.new =
-  input: -> $("#paste_paste")
-
-  clear: (e) ->
-    e.preventDefault()
-    @input().val("").focus()
-
-  init: ->
-    return unless @input().length
-
-    $(document).on "click", "#reset_paste", $.proxy(@clear, this)
-    @input().autosize className: "mirrored_text form-control", append: "\n"
-    $.autosize_box_fix $(".mirrored_text")
-    @input().focus()
--- a/app/assets/stylesheets/alert.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-.alert {
-  margin-top: 20px;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/alert.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,3 @@
+.alert {
+  margin-top: 20px;
+}
--- a/app/assets/stylesheets/app_bootstrap.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-@import 'bootstrap';
-@import 'sticky_footer';
-
-// Rails support.
-.field_with_errors {
-  @extend .has-error;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/app_bootstrap.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,7 @@
+@import 'bootstrap';
+@import 'sticky_footer';
+
+// Rails support.
+.field_with_errors {
+  @extend .has-error;
+}
--- a/app/assets/stylesheets/application.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-@import "app_bootstrap";
-@import "bootstrap-prettify";
-
-@import "alert";
-@import "pastes";
-@import "sticky_footer";
-@import "tabs";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/application.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,7 @@
+@import "app_bootstrap";
+@import "bootstrap-prettify";
+
+@import "alert";
+@import "pastes";
+@import "sticky_footer";
+@import "tabs";
--- a/app/assets/stylesheets/pastes.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-textarea#paste_paste, .mirrored_text {
-  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
-  resize: none;
-  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
-  box-sizing: border-box;         /* Opera/IE 8+ */
-}
-
-#pl > pre {
-  word-break: normal;
-}
-
-#paste-show > div,
-#paste-show > ul,
-.edit_paste {
-  margin-bottom: 20px;
-}
-
-#paste_key {
-  border-radius: 4px 0 0 4px;
-}
-
-.input-url1 {
-  display: none;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/pastes.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,25 @@
+textarea#paste_paste, .mirrored_text {
+  font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
+  resize: none;
+  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
+  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
+  box-sizing: border-box;         /* Opera/IE 8+ */
+}
+
+#pl > pre {
+  word-break: normal;
+}
+
+#paste-show > div,
+#paste-show > ul,
+.edit_paste {
+  margin-bottom: 20px;
+}
+
+#paste_key {
+  border-radius: 4px 0 0 4px;
+}
+
+.input-url1 {
+  display: none;
+}
--- a/app/assets/stylesheets/sticky_footer.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-/* Sticky footer styles
--------------------------------------------------- */
-
-html,
-body {
-  height: 100%;
-  /* The html and body elements cannot have any padding or margin. */
-}
-
-/* Wrapper for page content to push down footer */
-#wrap {
-  min-height: 100%;
-  height: auto !important;
-  height: 100%;
-  /* Negative indent footer by its height */
-  margin: 0 auto -60px;
-  /* Pad bottom by footer height + 10 */
-  padding: 0 0 70px;
-}
-
-/* Set the fixed height of the footer here */
-#footer {
-  height: 60px;
-  background-color: #f5f5f5;
-}
-
-
-/* Custom page CSS
--------------------------------------------------- */
-/* Not required for template or sticky footer method. */
-
-.container .credit {
-  margin: 20px 0;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/sticky_footer.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,34 @@
+/* Sticky footer styles
+-------------------------------------------------- */
+
+html,
+body {
+  height: 100%;
+  /* The html and body elements cannot have any padding or margin. */
+}
+
+/* Wrapper for page content to push down footer */
+#wrap {
+  min-height: 100%;
+  height: auto !important;
+  height: 100%;
+  /* Negative indent footer by its height */
+  margin: 0 auto -60px;
+  /* Pad bottom by footer height + 10 */
+  padding: 0 0 70px;
+}
+
+/* Set the fixed height of the footer here */
+#footer {
+  height: 60px;
+  background-color: #f5f5f5;
+}
+
+
+/* Custom page CSS
+-------------------------------------------------- */
+/* Not required for template or sticky footer method. */
+
+.container .credit {
+  margin: 20px 0;
+}
--- a/app/assets/stylesheets/tabs.css.scss	Tue Apr 14 00:16:01 2015 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#md {
-  // copypasta from bootstrap's variables.scss
-  $baseFontSize_orig: 14px;
-  $baseLineHeight_orig: 20px;
-
-  // reduce for paste show
-  $baseFontSize: $baseFontSize_orig * 0.8;
-  $baseLineHeight: $baseLineHeight_orig * 0.8;
-
-  .well {
-    background-color: darken(white, 2%);
-  }
-
-  p {
-    margin: 0;
-  }
-
-  // copypasta from bootstrap's type.scss
-  h1,
-  h2,
-  h3 { line-height: $baseLineHeight * 2; }
-
-  // more copypasta from bootstrap's type.scss
-  h1 { font-size: $baseFontSize * 2.75; }
-  h2 { font-size: $baseFontSize * 2.25; }
-  h3 { font-size: $baseFontSize * 1.75; }
-  h4 { font-size: $baseFontSize * 1.25; }
-  h5 { font-size: $baseFontSize; }
-  h6 { font-size: $baseFontSize * 0.85; }
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/tabs.scss	Tue Apr 14 00:22:07 2015 +0900
@@ -0,0 +1,30 @@
+#md {
+  // copypasta from bootstrap's variables.scss
+  $baseFontSize_orig: 14px;
+  $baseLineHeight_orig: 20px;
+
+  // reduce for paste show
+  $baseFontSize: $baseFontSize_orig * 0.8;
+  $baseLineHeight: $baseLineHeight_orig * 0.8;
+
+  .well {
+    background-color: darken(white, 2%);
+  }
+
+  p {
+    margin: 0;
+  }
+
+  // copypasta from bootstrap's type.scss
+  h1,
+  h2,
+  h3 { line-height: $baseLineHeight * 2; }
+
+  // more copypasta from bootstrap's type.scss
+  h1 { font-size: $baseFontSize * 2.75; }
+  h2 { font-size: $baseFontSize * 2.25; }
+  h3 { font-size: $baseFontSize * 1.75; }
+  h4 { font-size: $baseFontSize * 1.25; }
+  h5 { font-size: $baseFontSize; }
+  h6 { font-size: $baseFontSize * 0.85; }
+}