Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
ds-aggregator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
tracksy
admin
ds-aggregator
Merge requests
!11
Add manual strategy
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add manual strategy
feature/manual_datasource
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
kzoli
requested to merge
feature/manual_datasource
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
bee0e79f
1 commit,
5 years ago
2 files
+
55
−
2
Expand all files
Preferences
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
utils/transformer/index.js
+
10
−
2
Options
const
BASE_STRATEGY
=
'
base
'
;
const
EDITOR_STRATEGY
=
'
editor
'
;
const
LIGHTWORK_STRATEGY
=
'
lightwork
'
;
const
MANUAL_STRATEGY
=
'
manual
'
;
const
strategyMap
=
new
Map
([
[
'
editor
'
,
'
editor
'
],
[
'
tracksy-mouse-keyboard-monitor
'
,
'
lightwork
'
],
[
'
editor
'
,
EDITOR_STRATEGY
],
[
'
tracksy-mouse-keyboard-monitor
'
,
LIGHTWORK_STRATEGY
],
[
'
manual_start
'
,
MANUAL_STRATEGY
],
[
'
manual_end
'
,
MANUAL_STRATEGY
],
]);
@@ -11,6 +14,8 @@ module.exports = {
availableStrategies
:
[
BASE_STRATEGY
,
EDITOR_STRATEGY
,
MANUAL_STRATEGY
,
LIGHTWORK_STRATEGY
],
createStrategy
:
(
type
)
=>
{
switch
(
type
)
{
@@ -20,6 +25,9 @@ module.exports = {
case
LIGHTWORK_STRATEGY
:
return
require
(
'
./lightwork-strategy
'
);
case
MANUAL_STRATEGY
:
return
require
(
'
./manual-strategy
'
);
default
:
return
require
(
'
./base-strategy
'
);
}