Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PlayWallCompanion
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PlayWall
PlayWallCompanion
Commits
89cdab69
Commit
89cdab69
authored
1 year ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
#187 - Cleanup
parent
781c3754
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main.js
+4
-10
4 additions, 10 deletions
main.js
variables.js
+0
-7
0 additions, 7 deletions
variables.js
with
4 additions
and
17 deletions
main.js
+
4
−
10
View file @
89cdab69
...
...
@@ -2,7 +2,6 @@ const {InstanceBase, Regex, runEntrypoint, InstanceStatus} = require('@companion
const
UpgradeScripts
=
require
(
'
./upgrades
'
)
const
UpdateActions
=
require
(
'
./actions
'
)
const
UpdateFeedbacks
=
require
(
'
./feedbacks
'
)
const
UpdateVariableDefinitions
=
require
(
'
./variables
'
)
const
WebSocket
=
require
(
'
ws
'
)
const
ProjectUpdate
=
require
(
"
./receive/project_update
"
);
const
Project
=
require
(
"
./project
"
);
...
...
@@ -33,9 +32,8 @@ class ModuleInstance extends InstanceBase {
this
.
initWebSocket
()
this
.
isInitialized
=
true
this
.
updateActions
()
// export actions
this
.
updateFeedbacks
()
// export feedbacks
this
.
updateVariableDefinitions
()
// export variable definitions
this
.
updateActions
()
await
this
.
updateFeedbacks
()
}
// When module gets deleted
...
...
@@ -84,12 +82,8 @@ class ModuleInstance extends InstanceBase {
UpdateActions
(
this
)
}
updateFeedbacks
()
{
UpdateFeedbacks
(
this
)
}
updateVariableDefinitions
()
{
UpdateVariableDefinitions
(
this
)
async
updateFeedbacks
()
{
await
UpdateFeedbacks
(
this
)
}
// Websocket handling
...
...
This diff is collapsed.
Click to expand it.
variables.js
deleted
100644 → 0
+
0
−
7
View file @
781c3754
module
.
exports
=
async
function
(
self
)
{
self
.
setVariableDefinitions
([
{
variableId
:
'
variable1
'
,
name
:
'
My first variable
'
},
{
variableId
:
'
variable2
'
,
name
:
'
My second variable
'
},
{
variableId
:
'
variable3
'
,
name
:
'
Another variable
'
},
])
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment