Commit Graph
1510 Commits
Author SHA1 Message Date
4gray a20143ce17 Merge pull request #674 from 4gray/fix/remote-control-bundle-fix
feat(package): include built remote-control-web in packaged app
2025-12-12 21:06:27 +01:00
4gray a80f3b925f feat(package): include built remote-control-web in packaged app
Add a packaging rule to copy the built remote-control-web output from
dist/apps/remote-control-web into the installer as remote-control-web.
Previously the repository included the raw source pattern
remote-control-web/**/* which did not reflect the compiled build output.
By pointing files to the dist build and filtering all files, the packaged
app now contains the production web assets instead of source files.

This fixes missing runtime assets in releases and ensures the packaged
installer includes the correct built web app for remote control.
2025-12-09 16:43:25 +01:00
4gray 6b0436e788 Merge pull request #672 from 4gray/style/improve-start-page
style/improve-start-page
v0.17.0 test-8d5537370ebf2f95d84122b2351763c2d3ef9579
2025-12-06 22:05:38 +01:00
4gray 3e2afe11e3 feat(ui): add remote-control URLs + fix header typos and env
Add support for displaying local remote-control URLs and QR code in the
Settings UI, including styles for URL list, row layout, monospaced links,
and a QR container. Expose a new global API signature getLocalIpAddresses
for retrieving local IPs.

Fix several UI issues:
- Correct typo in header method name (opedAddPlaylistDialog -> openAddPlaylistDialog).
- Fix malformed GitHub URL and collapse img tag formatting.
- Reformat imports and viewChild usage for readability.

Change local development backend URL to localhost:3000 in the local
environment to point to the running local API during development.

These changes improve developer ergonomics (local backend), add a remote
control discovery UX for users on the same network, and tidy up header
bugs and formatting.
2025-12-06 21:46:35 +01:00
4gray 7e4732a1bf chore: add angularx-qrcode and tidy package-lock entries 2025-12-06 21:45:51 +01:00
4gray aba6ef024f feat(ui): enable XC refresh only in Electron environment
Add an isElectron flag to PlaylistItemComponent and conditionally
render the refresh button only when running inside Electron.
This prevents exposing the server refresh action in non-Electron
(environments like the browser) where window.electron is unavailable
and the feature is not supported.

Update ensures safer behavior by checking !!window.electron in the
component and using that value in the template to guard the UI.
2025-12-06 21:44:50 +01:00
4gray 4437d2c2cd feat(i18n): add new translations strings
Add new English keys for remote control URL and QR code to support
remote-control features in the settings UI. Extend French locale with
many missing and corrected translations: add "Playlists" root entry,
Xtream/Stalker import labels, UI copy improvements (e.g. "Chaînes",
grammar fixes), new playlist export/copy messages, search/auto-refresh
labels, and removal success message. Fix several typos and phrasing in
French strings (IPTV, chaînes, ajouter(e), requièrent).

These changes enable new remote-control functionality and improve UX
for French users by completing and correcting the translations.
2025-12-06 21:44:25 +01:00
4gray ccc50573d4 feat(ui): add app-region drag/no-drag and tweak styles
Add app-region: drag to container and header elements and app-region:
no-drag to interactive controls multiple components so the
Tauri window dragging behaves correctly while keeping buttons and form
controls clickable. Expand header search max width from 500px to 800px
to give more room on larger screens. Clean up and restyle video-player
toolbar toolbar primary colors and unify toolbar spacing.

Files changed include navigation, sidebar, header, main containers,
live-stream layout, navigation-bar, stalker container, and video-player
toolbar. These changes improve window drag UX on desktop and refine
toolbar/header appearance.
2025-12-06 21:44:25 +01:00
4gray 3b97fec939 feat(electron-backend): enable macOS title bar overlay for main window
Add macOS-specific title bar settings to the Electron main window
creation so the app uses a hidden title bar with an overlay on Darwin.
This ensures a more native, modern appearance on macOS while keeping
existing minimum size and saved bounds behavior unchanged.
2025-12-06 21:44:25 +01:00
4gray aa2d5b9508 feat(ui): add empty-state and expose addPlaylist event
Introduce explicit empty-state handling in RecentPlaylists:
- Replace previous direct rendering of an empty mat-list item with
  app-empty-state for two cases: a global "welcome" state when no
  playlists exist at all, and a "no-results" state when filters/search
  return nothing. This clarifies UX and provides a CTA for adding
  playlists in the welcome state.
- Change playlist data binding from playlists$ to playlistsData$ and
  adapt loops and accessors to data.playlists / data.totalCount.
- Keep existing global favorites item and playlist-item rendering.

Wire up addPlaylist event and components:
- Add addPlaylistClicked output to RecentPlaylists component and
  forward the event from the home component so the parent can open
  the add-playlist flow.
- Import EmptyStateComponent and PlaylistType types used by the new
  output.

Minor cleanup and imports:
- Reformat some imports and add tap to RxJS imports.
- Adjust template structure and placeholders for deferred loading.
2025-12-06 21:44:25 +01:00
4gray b82d47f6b6 feat(ui): add AddPlaylistMenu component for playlist imports
Introduce a reusable AddPlaylistMenuComponent that provides a Material
menu with options to add playlists via file, URL, text, Xtream or Stalker
portal. Define a PlaylistType union and expose a playlistTypeSelected
output so parent components can react to the selected import type.

- Add component TypeScript with Angular metadata and required Material
  imports.
- Add template with accessible menu items, icons, translation keys and
  click handlers that emit the selected PlaylistType.
- Organize menu items with a divider to separate common file/URL/text
  options from provider-specific imports.

This adds a focused UI building block for playlist import flows and
standardizes how import type selection is communicated to parent scopes.
2025-12-06 21:44:25 +01:00
4gray c5ddbde305 chore: increase component CSS size error threshold
Raise the maximumError for anyComponentStyle from 8kb to
kb in the web app build configuration. This relaxes the
build-size enforcement for component styles to accommodate
slightly larger CSS bundles and avoid spurious build failures.
2025-12-06 21:44:25 +01:00
4gray 578a9567d1 feat(ui): add recent-playlists empty state component
Add a new EmptyState component and template for the recent-playlists
widget, providing two visual states: "welcome" and "no-results".

- Create empty-state.component.html with:
  - a welcome illustration (monitor + WiFi) and content for first-time
    users, including translated title/description, add-playlist action
    button and features list.
  - a no-results illustration (magnifying glass + box) and compact
    content for empty search/results.
  - conditional rendering based on type() to switch states.

- Start empty-state.component.ts with type definition and imports for
  Angular Material and translation; wire up AddPlaylistMenu types.

This implements the UI for when there are no recent playlists and
provides the primary CTA to add the first playlist, improving onboarding
and empty-state UX.
2025-12-06 21:44:25 +01:00
4gray 892857f000 docs: add Angular signal-based coding standards 2025-12-06 21:44:25 +01:00
4gray 31c557d506 feat(i18): add welcome and no-results copy for playlists
Add new strings for the PLAYLIST view across English,
Spanish, French, German, and translations. The additions include a
welcome title description, a prompt to the first playlist, feature
labels for supported playlist types (MU/M3U, Xtream Codes Stalker),
and "no results title and description to clarify search/filter
.

These changes improve the onboarding experience new users and giveclearer feedback when searches return no. They also
ize feature labels across languages to communicate
supported playlist formats
2025-12-06 21:44:25 +01:00
4gray 852758bc31 fix(i18): clean up and normalize translation JSON structures
- Shorten German settings TITLE from "Einstellungen / IPTVnator" to
  "Einstellungen" to remove redundant app name and keep UI labels concise.
- Reformat and normalize Korean i18n JSON indentation and structure to
  match expected layout (consistent nesting and whitespace).
- Reintroduce missing HOME -> nested sections (TABS, PLAYLISTS,
  FILE_UPLOAD, URL_UPLOAD, TEXT_IMPORT, STALKER_PORTAL, XTREAM_PLAYLIST)
  in ko.json to restore previously collapsed keys and ensure all keys
  are present for runtime lookup.
- Fix several untranslated/placeholder labels and ensure key presence
  for dialogs, validations and UI strings so translations load
  consistently across components.
2025-12-06 21:44:25 +01:00
4gray 5a453a3f40 style(recent-playlists): refine styles and add clipboard imports
Update recent playlists styles to improve visuals, hover feedback,
and theme adaptability. Key changes:
- Hide horizontal overflow on playlists list to avoid scroll bleed.
- Add rounded corners, subtle transitions, and hover background for
  mat-list-item; include light theme hover variant.
- Reduce drag preview radius, replace shadow with layered shadows,
  increase opacity, and extend drag animation duration for smoother
  interactions.
- Adjust responsive selector formatting.
- Add transitions and hover scaling to action buttons, plus light
  theme variant; improve icon opacity transitions.
- Improve icon container behavior and upload-type-icon visibility on
  hover.
- Restyle status dot and state shadows, tweak unavailable color.
- Restyle auto-refresh indicator with shadow, rotation on hover, and
  light theme background.
- Minor spacing and layout tweaks across SCSS.

Code imports:
- Add Clipboard and ClipboardModule import and include MatIconButton
  and MatTooltip references in playlist-info component to support new
  copy/tooltip UI affordances.

These changes enhance UX polish, accessibility of interactive affordances,
and light/dark theme consistency.
2025-12-06 21:44:25 +01:00
4gray 9238fc8d86 refactor(header): modernize header styles and remove unused module
Update header component UI and streamline imports.

- Remove MatToolbarModule import and module list entry
  because the toolbar styling is handled by local SCSS and the
  Angular Material toolbar is no longer required.
- Rewrite header SCSS to introduce a .modern-header wrapper with
  consistent sizing, padding, alignment and a subtle bottom border.
- Add layered ambient and depth effects: refined ::before ambient
  gradient (headerAmbience), ::after bottom accent, and adjusted
  keyframes for a gentler motion.
- Refine home-header styles to target .modern-header and tune colors
  and gradients for a cohesive dark theme.
- Rework .brand-block visuals: lighter glass effect, adjusted
  radii, blur, borders, hover transform, and shadowing for a modern
  elevated look.
- Minor cleanup: remove legacy variables and comments; improve
  box-sizing, layout, and pointer-event handling to ensure expected
  interaction regions.

These changes modernize the header's visual design, improve layout
consistency across pages, and remove an unnecessary module import.
2025-12-06 21:44:25 +01:00
4gray 53cbd64575 feat(header): add home styling, search output and host binding
Enhance the header component to support a distinct "home" appearance
and emit search updates. Add a HostBinding that toggles a home-header
class from the isHome flag so styles can target the home state.
Expose a searchQuery output and wire an onSearchQueryUpdate method to
emit the search text, enabling parent components to react to user
searches.
Refactor imports to include HostBinding and output. Tidy toolbar metrics
and adjust element sizing for a compact brand block and pulsing logo.
Introduce comprehensive SCSS for the home header:
- gradient background, animated glow overlay, and edge accent
- brand block styling with blur, border, hover states and box-shadow
- logo sizing, pulse animation and responsive tweaks
- reduced toolbar height and overall visual polish
These changes separate home-specific styling from the default header
appearance and provide a programmatic hook for search interactions.
2025-12-06 21:44:25 +01:00
4gray a08a4e4122 Merge pull request #673 from 4gray/build/unpack-libsql-native-bindings-win
build(win): unpack libsql native bindings in ASAR
2025-12-06 21:44:04 +01:00
4gray 7ee2cc4eea feat(db): add API to delete all playlists and related rows
Add a new IPC handler_DELETE_ALL_PLAYLIST that removes all
and related data from the SQLite database in a safe order that respects
foreign key relationships. The handler deletes favorites and recently
viewed entries first, then content, categories, and finally playlists.
Errors are logged and propagated.

Expose the new operation in the renderer preload API as
dbDeleteAllPlaylists() to allow UI code to invoke the purge. This
provides a single-call way to clear playlists and their dependent
records for testing or user-driven reset.
2025-12-06 14:46:37 +01:00
4gray ac39c2a9dd chore(deps): replace @libsql with better-sqlite3
Remove @libsql/client and its transitive entries from package-lock and
add better-sqlite3 plus its TypeScript types. This updates the lockfile
to reflect switching DB client dependencies: drop the @libsql packages
and related node_modules entries, and add "better-sqlite3" and
"@types/better-sqlite3". The change reduces unused libsql artifacts and
ensures type definitions are available for the new native sqlite client.
2025-12-06 09:26:27 +01:00
4gray 72802f3f7c build(win): unpack libsql native bindings in ASAR
Add an asarUnpack rule for node_modules/@libsql/** so native bindings are
not embedded in the ASAR archive. This ensures libsql's native modules
are available at runtime for the Electron app and prevents issues when
loading native binaries from inside an ASAR.

Also remove ia32 architecture from NSIS target, keeping only x64 to
align installers with supported platforms and reduce build artifacts.
2025-12-05 08:38:18 +01:00
4gray c2b1220386 Merge pull request #666 from 4gray/feat-extract-channel-item-add-epg-dialog
feat(ui): extract channel list item template and add EPG dialog
2025-11-29 18:48:34 +01:00
4gray f05469cc44 feat(ui): extract channel list item template and add EPG dialog 2025-11-27 08:20:54 +01:00
4gray 1914b4bce9 Merge pull request #664 from 4gray/ci/enable-aarch64-build 2025-11-26 20:22:53 +01:00
4gray 2c1d29f841 ci: restrict architecture targets to x64 only 2025-11-26 17:46:27 +01:00
4gray 4020de1af9 ci: enhance build workflow with Flatpak setup
Added Flatpak configuration steps to the build workflow.
2025-11-26 17:28:28 +01:00
4gray 3b76db7aeb ci: update Linux targets in package.json 2025-11-26 17:27:48 +01:00
4gray ae6e97db91 ci: install Linux dependencies in CI workflow
Added steps to install Linux system dependencies for builds.
2025-11-26 17:12:39 +01:00
4gray 1531b1ab73 ci: update Linux target configurations in package.json 2025-11-26 16:48:08 +01:00
4gray 59081ef342 Merge pull request #662 from 4gray/feat-store-backbutton-and-player-teardown
EPG Worker fix
2025-11-24 22:57:07 +01:00
4gray 008f267808 feat(ui/epg-list): replace mat-list with custom markup and add progress
Refactor EPG list template to remove Material selection list and 
dividers, replacing them with plain markup and CSS-friendly elements. 
Key changes: - Replace <mat-divider> with .header-divider for consistent
styling. - Replace mat-selection-list/mat-list-option with plain divs 
(.program-item,   .program-meta, .program-title) to allow richer DOM 
structure and avoid   Material selection semantics.
- Use track $index in ngFor to stabilize rendering and avoid using 
program   start/stop concatenation as key.
- Render live progress bar inside program items when a program is 
playing,   using calculateProgress(program) to set width.
- Convert empty-state <p> to .epg-not-available div for layout 
consistency. - Add clickable class and active class binding to 
interactive items. Code changes and cleanup:
- Update component imports to use ChangeDetectionStrategy and
  ChangeDetectorRef and remove unused Material imports (MatDivider, 
MatListModule)   from the component file.
- Adjust template bindings: use [innerHTML] and class bindings instead 
of   matList directives.
Why:
- Remove heavy dependency on Material selection list to gain finer 
control   over DOM and styles, enable custom progress UI and clickable 
behavior,
  and simplify template for better performance and maintainability.
2025-11-24 22:29:42 +01:00
4gray 7918c4849d fix: suppress snackbar for portal status checks and log them
Refactor error handling for Xtream requests to avoid showing user
snackbars when the request is a portal status check (get_account_info).
Instead of treating these errors as full failures, log them with
console.log to indicate the portal may be unavailable and return early.
Key changes:
- Introduce isStatusCheck detection in electron and pwa services.
- Replace console.error + snackbar with console.log for status checks.
- Only display snackbars for non-status-check errors.
- Add a console.log when pwa response has no payload for status checks.
This prevents unnecessary user-facing error popups for routine
portal health/status checks while keeping errors surfaced for other
requests.
2025-11-24 21:25:10 +01:00
4gray a948ce0265 feat(electron): bundle worker assets and resolve worker path
Add webpack config and include it in the electron backend build so 
worker scripts are correctly bundled for packaged apps. Move worker 
files to be packaged as extraResources instead of asar unpack patterns 
so the packaged app can load worker JS from Resources/dist/... at 
runtime. Fix worker path resolution in epg.events: compute resourcesPath
from app.getAppPath() and point to dist/apps/electron-backend/workers 
when app.isPackaged. Remove verbose app path logging and update comments
to reflect the actual packaged layout.
Why: ensure webworker entry points are included in the renderer/backend
bundle and accessible when the Electron app is packaged, preventing
worker loading failures in production builds.
2025-11-24 20:46:15 +01:00
4gray b7109c16a2 feat(package): update build directories and refine file inclusion for packaging 2025-11-24 17:40:48 +00:00
4gray 9f7995054d feat(epg): update worker path for packaged app and refine file inclusion in build 2025-11-24 17:19:35 +00:00
4gray 64afc2901e feat(epg): enhance worker path handling and add fallback for missing worker files 2025-11-24 16:21:00 +00:00
4gray 6b40287fae feat(epg): differentiate worker path for packaged and development environments 2025-11-24 16:08:05 +00:00
4gray 682b040aec fix(epg): update worker URL handling for packaged apps 2025-11-24 15:53:10 +00:00
4gray 1b4954e20b feat(epg): update worker path handling for production environment 2025-11-24 15:36:29 +00:00
4gray 5b697f458a feat(electron): load epg worker from asar.unpacked in prod
Update EPG worker path handling and unpack worker files for production
builds so the worker can be spawned when the app is packaged with ASAR.
- Change workerPath to let and, when the resolved path includes
  app.asar, replace it with app.asar.unpacked. This ensures the spawned
  worker points to the unpacked resource in production.
- Add electron-builder asarUnpack pattern for workers/** so worker files
  are packaged outside the ASAR archive.
These changes fix runtime errors where worker threads cannot be started
from inside app.asar and ensure the EPG parser can run in packaged apps.
2025-11-23 22:16:33 +01:00
4gray 573ca01925 fix(artplayer): manage Hls instance and centralize player teardown
Add a dedicated hls field and a destroyPlayer() helper to ensure Hls
instances are properly destroyed when the component is torn down or
re-initialized. Replace inline Hls creation with a guarded pattern that
destroys any existing hls before creating a new one, preventing leaks or
duplicate attachments. Use destroyPlayer() from ngOnDestroy and when the
channel input changes to centralize teardown logic and keep lifecycle
handling consistent.
2025-11-23 21:53:01 +01:00
4gray 5f35d22076 style: adjust overflow rules in xtream detail views
Change overflow handling in the xtream detail-view SCSS files to avoid
unwanted scrollbars and ensure proper layout stretching. In the web
version, remove a global overflow:auto and set overflow:visible on the
.details block and the grid container so inner content can expand as
needed. In the tauri variant, remove a min-height that forced an
artificial viewport-based height.
These tweaks fix layout clipping and scrollbar issues when detail 
content
grows, and allow natural sizing across web and Tauri builds.
2025-11-23 21:39:07 +01:00
4gray 94a07d3a63 feat(stalker): add back button in details view
Add clearSelectedItem() to the stalker store to reset selected item
state (selectedVodId, selectedSerialId, selectedItvId, selectedItem).
This centralizes clearing logic and avoids manual nulling elsewhere.
Introduce goBackToList() in the container component to use the new
store method when navigating back from item details. Update the
template to conditionally show the back button when a selected item
exists, and ensure category title rendering and the disabled category
button behave correctly with the new conditional structure.
These changes simplify state management for returning from detail
views and make the template logic clearer and less error-prone.
2025-11-23 21:38:46 +01:00
4gray 97aa1d4a59 Merge pull request #659 from 4gray/feat-info-overlay-no-epg-layout
feat-info-overlay-no-epg-layout
2025-11-23 19:50:27 +01:00
4gray 12a513802a fix(electron): simplify production load and CI frontend build
Remove unused url.format import and switch from loadURL with a
formatted file: URL to loadFile for production. This simplifies code,
avoids manual file URL construction, and makes the production path
loading more robust.
Also update CI job to build the frontend via the NX command
(npx nx build web --skip-nx-cache) instead of npm run build:frontend,
aligning the workflow with the monorepo's canonical build command.
2025-11-23 19:14:01 +01:00
4gray e279172dfe fix(ui): correct fonts, semicolons and preload target
- Add missing semicolon in apps/web/src/styles.scss to fix invalid CSS
  that could break style parsing for .scroll-viewport.
- Change preconnect in apps/web/src/index.html from fonts.gstatic.com to
  fonts.googleapis.com and consolidate multiple Google Fonts links into 
  a single stylesheet URL to reduce redundant requests and ensure 
  Material Icons and selected font families load together.
  Remove duplicated @import of Outfit in
  
  libs/ui/components/src/lib/multi-epg/multi-epg-container.component.scss, 
  switch component font-family to Roboto (with fallback) and update 
  button font to match, ensuring consistent typography and avoiding 
  external import duplication across components. ese changes fix a 
  ntax error, optimize font loading, and standardize
typography across the UI.
2025-11-23 18:50:46 +01:00
4gray 09ad2c3b1b refactor(ui): tidy imports, simplify cleanup, and format styles 2025-11-23 18:50:46 +01:00
4gray 13c05c85b0 docs: normalize list indentation and fix formatting
Adjust documentation lists and code blocks for consistent
indentation and spacing across CLAUDE.md. Convert mixed dash
and nested list levels to use uniform two-space indentation for
subitems, reflow a few wrapped lines, and add blank lines where
needed to separate sections and examples. These changes improve
readability and maintain a consistent markdown structure for the
project documentation.
2025-11-23 18:50:46 +01:00