Skip to content

Commit

Permalink
feat: init 2 day
Browse files Browse the repository at this point in the history
  • Loading branch information
Letto228 authored and Letto228 committed Nov 10, 2024
1 parent 4f3bd77 commit 9a966e7
Show file tree
Hide file tree
Showing 133 changed files with 91,863 additions and 125 deletions.
34 changes: 0 additions & 34 deletions 06-templates/05-ng-if-type-checking/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions 06-templates/05-ng-if-type-checking/src/app/app.component.html

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions 07-angular-new/01-signals/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Signals
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ng-if-type-checking": {
"signals": {
"projectType": "application",
"schematics": {},
"root": "",
Expand All @@ -13,7 +13,7 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/ng-if-type-checking",
"outputPath": "dist/signals",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
Expand Down Expand Up @@ -60,18 +60,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "ng-if-type-checking:build:production"
"browserTarget": "signals:build:production"
},
"development": {
"browserTarget": "ng-if-type-checking:build:development"
"browserTarget": "signals:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ng-if-type-checking:build"
"browserTarget": "signals:build"
}
},
"test": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ng-if-type-checking",
"name": "signals",
"version": "0.0.0",
"scripts": {
"ng": "ng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});

it(`should have as title 'ng-if-type-checking'`, () => {
it(`should have as title 'signals'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('ng-if-type-checking');
expect(app.title).toEqual('signals');
});

it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('.content span')?.textContent).toContain('ng-if-type-checking app is running!');
expect(compiled.querySelector('.content span')?.textContent).toContain('signals app is running!');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'ng-if-type-checking';
data: {name: string; working: boolean} | null = null;

onLoadData() {
this.data = {
name: 'Egor',
working: true,
}
}
title = 'signals';
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { DumbNgIfModule } from './dumb-ng-if/dumb-ng-if.module';

@NgModule({
declarations: [
AppComponent,
AppComponent
],
imports: [
BrowserModule,
DumbNgIfModule,
BrowserModule
],
providers: [],
bootstrap: [AppComponent]
Expand Down
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>NgIfTypeChecking</title>
<title>Signals</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions 07-angular-new/02-standalone-bootstrap/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
42 changes: 42 additions & 0 deletions 07-angular-new/02-standalone-bootstrap/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
testem.log
/typings

# System files
.DS_Store
Thumbs.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions 07-angular-new/02-standalone-bootstrap/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions 07-angular-new/02-standalone-bootstrap/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
1 change: 1 addition & 0 deletions 07-angular-new/02-standalone-bootstrap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# StandaloneBootstrap
Loading

0 comments on commit 9a966e7

Please sign in to comment.