mirror of
https://github.com/everoddandeven/monerod-gui.git
synced 2024-12-22 19:49:27 +00:00
Add about page
This commit is contained in:
parent
70c666fbce
commit
6f9c924558
10 changed files with 162 additions and 1 deletions
|
@ -27,6 +27,7 @@ import { VersionModule } from './pages/version/version.module';
|
||||||
import { HardForkInfoModule } from './pages/hard-fork-info/hard-fork-info.module';
|
import { HardForkInfoModule } from './pages/hard-fork-info/hard-fork-info.module';
|
||||||
import { NetworkModule } from './pages/network/network.module';
|
import { NetworkModule } from './pages/network/network.module';
|
||||||
import { PeersModule } from './pages/peers/peers.module';
|
import { PeersModule } from './pages/peers/peers.module';
|
||||||
|
import { AboutModule } from './pages/about/about.module';
|
||||||
|
|
||||||
// AoT requires an exported function for factories
|
// AoT requires an exported function for factories
|
||||||
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||||
|
@ -52,6 +53,7 @@ const httpLoaderFactory = (http: HttpClient): TranslateHttpLoader => new Transl
|
||||||
PeersModule,
|
PeersModule,
|
||||||
VersionModule,
|
VersionModule,
|
||||||
NetworkModule,
|
NetworkModule,
|
||||||
|
AboutModule,
|
||||||
TranslateModule,
|
TranslateModule,
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
TranslateModule.forRoot({
|
TranslateModule.forRoot({
|
||||||
|
|
17
src/app/pages/about/about-routing.module.ts
Normal file
17
src/app/pages/about/about-routing.module.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
import { AboutComponent } from './about.component';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: 'about',
|
||||||
|
component: AboutComponent
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [CommonModule, RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class AboutRoutingModule { }
|
82
src/app/pages/about/about.component.html
Normal file
82
src/app/pages/about/about.component.html
Normal file
|
@ -0,0 +1,82 @@
|
||||||
|
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||||
|
<h1 class="h2">About</h1>
|
||||||
|
<div class="btn-toolbar mb-2 mb-md-0">
|
||||||
|
<ul class="nav nav-pills m-3" id="pills-tab" role="tablist">
|
||||||
|
@for(navbarLink of links; track navbarLink.name) {
|
||||||
|
<li class="nav-item mr-2" role="presentation">
|
||||||
|
<button [class]="navbarLink.selected ? 'nav-link active btn-sm' : 'nav-link btn-sm'" [id]="navbarLink.id" data-bs-toggle="pill" [attr.data-bs-target]="navbarLink.target" type="button" role="tab" [attr.aria-controls]="navbarLink.controls" [attr.aria-selected]="navbarLink.selected" [disabled]="navbarLink.disabled">{{navbarLink.name}}</button>
|
||||||
|
</li>
|
||||||
|
}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-content" id="pills-tabContent">
|
||||||
|
<div class="tab-pane fade show active" id="pills-overview" role="tabpanel" aria-labelledby="pills-overview-tab" tabindex="0">
|
||||||
|
<div class="container mt-5">
|
||||||
|
<div class="card shadow-lg border-0">
|
||||||
|
<div class="card-header bg-primary text-white text-center">
|
||||||
|
<h3 class="card-title mb-0">Monerod GUI</h3>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-subtitle mb-2 text-muted">Version: 0.1.0-beta</h5>
|
||||||
|
<p class="card-text">
|
||||||
|
Copyright © 2024, everoddandeven
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
|
||||||
|
|
||||||
|
<div class="row mt-4">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<h6>Donations</h6>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<ul class="list-group">
|
||||||
|
<li class="list-group-item text-center">
|
||||||
|
<h4>XMR</h4>
|
||||||
|
<br>
|
||||||
|
<p class="text-center">
|
||||||
|
<img src="assets/donations/xmr.png" width="200" height="200"/><br>
|
||||||
|
<br>
|
||||||
|
<code>84Q1SdQgFWaEWRn5KcvSPCQUa3NF39EJ3HPCTaiM86RHLLftqgTZpkP24jXrK5YpeedWbQAjHcFcDLpFJfr9TypfAU7pPjA</code>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item text-center">
|
||||||
|
<h4>BTC</h4>
|
||||||
|
<br>
|
||||||
|
<p class="text-center">
|
||||||
|
<img src="assets/donations/btc.png" width="200" height="200"/><br>
|
||||||
|
<br>
|
||||||
|
<code>bc1qndc2lesy0sse9vj33a35pnfrqz4znlhhs58vfp</code>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul class="list-group list-group-flush">
|
||||||
|
<li class="list-group-item"><i class="bi bi-github fs-4 m-4"></i> <strong>GitHub:</strong> https://github.com/everoddandeven/monerod-gui</li>
|
||||||
|
<li class="list-group-item"><i class="bi bi-chat-square-quote fs-4 m-4"></i> <strong>Matrix:</strong> @everoddandeven:monero.social</li>
|
||||||
|
<li class="list-group-item"><i class="bi bi-envelope fs-4 m-4"></i> <strong>Email:</strong> everoddandeven@protonmail.com</li>
|
||||||
|
<li class="list-group-item"><i class="bi bi-signal fs-4 m-4"></i><strong>Signal:</strong> @everoddandeven.01</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="card-footer text-muted d-flex justify-content-between align-items-center">
|
||||||
|
<span>© 2024 Monerod GUI</span>
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
0
src/app/pages/about/about.component.scss
Normal file
0
src/app/pages/about/about.component.scss
Normal file
23
src/app/pages/about/about.component.spec.ts
Normal file
23
src/app/pages/about/about.component.spec.ts
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { AboutComponent } from './about.component';
|
||||||
|
|
||||||
|
describe('AboutComponent', () => {
|
||||||
|
let component: AboutComponent;
|
||||||
|
let fixture: ComponentFixture<AboutComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [AboutComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(AboutComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
19
src/app/pages/about/about.component.ts
Normal file
19
src/app/pages/about/about.component.ts
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import { Component } from '@angular/core';
|
||||||
|
import { NavbarLink } from '../../shared/components/navbar/navbar.model';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-about',
|
||||||
|
templateUrl: './about.component.html',
|
||||||
|
styleUrl: './about.component.scss'
|
||||||
|
})
|
||||||
|
export class AboutComponent {
|
||||||
|
public readonly links: NavbarLink[] = [
|
||||||
|
new NavbarLink('pills-overview-tab', '#pills-overview', 'pills-overview', true, 'Overview')
|
||||||
|
];
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
17
src/app/pages/about/about.module.ts
Normal file
17
src/app/pages/about/about.module.ts
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
|
import { AboutRoutingModule } from './about-routing.module';
|
||||||
|
import { SharedModule } from '../../shared/shared.module';
|
||||||
|
import { AboutComponent } from './about.component';
|
||||||
|
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
declarations: [AboutComponent],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
SharedModule,
|
||||||
|
AboutRoutingModule
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class AboutModule { }
|
|
@ -42,7 +42,8 @@ export class SidebarComponent {
|
||||||
new NavLink('Bans', '/bans', 'bi bi-ban', 'bottom'),
|
new NavLink('Bans', '/bans', 'bi bi-ban', 'bottom'),
|
||||||
new NavLink('Logs', '/logs', 'bi bi-terminal', 'bottom'),
|
new NavLink('Logs', '/logs', 'bi bi-terminal', 'bottom'),
|
||||||
new NavLink('Version', '/version', 'bi bi-git', 'bottom'),
|
new NavLink('Version', '/version', 'bi bi-git', 'bottom'),
|
||||||
new NavLink('Settings', '/settings', 'bi bi-gear', 'bottom')
|
new NavLink('Settings', '/settings', 'bi bi-gear', 'bottom'),
|
||||||
|
new NavLink('About', '/about', 'bi bi-info-circle', 'bottom')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
src/assets/donations/btc.png
Normal file
BIN
src/assets/donations/btc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
BIN
src/assets/donations/xmr.png
Normal file
BIN
src/assets/donations/xmr.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Loading…
Reference in a new issue