mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
change variable
This commit is contained in:
@@ -390,7 +390,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 61;
|
CURRENT_PROJECT_VERSION = 63;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
||||||
INFOPLIST_FILE = App/Info.plist;
|
INFOPLIST_FILE = App/Info.plist;
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 61;
|
CURRENT_PROJECT_VERSION = 63;
|
||||||
DEVELOPMENT_TEAM = "";
|
DEVELOPMENT_TEAM = "";
|
||||||
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 94BRNM2LSS;
|
||||||
INFOPLIST_FILE = App/Info.plist;
|
INFOPLIST_FILE = App/Info.plist;
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ export class ChatPage implements OnInit {
|
|||||||
if (this.firstEnter) {
|
if (this.firstEnter) {
|
||||||
this.firstEnter = false
|
this.firstEnter = false
|
||||||
|
|
||||||
let delay = this.RouteService.history.find((item) => {
|
let delay = this.RouteService.liveHistory.find((item) => {
|
||||||
return ['/home/publications', '/home/agenda', '/home/gabinete', '/home/events'].filter(x => {
|
return ['/home/publications', '/home/agenda', '/home/gabinete', '/home/events'].filter(x => {
|
||||||
return item.includes(x)
|
return item.includes(x)
|
||||||
}).length >= 1
|
}).length >= 1
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { Location } from '@angular/common'
|
|||||||
export class RouteService {
|
export class RouteService {
|
||||||
|
|
||||||
history: any = [];
|
history: any = [];
|
||||||
|
liveHistory = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private router: Router,
|
private router: Router,
|
||||||
@@ -23,8 +24,9 @@ export class RouteService {
|
|||||||
|
|
||||||
const lastRoute = this.history.slice(-1)
|
const lastRoute = this.history.slice(-1)
|
||||||
|
|
||||||
if(event.url != lastRoute) {
|
if (event.url != lastRoute) {
|
||||||
this.history.push(event.url)
|
this.history.push(event.url)
|
||||||
|
this.liveHistory.push(event.url)
|
||||||
this.reduceHistory()
|
this.reduceHistory()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,16 +39,16 @@ export class RouteService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param url [string] incase no history to go back */
|
* @param url [string] incase no history to go back */
|
||||||
goBack(url = null) {
|
goBack(url = null) {
|
||||||
if(this.history.length >= 2) {
|
if (this.history.length >= 2) {
|
||||||
|
|
||||||
|
|
||||||
this.history.pop();
|
this.history.pop();
|
||||||
const url = this.history.pop();
|
const url = this.history.pop();
|
||||||
|
|
||||||
this.goTo(url)
|
this.goTo(url)
|
||||||
|
|
||||||
} else if(url) {
|
} else if (url) {
|
||||||
this.goTo(url)
|
this.goTo(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,13 +60,13 @@ export class RouteService {
|
|||||||
queryParams: this.queryParams(url)
|
queryParams: this.queryParams(url)
|
||||||
}
|
}
|
||||||
|
|
||||||
const urlObject = new URL('http://localhost:8100'+url);
|
const urlObject = new URL('http://localhost:8100' + url);
|
||||||
this.router.navigate([urlObject.pathname], navigationExtras);
|
this.router.navigate([urlObject.pathname], navigationExtras);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
reduceHistory() {
|
reduceHistory() {
|
||||||
if(this.history.length >= 15) {
|
if (this.history.length >= 15) {
|
||||||
this.history = this.history.slice(5, this.history.length)
|
this.history = this.history.slice(5, this.history.length)
|
||||||
}
|
}
|
||||||
this.LocalstoreService.set('history', this.history)
|
this.LocalstoreService.set('history', this.history)
|
||||||
@@ -73,7 +75,7 @@ export class RouteService {
|
|||||||
|
|
||||||
queryParams(url) {
|
queryParams(url) {
|
||||||
|
|
||||||
const urlObject = new URL('http://localhost:8100'+url);
|
const urlObject = new URL('http://localhost:8100' + url);
|
||||||
|
|
||||||
const paramsString = urlObject.search;
|
const paramsString = urlObject.search;
|
||||||
let searchParams: any = new URLSearchParams(paramsString);
|
let searchParams: any = new URLSearchParams(paramsString);
|
||||||
@@ -83,7 +85,7 @@ export class RouteService {
|
|||||||
params[key] = value
|
params[key] = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user