Fixed audit problems

This commit is contained in:
Andrea Cavalli 2019-04-15 23:05:47 +02:00
parent d63e9281e0
commit 5f80e4435c
22 changed files with 44 additions and 54 deletions

View File

@ -38,7 +38,9 @@
"src/styles.scss",
"src/styles-fonts.scss"
],
"scripts": [],
"scripts": [
"node_modules/marked/lib/marked.js"
],
"es5BrowserSupport": false,
"i18nFormat": "xlf",
"i18nMissingTranslation": "error"
@ -115,7 +117,9 @@
"src/styles.scss",
"src/styles-fonts.scss"
],
"scripts": [],
"scripts": [
"node_modules/marked/lib/marked.js"
],
"assets": [
"src/favicon.ico",
"src/manifest.json",

View File

@ -55,7 +55,7 @@ export function markedOptionsFactory(): MarkedOptions {
renderer,
gfm: true,
tables: true,
breaks: false,
breaks: true,
pedantic: false,
sanitize: false,
smartLists: true,

View File

@ -6,12 +6,14 @@
<a *ngIf="link.external === true"
[href]="link.address"
[target]="link.newtab === undefined || link.newtab === true ? '_blank' : '_self'"
rel="noopener"
[class.forcefocus] = "(currentDocument.onDocumentChange() | async)?.id == link.address"
><span>{{link.text}}</span></a>
<a
*ngIf="link.external !== true"
[routerLink]="link.address"
[target]="link.newtab === true ? '_blank' : '_self'"
rel="noopener"
[class.force-focus] = "'/article/' + (currentDocument.onDocumentChange() | async)?.id == link.address"
><span>{{link.text}}</span></a>
</li>

View File

@ -54,7 +54,7 @@ export class DocumentFetchService {
}
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) {
return encoded;
} else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 969 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 958 B

After

Width:  |  Height:  |  Size: 9.1 KiB

View File

@ -9,10 +9,10 @@ The DPI setting is used to calculate the pixel density, and consequently the rea
#### Here's an example
With 480 DPI (CyanogenMod default setting)<br>
With 480 DPI (CyanogenMod default setting)
*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
### How to fix it
@ -26,7 +26,14 @@ Please choose the method that you prefer
1. Open Cardboard app
2. Tap **Settings**
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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -6,12 +6,15 @@
<base href="/">
<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">
<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>
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<noscript>Please enable JavaScript.</noscript>
</body>
</html>

View File

@ -1,51 +1,25 @@
{
"name": "cavallium-website",
"short_name": "cavallium-website",
"name": "Cavallium.it",
"short_name": "Cavallium.it",
"theme_color": "#1976d2",
"background_color": "#fafafa",
"display": "standalone",
"background_color": "#ffffff",
"display": "minimal-ui",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "assets/icons/icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "assets/icons/icon-96x96.png",
"sizes": "96x96",
"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-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"
}
{"src": "assets/icons/icon-16x16.png", "sizes": "16x16", "type": "image/png"},
{"src": "assets/icons/icon-18x18.png", "sizes": "18x18","type": "image/png"},
{"src": "assets/icons/icon-24x24.png","sizes": "24x24","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-72x72.png","sizes": "72x72","type": "image/png"},
{"src": "assets/icons/icon-96x96.png","sizes": "96x96","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-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"}
]
}