Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha - test #21

Merged
merged 4 commits into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
**Desktop (optional information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -67,6 +67,9 @@ The extension comes with the following predefined themes:
If you want to create your own custom theme, you can modify the `themeMap` object in the source code. Add a new key-value pair, where the key represents the theme name (to be used in the URL parameter), and the value is an object containing the CSS styles for your custom theme.

## Changelogs
### v1.3.4
- [feature] Added support for addtional **SAP CPI - fka HCI / old Tenents**
- [Bugfix] UI changes fixes.

### v1.3.3
- [Bugfix] SAP UI theme Horizon dark fix (Trace half screnn non visible)
17 changes: 4 additions & 13 deletions Whatsnew/data.js
Original file line number Diff line number Diff line change
@@ -5,23 +5,14 @@
*/
const data_updates = {
bugFixes: [
{
description:
"SAP UI theme Horizon dark fix (Trace half screnn non visible)",
author: "Omkar",
},
{ description: "SAP UI theme Horizon dark fix (Trace half screnn non visible)", author: "Omkar", },
{ description: "Mapping fields are invisible in mmap Files." },
{ description: "Simulation error color is not correct." },
],
features: [
{
description:
"Now supports addtional application such as <b>SAP Builds workzone</b> and it's theme designer.",
},
{
description:
"Dark theme supports CPI capablities like <b>Integration Assessment & Migration Assessment</b>",
},
{ description: "Added support for addtional <b>SAP CPI - fka HCI / old Tenents<b>", },
{ description: "Now supports addtional application such as <b>SAP Builds workzone</b> and it's theme designer.", },
{ description: "Dark theme supports CPI capablities like <b>Integration Assessment & Migration Assessment</b>", },
],
improvements: [{ description: "UI improvement: UI changes for popup." }],
};
6 changes: 1 addition & 5 deletions Whatsnew/whatsnew.js
Original file line number Diff line number Diff line change
@@ -17,11 +17,7 @@ function loadDynamicContent() {
listItem.innerHTML = item.description;

if (item.author) {
const authorLink = document.createElement("a");
authorLink.href = data_authors[item.author] || "#";
authorLink.innerHTML = `By (${item.author})`;
authorLink.className = "link link-primary";
listItem.appendChild(authorLink);
listItem.insertAdjacentHTML('beforeend', ` by <a class="link link-primary" href="${data_authors[item.author] || "#"}">(${item.author})</a>`);
}

list.appendChild(listItem);
Binary file not shown.
20 changes: 13 additions & 7 deletions common/content/global.css
Original file line number Diff line number Diff line change
@@ -51,11 +51,6 @@ h6 {
font-weight: inherit;
}

a {
color: inherit;
text-decoration: inherit;
}

b,
strong {
font-weight: bolder;
@@ -390,6 +385,17 @@ video {
}

/* End overwrite of default UI */
div#darkcpiglobal a {
padding-inline: 0.5rem;

#darkcpiglobal {
li {
list-style: inside;
}

a {
padding-inline: 0.5rem;
}

b {
color: var(--cpi-custom-color);
}
}
2 changes: 1 addition & 1 deletion common/content/tool.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
const hostmap = [
[/(.*)launchpad.cfapps.*.hana.ondemand.com/, "launchpad"],
[/(.*)\.(hci|integrationsuite(-trial)?.*)shell/, "cpi"],
[/(.*)\.(hci|integrationsuite(-trial)?).*shell/, "cpi"],
[/.*(pimas|intas){1}.*.cfapps.*.hana.ondemand.com/, "cpi_app"],
];

52 changes: 24 additions & 28 deletions host/CPI/content/content.css
Original file line number Diff line number Diff line change
@@ -24,8 +24,7 @@
@font-face {
font-family: "SAPBPMN";
src: url("./SAPBPMNRegular.eot");
src: url(chrome-extension://__MSG_@@extension_id__/assets/SAPBPMNRegular.woff)
format("woff"),
src: url(chrome-extension://__MSG_@@extension_id__/assets/SAPBPMNRegular.woff) format("woff"),
url("./SAPBPMNRegular.svg#SAPBPMNRegular") format("svg");
font-style: normal;
font-weight: normal;
@@ -45,11 +44,7 @@
min-width: 3em !important;
}

html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"])
.sapUxAPObjectPageSection
.sapUxAPObjectPageSectionContainer
.sapUxAPObjectPageSubSection
.sapUxAPBlockContainer {
html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"]) .sapUxAPObjectPageSection .sapUxAPObjectPageSectionContainer .sapUxAPObjectPageSubSection .sapUxAPBlockContainer {
margin-left: 0.5rem;
margin-right: 0.5rem;
}
@@ -69,28 +64,30 @@ html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"])
z-index: 10;
}

.iflowDiagramLayout > .sapUiVltCell:last-child,
.iflowDiagramLayout>.sapUiVltCell:last-child,
.iflowDiagramLayout:has(.sapUiVltCell:last-child) {
height: 100%;
width: 100%;
}

.itopweb-MessageDetailsTextArea {
white-space-collapse: collapse !important;
}

.cpides-customMultiInput .sapMMultiInputBorder {
width: 100%;
}

[data-cpi-dark="sap_horizon_dark"] {
.sapMITH:not(.sapMITBTextOnly)
.sapMITBSelected
.sapUiIcon:is(
.sapMITBFilterNegative,
.sapMITBFilterPositive,
.sapMITBFilterDefault,
.sapMITBFilterNeutral,
.sapMITBFilterCritical
) {

.sapMITH:not(.sapMITBTextOnly) .sapMITBSelected .sapUiIcon:is(.sapMITBFilterNegative,
.sapMITBFilterPositive,
.sapMITBFilterDefault,
.sapMITBFilterNeutral,
.sapMITBFilterCritical) {
color: var(--cpidarkBaseColor) !important;
}

.cpides-traced {
fill: var(--cpidarkMessage_InformationBorderColor);
}
@@ -101,7 +98,7 @@ html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"])
}

div[id$="iflowPropNavigationBar"] .sapMITBContainerContent,
div[id$="iflowPropNavigationBar"] .sapMITBContainerContent > * {
div[id$="iflowPropNavigationBar"] .sapMITBContainerContent>* {
padding-block: 0;
}

@@ -213,7 +210,7 @@ html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"])
}

.cpides-iflowPropMain .cpides-iflowPropSheetHeader,
.sapUiLoSplitterContent .sapMPageHeader > div {
.sapUiLoSplitterContent .sapMPageHeader>div {
background-color: var(--cpidarkBaseColor) !important;
}

@@ -224,21 +221,20 @@ html:is([data-cpi-dark="sap_horizon_dark"], [data-cpi-dark="sap_horizon"])
}

.sapUiLoSplitterContent .cpides-webuiEECanvasWrapper svg {

rect:not([fill="#9fcdeb"], [fill="#009de0"]),
circle,
path:not(
[fill="#f5c346"],
[stroke="#9fcdeb"],
[fill="#9fcdeb"],
[class],
[stroke-linejoin="round"],
:not([fill="#ffffff"][stroke="#f0ab00"])
) {
path:not([fill="#f5c346"],
[stroke="#9fcdeb"],
[fill="#9fcdeb"],
[class],
[stroke-linejoin="round"],
:not([fill="#ffffff"][stroke="#f0ab00"])) {
fill: var(--cpidarkContent_Illustrative) !important;
}

path[stroke-linejoin="round"] {
stroke: var(--cpidarkTextColor);
}
}
}
}
2 changes: 1 addition & 1 deletion host/CPI/content/content.js
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ const interval = setInterval(async () => {
}, 500);

async function ifupdate() {
const silentversions = ["1.3.3"];
const silentversions = ["1.3.4"];
if (
(await getProperty("readupdates")) !==
chrome.runtime.getManifest().version.toString()
Loading