
- Flatten directory structure by moving files from astro-church-website/ to root - Remove church-core subdirectory in favor of inline Rust library - Update .gitignore to properly exclude build artifacts, generated files, and dependencies - Add environment variables, IDE files, and coverage reports to gitignore - Include generated CSS files and native bindings in ignore patterns
53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
// First, rename the CommonJS file to .cjs
|
|
import { createRequire } from 'module';
|
|
const require = createRequire(import.meta.url);
|
|
|
|
// Require the CommonJS module
|
|
const nativeBindings = require('../../../index.cjs');
|
|
|
|
export const {
|
|
getChurchName,
|
|
fetchEventsJson,
|
|
fetchFeaturedEventsJson,
|
|
fetchSermonsJson,
|
|
fetchLivestreamArchiveJson,
|
|
fetchConfigJson,
|
|
getMissionStatement,
|
|
fetchRandomBibleVerseJson,
|
|
getStreamLiveStatus,
|
|
getLivestreamUrl,
|
|
getChurchAddress,
|
|
getChurchPhysicalAddress,
|
|
getChurchPoBox,
|
|
getContactPhone,
|
|
getContactEmail,
|
|
getFacebookUrl,
|
|
getYoutubeUrl,
|
|
getInstagramUrl,
|
|
submitContactV2Json,
|
|
validateContactFormJson,
|
|
fetchBulletinsJson,
|
|
fetchCurrentBulletinJson,
|
|
fetchBibleVerseJson,
|
|
submitEventJson,
|
|
submitEventWithImageJson,
|
|
// Admin functions
|
|
fetchAllSchedulesJson,
|
|
createScheduleJson,
|
|
updateScheduleJson,
|
|
deleteScheduleJson,
|
|
// Admin auth
|
|
adminLoginJson,
|
|
validateAdminTokenJson,
|
|
// Admin events
|
|
fetchPendingEventsJson,
|
|
approvePendingEventJson,
|
|
rejectPendingEventJson,
|
|
deletePendingEventJson,
|
|
updateAdminEventJson,
|
|
deleteAdminEventJson,
|
|
// Admin bulletins
|
|
createBulletinJson,
|
|
updateBulletinJson,
|
|
deleteBulletinJson
|
|
} = nativeBindings; |