-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from AurelicButter/feature/744
[Feature/744] Added Until Release Display on Book Page
- Loading branch information
Showing
17 changed files
with
176 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { BrowserModule } from "@angular/platform-browser"; | ||
import { HomePageComponent } from "./home-page.component"; | ||
|
||
import { SharedModule } from "../shared/shared.module"; | ||
import { CommonModule } from "@angular/common"; | ||
|
||
@NgModule({ | ||
declarations: [HomePageComponent], | ||
imports: [BrowserModule, SharedModule], | ||
imports: [CommonModule, SharedModule], | ||
exports: [HomePageComponent] | ||
}) | ||
export class HomePageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { BrowserModule } from "@angular/platform-browser"; | ||
import { ImprintIndexComponent } from "./imprint-index.component"; | ||
import { CommonModule } from "@angular/common"; | ||
|
||
@NgModule({ | ||
declarations: [ImprintIndexComponent], | ||
imports: [BrowserModule], | ||
imports: [CommonModule], | ||
exports: [ImprintIndexComponent] | ||
}) | ||
export class ImprintIndexModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { BrowserModule } from "@angular/platform-browser"; | ||
import { SharedModule } from "../shared/shared.module"; | ||
import { ImprintPageComponent } from "./imprint-page.component"; | ||
import { CommonModule } from "@angular/common"; | ||
|
||
@NgModule({ | ||
declarations: [ImprintPageComponent], | ||
imports: [BrowserModule, SharedModule], | ||
imports: [CommonModule, SharedModule], | ||
exports: [ImprintPageComponent] | ||
}) | ||
export class ImprintPageModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Pipe, PipeTransform } from "@angular/core"; | ||
|
||
@Pipe({ | ||
standalone: true, | ||
name: "DateReadable" | ||
}) | ||
export class DateReadablePipe implements PipeTransform { | ||
months = [...Array(12).keys()].map((key) => new Date(0, key).toLocaleString("en", { month: "long" })); | ||
|
||
transform(value: string) { | ||
if (!value) { | ||
return ""; | ||
} | ||
const dateObj = new Date(value); | ||
return `${dateObj.getDate()} ${this.months[dateObj.getMonth()]}, ${dateObj.getFullYear()}`; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.