Remove Tailwind CSS and all remaining references (#2413)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
committed by
acx10
co-authored by
acx10
parent
5d9e535a14
commit
a0870cac86
+4
-4
@@ -1,13 +1,13 @@
|
||||
<div class="w-full h-[calc(100dvh-10.5rem)] md:h-[calc(100dvh-11.65rem)] overflow-y-auto border rounded-lg enclosing-container">
|
||||
<div class="pb-6">
|
||||
<div class="device-settings-container">
|
||||
<div class="koreader-section">
|
||||
<app-koreader-settings-component></app-koreader-settings-component>
|
||||
</div>
|
||||
<p-divider></p-divider>
|
||||
<div class="py-4">
|
||||
<div class="hardcover-section">
|
||||
<app-hardcover-settings-component></app-hardcover-settings-component>
|
||||
</div>
|
||||
<p-divider></p-divider>
|
||||
<div class="py-4">
|
||||
<div class="kobo-section">
|
||||
<app-kobo-sync-setting-component></app-kobo-sync-setting-component>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+20
-2
@@ -1,3 +1,21 @@
|
||||
.enclosing-container {
|
||||
border-color: var(--p-content-border-color);
|
||||
.device-settings-container {
|
||||
width: 100%;
|
||||
height: calc(100dvh - 10.5rem);
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-radius: 0.5rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: calc(100dvh - 11.65rem);
|
||||
}
|
||||
}
|
||||
|
||||
.koreader-section {
|
||||
padding-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.hardcover-section,
|
||||
.kobo-section {
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
+12
-12
@@ -96,7 +96,7 @@
|
||||
|
||||
<ng-template pTemplate="body" let-provider>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-radioButton
|
||||
name="defaultProvider"
|
||||
[value]="provider.id"
|
||||
@@ -107,10 +107,10 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.name" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.name" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<div class="flex align-items-center gap-2">
|
||||
<div class="provider-name-cell">
|
||||
<span>
|
||||
{{ provider.name }}
|
||||
@if (provider.shared) {
|
||||
@@ -123,7 +123,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.host" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.host" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.host }}</span>
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="number" [(ngModel)]="provider.port" class="p-inputtext w-full" size="small"/>
|
||||
<input type="number" [(ngModel)]="provider.port" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.port }}</span>
|
||||
@@ -141,7 +141,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.username" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.username" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.username }}</span>
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input [(ngModel)]="provider.password" class="p-inputtext w-full" size="small"/>
|
||||
<input [(ngModel)]="provider.password" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span class="password-hidden">Hidden</span>
|
||||
@@ -159,14 +159,14 @@
|
||||
|
||||
<td>
|
||||
@if (provider.isEditing) {
|
||||
<input type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="provider.fromAddress" class="p-inputtext input-full-width" size="small"/>
|
||||
}
|
||||
@if (!provider.isEditing) {
|
||||
<span>{{ provider.fromAddress }}</span>
|
||||
}
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.auth"
|
||||
[binary]="true"
|
||||
@@ -174,7 +174,7 @@
|
||||
</p-checkbox>
|
||||
</td>
|
||||
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.startTls"
|
||||
[binary]="true"
|
||||
@@ -183,7 +183,7 @@
|
||||
</td>
|
||||
|
||||
@if (isAdmin) {
|
||||
<td class="text-center">
|
||||
<td class="cell-center">
|
||||
<p-checkbox
|
||||
[(ngModel)]="provider.shared"
|
||||
[binary]="true"
|
||||
@@ -208,7 +208,7 @@
|
||||
</p-button>
|
||||
}
|
||||
@if (provider.isEditing) {
|
||||
<div class="flex gap-1">
|
||||
<div class="edit-actions">
|
||||
<p-button
|
||||
icon="pi pi-check"
|
||||
severity="success"
|
||||
|
||||
+19
@@ -202,3 +202,22 @@
|
||||
vertical-align: text-bottom;
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
.cell-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.input-full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.provider-name-cell {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.edit-actions {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
+3
-3
@@ -73,7 +73,7 @@
|
||||
|
||||
<td>
|
||||
@if (recipient.isEditing) {
|
||||
<input type="email" [(ngModel)]="recipient.email" class="p-inputtext w-full" size="small"/>
|
||||
<input type="email" [(ngModel)]="recipient.email" class="p-inputtext full-width" size="small"/>
|
||||
}
|
||||
@if (!recipient.isEditing) {
|
||||
<span>{{ recipient.email }}</span>
|
||||
@@ -82,7 +82,7 @@
|
||||
|
||||
<td>
|
||||
@if (recipient.isEditing) {
|
||||
<input type="text" [(ngModel)]="recipient.name" class="p-inputtext w-full" size="small"/>
|
||||
<input type="text" [(ngModel)]="recipient.name" class="p-inputtext full-width" size="small"/>
|
||||
}
|
||||
@if (!recipient.isEditing) {
|
||||
<span>{{ recipient.name }}</span>
|
||||
@@ -102,7 +102,7 @@
|
||||
</p-button>
|
||||
}
|
||||
@if (recipient.isEditing) {
|
||||
<div class="flex gap-1">
|
||||
<div class="edit-actions">
|
||||
<p-button
|
||||
icon="pi pi-check"
|
||||
severity="success"
|
||||
|
||||
+13
@@ -169,3 +169,16 @@
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edit-actions {
|
||||
display: flex;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="w-full h-[calc(100dvh-10.5rem)] md:h-[calc(100dvh-11.65rem)] overflow-y-auto border rounded-lg p-4 enclosing-container">
|
||||
<div class="email-settings-container enclosing-container">
|
||||
<div class="settings-header">
|
||||
<h2 class="settings-title">
|
||||
<i class="pi pi-envelope"></i>
|
||||
@@ -11,11 +11,11 @@
|
||||
</div>
|
||||
|
||||
@if (hasPermission) {
|
||||
<div class="pb-8">
|
||||
<div class="provider-section">
|
||||
<app-email-v2-provider></app-email-v2-provider>
|
||||
</div>
|
||||
<p-divider></p-divider>
|
||||
<div class="pt-4">
|
||||
<div class="recipient-section">
|
||||
<app-email-v2-recipient></app-email-v2-recipient>
|
||||
</div>
|
||||
} @else {
|
||||
|
||||
@@ -1,6 +1,23 @@
|
||||
.enclosing-container {
|
||||
border-color: var(--p-content-border-color);
|
||||
.email-settings-container {
|
||||
width: 100%;
|
||||
height: calc(100dvh - 10.5rem);
|
||||
overflow-y: auto;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1rem;
|
||||
background: var(--p-content-background);
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: calc(100dvh - 11.65rem);
|
||||
}
|
||||
}
|
||||
|
||||
.provider-section {
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.recipient-section {
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.settings-header {
|
||||
|
||||
+3
-3
@@ -34,7 +34,7 @@
|
||||
|
||||
<div class="settings-card">
|
||||
<div class="form-field">
|
||||
<div class="library-header pb-2">
|
||||
<div class="library-header">
|
||||
<i [class]="'pi pi-bolt'"></i>
|
||||
<span class="library-name">Default Pattern</span>
|
||||
</div>
|
||||
@@ -45,7 +45,7 @@
|
||||
[(ngModel)]="defaultPattern"
|
||||
placeholder="e.g., {title} - {authors}"
|
||||
(input)="onDefaultPatternChange(defaultPattern)"
|
||||
class="w-full"/>
|
||||
class="full-width"/>
|
||||
<p-button
|
||||
label="Save"
|
||||
icon="pi pi-save"
|
||||
@@ -94,7 +94,7 @@
|
||||
[(ngModel)]="library.fileNamingPattern"
|
||||
placeholder="Leave empty to use default pattern"
|
||||
(input)="onLibraryPatternChange(library)"
|
||||
class="w-full"/>
|
||||
class="full-width"/>
|
||||
<p-button
|
||||
label="Clear"
|
||||
(onClick)="clearLibraryPattern(library)"
|
||||
|
||||
+5
@@ -207,6 +207,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
|
||||
.pi {
|
||||
color: var(--p-primary-color);
|
||||
@@ -441,3 +442,7 @@
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
+6
-6
@@ -1,6 +1,6 @@
|
||||
<div class="w-full h-[calc(100dvh-10.5rem)] md:h-[calc(100dvh-11.65rem)] overflow-y-auto">
|
||||
<div class="metadata-settings-container">
|
||||
<app-metadata-persistence-settings-component></app-metadata-persistence-settings-component>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<div class="preferences-section">
|
||||
<div class="settings-card">
|
||||
<div class="section-header">
|
||||
@@ -27,12 +27,12 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-metadata-provider-settings></app-metadata-provider-settings>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-metadata-provider-field-selector></app-metadata-provider-field-selector>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-public-reviews-settings-component></app-public-reviews-settings-component>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-metadata-match-weights-component></app-metadata-match-weights-component>
|
||||
</div>
|
||||
|
||||
+14
@@ -1,3 +1,17 @@
|
||||
.metadata-settings-container {
|
||||
width: 100%;
|
||||
height: calc(100dvh - 10.5rem);
|
||||
overflow-y: auto;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: calc(100dvh - 11.65rem);
|
||||
}
|
||||
}
|
||||
|
||||
.section-divider {
|
||||
padding-top: 2.5rem;
|
||||
}
|
||||
|
||||
.settings-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
</td>
|
||||
<td>
|
||||
@if (editingUserId === user.id) {
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="inline-row">
|
||||
<p-select
|
||||
[options]="sortOrderOptions"
|
||||
[(ngModel)]="editingSortOrder"
|
||||
@@ -258,7 +258,7 @@
|
||||
</p-button>
|
||||
</div>
|
||||
} @else {
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="inline-row">
|
||||
<span class="sort-order-badge">{{ getSortOrderLabel(user.sortOrder) }}</span>
|
||||
<p-button
|
||||
icon="pi pi-pencil"
|
||||
@@ -272,10 +272,10 @@
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="inline-row">
|
||||
<p-password
|
||||
fluid
|
||||
class="w-32 md:w-56"
|
||||
styleClass="password-input"
|
||||
[(ngModel)]="dummyPassword"
|
||||
[feedback]="false"
|
||||
size="small"
|
||||
@@ -283,7 +283,7 @@
|
||||
[toggleMask]="false">
|
||||
</p-password>
|
||||
<i
|
||||
class="pi pi-info-circle text-gray-400"
|
||||
class="pi pi-info-circle info-icon"
|
||||
pTooltip="Passwords are hidden for security reasons. To change, delete the user and create a new one with a new password."
|
||||
tooltipPosition="right"
|
||||
style="cursor: pointer;">
|
||||
|
||||
@@ -279,6 +279,24 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.inline-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.info-icon {
|
||||
color: #9ca3af;
|
||||
}
|
||||
|
||||
:host ::ng-deep .password-input {
|
||||
width: 8rem;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
width: 14rem;
|
||||
}
|
||||
}
|
||||
|
||||
.empty-message {
|
||||
text-align: center;
|
||||
padding: 2rem 1rem;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@if (userService.userState$ | async; as userState) {
|
||||
@if (userState.user) {
|
||||
<div class="rounded-xl overflow-hidden border-[1px] border-solid border-[var(--p-content-border-color)]">
|
||||
<div class="settings-container">
|
||||
<p-tabs [(value)]="activeTab" lazy scrollable>
|
||||
<p-tablist>
|
||||
<p-tab [value]="SettingsTab.ReaderSettings">
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
.settings-container {
|
||||
border-radius: 0.75rem;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
<div class="user-profile-dialog min-w-[300px] md:min-w-[500px]">
|
||||
<div class="user-profile-dialog">
|
||||
|
||||
<div class="panel-header">
|
||||
<div class="header-icon-wrapper">
|
||||
|
||||
+5
@@ -1,10 +1,15 @@
|
||||
@use '../../../shared/styles/panel-shared' as panel;
|
||||
|
||||
.user-profile-dialog {
|
||||
min-width: 300px;
|
||||
max-width: 650px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
min-width: 500px;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
<div class="w-full h-[calc(100dvh-10.5rem)] md:h-[calc(100dvh-11.65rem)] overflow-y-auto">
|
||||
<div class="preferences-container">
|
||||
<app-view-preferences></app-view-preferences>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-filter-preferences></app-filter-preferences>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-sidebar-sorting-preferences></app-sidebar-sorting-preferences>
|
||||
<div class="pt-10"><hr></div>
|
||||
<div class="section-divider"><hr></div>
|
||||
<app-meta-center-view-mode-component></app-meta-center-view-mode-component>
|
||||
</div>
|
||||
|
||||
+14
@@ -1,3 +1,17 @@
|
||||
.enclosing-container {
|
||||
border-color: var(--p-content-border-color);
|
||||
}
|
||||
|
||||
.preferences-container {
|
||||
width: 100%;
|
||||
height: calc(100dvh - 10.5rem);
|
||||
overflow-y: auto;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: calc(100dvh - 11.65rem);
|
||||
}
|
||||
}
|
||||
|
||||
.section-divider {
|
||||
padding-top: 2.5rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user