feat: Rename the card to advanced-camera-card (#1873)
Whilst the Frigate support in this card is the best among camera engines, the name incorrectly suggests that Frigate is a requirement. Instead, to broaden the appeal, change to more camera agnostic name. This does not suggest any change in priority, role or support for Frigate. This change is likely to be bug prone, due to the size of the rename -- the code contains 1500+ references to "Frigate" most of which make sense to rename, some which do not, all of which needed human assessment. - Closes #1298 BREAKING CHANGE: References to `frigate-card` in all kinds of configuration need to be updated to `advanced-camera-card`. An automated config upgrade should take care of the majority of usecases (click `Edit -> Upgrade -> Save`), though may not be perfect.
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
||||
import merge from 'lodash-es/merge';
|
||||
import { ViewContext } from 'view';
|
||||
import { FrigateCardView, ViewDisplayMode } from '../config/types.js';
|
||||
import { AdvancedCameraCardView, ViewDisplayMode } from '../config/types.js';
|
||||
import { MediaQueries } from './media-queries';
|
||||
import { MediaQueriesResults } from './media-queries-results';
|
||||
|
||||
@@ -13,7 +13,7 @@ declare module 'view' {
|
||||
}
|
||||
|
||||
interface ViewEvolveParameters {
|
||||
view?: FrigateCardView;
|
||||
view?: AdvancedCameraCardView;
|
||||
camera?: string;
|
||||
query?: MediaQueries | null;
|
||||
queryResults?: MediaQueriesResults | null;
|
||||
@@ -22,7 +22,7 @@ interface ViewEvolveParameters {
|
||||
}
|
||||
|
||||
export interface ViewParameters extends ViewEvolveParameters {
|
||||
view: FrigateCardView;
|
||||
view: AdvancedCameraCardView;
|
||||
camera: string;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ export const mergeViewContext = (
|
||||
};
|
||||
|
||||
export class View {
|
||||
public view: FrigateCardView;
|
||||
public view: AdvancedCameraCardView;
|
||||
public camera: string;
|
||||
public query: MediaQueries | null;
|
||||
public queryResults: MediaQueriesResults | null;
|
||||
@@ -117,7 +117,7 @@ export class View {
|
||||
/**
|
||||
* Determine if current view matches a named view.
|
||||
*/
|
||||
public is(view: FrigateCardView): boolean {
|
||||
public is(view: AdvancedCameraCardView): boolean {
|
||||
return this.view == view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user