diff --git a/.env.example b/.env.example index 50d17cb5..fe23b810 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,6 @@ NUXT_MAIN_API_ORIGIN= NUXT_BPJS_API_ORIGIN= +NUXT_API_VCLAIM_SWAGGER= # https://vclaim-api.multy.chat NUXT_SYNC_API_ORIGIN= NUXT_API_ORIGIN= diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d02bc726 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# Build Stage +FROM node:20-alpine AS build-stage + +# Set the working directory inside the container +WORKDIR /app + +# Enable pnpm using corepack +RUN corepack enable + +# Copy pnpm related files and package.json to leverage Docker layer caching +COPY package.json pnpm-lock.yaml ./ + +# Install dependencies using pnpm +# Using --frozen-lockfile ensures consistent installations based on pnpm-lock.yaml +RUN --mount=type=cache,id=pnpm-store,target=/root/.pnpm-store pnpm install --frozen-lockfile + +# Copy the rest of the application files +COPY . . + +# Build the Vue.js application for production +RUN pnpm build + +# Production Stage +FROM nginx:stable-alpine AS production-stage + +# Copy the built Vue.js application from the build stage to Nginx's web root +COPY --from=build-stage /app/dist /usr/share/nginx/html + +# Expose port 80 for Nginx +EXPOSE 80 + +# Command to run Nginx in the foreground +CMD ["nginx", "-g", "daemon off;"] diff --git a/app/components/app/action-report/entry-form.vue b/app/components/app/action-report/entry-form.vue new file mode 100644 index 00000000..2479e1c7 --- /dev/null +++ b/app/components/app/action-report/entry-form.vue @@ -0,0 +1,468 @@ + + + diff --git a/app/components/app/action-report/fields/fill-notes.vue b/app/components/app/action-report/fields/fill-notes.vue new file mode 100644 index 00000000..41c948c5 --- /dev/null +++ b/app/components/app/action-report/fields/fill-notes.vue @@ -0,0 +1,65 @@ + + diff --git a/app/components/app/action-report/fields/index.ts b/app/components/app/action-report/fields/index.ts new file mode 100644 index 00000000..ea1a0e72 --- /dev/null +++ b/app/components/app/action-report/fields/index.ts @@ -0,0 +1,10 @@ +export { default as FillNotes } from './fill-notes.vue' +export { default as RadioBloods } from './radio-bloods.vue' +export { default as SelectBilling } from './select-billing.vue' +export { default as SelectBirthPlace } from './select-birth-place.vue' +export { default as SelectBirthType } from './select-birth-type.vue' +export { default as SelectOperationSystem } from './select-operation-system.vue' +export { default as SelectOperationType } from './select-operation-type.vue' +export { default as SelectSpecimen } from './select-specimen.vue' +export { default as SelectSurgeryCounter } from './select-surgery-counter.vue' +export { default as SelectSurgeryType } from './select-surgery-type.vue' diff --git a/app/components/app/action-report/fields/radio-bloods.vue b/app/components/app/action-report/fields/radio-bloods.vue new file mode 100644 index 00000000..9bdaa187 --- /dev/null +++ b/app/components/app/action-report/fields/radio-bloods.vue @@ -0,0 +1,101 @@ + + + diff --git a/app/components/app/person-relative/_common/select-relations.vue b/app/components/app/action-report/fields/select-billing.vue similarity index 62% rename from app/components/app/person-relative/_common/select-relations.vue rename to app/components/app/action-report/fields/select-billing.vue index 5c3d2594..f8df074e 100644 --- a/app/components/app/person-relative/_common/select-relations.vue +++ b/app/components/app/action-report/fields/select-billing.vue @@ -1,34 +1,40 @@