parent
4b1da71030
commit
e080e939dd
10
build-js.sh
10
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
|
||||
|
2
contrib/js/neochan/.gitignore
vendored
2
contrib/js/neochan/.gitignore
vendored
@ -1 +1 @@
|
||||
*.js
|
||||
*.coffee.js
|
5
contrib/js/neochan/init.coffee.js
Normal file
5
contrib/js/neochan/init.coffee.js
Normal file
@ -0,0 +1,5 @@
|
||||
// Generated by CoffeeScript 1.11.1
|
||||
(function() {
|
||||
|
||||
|
||||
}).call(this);
|
@ -8,9 +8,9 @@
|
||||
- files ( bool, do we allow attachments ? )
|
||||
- csrf ( csrf token )
|
||||
}}
|
||||
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post" id="neochan_postform" >
|
||||
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
|
||||
{{{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-inner">
|
||||
<table class="postform">
|
||||
@ -32,7 +32,7 @@
|
||||
</th>
|
||||
<td>
|
||||
<input type="text" name="subject" value="" id="postform_subject" />
|
||||
<button value="{{button}}" class="button" id="postform_submit" onclick="neochan_submit_post()" />
|
||||
<input type="submit" value="{{button}}" class="button" id="postform_submit" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -77,6 +77,14 @@
|
||||
<input type="text" name="captcha" autocomplete="off" id="captcha_solution" />
|
||||
</td>
|
||||
</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>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user