mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 10:02:18 +00:00
Merge branch 'main' into feature/birthday-calendar
This commit is contained in:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -17,6 +17,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
|
||||||
|
- run: rustup update
|
||||||
|
|
||||||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up build cache
|
- name: Set up build cache
|
||||||
|
|||||||
25
Cargo.lock
generated
25
Cargo.lock
generated
@@ -2974,7 +2974,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical"
|
name = "rustical"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"argon2",
|
"argon2",
|
||||||
@@ -3017,7 +3017,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_caldav"
|
name = "rustical_caldav"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-std",
|
"async-std",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -3057,7 +3057,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_carddav"
|
name = "rustical_carddav"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -3089,7 +3089,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_dav"
|
name = "rustical_dav"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -3114,7 +3114,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_dav_push"
|
name = "rustical_dav_push"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -3139,7 +3139,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_frontend"
|
name = "rustical_frontend"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"askama",
|
"askama",
|
||||||
"askama_web",
|
"askama_web",
|
||||||
@@ -3152,6 +3152,7 @@ dependencies = [
|
|||||||
"headers",
|
"headers",
|
||||||
"hex",
|
"hex",
|
||||||
"http",
|
"http",
|
||||||
|
"itertools 0.14.0",
|
||||||
"mime_guess",
|
"mime_guess",
|
||||||
"percent-encoding",
|
"percent-encoding",
|
||||||
"rand 0.9.2",
|
"rand 0.9.2",
|
||||||
@@ -3160,6 +3161,7 @@ dependencies = [
|
|||||||
"rustical_oidc",
|
"rustical_oidc",
|
||||||
"rustical_store",
|
"rustical_store",
|
||||||
"serde",
|
"serde",
|
||||||
|
"serde_json",
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
"tokio",
|
"tokio",
|
||||||
"tower",
|
"tower",
|
||||||
@@ -3168,11 +3170,12 @@ dependencies = [
|
|||||||
"tracing",
|
"tracing",
|
||||||
"url",
|
"url",
|
||||||
"uuid",
|
"uuid",
|
||||||
|
"vtimezones-rs",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_ical"
|
name = "rustical_ical"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"axum",
|
"axum",
|
||||||
"chrono",
|
"chrono",
|
||||||
@@ -3189,7 +3192,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_oidc"
|
name = "rustical_oidc"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
@@ -3205,7 +3208,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_store"
|
name = "rustical_store"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
@@ -3237,7 +3240,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_store_sqlite"
|
name = "rustical_store_sqlite"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"chrono",
|
"chrono",
|
||||||
@@ -3259,7 +3262,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rustical_xml"
|
name = "rustical_xml"
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"quick-xml",
|
"quick-xml",
|
||||||
"thiserror 2.0.17",
|
"thiserror 2.0.17",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
members = ["crates/*"]
|
members = ["crates/*"]
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "A CalDAV server"
|
description = "A CalDAV server"
|
||||||
documentation = "https://lennart-k.github.io/rustical/"
|
documentation = "https://lennart-k.github.io/rustical/"
|
||||||
|
|||||||
@@ -39,3 +39,6 @@ headers.workspace = true
|
|||||||
tower-sessions.workspace = true
|
tower-sessions.workspace = true
|
||||||
percent-encoding.workspace = true
|
percent-encoding.workspace = true
|
||||||
tower-http = { workspace = true, optional = true }
|
tower-http = { workspace = true, optional = true }
|
||||||
|
vtimezones-rs.workspace = true
|
||||||
|
serde_json.workspace = true
|
||||||
|
itertools.workspace = true
|
||||||
|
|||||||
@@ -13,6 +13,6 @@
|
|||||||
"imports": {
|
"imports": {
|
||||||
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.5",
|
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.5",
|
||||||
"lit": "npm:lit@^3.3.1",
|
"lit": "npm:lit@^3.3.1",
|
||||||
"vite": "npm:vite@^7.1.7"
|
"vite": "npm:vite@^7.1.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
214
crates/frontend/js-components/deno.lock
generated
214
crates/frontend/js-components/deno.lock
generated
@@ -1,145 +1,145 @@
|
|||||||
{
|
{
|
||||||
"version": "5",
|
"version": "5",
|
||||||
"specifiers": {
|
"specifiers": {
|
||||||
"npm:@deno/vite-plugin@^1.0.5": "1.0.5_vite@7.1.7__picomatch@4.0.3",
|
"npm:@deno/vite-plugin@^1.0.5": "1.0.5_vite@7.1.12__picomatch@4.0.3",
|
||||||
"npm:lit@^3.3.1": "3.3.1",
|
"npm:lit@^3.3.1": "3.3.1",
|
||||||
"npm:vite@*": "7.1.7_picomatch@4.0.3",
|
"npm:vite@*": "7.1.12_picomatch@4.0.3",
|
||||||
"npm:vite@^7.1.7": "7.1.7_picomatch@4.0.3"
|
"npm:vite@^7.1.12": "7.1.12_picomatch@4.0.3"
|
||||||
},
|
},
|
||||||
"npm": {
|
"npm": {
|
||||||
"@deno/vite-plugin@1.0.5_vite@7.1.7__picomatch@4.0.3": {
|
"@deno/vite-plugin@1.0.5_vite@7.1.12__picomatch@4.0.3": {
|
||||||
"integrity": "sha512-tLja5n4dyMhcze1NzvSs2iiriBymfBlDCZIrjMTxb9O2ru0gvmV6mn5oBD2teNw5Sd92cj3YJzKwsAs8tMJXlg==",
|
"integrity": "sha512-tLja5n4dyMhcze1NzvSs2iiriBymfBlDCZIrjMTxb9O2ru0gvmV6mn5oBD2teNw5Sd92cj3YJzKwsAs8tMJXlg==",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"vite"
|
"vite"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"@esbuild/aix-ppc64@0.25.10": {
|
"@esbuild/aix-ppc64@0.25.12": {
|
||||||
"integrity": "sha512-0NFWnA+7l41irNuaSVlLfgNT12caWJVLzp5eAVhZ0z1qpxbockccEt3s+149rE64VUI3Ml2zt8Nv5JVc4QXTsw==",
|
"integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
|
||||||
"os": ["aix"],
|
"os": ["aix"],
|
||||||
"cpu": ["ppc64"]
|
"cpu": ["ppc64"]
|
||||||
},
|
},
|
||||||
"@esbuild/android-arm64@0.25.10": {
|
"@esbuild/android-arm64@0.25.12": {
|
||||||
"integrity": "sha512-LSQa7eDahypv/VO6WKohZGPSJDq5OVOo3UoFR1E4t4Gj1W7zEQMUhI+lo81H+DtB+kP+tDgBp+M4oNCwp6kffg==",
|
"integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
|
||||||
"os": ["android"],
|
"os": ["android"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/android-arm@0.25.10": {
|
"@esbuild/android-arm@0.25.12": {
|
||||||
"integrity": "sha512-dQAxF1dW1C3zpeCDc5KqIYuZ1tgAdRXNoZP7vkBIRtKZPYe2xVr/d3SkirklCHudW1B45tGiUlz2pUWDfbDD4w==",
|
"integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
|
||||||
"os": ["android"],
|
"os": ["android"],
|
||||||
"cpu": ["arm"]
|
"cpu": ["arm"]
|
||||||
},
|
},
|
||||||
"@esbuild/android-x64@0.25.10": {
|
"@esbuild/android-x64@0.25.12": {
|
||||||
"integrity": "sha512-MiC9CWdPrfhibcXwr39p9ha1x0lZJ9KaVfvzA0Wxwz9ETX4v5CHfF09bx935nHlhi+MxhA63dKRRQLiVgSUtEg==",
|
"integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
|
||||||
"os": ["android"],
|
"os": ["android"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/darwin-arm64@0.25.10": {
|
"@esbuild/darwin-arm64@0.25.12": {
|
||||||
"integrity": "sha512-JC74bdXcQEpW9KkV326WpZZjLguSZ3DfS8wrrvPMHgQOIEIG/sPXEN/V8IssoJhbefLRcRqw6RQH2NnpdprtMA==",
|
"integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
|
||||||
"os": ["darwin"],
|
"os": ["darwin"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/darwin-x64@0.25.10": {
|
"@esbuild/darwin-x64@0.25.12": {
|
||||||
"integrity": "sha512-tguWg1olF6DGqzws97pKZ8G2L7Ig1vjDmGTwcTuYHbuU6TTjJe5FXbgs5C1BBzHbJ2bo1m3WkQDbWO2PvamRcg==",
|
"integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
|
||||||
"os": ["darwin"],
|
"os": ["darwin"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/freebsd-arm64@0.25.10": {
|
"@esbuild/freebsd-arm64@0.25.12": {
|
||||||
"integrity": "sha512-3ZioSQSg1HT2N05YxeJWYR+Libe3bREVSdWhEEgExWaDtyFbbXWb49QgPvFH8u03vUPX10JhJPcz7s9t9+boWg==",
|
"integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
|
||||||
"os": ["freebsd"],
|
"os": ["freebsd"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/freebsd-x64@0.25.10": {
|
"@esbuild/freebsd-x64@0.25.12": {
|
||||||
"integrity": "sha512-LLgJfHJk014Aa4anGDbh8bmI5Lk+QidDmGzuC2D+vP7mv/GeSN+H39zOf7pN5N8p059FcOfs2bVlrRr4SK9WxA==",
|
"integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
|
||||||
"os": ["freebsd"],
|
"os": ["freebsd"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-arm64@0.25.10": {
|
"@esbuild/linux-arm64@0.25.12": {
|
||||||
"integrity": "sha512-5luJWN6YKBsawd5f9i4+c+geYiVEw20FVW5x0v1kEMWNq8UctFjDiMATBxLvmmHA4bf7F6hTRaJgtghFr9iziQ==",
|
"integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-arm@0.25.10": {
|
"@esbuild/linux-arm@0.25.12": {
|
||||||
"integrity": "sha512-oR31GtBTFYCqEBALI9r6WxoU/ZofZl962pouZRTEYECvNF/dtXKku8YXcJkhgK/beU+zedXfIzHijSRapJY3vg==",
|
"integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm"]
|
"cpu": ["arm"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-ia32@0.25.10": {
|
"@esbuild/linux-ia32@0.25.12": {
|
||||||
"integrity": "sha512-NrSCx2Kim3EnnWgS4Txn0QGt0Xipoumb6z6sUtl5bOEZIVKhzfyp/Lyw4C1DIYvzeW/5mWYPBFJU3a/8Yr75DQ==",
|
"integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["ia32"]
|
"cpu": ["ia32"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-loong64@0.25.10": {
|
"@esbuild/linux-loong64@0.25.12": {
|
||||||
"integrity": "sha512-xoSphrd4AZda8+rUDDfD9J6FUMjrkTz8itpTITM4/xgerAZZcFW7Dv+sun7333IfKxGG8gAq+3NbfEMJfiY+Eg==",
|
"integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["loong64"]
|
"cpu": ["loong64"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-mips64el@0.25.10": {
|
"@esbuild/linux-mips64el@0.25.12": {
|
||||||
"integrity": "sha512-ab6eiuCwoMmYDyTnyptoKkVS3k8fy/1Uvq7Dj5czXI6DF2GqD2ToInBI0SHOp5/X1BdZ26RKc5+qjQNGRBelRA==",
|
"integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["mips64el"]
|
"cpu": ["mips64el"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-ppc64@0.25.10": {
|
"@esbuild/linux-ppc64@0.25.12": {
|
||||||
"integrity": "sha512-NLinzzOgZQsGpsTkEbdJTCanwA5/wozN9dSgEl12haXJBzMTpssebuXR42bthOF3z7zXFWH1AmvWunUCkBE4EA==",
|
"integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["ppc64"]
|
"cpu": ["ppc64"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-riscv64@0.25.10": {
|
"@esbuild/linux-riscv64@0.25.12": {
|
||||||
"integrity": "sha512-FE557XdZDrtX8NMIeA8LBJX3dC2M8VGXwfrQWU7LB5SLOajfJIxmSdyL/gU1m64Zs9CBKvm4UAuBp5aJ8OgnrA==",
|
"integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["riscv64"]
|
"cpu": ["riscv64"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-s390x@0.25.10": {
|
"@esbuild/linux-s390x@0.25.12": {
|
||||||
"integrity": "sha512-3BBSbgzuB9ajLoVZk0mGu+EHlBwkusRmeNYdqmznmMc9zGASFjSsxgkNsqmXugpPk00gJ0JNKh/97nxmjctdew==",
|
"integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["s390x"]
|
"cpu": ["s390x"]
|
||||||
},
|
},
|
||||||
"@esbuild/linux-x64@0.25.10": {
|
"@esbuild/linux-x64@0.25.12": {
|
||||||
"integrity": "sha512-QSX81KhFoZGwenVyPoberggdW1nrQZSvfVDAIUXr3WqLRZGZqWk/P4T8p2SP+de2Sr5HPcvjhcJzEiulKgnxtA==",
|
"integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/netbsd-arm64@0.25.10": {
|
"@esbuild/netbsd-arm64@0.25.12": {
|
||||||
"integrity": "sha512-AKQM3gfYfSW8XRk8DdMCzaLUFB15dTrZfnX8WXQoOUpUBQ+NaAFCP1kPS/ykbbGYz7rxn0WS48/81l9hFl3u4A==",
|
"integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
|
||||||
"os": ["netbsd"],
|
"os": ["netbsd"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/netbsd-x64@0.25.10": {
|
"@esbuild/netbsd-x64@0.25.12": {
|
||||||
"integrity": "sha512-7RTytDPGU6fek/hWuN9qQpeGPBZFfB4zZgcz2VK2Z5VpdUxEI8JKYsg3JfO0n/Z1E/6l05n0unDCNc4HnhQGig==",
|
"integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
|
||||||
"os": ["netbsd"],
|
"os": ["netbsd"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/openbsd-arm64@0.25.10": {
|
"@esbuild/openbsd-arm64@0.25.12": {
|
||||||
"integrity": "sha512-5Se0VM9Wtq797YFn+dLimf2Zx6McttsH2olUBsDml+lm0GOCRVebRWUvDtkY4BWYv/3NgzS8b/UM3jQNh5hYyw==",
|
"integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
|
||||||
"os": ["openbsd"],
|
"os": ["openbsd"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/openbsd-x64@0.25.10": {
|
"@esbuild/openbsd-x64@0.25.12": {
|
||||||
"integrity": "sha512-XkA4frq1TLj4bEMB+2HnI0+4RnjbuGZfet2gs/LNs5Hc7D89ZQBHQ0gL2ND6Lzu1+QVkjp3x1gIcPKzRNP8bXw==",
|
"integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
|
||||||
"os": ["openbsd"],
|
"os": ["openbsd"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/openharmony-arm64@0.25.10": {
|
"@esbuild/openharmony-arm64@0.25.12": {
|
||||||
"integrity": "sha512-AVTSBhTX8Y/Fz6OmIVBip9tJzZEUcY8WLh7I59+upa5/GPhh2/aM6bvOMQySspnCCHvFi79kMtdJS1w0DXAeag==",
|
"integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
|
||||||
"os": ["openharmony"],
|
"os": ["openharmony"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/sunos-x64@0.25.10": {
|
"@esbuild/sunos-x64@0.25.12": {
|
||||||
"integrity": "sha512-fswk3XT0Uf2pGJmOpDB7yknqhVkJQkAQOcW/ccVOtfx05LkbWOaRAtn5SaqXypeKQra1QaEa841PgrSL9ubSPQ==",
|
"integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
|
||||||
"os": ["sunos"],
|
"os": ["sunos"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@esbuild/win32-arm64@0.25.10": {
|
"@esbuild/win32-arm64@0.25.12": {
|
||||||
"integrity": "sha512-ah+9b59KDTSfpaCg6VdJoOQvKjI33nTaQr4UluQwW7aEwZQsbMCfTmfEO4VyewOxx4RaDT/xCy9ra2GPWmO7Kw==",
|
"integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@esbuild/win32-ia32@0.25.10": {
|
"@esbuild/win32-ia32@0.25.12": {
|
||||||
"integrity": "sha512-QHPDbKkrGO8/cz9LKVnJU22HOi4pxZnZhhA2HYHez5Pz4JeffhDjf85E57Oyco163GnzNCVkZK0b/n4Y0UHcSw==",
|
"integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["ia32"]
|
"cpu": ["ia32"]
|
||||||
},
|
},
|
||||||
"@esbuild/win32-x64@0.25.10": {
|
"@esbuild/win32-x64@0.25.12": {
|
||||||
"integrity": "sha512-9KpxSVFCu0iK1owoez6aC/s/EdUQLDN3adTxGCqxMVhrPDj6bt5dbrHDXUuq+Bs2vATFBBrQS5vdQ/Ed2P+nbw==",
|
"integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
@@ -152,113 +152,113 @@
|
|||||||
"@lit-labs/ssr-dom-shim"
|
"@lit-labs/ssr-dom-shim"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-android-arm-eabi@4.52.2": {
|
"@rollup/rollup-android-arm-eabi@4.52.5": {
|
||||||
"integrity": "sha512-o3pcKzJgSGt4d74lSZ+OCnHwkKBeAbFDmbEm5gg70eA8VkyCuC/zV9TwBnmw6VjDlRdF4Pshfb+WE9E6XY1PoQ==",
|
"integrity": "sha512-8c1vW4ocv3UOMp9K+gToY5zL2XiiVw3k7f1ksf4yO1FlDFQ1C2u72iACFnSOceJFsWskc2WZNqeRhFRPzv+wtQ==",
|
||||||
"os": ["android"],
|
"os": ["android"],
|
||||||
"cpu": ["arm"]
|
"cpu": ["arm"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-android-arm64@4.52.2": {
|
"@rollup/rollup-android-arm64@4.52.5": {
|
||||||
"integrity": "sha512-cqFSWO5tX2vhC9hJTK8WAiPIm4Q8q/cU8j2HQA0L3E1uXvBYbOZMhE2oFL8n2pKB5sOCHY6bBuHaRwG7TkfJyw==",
|
"integrity": "sha512-mQGfsIEFcu21mvqkEKKu2dYmtuSZOBMmAl5CFlPGLY94Vlcm+zWApK7F/eocsNzp8tKmbeBP8yXyAbx0XHsFNA==",
|
||||||
"os": ["android"],
|
"os": ["android"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-darwin-arm64@4.52.2": {
|
"@rollup/rollup-darwin-arm64@4.52.5": {
|
||||||
"integrity": "sha512-vngduywkkv8Fkh3wIZf5nFPXzWsNsVu1kvtLETWxTFf/5opZmflgVSeLgdHR56RQh71xhPhWoOkEBvbehwTlVA==",
|
"integrity": "sha512-takF3CR71mCAGA+v794QUZ0b6ZSrgJkArC+gUiG6LB6TQty9T0Mqh3m2ImRBOxS2IeYBo4lKWIieSvnEk2OQWA==",
|
||||||
"os": ["darwin"],
|
"os": ["darwin"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-darwin-x64@4.52.2": {
|
"@rollup/rollup-darwin-x64@4.52.5": {
|
||||||
"integrity": "sha512-h11KikYrUCYTrDj6h939hhMNlqU2fo/X4NB0OZcys3fya49o1hmFaczAiJWVAFgrM1NCP6RrO7lQKeVYSKBPSQ==",
|
"integrity": "sha512-W901Pla8Ya95WpxDn//VF9K9u2JbocwV/v75TE0YIHNTbhqUTv9w4VuQ9MaWlNOkkEfFwkdNhXgcLqPSmHy0fA==",
|
||||||
"os": ["darwin"],
|
"os": ["darwin"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-freebsd-arm64@4.52.2": {
|
"@rollup/rollup-freebsd-arm64@4.52.5": {
|
||||||
"integrity": "sha512-/eg4CI61ZUkLXxMHyVlmlGrSQZ34xqWlZNW43IAU4RmdzWEx0mQJ2mN/Cx4IHLVZFL6UBGAh+/GXhgvGb+nVxw==",
|
"integrity": "sha512-QofO7i7JycsYOWxe0GFqhLmF6l1TqBswJMvICnRUjqCx8b47MTo46W8AoeQwiokAx3zVryVnxtBMcGcnX12LvA==",
|
||||||
"os": ["freebsd"],
|
"os": ["freebsd"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-freebsd-x64@4.52.2": {
|
"@rollup/rollup-freebsd-x64@4.52.5": {
|
||||||
"integrity": "sha512-QOWgFH5X9+p+S1NAfOqc0z8qEpJIoUHf7OWjNUGOeW18Mx22lAUOiA9b6r2/vpzLdfxi/f+VWsYjUOMCcYh0Ng==",
|
"integrity": "sha512-jr21b/99ew8ujZubPo9skbrItHEIE50WdV86cdSoRkKtmWa+DDr6fu2c/xyRT0F/WazZpam6kk7IHBerSL7LDQ==",
|
||||||
"os": ["freebsd"],
|
"os": ["freebsd"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-arm-gnueabihf@4.52.2": {
|
"@rollup/rollup-linux-arm-gnueabihf@4.52.5": {
|
||||||
"integrity": "sha512-kDWSPafToDd8LcBYd1t5jw7bD5Ojcu12S3uT372e5HKPzQt532vW+rGFFOaiR0opxePyUkHrwz8iWYEyH1IIQA==",
|
"integrity": "sha512-PsNAbcyv9CcecAUagQefwX8fQn9LQ4nZkpDboBOttmyffnInRy8R8dSg6hxxl2Re5QhHBf6FYIDhIj5v982ATQ==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm"]
|
"cpu": ["arm"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-arm-musleabihf@4.52.2": {
|
"@rollup/rollup-linux-arm-musleabihf@4.52.5": {
|
||||||
"integrity": "sha512-gKm7Mk9wCv6/rkzwCiUC4KnevYhlf8ztBrDRT9g/u//1fZLapSRc+eDZj2Eu2wpJ+0RzUKgtNijnVIB4ZxyL+w==",
|
"integrity": "sha512-Fw4tysRutyQc/wwkmcyoqFtJhh0u31K+Q6jYjeicsGJJ7bbEq8LwPWV/w0cnzOqR2m694/Af6hpFayLJZkG2VQ==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm"]
|
"cpu": ["arm"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-arm64-gnu@4.52.2": {
|
"@rollup/rollup-linux-arm64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-66lA8vnj5mB/rtDNwPgrrKUOtCLVQypkyDa2gMfOefXK6rcZAxKLO9Fy3GkW8VkPnENv9hBkNOFfGLf6rNKGUg==",
|
"integrity": "sha512-a+3wVnAYdQClOTlyapKmyI6BLPAFYs0JM8HRpgYZQO02rMR09ZcV9LbQB+NL6sljzG38869YqThrRnfPMCDtZg==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-arm64-musl@4.52.2": {
|
"@rollup/rollup-linux-arm64-musl@4.52.5": {
|
||||||
"integrity": "sha512-s+OPucLNdJHvuZHuIz2WwncJ+SfWHFEmlC5nKMUgAelUeBUnlB4wt7rXWiyG4Zn07uY2Dd+SGyVa9oyLkVGOjA==",
|
"integrity": "sha512-AvttBOMwO9Pcuuf7m9PkC1PUIKsfaAJ4AYhy944qeTJgQOqJYJ9oVl2nYgY7Rk0mkbsuOpCAYSs6wLYB2Xiw0Q==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-loong64-gnu@4.52.2": {
|
"@rollup/rollup-linux-loong64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-8wTRM3+gVMDLLDdaT6tKmOE3lJyRy9NpJUS/ZRWmLCmOPIJhVyXwjBo+XbrrwtV33Em1/eCTd5TuGJm4+DmYjw==",
|
"integrity": "sha512-DkDk8pmXQV2wVrF6oq5tONK6UHLz/XcEVow4JTTerdeV1uqPeHxwcg7aFsfnSm9L+OO8WJsWotKM2JJPMWrQtA==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["loong64"]
|
"cpu": ["loong64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-ppc64-gnu@4.52.2": {
|
"@rollup/rollup-linux-ppc64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-6yqEfgJ1anIeuP2P/zhtfBlDpXUb80t8DpbYwXQ3bQd95JMvUaqiX+fKqYqUwZXqdJDd8xdilNtsHM2N0cFm6A==",
|
"integrity": "sha512-W/b9ZN/U9+hPQVvlGwjzi+Wy4xdoH2I8EjaCkMvzpI7wJUs8sWJ03Rq96jRnHkSrcHTpQe8h5Tg3ZzUPGauvAw==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["ppc64"]
|
"cpu": ["ppc64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-riscv64-gnu@4.52.2": {
|
"@rollup/rollup-linux-riscv64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-sshYUiYVSEI2B6dp4jMncwxbrUqRdNApF2c3bhtLAU0qA8Lrri0p0NauOsTWh3yCCCDyBOjESHMExonp7Nzc0w==",
|
"integrity": "sha512-sjQLr9BW7R/ZiXnQiWPkErNfLMkkWIoCz7YMn27HldKsADEKa5WYdobaa1hmN6slu9oWQbB6/jFpJ+P2IkVrmw==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["riscv64"]
|
"cpu": ["riscv64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-riscv64-musl@4.52.2": {
|
"@rollup/rollup-linux-riscv64-musl@4.52.5": {
|
||||||
"integrity": "sha512-duBLgd+3pqC4MMwBrKkFxaZerUxZcYApQVC5SdbF5/e/589GwVvlRUnyqMFbM8iUSb1BaoX/3fRL7hB9m2Pj8Q==",
|
"integrity": "sha512-hq3jU/kGyjXWTvAh2awn8oHroCbrPm8JqM7RUpKjalIRWWXE01CQOf/tUNWNHjmbMHg/hmNCwc/Pz3k1T/j/Lg==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["riscv64"]
|
"cpu": ["riscv64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-s390x-gnu@4.52.2": {
|
"@rollup/rollup-linux-s390x-gnu@4.52.5": {
|
||||||
"integrity": "sha512-tzhYJJidDUVGMgVyE+PmxENPHlvvqm1KILjjZhB8/xHYqAGeizh3GBGf9u6WdJpZrz1aCpIIHG0LgJgH9rVjHQ==",
|
"integrity": "sha512-gn8kHOrku8D4NGHMK1Y7NA7INQTRdVOntt1OCYypZPRt6skGbddska44K8iocdpxHTMMNui5oH4elPH4QOLrFQ==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["s390x"]
|
"cpu": ["s390x"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-x64-gnu@4.52.2": {
|
"@rollup/rollup-linux-x64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-opH8GSUuVcCSSyHHcl5hELrmnk4waZoVpgn/4FDao9iyE4WpQhyWJ5ryl5M3ocp4qkRuHfyXnGqg8M9oKCEKRA==",
|
"integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-linux-x64-musl@4.52.2": {
|
"@rollup/rollup-linux-x64-musl@4.52.5": {
|
||||||
"integrity": "sha512-LSeBHnGli1pPKVJ79ZVJgeZWWZXkEe/5o8kcn23M8eMKCUANejchJbF/JqzM4RRjOJfNRhKJk8FuqL1GKjF5oQ==",
|
"integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==",
|
||||||
"os": ["linux"],
|
"os": ["linux"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-openharmony-arm64@4.52.2": {
|
"@rollup/rollup-openharmony-arm64@4.52.5": {
|
||||||
"integrity": "sha512-uPj7MQ6/s+/GOpolavm6BPo+6CbhbKYyZHUDvZ/SmJM7pfDBgdGisFX3bY/CBDMg2ZO4utfhlApkSfZ92yXw7Q==",
|
"integrity": "sha512-QoFqB6+/9Rly/RiPjaomPLmR/13cgkIGfA40LHly9zcH1S0bN2HVFYk3a1eAyHQyjs3ZJYlXvIGtcCs5tko9Cw==",
|
||||||
"os": ["openharmony"],
|
"os": ["openharmony"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-win32-arm64-msvc@4.52.2": {
|
"@rollup/rollup-win32-arm64-msvc@4.52.5": {
|
||||||
"integrity": "sha512-Z9MUCrSgIaUeeHAiNkm3cQyst2UhzjPraR3gYYfOjAuZI7tcFRTOD+4cHLPoS/3qinchth+V56vtqz1Tv+6KPA==",
|
"integrity": "sha512-w0cDWVR6MlTstla1cIfOGyl8+qb93FlAVutcor14Gf5Md5ap5ySfQ7R9S/NjNaMLSFdUnKGEasmVnu3lCMqB7w==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["arm64"]
|
"cpu": ["arm64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-win32-ia32-msvc@4.52.2": {
|
"@rollup/rollup-win32-ia32-msvc@4.52.5": {
|
||||||
"integrity": "sha512-+GnYBmpjldD3XQd+HMejo+0gJGwYIOfFeoBQv32xF/RUIvccUz20/V6Otdv+57NE70D5pa8W/jVGDoGq0oON4A==",
|
"integrity": "sha512-Aufdpzp7DpOTULJCuvzqcItSGDH73pF3ko/f+ckJhxQyHtp67rHw3HMNxoIdDMUITJESNE6a8uh4Lo4SLouOUg==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["ia32"]
|
"cpu": ["ia32"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-win32-x64-gnu@4.52.2": {
|
"@rollup/rollup-win32-x64-gnu@4.52.5": {
|
||||||
"integrity": "sha512-ApXFKluSB6kDQkAqZOKXBjiaqdF1BlKi+/eqnYe9Ee7U2K3pUDKsIyr8EYm/QDHTJIM+4X+lI0gJc3TTRhd+dA==",
|
"integrity": "sha512-UGBUGPFp1vkj6p8wCRraqNhqwX/4kNQPS57BCFc8wYh0g94iVIW33wJtQAx3G7vrjjNtRaxiMUylM0ktp/TRSQ==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
"@rollup/rollup-win32-x64-msvc@4.52.2": {
|
"@rollup/rollup-win32-x64-msvc@4.52.5": {
|
||||||
"integrity": "sha512-ARz+Bs8kY6FtitYM96PqPEVvPXqEZmPZsSkXvyX19YzDqkCaIlhCieLLMI5hxO9SRZ2XtCtm8wxhy0iJ2jxNfw==",
|
"integrity": "sha512-TAcgQh2sSkykPRWLrdyy2AiceMckNf5loITqXxFI5VuQjS5tSuw3WlwdN8qv8vzjLAUTvYaH/mVjSFpbkFbpTg==",
|
||||||
"os": ["win32"],
|
"os": ["win32"],
|
||||||
"cpu": ["x64"]
|
"cpu": ["x64"]
|
||||||
},
|
},
|
||||||
@@ -268,8 +268,8 @@
|
|||||||
"@types/trusted-types@2.0.7": {
|
"@types/trusted-types@2.0.7": {
|
||||||
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="
|
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw=="
|
||||||
},
|
},
|
||||||
"esbuild@0.25.10": {
|
"esbuild@0.25.12": {
|
||||||
"integrity": "sha512-9RiGKvCwaqxO2owP61uQ4BgNborAQskMR6QusfWzQqv7AZOg5oGehdY2pRJMTKuwxd1IDBP4rSbI5lHzU7SMsQ==",
|
"integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
|
||||||
"optionalDependencies": [
|
"optionalDependencies": [
|
||||||
"@esbuild/aix-ppc64",
|
"@esbuild/aix-ppc64",
|
||||||
"@esbuild/android-arm",
|
"@esbuild/android-arm",
|
||||||
@@ -355,8 +355,8 @@
|
|||||||
"source-map-js"
|
"source-map-js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"rollup@4.52.2": {
|
"rollup@4.52.5": {
|
||||||
"integrity": "sha512-I25/2QgoROE1vYV+NQ1En9T9UFB9Cmfm2CJ83zZOlaDpvz29wGQSZXWKw7MiNXau7wYgB/T9fVIdIuEQ+KbiiA==",
|
"integrity": "sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"@types/estree"
|
"@types/estree"
|
||||||
],
|
],
|
||||||
@@ -397,8 +397,8 @@
|
|||||||
"picomatch"
|
"picomatch"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"vite@7.1.7_picomatch@4.0.3": {
|
"vite@7.1.12_picomatch@4.0.3": {
|
||||||
"integrity": "sha512-VbA8ScMvAISJNJVbRDTJdCwqQoAareR/wutevKanhR2/1EkoXVZVkkORaYm/tNVCjP/UDTKtcw3bAkwOUdedmA==",
|
"integrity": "sha512-ZWyE8YXEXqJrrSLvYgrRP7p62OziLW7xI5HYGWFzOvupfAlrLvURSzv/FyGyy0eidogEM3ujU+kUG1zuHgb6Ug==",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"esbuild",
|
"esbuild",
|
||||||
"fdir",
|
"fdir",
|
||||||
@@ -417,7 +417,7 @@
|
|||||||
"dependencies": [
|
"dependencies": [
|
||||||
"npm:@deno/vite-plugin@^1.0.5",
|
"npm:@deno/vite-plugin@^1.0.5",
|
||||||
"npm:lit@^3.3.1",
|
"npm:lit@^3.3.1",
|
||||||
"npm:vite@^7.1.7"
|
"npm:vite@^7.1.12"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,11 @@ import { escapeXml } from ".";
|
|||||||
export class CreateCalendarForm extends LitElement {
|
export class CreateCalendarForm extends LitElement {
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
|
this.fetchTimezones()
|
||||||
|
}
|
||||||
|
|
||||||
|
async fetchTimezones() {
|
||||||
|
this.timezones = await getTimezones()
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override createRenderRoot() {
|
protected override createRenderRoot() {
|
||||||
@@ -36,6 +41,8 @@ export class CreateCalendarForm extends LitElement {
|
|||||||
|
|
||||||
dialog: Ref<HTMLDialogElement> = createRef()
|
dialog: Ref<HTMLDialogElement> = createRef()
|
||||||
form: Ref<HTMLFormElement> = createRef()
|
form: Ref<HTMLFormElement> = createRef()
|
||||||
|
@property()
|
||||||
|
timezones: Array<String> = []
|
||||||
|
|
||||||
override render() {
|
override render() {
|
||||||
return html`
|
return html`
|
||||||
@@ -65,7 +72,12 @@ export class CreateCalendarForm extends LitElement {
|
|||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
Timezone (optional)
|
Timezone (optional)
|
||||||
<input type="text" name="timezone" .value=${this.timezone_id} @change=${e => this.timezone_id = e.target.value} />
|
<select name="timezone" .value=${this.timezone_id} @change=${e => this.timezone_id = e.target.value}>
|
||||||
|
<option value="">No timezone</option>
|
||||||
|
${this.timezones.map(timezone => html`
|
||||||
|
<option value=${timezone} ?selected=${timezone === this.timezone_id}>${timezone}</option>
|
||||||
|
`)}
|
||||||
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
@@ -2,11 +2,17 @@ import { html, LitElement } from "lit";
|
|||||||
import { customElement, property } from "lit/decorators.js";
|
import { customElement, property } from "lit/decorators.js";
|
||||||
import { Ref, createRef, ref } from 'lit/directives/ref.js';
|
import { Ref, createRef, ref } from 'lit/directives/ref.js';
|
||||||
import { escapeXml } from ".";
|
import { escapeXml } from ".";
|
||||||
|
import { getTimezones } from "./timezones.ts";
|
||||||
|
|
||||||
@customElement("edit-calendar-form")
|
@customElement("edit-calendar-form")
|
||||||
export class EditCalendarForm extends LitElement {
|
export class EditCalendarForm extends LitElement {
|
||||||
constructor() {
|
constructor() {
|
||||||
super()
|
super()
|
||||||
|
this.fetchTimezones()
|
||||||
|
}
|
||||||
|
|
||||||
|
async fetchTimezones() {
|
||||||
|
this.timezones = await getTimezones()
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override createRenderRoot() {
|
protected override createRenderRoot() {
|
||||||
@@ -36,7 +42,8 @@ export class EditCalendarForm extends LitElement {
|
|||||||
|
|
||||||
dialog: Ref<HTMLDialogElement> = createRef()
|
dialog: Ref<HTMLDialogElement> = createRef()
|
||||||
form: Ref<HTMLFormElement> = createRef()
|
form: Ref<HTMLFormElement> = createRef()
|
||||||
|
@property()
|
||||||
|
timezones: Array<String> = []
|
||||||
|
|
||||||
override render() {
|
override render() {
|
||||||
return html`
|
return html`
|
||||||
@@ -51,7 +58,12 @@ export class EditCalendarForm extends LitElement {
|
|||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
Timezone (optional)
|
Timezone (optional)
|
||||||
<input type="text" name="timezone" .value=${this.timezone_id} @change=${e => this.timezone_id = e.target.value} />
|
<select name="timezone" .value=${this.timezone_id} @change=${e => this.timezone_id = e.target.value}>
|
||||||
|
<option value="">No timezone</option>
|
||||||
|
${this.timezones.map(timezone => html`
|
||||||
|
<option value=${timezone} ?selected=${timezone === this.timezone_id}>${timezone}</option>
|
||||||
|
`)}
|
||||||
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
12
crates/frontend/js-components/lib/timezones.ts
Normal file
12
crates/frontend/js-components/lib/timezones.ts
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
let timezonesPromise = null
|
||||||
|
export async function getTimezones() {
|
||||||
|
timezonesPromise ||= new Promise(async (resolve, reject) => {
|
||||||
|
try {
|
||||||
|
let response = await fetch('/frontend/_timezones.json')
|
||||||
|
resolve(await response.json())
|
||||||
|
} catch (e) {
|
||||||
|
reject(e)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return await timezonesPromise
|
||||||
|
}
|
||||||
@@ -27,6 +27,11 @@ let CreateCalendarForm = class extends i {
|
|||||||
this.components = /* @__PURE__ */ new Set();
|
this.components = /* @__PURE__ */ new Set();
|
||||||
this.dialog = e();
|
this.dialog = e();
|
||||||
this.form = e();
|
this.form = e();
|
||||||
|
this.timezones = [];
|
||||||
|
this.fetchTimezones();
|
||||||
|
}
|
||||||
|
async fetchTimezones() {
|
||||||
|
this.timezones = await getTimezones();
|
||||||
}
|
}
|
||||||
createRenderRoot() {
|
createRenderRoot() {
|
||||||
return this;
|
return this;
|
||||||
@@ -59,7 +64,12 @@ let CreateCalendarForm = class extends i {
|
|||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
Timezone (optional)
|
Timezone (optional)
|
||||||
<input type="text" name="timezone" .value=${this.timezone_id} @change=${(e2) => this.timezone_id = e2.target.value} />
|
<select name="timezone" .value=${this.timezone_id} @change=${(e2) => this.timezone_id = e2.target.value}>
|
||||||
|
<option value="">No timezone</option>
|
||||||
|
${this.timezones.map((timezone) => x`
|
||||||
|
<option value=${timezone} ?selected=${timezone === this.timezone_id}>${timezone}</option>
|
||||||
|
`)}
|
||||||
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
@@ -179,6 +189,9 @@ __decorateClass([
|
|||||||
__decorateClass([
|
__decorateClass([
|
||||||
n$1()
|
n$1()
|
||||||
], CreateCalendarForm.prototype, "components", 2);
|
], CreateCalendarForm.prototype, "components", 2);
|
||||||
|
__decorateClass([
|
||||||
|
n$1()
|
||||||
|
], CreateCalendarForm.prototype, "timezones", 2);
|
||||||
CreateCalendarForm = __decorateClass([
|
CreateCalendarForm = __decorateClass([
|
||||||
t("create-calendar-form")
|
t("create-calendar-form")
|
||||||
], CreateCalendarForm);
|
], CreateCalendarForm);
|
||||||
|
|||||||
@@ -2,6 +2,18 @@ import { i, x } from "./lit-DkXrt_Iv.mjs";
|
|||||||
import { n as n$1, t } from "./property-B8WoKf1Y.mjs";
|
import { n as n$1, t } from "./property-B8WoKf1Y.mjs";
|
||||||
import { e, n } from "./ref-BwbQvJBB.mjs";
|
import { e, n } from "./ref-BwbQvJBB.mjs";
|
||||||
import { e as escapeXml } from "./index-_IB1wMbZ.mjs";
|
import { e as escapeXml } from "./index-_IB1wMbZ.mjs";
|
||||||
|
let timezonesPromise = null;
|
||||||
|
async function getTimezones() {
|
||||||
|
timezonesPromise ||= new Promise(async (resolve, reject) => {
|
||||||
|
try {
|
||||||
|
let response = await fetch("/frontend/_timezones.json");
|
||||||
|
resolve(await response.json());
|
||||||
|
} catch (e2) {
|
||||||
|
reject(e2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return await timezonesPromise;
|
||||||
|
}
|
||||||
var __defProp = Object.defineProperty;
|
var __defProp = Object.defineProperty;
|
||||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
var __decorateClass = (decorators, target, key, kind) => {
|
var __decorateClass = (decorators, target, key, kind) => {
|
||||||
@@ -22,6 +34,11 @@ let EditCalendarForm = class extends i {
|
|||||||
this.components = /* @__PURE__ */ new Set();
|
this.components = /* @__PURE__ */ new Set();
|
||||||
this.dialog = e();
|
this.dialog = e();
|
||||||
this.form = e();
|
this.form = e();
|
||||||
|
this.timezones = [];
|
||||||
|
this.fetchTimezones();
|
||||||
|
}
|
||||||
|
async fetchTimezones() {
|
||||||
|
this.timezones = await getTimezones();
|
||||||
}
|
}
|
||||||
createRenderRoot() {
|
createRenderRoot() {
|
||||||
return this;
|
return this;
|
||||||
@@ -39,7 +56,12 @@ let EditCalendarForm = class extends i {
|
|||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
Timezone (optional)
|
Timezone (optional)
|
||||||
<input type="text" name="timezone" .value=${this.timezone_id} @change=${(e2) => this.timezone_id = e2.target.value} />
|
<select name="timezone" .value=${this.timezone_id} @change=${(e2) => this.timezone_id = e2.target.value}>
|
||||||
|
<option value="">No timezone</option>
|
||||||
|
${this.timezones.map((timezone) => x`
|
||||||
|
<option value=${timezone} ?selected=${timezone === this.timezone_id}>${timezone}</option>
|
||||||
|
`)}
|
||||||
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<br>
|
<br>
|
||||||
<label>
|
<label>
|
||||||
@@ -150,6 +172,9 @@ __decorateClass([
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
], EditCalendarForm.prototype, "components", 2);
|
], EditCalendarForm.prototype, "components", 2);
|
||||||
|
__decorateClass([
|
||||||
|
n$1()
|
||||||
|
], EditCalendarForm.prototype, "timezones", 2);
|
||||||
EditCalendarForm = __decorateClass([
|
EditCalendarForm = __decorateClass([
|
||||||
t("edit-calendar-form")
|
t("edit-calendar-form")
|
||||||
], EditCalendarForm);
|
], EditCalendarForm);
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -79,9 +79,6 @@ header {
|
|||||||
nav {
|
nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
border-radius: 12px;
|
|
||||||
background: color-mix(in srgb, var(--background-darker), var(--dilute-color) 5%);
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
margin: 4px 8px;
|
margin: 4px 8px;
|
||||||
@@ -259,19 +256,6 @@ ul.collection-list {
|
|||||||
margin: 8px initial;
|
margin: 8px initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comps {
|
|
||||||
display: inline;
|
|
||||||
|
|
||||||
span {
|
|
||||||
margin: 0 2px;
|
|
||||||
background: var(--primary-color);
|
|
||||||
color: var(--text-on-primary-color);
|
|
||||||
font-size: .8em;
|
|
||||||
padding: 3px 8px;
|
|
||||||
border-radius: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
.description {
|
||||||
grid-area: description;
|
grid-area: description;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -363,3 +347,16 @@ svg.icon {
|
|||||||
color: var(--text-on-background-color);
|
color: var(--text-on-background-color);
|
||||||
stroke: var(--text-on-background-color);
|
stroke: var(--text-on-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.component-chips {
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
span.chip {
|
||||||
|
margin: 0 2px;
|
||||||
|
background: var(--primary-color);
|
||||||
|
color: var(--text-on-primary-color);
|
||||||
|
font-size: .8em;
|
||||||
|
padding: 3px 8px;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
<span class="title">
|
<span class="title">
|
||||||
{%- if calendar.principal != user.id -%}{{ calendar.principal }}/{%- endif -%}
|
{%- if calendar.principal != user.id -%}{{ calendar.principal }}/{%- endif -%}
|
||||||
{{ calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) }}
|
{{ calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) }}
|
||||||
<div class="comps">
|
<div class="component-chips">
|
||||||
{% for comp in calendar.components %}
|
{% for comp in calendar.components %}
|
||||||
<span>{{ comp }}</span>
|
<span class="chip">{{ comp }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
@@ -56,9 +56,9 @@
|
|||||||
<span class="title">
|
<span class="title">
|
||||||
{%- if calendar.principal != user.id -%}{{ calendar.principal }}/{%- endif -%}
|
{%- if calendar.principal != user.id -%}{{ calendar.principal }}/{%- endif -%}
|
||||||
{{ calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) }}
|
{{ calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) }}
|
||||||
<div class="comps">
|
<div class="component-chips">
|
||||||
{% for comp in calendar.components %}
|
{% for comp in calendar.components %}
|
||||||
<span>{{ comp }}</span>
|
<span class="chip">{{ comp }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
@@ -83,4 +83,3 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<create-calendar-form user="{{ user.id }}"></create-calendar-form>
|
<create-calendar-form user="{{ user.id }}"></create-calendar-form>
|
||||||
<import-calendar-form user="{{ user.id }}"></import-calendar-form>
|
<import-calendar-form user="{{ user.id }}"></import-calendar-form>
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,11 @@
|
|||||||
<header>
|
<header>
|
||||||
<a class="logo" href="/frontend/user">RustiCal</a>
|
<a class="logo" href="/frontend/user">RustiCal</a>
|
||||||
{% block header_center %}{% endblock %}
|
{% block header_center %}{% endblock %}
|
||||||
<form method="POST" action="/frontend/logout" class="logout_form">
|
{% if self.get_user().is_some() %}
|
||||||
<button type="submit">Log out</button>
|
<form method="POST" action="/frontend/logout" class="logout_form">
|
||||||
</form>
|
<button type="submit">Log out</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
{% if let Some(description) = addressbook.description %}<p>{{ description }}</p>{% endif%}
|
{% if let Some(description) = addressbook.description %}<p>{{ description }}</p>{% endif%}
|
||||||
|
|
||||||
<pre>{{ addressbook|json }}</pre>
|
<h2>Debug information</h2>
|
||||||
|
<pre>{{ addressbook|json(2) }}</pre>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -5,7 +5,15 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% let name = calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) %}
|
{% let name = calendar.meta.displayname.to_owned().unwrap_or(calendar.id.to_owned()) %}
|
||||||
<h1>{{ calendar.principal }}/{{ name }}</h1>
|
<h1>
|
||||||
|
{{ calendar.principal }}/{{ name }}
|
||||||
|
<div class="component-chips">
|
||||||
|
{% for comp in calendar.components %}
|
||||||
|
<span class="chip">{{ comp }}</span>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</h1>
|
||||||
{% if let Some(description) = calendar.meta.description %}<p>{{ description }}</p>{% endif%}
|
{% if let Some(description) = calendar.meta.description %}<p>{{ description }}</p>{% endif%}
|
||||||
|
|
||||||
{% if let Some(subscription_url) = calendar.subscription_url %}
|
{% if let Some(subscription_url) = calendar.subscription_url %}
|
||||||
@@ -13,19 +21,7 @@
|
|||||||
<a href="{{ subscription_url }}">{{ subscription_url }}</a>
|
<a href="{{ subscription_url }}">{{ subscription_url }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<h2>Components</h2>
|
<h2>Debug information</h2>
|
||||||
<ul>
|
<pre>{{ calendar|json(2) }}</pre>
|
||||||
{% for comp in calendar.components %}
|
|
||||||
<li>{{ comp.as_str() }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h2>Timezone</h2>
|
|
||||||
|
|
||||||
{% if let Some(timezone_id) = calendar.timezone_id %}
|
|
||||||
<p>{{ timezone_id }}</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<pre>{{ calendar|json }}</pre>
|
|
||||||
|
|
||||||
{%endblock %}
|
{%endblock %}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ use crate::routes::{
|
|||||||
app_token::{route_delete_app_token, route_post_app_token},
|
app_token::{route_delete_app_token, route_post_app_token},
|
||||||
calendar::{route_calendar, route_calendar_restore},
|
calendar::{route_calendar, route_calendar_restore},
|
||||||
login::{route_get_login, route_post_login, route_post_logout},
|
login::{route_get_login, route_post_login, route_post_logout},
|
||||||
|
timezones::route_timezones,
|
||||||
user::{route_get_home, route_root, route_user_named},
|
user::{route_get_home, route_root, route_user_named},
|
||||||
};
|
};
|
||||||
#[cfg(not(feature = "dev"))]
|
#[cfg(not(feature = "dev"))]
|
||||||
@@ -79,7 +80,11 @@ pub fn frontend_router<AP: AuthenticationProvider, CS: CalendarStore, AS: Addres
|
|||||||
.route("/", get(route_root))
|
.route("/", get(route_root))
|
||||||
.nest("/user", user_router)
|
.nest("/user", user_router)
|
||||||
.route("/login", get(route_get_login).post(route_post_login::<AP>))
|
.route("/login", get(route_get_login).post(route_post_login::<AP>))
|
||||||
.route("/logout", post(route_post_logout));
|
.route("/logout", post(route_post_logout))
|
||||||
|
.route(
|
||||||
|
"/_timezones.json",
|
||||||
|
get(route_timezones).head(route_timezones),
|
||||||
|
);
|
||||||
|
|
||||||
#[cfg(not(feature = "dev"))]
|
#[cfg(not(feature = "dev"))]
|
||||||
let mut router = router.route_service("/assets/{*file}", EmbedService::<Assets>::default());
|
let mut router = router.route_service("/assets/{*file}", EmbedService::<Assets>::default());
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use super::{
|
|||||||
NextcloudFlow, NextcloudFlows, NextcloudLoginPoll, NextcloudLoginResponse,
|
NextcloudFlow, NextcloudFlows, NextcloudLoginPoll, NextcloudLoginResponse,
|
||||||
NextcloudSuccessResponse,
|
NextcloudSuccessResponse,
|
||||||
};
|
};
|
||||||
use crate::routes::app_token::generate_app_token;
|
use crate::{pages::DefaultLayoutData, routes::app_token::generate_app_token};
|
||||||
use askama::Template;
|
use askama::Template;
|
||||||
use axum::{
|
use axum::{
|
||||||
Extension, Form, Json,
|
Extension, Form, Json,
|
||||||
@@ -100,6 +100,12 @@ struct NextcloudLoginPage {
|
|||||||
app_name: String,
|
app_name: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl DefaultLayoutData for NextcloudLoginPage {
|
||||||
|
fn get_user(&self) -> Option<&Principal> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[instrument(skip(state))]
|
#[instrument(skip(state))]
|
||||||
pub async fn get_nextcloud_flow(
|
pub async fn get_nextcloud_flow(
|
||||||
Extension(state): Extension<Arc<NextcloudFlows>>,
|
Extension(state): Extension<Arc<NextcloudFlows>>,
|
||||||
@@ -130,6 +136,13 @@ pub struct NextcloudAuthorizeForm {
|
|||||||
#[template(path = "pages/nextcloud_login/success.html")]
|
#[template(path = "pages/nextcloud_login/success.html")]
|
||||||
struct NextcloudLoginSuccessPage {
|
struct NextcloudLoginSuccessPage {
|
||||||
app_name: String,
|
app_name: String,
|
||||||
|
user: Principal,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl DefaultLayoutData for NextcloudLoginSuccessPage {
|
||||||
|
fn get_user(&self) -> Option<&Principal> {
|
||||||
|
Some(&self.user)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[instrument(skip(state))]
|
#[instrument(skip(state))]
|
||||||
@@ -150,6 +163,7 @@ pub async fn post_nextcloud_flow(
|
|||||||
Ok(Html(
|
Ok(Html(
|
||||||
NextcloudLoginSuccessPage {
|
NextcloudLoginSuccessPage {
|
||||||
app_name: flow.app_name.clone(),
|
app_name: flow.app_name.clone(),
|
||||||
|
user,
|
||||||
}
|
}
|
||||||
.render()
|
.render()
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
use rustical_store::auth::Principal;
|
||||||
|
|
||||||
pub mod user;
|
pub mod user;
|
||||||
|
|
||||||
|
/// Required by the base layout
|
||||||
|
pub trait DefaultLayoutData {
|
||||||
|
fn get_user(&self) -> Option<&Principal>;
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ use askama::Template;
|
|||||||
use askama_web::WebTemplate;
|
use askama_web::WebTemplate;
|
||||||
use rustical_store::auth::Principal;
|
use rustical_store::auth::Principal;
|
||||||
|
|
||||||
|
use crate::pages::DefaultLayoutData;
|
||||||
|
|
||||||
pub trait Section: Template {
|
pub trait Section: Template {
|
||||||
fn name() -> &'static str;
|
fn name() -> &'static str;
|
||||||
}
|
}
|
||||||
@@ -12,3 +14,9 @@ pub struct UserPage<S: Section> {
|
|||||||
pub user: Principal,
|
pub user: Principal,
|
||||||
pub section: S,
|
pub section: S,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<S: Section> DefaultLayoutData for UserPage<S> {
|
||||||
|
fn get_user(&self) -> Option<&Principal> {
|
||||||
|
Some(&self.user)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -12,10 +12,19 @@ use headers::Referer;
|
|||||||
use http::StatusCode;
|
use http::StatusCode;
|
||||||
use rustical_store::{Addressbook, AddressbookStore, auth::Principal};
|
use rustical_store::{Addressbook, AddressbookStore, auth::Principal};
|
||||||
|
|
||||||
|
use crate::pages::DefaultLayoutData;
|
||||||
|
|
||||||
#[derive(Template, WebTemplate)]
|
#[derive(Template, WebTemplate)]
|
||||||
#[template(path = "pages/addressbook.html")]
|
#[template(path = "pages/addressbook.html")]
|
||||||
struct AddressbookPage {
|
struct AddressbookPage {
|
||||||
addressbook: Addressbook,
|
addressbook: Addressbook,
|
||||||
|
user: Principal,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl DefaultLayoutData for AddressbookPage {
|
||||||
|
fn get_user(&self) -> Option<&Principal> {
|
||||||
|
Some(&self.user)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn route_addressbook<AS: AddressbookStore>(
|
pub async fn route_addressbook<AS: AddressbookStore>(
|
||||||
@@ -28,6 +37,7 @@ pub async fn route_addressbook<AS: AddressbookStore>(
|
|||||||
}
|
}
|
||||||
Ok(AddressbookPage {
|
Ok(AddressbookPage {
|
||||||
addressbook: store.get_addressbook(&owner, &addrbook_id, true).await?,
|
addressbook: store.get_addressbook(&owner, &addrbook_id, true).await?,
|
||||||
|
user,
|
||||||
}
|
}
|
||||||
.into_response())
|
.into_response())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
use std::sync::Arc;
|
use crate::pages::DefaultLayoutData;
|
||||||
|
|
||||||
use askama::Template;
|
use askama::Template;
|
||||||
use askama_web::WebTemplate;
|
use askama_web::WebTemplate;
|
||||||
use axum::{
|
use axum::{
|
||||||
@@ -11,11 +10,19 @@ use axum_extra::TypedHeader;
|
|||||||
use headers::Referer;
|
use headers::Referer;
|
||||||
use http::StatusCode;
|
use http::StatusCode;
|
||||||
use rustical_store::{Calendar, CalendarStore, auth::Principal};
|
use rustical_store::{Calendar, CalendarStore, auth::Principal};
|
||||||
|
use std::sync::Arc;
|
||||||
|
|
||||||
#[derive(Template, WebTemplate)]
|
#[derive(Template, WebTemplate)]
|
||||||
#[template(path = "pages/calendar.html")]
|
#[template(path = "pages/calendar.html")]
|
||||||
struct CalendarPage {
|
struct CalendarPage {
|
||||||
calendar: Calendar,
|
calendar: Calendar,
|
||||||
|
user: Principal,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl DefaultLayoutData for CalendarPage {
|
||||||
|
fn get_user(&self) -> Option<&Principal> {
|
||||||
|
Some(&self.user)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn route_calendar<C: CalendarStore>(
|
pub async fn route_calendar<C: CalendarStore>(
|
||||||
@@ -28,6 +35,7 @@ pub async fn route_calendar<C: CalendarStore>(
|
|||||||
}
|
}
|
||||||
Ok(CalendarPage {
|
Ok(CalendarPage {
|
||||||
calendar: store.get_calendar(&owner, &cal_id, true).await?,
|
calendar: store.get_calendar(&owner, &cal_id, true).await?,
|
||||||
|
user,
|
||||||
}
|
}
|
||||||
.into_response())
|
.into_response())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use crate::{FrontendConfig, OidcConfig};
|
use crate::{FrontendConfig, OidcConfig, pages::DefaultLayoutData};
|
||||||
use askama::Template;
|
use askama::Template;
|
||||||
use askama_web::WebTemplate;
|
use askama_web::WebTemplate;
|
||||||
use axum::{
|
use axum::{
|
||||||
@@ -24,6 +24,12 @@ struct LoginPage<'a> {
|
|||||||
allow_password_login: bool,
|
allow_password_login: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl DefaultLayoutData for LoginPage<'_> {
|
||||||
|
fn get_user(&self) -> Option<&rustical_store::auth::Principal> {
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
struct OidcProviderData<'a> {
|
struct OidcProviderData<'a> {
|
||||||
pub name: &'a str,
|
pub name: &'a str,
|
||||||
pub redirect_url: String,
|
pub redirect_url: String,
|
||||||
|
|||||||
@@ -4,4 +4,5 @@ pub mod app_token;
|
|||||||
pub mod calendar;
|
pub mod calendar;
|
||||||
pub mod calendars;
|
pub mod calendars;
|
||||||
pub mod login;
|
pub mod login;
|
||||||
|
pub mod timezones;
|
||||||
pub mod user;
|
pub mod user;
|
||||||
|
|||||||
39
crates/frontend/src/routes/timezones.rs
Normal file
39
crates/frontend/src/routes/timezones.rs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
use headers::{CacheControl, ContentType, HeaderMapExt};
|
||||||
|
use http::{HeaderMap, HeaderValue, Method};
|
||||||
|
use itertools::Itertools;
|
||||||
|
use std::{sync::LazyLock, time::Duration};
|
||||||
|
|
||||||
|
static VTIMEZONES_JSON: LazyLock<String> = LazyLock::new(|| {
|
||||||
|
serde_json::to_string(
|
||||||
|
&vtimezones_rs::VTIMEZONES
|
||||||
|
.keys()
|
||||||
|
.sorted()
|
||||||
|
.collect::<Vec<_>>(),
|
||||||
|
)
|
||||||
|
.unwrap()
|
||||||
|
});
|
||||||
|
|
||||||
|
pub async fn route_timezones(method: Method) -> (HeaderMap, &'static str) {
|
||||||
|
let mut headers = HeaderMap::new();
|
||||||
|
headers.typed_insert(ContentType::json());
|
||||||
|
headers.insert(
|
||||||
|
"ETag",
|
||||||
|
HeaderValue::from_static(vtimezones_rs::IANA_TZDB_VERSION),
|
||||||
|
);
|
||||||
|
headers.typed_insert(CacheControl::new().with_max_age(Duration::from_hours(2)));
|
||||||
|
|
||||||
|
if method == Method::HEAD {
|
||||||
|
return (headers, "");
|
||||||
|
}
|
||||||
|
(headers, VTIMEZONES_JSON.as_str())
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
#[tokio::test]
|
||||||
|
async fn test_vtimezones_json() -> () {
|
||||||
|
// Since there's an unwrap make sure this doesn't fail
|
||||||
|
assert!(!VTIMEZONES_JSON.as_str().is_empty());
|
||||||
|
|
||||||
|
assert!(route_timezones(Method::HEAD).await.1.is_empty());
|
||||||
|
assert!(!route_timezones(Method::GET).await.1.is_empty());
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user