supaslidev 0.1.4 → 0.2.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 (67) hide show
  1. package/app/app.config.ts +9 -0
  2. package/app/assets/css/main.css +90 -0
  3. package/app/components/AppHeader.vue +429 -0
  4. package/app/components/CreatePresentationDialog.vue +236 -0
  5. package/app/components/EmptyState.vue +37 -0
  6. package/app/components/ImportPresentationDialog.vue +865 -0
  7. package/app/components/PresentationCard.vue +343 -0
  8. package/app/components/PresentationListItem.vue +242 -0
  9. package/app/composables/useServers.ts +148 -0
  10. package/app/layouts/default.vue +49 -0
  11. package/app/pages/index.vue +542 -0
  12. package/dist/cli/index.js +183751 -137
  13. package/dist/config.d.ts +8 -0
  14. package/dist/config.js +16 -0
  15. package/dist/index.d.ts +21 -0
  16. package/dist/index.js +3 -0
  17. package/dist/module.d.ts +6 -0
  18. package/dist/module.js +9168 -0
  19. package/dist/prompt.js +847 -0
  20. package/nuxt.config.ts +53 -0
  21. package/package.json +26 -19
  22. package/server/api/export/[id].post.ts +67 -0
  23. package/server/api/open-editor/[id].post.ts +28 -0
  24. package/server/api/presentations/import.post.ts +139 -0
  25. package/server/api/presentations/index.get.ts +18 -0
  26. package/server/api/presentations/index.post.ts +175 -0
  27. package/server/api/presentations/upload.post.ts +174 -0
  28. package/server/api/presentations/validate.post.ts +14 -0
  29. package/server/api/servers/[id].delete.ts +15 -0
  30. package/server/api/servers/[id].post.ts +17 -0
  31. package/server/api/servers/index.delete.ts +5 -0
  32. package/server/api/servers/index.get.ts +5 -0
  33. package/server/api/servers/stop-all.post.ts +5 -0
  34. package/server/plugins/generate.ts +12 -0
  35. package/server/plugins/shutdown.ts +16 -0
  36. package/server/routes/exports/[...path].get.ts +25 -0
  37. package/server/utils/config.ts +13 -0
  38. package/server/utils/process-manager.ts +119 -0
  39. package/src/cli/commands/create.ts +125 -0
  40. package/src/cli/commands/deploy.ts +90 -0
  41. package/src/cli/commands/dev.ts +116 -0
  42. package/src/cli/commands/export.ts +63 -0
  43. package/src/cli/commands/import.ts +178 -0
  44. package/src/cli/commands/present.ts +111 -0
  45. package/src/cli/index.ts +87 -0
  46. package/src/cli/utils.ts +94 -0
  47. package/src/config.ts +21 -0
  48. package/src/index.ts +2 -0
  49. package/src/module.ts +12 -0
  50. package/src/shared/catalog.ts +94 -0
  51. package/src/shared/copy.ts +28 -0
  52. package/src/shared/index.ts +29 -0
  53. package/{scripts/generate-presentations.mjs → src/shared/presentations.ts} +23 -46
  54. package/src/shared/types.ts +29 -0
  55. package/src/shared/validation.ts +111 -0
  56. package/dist/assets/index-BerY9FcI.js +0 -49
  57. package/dist/assets/index-CVzsY-on.css +0 -1
  58. package/dist/index.html +0 -24
  59. package/server/api.js +0 -1225
  60. /package/{dist → public}/apple-touch-icon.png +0 -0
  61. /package/{dist → public}/favicon-96x96.png +0 -0
  62. /package/{dist → public}/favicon.ico +0 -0
  63. /package/{dist → public}/favicon.svg +0 -0
  64. /package/{dist → public}/site.webmanifest +0 -0
  65. /package/{dist → public}/ssl-logo.png +0 -0
  66. /package/{dist → public}/web-app-manifest-192x192.png +0 -0
  67. /package/{dist → public}/web-app-manifest-512x512.png +0 -0
@@ -0,0 +1,8 @@
1
+ //#region src/config.d.ts
2
+ type DateString = `${number}-${number}-${number}`;
3
+ declare function defineSupaslidevConfig<T extends Record<string, unknown>>(userConfig?: T): T & {
4
+ extends: string[];
5
+ compatibilityDate: DateString;
6
+ };
7
+ //#endregion
8
+ export { defineSupaslidevConfig };
package/dist/config.js ADDED
@@ -0,0 +1,16 @@
1
+ //#region src/config.ts
2
+ const DEFAULT_COMPAT_DATE = "2025-05-01";
3
+ function defineSupaslidevConfig(userConfig = {}) {
4
+ const configExtends = userConfig.extends;
5
+ let userExtends = [];
6
+ if (Array.isArray(configExtends)) userExtends = configExtends;
7
+ else if (configExtends) userExtends = [configExtends];
8
+ return {
9
+ ...userConfig,
10
+ extends: ["supaslidev/layer", ...userExtends],
11
+ compatibilityDate: userConfig.compatibilityDate ?? DEFAULT_COMPAT_DATE
12
+ };
13
+ }
14
+
15
+ //#endregion
16
+ export { defineSupaslidevConfig };
@@ -0,0 +1,21 @@
1
+ import { defineSupaslidevConfig } from "./config.js";
2
+
3
+ //#region src/shared/types.d.ts
4
+ interface Presentation {
5
+ id: string;
6
+ title: string;
7
+ description: string;
8
+ theme: string;
9
+ background: string;
10
+ duration: string;
11
+ }
12
+ interface PackageJson {
13
+ name?: string;
14
+ private?: boolean;
15
+ scripts?: Record<string, string>;
16
+ dependencies?: Record<string, string>;
17
+ devDependencies?: Record<string, string>;
18
+ [key: string]: unknown;
19
+ }
20
+ //#endregion
21
+ export { type PackageJson, type Presentation, defineSupaslidevConfig };
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { defineSupaslidevConfig } from "./config.js";
2
+
3
+ export { defineSupaslidevConfig };
@@ -0,0 +1,6 @@
1
+ import * as nuxt_schema0 from "nuxt/schema";
2
+
3
+ //#region src/module.d.ts
4
+ declare const _default: nuxt_schema0.NuxtModule<nuxt_schema0.ModuleOptions, nuxt_schema0.ModuleOptions, false>;
5
+ //#endregion
6
+ export { _default as default };