diff --git a/apps/career/src/components/joblist/JobCard.tsx b/apps/career/src/components/joblist/JobCard.tsx index da025b7c..6cf5dbff 100644 --- a/apps/career/src/components/joblist/JobCard.tsx +++ b/apps/career/src/components/joblist/JobCard.tsx @@ -26,7 +26,7 @@ const JobCard: React.FC = ({
{/* Logo Section */} -
+
= ({
{/* Title Section */} -
+

= ({

{/* Location Section */} -
-
+
+
{/* You can add an icon for location next to the text */}

{location} @@ -65,12 +65,12 @@ const JobCard: React.FC = ({

{/* Date Posted Section */} -
+

{formattedTime}

-
+
{type} diff --git a/apps/career/src/components/joblist/JobCardFooter.tsx b/apps/career/src/components/joblist/JobCardFooter.tsx index bd88c487..32354e89 100644 --- a/apps/career/src/components/joblist/JobCardFooter.tsx +++ b/apps/career/src/components/joblist/JobCardFooter.tsx @@ -12,13 +12,13 @@ const JobCardFooter: React.FC = ({ jobID, isRegistered }) => {
{isRegistered ? ( -
+
Apply
) : ( -
+
Apply
diff --git a/apps/career/src/components/joblist/Joblist.tsx b/apps/career/src/components/joblist/Joblist.tsx index 848744ba..fd5db2c9 100644 --- a/apps/career/src/components/joblist/Joblist.tsx +++ b/apps/career/src/components/joblist/Joblist.tsx @@ -39,8 +39,8 @@ const Joblist: React.FC = ({ return ( <> {isLoggedIn ? ( -
-
+
+
{jobData.map((job, index) => ( = ({ ))}
-
+
{isRegistered ? ( diff --git a/apps/career/tsconfig.json b/apps/career/tsconfig.json index c1d07bf3..29fca6a3 100644 --- a/apps/career/tsconfig.json +++ b/apps/career/tsconfig.json @@ -12,6 +12,7 @@ "strict": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", + "types": ["vite/client"], "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, diff --git a/apps/career/vite.config.ts b/apps/career/vite.config.ts index 6e83ce50..a04a5cc7 100644 --- a/apps/career/vite.config.ts +++ b/apps/career/vite.config.ts @@ -1,31 +1,42 @@ import react from "@vitejs/plugin-react" +import { defineConfig, loadEnv } from "vite" import dynamicImport from "vite-plugin-dynamic-import" const path = require("path") -export default { - root: "./src", - rollupOptions: { - input: "wasedatime-career.ts", - preserveEntrySignatures: true, - }, - build: { - outDir: "../dist", - emptyOutDir: true, +export default defineConfig(({ mode }) => { + const env = loadEnv(mode, process.cwd() + "/src") + + return { + root: "./src", + publicDir: "assets", + base: (env.VITE_PUBLIC_BASE_PATH || "http://localhost:8082") + "/", rollupOptions: { - input: "./src/wasedatime-career.ts", + input: "wasedatime-career.ts", preserveEntrySignatures: true, - output: { - entryFileNames: "wasedatime-career.js", + }, + build: { + outDir: "../dist", + emptyOutDir: true, + cssCodeSplit: false, + manifest: true, + rollupOptions: { + input: "./src/wasedatime-career.ts", + preserveEntrySignatures: true, + output: { + entryFileNames: "[name].js", + assetFileNames: "assets/[name].[ext]", + }, }, }, - }, - resolve: { - fullySpecified: false, - alias: { - "@app": path.resolve(__dirname, "src/"), + resolve: { + fullySpecified: false, + alias: { + "@app": path.resolve(__dirname, "src/"), + }, + modules: ["node_modules"], }, - modules: ["node_modules"], - }, - plugins: [react(), dynamicImport()], - envPrefix: ["VITE_", "REACT_APP_"], -} + plugins: [react(), dynamicImport()], + assetsInclude: ["**/*.png", "**/*.jpg", "**/*.svg"], + envPrefix: ["VITE_", "REACT_APP_"], + } +})