Skip to content

Commit

Permalink
Release 1.0.0 (#1)
Browse files Browse the repository at this point in the history
# Release 1.0.0
- Initial commit
  • Loading branch information
golluroSICKAG authored Nov 28, 2024
1 parent 90eb4fe commit 09eaca5
Show file tree
Hide file tree
Showing 16 changed files with 3,115 additions and 345 deletions.
13 changes: 2 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
# Changelog
All notable changes to this project will be documented in this file.

## Release 0.1.0
- Initial commit

### New features
- ...

### Improvements
- ...

### Bugfix
- ...
## Release 1.0.0
- Initial commit
8 changes: 7 additions & 1 deletion CSK_Module_Commands/pages/assets/legacy/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"showLoginButton": false
"canChangeLanguage": true,
"showLoginButton": false,
"defaultLanguage": "en",
"disableEditMode": true,
"showPageHistory": true,
"compactMode": false,
"canChangeCompactMode": false
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,77 @@
.myCustomMarginBottom4px_CSK_Module_Commands {
margin-bottom: 4px;
}

.myCustomSpacerVert10_CSK_Module_Commands {
min-height: 10px;
}

.myCustomSpacerVert20_CSK_Module_Commands {
min-height: 20px;
}

.myCustomFrameNoColor_CSK_Module_Commands {
margin: 6px;
border-radius: 10px;
border-style: solid;
border-width: 0px;
border-color: 007CC1;
background-color: white;
}

.myCustomFrame_CSK_Module_Commands {
margin: 6px;
border-radius: 10px;
border-style: solid;
border-width: 1px;
border-color: grey;
margin: 6px;
border-color: #007CC1;
background-color: white;
}

.myCustomLabel_CSK_Module_Commands {
font-size:30px;
color: grey;
margin-top: 10px;
}

.myCustomFrameLabel_CSK_Module_Commands {
background: white;
position:relative;
top: calc(-1.2rem);
left: calc(1rem);
font-size: medium;
}

.myCustomPersistentDataMargin_CSK_Module_Commands {
margin-top: -53px;
margin-left: 130px;
}

.myCustomPersistentDataMarginBack_CSK_Module_Commands {
margin-left: -127px;
}

.myCustomBorderLeft_CSK_Module_Commands {
border-left: 1px solid lightgray;
}

.myCustomMarginFirstRow_CSK_Module_Commands {
margin-top: -49px;
}

.myCustomBorderBottom_CSK_Module_Commands {
border-bottom: 1px solid lightgray;
margin-inline: calc(1rem);
}

.myCustomMarginTop7PX_CSK_Module_Commands {
margin-top: 7px;
}

.myCustomBackground_CSK_Module_Commands {
}

.myCustomCssClass_CSK_Module_Commands {
.myCustomButton_CSK_Module_Commands {
border-radius: 30px;
padding-right: 0px;
}

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions CSK_Module_Commands/pages/src/converter.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,84 @@
export function convertToList(value) {
return JSON.parse(value)
}

export function addParameterNoInfo1(value) {
var paramNum = "1"
return [paramNum, value.toString()]
}

export function addParameterNoInfo2(value) {
var paramNum = "2"
return [paramNum, value.toString()]
}

export function addParameterNoInfo3(value) {
var paramNum = "3"
return [paramNum, value.toString()]
}

export function addParameterNoInfo4(value) {
var paramNum = "4"
return [paramNum, value.toString()]
}

export function changeStyle(theme) {
const style: HTMLStyleElement = document.createElement('style');
style.id ='blub'
if (theme == 'CSK_Style'){
var headerToolbar = `.sopasjs-ui-header-toolbar-wrapper { background-color: #FFFFFF; }`
var uiHeader = `.sopasjs-ui-header>.app-logo { margin-right:0px; }`
var appLogo = `.app-logo { background-color:#FFFFFF; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAAtCAIAAACmg/d8AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAArZSURBVHhe7Zp7bFtXHccH6+i6AauYBu1AQgzGYLAJCQSiQMVLPIQE2garxiRAG0IM/iggjWpTmzZNX3k1aV5O4rycd7O8mrZJmjRJ7fgRO+80dhzHTvyIHdt52I7jt3PL17mue+z41ZJKm+Ovfn9Y9/zO8fX5nHN+v9+9fuROUgmtJOAEVxJwgisJOMGVBJzgSgJOcCUBJ7iSgBNcScAJriTgBFcScILrQwTYuOEe01nrJw0wg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yceOeKDEE37NuC1H4leRtlI0v+BkJqs/PotTnSDdY8vbyrsq1ogAOyubwoWsIa/XZhu7A4Vu3ugKGmijKtWBAYR7ZsF2osPJWZvWDGB6nRFmlwCBUaeRv0vwBChJ2K6oh0gyGI4Ov8HrtAcQFO6qOrJOAEVxJwgisJOMGVBJzgSgJOcCUBJ7iSgBNcScAJrTt3/gfzR65/IHLpiAAAAABJRU5ErkJggg==) }`
var uiNavbar =`.sopasjs-ui-navbar-wrapper { background-color: #737F85; }`
var navbarMenuLiActive = `.sopasjs-navbar-menu>li.active { background-color: #283c45; }`
var navbarMenuLiActiveA = `.sopasjs-navbar-menu>li.active>a { background-color: #283c45; }`
var navbarMeluLi = `.sopasjs-navbar-menu>li { color: #FFFFFF; }`
var navbarMeluLiA = `.sopasjs-navbar-menu>li>a { color: #FFFFFF; }`
var headerToolbarButtonHighlight = `.sopasjs-ui-header-toolbar-button.sopasjs-ui-navigation-navbutton>a.highlight { background-color: #737F85; }`
var toolbarButton = `.sopasjs-ui-header-toolbar-button>a { color: #283c45; }`

var customBackground = `.CSK_Module_Commands .myCustomBackground_CSK_Module_Commands { background-color: #737F8522; }` // font-family: "Open Sans"; }`

style.innerHTML = headerToolbar;
style.innerHTML += uiHeader;
style.innerHTML += appLogo;
style.innerHTML += uiNavbar;
style.innerHTML += navbarMenuLiActive;
style.innerHTML += navbarMenuLiActiveA;
style.innerHTML += navbarMeluLi;
style.innerHTML += navbarMeluLiA;
style.innerHTML += headerToolbarButtonHighlight;
style.innerHTML += toolbarButton;

style.innerHTML += customBackground;
}
else if (theme == 'None'){
var headerToolbar = `.sopasjs-ui-header-toolbar-wrapper { background-color: #007fc3; }`
var uiHeader = `.sopasjs-ui-header>.app-logo { margin-right:10px; }`
var appLogo = `.app-logo { background-color:#007fc3; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABICAYAAAAUNQy9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcw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D2l2rVWHQMWMMHg9U2zGTR6QLoK1zJuRCo/Y60bixiI18PLcIbpdYvNWvZWPQsWDM3qG2YyGID/MGdBfyHWL+aUIVfEcl3KH5Izy/Fx+mjsUa4KJD36XhTtjS8G176faStG2tdsMb1DKUs9oDfZcBpl5WNOH/GL6lI76hb8d2lixpXgtMvXIHBqRiujODSoG+A+Qn4GfBV4AJBfoms+h4vC3XsOTVuOvy8ZcFlT2q8iSyGaq7Tx5xEFkPwksUQvGQxBC9ZDMFLFkPwksUQvGQxBC9ZDMFLFkPwksUQvGQxBC9ZDMFLFkPwksUQvGQxBC9ZDMFnata/dLDegR+YrlcAAAAASUVORK5CYII=') }`
var uiNavbar =`.sopasjs-ui-navbar-wrapper { background-color: #f6f8f9; }`
var navbarMenuLiActive = `.sopasjs-navbar-menu>li.active { background-color: #007fc3; }`
var navbarMenuLiActiveA = `.sopasjs-navbar-menu>li.active>a { background-color: #007fc3; }`
var navbarMeluLi = `.sopasjs-navbar-menu>li { color: #697987; }`
var navbarMeluLiA = `.sopasjs-navbar-menu>li>a { color: #505f6b; }`
var headerToolbarButtonHighlight = `.sopasjs-ui-header-toolbar-button.sopasjs-ui-navigation-navbutton>a.highlight { background-color: #006093; }`
var toolbarButton = `.sopasjs-ui-header-toolbar-button>a { color: #cce5f3; }`

var customBackground = `.CSK_Module_Commands .myCustomBackground_CSK_Module_Commands { background-color: #fff; }` // font-family: "sans-serif"; }`

style.innerHTML = headerToolbar;
style.innerHTML += uiHeader;
style.innerHTML += appLogo;
style.innerHTML += uiNavbar;
style.innerHTML += navbarMenuLiActive;
style.innerHTML += navbarMenuLiActiveA;
style.innerHTML += navbarMeluLi;
style.innerHTML += navbarMeluLiA;
style.innerHTML += headerToolbarButtonHighlight;
style.innerHTML += toolbarButton;

style.innerHTML += customBackground;
}
document.head.append(style);
return theme
}
17 changes: 17 additions & 0 deletions CSK_Module_Commands/pages/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
document.addEventListener('sopasjs-ready', () => {
const page_1 = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(3) > a > i');
page_1.classList.remove('fa-file');
page_1.classList.add('fa-gavel');

const page_FirstLabel = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(2)');
const page_App = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(4)');
const page_Setup = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(5) > a');

page_FirstLabel.remove();
page_App.remove();
page_Setup.remove();

setTimeout(() => {
document.title = 'CSK_Module_Commands'
}, 500);
})
Loading

0 comments on commit 09eaca5

Please sign in to comment.