From e080e939ddc8f5bfc8e86c8c5e5e96d27cac3159 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 18 Oct 2016 10:30:32 -0400 Subject: [PATCH] Revert "switch to typescript" This reverts commit de5883d0a039390b1f7376e9d943ac15a8666116. --- build-js.sh | 10 +++++----- contrib/js/neochan/.gitignore | 2 +- contrib/js/neochan/{postform.ts => init.coffee} | 0 contrib/js/neochan/init.coffee.js | 5 +++++ contrib/templates/neochan/postform.mustache | 14 +++++++++++--- 5 files changed, 22 insertions(+), 9 deletions(-) rename contrib/js/neochan/{postform.ts => init.coffee} (100%) create mode 100644 contrib/js/neochan/init.coffee.js diff --git a/build-js.sh b/build-js.sh index ab7940c..c24b0cb 100755 --- a/build-js.sh +++ b/build-js.sh @@ -85,7 +85,7 @@ done if [ "$neochan" == "yes" ] ; then set +e - for exe in lessc tsc ; do + for exe in lessc coffee ; do which $exe &> /dev/null if [ "$?" != "0" ] ; then echo "$exe not installed"; @@ -98,10 +98,10 @@ if [ "$neochan" == "yes" ] ; then echo initfile "$neochan_js_outfile" - - echo "compile typescript" - tsc ./contrib/js/neochan/*.ts - + for f in ./contrib/js/neochan/*.coffee ; do + echo "compile $f" + coffee -cs < "$f" > "$f.js" + done for f in ./contrib/js/neochan/*.js ; do mini "$f" "$neochan_js_outfile" done diff --git a/contrib/js/neochan/.gitignore b/contrib/js/neochan/.gitignore index 4c43fe6..5e8935c 100644 --- a/contrib/js/neochan/.gitignore +++ b/contrib/js/neochan/.gitignore @@ -1 +1 @@ -*.js \ No newline at end of file +*.coffee.js \ No newline at end of file diff --git a/contrib/js/neochan/postform.ts b/contrib/js/neochan/init.coffee similarity index 100% rename from contrib/js/neochan/postform.ts rename to contrib/js/neochan/init.coffee diff --git a/contrib/js/neochan/init.coffee.js b/contrib/js/neochan/init.coffee.js new file mode 100644 index 0000000..49caa98 --- /dev/null +++ b/contrib/js/neochan/init.coffee.js @@ -0,0 +1,5 @@ +// Generated by CoffeeScript 1.11.1 +(function() { + + +}).call(this); diff --git a/contrib/templates/neochan/postform.mustache b/contrib/templates/neochan/postform.mustache index aacee01..f135674 100644 --- a/contrib/templates/neochan/postform.mustache +++ b/contrib/templates/neochan/postform.mustache @@ -8,9 +8,9 @@ - files ( bool, do we allow attachments ? ) - csrf ( csrf token ) }} -
+ {{{csrf}}} - +
@@ -32,7 +32,7 @@ @@ -77,6 +77,14 @@ +
-