mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 01:21:09 +02:00
- Add uload project with apps/web structure
- Reorganize from flat to monorepo structure
- Remove PocketBase binary and local data
- Update to pnpm and @uload/web namespace
- Add picture project to monorepo
- Remove embedded git repository
- Unify all package names to @{project}/{app} schema:
- @maerchenzauber/* (was @storyteller/*)
- @manacore/* (was manacore-*, manacore)
- @manadeck/* (was web, backend, manadeck)
- @memoro/* (was memoro-web, landing, memoro)
- @picture/* (already unified)
- @uload/web
- Add convenient dev scripts for all apps:
- pnpm dev:{project}:web
- pnpm dev:{project}:landing
- pnpm dev:{project}:mobile
- pnpm dev:{project}:backend
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
1.1 KiB
JavaScript
35 lines
1.1 KiB
JavaScript
import PocketBase from 'pocketbase';
|
|
|
|
const pb = new PocketBase('http://127.0.0.1:8090');
|
|
|
|
async function test() {
|
|
try {
|
|
console.log('Testing connection to PocketBase...');
|
|
|
|
// Test 1: Get all users
|
|
const users = await pb.collection('users').getList(1, 10);
|
|
console.log('Found users:', users.items.length);
|
|
users.items.forEach((u) => console.log(` - username: "${u.username}" (${u.email})`));
|
|
|
|
// Test 2: Find specific user
|
|
const user = await pb.collection('users').getFirstListItem('username="memoro"');
|
|
console.log('\nFound specific user:', user.username, user.id);
|
|
|
|
// Test 3: Get folders for user
|
|
const folders = await pb.collection('folders').getList(1, 50, {
|
|
filter: `user_id="${user.id}" && is_public=true`
|
|
});
|
|
console.log('Public folders:', folders.items.length);
|
|
|
|
// Test 4: Get links for user
|
|
const links = await pb.collection('links').getList(1, 100, {
|
|
filter: `user_id="${user.id}" && is_active=true`
|
|
});
|
|
console.log('Active links:', links.items.length);
|
|
} catch (err) {
|
|
console.error('Error:', err.message);
|
|
console.error('Full error:', err);
|
|
}
|
|
}
|
|
|
|
test();
|