Skip to content

Commit

Permalink
Move API update check section to main page
Browse files Browse the repository at this point in the history
  • Loading branch information
C7C8 committed Oct 25, 2018
1 parent c283d64 commit 90a9ab1
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 73 deletions.
2 changes: 0 additions & 2 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ import { PageNotFoundComponent } from './pages/page-not-found/page-not-found.com
import { LoginComponent } from './pages/login/login.component';
import {ManageComponent} from './pages/manage/manage.component';
import {UserService} from './user.service';
import { UpdateComponent } from './pages/update/update.component';

const routes: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'list', component: ListComponent },
{ path: 'about', component: AboutComponent },
{ path: 'manage', component: ManageComponent, canActivate: [UserService] },
{ path: 'update', component: UpdateComponent },
{ path: 'login', component: LoginComponent },
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: '**', component: PageNotFoundComponent }
Expand Down
4 changes: 1 addition & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { RenderMarkdownPipe } from './render-markdown.pipe';
import { FileUploadComponent } from './pages/api-card/file-upload/file-upload.component';
import { ConfirmDeleteApiComponent } from './pages/api-card/confirm-delete-api/confirm-delete-api.component';
import { ConfirmDeleteAccountComponent } from './pages/manage/confirm-delete-account/confirm-delete-account.component';
import { UpdateComponent } from './pages/update/update.component';

@NgModule({
declarations: [
Expand All @@ -48,8 +47,7 @@ import { UpdateComponent } from './pages/update/update.component';
RenderMarkdownPipe,
FileUploadComponent,
ConfirmDeleteApiComponent,
ConfirmDeleteAccountComponent,
UpdateComponent
ConfirmDeleteAccountComponent
],
imports: [
BrowserModule,
Expand Down
1 change: 0 additions & 1 deletion src/app/navbar/navbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class NavbarComponent implements OnInit {
{ path: '/home', label: 'Home' },
{ path: '/list', label: 'API List' },
{ path: '/manage', label: 'Manage APIs'},
{ path: '/update', label: 'Update Checker API'},
{ path: '/about', label: 'About'}
];

Expand Down
8 changes: 8 additions & 0 deletions src/app/pages/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,11 @@ <h2>Usage</h2>
recent information about a team's API will be displayed, and "deleted" APIs won't be listed. You can check an
API's version history for more information on their updates.</p>

<h2>Update Check API</h2>

To expose information about your API's most recent version you can use the provided
update-check API, a fully self-contained Java API that connects to this server to
grab metadata about a given API, allow users to check if your API has an update,
get a changelog, etc. To install, add <code>[group: 'edu.wpi.cs3733.util', name: 'APIUpdateChecker', version:'1.0.0']</code>
to your Gradle dependencies list and read the [very short] documentation on it
<a href="https://github.com/C7C8/SoftEng-API-UpdateChecker">here</a>.
Empty file.
27 changes: 0 additions & 27 deletions src/app/pages/update/update.component.html

This file was deleted.

25 changes: 0 additions & 25 deletions src/app/pages/update/update.component.spec.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/app/pages/update/update.component.ts

This file was deleted.

0 comments on commit 90a9ab1

Please sign in to comment.