Новые правки
This commit is contained in:
parent
79db7c8563
commit
a5f208a132
19 changed files with 852 additions and 1 deletions
15
frontend/scripts/check-h2.ts
Normal file
15
frontend/scripts/check-h2.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import PocketBase from 'pocketbase';
|
||||
|
||||
const pb = new PocketBase('http://127.0.0.1:8090');
|
||||
|
||||
async function main() {
|
||||
const posts = await pb.collection('posts').getList(1, 500, { filter: 'slug="skrytie-s-mesta-dtp"' });
|
||||
|
||||
if (posts.items.length > 0) {
|
||||
const content = posts.items[0].content;
|
||||
console.log('First 300 chars:');
|
||||
console.log(content.substring(0, 300));
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue