fix: drop telemetry from app (#52)
This commit is contained in:
-28
@@ -192,34 +192,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Telemetry Setting Section -->
|
||||
<div class="preferences-section">
|
||||
<div class="section-header">
|
||||
<h3 class="section-title">
|
||||
<i class="pi pi-chart-bar"></i>
|
||||
{{ t('telemetry.sectionTitle') }}
|
||||
<app-external-doc-link docType="telemetry"></app-external-doc-link>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="settings-card">
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<div class="setting-label-row">
|
||||
<label class="setting-label">{{ t('telemetry.enableTelemetry') }}</label>
|
||||
<p-toggleswitch
|
||||
[(ngModel)]="toggles.enableTelemetry"
|
||||
(onChange)="onToggleChange('enableTelemetry', $event.checked)">
|
||||
</p-toggleswitch>
|
||||
</div>
|
||||
<p class="setting-description">
|
||||
<i class="pi pi-info-circle"></i>
|
||||
{{ t('telemetry.telemetryDesc') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
-3
@@ -37,7 +37,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
toggles = {
|
||||
autoBookSearch: false,
|
||||
similarBookRecommendation: false,
|
||||
enableTelemetry: true,
|
||||
};
|
||||
|
||||
coverCroppingSettings: CoverCroppingSettings = {
|
||||
@@ -77,7 +76,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
}
|
||||
this.toggles.autoBookSearch = settings.autoBookSearch ?? false;
|
||||
this.toggles.similarBookRecommendation = settings.similarBookRecommendation ?? false;
|
||||
this.toggles.enableTelemetry = settings?.telemetryEnabled ?? true;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -86,7 +84,6 @@ export class GlobalPreferencesComponent implements OnInit {
|
||||
const toggleKeyMap: Record<string, AppSettingKey> = {
|
||||
autoBookSearch: AppSettingKey.AUTO_BOOK_SEARCH,
|
||||
similarBookRecommendation: AppSettingKey.SIMILAR_BOOK_RECOMMENDATION,
|
||||
enableTelemetry: AppSettingKey.TELEMETRY_ENABLED,
|
||||
};
|
||||
const keyToSend = toggleKeyMap[settingKey];
|
||||
if (keyToSend) {
|
||||
|
||||
+2
-3
@@ -3,7 +3,7 @@ import {Tooltip} from 'primeng/tooltip';
|
||||
|
||||
export type DocType = 'kobo' | 'opds' | 'metadataManager' | 'koReader' | 'email'
|
||||
| 'amazonCookie' | 'fetchConfig' | 'hardcover' | 'taskManagement' | 'fileNamePatterns'
|
||||
| 'authentication' | 'telemetry';
|
||||
| 'authentication';
|
||||
|
||||
@Component({
|
||||
selector: 'app-external-doc-link',
|
||||
@@ -38,8 +38,7 @@ export class ExternalDocLinkComponent {
|
||||
fetchConfig: `${this.BASE_URL}/metadata/metadata-fetch-configuration`,
|
||||
taskManagement: `${this.BASE_URL}/tools/task-manager`,
|
||||
fileNamePatterns: `${this.BASE_URL}/metadata/file-naming-patterns`,
|
||||
authentication: `${this.BASE_URL}/authentication/overview#setting-up-oidc`,
|
||||
telemetry: `${this.BASE_URL}/tools/telemetry`
|
||||
authentication: `${this.BASE_URL}/authentication/overview#setting-up-oidc`
|
||||
};
|
||||
|
||||
@Input() docType!: DocType;
|
||||
|
||||
@@ -192,7 +192,6 @@ export interface AppSettings {
|
||||
koboSettings: KoboSettings;
|
||||
coverCroppingSettings: CoverCroppingSettings;
|
||||
metadataDownloadOnBookdrop: boolean;
|
||||
telemetryEnabled: boolean;
|
||||
metadataProviderSpecificFields: MetadataProviderSpecificFields;
|
||||
oidcSessionDurationHours: number | null;
|
||||
oidcGroupSyncMode: string | null;
|
||||
@@ -242,7 +241,6 @@ export enum AppSettingKey {
|
||||
METADATA_PUBLIC_REVIEWS_SETTINGS = 'METADATA_PUBLIC_REVIEWS_SETTINGS',
|
||||
KOBO_SETTINGS = 'KOBO_SETTINGS',
|
||||
COVER_CROPPING_SETTINGS = 'COVER_CROPPING_SETTINGS',
|
||||
TELEMETRY_ENABLED = 'TELEMETRY_ENABLED',
|
||||
METADATA_PROVIDER_SPECIFIC_FIELDS = 'METADATA_PROVIDER_SPECIFIC_FIELDS',
|
||||
OIDC_SESSION_DURATION_HOURS = 'OIDC_SESSION_DURATION_HOURS',
|
||||
OIDC_GROUP_SYNC_MODE = 'OIDC_GROUP_SYNC_MODE',
|
||||
|
||||
Reference in New Issue
Block a user