summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/web/views/base.pug
blob: 0bd6788a8d837c36ab6cc8b932b751f86ea33a6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
block vars

block loadClientEntry
	- const entry = config.frontendEntry;
	- const baseUrl = config.webUrl;

doctype html

//
	-
	  _____ _                _
	 /  ___| |              | |
	 \ `--.| |__   __ _ _ __| | _____ _   _
	  `--. \ '_ \ / _` | '__| |/ / _ \ | | |
	 /\__/ / | | | (_| | |  |   <  __/ |_| |
	 \____/|_| |_|\__,_|_|  |_|\_\___|\__, |
	                                   __/ |
	                                  |___/

	 Thank you for using Sharkey!
	 If you are reading this message... how about joining the development?
	 https://activitypub.software/TransFem-org/Sharkey


html

	head
		meta(charset='utf-8')
		meta(name='application-name' content='Sharkey')
		meta(name='referrer' content='origin')
		meta(name='theme-color' content= themeColor || '#86b300')
		meta(name='theme-color-orig' content= themeColor || '#86b300')
		meta(property='og:site_name' content= instanceName || 'Sharkey')
		meta(property='instance_url' content= instanceUrl)
		meta(property='local_url' content= localUrl)
		meta(name='viewport' content='width=device-width, initial-scale=1')
		meta(name='format-detection' content='telephone=no,date=no,address=no,email=no,url=no')
		link(rel='icon' href= icon || '/favicon.ico')
		link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
		link(rel='manifest' href='/manifest.json')
		link(rel='search' type='application/opensearchdescription+xml' title=(title || "Sharkey") href=`${baseUrl}/opensearch.xml`)
		link(rel='prefetch' href=serverErrorImageUrl)
		link(rel='prefetch' href=infoImageUrl)
		link(rel='prefetch' href=notFoundImageUrl)
		link(rel='stylesheet' href=`/assets/phosphor-icons/bold/style.css?version=${version}`)
		link(rel='stylesheet' href=`/static-assets/fonts/sharkey-icons/style.css?version=${version}`)
		link(rel='modulepreload' href=`/vite/${entry.file}`)

		| !{customHead}

		if !config.frontendManifestExists
				script(type="module" src="/vite/@vite/client")

		if Array.isArray(entry.css)
			each href in entry.css
				link(rel='stylesheet' href=`/vite/${href}`)

		title
			block title
				= title || 'Sharkey'

		if noindex
			meta(name='robots' content='noindex')

		block desc
			meta(name='description' content= desc || '✨🌎✨ A interplanetary communication platform ✨🚀✨')

		block meta

		block og
			meta(property='og:title'       content= title || 'Sharkey')
			meta(property='og:description' content= desc || '✨🌎✨ A interplanetary communication platform ✨🚀✨')
			meta(property='og:image'       content= img)
			meta(property='twitter:card'   content='summary')

		style
			include ../style.css

		script.
			var VERSION = "#{version}";
			var CLIENT_ENTRY = "#{entry.file}";

		script(type='application/json' id='misskey_meta' data-generated-at=now)
			!= metaJson

		script(type='application/json' id='misskey_clientCtx' data-generated-at=now)
			!= clientCtx

		script
			include ../boot.js

	body
		noscript: p
			| JavaScriptを有効にしてください
			br
			| Please turn on your JavaScript
		div#splash
			img#splashIcon(src= icon || '/static-assets/splash.png')
			span#splashText
				block randomMOTD
					!= randomMOTD
			div#splashSpinner
				<svg class="spinner bg" viewBox="0 0 152 152" xmlns="http://www.w3.org/2000/svg">
					<g transform="matrix(1,0,0,1,12,12)">
						<circle cx="64" cy="64" r="64" style="fill:none;stroke:currentColor;stroke-width:24px;"/>
					</g>
				</svg>
				<svg class="spinner fg" viewBox="0 0 152 152" xmlns="http://www.w3.org/2000/svg">
					<g transform="matrix(1,0,0,1,12,12)">
						<path d="M128,64C128,28.654 99.346,0 64,0C99.346,0 128,28.654 128,64Z" style="fill:none;stroke:currentColor;stroke-width:24px;"/>
					</g>
				</svg>
		block content