create-quicklook 0.2.1 → 0.5.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.
- package/LICENSE +4 -0
- package/README.markdown +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
- package/templates/analog/package.json +1 -1
- package/templates/analog/quicklook.config.ts +1 -1
- package/templates/analog/src/app/app.ts +1 -1
- package/templates/astro/package.json +1 -1
- package/templates/astro/quicklook.config.ts +1 -1
- package/templates/astro/src/pages/index.astro +1 -1
- package/templates/nuxt/app/app.vue +1 -1
- package/templates/nuxt/package.json +1 -1
- package/templates/nuxt/quicklook.config.ts +1 -1
- package/templates/solid-start/package.json +1 -1
- package/templates/solid-start/quicklook.config.ts +1 -1
- package/templates/solid-start/src/routes/index.tsx +1 -1
- package/templates/sveltekit/package.json +1 -1
- package/templates/sveltekit/quicklook.config.ts +1 -1
- package/templates/sveltekit/src/routes/+page.svelte +1 -1
package/LICENSE
CHANGED
package/README.markdown
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# create-quicklook
|
|
2
2
|
|
|
3
|
-

|
|
4
|
+
[](https://www.npmjs.org/package/create-quicklook)
|
|
5
|
+
[](https://github.com/idleberg/create-quicklook/actions)
|
|
6
6
|
|
|
7
|
-
> Create a macOS
|
|
7
|
+
> Create a macOS Quick Look preview with any Vite-based web framework
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
10
|
pnpm create quicklook my-preview
|
package/dist/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ note([
|
|
|
75
75
|
`cd ${relative(process.cwd(), dir)}`,
|
|
76
76
|
"mise install # or: pnpm install, with Xcode and XcodeGen installed",
|
|
77
77
|
"pnpm dev # drop a file on the page to preview it",
|
|
78
|
-
"pnpm register # build the app and register it with
|
|
78
|
+
"pnpm register # build the app and register it with Quick Look"
|
|
79
79
|
].join("\n"), "Next steps");
|
|
80
80
|
outro(`Created from the ${template} template.`);
|
|
81
81
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-quicklook",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Create a macOS
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Create a macOS Quick Look preview with any Vite-based web framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"quicklook",
|
|
@@ -10,7 +10,7 @@ import { FileViewer } from './file-viewer';
|
|
|
10
10
|
@if (file(); as file) {
|
|
11
11
|
<app-file-viewer [file]="file" />
|
|
12
12
|
} @else {
|
|
13
|
-
<!-- Only reachable in the browser:
|
|
13
|
+
<!-- Only reachable in the browser: Quick Look always injects a file. -->
|
|
14
14
|
<label class="drop">
|
|
15
15
|
Drop a file here, or click to pick one
|
|
16
16
|
<input type="file" hidden (change)="open($any($event.target).files)" />
|
|
@@ -11,7 +11,7 @@ import FileViewer from '../components/FileViewer.astro';
|
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<FileViewer />
|
|
14
|
-
<!-- Only reachable in the browser:
|
|
14
|
+
<!-- Only reachable in the browser: Quick Look always injects a file. -->
|
|
15
15
|
<label id="drop">
|
|
16
16
|
Drop a file here, or click to pick one
|
|
17
17
|
<input type="file" hidden />
|
|
@@ -23,7 +23,7 @@ onMounted(() => {
|
|
|
23
23
|
|
|
24
24
|
<template>
|
|
25
25
|
<FileViewer v-if="file" :file="file" />
|
|
26
|
-
<!-- Only reachable in the browser:
|
|
26
|
+
<!-- Only reachable in the browser: Quick Look always injects a file. -->
|
|
27
27
|
<label v-else class="drop">
|
|
28
28
|
Drop a file here, or click to pick one
|
|
29
29
|
<input type="file" hidden @change="open(($event.target as HTMLInputElement).files)" />
|
|
@@ -22,7 +22,7 @@ export default function Home() {
|
|
|
22
22
|
<Show
|
|
23
23
|
when={file()}
|
|
24
24
|
fallback={
|
|
25
|
-
// Only reachable in the browser:
|
|
25
|
+
// Only reachable in the browser: Quick Look always injects a file.
|
|
26
26
|
<label class="drop">
|
|
27
27
|
Drop a file here, or click to pick one
|
|
28
28
|
<input type="file" hidden={true} onChange={(event) => open(event.currentTarget.files)} />
|