-
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.
* build: remove unecessary file .yarnrc * build: remove browserlist configuration * build: simplify configuration * ci: update actions * test: fix wrong expected date * fix: -- is deprecated in yarn test * feat: replace moment with dayjs * fix: remove non-null assertion in dayjs test * update angular core and cli * upgrade angular-material * feat: localization of time and date using dayjs * feat: replace deprecated ngx-matdatetimepicker with material Date and Timepicker * refactor: removed workaround. * chore: update dependencies and remove dependencies no longer in use * fix: format duration to same format with dayjs as with moment. update tests * fix: change oicd response type * feat: use casl abilityService instead of able pipe * chore: update dependencies * fix: settings format in dateadapter to match calendar input. Update tests to support changes * fix: update after changing casl ability implementation * fix: update tests to work with new dayjs dateadapter * cleanup: remove console.log statements * fix: replace logo image with smaller size images to get rid of warning during render * fix: dayjs-date-adapter * feat: remove deprecated APP_INITIALIZER * fix: turn off eslint prefer standalone Turned off prefer-standalone option in eslint to pass linting step. Can be turned back on again if we at some point refactor all components ++ to be standalone. * fix: remove unused lifecycle hook to please linter * fix: remove optional locale in _createDayJs. Set locale to nb instead of nb-NO in tests --------- Co-authored-by: Marius André Elsfjordstrand Beck <[email protected]>
- Loading branch information
Showing
234 changed files
with
6,811 additions
and
5,553 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,33 +1,23 @@ | ||
FROM node:20.11-alpine as build | ||
FROM node:20-alpine as build | ||
|
||
ARG BASE_HREF=/veidemann/ | ||
ARG VERSION | ||
|
||
# Install git because git dependency in package.json | ||
# Install gettext because envsubst | ||
RUN apk add --update --no-cache git gettext | ||
|
||
COPY package.json yarn.lock .yarnrc /usr/src/app/ | ||
WORKDIR /usr/src/app | ||
|
||
COPY package.json yarn.lock ./ | ||
|
||
RUN yarn install --non-interactive --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
# Give the application a version | ||
RUN sed -i "s/version: ''/version: '${VERSION}'/" src/environments/*.ts | ||
|
||
RUN yarn ng build \ | ||
--configuration production \ | ||
--base-href=${BASE_HREF} \ | ||
--output-path=dist/${BASE_HREF} | ||
|
||
# Configure nginx location | ||
RUN envsubst \$BASE_HREF < nginx/default.template.conf > nginx/default.conf | ||
RUN yarn ng build --configuration production | ||
|
||
|
||
FROM nginx:stable-alpine | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY --from=build /usr/src/app/dist /usr/share/nginx/app | ||
COPY --from=build /usr/src/app/dist /usr/share/nginx | ||
|
||
COPY --from=build /usr/src/app/nginx/default.conf /etc/nginx/conf.d/ |
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
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.