refactor: update environment configuration and documentation
- Modified `.env.example` to reflect new API URL structure and added CDN configuration for external storage. - Updated `.gitignore` to include deployment secrets and certificate files, ensuring sensitive information is not committed. - Revised `BACKEND_INTEGRATION.md` to clarify authentication methods, replacing Cognito references with Nostr NIP-98. - Deleted outdated documentation files (`CONTENT-INTEGRATION-COMPLETE.md`, `CURSOR-MCP-SETUP.md`, `FINAL-STATUS.md`, `FIXES-APPLIED.md`, `INDEEHHUB-INTEGRATION.md`, `PROJECT-COMPLETE.md`, `PROJECT-SUMMARY.md`) to streamline project documentation. These changes enhance the clarity of the environment setup and improve the overall documentation structure for better developer onboarding.
This commit is contained in:
@@ -108,7 +108,7 @@ html {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Netflix-style hero gradient */
|
||||
/* Hero gradient overlay */
|
||||
.hero-gradient {
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
|
||||
@@ -44,7 +44,7 @@ export interface NostrEvent {
|
||||
sig: string
|
||||
}
|
||||
|
||||
// Content row for Netflix-style interface
|
||||
// Content row for browse interface
|
||||
export interface ContentRow {
|
||||
title: string
|
||||
contents: Content[]
|
||||
|
||||
@@ -22,12 +22,11 @@ export interface IndeeHubFilm {
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch films from IndeeHub screening room
|
||||
* TODO: Replace with actual API call when authenticated
|
||||
* Fetch films from IndeeHub screening room.
|
||||
* For authenticated requests, use indeehub-api.service which attaches NIP-98 tokens.
|
||||
*/
|
||||
export async function fetchFilms(): Promise<IndeeHubFilm[]> {
|
||||
try {
|
||||
// TODO: Add authentication headers (NIP-98 for Nostr auth)
|
||||
const response = await fetch(`${INDEEDHUB_API}/screening-room?type=film`, {
|
||||
headers: {
|
||||
// Add your auth headers here
|
||||
|
||||
@@ -82,11 +82,10 @@ class NostrService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Publish a view/watch event
|
||||
* Publish a view/watch event (NIP-XX view tracking — not yet implemented)
|
||||
*/
|
||||
async publishView(videoEventId: string) {
|
||||
// TODO: Implement NIP-XX for view tracking
|
||||
console.log('Publishing view for:', videoEventId)
|
||||
async publishView(_videoEventId: string) {
|
||||
// View tracking via Nostr not yet implemented
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user