This commit is contained in:
gregor 2024-02-27 16:02:29 +03:00
parent 95cad7fd4c
commit e65df9e28d
5 changed files with 37 additions and 728 deletions

750
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,6 @@
},
"dependencies": {
"@linear/sdk": "^9.0.1",
"@morev/vue-transitions": "^2.3.6",
"@vercel/analytics": "^1.1.2",
"@vercel/speed-insights": "^1.0.8",
"@vuelidate/core": "^2.0.3",
@ -46,7 +45,6 @@
"typescript": "^5.0.2",
"vite": "5.0.12",
"vite-plugin-dynamic-import": "^1.5.0",
"vite-plugin-static-copy": "^1.0.1",
"vite-svg-loader": "^5.1.0",
"vue-tsc": "^1.8.5"
},

View File

@ -1,18 +1,13 @@
<script setup lang="ts">
import { defineAsyncComponent } from "vue";
const allIcons = import.meta.url;
console.log(allIcons);
const props = defineProps<{ name: string }>();
const icon = defineAsyncComponent(
() =>
import(
/* @vite-ignore */
import.meta.env.DEV
? `/src/assets/svg/${props.name}.svg`
: `/assets/svg${props.name}.svg`
`/src/assets/svg/${props.name}.svg`
),
);
</script>

View File

@ -102,7 +102,7 @@ const { signOut } = useClerk();
}"
>
<img
:src="user.imageUrl"
src="@assets/img/gregor.png"
:alt="user.fullName ?? undefined"
class="!h-[34px] !w-[34px] shrink-0 overflow-hidden rounded-full"
/>

View File

@ -6,13 +6,9 @@ import * as path from "path";
// https://vitejs.dev/config/
export default defineConfig({
assetsInclude: path.resolve(__dirname, "./src/assets"),
plugins: [
vue(),
svgLoader(),
// viteStaticCopy({
// targets: [{ src: "src/assets", dest: "assets" }],
// }),
VitePWA({
registerType: "autoUpdate",
injectRegister: "auto",