Skip to content

Commit

Permalink
Fix: use consequently observables and further code optimizations (#306)
Browse files Browse the repository at this point in the history
* fix: use consequently observables

* fix: reorg observables

* fix: make detail stronger

* fix: proxy bff path with slash
  • Loading branch information
HenryT-CG authored Dec 9, 2024
1 parent 4bed781 commit eb2b338
Show file tree
Hide file tree
Showing 14 changed files with 710 additions and 535 deletions.
6 changes: 3 additions & 3 deletions proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Request proxy to rewrite URLs and prevent CORS errors
*/
const logFn = function (req, res) {
//console.log(new Date().toISOString() + `: bypassing ${req.method} ${req.url} `)
console.log(new Date().toISOString() + `: bypassing ${req.method} ${req.url} `)
}
const onProxyRes = function (proxyRes, req, res) {
logFn(req, res)
Expand All @@ -17,11 +17,11 @@ const onProxyRes = function (proxyRes, req, res) {
}

const PROXY_CONFIG = {
'/bff': {
'/bff/': {
target: 'http://onecx-announcement-bff',
secure: false,
pathRewrite: {
'^.*/bff': ''
'^.*/bff/': '/'
},
changeOrigin: true,
logLevel: 'debug',
Expand Down
8 changes: 8 additions & 0 deletions src/app/_am-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,14 @@
}
}
}
@mixin table-zebra-rows {
:host ::ng-deep {
/* this works only on non-frozen columns (table.p-datatable-striped does not work) */
.p-datatable .p-datatable-tbody > tr:nth-child(even) > td:not(.p-frozen-column) {
background-color: var(--table-body-row-even-bg);
}
}
}

// PICKLIST
@mixin picklist-hide-double-buttons {
Expand Down
Loading

0 comments on commit eb2b338

Please sign in to comment.