create-caspian-app 1.8.0 → 1.8.2
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/dist/.github/copilot-instructions.md +271 -271
- package/dist/index.js +2 -2
- package/dist/public/js/pp-reactive-v2.min.js +1 -49
- package/dist/settings/check.py +520 -520
- package/dist/src/app/layout.py +41 -43
- package/package.json +1 -1
package/dist/src/app/layout.py
CHANGED
|
@@ -1,43 +1,41 @@
|
|
|
1
|
-
from casp.component_decorator import html
|
|
2
|
-
from casp.layout import Metadata
|
|
3
|
-
|
|
4
|
-
# Root defaults, inherited by every page unless overridden. A page title can be
|
|
5
|
-
# formatted for the whole app with `title_template="%s | My App"`.
|
|
6
|
-
metadata = Metadata(description="Powered by Caspian Framework")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
def layout():
|
|
10
|
-
return html(r"""
|
|
11
|
-
<!DOCTYPE html>
|
|
12
|
-
<html lang="{{ current_locale() }}">
|
|
13
|
-
|
|
14
|
-
<head>
|
|
15
|
-
<meta charset="UTF-8" />
|
|
16
|
-
<meta name="viewport"
|
|
17
|
-
content="width=device-width, initial-scale=1.0" />
|
|
18
|
-
<title>{{ metadata.title | default("Caspian App") }}</title>
|
|
19
|
-
{#
|
|
20
|
-
Description, canonical, robots, keywords, Open Graph, Twitter, and every
|
|
21
|
-
`Metadata(extra={...})` entry. Each tag carries `data-pp-meta` so SPA
|
|
22
|
-
navigation replaces the set for the next page.
|
|
23
|
-
#}
|
|
24
|
-
{{ metadata_tags(metadata | default({})) }}
|
|
25
|
-
<link rel="icon"
|
|
26
|
-
href="/favicon.ico"
|
|
27
|
-
type="image/x-icon"
|
|
28
|
-
sizes="16x16" />
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</
|
|
41
|
-
|
|
42
|
-
</html>
|
|
43
|
-
""")
|
|
1
|
+
from casp.component_decorator import html
|
|
2
|
+
from casp.layout import Metadata
|
|
3
|
+
|
|
4
|
+
# Root defaults, inherited by every page unless overridden. A page title can be
|
|
5
|
+
# formatted for the whole app with `title_template="%s | My App"`.
|
|
6
|
+
metadata = Metadata(description="Powered by Caspian Framework")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def layout():
|
|
10
|
+
return html(r"""
|
|
11
|
+
<!DOCTYPE html>
|
|
12
|
+
<html lang="{{ current_locale() }}">
|
|
13
|
+
|
|
14
|
+
<head>
|
|
15
|
+
<meta charset="UTF-8" />
|
|
16
|
+
<meta name="viewport"
|
|
17
|
+
content="width=device-width, initial-scale=1.0" />
|
|
18
|
+
<title>{{ metadata.title | default("Caspian App") }}</title>
|
|
19
|
+
{#
|
|
20
|
+
Description, canonical, robots, keywords, Open Graph, Twitter, and every
|
|
21
|
+
`Metadata(extra={...})` entry. Each tag carries `data-pp-meta` so SPA
|
|
22
|
+
navigation replaces the set for the next page.
|
|
23
|
+
#}
|
|
24
|
+
{{ metadata_tags(metadata | default({})) }}
|
|
25
|
+
<link rel="icon"
|
|
26
|
+
href="/favicon.ico"
|
|
27
|
+
type="image/x-icon"
|
|
28
|
+
sizes="16x16" />
|
|
29
|
+
</head>
|
|
30
|
+
|
|
31
|
+
<body style="
|
|
32
|
+
opacity: 0;
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
user-select: none;
|
|
35
|
+
transition: opacity 0.18s ease-out;
|
|
36
|
+
">
|
|
37
|
+
<slot />
|
|
38
|
+
</body>
|
|
39
|
+
|
|
40
|
+
</html>
|
|
41
|
+
""")
|