Skip to content

Commit

Permalink
Merge pull request #59 from synergatika/feature/display
Browse files Browse the repository at this point in the history
Feature/display
  • Loading branch information
gregtsar authored Nov 1, 2022
2 parents dd754d2 + 4adb4bf commit 413b60e
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 65 deletions.
38 changes: 3 additions & 35 deletions src/app/auth/terms/synergy_terms.component.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,4 @@
<div class="col-xl-12">
<div class="col-xl-12">
<!-- <h1 mat-dialog-title>Favorite Animal</h1>
<h2 mat-dialog-title>Install Angular</h2> -->
<!-- <mat-dialog-content> -->
<h2><strong>Terms and Conditions</strong></h2>
<p>Welcome to Synergy Web App!</p>
<p>These terms and conditions outline the rules and regulations for the use of Synergy's Website,
located at app.synergatika.gr.</p>
<p>By accessing this website we assume you accept these terms and conditions. Do not continue to use
Synergy Web App if you do not agree to take all of the terms and conditions stated on this page.
</p>
<p>The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer
Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this
website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We",
"Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client
and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary
to undertake the process of our assistance to the Client in the most appropriate manner for the
express purpose of meeting the Client’s needs in respect of provision of the Company’s stated
services, in accordance with and subject to, prevailing law of Netherlands. Any use of the above
terminology or other words in the singular, plural, capitalization and/or he/she or they, are
taken as interchangeable and therefore as referring to same.</p>
<h3><strong>Cookies</strong></h3>
<p>We employ the use of cookies. By accessing Synergy Web App, you agreed to use cookies in
agreement with the Synergy's Privacy Policy.</p>
<p>Most interactive websites use cookies to let us retrieve the user’s details for each visit.
Cookies are used by our website to enable the functionality of certain areas to make it easier
for people visiting our website. Some of our affiliate/advertising partners may also use
cookies.</p>
<!-- </mat-dialog-content> -->
<!-- <mat-dialog-actions>
<button mat-button mat-dialog-close>Cancel</button>
<button mat-button [mat-dialog-close]="true" cdkFocusInitial>Agree</button>
</mat-dialog-actions> -->
<div class="terms-container" *ngIf="content">
<div class="col-xl-12" [innerHTML]="content">
</div>
</div>
</div>
44 changes: 32 additions & 12 deletions src/app/auth/terms/synergy_terms.component.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,47 @@
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Component, OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { Subject } from 'rxjs';
import { MatDialog } from '@angular/material/dialog';
import { StaticContentService } from '../../core/services/static_content.service';

@Component({
selector: 'app-terms',
templateUrl: './synergy_terms.component.html',
selector: 'app-terms',
templateUrl: './synergy_terms.component.html',
})
export class TermsComponent implements OnInit, OnDestroy {

private unsubscribe: Subject<any>;
content: any;

/**
* Component Constructor
*
* @param dialog: MatDialog
*/
constructor(
public dialog: MatDialog,
) {
}
constructor(
public dialog: MatDialog,
private cdr: ChangeDetectorRef,
private StaticContentService : StaticContentService ,
) {
}

ngOnInit() {
this.unsubscribe = new Subject();
this.content = null;
this.fetchContent('126');
}

fetchContent(page_id) {
this.StaticContentService.getWPContent(page_id).subscribe((data) => {
this.content = data.content.rendered;
console.log(this.content);
});
}

ngOnInit() {
}
ngOnDestroy() {
this.unsubscribe.next();
this.unsubscribe.complete();
}

ngOnDestroy() {

}

}
}
13 changes: 10 additions & 3 deletions src/app/core/config/i18n/el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const locale = {
AUTH: {
MESSAGES: {
WELCOME_TITLE: 'Καλώς ήρθες',
WELCOME_SUBTITLE: 'Έλα στην παρέα του synergatika.gr για να στηρίξεις τα συνεργατικά καταστήματα και να κερδίσεις εκπτώσεις και προσφορές!',
WELCOME_SUBTITLE: 'Έλα στην παρέα του synergatika.gr για να μας γνωρίσεις και να μας στηρίξεις!',
HAVE_ACCOUNT: 'Έχεις ήδη Λογαριασμό;',
NOT_HAVE_ACCOUNT: 'Ακόμα δεν έχεις Λογαριασμό;',
ALREADY_VALIDATED: 'Έχεις ήδη επαληθεύσει το email σου;',
Expand Down Expand Up @@ -754,10 +754,15 @@ export const locale = {
PUBLISH_CONFIRM_B: 'Μέτα τη δημοσίευση δεν θα είναι διαθέσιμη η επεξεργασία της',
DRAFT: 'πρόχειρο',
CANCEL: 'Ακύρωση',

NOT_REDEEMABLE :{
DESC: 'Η καμπάνια δεν είναι εξαργυρώσιμη. Ευχαριστούμε για την προσφορά σας!',
DONATED: 'ΔΩΡΕΑ'
},
UNPAID_TITLE:"Στοιχεία πληρωμής",
UNPAID_MSSG:"Η πληρωμή σου στην καμπάνια δεν έχει επιβεβαιωθεί. Αν δεν έχεις κάνει την πληρωμή κάνε την άμεσα. Αν πληρώσεις τραπεζικά, χρησιμοποιήσε την ταυτότητα πληρωμής στην αιτιολογία της κατάθεσης.",
SUPPORT_PERIOD: 'Περίοδος Υποστήριξης',
SUPPORT_PERIOD_SUB: 'Αυτή είναι η περίοδος που μπορείτε να προπληρώσετε τα προϊόντα που επιθυμείτε',
REDEEM_PERIOD: 'Περίοδος εξαργύρωσης',
REDEEM_PERIOD: 'Περίοδος Εξαργύρωσης',
REDEEM_PERIOD_SUB: 'Αυτή είναι η περίοδος που μπορείτε να εξαργυρώσετε τα προϊόντα για τα οποία έχετε προπληρώσει',
PRICE: 'Τιμή',
PRICE_PER_ITEM: 'Τιμή ανα ποσότητα',
Expand Down Expand Up @@ -867,6 +872,8 @@ export const locale = {
QR_CODE: 'Ο QR Κωδικός σου',
WALLET_TITLE: 'Το πορτοφόλι μου',
WALLET_SUBTITLE: 'σε όλο το δίκτυο',
WALLET_DESC:'Εδώ βλέπεις τους πόντους σου και τις καμπάνιες που συμμετέχεις.',
BADGE_READ:'Μάθε περισσότερα για το σήμα σου εδώ.'
},
WIZARD: {
NEXT_STEP: 'Επόμενο Βήμα',
Expand Down
4 changes: 4 additions & 0 deletions src/app/core/services/static_content.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export class StaticContentService {//extends IStaticContentService {
})
}

getWPContent(pageId): Observable<any> {
return this.http.get<any>(environment.staticUrl + "/pages/" + pageId);
}

// return new Promise<boolean>((resolve) => {
// // this.http.get(`${environment.apiUrl}/content`).subscribe((response) => {
// // this.content$ = response['data'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,37 @@
<sng-loyalty_badge-card *ngIf="configAccess[1]"></sng-loyalty_badge-card>
<!--end::Loyalty Badge-->

<!--begin::Loyalty Badge Modal-->
<span class="badge-more" (click)="openBadgeExplainer()" >{{'MEMBER.DASHBOARD.BADGE_READ' | translate}}</span>
<ng-template #badgeModal let-c="close" let-d="dismiss">
<div class="container wallet-popup">
<button type="button" class="close-btn" aria-label="Close" (click)="d('Cross click')">
<span aria-hidden="true">&times;</span>
</button>
<div class="badge-text mt-3">
<p [innerHTML]="'badge_explain' | content_translate: 'content'"></p>
</div>
</div>
</ng-template>
<!--end::Loyalty Badge Modal-->

<!--begin::Microcredit Badge-->
<sng-microcredit_badge-card *ngIf="!configAccess[1]&&configAccess[2]"></sng-microcredit_badge-card>
<!--end::Microcredit Badge-->



</div>


<div class="col-md-6">
<mat-card class="dashboard-card wallet-card">

<mat-card-header class="wallet-card-header">
<mat-card-title>{{'MEMBER.DASHBOARD.WALLET_TITLE' | translate}}</mat-card-title>
<mat-card-title>
<h3>{{'MEMBER.DASHBOARD.WALLET_TITLE' | translate}}</h3>
<span>{{'MEMBER.DASHBOARD.WALLET_DESC' | translate}}</span>
</mat-card-title>

<!--begin::QR Code-->
<sng-qr_code-card></sng-qr_code-card>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,22 @@
}
}

.badge-more{
text-decoration: underline;
cursor: pointer;
&:hover{
color:$primary;
}
}

.wallet-card {
&-header {
border-bottom: 2px solid #eee;
margin-bottom: 10px;
span{
font-size: 15px;
color:#707070;
}
}

&-icon {
Expand Down
71 changes: 59 additions & 12 deletions src/app/member-menu/member-dashboard/member-dashboard.component.ts
Original file line number Diff line number Diff line change
@@ -1,38 +1,85 @@
import { Component, OnInit, OnDestroy } from '@angular/core';

import { Component, OnInit, OnDestroy, ViewChild, HostListener } from '@angular/core';
import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap';
/**
* Environment
*/
import { environment } from '../../../environments/environment';

@Component({
selector: 'app-member-dashboard',
templateUrl: './member-dashboard.component.html',
styleUrls: ['./member-dashboard.component.scss']
selector: 'app-member-dashboard',
templateUrl: './member-dashboard.component.html',
styleUrls: ['./member-dashboard.component.scss']
})
export class MemberDashboardComponent implements OnInit, OnDestroy {

/**
* Children Modals
*/
@ViewChild('badgeModal') badgeModal: NgbModalRef;




/**
* Configuration and Static Data
*/
public configAccess: Boolean[] = environment.access;
public configAccess: Boolean[] = environment.access;

/**
* Component Constructor
*
* @param modalService: NgbModal
*/
constructor() { }
constructor(
private modalService: NgbModal,
) { }

/**
* On Init
*/
ngOnInit() {
}
ngOnInit() {
}

/**
* On Destroy
*/
ngOnDestroy() {
ngOnDestroy() {
}

/**
* Close Modal on Browser Back Button
*/
controlModalState(state: boolean): void {
if (state) {
const modalState = {
modal: true,
desc: 'MemberDashboardModals'
};
history.pushState(modalState, null);
} else {
if (window.history.state.modal) {
history.back();
}
}
}

@HostListener('window:popstate')
dismissModal(): void {
if (this.modalService.hasOpenModals()) {
this.modalService.dismissAll();
this.controlModalState(false);
}
}

/**
* Open Badge Modal
*/
openBadgeExplainer(): void {
this.controlModalState(true);
this.modalService.open(this.badgeModal)
.result.then(
() => { this.controlModalState(false); console.log('closed'); },
() => { this.controlModalState(false); console.log('dismissed'); });
}
}


}
Binary file modified src/assets/media/images/ranking-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/media/images/ranking-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/media/images/ranking-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8">
<title>Synergy Wallet</title>
<title>App -Synergatika.gr | Εμπορική Κοινότητα Συνεργατικών </title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="assets/media/images/favicon.png">
Expand All @@ -23,4 +23,4 @@
if (global === undefined) {
var global = window;
}
</script>
</script>

0 comments on commit 413b60e

Please sign in to comment.