Archived
1
0

switch to typescript

This commit is contained in:
Jeff Becker 2016-10-18 09:03:46 -04:00
parent ce3919fc1f
commit de5883d0a0
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
5 changed files with 9 additions and 22 deletions

View File

@ -85,7 +85,7 @@ done
if [ "$neochan" == "yes" ] ; then if [ "$neochan" == "yes" ] ; then
set +e set +e
for exe in lessc coffee ; do for exe in lessc tsc ; do
which $exe &> /dev/null which $exe &> /dev/null
if [ "$?" != "0" ] ; then if [ "$?" != "0" ] ; then
echo "$exe not installed"; echo "$exe not installed";
@ -98,10 +98,10 @@ if [ "$neochan" == "yes" ] ; then
echo echo
initfile "$neochan_js_outfile" initfile "$neochan_js_outfile"
for f in ./contrib/js/neochan/*.coffee ; do
echo "compile $f" echo "compile typescript"
coffee -cs < "$f" > "$f.js" tsc ./contrib/js/neochan/*.ts
done
for f in ./contrib/js/neochan/*.js ; do for f in ./contrib/js/neochan/*.js ; do
mini "$f" "$neochan_js_outfile" mini "$f" "$neochan_js_outfile"
done done

View File

@ -1 +1 @@
*.coffee.js *.js

View File

@ -1,5 +0,0 @@
// Generated by CoffeeScript 1.11.1
(function() {
}).call(this);

View File

@ -8,9 +8,9 @@
- files ( bool, do we allow attachments ? ) - files ( bool, do we allow attachments ? )
- csrf ( csrf token ) - csrf ( csrf token )
}} }}
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post"> <form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post" id="neochan_postform" >
{{{csrf}}} {{{csrf}}}
<input type="hidden" name="reference" value="{{reference}}" id="postform_reference"/> <input type="hidden" name="reference" value="{{reference}}" id="postform_reference" />
<div id="postform-outer"> <div id="postform-outer">
<div id="postform-inner"> <div id="postform-inner">
<table class="postform"> <table class="postform">
@ -32,7 +32,7 @@
</th> </th>
<td> <td>
<input type="text" name="subject" value="" id="postform_subject" /> <input type="text" name="subject" value="" id="postform_subject" />
<input type="submit" value="{{button}}" class="button" id="postform_submit" /> <button value="{{button}}" class="button" id="postform_submit" onclick="neochan_submit_post()" />
</td> </td>
</tr> </tr>
<tr> <tr>
@ -77,14 +77,6 @@
<input type="text" name="captcha" autocomplete="off" id="captcha_solution" /> <input type="text" name="captcha" autocomplete="off" id="captcha_solution" />
</td> </td>
</tr> </tr>
<!-- <tr>
<th>
{{#i18n.Translations}}{{cuckoo_pow}}{{/i18n.Translations}}
</th>
<td>
<input type="text" name="pow" autocomplete="off" id="miner_result" /><input id="start_miner" class="button" type="button" value="{{#i18n.Translations}}{{start_mining}}{{/i18n.Translations}}"/>
</td>
</tr> -->
</tbody> </tbody>
</table> </table>
</div> </div>