add default font for arimo font

This commit is contained in:
Dan Percic 2023-06-23 20:52:05 +03:00
parent 22bc7bb644
commit 8de4ad9979
4 changed files with 19 additions and 15 deletions

View File

@ -6,7 +6,7 @@
"name": "app", "name": "app",
"installMode": "prefetch", "installMode": "prefetch",
"resources": { "resources": {
"files": ["/favicon.ico", "/manifest.webmanifest", "/*.css", "/*.js", "!/assets/wv-resources/**"] "files": ["/favicon.ico", "/manifest.webmanifest", "/*.css", "/*.js"]
} }
}, },
{ {
@ -14,7 +14,7 @@
"installMode": "lazy", "installMode": "lazy",
"updateMode": "prefetch", "updateMode": "prefetch",
"resources": { "resources": {
"files": ["/assets/**", "!/assets/wv-resources/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"] "files": ["/assets/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"]
} }
} }
] ]

View File

@ -13,6 +13,7 @@ import { asList } from '../utils/functions';
import { TranslateService } from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core';
import { LicenseService } from '@services/license.service'; import { LicenseService } from '@services/license.service';
import { UserPreferenceService } from '@users/user-preference.service'; import { UserPreferenceService } from '@users/user-preference.service';
import { environment } from '@environments/environment';
import TextTool = Core.Tools.TextTool; import TextTool = Core.Tools.TextTool;
import Annotation = Core.Annotations.Annotation; import Annotation = Core.Annotations.Annotation;
import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation; import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation;
@ -149,9 +150,9 @@ export class PdfViewer {
async init(htmlElement: HTMLElement) { async init(htmlElement: HTMLElement) {
this.#instance = await this.#getInstance(htmlElement); this.#instance = await this.#getInstance(htmlElement);
// if (environment.production) { if (environment.production) {
// this.#instance.Core.setCustomFontURL('http://' + window.location.host + this._convertPath('/assets/pdftron')); this.#instance.Core.setCustomFontURL('https://' + window.location.host + this._convertPath('/assets/pdftron'));
// } }
try { try {
await this.PDFNet.initialize(this._licenseService.activeLicenseKey); await this.PDFNet.initialize(this._licenseService.activeLicenseKey);

View File

@ -22,6 +22,11 @@
"target": "m+1p1", "target": "m+1p1",
"type": "Wildcard" "type": "Wildcard"
}, },
{
"match": "Arimo*",
"target": "m+1p1",
"type": "Wildcard"
},
{ {
"target": "m+1p1", "target": "m+1p1",
"type": "All" "type": "All"

View File

@ -10,14 +10,12 @@ RUN jq '{ dependencies, devDependencies, peerDependencies, scripts: (.scripts |
# We label our stage as builder # We label our stage as builder
FROM node:18.16-buster as builder FROM node:18.16-buster as builder
#RUN apt-get update && apt-get install -y jq RUN apt-get update && apt-get install -y jq
COPY --from=prep /tmp/deps.json ./package.json COPY --from=prep /tmp/deps.json ./package.json
COPY yarn.lock ./ COPY yarn.lock ./
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build ## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
RUN yarn cache clean
RUN rm -rf ./node_modules
RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app
ARG bamboo_sonarqube_api_token_secret ARG bamboo_sonarqube_api_token_secret
ENV bamboo_sonarqube_api_token_secret=$bamboo_sonarqube_api_token_secret ENV bamboo_sonarqube_api_token_secret=$bamboo_sonarqube_api_token_secret
@ -28,13 +26,13 @@ COPY apps apps
COPY libs libs COPY libs libs
COPY tools tools COPY tools tools
COPY package.json package.json COPY package.json package.json
#COPY version.json version.json COPY version.json version.json
#RUN cat version.json RUN cat version.json
#RUN version=$(jq .FRONTEND_APP_VERSION version.json -r | cat) && \ RUN version=$(jq .FRONTEND_APP_VERSION version.json -r | cat) && \
# jq --arg version "$version" '.version = $version' package.json > tmp.json && \ jq --arg version "$version" '.version = $version' package.json > tmp.json && \
# mv tmp.json package.json mv tmp.json package.json
#
#RUN cat package.json RUN cat package.json
COPY yarn.lock yarn.lock COPY yarn.lock yarn.lock
COPY angular.json angular.json COPY angular.json angular.json
COPY nx.json nx.json COPY nx.json nx.json