mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
fix decrypt and encript
This commit is contained in:
@@ -41,7 +41,8 @@ export function SAVE({key, localStorage, instance, dataToSave}) {
|
||||
localStorage.setItem(newKey, cipherText)
|
||||
|
||||
} else {
|
||||
localStorage.setItem(prefix() + key, dataToSave)
|
||||
const stringifyData = JSON.stringify(dataToSave)
|
||||
localStorage.setItem(prefix() + key, stringifyData)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ export class ProcessesService {
|
||||
|
||||
|
||||
setHeader() {
|
||||
|
||||
console.log('CPSession.AuthorizationJwt', CPSession.AuthorizationJwt);
|
||||
|
||||
// console.log('CPSession.AuthorizationJwt', CPSession.AuthorizationJwt);
|
||||
|
||||
this.headers = new HttpHeaders();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
|
||||
@@ -17,7 +17,7 @@ export class CPSession extends models.LocalStorage {
|
||||
}
|
||||
|
||||
// content production
|
||||
models.migrate({
|
||||
models.migrate({
|
||||
databaseName:'content-production',
|
||||
type: 'localStorage',
|
||||
version: 1,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export let versionData = {
|
||||
"shortSHA": "b3bbbffad",
|
||||
"SHA": "b3bbbffaddd3d4d2079ee4c68677ae75cc3908f7",
|
||||
"shortSHA": "c6c0f84b4",
|
||||
"SHA": "c6c0f84b4eaade8221dadbfe60e18a7554ed8564",
|
||||
"branch": "feature/gabinete-search",
|
||||
"lastCommitAuthor": "'Peter Maquiran'",
|
||||
"lastCommitTime": "'Mon Jul 10 12:38:29 2023 +0100'",
|
||||
"lastCommitMessage": "fix",
|
||||
"lastCommitNumber": "5042",
|
||||
"change": "",
|
||||
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/models/beast-orm.ts\n\tmodified: src/app/store/documentManagement.ts",
|
||||
"lastCommitTime": "'Mon Jul 10 12:40:11 2023 +0100'",
|
||||
"lastCommitMessage": "change",
|
||||
"lastCommitNumber": "5043",
|
||||
"change": "diff --git a/src/app/store/documentManagement.ts b/src/app/store/documentManagement.ts\nindex 2db3d75a5..741b07082 100644\n--- a/src/app/store/documentManagement.ts\n+++ b/src/app/store/documentManagement.ts\n@@ -23,9 +23,9 @@ models.migrate({\n \tversion: 1,\n \tmodels: [CPSession],\n })\n-\n-\n+// rewrite\n rewriteGet.connect(GET, [CPSession])\n rewriteSave.connect(SAVE, [CPSession])\n rewriteDelete.connect(DELETE, [CPSession])\n+// get function\n CPSession.get()\n\\ No newline at end of file",
|
||||
"changeStatus": "On branch feature/gabinete-search\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/models/beast-orm-function.ts\n\tmodified: src/app/services/processes.service.ts\n\tmodified: src/app/store/documentManagement.ts\n\nChanges not staged for commit:\n (use \"git add <file>...\" to update what will be committed)\n (use \"git restore <file>...\" to discard changes in working directory)\n\tmodified: src/app/store/documentManagement.ts",
|
||||
"changeAuthor": "peter.maquiran"
|
||||
}
|
||||
Reference in New Issue
Block a user