refactor(docs-infra): remove rev property from Resource interface and data (#37181)

The `rev` property has been in the initial commit that introduced
`resources.json` (196203f6d7) and has been
added to all new entries since (always with the value `true`). This
field is a remnant from back when this data was stored in a Firebase
Database and the `rev` field indicated whether the entry has been
reviewed/approved by a DevRel lead or something. Now that the data is
kept in the repository and the reviewing is done as part of the
corresponding PR, this field is no longer necessary.

PR Close #37181
This commit is contained in:
Sonu Kapoor
2020-05-19 16:29:50 +03:00
committed by Kara Erickson
parent b754ab298a
commit deac994517
4 changed files with 5 additions and 133 deletions

View File

@ -13,7 +13,7 @@
<h3 class="subcategory-title">{{subCategory.title}}</h3>
<div *ngFor="let resource of subCategory.resources">
<div class="c-resource" *ngIf="resource.rev">
<div class="c-resource">
<a class="l-flex--column resource-row-link" rel="noopener" target="_blank" [href]="resource.url">
<div>
<h4>{{resource.title}}</h4>

View File

@ -17,7 +17,6 @@ export interface Resource {
subCategory: string; // "Books"
id: string; // "-KLI8vJ0ZkvWhqPembZ7"
desc: string; // "This books shows all the steps necessary for the development of SPA"
rev: boolean; // true (always true in the original)
title: string; // "Practical Angular 2",
url: string; // "https://leanpub.com/practical-angular-2"
}

View File

@ -96,13 +96,11 @@ function getTestResources() {
"resources": {
"Cat3 SubCat1 Res1": {
"desc": "Meetup in Barcelona, Spain. ",
"rev": true,
"title": "Angular Beers",
"url": "http://www.meetup.com/AngularJS-Beers/"
},
"Cat3 SubCat1 Res2": {
"desc": "Angular Camps in Barcelona, Spain.",
"rev": true,
"title": "Angular Camp",
"url": "http://angularcamp.org/"
}
@ -113,7 +111,6 @@ function getTestResources() {
"resources": {
"Cat3 SubCat2 Res1": {
"desc": "A community index of components and libraries",
"rev": true,
"title": "Catalog of Angular Components & Libraries",
"url": "https://a/b/c"
}
@ -129,19 +126,16 @@ function getTestResources() {
"resources": {
"S S S": {
"desc": "SSS",
"rev": true,
"title": "Sssss",
"url": "http://s/s/s"
},
"A A A": {
"desc": "AAA",
"rev": true,
"title": "Aaaa",
"url": "http://a/a/a"
},
"Z Z Z": {
"desc": "ZZZ",
"rev": true,
"title": "Zzzzz",
"url": "http://z/z/z"
}