mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 23:41:08 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 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();
|