This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3a4,92 | |
> var compilerRuntime = { exports: {} }; | |
> var reactCompilerRuntime_production = {}; | |
> /** | |
> * @license React | |
> * react-compiler-runtime.production.js | |
> * | |
> * Copyright (c) Meta Platforms, Inc. and affiliates. | |
> * | |
> * This source code is licensed under the MIT license found in the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.addEventListener("error", (e) => { | |
if ( | |
e.message === | |
"ResizeObserver loop completed with undelivered notifications." || | |
e.message === "ResizeObserver loop limit exceeded" | |
) { | |
e.stopImmediatePropagation(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {BrowserModule} from '@angular/platform-browser'; | |
import {NgModule} from '@angular/core'; | |
import {HttpModule} from '@angular/http'; | |
import {FormsModule} from '@angular/forms'; | |
import {AgGridModule} from 'ag-grid-angular'; | |
import {AthleteService} from './services/athlete.service'; | |
import {StaticDataService} from './services/static-data.service'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {BrowserModule} from '@angular/platform-browser'; | |
import {NgModule} from '@angular/core'; | |
import {HttpModule} from '@angular/http'; | |
import {FormsModule} from '@angular/forms'; | |
import {AgGridModule} from 'ag-grid-angular'; | |
import {AthleteService} from './services/athlete.service'; | |
import {StaticDataService} from './services/static-data.service'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app-grid></app-grid> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div *ngFor="let athlete of athletes"> | |
<span>{{athlete.id}}</span> | |
<span>{{athlete.name}}</span> | |
<span>{{athlete?.country?.name}}</span> | |
<span>{{athlete?.results?.length}}</span> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aggrid.crudapp.controllers; | |
import com.aggrid.crudapp.model.Athlete; | |
import com.aggrid.crudapp.repositories.AthleteRepository; | |
import org.springframework.web.bind.annotation.*; | |
import java.util.Optional; | |
@RestController | |
public class AthleteController { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aggrid.crudapp.bootstrap; | |
import com.aggrid.crudapp.model.Athlete; | |
import com.aggrid.crudapp.model.Country; | |
import com.aggrid.crudapp.model.Result; | |
import com.aggrid.crudapp.model.Sport; | |
import com.aggrid.crudapp.repositories.AthleteRepository; | |
import com.aggrid.crudapp.repositories.CountryRepository; | |
import com.aggrid.crudapp.repositories.SportRepository; | |
import org.springframework.context.ApplicationListener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aggrid.crudapp.repositories; | |
import com.aggrid.crudapp.model.Athlete; | |
import org.springframework.data.repository.CrudRepository; | |
public interface AthleteRepository extends CrudRepository<Athlete, Long> { | |
Athlete findByName(String name); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aggrid.crudapp.model; | |
import com.fasterxml.jackson.annotation.JsonManagedReference; | |
import javax.persistence.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
@Entity | |
@Cacheable(false) |
NewerOlder