Skip to content

Commit

Permalink
Added the core frontend module [#424]
Browse files Browse the repository at this point in the history
This module will be used to capture shared code needed by all
other modules in the project.
  • Loading branch information
mcpierce authored and BRUCELLA2 committed Aug 18, 2020
1 parent bb33770 commit 0e9bdc3
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
31 changes: 31 additions & 0 deletions comixed-frontend/src/app/core/core.module.ts
@@ -0,0 +1,31 @@
/*
* ComiXed - A digital comic book library management application.
* Copyright (C) 2020, The ComiXed Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses>
*/

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

/**
* The core module contains code that is shared between all other modules.
*
* @author Darryl L. Pierce
*/
@NgModule({
declarations: [],
imports: [CommonModule]
})
export class CoreModule {}
19 changes: 19 additions & 0 deletions comixed-frontend/src/app/core/index.ts
@@ -0,0 +1,19 @@
/*
* ComiXed - A digital comic book library management application.
* Copyright (C) 2020, The ComiXed Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses>
*/

export * from './models/api-response';
28 changes: 28 additions & 0 deletions comixed-frontend/src/app/core/models/api-response.ts
@@ -0,0 +1,28 @@
/*
* ComiXed - A digital comic book library management application.
* Copyright (C) 2020, The ComiXed Project
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses>
*/

/**
* Represents the standard API response body.
*
* @author Darryl L. Pierce
*/
export interface ApiResponse<T> {
success: boolean;
error?: string;
result: T;
}

0 comments on commit 0e9bdc3

Please sign in to comment.