@wp-operations/wp-ops 0.3.0 → 0.4.0

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.
Files changed (119) hide show
  1. package/README.md +6 -3
  2. package/package.json +6 -2
  3. package/src/commands/platform.js +58 -2
  4. package/src/commands/start.js +2 -2
  5. package/src/main.js +19 -8
  6. package/wp-operations/CHANGELOG.md +14 -0
  7. package/wp-operations/README.md +39 -0
  8. package/wp-operations/agents/builder/AGENT.md +15 -0
  9. package/wp-operations/assets/admin.css +631 -0
  10. package/wp-operations/assets/admin.js +614 -0
  11. package/wp-operations/assets/app/app.css +1 -0
  12. package/wp-operations/assets/app/app.js +70 -0
  13. package/wp-operations/assets/app/fonts/inter-medium.woff +0 -0
  14. package/wp-operations/assets/app/fonts/inter-regular.woff +0 -0
  15. package/wp-operations/assets/app/fonts/inter-semibold.woff +0 -0
  16. package/wp-operations/assets/app/login.css +42 -0
  17. package/wp-operations/assets/brand/icon.svg +20 -0
  18. package/wp-operations/assets/brand/mark.svg +19 -0
  19. package/wp-operations/assets/editors/audiobook.css +311 -0
  20. package/wp-operations/assets/editors/audiofile.css +286 -0
  21. package/wp-operations/assets/editors/course.css +701 -0
  22. package/wp-operations/assets/editors/course.js +698 -0
  23. package/wp-operations/assets/editors/faq.css +258 -0
  24. package/wp-operations/assets/editors/faq.js +196 -0
  25. package/wp-operations/assets/editors/interactive.css +220 -0
  26. package/wp-operations/assets/editors/interactive.js +378 -0
  27. package/wp-operations/assets/editors/media-sources.css +3 -0
  28. package/wp-operations/assets/editors/media-sources.js +40 -0
  29. package/wp-operations/assets/editors/open-media.css +114 -0
  30. package/wp-operations/assets/editors/open-media.js +182 -0
  31. package/wp-operations/assets/editors/thumbnails.css +335 -0
  32. package/wp-operations/assets/editors/thumbnails.js +447 -0
  33. package/wp-operations/assets/editors/translator.css +818 -0
  34. package/wp-operations/functions.php +24 -0
  35. package/wp-operations/index.php +14 -0
  36. package/wp-operations/platform.json +1836 -0
  37. package/wp-operations/skills/ai-development-guardrails/SKILL.md +49 -0
  38. package/wp-operations/skills/gutenberg-reference/SKILL.md +45 -0
  39. package/wp-operations/skills/js-tooling-for-themes/SKILL.md +51 -0
  40. package/wp-operations/skills/tailwind-for-wp/SKILL.md +62 -0
  41. package/wp-operations/skills/wp-clean-classic-themes/SKILL.md +112 -0
  42. package/wp-operations/skills/wp-psr4-plugins/SKILL.md +2043 -0
  43. package/wp-operations/skills/wp-security/SKILL.md +90 -0
  44. package/wp-operations/src/Admin.php +78 -0
  45. package/wp-operations/src/App/Access.php +57 -0
  46. package/wp-operations/src/App/Admin.php +442 -0
  47. package/wp-operations/src/App/App.php +157 -0
  48. package/wp-operations/src/App/Apps.php +379 -0
  49. package/wp-operations/src/App/Bundle.php +111 -0
  50. package/wp-operations/src/App/Contents.php +676 -0
  51. package/wp-operations/src/App/Engine.php +554 -0
  52. package/wp-operations/src/App/Github.php +308 -0
  53. package/wp-operations/src/App/Module.php +23 -0
  54. package/wp-operations/src/App/Ops.php +470 -0
  55. package/wp-operations/src/App/Packages.php +289 -0
  56. package/wp-operations/src/App/Rest.php +539 -0
  57. package/wp-operations/src/App/Sandboxes.php +206 -0
  58. package/wp-operations/src/App/Store.php +104 -0
  59. package/wp-operations/src/App/Usage.php +268 -0
  60. package/wp-operations/src/Config.php +249 -0
  61. package/wp-operations/src/Content/Editor.php +223 -0
  62. package/wp-operations/src/Content/Fields.php +681 -0
  63. package/wp-operations/src/Content/Scoring.php +253 -0
  64. package/wp-operations/src/Content/Structure.php +293 -0
  65. package/wp-operations/src/Content/Types.php +150 -0
  66. package/wp-operations/src/Content/Uploads.php +50 -0
  67. package/wp-operations/src/Editors/AudiobookAuthor.php +61 -0
  68. package/wp-operations/src/Editors/AudiobookChapters.php +632 -0
  69. package/wp-operations/src/Editors/AudiobookCover.php +235 -0
  70. package/wp-operations/src/Editors/Audiofile.php +462 -0
  71. package/wp-operations/src/Editors/Course.php +784 -0
  72. package/wp-operations/src/Editors/Ebook.php +242 -0
  73. package/wp-operations/src/Editors/Editors.php +44 -0
  74. package/wp-operations/src/Editors/Faq.php +237 -0
  75. package/wp-operations/src/Editors/Files.php +139 -0
  76. package/wp-operations/src/Editors/Interactive/Builder.php +103 -0
  77. package/wp-operations/src/Editors/Interactive/Card.php +76 -0
  78. package/wp-operations/src/Editors/Interactive/Editor.php +42 -0
  79. package/wp-operations/src/Editors/Interactive/Field.php +272 -0
  80. package/wp-operations/src/Editors/Interactive/Map.php +84 -0
  81. package/wp-operations/src/Editors/Interactive/Models.php +227 -0
  82. package/wp-operations/src/Editors/Interactive/Report.php +59 -0
  83. package/wp-operations/src/Editors/Interactive/Save.php +323 -0
  84. package/wp-operations/src/Editors/Interactive/Scoring.php +244 -0
  85. package/wp-operations/src/Editors/Interactive/Structure.php +195 -0
  86. package/wp-operations/src/Editors/Legal.php +235 -0
  87. package/wp-operations/src/Editors/OpenMedia.php +140 -0
  88. package/wp-operations/src/Editors/OriginalTitle.php +112 -0
  89. package/wp-operations/src/Editors/Sources.php +28 -0
  90. package/wp-operations/src/Editors/Thumbnails/Admin.php +306 -0
  91. package/wp-operations/src/Editors/Thumbnails/Ajax.php +163 -0
  92. package/wp-operations/src/Editors/Thumbnails/Box.php +188 -0
  93. package/wp-operations/src/Editors/Thumbnails/Storage.php +228 -0
  94. package/wp-operations/src/Editors/Translator/Admin.php +913 -0
  95. package/wp-operations/src/Editors/Translator/Api.php +63 -0
  96. package/wp-operations/src/Editors/Translator/Bar.php +83 -0
  97. package/wp-operations/src/Editors/Translator/Fields.php +273 -0
  98. package/wp-operations/src/Editors/Translator/Storage.php +131 -0
  99. package/wp-operations/src/Editors/Translator/Thumbnail.php +215 -0
  100. package/wp-operations/src/Identity.php +104 -0
  101. package/wp-operations/src/Languages.php +45 -0
  102. package/wp-operations/src/Lockdown.php +85 -0
  103. package/wp-operations/src/Modules/Apps/Admin.php +472 -0
  104. package/wp-operations/src/Modules/Apps/Api.php +193 -0
  105. package/wp-operations/src/Modules/Apps/Apps.php +279 -0
  106. package/wp-operations/src/Modules/Apps/Formatters.php +478 -0
  107. package/wp-operations/src/Modules/Apps/Schemes.php +248 -0
  108. package/wp-operations/src/Modules/Apps/Table.php +101 -0
  109. package/wp-operations/src/Modules/Thumbnails.php +68 -0
  110. package/wp-operations/src/Modules/Translations.php +133 -0
  111. package/wp-operations/src/Platform.php +59 -0
  112. package/wp-operations/src/Setup.php +273 -0
  113. package/wp-operations/src/Status.php +99 -0
  114. package/wp-operations/src/Storage/Client.php +168 -0
  115. package/wp-operations/src/Storage/Offload.php +120 -0
  116. package/wp-operations/src/Storage/Settings.php +166 -0
  117. package/wp-operations/src/Storage/Storage.php +35 -0
  118. package/wp-operations/src/Updates.php +151 -0
  119. package/wp-operations/style.css +11 -0
@@ -0,0 +1,335 @@
1
+ .thumbnails-tabs {
2
+ margin: 16px 0;
3
+ border-bottom: 1px solid #c3c4c7;
4
+ padding-bottom: 0;
5
+ }
6
+
7
+ .thumbnails-tab {
8
+ display: inline-block;
9
+ padding: 8px 16px;
10
+ margin-bottom: -1px;
11
+ text-decoration: none;
12
+ border: 1px solid transparent;
13
+ color: #2271b1;
14
+ }
15
+
16
+ .thumbnails-tab:hover {
17
+ background: #f0f0f1;
18
+ }
19
+
20
+ .thumbnails-tab.active {
21
+ border-color: #c3c4c7;
22
+ border-bottom-color: #f0f0f1;
23
+ background: #f0f0f1;
24
+ color: #1d2327;
25
+ }
26
+
27
+ .thumbnails-search-bar {
28
+ margin: 12px 0;
29
+ display: flex;
30
+ align-items: center;
31
+ flex-wrap: wrap;
32
+ gap: 8px;
33
+ }
34
+
35
+ .thumbnails-tax-filters {
36
+ display: inline-flex;
37
+ align-items: center;
38
+ flex-wrap: wrap;
39
+ gap: 4px;
40
+ }
41
+
42
+ .thumbnails-tax-filter {
43
+ font-size: 13px;
44
+ max-width: 180px;
45
+ }
46
+
47
+ .thumbnails-loading {
48
+ color: #787c82;
49
+ font-style: italic;
50
+ }
51
+
52
+ .thumbnails-posts-table {
53
+ width: 100%;
54
+ border-collapse: collapse;
55
+ }
56
+
57
+ .thumbnails-posts-table th,
58
+ .thumbnails-posts-table td {
59
+ padding: 10px 12px;
60
+ text-align: left;
61
+ border-bottom: 1px solid #e5e5e5;
62
+ vertical-align: middle;
63
+ }
64
+
65
+ .thumbnails-posts-table th {
66
+ background: #f6f7f7;
67
+ font-weight: 600;
68
+ }
69
+
70
+ .thumbnails-posts-table .ct-th-code {
71
+ display: inline-block;
72
+ margin-left: 4px;
73
+ font-size: 10px;
74
+ font-weight: 700;
75
+ color: #2271b1;
76
+ background: #e8f0fb;
77
+ padding: 1px 4px;
78
+ border-radius: 3px;
79
+ letter-spacing: 0.04em;
80
+ vertical-align: middle;
81
+ }
82
+
83
+ .thumbnails-posts-table .col-title {
84
+ width: auto;
85
+ }
86
+
87
+ .thumbnails-posts-table .col-thumb {
88
+ width: 110px;
89
+ text-align: center;
90
+ vertical-align: top;
91
+ padding: 10px 6px;
92
+ }
93
+
94
+ .thumbnails-actions-cell {
95
+ margin-top: 4px;
96
+ display: flex;
97
+ gap: 2px;
98
+ justify-content: center;
99
+ }
100
+
101
+ .thumbnails-actions-cell .button {
102
+ font-size: 10px;
103
+ min-height: 0;
104
+ padding: 0 5px;
105
+ line-height: 2;
106
+ }
107
+
108
+ .thumbnails-thumb-preview {
109
+ position: relative;
110
+ display: inline-block;
111
+ line-height: 0;
112
+ }
113
+
114
+ .thumbnails-thumb-preview img {
115
+ width: 80px;
116
+ height: 80px;
117
+ object-fit: cover;
118
+ border-radius: 4px;
119
+ border: 1px solid #ddd;
120
+ display: block;
121
+ }
122
+
123
+ .thumbnails-thumb-empty {
124
+ width: 80px;
125
+ height: 80px;
126
+ border: 1px dashed #ccc;
127
+ border-radius: 4px;
128
+ display: inline-flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ color: #aaa;
132
+ font-size: 12px;
133
+ }
134
+
135
+ .thumbnails-posts-table .button {
136
+ min-height: 30px;
137
+ font-size: 13px;
138
+ }
139
+
140
+ .thumbnails-remove-btn {
141
+ color: #b32d2e;
142
+ border-color: #b32d2e;
143
+ }
144
+
145
+ .thumbnails-remove-btn:hover {
146
+ background: #b32d2e;
147
+ color: #fff;
148
+ }
149
+
150
+ .thumbnails-infinite-scroll {
151
+ text-align: center;
152
+ padding: 16px;
153
+ color: #787c82;
154
+ }
155
+
156
+ .thumbnails-branding-btn {
157
+ display: flex;
158
+ width: 100%;
159
+ align-items: center;
160
+ justify-content: center;
161
+ gap: 6px;
162
+ padding: 6px 12px;
163
+ background: #f0f0f1;
164
+ border: 1px solid #c3c4c7;
165
+ border-radius: 4px;
166
+ cursor: pointer;
167
+ color: #2271b1;
168
+ font-size: 13px;
169
+ margin-top: 8px;
170
+ }
171
+ .thumbnails-branding-btn:hover {
172
+ background: #e8e8eb;
173
+ }
174
+ .thumbnails-branding-btn .dashicons {
175
+ width: 16px;
176
+ height: 16px;
177
+ font-size: 16px;
178
+ margin: 0;
179
+ display: inline-flex;
180
+ align-items: center;
181
+ }
182
+
183
+ .thumbnails-modal {
184
+ display: none;
185
+ position: fixed;
186
+ top: 0;
187
+ left: 0;
188
+ right: 0;
189
+ bottom: 0;
190
+ z-index: 100000;
191
+ }
192
+
193
+ .thumbnails-modal-backdrop {
194
+ position: absolute;
195
+ top: 0;
196
+ left: 0;
197
+ right: 0;
198
+ bottom: 0;
199
+ background: rgba(0, 0, 0, 0.6);
200
+ }
201
+
202
+ .thumbnails-modal-content {
203
+ position: absolute;
204
+ top: 50%;
205
+ left: 50%;
206
+ transform: translate(-50%, -50%);
207
+ background: #fff;
208
+ border-radius: 6px;
209
+ width: 800px;
210
+ max-height: 80vh;
211
+ overflow-y: auto;
212
+ box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
213
+ }
214
+
215
+ .thumbnails-modal-header {
216
+ display: flex;
217
+ align-items: center;
218
+ justify-content: space-between;
219
+ padding: 16px 20px;
220
+ border-bottom: 1px solid #e5e5e5;
221
+ }
222
+
223
+ .thumbnails-modal-header h2 {
224
+ margin: 0;
225
+ font-size: 16px;
226
+ }
227
+
228
+ .thumbnails-modal-close {
229
+ width: 36px;
230
+ height: 36px;
231
+ padding: 0;
232
+ font-size: 24px;
233
+ line-height: 34px;
234
+ text-align: center;
235
+ background: none;
236
+ border: none;
237
+ cursor: pointer;
238
+ color: #787c82;
239
+ border-radius: 50%;
240
+ }
241
+
242
+ .thumbnails-modal-close:hover {
243
+ color: #1d2327;
244
+ background: #f0f0f1;
245
+ }
246
+
247
+ .thumbnails-modal-body {
248
+ padding: 20px;
249
+ }
250
+
251
+ .thumbnails-modal-group {
252
+ margin-bottom: 20px;
253
+ padding-bottom: 16px;
254
+ border-bottom: 1px solid #f0f0f1;
255
+ }
256
+
257
+ .thumbnails-modal-group:last-child {
258
+ margin-bottom: 0;
259
+ padding-bottom: 0;
260
+ border-bottom: none;
261
+ }
262
+
263
+ .thumbnails-modal-group h3 {
264
+ margin: 0 0 8px;
265
+ font-size: 14px;
266
+ }
267
+
268
+ .thumbnails-modal-group-row {
269
+ display: flex;
270
+ flex-wrap: wrap;
271
+ gap: 16px;
272
+ padding: 8px 0;
273
+ }
274
+
275
+ .thumbnails-modal-lang-item {
276
+ flex: 0 0 auto;
277
+ display: flex;
278
+ flex-direction: column;
279
+ align-items: center;
280
+ gap: 6px;
281
+ min-width: 90px;
282
+ text-align: center;
283
+ }
284
+
285
+ .thumbnails-modal-lang-item .thumbnails-modal-lang-code {
286
+ display: inline-flex;
287
+ align-items: center;
288
+ justify-content: center;
289
+ background: #2271b1;
290
+ color: #fff;
291
+ font-size: 9px;
292
+ font-weight: 700;
293
+ letter-spacing: 0.06em;
294
+ padding: 1px 5px;
295
+ border-radius: 3px;
296
+ min-width: 24px;
297
+ text-align: center;
298
+ }
299
+
300
+ .thumbnails-modal-lang-item .thumbnails-thumb-cell {
301
+ flex-shrink: 0;
302
+ }
303
+
304
+ .thumbnails-modal-lang-item .thumbnails-thumb-preview img {
305
+ width: 60px;
306
+ height: 60px;
307
+ object-fit: cover;
308
+ border-radius: 4px;
309
+ border: 1px solid #ddd;
310
+ display: block;
311
+ }
312
+
313
+ .thumbnails-modal-lang-item .thumbnails-thumb-empty {
314
+ width: 60px;
315
+ height: 60px;
316
+ border: 1px dashed #ccc;
317
+ border-radius: 4px;
318
+ display: flex;
319
+ align-items: center;
320
+ justify-content: center;
321
+ color: #aaa;
322
+ font-size: 12px;
323
+ }
324
+
325
+ .thumbnails-modal-actions {
326
+ display: flex;
327
+ gap: 2px;
328
+ }
329
+
330
+ .thumbnails-modal-actions .button {
331
+ font-size: 10px;
332
+ min-height: 0;
333
+ padding: 0 5px;
334
+ line-height: 2;
335
+ }