Skip to content

Commit c34e034

Browse files
Release 1.0.0 (#1)
# Release 1.0.0 - Initial version
1 parent 7b75989 commit c34e034

22 files changed

Lines changed: 2524 additions & 1275 deletions

CHANGELOG.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4-
## Release 0.1.0
5-
- Initial commit
6-
7-
### New features
8-
- ...
9-
10-
### Improvements
11-
- ...
12-
13-
### Bugfix
14-
- ...
4+
## Release 1.0.0
5+
- Initial version
50.8 KB
Loading

CSK_Module_MultiWebSocketClient/pages/pages/CSK_Module_MultiWebSocketClient/CSK_Module_MultiWebSocketClient.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,5 @@
104104

105105
.myCustomButton_CSK_Module_MultiWebSocketClient {
106106
border-radius: 30px;
107-
padding-right: 0px;
107+
padding: 11px;
108108
}

CSK_Module_MultiWebSocketClient/pages/pages/CSK_Module_MultiWebSocketClient/CSK_Module_MultiWebSocketClient.html

Lines changed: 541 additions & 305 deletions
Large diffs are not rendered by default.

CSK_Module_MultiWebSocketClient/pages/src/converter.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ export function convertToList(value) {
66
export function changeStyle(theme) {
77
const style: HTMLStyleElement = document.createElement('style');
88
style.id ='blub'
9+
10+
const toggleSW = document.querySelectorAll("davinci-toggle-switch")
11+
toggleSW.forEach((userItem) => {
12+
const shadowToggle = userItem.shadowRoot
13+
const finalToggleSW = shadowToggle?.querySelector('div')
14+
finalToggleSW?.classList.add('hasIcon')
15+
});
16+
917
if (theme == 'CSK_Style'){
1018
var headerToolbar = `.sopasjs-ui-header-toolbar-wrapper { background-color: #FFFFFF; }`
1119
var uiHeader = `.sopasjs-ui-header>.app-logo { margin-right:0px; }`

CSK_Module_MultiWebSocketClient/pages/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
document.addEventListener('sopasjs-ready', () => {
22
const page_1 = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(3) > a > i');
33
page_1.classList.remove('fa-file');
4-
page_1.classList.add('fa-lightbulb-o');
4+
page_1.classList.add('fa-cloud');
55

66
const page_FirstLabel = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(2)');
77
const page_App = document.querySelector('div.sopasjs-ui-navbar-wrapper > div > ul > li:nth-child(4)');
@@ -12,6 +12,10 @@ document.addEventListener('sopasjs-ready', () => {
1212
page_Setup.remove();
1313

1414
setTimeout(() => {
15+
const element = document.querySelector("div.sjs-wrapper > div > div.sjs-fullscreen-toggle")
16+
if(element) {
17+
element.parentElement.removeChild(element)
18+
}
1519
document.title = 'CSK_Module_MultiWebSocketClient'
1620
}, 500);
1721
})

CSK_Module_MultiWebSocketClient/project.mf.xml

Lines changed: 144 additions & 73 deletions
Large diffs are not rendered by default.

CSK_Module_MultiWebSocketClient/scripts/CSK_Module_MultiWebSocketClient.lua

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
---@diagnostic disable: undefined-global, redundant-parameter, missing-parameter
2424

25-
-- See README file regarding StepByStep instruction to customize this template manually or make use of the cli renaming tool
26-
-- CreationTemplateVersion: 3.7.0
2725
--**************************************************************************
2826
--**********************Start Global Scope *********************************
2927
--**************************************************************************
@@ -52,10 +50,9 @@ local multiWebSocketClient_Instances = {} -- Handle all instances
5250
local multiWebSocketClientController = require('Communication/MultiWebSocketClient/MultiWebSocketClient_Controller')
5351

5452
if _G.availableAPIs.default and _G.availableAPIs.specific then
55-
local setInstanceHandle = require('Communication/MultiWebSocketClient/FlowConfig/MultiWebSocketClient_FlowConfig')
53+
require('Communication/MultiWebSocketClient/FlowConfig/MultiWebSocketClient_FlowConfig')
5654
table.insert(multiWebSocketClient_Instances, multiWebSocketClient_Model.create(1)) -- Create at least 1 instance
5755
multiWebSocketClientController.setMultiWebSocketClient_Instances_Handle(multiWebSocketClient_Instances) -- share handle of instances
58-
setInstanceHandle(multiWebSocketClient_Instances)
5956
else
6057
_G.logger:warning("CSK_MultiWebSocketClient: Relevant CROWN(s) not available on device. Module is not supported...")
6158
end
@@ -66,31 +63,6 @@ end
6663
--**********************Start Function Scope *******************************
6764
--**************************************************************************
6865

69-
--[[
70-
--- Function to show how this module could be used
71-
local function startProcessing()
72-
73-
CSK_MultiWebSocketClient.setSelectedInstance(1) --> select instance of module
74-
CSK_MultiWebSocketClient.doSomething() --> preparation
75-
76-
-- Option A --> prepare an event to trigger processing via this one
77-
--Script.serveEvent("CSK_MultiWebSocketClient.OnNewTestEvent", "MultiWebSocketClient_OnNewTestEvent") --> Create event to listen to and process forwarded object
78-
--CSK_MultiWebSocketClient.setRegisterEvent('CSK_MultiWebSocketClient.OnNewTestEvent') --> Register processing to the event
79-
80-
--Script.notifyEvent('OnNewTestEvent', data)
81-
82-
-- Option B --> trigger processing via function call
83-
local result = CSK_MultiWebSocketClient.processSomething(data)
84-
85-
end
86-
end
87-
88-
-- Call processing function after persistent data was loaded
89-
--Script.register("CSK_MultiWebSocketClient.OnDataLoadedOnReboot", startProcessing)
90-
]]
91-
92-
--OR
93-
9466
--- Function to react on startup event of the app
9567
local function main()
9668

@@ -102,10 +74,8 @@ local function main()
10274
-- (see internal variable _G.multiWebSocketClient_Model.parameterLoadOnReboot)
10375
-- If so, the app will trigger the "OnDataLoadedOnReboot" event if ready after loading parameters
10476
--
105-
-- Can be used e.g. like this
10677
----------------------------------------------------------------------------------------
10778

108-
--startProcessing() --> see above
10979
if _G.availableAPIs.default and _G.availableAPIs.specific then
11080
CSK_MultiWebSocketClient.setSelectedInstance(1)
11181
end

0 commit comments

Comments
 (0)