@striae-org/striae 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +0 -5
- package/app/components/toolbar/toolbar-color-selector.module.css +2 -2
- package/app/root.tsx +0 -3
- package/app/routes/auth/login.tsx +7 -5
- package/app/routes/mobile-prevented/mobilePrevented.tsx +7 -5
- package/package.json +1 -1
- package/public/_headers +0 -12
- package/scripts/deploy-config.sh +0 -7
- package/workers/pdf-worker/worker-configuration.d.ts +7448 -7448
- package/app/config-example/meta-config.json +0 -6
- package/app/utils/meta.ts +0 -48
- package/public/icon-256.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/shortcut.png +0 -0
- package/public/social-image.png +0 -0
package/app/utils/meta.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import config from '~/config/meta-config.json';
|
|
2
|
-
|
|
3
|
-
interface AppConfig {
|
|
4
|
-
name: string;
|
|
5
|
-
author: string;
|
|
6
|
-
title: string;
|
|
7
|
-
url: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const { name, author, url } = config as AppConfig;
|
|
11
|
-
const defaultOgImage = `${url}/social-image.png`;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface MetaParams {
|
|
15
|
-
title: string;
|
|
16
|
-
description: string;
|
|
17
|
-
prefix?: string;
|
|
18
|
-
ogImage?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export function baseMeta({
|
|
22
|
-
title: pageTitle,
|
|
23
|
-
description,
|
|
24
|
-
ogImage = defaultOgImage,
|
|
25
|
-
}: MetaParams) {
|
|
26
|
-
const titleText = `${name} | ${pageTitle}`;
|
|
27
|
-
|
|
28
|
-
return [
|
|
29
|
-
{ title: titleText },
|
|
30
|
-
{ name: 'description', content: description },
|
|
31
|
-
{ name: 'author', content: author },
|
|
32
|
-
{ property: 'og:image', content: ogImage },
|
|
33
|
-
{ property: 'og:image:alt', content: 'Banner for the site' },
|
|
34
|
-
{ property: 'og:image:width', content: '1020' },
|
|
35
|
-
{ property: 'og:image:height', content: '484' },
|
|
36
|
-
{ property: 'og:title', content: titleText },
|
|
37
|
-
{ property: 'og:site_name', content: name },
|
|
38
|
-
{ property: 'og:type', content: 'website' },
|
|
39
|
-
{ property: 'og:url', content: url },
|
|
40
|
-
{ property: 'og:description', content: description },
|
|
41
|
-
{ property: 'twitter:card', content: 'summary_large_image' },
|
|
42
|
-
{ property: 'twitter:description', content: description },
|
|
43
|
-
{ property: 'twitter:title', content: titleText },
|
|
44
|
-
{ property: 'twitter:site', content: url },
|
|
45
|
-
{ property: 'twitter:creator', content: author },
|
|
46
|
-
{ property: 'twitter:image', content: ogImage },
|
|
47
|
-
];
|
|
48
|
-
}
|
package/public/icon-256.png
DELETED
|
Binary file
|
package/public/icon-512.png
DELETED
|
Binary file
|
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "Striae",
|
|
3
|
-
"name": "Striae: A Firearms Examiner's Comparison Companion",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "shortcut.png",
|
|
7
|
-
"sizes": "64x64",
|
|
8
|
-
"type": "image/png"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "icon-256.png",
|
|
12
|
-
"sizes": "256x256",
|
|
13
|
-
"type": "image/png"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "icon-512.png",
|
|
17
|
-
"sizes": "512x512",
|
|
18
|
-
"type": "image/png"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#ddd",
|
|
24
|
-
"background_color": "#ddd"
|
|
25
|
-
}
|
package/public/shortcut.png
DELETED
|
Binary file
|
package/public/social-image.png
DELETED
|
Binary file
|