-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from DaniloMurer/develop
Develop
- Loading branch information
Showing
31 changed files
with
569 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
FROM node:22.3.0-slim as base | ||
FROM node:22.3.0-slim AS base | ||
EXPOSE 3000 | ||
ENV NODE_ENV=production | ||
WORKDIR /src | ||
#RUN npm install yarn | ||
|
||
FROM base as build | ||
FROM base AS build | ||
EXPOSE 3000 | ||
COPY . . | ||
RUN npm install --production=false | ||
RUN npm run build | ||
|
||
FROM base as run | ||
FROM base AS run | ||
ENV PORT=$PORT | ||
|
||
COPY --from=build /src/.output /src/.output | ||
|
||
CMD [ "node", ".output/server/index.mjs" ] | ||
CMD [ "node", ".output/server/index.mjs" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
export interface Experience { | ||
id: number; | ||
position: string; | ||
company: string; | ||
timeFrame: string; | ||
responsibilities: string; | ||
} | ||
|
||
export interface Technology { | ||
id: number, | ||
name: string; | ||
logoClass: string; | ||
experience: string; | ||
description: string; | ||
} | ||
|
||
export class ExperienceDto implements Experience { | ||
id: number; | ||
position: string; | ||
company: string; | ||
timeFrame: string; | ||
responsibilities: string; | ||
|
||
constructor(position: string, company: string, timeFrame: string, responsibilities: string) { | ||
this.id = 0; | ||
this.position = position; | ||
this.company = company; | ||
this.timeFrame = timeFrame; | ||
this.responsibilities = responsibilities; | ||
} | ||
} | ||
|
||
export class TechnologyDto implements Technology { | ||
id: number; | ||
name: string; | ||
logoClass: string; | ||
experience: string; | ||
description: string; | ||
|
||
constructor(name: string, logoClass: string, experience: string, description: string) { | ||
this.id = 0; | ||
this.name = name; | ||
this.logoClass = logoClass; | ||
this.experience = experience; | ||
this.description = description; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
defineProps(['data', 'tableTitle']) | ||
</script> | ||
<template> | ||
<h1 class="font-bold">{{ tableTitle }}</h1> | ||
<div> | ||
<table class="table table-zebra"> | ||
<thead> | ||
<tr> | ||
<slot name="table-header" /> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr v-for="item in data"> | ||
<slot name="table-row" :item="item" /> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { useAuthStore } from '~/store/auth'; | ||
|
||
export default defineNuxtRouteMiddleware((to, from) => { | ||
const token = useAuthStore().token; | ||
if (!token) { | ||
return navigateTo('/') | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.