@skathi-native/cli 0.1.0-beta.1 → 0.1.0-beta.3

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 (53) hide show
  1. package/aot/host-globals.json +105 -0
  2. package/aot/native.ts +142 -0
  3. package/aot/pin.ts +67 -0
  4. package/aot/toolchain.lock.json +17 -0
  5. package/aot/transform.ts +69 -0
  6. package/cli/aot-build.ts +189 -0
  7. package/cli/build-app.ts +67 -25
  8. package/cli/config.ts +44 -101
  9. package/cli/create.ts +107 -234
  10. package/cli/help.ts +159 -0
  11. package/cli/host-fetch.ts +87 -48
  12. package/cli/host.ts +18 -8
  13. package/cli/sk.ts +35 -110
  14. package/cli/skpk.ts +4 -0
  15. package/package.json +4 -2
  16. package/templates/icon.png +0 -0
  17. package/templates/minimal/.vscode/settings.json +3 -0
  18. package/templates/minimal/assets/hello.txt +1 -0
  19. package/templates/minimal/src/App.vue +142 -0
  20. package/templates/minimal/src/main.ts +4 -0
  21. package/templates/showcase/.vscode/settings.json +3 -0
  22. package/templates/showcase/assets/hello.txt +1 -0
  23. package/templates/showcase/assets/media/aurora.png +0 -0
  24. package/templates/showcase/assets/media/clip.mp4 +0 -0
  25. package/templates/showcase/assets/media/sticker.tgs +0 -0
  26. package/templates/showcase/src/App.vue +128 -0
  27. package/templates/showcase/src/components/Card.vue +41 -0
  28. package/templates/showcase/src/components/Icon.vue +29 -0
  29. package/templates/showcase/src/components/Page.vue +41 -0
  30. package/templates/showcase/src/components/Titlebar.vue +132 -0
  31. package/templates/showcase/src/engine.ts +10 -0
  32. package/templates/showcase/src/icons.ts +22 -0
  33. package/templates/showcase/src/main.ts +7 -0
  34. package/templates/showcase/src/pages/AudioPage.vue +121 -0
  35. package/templates/showcase/src/pages/FilesPage.vue +87 -0
  36. package/templates/showcase/src/pages/FormsPage.vue +138 -0
  37. package/templates/showcase/src/pages/GraphicsPage.vue +154 -0
  38. package/templates/showcase/src/pages/HomePage.vue +140 -0
  39. package/templates/showcase/src/pages/LocalePage.vue +71 -0
  40. package/templates/showcase/src/pages/MediaPage.vue +85 -0
  41. package/templates/showcase/src/pages/MotionPage.vue +199 -0
  42. package/templates/showcase/src/pages/NetworkPage.vue +104 -0
  43. package/templates/showcase/src/pages/PermissionsPage.vue +80 -0
  44. package/templates/showcase/src/pages/StoragePage.vue +104 -0
  45. package/templates/showcase/src/pages/StylesPage.vue +199 -0
  46. package/templates/showcase/src/pages/SystemPage.vue +89 -0
  47. package/templates/showcase/src/pages/TrayPage.vue +66 -0
  48. package/templates/showcase/src/pages/WindowPage.vue +128 -0
  49. package/templates/showcase/src/product.ts +2 -0
  50. package/templates/showcase/src/router.ts +149 -0
  51. package/templates/showcase/src/stores/counter.ts +9 -0
  52. package/templates/showcase/src/stores/desktop.ts +115 -0
  53. package/templates/showcase/src/styles.css +140 -0
@@ -0,0 +1,140 @@
1
+ :root {
2
+ --text: #ececf1;
3
+ --text-muted: #a1a1aa;
4
+ --text-faint: #71717a;
5
+ --surface: #ffffff08;
6
+ --surface-hover: #ffffff10;
7
+ --surface-strong: #ffffff18;
8
+ --line: #ffffff12;
9
+ --line-strong: #ffffff24;
10
+ --accent: #8b9dff;
11
+ --accent-strong: #6d7cff;
12
+ --accent-soft: #8b9dff24;
13
+ --ok: #4ade80;
14
+ --warn: #fbbf24;
15
+ --bad: #f87171;
16
+ --radius: 14px;
17
+ --font: "Segoe UI", system-ui, sans-serif;
18
+ --mono: "Cascadia Mono", Consolas, monospace;
19
+ }
20
+
21
+ .row {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ align-items: center;
25
+ gap: 8px;
26
+ }
27
+ .stack {
28
+ display: flex;
29
+ flex-direction: column;
30
+ gap: 10px;
31
+ }
32
+ .muted {
33
+ font-size: 13px;
34
+ line-height: 19px;
35
+ color: var(--text-muted);
36
+ }
37
+ .faint {
38
+ font-size: 12px;
39
+ color: var(--text-faint);
40
+ }
41
+ .mono {
42
+ font-family: var(--mono);
43
+ font-size: 12px;
44
+ }
45
+
46
+ .btn {
47
+ height: 32px;
48
+ padding: 0 14px;
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ gap: 6px;
53
+ border-radius: 9px;
54
+ border: 1px solid var(--line);
55
+ background: var(--surface-hover);
56
+ color: var(--text);
57
+ font-size: 13px;
58
+ cursor: pointer;
59
+ transition:
60
+ background-color 120ms ease,
61
+ border-color 120ms ease,
62
+ transform 120ms ease;
63
+ }
64
+ .btn:hover {
65
+ background: var(--surface-strong);
66
+ border-color: var(--line-strong);
67
+ }
68
+ .btn:active {
69
+ transform: scale(0.97);
70
+ }
71
+ .btn:disabled {
72
+ opacity: 0.45;
73
+ cursor: default;
74
+ }
75
+ .btn.primary {
76
+ border-color: #ffffff20;
77
+ background: linear-gradient(135deg, var(--accent), var(--accent-strong));
78
+ box-shadow: 0 6px 18px #6d7cff40;
79
+ color: #ffffff;
80
+ font-weight: 600;
81
+ }
82
+ .btn.primary:hover {
83
+ box-shadow: 0 8px 24px #6d7cff66;
84
+ }
85
+ .btn.on {
86
+ border-color: #8b9dff80;
87
+ background: var(--accent-soft);
88
+ color: #ffffff;
89
+ }
90
+
91
+ .input {
92
+ height: 34px;
93
+ padding: 0 12px;
94
+ border-radius: 9px;
95
+ border: 1px solid var(--line);
96
+ background: #00000040;
97
+ color: var(--text);
98
+ font-size: 13px;
99
+ transition: border-color 120ms ease;
100
+ }
101
+ .input:hover {
102
+ border-color: var(--line-strong);
103
+ }
104
+ .input:focus {
105
+ border-color: var(--accent);
106
+ }
107
+
108
+ .pill {
109
+ padding: 3px 9px;
110
+ border-radius: 999px;
111
+ background: var(--surface-strong);
112
+ color: var(--text-muted);
113
+ font-size: 11px;
114
+ }
115
+ .pill.ok {
116
+ background: #4ade8022;
117
+ color: var(--ok);
118
+ }
119
+ .pill.warn {
120
+ background: #fbbf2422;
121
+ color: var(--warn);
122
+ }
123
+ .pill.bad {
124
+ background: #f8717122;
125
+ color: var(--bad);
126
+ }
127
+
128
+ .kv {
129
+ display: flex;
130
+ gap: 12px;
131
+ font-size: 13px;
132
+ }
133
+ .kv .k {
134
+ width: 150px;
135
+ color: var(--text-faint);
136
+ }
137
+ .kv .v {
138
+ flex: 1;
139
+ color: var(--text);
140
+ }