supaslidev 0.3.0 → 0.3.1
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.
package/app/pages/index.vue
CHANGED
|
@@ -97,9 +97,13 @@ onMounted(async () => {
|
|
|
97
97
|
let response: Response | undefined;
|
|
98
98
|
|
|
99
99
|
if (deployMode.value) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
100
|
+
try {
|
|
101
|
+
response = await fetch(`${deployBasePath.value}/presentations.json`);
|
|
102
|
+
} catch {
|
|
103
|
+
// static file not available
|
|
104
|
+
}
|
|
105
|
+
if (!response?.ok) {
|
|
106
|
+
response = await fetch('/api/presentations');
|
|
103
107
|
}
|
|
104
108
|
} else {
|
|
105
109
|
response = await fetch('/api/presentations');
|
|
@@ -187,7 +191,6 @@ function handleCreateCommand() {
|
|
|
187
191
|
isCommandPaletteOpen.value = false;
|
|
188
192
|
if (deployMode.value) {
|
|
189
193
|
showDeployDemoToast();
|
|
190
|
-
return;
|
|
191
194
|
}
|
|
192
195
|
isDialogOpen.value = true;
|
|
193
196
|
}
|
|
@@ -196,7 +199,6 @@ function handleImportCommand() {
|
|
|
196
199
|
isCommandPaletteOpen.value = false;
|
|
197
200
|
if (deployMode.value) {
|
|
198
201
|
showDeployDemoToast();
|
|
199
|
-
return;
|
|
200
202
|
}
|
|
201
203
|
isImportDialogOpen.value = true;
|
|
202
204
|
}
|
package/dist/cli/index.js
CHANGED
|
@@ -186210,7 +186210,7 @@ var require_ts_morph = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
186210
186210
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
186211
186211
|
require_dist$2();
|
|
186212
186212
|
require_ts_morph();
|
|
186213
|
-
const CLI_VERSION = "0.3.
|
|
186213
|
+
const CLI_VERSION = "0.3.1";
|
|
186214
186214
|
const PACKAGE_NAME = "@supaslidev/cli";
|
|
186215
186215
|
const CACHE_DIR = join(tmpdir(), "supaslidev-cli");
|
|
186216
186216
|
const CACHE_FILE = join(CACHE_DIR, "version-cache.json");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supaslidev",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "CLI toolkit for managing Supaslidev presentations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"slidev",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"typescript": "^6.0.0",
|
|
65
65
|
"vitest": "^4.0.0",
|
|
66
66
|
"vue-tsc": "^3.0.0",
|
|
67
|
-
"create-supaslidev": "^0.3.
|
|
67
|
+
"create-supaslidev": "^0.3.1"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"dev": "nuxt dev",
|