Add pagination for WI entries #964

This commit is contained in:
Cohee
2023-08-21 21:10:11 +03:00
parent 4a30875030
commit 069a07a139
6 changed files with 77 additions and 87 deletions

View File

@ -1,6 +1,8 @@
import { getContext } from "./extensions.js";
import { getRequestHeaders } from "../script.js";
export const PAGINATION_TEMPLATE = '<%= rangeStart %>-<%= rangeEnd %> of <%= totalNumber %>';
export function onlyUnique(value, index, array) {
return array.indexOf(value) === index;
}