practisemaster 1.0.40 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
This is the PractiseMaster repo, treat it with respect! [](https://gitpod.io/#https://github.com/StephanLuis/PractiseMaster)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
# CI pathways, take care each
|
|
4
|
+
# CI pathways, take care each commit triggers a github action!
|
|
5
5
|
|
|
6
6
|
CI pathway strategy: the idea is to automate many of the steps that are involved in testing. Publishing to NPM can be automated, triggering Browserstack tests can also be automated. Browserstack badges also can be added to display test results without manual intervention.
|
|
7
7
|
|
|
@@ -27,27 +27,134 @@ PM: Debugging on gitpod 8000, dev test on NPM and code sandbox, release on PM we
|
|
|
27
27
|
See https://github.com/StephanLuis/BrowserStackSelenium/blob/main/TestURLs/PMtestURLs.mjs
|
|
28
28
|
(on BSSelenium Repository)
|
|
29
29
|
|
|
30
|
-
# Display Flowchart
|
|
31
30
|
|
|
32
|
-
https://
|
|
31
|
+
# Display Flowchart [(Edit Flowchart)](https://www.mermaidchart.com/app/projects/483c18fa-2653-4745-b930-79379ef18df8/diagrams/5f4e294a-c441-4f38-9dcd-55abffb63a8b/version/v0.1/edit)
|
|
32
|
+
```mermaid
|
|
33
|
+
---
|
|
34
|
+
title: PM Device And Browser Response
|
|
35
|
+
---
|
|
36
|
+
flowchart TD
|
|
37
|
+
A[Problems: Phone Screen size, Safari mouse hover]
|
|
38
|
+
A --> |ua-parser-js| C{".getDevice()<br>.type === 'mobile'"}
|
|
39
|
+
C -->|Yes| D[Display Full Screen Button Only fa:fa-up-right-and-down-left-from-center]
|
|
40
|
+
C -->|No| E[pageSupport]
|
|
41
|
+
E --> F{checkUserBrowser<br>Safari}
|
|
42
|
+
F-->|Yes| G[Static Controls]
|
|
43
|
+
F-->|No| H[Unmod PM controls]
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# Class Diagram [(Edit Diagram)](https://www.mermaidchart.com/raw/64fb96ef-ce96-4acb-a36e-ee34ff79799d?theme=light&version=v0.1&format=svg)
|
|
50
|
+
|
|
51
|
+
```mermaid
|
|
52
|
+
---
|
|
53
|
+
title: Class Diagram (CD) PractiseMaster
|
|
54
|
+
---
|
|
55
|
+
classDiagram
|
|
56
|
+
LoopEditorWebComp"1"..|>"*"DocumentObject: Realisation PM.js
|
|
57
|
+
PractiseMasterWebComp"1"..|>"*"DocumentObject
|
|
58
|
+
LoopEditorWebComp<|--PractiseMasterWebComp: Inheritance
|
|
59
|
+
PractiseMasterWebComp <|-- HTMLElement
|
|
60
|
+
PractiseMasterWebComp*--PageSupport
|
|
61
|
+
PractiseMasterWebComp*--PractiseMaster: Composition
|
|
62
|
+
PageSupport*--HostSite
|
|
63
|
+
PageSupport*--Helpers
|
|
64
|
+
PageSupport*--UserRequest
|
|
65
|
+
PractiseMaster"1"*--"*"Player
|
|
66
|
+
Player*--Plyr
|
|
67
|
+
Player*--Loop
|
|
68
|
+
Loop<|--Chapter: Inheritance
|
|
69
|
+
Player*--UIprep
|
|
70
|
+
UserRequest<..UAParser: Dependancy
|
|
71
|
+
UIprep<..input-duration: Dependancy
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class LoopEditorWebComp{
|
|
75
|
+
+constructor()
|
|
76
|
+
}
|
|
77
|
+
class PractiseMasterWebComp {
|
|
78
|
+
+constructor(+super())
|
|
79
|
+
+connectedCallback(+initialiseContainers())
|
|
80
|
+
+initialiseContainers()
|
|
81
|
+
++replaceWithDiv(node)
|
|
82
|
+
++replaceWithVideo(node)
|
|
83
|
+
++replaceWithAudio(node)
|
|
84
|
+
+globals()
|
|
85
|
+
}
|
|
86
|
+
class PageSupport {
|
|
87
|
+
+constructor()
|
|
33
88
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
89
|
+
}
|
|
90
|
+
class PractiseMaster {
|
|
91
|
+
+constructor()
|
|
92
|
+
}
|
|
93
|
+
class HostSite{
|
|
94
|
+
+constructor()
|
|
95
|
+
+checkURL()
|
|
96
|
+
+formatIndependantCSS()
|
|
97
|
+
+cssForFiddleHedVimeo()
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
class Helpers{
|
|
101
|
+
+constructor()
|
|
102
|
+
+delegate(selector, handler)
|
|
103
|
+
+delegateByID(selector, handler)
|
|
104
|
+
+delegateByIDparams(selector, start, end, handler)
|
|
105
|
+
+toStringTime(numberSeconds)
|
|
106
|
+
+secondsNumber(param)
|
|
107
|
+
+hmsuToSecondsOnly(str)
|
|
108
|
+
+redWarningValidation(id)
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
class Player{
|
|
112
|
+
+constructor()
|
|
113
|
+
+setVideoListeners(id) object PMinstance_id
|
|
114
|
+
}
|
|
115
|
+
class Plyr{
|
|
116
|
+
+constructor()
|
|
117
|
+
}
|
|
118
|
+
class Loop{
|
|
119
|
+
+constructor()
|
|
120
|
+
}
|
|
121
|
+
class Chapter{
|
|
122
|
+
+constructor()
|
|
123
|
+
}
|
|
124
|
+
class UIprep{
|
|
125
|
+
+constructor()
|
|
126
|
+
+addAudioStyle(id)
|
|
127
|
+
+addHTMLlink()
|
|
128
|
+
+addHTMLchapter()
|
|
129
|
+
+disableDurationInputs(id)
|
|
130
|
+
+addLinkButton(id)
|
|
131
|
+
+styleInputDuration(id)
|
|
132
|
+
+applyPlyrReadyCssHTMLSettings()like static
|
|
133
|
+
+applyPMReadyCssHTMLSettings()
|
|
134
|
+
+setOffPlayerControls(player)
|
|
135
|
+
+offPlayerControls(id)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
}
|
|
139
|
+
class UserRequest{
|
|
140
|
+
+constructor()
|
|
141
|
+
}
|
|
142
|
+
class UAParser{
|
|
143
|
+
+contructor();
|
|
144
|
+
}
|
|
145
|
+
class input-duration{
|
|
146
|
+
+constructor();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
class DocumentObject{
|
|
150
|
+
+PMbundle.js
|
|
151
|
+
+HTMLElement practise-master
|
|
152
|
+
+HTMLElement loop-editor
|
|
153
|
+
+constructor();
|
|
154
|
+
}
|
|
53
155
|
```
|
|
156
|
+
=======
|
|
157
|
+
|
|
158
|
+
# Display Flowchart
|
|
159
|
+
|
|
160
|
+
https://drive.google.com/drive/folders/1KXWqXpzDOVReIaBMAkTHVmr0r4kKMGL6?usp=sharing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "practisemaster",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.41",
|
|
4
4
|
"description": "This is the PractiseMaster repo, treat it with respect! [](https://gitpod.io/#https://github.com/StephanLuis/PractiseMaster)",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"input-duration": "^2.2.3",
|