1
0
mirror of https://github.com/writeas/writefreely synced 2025-02-01 23:16:45 +01:00
Matt Baer 09e70e07f8 Support loading more draft posts
This adds a "load more" button to the bottom of the draft posts page,
which calls /api/me/posts with new parameters and the current page
number. It then populates the page accordingly.

Ref T696 - load anon. posts with ?anonymous=1&page=1
Ref T401 - completes UI for post loading
2020-07-30 16:46:01 -04:00
..
2018-12-07 16:37:14 -05:00
2019-05-14 07:50:37 -04:00
2018-11-08 01:23:08 -05:00
2018-12-07 16:37:14 -05:00
2020-01-29 06:42:32 -05:00
2018-11-08 01:23:08 -05:00
2018-11-09 22:10:46 -05:00
2020-07-30 16:46:01 -04:00
2018-12-07 16:37:14 -05:00
2018-11-08 01:23:08 -05:00
2018-11-08 00:12:19 -05:00
2018-11-08 01:23:08 -05:00

static/js

This directory is for Javascript.

Updating libraries

Update instructions, for libraries that involve more than just downloading the latest version.

highlightjs

To update the highlightjs library, first download a plain package (no languages included) from highlightjs.org. The highlight.pack.js file in the archive should be moved into this static/js/ directory and renamed to highlight.min.js.

Then download an archive of the latest version. Extract it to some directory, and replace ~/Downloads/highlight.js below with the resulting directory.

#!/bin/bash

version=9.13.1

cd $GOPATH/src/github.com/writeas/writefreely/static/js/highlightjs
for f in $(ls ~/Downloads/highlight.js/src/languages); do
	# Use minified versions
	f=$(echo $f | sed 's/\.js/.min.js/')
	# Download the version
	wget "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/$version/languages/$f"
done

Commit the changes and you're done!