Commit 8fb8c95
committed
feat(web): cleanup of variable stores
This addresses code review comments in #15437 and removes some
unnecessary definitions related to variable stores. It keeps the
`VariableStoreSerializer` interface although currently
`VariableStoreCookieSerializer` is the only implementation. Conceptually
IMO it makes sense to use a more abstract interface so that in the future
for example we could easily use a different store for a node
implementation.
Details of this change:
- remove `VariableStoreDictionary` interface and replace with
`VariableStore` type
- remove `VarStoreSerializer` class and replace with
` CookieSerializer<VariableStore>`
- also fix baseline tests to use dynamic time value and set cookies to
expire in 60s instead of at some arbitrary time which might be in the
past.
Follow-up-of: #15437
Test-bot: skip1 parent 2e40439 commit 8fb8c95
File tree
7 files changed
+19
-44
lines changed- web/src
- engine/src
- js-processor
- keyboard
- keyboards
- main
- test/auto/e2e/baseline
7 files changed
+19
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
1103 | 1102 | | |
1104 | 1103 | | |
1105 | 1104 | | |
1106 | | - | |
| 1105 | + | |
1107 | 1106 | | |
1108 | 1107 | | |
1109 | 1108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
| |||
Lines changed: 10 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 11 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
35 | 15 | | |
36 | | - | |
37 | 16 | | |
38 | | - | |
39 | 17 | | |
40 | | - | |
41 | | - | |
| 18 | + | |
| 19 | + | |
42 | 20 | | |
43 | 21 | | |
44 | 22 | | |
45 | | - | |
46 | | - | |
| 23 | + | |
| 24 | + | |
47 | 25 | | |
48 | 26 | | |
49 | 27 | | |
| |||
54 | 32 | | |
55 | 33 | | |
56 | 34 | | |
57 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
58 | 38 | | |
59 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments