Fixed audit problems
|
@ -38,7 +38,9 @@
|
||||||
"src/styles.scss",
|
"src/styles.scss",
|
||||||
"src/styles-fonts.scss"
|
"src/styles-fonts.scss"
|
||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [
|
||||||
|
"node_modules/marked/lib/marked.js"
|
||||||
|
],
|
||||||
"es5BrowserSupport": false,
|
"es5BrowserSupport": false,
|
||||||
"i18nFormat": "xlf",
|
"i18nFormat": "xlf",
|
||||||
"i18nMissingTranslation": "error"
|
"i18nMissingTranslation": "error"
|
||||||
|
@ -115,7 +117,9 @@
|
||||||
"src/styles.scss",
|
"src/styles.scss",
|
||||||
"src/styles-fonts.scss"
|
"src/styles-fonts.scss"
|
||||||
],
|
],
|
||||||
"scripts": [],
|
"scripts": [
|
||||||
|
"node_modules/marked/lib/marked.js"
|
||||||
|
],
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/favicon.ico",
|
"src/favicon.ico",
|
||||||
"src/manifest.json",
|
"src/manifest.json",
|
||||||
|
|
|
@ -55,7 +55,7 @@ export function markedOptionsFactory(): MarkedOptions {
|
||||||
renderer,
|
renderer,
|
||||||
gfm: true,
|
gfm: true,
|
||||||
tables: true,
|
tables: true,
|
||||||
breaks: false,
|
breaks: true,
|
||||||
pedantic: false,
|
pedantic: false,
|
||||||
sanitize: false,
|
sanitize: false,
|
||||||
smartLists: true,
|
smartLists: true,
|
||||||
|
|
|
@ -6,12 +6,14 @@
|
||||||
<a *ngIf="link.external === true"
|
<a *ngIf="link.external === true"
|
||||||
[href]="link.address"
|
[href]="link.address"
|
||||||
[target]="link.newtab === undefined || link.newtab === true ? '_blank' : '_self'"
|
[target]="link.newtab === undefined || link.newtab === true ? '_blank' : '_self'"
|
||||||
|
rel="noopener"
|
||||||
[class.forcefocus] = "(currentDocument.onDocumentChange() | async)?.id == link.address"
|
[class.forcefocus] = "(currentDocument.onDocumentChange() | async)?.id == link.address"
|
||||||
><span>{{link.text}}</span></a>
|
><span>{{link.text}}</span></a>
|
||||||
<a
|
<a
|
||||||
*ngIf="link.external !== true"
|
*ngIf="link.external !== true"
|
||||||
[routerLink]="link.address"
|
[routerLink]="link.address"
|
||||||
[target]="link.newtab === true ? '_blank' : '_self'"
|
[target]="link.newtab === true ? '_blank' : '_self'"
|
||||||
|
rel="noopener"
|
||||||
[class.force-focus] = "'/article/' + (currentDocument.onDocumentChange() | async)?.id == link.address"
|
[class.force-focus] = "'/article/' + (currentDocument.onDocumentChange() | async)?.id == link.address"
|
||||||
><span>{{link.text}}</span></a>
|
><span>{{link.text}}</span></a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -54,7 +54,7 @@ export class DocumentFetchService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private encodeId(id: string): string {
|
private encodeId(id: string): string {
|
||||||
const encoded = id.split("/").map(encodeURIComponent).filter((part) => part.length > 0 && part !== "." && part !== "..").join("/");
|
const encoded = id.split("/").map(encodeURIComponent).filter((part) => part.length > 0 && !/[^a-zA-Z0-9_-àùéèì]/.test(part)).join("/");
|
||||||
if (encoded.length > 0) {
|
if (encoded.length > 0) {
|
||||||
return encoded;
|
return encoded;
|
||||||
} else {
|
} else {
|
||||||
|
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 969 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 9.1 KiB |
|
@ -9,10 +9,10 @@ The DPI setting is used to calculate the pixel density, and consequently the rea
|
||||||
|
|
||||||
#### Here's an example
|
#### Here's an example
|
||||||
|
|
||||||
With 480 DPI (CyanogenMod default setting)<br>
|
With 480 DPI (CyanogenMod default setting)
|
||||||
*same length in inches:* 4
|
*same length in inches:* 4
|
||||||
|
|
||||||
With 424 DPI (LG G2 real DPI)<br>
|
With 424 DPI (LG G2 real DPI)
|
||||||
*same length in inches:* 3
|
*same length in inches:* 3
|
||||||
|
|
||||||
### How to fix it
|
### How to fix it
|
||||||
|
@ -26,7 +26,14 @@ Please choose the method that you prefer
|
||||||
1. Open Cardboard app
|
1. Open Cardboard app
|
||||||
2. Tap **Settings**
|
2. Tap **Settings**
|
||||||
3. Tap **Change**
|
3. Tap **Change**
|
||||||
4. Scan with your camera this QR-Code:<br>[warning]WARNING: If you do this you can't go back to the default settings![warning]
|
4. Scan with your camera this QR-Code:
|
||||||
|
[warning]WARNING: If you do this you can't go back to the default settings![warning]
|
||||||
|
|
||||||
|
|
||||||
|
line
|
||||||
|
break
|
||||||
|
|
||||||
|
"Smart Quotations"
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
BIN
src/favicon.ico
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 2.8 KiB |
|
@ -6,12 +6,15 @@
|
||||||
<base href="/">
|
<base href="/">
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<meta name="theme-color" content="#1976d2">
|
<meta name="theme-color" content="#3f51b5">
|
||||||
|
<meta name="Description" content="Andrea Cavalli's personal blog">
|
||||||
|
<link rel="icon" type="x-icon" href="favicon.ico" sizes="16x16 32x32">
|
||||||
|
<link rel="icon" type="image/png" href="/assets/icons/icon-96x96.png" sizes="96x96">
|
||||||
|
<link rel="icon" type="image/png" href="/assets/icons/icon-192x192.png" sizes="192x192">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
<noscript>Please enable JavaScript.</noscript>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,51 +1,25 @@
|
||||||
{
|
{
|
||||||
"name": "cavallium-website",
|
"name": "Cavallium.it",
|
||||||
"short_name": "cavallium-website",
|
"short_name": "Cavallium.it",
|
||||||
"theme_color": "#1976d2",
|
"theme_color": "#1976d2",
|
||||||
"background_color": "#fafafa",
|
"background_color": "#ffffff",
|
||||||
"display": "standalone",
|
"display": "minimal-ui",
|
||||||
"scope": "/",
|
"scope": "/",
|
||||||
"start_url": "/",
|
"start_url": "/",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{"src": "assets/icons/icon-16x16.png", "sizes": "16x16", "type": "image/png"},
|
||||||
"src": "assets/icons/icon-72x72.png",
|
{"src": "assets/icons/icon-18x18.png", "sizes": "18x18","type": "image/png"},
|
||||||
"sizes": "72x72",
|
{"src": "assets/icons/icon-24x24.png","sizes": "24x24","type": "image/png"},
|
||||||
"type": "image/png"
|
{"src": "assets/icons/icon-32x32.png","sizes": "32x32","type": "image/png"},
|
||||||
},
|
{"src": "assets/icons/icon-48x48.png","sizes": "48x48","type": "image/png"},
|
||||||
{
|
{"src": "assets/icons/icon-64x64.png","sizes": "64x64","type": "image/png"},
|
||||||
"src": "assets/icons/icon-96x96.png",
|
{"src": "assets/icons/icon-72x72.png","sizes": "72x72","type": "image/png"},
|
||||||
"sizes": "96x96",
|
{"src": "assets/icons/icon-96x96.png","sizes": "96x96","type": "image/png"},
|
||||||
"type": "image/png"
|
{"src": "assets/icons/icon-128x128.png","sizes": "128x128","type": "image/png"},
|
||||||
},
|
{"src": "assets/icons/icon-144x144.png","sizes": "144x144","type": "image/png"},
|
||||||
{
|
{"src": "assets/icons/icon-152x152.png","sizes": "152x152","type": "image/png"},
|
||||||
"src": "assets/icons/icon-128x128.png",
|
{"src": "assets/icons/icon-192x192.png","sizes": "192x192","type": "image/png"},
|
||||||
"sizes": "128x128",
|
{"src": "assets/icons/icon-384x384.png","sizes": "384x384","type": "image/png"},
|
||||||
"type": "image/png"
|
{"src": "assets/icons/icon-512x512.png","sizes": "512x512","type": "image/png"}
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "assets/icons/icon-144x144.png",
|
|
||||||
"sizes": "144x144",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "assets/icons/icon-152x152.png",
|
|
||||||
"sizes": "152x152",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "assets/icons/icon-192x192.png",
|
|
||||||
"sizes": "192x192",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "assets/icons/icon-384x384.png",
|
|
||||||
"sizes": "384x384",
|
|
||||||
"type": "image/png"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"src": "assets/icons/icon-512x512.png",
|
|
||||||
"sizes": "512x512",
|
|
||||||
"type": "image/png"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|