Commit cb02ba7
committed
refactor(landing): fix invalid const assertion, trim comments
- Fixed HUBSPOT_SCRIPT_SRC/HUBSPOT_CONNECT_SRC: 'as const' cannot wrap a
ternary expression directly (TS1355) — caught by a full project typecheck
I ran specifically to verify this PR, not by lint/tests alone. Rewrote
using the same conditional-spread-inside-array-literal pattern already
used by every other array in this file (e.g. STATIC_FRAME_SRC)
- Trimmed comments across all four touched files down to only the
non-obvious 'why' (module-scope tracking flag, HubSpot CSP scoping
rationale), matching this codebase's terse comment style elsewhere1 parent 6807b4e commit cb02ba7
4 files changed
Lines changed: 27 additions & 52 deletions
File tree
- apps/sim
- app/(landing)
- lib/core/security
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
26 | 20 | | |
27 | 21 | | |
28 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
108 | 107 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
119 | 118 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
128 | 122 | | |
129 | 123 | | |
130 | 124 | | |
| |||
244 | 238 | | |
245 | 239 | | |
246 | 240 | | |
247 | | - | |
248 | | - | |
| 241 | + | |
249 | 242 | | |
250 | 243 | | |
251 | 244 | | |
252 | 245 | | |
253 | 246 | | |
254 | 247 | | |
255 | 248 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 249 | + | |
260 | 250 | | |
261 | 251 | | |
262 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 120 | + | |
127 | 121 | | |
128 | 122 | | |
129 | 123 | | |
| |||
308 | 302 | | |
309 | 303 | | |
310 | 304 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
| 305 | + | |
| 306 | + | |
316 | 307 | | |
317 | 308 | | |
318 | 309 | | |
| |||
0 commit comments