Heyuri / kokonotsuba

Heyuri's BBS software
Other
19 stars 12 forks source link

unnecessary linking to static.heyuri.net #75

Closed hachikuji-san closed 4 months ago

hachikuji-san commented 4 months ago

Teh problem the files:

there's seemingly unnecessary src's to static.heyuri.net when there are files on the instance that don't require communicating with Heyuri for.

for example, <script type="text/javascript" src="https://static.heyuri.net/js/koko/koko.js"></script> (can be found in any of the above listed files)

could be changed to src a local file on the instance instead. <script type="text/javascript" src="js/koko.js"></script>

Teh fix this pull request replaces the src attributes of a selection of the script tags in the specified files above to index the javascript files in the js. It makes kokonotsuba more portable and less reliant on Heyuri. Howevar, there's still more that should be made more independent from heyuri which isn't covered in this pull request.

bonus in kokoimg.tpl, <script id="wz_tooltip" type="text/javascript" src="{$STATIC_URL}javascript/wz_tooltip.js"></script> is changed to src the local file js/wz_tooltip.js

Stack instance was tested with (on localhost):