Add 2026 and README.md
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -20,8 +20,8 @@ Alpine.data('bookmeterList', function () {
|
||||
title: '',
|
||||
author: '',
|
||||
nameFilter: '',
|
||||
years: [2023, 2024, 2025],
|
||||
year: this.$persist(['2025']).as('year-filter'),
|
||||
years: [2023, 2024, 2025, 2026],
|
||||
year: this.$persist(['2026']).as('year-filter'),
|
||||
orderColumn: ['order', 0],
|
||||
advancedSearch: this.$persist(0).as('advanced-search'),
|
||||
async init() {
|
||||
@@ -39,13 +39,14 @@ Alpine.data('bookmeterList', function () {
|
||||
let qp = new URLSearchParams(window.location.search);
|
||||
if(qp.get('filter')) this.nameFilter = qp.get('filter');
|
||||
|
||||
const [data1, data2, data3] = await Promise.all([
|
||||
const [data1, data2, data3, data4] = await Promise.all([
|
||||
fetch('/posts_2026.json').then(res => res.json()),
|
||||
fetch('/posts_2025.json').then(res => res.json()),
|
||||
fetch('/posts_2024.json').then(res => res.json()),
|
||||
fetch('/posts_2023.json').then(res => res.json())
|
||||
])
|
||||
|
||||
this.items = [...data1, ...data2, ...data3]
|
||||
this.items = [...data1, ...data2, ...data3, ...data4]
|
||||
.filter(i => i.book.title.length > 0)
|
||||
.map(i => ({
|
||||
...i,
|
||||
|
||||
Reference in New Issue
Block a user