create-quicklook 0.2.0 → 0.2.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/package.json +2 -2
- package/templates/analog/package.json +10 -10
- package/templates/astro/package.json +3 -3
- package/templates/nuxt/package.json +4 -4
- package/templates/solid-start/package.json +3 -3
- package/templates/sveltekit/package.json +6 -6
- package/templates/sveltekit/src/routes/+page.svelte +1 -1
- package/templates/sveltekit/tsconfig.json +2 -1
- package/templates/sveltekit/vite.config.ts +11 -1
- package/templates/sveltekit/svelte.config.js +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-quicklook",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Create a macOS QuickLook preview with any Vite-based web framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "24.19.2",
|
|
38
|
-
"tsdown": "0.23.
|
|
38
|
+
"tsdown": "0.23.1",
|
|
39
39
|
"typescript": "6.0.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"format": "biome check --write"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@analogjs/vite-plugin-angular": "2.
|
|
16
|
-
"@angular/build": "22.2.
|
|
17
|
-
"@angular/common": "22.2.
|
|
18
|
-
"@angular/compiler": "22.2.
|
|
19
|
-
"@angular/compiler-cli": "22.2.
|
|
20
|
-
"@angular/core": "22.2.
|
|
21
|
-
"@angular/platform-browser": "22.2.
|
|
22
|
-
"@biomejs/biome": "2.5.
|
|
23
|
-
"quicklook-kit": "^0.
|
|
15
|
+
"@analogjs/vite-plugin-angular": "2.8.0",
|
|
16
|
+
"@angular/build": "22.2.2",
|
|
17
|
+
"@angular/common": "22.2.2",
|
|
18
|
+
"@angular/compiler": "22.2.2",
|
|
19
|
+
"@angular/compiler-cli": "22.2.2",
|
|
20
|
+
"@angular/core": "22.2.2",
|
|
21
|
+
"@angular/platform-browser": "22.2.2",
|
|
22
|
+
"@biomejs/biome": "2.5.15",
|
|
23
|
+
"quicklook-kit": "^0.4.0",
|
|
24
24
|
"rxjs": "7.8.2",
|
|
25
25
|
"tslib": "2.8.1",
|
|
26
26
|
"typescript": "6.0.3",
|
|
27
|
-
"vite": "8.3.
|
|
27
|
+
"vite": "8.3.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@astrojs/check": "0.9.10",
|
|
16
|
-
"@biomejs/biome": "2.5.
|
|
17
|
-
"astro": "7.3.
|
|
18
|
-
"quicklook-kit": "^0.
|
|
16
|
+
"@biomejs/biome": "2.5.15",
|
|
17
|
+
"astro": "7.3.8",
|
|
18
|
+
"quicklook-kit": "^0.4.0",
|
|
19
19
|
"typescript": "6.0.3"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"format": "biome check --write"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@biomejs/biome": "2.5.
|
|
17
|
-
"nuxt": "4.
|
|
18
|
-
"quicklook-kit": "^0.
|
|
16
|
+
"@biomejs/biome": "2.5.15",
|
|
17
|
+
"nuxt": "4.6.1",
|
|
18
|
+
"quicklook-kit": "^0.4.0",
|
|
19
19
|
"typescript": "6.0.3",
|
|
20
20
|
"vue": "3.5.43",
|
|
21
|
-
"vue-tsc": "3.3.
|
|
21
|
+
"vue-tsc": "3.3.13"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"format": "biome check --write"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@biomejs/biome": "2.5.
|
|
15
|
+
"@biomejs/biome": "2.5.15",
|
|
16
16
|
"@solidjs/router": "1.0.0",
|
|
17
17
|
"@solidjs/start": "2.0.6",
|
|
18
18
|
"nitro": "3.0.260903-beta",
|
|
19
|
-
"quicklook-kit": "^0.
|
|
19
|
+
"quicklook-kit": "^0.4.0",
|
|
20
20
|
"solid-js": "1.9.17",
|
|
21
21
|
"typescript": "6.0.3",
|
|
22
|
-
"vite": "8.3.
|
|
22
|
+
"vite": "8.3.4"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"format": "biome check --write"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@biomejs/biome": "2.5.
|
|
16
|
-
"@sveltejs/adapter-static": "
|
|
17
|
-
"@sveltejs/kit": "
|
|
15
|
+
"@biomejs/biome": "2.5.15",
|
|
16
|
+
"@sveltejs/adapter-static": "4.0.0",
|
|
17
|
+
"@sveltejs/kit": "3.0.1",
|
|
18
18
|
"@sveltejs/vite-plugin-svelte": "7.3.1",
|
|
19
|
-
"quicklook-kit": "^0.
|
|
20
|
-
"svelte": "5.57.
|
|
19
|
+
"quicklook-kit": "^0.4.0",
|
|
20
|
+
"svelte": "5.57.2",
|
|
21
21
|
"svelte-check": "4.7.6",
|
|
22
22
|
"typescript": "6.0.3",
|
|
23
|
-
"vite": "8.3.
|
|
23
|
+
"vite": "8.3.4"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { browserFile, nativeFile, type QuickLookFile } from 'virtual:quicklook';
|
|
3
|
-
import FileViewer from '
|
|
3
|
+
import FileViewer from '../lib/FileViewer.svelte';
|
|
4
4
|
|
|
5
5
|
let file = $state<QuickLookFile | undefined>(nativeFile());
|
|
6
6
|
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import adapter from '@sveltejs/adapter-static';
|
|
1
2
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
2
3
|
import { quicklook } from 'quicklook-kit/vite';
|
|
3
4
|
import { defineConfig } from 'vite';
|
|
4
5
|
|
|
5
6
|
export default defineConfig({
|
|
6
|
-
plugins: [
|
|
7
|
+
plugins: [
|
|
8
|
+
sveltekit({
|
|
9
|
+
// A static build; the extension serves it and sets the CSP from quicklook.config.ts.
|
|
10
|
+
adapter: adapter(),
|
|
11
|
+
|
|
12
|
+
// Builds a client-only app shell, which is all the preview needs.
|
|
13
|
+
router: { type: 'hash' },
|
|
14
|
+
}),
|
|
15
|
+
quicklook(),
|
|
16
|
+
],
|
|
7
17
|
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import adapter from '@sveltejs/adapter-static';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@sveltejs/kit').Config} */
|
|
4
|
-
export default {
|
|
5
|
-
kit: {
|
|
6
|
-
// A static build; the extension serves it and sets the CSP from quicklook.config.ts.
|
|
7
|
-
adapter: adapter(),
|
|
8
|
-
// Builds a client-only app shell, which is all the preview needs.
|
|
9
|
-
router: { type: 'hash' },
|
|
10
|
-
},
|
|
11
|
-
};
|