chore: init commit from GitHub
This commit is contained in:
2
SwapDude.Front/src/app/app.component.html
Normal file
2
SwapDude.Front/src/app/app.component.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<app-home></app-home>
|
||||
<router-outlet />
|
||||
0
SwapDude.Front/src/app/app.component.scss
Normal file
0
SwapDude.Front/src/app/app.component.scss
Normal file
29
SwapDude.Front/src/app/app.component.spec.ts
Normal file
29
SwapDude.Front/src/app/app.component.spec.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
describe('AppComponent', () => {
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [AppComponent],
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
it('should create the app', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app).toBeTruthy();
|
||||
});
|
||||
|
||||
it(`should have the 'SwapDude.Front' title`, () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
const app = fixture.componentInstance;
|
||||
expect(app.title).toEqual('SwapDude.Front');
|
||||
});
|
||||
|
||||
it('should render title', () => {
|
||||
const fixture = TestBed.createComponent(AppComponent);
|
||||
fixture.detectChanges();
|
||||
const compiled = fixture.nativeElement as HTMLElement;
|
||||
expect(compiled.querySelector('h1')?.textContent).toContain('Hello, SwapDude.Front');
|
||||
});
|
||||
});
|
||||
14
SwapDude.Front/src/app/app.component.ts
Normal file
14
SwapDude.Front/src/app/app.component.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { HomeComponent } from "./pages/home/home.component";
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.scss',
|
||||
imports: [RouterOutlet, HomeComponent]
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'SwapDude.Front';
|
||||
}
|
||||
11
SwapDude.Front/src/app/app.config.server.ts
Normal file
11
SwapDude.Front/src/app/app.config.server.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { mergeApplicationConfig, ApplicationConfig } from '@angular/core';
|
||||
import { provideServerRendering } from '@angular/platform-server';
|
||||
import { appConfig } from './app.config';
|
||||
|
||||
const serverConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideServerRendering()
|
||||
]
|
||||
};
|
||||
|
||||
export const config = mergeApplicationConfig(appConfig, serverConfig);
|
||||
9
SwapDude.Front/src/app/app.config.ts
Normal file
9
SwapDude.Front/src/app/app.config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { ApplicationConfig } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
import { provideClientHydration } from '@angular/platform-browser';
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [provideRouter(routes), provideClientHydration()]
|
||||
};
|
||||
3
SwapDude.Front/src/app/app.routes.ts
Normal file
3
SwapDude.Front/src/app/app.routes.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
export const routes: Routes = [];
|
||||
4
SwapDude.Front/src/app/pages/home/home.component.html
Normal file
4
SwapDude.Front/src/app/pages/home/home.component.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<div class="container text-center">
|
||||
<h1><a href="{{ domain }}">SwapDude.pro</a></h1>
|
||||
<h3 i18n>Get links for your friends now so easy!</h3>
|
||||
</div>
|
||||
23
SwapDude.Front/src/app/pages/home/home.component.spec.ts
Normal file
23
SwapDude.Front/src/app/pages/home/home.component.spec.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [HomeComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
18
SwapDude.Front/src/app/pages/home/home.component.ts
Normal file
18
SwapDude.Front/src/app/pages/home/home.component.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { DOCUMENT } from '@angular/common';
|
||||
import { Component, Inject } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './home.component.html',
|
||||
styleUrl: './home.component.scss'
|
||||
})
|
||||
export class HomeComponent {
|
||||
domain: string
|
||||
title = "SwapDude.pro - Home"
|
||||
constructor(@Inject(DOCUMENT) private document: Document) { }
|
||||
ngOnInit(){
|
||||
this.domain = this.document.location.hostname;
|
||||
}
|
||||
}
|
||||
0
SwapDude.Front/src/assets/.gitkeep
Normal file
0
SwapDude.Front/src/assets/.gitkeep
Normal file
BIN
SwapDude.Front/src/favicon.ico
Normal file
BIN
SwapDude.Front/src/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
13
SwapDude.Front/src/index.html
Normal file
13
SwapDude.Front/src/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>SwapDudeFront</title>
|
||||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
</body>
|
||||
</html>
|
||||
14
SwapDude.Front/src/locale/messages.ru.xlf
Normal file
14
SwapDude.Front/src/locale/messages.ru.xlf
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<file source-language="en-UK" datatype="plaintext" original="ng2.template">
|
||||
<body>
|
||||
<trans-unit id="899810183811423241" datatype="html">
|
||||
<source>Делится ссылками на музыку с друзьями теперь ТАК просто!</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/home/home.component.html</context>
|
||||
<context context-type="linenumber">3,4</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
14
SwapDude.Front/src/locale/messages.xlf
Normal file
14
SwapDude.Front/src/locale/messages.xlf
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<file source-language="en-UK" datatype="plaintext" original="ng2.template">
|
||||
<body>
|
||||
<trans-unit id="899810183811423241" datatype="html">
|
||||
<source>Get links for your friends now easy!</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/pages/home/home.component.html</context>
|
||||
<context context-type="linenumber">3,4</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
7
SwapDude.Front/src/main.server.ts
Normal file
7
SwapDude.Front/src/main.server.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { AppComponent } from './app/app.component';
|
||||
import { config } from './app/app.config.server';
|
||||
|
||||
const bootstrap = () => bootstrapApplication(AppComponent, config);
|
||||
|
||||
export default bootstrap;
|
||||
8
SwapDude.Front/src/main.ts
Normal file
8
SwapDude.Front/src/main.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/// <reference types="@angular/localize" />
|
||||
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { appConfig } from './app/app.config';
|
||||
import { AppComponent } from './app/app.component';
|
||||
|
||||
bootstrapApplication(AppComponent, appConfig)
|
||||
.catch((err) => console.error(err));
|
||||
4
SwapDude.Front/src/styles.scss
Normal file
4
SwapDude.Front/src/styles.scss
Normal file
@@ -0,0 +1,4 @@
|
||||
/* You can add global styles to this file, and also import other style files */
|
||||
|
||||
/* Importing Bootstrap SCSS file. */
|
||||
@import 'bootstrap/scss/bootstrap';
|
||||
Reference in New Issue
Block a user