Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
vite config allow absolute path
Browse files- Dockerfile +1 -1
- src/lib/components/community/Card.svelte +8 -1
- vite.config.ts +1 -1
Dockerfile
CHANGED
@@ -20,7 +20,7 @@ RUN chmod +x entrypoint.sh
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# create symlink for /data/uploads to /static/data/uploads
|
23 |
-
RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
|
|
20 |
EXPOSE 3000
|
21 |
|
22 |
# create symlink for /data/uploads to /static/data/uploads
|
23 |
+
# RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
|
24 |
|
25 |
# Start the application
|
26 |
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]
|
src/lib/components/community/Card.svelte
CHANGED
@@ -57,7 +57,14 @@
|
|
57 |
<Reactions reactions={card.reactions} gallery_id={card.id} />
|
58 |
{/if}
|
59 |
{#if onDelete}
|
60 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<Icon icon="ic:round-delete" class="text-white w-5 h-5" />
|
62 |
</button>
|
63 |
{/if}
|
|
|
57 |
<Reactions reactions={card.reactions} gallery_id={card.id} />
|
58 |
{/if}
|
59 |
{#if onDelete}
|
60 |
+
<button
|
61 |
+
class="absolute bottom-3 right-3 p-2.5 rounded-full bg-red-500 backdrop-blur-sm transition-all duration-200 hover:bg-red-700"
|
62 |
+
on:click={(e) => {
|
63 |
+
e.stopPropagation();
|
64 |
+
e.preventDefault();
|
65 |
+
handleDelete(card.id);
|
66 |
+
}}
|
67 |
+
>
|
68 |
<Icon icon="ic:round-delete" class="text-white w-5 h-5" />
|
69 |
</button>
|
70 |
{/if}
|
vite.config.ts
CHANGED
@@ -9,7 +9,7 @@ export default defineConfig({
|
|
9 |
],
|
10 |
server: {
|
11 |
fs: {
|
12 |
-
allow: [
|
13 |
}
|
14 |
}
|
15 |
});
|
|
|
9 |
],
|
10 |
server: {
|
11 |
fs: {
|
12 |
+
allow: [".."]
|
13 |
}
|
14 |
}
|
15 |
});
|