trycatchlearn / datingapp30 Goto Github PK
View Code? Open in Web Editor NEWRepo for dotnet core 3.0
Repo for dotnet core 3.0
Following your instruction here:
'npm install ngx-gallery --save'
add NgxGalleryModule to 'app.module.ts'
wire up compenent.ts/html
'ng serve' shows the following
ERROR in node_modules/ngx-gallery/ngx-gallery-helper.service.d.ts:1:22 - error TS2724: Module '"../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?
1 import { ElementRef, Renderer } from '@angular/core';
~~~~~~~~
node_modules/@angular/core/core.d.ts:5701:31
5701 export declare abstract class Renderer2 {
~~~~~~~~~
'Renderer2' is declared here.
node_modules/ngx-gallery/ngx-gallery-preview.component.d.ts:1:89 - error TS2724: Module '"../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?
1 import { ChangeDetectorRef, EventEmitter, OnInit, OnChanges, SimpleChanges, ElementRef, Renderer } from '@angular/core';
~~~~~~~~
node_modules/@angular/core/core.d.ts:5701:31
5701 export declare abstract class Renderer2 {
~~~~~~~~~
'Renderer2' is declared here.
CreateMap<MemberModel, AppUser>()
.ForMember(m => m.NormalizedUserName, opt => {
opt.MapFrom(c => c.Username.ToUpper());
});
This is needed because when editing roles:
var user = await _userManager.FindByNameAsync(username);
<- its null
This will break since usermanager looks internally for the normalized username. At least for me, but if others encounter user null is because of this problem.
Hello Sir,
Need your help.
I'm got error when run this application after downloaded from this repository. I'm try to migrate the database to mySQL.
Below is the error i got.
fail: Microsoft.EntityFrameworkCore.Database.Command[20102]
Failed executing DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
ALTER TABLE Users
ADD Created
TEXT NOT NULL DEFAULT '0001-01-01 00:00:00.000000';
fail: DatingApp.API.Program[0]
An error occured during migration
MySql.Data.MySqlClient.MySqlException (0x80004005): BLOB, TEXT, GEOMETRY or JSON column 'Created' can't have a default value
---> MySql.Data.MySqlClient.MySqlException (0x80004005): BLOB, TEXT, GEOMETRY or JSON column 'Created' can't have a default value at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in C:\projects\mysqlconnector\src\MySqlConnector\Core\ResultSet.cs:line 49
Thanks in advanced
In AuthRepository.cs VerifyPasswordHash() method computed hash and password hash not same when giving correct password.
how to solve this problem ?
using (var hmac = new System.Security.Cryptography.HMACSHA512(passwordSalt)) { var computedHash = hmac.ComputeHash(System.Text.Encoding.UTF8.GetBytes(password)); for(int i = 0; i < computedHash.Length; i++) { if(computedHash[i] != passwordHash[i]) return false; } return true; }
Sir, I am following your class at Udemy,... I am at lesson 59.
After adding 'dropdownToggle' as shown below:
` <div *ngIf="loggedIn()" class="dropdown" dropdown>
Welcome {{authService.decodedToken?.unique_name | titlecase}}
<div class="dropdown-menu">
<a class="dropdown-item" href="#"><i class="fa fa-user"></i> Edit Profile</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#"><i class="fa fa-sign-out"></i>Logout</a>
</div>
</div>`
the 'Welcome User' is gone and I received error in Inspector as below
ERROR NullInjectorError: "R3InjectorError(AppModule)[AnimationBuilder -> AnimationBuilder -> AnimationBuilder]:
NullInjectorError: No provider for AnimationBuilder!"
Angular 8
BsDropdownDirective_Factory ngx-bootstrap-dropdown.js:543
Angular 4
NavComponent_div_17_Template nav.component.html:20
Angular 9
NavComponent_Template nav.component.html:20
Angular 28
core.js:5882:19
Angular 22
I can't go forward with the lesson... Appreciate it for any help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.