Spaces:
Runtime error
Runtime error
Commit
•
f0e04e2
1
Parent(s):
d1da9dc
Upload 3 files
Browse files- reports.component.html +38 -0
- reports.module.ts +38 -0
- web_data.csv +19 -0
reports.component.html
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="container">
|
2 |
+
|
3 |
+
<div fxLayout="row" fxLayoutGap="20px">
|
4 |
+
<mat-form-field fxFlex>
|
5 |
+
<mat-label>{{'labels.inputs.Filter' | translate }}</mat-label>
|
6 |
+
<input matInput (keyup)="applyFilter($event.target.value)">
|
7 |
+
</mat-form-field>
|
8 |
+
</div>
|
9 |
+
|
10 |
+
<div class="mat-elevation-z8">
|
11 |
+
|
12 |
+
<table mat-table [dataSource]="dataSource" matSort>
|
13 |
+
|
14 |
+
<ng-container matColumnDef="reportName">
|
15 |
+
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{"labels.inputs.name" | translate}} </th>
|
16 |
+
<td mat-cell *matCellDef="let report"> {{ report.reportName }} </td>
|
17 |
+
</ng-container>
|
18 |
+
|
19 |
+
<ng-container matColumnDef="reportType">
|
20 |
+
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{"labels.inputs.Type" | translate}} </th>
|
21 |
+
<td mat-cell *matCellDef="let report"> {{'labels.text.' + report.reportType | translate}} </td>
|
22 |
+
</ng-container>
|
23 |
+
|
24 |
+
<ng-container matColumnDef="reportCategory">
|
25 |
+
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{"labels.inputs.Category" | translate}} </th>
|
26 |
+
<td mat-cell *matCellDef="let report"> {{'labels.text.' + report.reportCategory | translate}} </td>
|
27 |
+
</ng-container>
|
28 |
+
|
29 |
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
30 |
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;" class="select-row" [routerLink]="['/reports','run', row.reportName]" [queryParams]="{ type: row.reportType, id: row.id }"></tr>
|
31 |
+
|
32 |
+
</table>
|
33 |
+
|
34 |
+
<mat-paginator [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
35 |
+
|
36 |
+
</div>
|
37 |
+
|
38 |
+
</div>
|
reports.module.ts
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
Question: What is the purpose of this file?
|
3 |
+
Answer: This file defines the Reports Module for an Angular application. The Reports Module contains components related to the reports feature of the application.
|
4 |
+
|
5 |
+
Question: What Angular modules are imported in this file?
|
6 |
+
Answer: The file imports the following Angular modules:
|
7 |
+
- NgModule from @angular/core
|
8 |
+
- DecimalPipe from @angular/common
|
9 |
+
|
10 |
+
Question: What custom modules are imported in this file?
|
11 |
+
Answer: The file imports the following custom modules:
|
12 |
+
- SharedModule from ../shared/shared.module
|
13 |
+
- ReportsRoutingModule from app/reports/reports-routing.module
|
14 |
+
|
15 |
+
Question: What components are declared in this module?
|
16 |
+
Answer: The following components are declared in the Reports Module:
|
17 |
+
- ReportsComponent
|
18 |
+
- RunReportComponent
|
19 |
+
- TableAndSmsComponent
|
20 |
+
- ChartComponent
|
21 |
+
- PentahoComponent
|
22 |
+
- XBRLComponent
|
23 |
+
- XBRLReportComponent
|
24 |
+
|
25 |
+
Question: What is the purpose of the @NgModule decorator?
|
26 |
+
Answer: The @NgModule decorator is used to define the Reports Module. It specifies the imports, declarations, and providers for the module.
|
27 |
+
|
28 |
+
Question: What is included in the imports array of the @NgModule decorator?
|
29 |
+
Answer: The imports array includes the SharedModule and ReportsRoutingModule.
|
30 |
+
|
31 |
+
Question: What is included in the declarations array of the @NgModule decorator?
|
32 |
+
Answer: The declarations array includes all the components that belong to the Reports Module, such as ReportsComponent, RunReportComponent, TableAndSmsComponent, and others.
|
33 |
+
|
34 |
+
Question: What is included in the providers array of the @NgModule decorator?
|
35 |
+
Answer: The providers array includes the DecimalPipe service, which can be used by any component within the Reports Module.
|
36 |
+
|
37 |
+
Question: How can I use the components declared in this module?
|
38 |
+
Answer: To use the components declared in the Reports Module, you need to import the module in the module where you want to use them, and then add the component tags in the template of that module.
|
web_data.csv
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
query,responses
|
2 |
+
"i try to install the with this guide 'https://mifosforge.jira.com/wiki/spaces/docs/pages/3580526689/...Bind for 0.0.0.0:8080 failed: port is already allocated' please help me in this.","error 500 is an error in Fineract, have you view the Fineract logs?"
|
3 |
+
"i don't know how to run the project backend, can anyone help me ?","you should use the 8443 server to access the backend."
|
4 |
+
"Where can I find the source code files for the Angular project locally on my machine?","When you run the project using Docker Compose, the source code files are not extracted locally on your machine. You are running the compiled application from the Docker image. To access the source code, you need to clone the repository (https://github.com/openMF/web-app) and run 'npm install' to set up the development environment."
|
5 |
+
"What Node.js version should I use for this project?","For this project, you should use Node.js version 19. The project has not yet fully migrated to Node.js 20. You can download Node.js v19.9.0 from https://nodejs.org/download/release/v19.9.0/"
|
6 |
+
"I'm getting an error when trying to serve the Angular app with 'ng serve'. How can I fix it?","The error you're seeing is likely due to insufficient memory for the Angular build process. Try increasing the memory allocation by running 'SET NODE_OPTIONS=--max_old_space_size=4096' before running 'ng serve'."
|
7 |
+
"I can't log in to the app with the provided username and password. What could be the issue?","The login issue is likely because you haven't set up the backend (Fineract) server yet. The frontend (Angular app) needs the backend to be running to authenticate users."
|
8 |
+
"How can I run the Fineract backend server locally?","To run the Fineract backend server locally, you can use Docker Compose with the provided docker-compose-fineract.yml file. Clone the 'mifosx_in_minutes' repository (https://github.com/alberto-art3ch/mifosx_in_minutes), navigate to the directory, and run 'docker compose -f docker-compose-fineract.yml up -d'."
|
9 |
+
"I'm getting an error when trying to start the Fineract server using Docker Compose. What could be the issue?","The error you're facing could be due to various reasons, such as file path issues or compatibility problems with Windows. The instructions are provided here: https://mifosforge.jira.com/wiki/spaces/docs/pages/3580526689/Mifos+X+Platform+23.12.3+Instructions+using+Docker+Compose+on+Windows+11+Home+x86+64. It might be easier to set up the Fineract server locally without Docker, or consider using a Linux-based operating system like Ubuntu, which is better suited for this kind of development environment."
|
10 |
+
"Where can I find the installation instructions for the Mifos X Platform?","The updated installation instructions for Mifos X Platform 23.12 are available on the MifosForge wiki:
|
11 |
+
|
12 |
+
- Linux Ubuntu Installation Instructions: https://mifosforge.jira.com/wiki/spaces/docs/pages/3506765827/Mifos+X+Platform+23.12+Installation+Instruction+on+Linux+Ubuntu
|
13 |
+
- Windows Installation Instructions: https://mifosforge.jira.com/wiki/spaces/docs/pages/3515547660/Mifos+X+Platform+23.12+Windows+11+Home+x86+64+Installation+Instructions
|
14 |
+
- Docker on Linux Installation Instructions: https://mifosforge.jira.com/wiki/spaces/docs/pages/3580526667/Mifos+X+Platform+23.12.31+-+Installation+Instructions+using+Docker+Compose+on+Linux+Ubuntu+22.04
|
15 |
+
- Docker on Windows Installation Instructions: https://mifosforge.jira.com/wiki/spaces/docs/pages/3580526689/Mifos+X+Platform+23.12.31+-+Installation+Instructions+using+Docker+Compose+on+Windows+11+Home+x86+64"
|
16 |
+
"How do I install the Mifos Pentaho Plugin?","The installation instructions for the Mifos Pentaho Plugin for Mifos X Platform 23.12 on Windows 11 Home x86 64 are available at: https://mifosforge.jira.com/wiki/spaces/docs/pages/3573055547/Mifos+Pentaho+Plugin+-+Installation+Instruction+on+Windows+11+Home+x86+64"
|
17 |
+
"How can I get help or support for the installation process?","If you require assistance, you can get in touch with the Mifos community through the channels listed at https://mifos.org/resources/community/communications/. When asking for help, please include screenshots, logs (using a paste tool like https://privatebin.net/), and a detailed description of the issue, being careful not to include any sensitive data."
|
18 |
+
"Are there any additional notes or considerations for the installation?","Yes, it's important to note that these installation instructions are meant to quickly get the Mifos X Platform up and running. However, you need to ensure that you protect sensitive data in motion/rest, secrets, connections, credentials, etc., based on your local requirements and security best practices."
|
19 |
+
"Live reloading doesn't work sometimes, is this issue only on my system?","System specific problem, this worked https://stackoverflow.com/questions/44335456/angular-cli-auto-reload-doesnt-happen/48042729"
|