mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
replace webpack w/ vite
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div id="content">
|
||||
<!-- Header and hamburger navigation -->
|
||||
<NavigationHeader class="header" />
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { IList, IMediaCredits, IPersonCredits } from "./interfaces/IList";
|
||||
|
||||
const { ELASTIC, ELASTIC_INDEX } = process.env;
|
||||
const API_HOSTNAME = window.location.origin;
|
||||
const ELASTIC = import.meta.env.VITE_ELASTIC;
|
||||
const ELASTIC_INDEX = import.meta.env.VITE_ELASTIC_INDEX;
|
||||
const API_HOSTNAME = import.meta.env.VITE_SEASONED_API;
|
||||
|
||||
// - - - TMDB - - -
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<meta name="theme-color" content="#081c24" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="entry"></div>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
|
||||
<script
|
||||
|
||||
@@ -4,7 +4,7 @@ import store from "./store";
|
||||
import Toast from "./plugins/Toast";
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const App = require("./App.vue").default;
|
||||
import App from "./App.vue";
|
||||
|
||||
store.dispatch("darkmodeModule/findAndSetDarkmodeSupported");
|
||||
store.dispatch("user/initUserFromCookie");
|
||||
@@ -14,4 +14,5 @@ const app = createApp(App);
|
||||
app.use(router);
|
||||
app.use(store);
|
||||
app.use(Toast);
|
||||
app.mount("#entry");
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
10
src/vite-env.d.ts
vendored
Normal file
10
src/vite-env.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_SEASONED_API: string;
|
||||
readonly VITE_ELASTIC: string;
|
||||
readonly VITE_ELASTIC_INDEX: string;
|
||||
readonly VITE_SEASONED_DOMAIN: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
Reference in New Issue
Block a user