mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Gameyfin version is now displayed in footer
This commit is contained in:
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"version": "@project.version@",
|
||||
"version": "1.2.0",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "frontend",
|
||||
"version": "@project.version@",
|
||||
"version": "1.2.0",
|
||||
"dependencies": {
|
||||
"@angular/animations": "^14.0.0",
|
||||
"@angular/cdk": "^14.1.0",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"version": "@project.version@",
|
||||
"version": "1.2.0",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "ng serve",
|
||||
|
||||
@@ -63,6 +63,17 @@
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
<!-- Update frontend version in package.json -->
|
||||
<execution>
|
||||
<id>npm version</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<arguments>version ${project.version}</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
|
||||
<!-- build app -->
|
||||
<execution>
|
||||
<id>npm run build</id>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<p>© {{date| date:'yyyy'}} grimsi | <a href="{{githubUrl}}" target="_blank">GitHub</a></p>
|
||||
<p>© {{date| date:'yyyy'}} grimsi | Gameyfin v{{gameyfinVersion}} | <a href="{{githubUrl}}" target="_blank">GitHub</a></p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import packageJson from 'package.json';
|
||||
|
||||
@Component({
|
||||
selector: 'app-footer',
|
||||
@@ -8,6 +9,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
export class FooterComponent implements OnInit {
|
||||
|
||||
githubUrl: string = "https://github.com/grimsi/gameyfin";
|
||||
gameyfinVersion: string = packageJson.version;
|
||||
date: Date = new Date();
|
||||
|
||||
constructor() { }
|
||||
|
||||
Reference in New Issue
Block a user