mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
ng material
This commit is contained in:
parent
7708151eb5
commit
cea33c7e93
32 changed files with 80 additions and 56 deletions
|
@ -13,7 +13,7 @@
|
|||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"aot": true,
|
||||
"aot": true,
|
||||
"progress": true,
|
||||
"extractCss": true,
|
||||
"outputPath": "dist",
|
||||
|
@ -38,19 +38,16 @@
|
|||
"scripts": [
|
||||
"node_modules/jquery/dist/jquery.min.js",
|
||||
"node_modules/chart.js/dist/Chart.js",
|
||||
"node_modules/hammerjs/hammer.min.js",
|
||||
"./node_modules/@fullcalendar/core/main.js",
|
||||
"./node_modules/@fullcalendar/interaction/main.js"
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
],
|
||||
"budgets": [{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}],
|
||||
"fileReplacements": [{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
|
@ -66,12 +63,10 @@
|
|||
"buildOptimizer": true
|
||||
},
|
||||
"hmr": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
],
|
||||
"budgets": [{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}],
|
||||
"fileReplacements": [{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.hmr.ts"
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^9.1.7",
|
||||
"@angular/cdk": "^8.0.0",
|
||||
"@angular/cdk": "^9.2.3",
|
||||
"@angular/common": "^9.1.7",
|
||||
"@angular/compiler": "^9.1.7",
|
||||
"@angular/core": "^9.1.7",
|
||||
"@angular/forms": "^9.1.7",
|
||||
"@angular/material": "^8.0.0",
|
||||
"@angular/material": "^9.2.3",
|
||||
"@angular/platform-browser": "^9.1.7",
|
||||
"@angular/platform-browser-dynamic": "^9.1.7",
|
||||
"@angular/platform-server": "^9.1.7",
|
||||
|
@ -40,7 +40,6 @@
|
|||
"eventemitter2": "^5.0.1",
|
||||
"font-awesome": "^4.7.0",
|
||||
"fullcalendar": "^4.0.0-alpha.4",
|
||||
"hammerjs": "^2.0.8",
|
||||
"jquery": "3.3.1",
|
||||
"moment": "^2.23.0",
|
||||
"ng2-cookies": "^1.0.12",
|
||||
|
|
|
@ -7,7 +7,7 @@ import { AuthService } from "./auth/auth.service";
|
|||
import { ILocalUser } from "./auth/IUserLogin";
|
||||
import { NotificationService, CustomPageService } from "./services";
|
||||
import { SettingsService } from "./services";
|
||||
import { MatSnackBar } from '@angular/material';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
|
||||
import { ICustomizationSettings, ICustomPage } from "./interfaces";
|
||||
import { StorageService } from './shared/storage/storage-service';
|
||||
|
|
|
@ -17,11 +17,20 @@ import {
|
|||
TooltipModule
|
||||
} from "primeng/primeng";
|
||||
|
||||
import {
|
||||
MatButtonModule, MatNativeDateModule, MatIconModule, MatSidenavModule, MatListModule, MatToolbarModule, MatAutocompleteModule, MatCheckboxModule, MatSnackBarModule,
|
||||
MatProgressSpinnerModule
|
||||
} from '@angular/material';
|
||||
import { MatCardModule, MatInputModule, MatTabsModule, MatSlideToggleModule } from "@angular/material";
|
||||
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
import { MatNativeDateModule } from '@angular/material/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatListModule } from '@angular/material/list';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import { MatCardModule } from "@angular/material/card";
|
||||
import { MatInputModule } from "@angular/material/input";
|
||||
import { MatSlideToggleModule } from "@angular/material/slide-toggle";
|
||||
import { MatTabsModule } from "@angular/material/tabs";
|
||||
|
||||
import { MDBBootstrapModule, CardsFreeModule, NavbarModule } from "angular-bootstrap-md";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Component, Inject, OnInit, ViewEncapsulation } from "@angular/core";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from "@angular/material";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA, MatDialog } from "@angular/material/dialog";
|
||||
import { IDiscoverCardResult } from "../../interfaces";
|
||||
import { SearchV2Service, RequestService, MessageService } from "../../../services";
|
||||
import { RequestType } from "../../../interfaces";
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component, OnInit, Input } from "@angular/core";
|
|||
import { IDiscoverCardResult } from "../../interfaces";
|
||||
import { RequestType, ISearchTvResult, ISearchMovieResult } from "../../../interfaces";
|
||||
import { SearchV2Service } from "../../../services";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { DiscoverCardDetailsComponent } from "./discover-card-details.component";
|
||||
import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2";
|
||||
import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
|
||||
|
|
|
@ -6,7 +6,7 @@ import { DiscoverCardComponent } from "./card/discover-card.component";
|
|||
import { Routes } from "@angular/router";
|
||||
import { AuthGuard } from "../../auth/auth.guard";
|
||||
import { SearchService, RequestService } from "../../services";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
|
||||
|
||||
export const components: any[] = [
|
||||
|
|
|
@ -15,7 +15,7 @@ import { ImageService } from "../services";
|
|||
|
||||
import { fadeInOutAnimation } from "../animations/fadeinout";
|
||||
import { StorageService } from "../shared/storage/storage-service";
|
||||
import { MatSnackBar } from "@angular/material";
|
||||
import { MatSnackBar } from "@angular/material/snack-bar";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./login.component.html",
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component } from "@angular/core";
|
|||
import { ImageService, SearchV2Service, RequestService, MessageService } from "../../../services";
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { YoutubeTrailerComponent } from "../shared/youtube-trailer.component";
|
||||
import { AuthService } from "../../../auth/auth.service";
|
||||
import { DenyDialogComponent } from "../shared/deny-dialog/deny-dialog.component";
|
||||
|
|
|
@ -3,7 +3,7 @@ import { ImageService, SearchV2Service, RequestService, MessageService } from ".
|
|||
import { ActivatedRoute } from "@angular/router";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { ISearchMovieResultV2 } from "../../../interfaces/ISearchMovieResultV2";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { YoutubeTrailerComponent } from "../shared/youtube-trailer.component";
|
||||
import { AuthService } from "../../../auth/auth.service";
|
||||
import { IMovieRequests, RequestType, IAdvancedData } from "../../../interfaces";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Component, Input, OnInit, EventEmitter, Output } from "@angular/core";
|
||||
import { RadarrService } from "../../../../../services";
|
||||
import { IRadarrProfile, IRadarrRootFolder, IMovieRequests, IAdvancedData } from "../../../../../interfaces";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { MovieAdvancedOptionsComponent } from "../movie-advanced-options/movie-advanced-options.component";
|
||||
import { RequestServiceV2 } from "../../../../../services/requestV2.service";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Component, Inject } from "@angular/core";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
import { IAdvancedData } from "../../../../../interfaces";
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, Inject, Output, EventEmitter } from "@angular/core";
|
||||
import { IDenyDialogData } from "../interfaces/interfaces";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
import { RequestService, MessageService } from "../../../../services";
|
||||
import { RequestType, IRequestEngineResult } from "../../../../interfaces";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Component, Inject, OnInit } from "@angular/core";
|
||||
import { IDenyDialogData, IIssueDialogData } from "../interfaces/interfaces";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
import { MessageService, IssuesService } from "../../../../services";
|
||||
import { IIssues, IIssueCategory, IssueStatus, RequestType } from "../../../../interfaces";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Component, Inject } from "@angular/core";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
|
||||
@Component({
|
||||
selector: "youtube-trailer",
|
||||
|
|
|
@ -2,7 +2,7 @@ import { Component, Input } from "@angular/core";
|
|||
import { IChildRequests, RequestType } from "../../../../../interfaces";
|
||||
import { RequestService } from "../../../../../services/request.service";
|
||||
import { MessageService } from "../../../../../services";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { DenyDialogComponent } from "../../../shared/deny-dialog/deny-dialog.component";
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -3,7 +3,7 @@ import { ImageService, SearchV2Service, MessageService, RequestService } from ".
|
|||
import { ActivatedRoute } from "@angular/router";
|
||||
import { DomSanitizer } from "@angular/platform-browser";
|
||||
import { ISearchTvResultV2 } from "../../../interfaces/ISearchTvResultV2";
|
||||
import { MatDialog } from "@angular/material";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { YoutubeTrailerComponent } from "../shared/youtube-trailer.component";
|
||||
import { EpisodeRequestComponent } from "../../../shared/episode-request/episode-request.component";
|
||||
import { IChildRequests, RequestType } from "../../../interfaces";
|
||||
|
|
|
@ -13,7 +13,7 @@ import { SearchV2Service } from "../services/searchV2.service";
|
|||
import { IMultiSearchResult } from "../interfaces";
|
||||
import { Router } from "@angular/router";
|
||||
import { FormGroup, FormBuilder } from "@angular/forms";
|
||||
import { MatAutocompleteSelectedEvent } from "@angular/material";
|
||||
import { MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
|
||||
|
||||
@Component({
|
||||
selector: "app-nav-search",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { Component, AfterViewInit, ViewChild, EventEmitter, Output, ChangeDetectorRef, OnInit } from "@angular/core";
|
||||
import { IMovieRequests, IRequestsViewModel } from "../../../interfaces";
|
||||
import { MatPaginator, MatSort } from "@angular/material";
|
||||
import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatSort } from "@angular/material/sort";
|
||||
import { merge, Observable, of as observableOf } from 'rxjs';
|
||||
import { catchError, map, startWith, switchMap } from 'rxjs/operators';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Component, ViewChild } from "@angular/core";
|
||||
import { MatBottomSheet } from "@angular/material";
|
||||
import { MatBottomSheet } from "@angular/material/bottom-sheet";
|
||||
import { RequestOptionsComponent } from "./options/request-options.component";
|
||||
import { UpdateType } from "../models/UpdateType";
|
||||
import { MoviesGridComponent } from "./movies-grid/movies-grid.component";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import { Component, AfterViewInit, ViewChild, Output, EventEmitter, ChangeDetectorRef, OnInit } from "@angular/core";
|
||||
import { IRequestsViewModel, IChildRequests } from "../../../interfaces";
|
||||
import { MatPaginator, MatSort } from "@angular/material";
|
||||
import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatSort } from "@angular/material/sort";
|
||||
import { merge, of as observableOf, Observable } from 'rxjs';
|
||||
import { catchError, map, startWith, switchMap } from 'rxjs/operators';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { AuthGuard } from "../auth/auth.guard";
|
|||
|
||||
import * as fromComponents from './components';
|
||||
import { RequestsListComponent } from "./components/requests-list.component";
|
||||
import { MatBottomSheetModule } from "@angular/material";
|
||||
import { MatBottomSheetModule } from "@angular/material/bottom-sheet";
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: "", component: RequestsListComponent, canActivate: [AuthGuard] },
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Injectable } from "@angular/core";
|
||||
import { MatSnackBar, MatSnackBarConfig } from "@angular/material";
|
||||
import { MatSnackBar, MatSnackBarConfig } from "@angular/material/snack-bar";
|
||||
|
||||
@Injectable()
|
||||
export class MessageService {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Injectable } from "@angular/core";
|
||||
import { Message } from "primeng/components/common/api";
|
||||
import { MatSnackBar, MatSnackBarConfig } from "@angular/material";
|
||||
import { MatSnackBar, MatSnackBarConfig } from "@angular/material/snack-bar";
|
||||
|
||||
@Injectable()
|
||||
export class NotificationService {
|
||||
|
|
|
@ -7,7 +7,7 @@ import { NotificationService } from "../../services";
|
|||
import { MobileService, SettingsService } from "../../services";
|
||||
import { CloudMobileService } from "../../services/cloudmobile.service";
|
||||
import { SelectionModel } from "@angular/cdk/collections";
|
||||
import { MatTableDataSource } from "@angular/material";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
|
||||
@Component({
|
||||
templateUrl: "./cloudmobile.component.html",
|
||||
|
|
|
@ -52,7 +52,7 @@ import { WikiComponent } from "./wiki.component";
|
|||
import { SettingsMenuComponent } from "./settingsmenu.component";
|
||||
|
||||
import { AutoCompleteModule, CalendarModule, DialogModule, InputSwitchModule, InputTextModule, MenuModule, RadioButtonModule, TooltipModule } from "primeng/primeng";
|
||||
import { MatMenuModule} from "@angular/material";
|
||||
import { MatMenuModule } from "@angular/material/menu";
|
||||
import { SharedModule } from "../shared/shared.module";
|
||||
import { HubService } from "../services/hub.service";
|
||||
import { LogsComponent } from "./logs/logs.component";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { Component, OnInit, Inject } from "@angular/core";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA, MatCheckboxChange } from "@angular/material";
|
||||
import { MatCheckboxChange } from "@angular/material/checkbox";
|
||||
import { MatDialogRef, MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
import { ISearchTvResultV2 } from "../../interfaces/ISearchTvResultV2";
|
||||
import { RequestService, MessageService } from "../../services";
|
||||
import { ITvRequestViewModel, ISeasonsViewModel, IEpisodesRequests, INewSeasonRequests } from "../../interfaces";
|
||||
|
|
|
@ -9,11 +9,30 @@ import { IssuesReportComponent } from "./issues-report.component";
|
|||
|
||||
import { InputSwitchModule, SidebarModule } from "primeng/primeng";
|
||||
|
||||
import {
|
||||
MatButtonModule, MatNativeDateModule, MatIconModule, MatSidenavModule, MatListModule, MatToolbarModule, MatTooltipModule, MatSelectModule, MatTableModule, MatPaginatorModule, MatSortModule,
|
||||
MatTreeModule, MatStepperModule, MatSnackBarModule} from '@angular/material';
|
||||
import { MatCardModule, MatInputModule, MatTabsModule, MatAutocompleteModule, MatCheckboxModule, MatExpansionModule, MatDialogModule, MatProgressSpinnerModule,
|
||||
MatChipsModule, MatSlideToggleModule } from "@angular/material";
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatNativeDateModule } from '@angular/material/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatListModule } from '@angular/material/list';
|
||||
import { MatPaginatorModule } from '@angular/material/paginator';
|
||||
import { MatSelectModule } from '@angular/material/select';
|
||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
||||
import { MatSortModule } from '@angular/material/sort';
|
||||
import { MatStepperModule } from '@angular/material/stepper';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { MatTreeModule } from '@angular/material/tree';
|
||||
import { MatAutocompleteModule } from "@angular/material/autocomplete";
|
||||
import { MatCardModule } from "@angular/material/card";
|
||||
import { MatCheckboxModule } from "@angular/material/checkbox";
|
||||
import { MatChipsModule } from "@angular/material/chips";
|
||||
import { MatDialogModule } from "@angular/material/dialog";
|
||||
import { MatExpansionModule } from "@angular/material/expansion";
|
||||
import { MatInputModule } from "@angular/material/input";
|
||||
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
|
||||
import { MatSlideToggleModule } from "@angular/material/slide-toggle";
|
||||
import { MatTabsModule } from "@angular/material/tabs";
|
||||
import { EpisodeRequestComponent } from "./episode-request/episode-request.component";
|
||||
|
||||
@NgModule({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { NgModule } from "@angular/core";
|
||||
import { RouterModule } from "@angular/router"
|
||||
|
||||
import { MatCheckboxModule } from '@angular/material';
|
||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||
|
||||
import { SharedModule } from "../shared/shared.module";
|
||||
import { QRCodeModule } from 'angularx-qrcode';
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
import { ICheckbox, ICustomizationSettings, IEmailNotificationSettings, IUser } from "../interfaces";
|
||||
import { IdentityService, NotificationService, SettingsService } from "../services";
|
||||
import { MatSort, MatTableDataSource } from "@angular/material";
|
||||
import { MatSort } from "@angular/material/sort";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { SelectionModel } from "@angular/cdk/collections";
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -4,7 +4,7 @@ import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|||
import { RouterModule, Routes } from "@angular/router";
|
||||
|
||||
import {ConfirmationService, ConfirmDialogModule } from "primeng/primeng";
|
||||
import { MatStepperModule } from "@angular/material";
|
||||
import { MatStepperModule } from "@angular/material/stepper";
|
||||
|
||||
import { CreateAdminComponent } from "./createadmin/createadmin.component";
|
||||
import { EmbyComponent } from "./emby/emby.component";
|
||||
|
|
|
@ -9,8 +9,6 @@ import { environment } from "./environments/environment";
|
|||
|
||||
import "./polyfills";
|
||||
|
||||
import "hammerjs";
|
||||
|
||||
import { enableProdMode } from "@angular/core";
|
||||
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
|
||||
import { AppModule } from "./app/app.module";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue