Implement chat server auth, models, handlers, and docs context
This commit is contained in:
1 parent
23602efd5f
commit
f6b27565cd
15 files changed
+1272
-139
No files matched your search
@@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"data": {
|
||||||
|
"description": "Instead of SQL, you define your data model by annotating your persistent object types on the programming language level.",
|
||||||
|
"external": {
|
||||||
|
"alternate": {
|
||||||
|
"https://docs.objectbox.io/entity-annotations.md": {
|
||||||
|
"type": "text/markdown"
|
||||||
|
},
|
||||||
|
"https://docs.objectbox.io/entity-annotations/rss.xml": {
|
||||||
|
"title": "RSS Feed",
|
||||||
|
"type": "application/rss+xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"apple-touch-icon": {
|
||||||
|
"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=180&height=180&sign=96b28d45&sv=2": {
|
||||||
|
"media": "(prefers-color-scheme: dark)",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"canonical": {
|
||||||
|
"https://docs.objectbox.io/entity-annotations": {}
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=48&height=48&sign=96b28d45&sv=2": {
|
||||||
|
"media": "(prefers-color-scheme: dark)",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preconnect": {
|
||||||
|
"https://api.gitbook.com/cache/": {},
|
||||||
|
"https://ka-p.fontawesome.com/releases/v7.1.0/": {},
|
||||||
|
"https://static-2v.gitbook.com/": {
|
||||||
|
"crossorigin": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preload": {
|
||||||
|
"https://static-2v.gitbook.com/_next/static/chunks/webpack-3f8d6b18f6ab2c58.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b": {
|
||||||
|
"as": "script",
|
||||||
|
"fetchpriority": "low"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"privacy-policy": {
|
||||||
|
"https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": "<html lang=\"en\" class=\"rounded-corners theme-clean no-tint sidebar-default sidebar-list-default links-default depth-subtle __variable_a32233 __variable_80f980 __variable_37a5dc font-Roboto sheet-open:gutter-stable hydrated light\" style=\"color-scheme: light; --toc-height: 1216px; --toc-top-offset: 64px; --outline-height: 1216px; --outline-top-offset: 64px;\"><head><meta charset=\"utf-8\"><link rel=\"preconnect\" href=\"https://static-2v.gitbook.com\" crossorigin=\"\"><link rel=\"preconnect\" href=\"https://api.gitbook.com/cache/\"><link rel=\"preconnect\" href=\"https://ka-p.fontawesome.com/releases/v7.1.0/\"><link rel=\"preconnect\" href=\"https://static-2v.gitbook.com\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover\"><link rel=\"preload\" as=\"image\" fetchpriority=\"high\" imagesrcset=\"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=1&quality=100&sign=96b28d45&sv=2 32w, https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=2&quality=100&sign=96b28d45&sv=2 64w, https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=3&quality=100&sign=96b28d45&sv=2 96w\" imagesizes=\"32px\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/8f95264edb3f86f8.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/919cadf6c2ad1dbc.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/e4670420fc569cb1.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/f758e1ab4ddcc0e6.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/4f8983272bb87ee9.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/c36dde9599bfc781.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/f15a462944baacd8.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/e3d65466d47b91eb.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"preload\" as=\"script\" fetchpriority=\"low\" href=\"https://static-2v.gitbook.com/_next/static/chunks/webpack-3f8d6b18f6ab2c58.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\"><script async=\"\" src=\"https://www.googletagmanager.com/gtag/js?id=G-JJBQJCVSYB\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/87c73c54-3c195070c5cbb22b.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/1902-bb2221cdf4f53ce3.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/main-app-a0ac55901a15e772.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/app/global-error-99197ad4868e95f4.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/f5718501-2b19465055d23f42.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/9071f66d-390fafe3303b2acb.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/6500-df22b4917e9f7eea.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/1026-eb8137b53d68a1b4.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/7165-ceef130264185f86.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/9330-42e224e858196d3b.js?dpl=59ffb9Line truncated
|
||||||
|
"metadata": {
|
||||||
|
"apple-mobile-web-app-status-bar-style": "default",
|
||||||
|
"apple-mobile-web-app-title": "ObjectBox Docs",
|
||||||
|
"color-scheme": "light",
|
||||||
|
"description": "Instead of SQL, you define your data model by annotating your persistent object types on the programming language level.",
|
||||||
|
"generator": "GitBook (59ffb95)",
|
||||||
|
"lang": "en",
|
||||||
|
"mobile-web-app-capable": "yes",
|
||||||
|
"next-size-adjust": "",
|
||||||
|
"og:description": "Instead of SQL, you define your data model by annotating your persistent object types on the programming language level.",
|
||||||
|
"og:image": "https://docs.objectbox.io/~gitbook/ogimage/-LEUYsjP1BaBoJ_OPUD3",
|
||||||
|
"og:title": "Entity Annotations | ObjectBox Docs",
|
||||||
|
"robots": "index, follow",
|
||||||
|
"twitter:card": "summary_large_image",
|
||||||
|
"twitter:description": "Instead of SQL, you define your data model by annotating your persistent object types on the programming language level.",
|
||||||
|
"twitter:image": "https://docs.objectbox.io/~gitbook/ogimage/-LEUYsjP1BaBoJ_OPUD3",
|
||||||
|
"twitter:title": "Entity Annotations | ObjectBox Docs",
|
||||||
|
"viewport": "width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"
|
||||||
|
},
|
||||||
|
"title": "Entity Annotations | ObjectBox Docs",
|
||||||
|
"url": "https://docs.objectbox.io/entity-annotations",
|
||||||
|
"usage": {
|
||||||
|
"tokens": 221469
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"usage": {
|
||||||
|
"tokens": 221469
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": 20000
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"data": {
|
||||||
|
"description": "ObjectBox supports a variety of data types inside the stored objects including various list types and even special \"flex\" types for dynamic and schema-less data.",
|
||||||
|
"external": {
|
||||||
|
"alternate": {
|
||||||
|
"https://docs.objectbox.io/property-types.md": {
|
||||||
|
"type": "text/markdown"
|
||||||
|
},
|
||||||
|
"https://docs.objectbox.io/property-types/rss.xml": {
|
||||||
|
"title": "RSS Feed",
|
||||||
|
"type": "application/rss+xml"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"apple-touch-icon": {
|
||||||
|
"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=180&height=180&sign=96b28d45&sv=2": {
|
||||||
|
"media": "(prefers-color-scheme: dark)",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"canonical": {
|
||||||
|
"https://docs.objectbox.io/property-types": {}
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=48&height=48&sign=96b28d45&sv=2": {
|
||||||
|
"media": "(prefers-color-scheme: dark)",
|
||||||
|
"type": "image/png"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preconnect": {
|
||||||
|
"https://api.gitbook.com/cache/": {},
|
||||||
|
"https://ka-p.fontawesome.com/releases/v7.1.0/": {},
|
||||||
|
"https://static-2v.gitbook.com/": {
|
||||||
|
"crossorigin": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preload": {
|
||||||
|
"https://static-2v.gitbook.com/_next/static/chunks/webpack-3f8d6b18f6ab2c58.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b": {
|
||||||
|
"as": "script",
|
||||||
|
"fetchpriority": "low"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"privacy-policy": {
|
||||||
|
"https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": "<html lang=\"en\" class=\"rounded-corners theme-clean no-tint sidebar-default sidebar-list-default links-default depth-subtle __variable_a32233 __variable_80f980 __variable_37a5dc font-Roboto sheet-open:gutter-stable hydrated light\" style=\"color-scheme: light; --toc-height: 1216px; --toc-top-offset: 64px; --outline-height: 1216px; --outline-top-offset: 64px;\"><head><meta charset=\"utf-8\"><link rel=\"preconnect\" href=\"https://static-2v.gitbook.com\" crossorigin=\"\"><link rel=\"preconnect\" href=\"https://api.gitbook.com/cache/\"><link rel=\"preconnect\" href=\"https://ka-p.fontawesome.com/releases/v7.1.0/\"><link rel=\"preconnect\" href=\"https://static-2v.gitbook.com\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover\"><link rel=\"preload\" as=\"image\" fetchpriority=\"high\" imagesrcset=\"https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=1&quality=100&sign=96b28d45&sv=2 32w, https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=2&quality=100&sign=96b28d45&sv=2 64w, https://docs.objectbox.io/~gitbook/image?url=https%3A%2F%2F4174656640-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-legacy-files%2Fo%2Fspaces%252F-LETufmyus5LFkviJjr4%252Favatar.png%3Fgeneration%3D1528453316288221%26alt%3Dmedia&width=32&dpr=3&quality=100&sign=96b28d45&sv=2 96w\" imagesizes=\"32px\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/8f95264edb3f86f8.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/919cadf6c2ad1dbc.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/e4670420fc569cb1.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/f758e1ab4ddcc0e6.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/4f8983272bb87ee9.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/c36dde9599bfc781.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/f15a462944baacd8.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"stylesheet\" href=\"https://static-2v.gitbook.com/_next/static/css/e3d65466d47b91eb.css?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" data-precedence=\"next\"><link rel=\"preload\" as=\"script\" fetchpriority=\"low\" href=\"https://static-2v.gitbook.com/_next/static/chunks/webpack-3f8d6b18f6ab2c58.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\"><script async=\"\" src=\"https://www.googletagmanager.com/gtag/js?id=G-JJBQJCVSYB\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/87c73c54-3c195070c5cbb22b.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/1902-bb2221cdf4f53ce3.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/main-app-a0ac55901a15e772.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script src=\"https://static-2v.gitbook.com/_next/static/chunks/app/global-error-99197ad4868e95f4.js?dpl=59ffb95417795c0d96c480da62fd9440881efa4b\" async=\"\"></script><script async=\"\" src=\"https://integrations.gitbook.com/v1/integrations/googleanalytics/installations/e4636d43a329d3ed8798c3f00605331dda696afe585efda0dc3f650f08b2f0d6/sites/site_1YbDR/script.js?version=151.0\"></script><meta name=\"next-size-adjust\" content=\"\"><meta name=\"color-scheme\" content=\"light\"><link rel=\"privacy-policy\" href=\"https://objectbox.io/wordpress/wp-content/uploads/2022/08/Object-Box-Privacy-Notice.pdf\"><title>Property Types | ObjectBox Docs</title><meta name=\"description\" content=\"ObjectBox supports a variety of data types inside the stored objects including various list types and even special "flex" types for dynamic and schema-less data.\"><meta name=\"generator\" content=\"GitBook (59ffb95)\"><meta name=\"robots\" content=\"index, follow\"><link rel=\"canonical\" href=\"https://docs.objectbox.io/property-types\"><link rel=\"altLine truncated
|
||||||
|
"metadata": {
|
||||||
|
"apple-mobile-web-app-status-bar-style": "default",
|
||||||
|
"apple-mobile-web-app-title": "ObjectBox Docs",
|
||||||
|
"color-scheme": "light",
|
||||||
|
"description": "ObjectBox supports a variety of data types inside the stored objects including various list types and even special \"flex\" types for dynamic and schema-less data.",
|
||||||
|
"generator": "GitBook (59ffb95)",
|
||||||
|
"lang": "en",
|
||||||
|
"mobile-web-app-capable": "yes",
|
||||||
|
"next-size-adjust": "",
|
||||||
|
"og:description": "ObjectBox supports a variety of data types inside the stored objects including various list types and even special \"flex\" types for dynamic and schema-less data.",
|
||||||
|
"og:image": "https://docs.objectbox.io/~gitbook/ogimage/kSqRmDrNicE3QmU2oyBf",
|
||||||
|
"og:title": "Property Types | ObjectBox Docs",
|
||||||
|
"robots": "index, follow",
|
||||||
|
"twitter:card": "summary_large_image",
|
||||||
|
"twitter:description": "ObjectBox supports a variety of data types inside the stored objects including various list types and even special \"flex\" types for dynamic and schema-less data.",
|
||||||
|
"twitter:image": "https://docs.objectbox.io/~gitbook/ogimage/kSqRmDrNicE3QmU2oyBf",
|
||||||
|
"twitter:title": "Property Types | ObjectBox Docs",
|
||||||
|
"viewport": "width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover"
|
||||||
|
},
|
||||||
|
"title": "Property Types | ObjectBox Docs",
|
||||||
|
"url": "https://docs.objectbox.io/property-types",
|
||||||
|
"usage": {
|
||||||
|
"tokens": 175515
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"usage": {
|
||||||
|
"tokens": 175515
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": 20000
|
||||||
|
}
|
||||||
@@ -0,0 +1,81 @@
|
|||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"data": {
|
||||||
|
"description": "Relic is a modern, high-performance web server framework inspired by Shelf and built by the Serverpod team to meet the demanding requirements of modern web applications. Relic provides a robust, type-safe, and efficient foundation for building scalable web services.",
|
||||||
|
"external": {
|
||||||
|
"alternate": {
|
||||||
|
"https://docs.dartrelic.dev/": {
|
||||||
|
"data-rh": "true",
|
||||||
|
"hreflang": "x-default"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"canonical": {
|
||||||
|
"https://docs.dartrelic.dev/": {
|
||||||
|
"data-rh": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"https://docs.dartrelic.dev/img/favicon.png": {
|
||||||
|
"data-rh": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preconnect": {
|
||||||
|
"https://www.google-analytics.com/": {},
|
||||||
|
"https://www.googletagmanager.com/": {}
|
||||||
|
},
|
||||||
|
"prefetch": {
|
||||||
|
"https://docs.dartrelic.dev/assets/js/0ca634c5.c40e5698.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/17896441.35fb8100.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/22dd74f7.32b10889.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/2c10348c.c38ae9dc.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/2dc195cc.c7b109bb.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/441e1055.6248ef14.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/4edc808e.d18ceb40.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/5b00fbf1.0fa3fba9.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/5e95c892.753674ac.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/6783a3b2.0aa1428a.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/9412f430.c708638d.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/9576f52c.f029d9c3.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a7bd4aaa.b870ce93.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a94703ab.055f41b9.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a9685393.8fdc4764.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/aba21aa0.1d722264.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/aca04f59.28672d9f.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/b4e2adc5.e5a3b2b2.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/b685e31b.f5eb8692.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/be2b5817.53d9f078.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/c644a7fe.ad3a69e0.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/c678908c.c170f033.js": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": "<html lang=\"en\" dir=\"ltr\" class=\"docs-wrapper plugin-docs plugin-id-default docs-version-1.0.0 docs-doc-page docs-doc-id-index\" data-has-hydrated=\"true\" data-theme=\"light\" data-theme-choice=\"system\" data-rh=\"lang,dir,class,data-has-hydrated\"><head>\n<meta charset=\"UTF-8\">\n<meta name=\"generator\" content=\"Docusaurus v3.9.2\">\n<title>🎯 Introduction | Relic</title><meta data-rh=\"true\" name=\"twitter:card\" content=\"summary_large_image\"><meta data-rh=\"true\" property=\"og:url\" content=\"https://docs.dartrelic.dev/\"><link data-rh=\"true\" rel=\"icon\" href=\"/img/favicon.png\"><link data-rh=\"true\" rel=\"canonical\" href=\"https://docs.dartrelic.dev/\"><link rel=\"preconnect\" href=\"https://www.google-analytics.com\">\n<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">\n<script async=\"\" src=\"https://www.googletagmanager.com/gtag/js?id=G-0EYLJMP04H\"></script>\n<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag(\"js\",new Date),gtag(\"config\",\"G-0EYLJMP04H\",{anonymize_ip:!0})</script><link rel=\"stylesheet\" href=\"/assets/css/styles.5c32dd38.css\">\n<script src=\"/assets/js/runtime~main.75ddcb03.js\" defer=\"defer\"></script>\n<script src=\"/assets/js/main.e1e75f7d.js\" defer=\"defer\"></script>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" data-rh=\"true\"><link rel=\"alternate\" href=\"https://docs.dartrelic.dev/\" hreflang=\"en\" data-rh=\"true\"><link rel=\"alternate\" href=\"https://docs.dartrelic.dev/\" hreflang=\"x-default\" data-rh=\"true\"><meta property=\"og:locale\" content=\"en\" data-rh=\"true\"><meta name=\"docusaurus_locale\" content=\"en\" data-rh=\"true\"><meta name=\"docsearch:language\" content=\"en\" data-rh=\"true\"><meta name=\"docusaurus_version\" content=\"1.0.0\" data-rh=\"true\"><meta name=\"docusaurus_tag\" content=\"docs-default-1.0.0\" data-rh=\"true\"><meta name=\"docsearch:version\" content=\"1.0.0\" data-rh=\"true\"><meta name=\"docsearch:docusaurus_tag\" content=\"docs-default-1.0.0\" data-rh=\"true\"><meta property=\"og:title\" content=\"🎯 Introduction | Relic\" data-rh=\"true\"><meta name=\"description\" content=\"Relic is a modern, high-performance web server framework inspired by Shelf and built by the Serverpod team to meet the demanding requirements of modern web applications. Relic provides a robust, type-safe, and efficient foundation for building scalable web services.\" data-rh=\"true\"><meta property=\"og:description\" content=\"Relic is a modern, high-performance web server framework inspired by Shelf and built by the Serverpod team to meet the demanding requirements of modern web applications. Relic provides a robust, type-safe, and efficient foundation for building scalable web services.\" data-rh=\"true\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/c644a7fe.ad3a69e0.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7Line truncated
|
||||||
|
"metadata": {
|
||||||
|
"description": "Relic is a modern, high-performance web server framework inspired by Shelf and built by the Serverpod team to meet the demanding requirements of modern web applications. Relic provides a robust, type-safe, and efficient foundation for building scalable web services.",
|
||||||
|
"docsearch:docusaurus_tag": "docs-default-1.0.0",
|
||||||
|
"docsearch:language": "en",
|
||||||
|
"docsearch:version": "1.0.0",
|
||||||
|
"docusaurus_locale": "en",
|
||||||
|
"docusaurus_tag": "docs-default-1.0.0",
|
||||||
|
"docusaurus_version": "1.0.0",
|
||||||
|
"generator": "Docusaurus v3.9.2",
|
||||||
|
"lang": "en",
|
||||||
|
"og:description": "Relic is a modern, high-performance web server framework inspired by Shelf and built by the Serverpod team to meet the demanding requirements of modern web applications. Relic provides a robust, type-safe, and efficient foundation for building scalable web services.",
|
||||||
|
"og:locale": "en",
|
||||||
|
"og:title": "🎯 Introduction | Relic",
|
||||||
|
"og:url": "https://docs.dartrelic.dev/",
|
||||||
|
"twitter:card": "summary_large_image",
|
||||||
|
"viewport": "width=device-width, initial-scale=1.0"
|
||||||
|
},
|
||||||
|
"title": "🎯 Introduction | Relic",
|
||||||
|
"url": "https://docs.dartrelic.dev/",
|
||||||
|
"usage": {
|
||||||
|
"tokens": 14117
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"usage": {
|
||||||
|
"tokens": 14117
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": 20000
|
||||||
|
}
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"data": {
|
||||||
|
"description": "Once you have Dart installed, it only takes a few lines of code to set up your Relic server. These are the steps you need to take to get a simple Hello world server up and running.",
|
||||||
|
"external": {
|
||||||
|
"alternate": {
|
||||||
|
"https://docs.dartrelic.dev/getting-started/hello-world-example": {
|
||||||
|
"data-rh": "true",
|
||||||
|
"hreflang": "x-default"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"canonical": {
|
||||||
|
"https://docs.dartrelic.dev/getting-started/hello-world-example": {
|
||||||
|
"data-rh": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"https://docs.dartrelic.dev/img/favicon.png": {
|
||||||
|
"data-rh": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"preconnect": {
|
||||||
|
"https://www.google-analytics.com/": {},
|
||||||
|
"https://www.googletagmanager.com/": {}
|
||||||
|
},
|
||||||
|
"prefetch": {
|
||||||
|
"https://docs.dartrelic.dev/assets/js/0ca634c5.c40e5698.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/17896441.35fb8100.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/22dd74f7.32b10889.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/2c10348c.c38ae9dc.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/2dc195cc.c7b109bb.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/441e1055.6248ef14.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/4edc808e.d18ceb40.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/5b00fbf1.0fa3fba9.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/5e95c892.753674ac.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/6783a3b2.0aa1428a.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/9412f430.c708638d.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/9576f52c.f029d9c3.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a7bd4aaa.b870ce93.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a94703ab.055f41b9.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/a9685393.8fdc4764.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/aba21aa0.1d722264.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/aca04f59.28672d9f.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/b4e2adc5.e5a3b2b2.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/b685e31b.f5eb8692.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/be2b5817.53d9f078.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/c644a7fe.ad3a69e0.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/c678908c.c170f033.js": {},
|
||||||
|
"https://docs.dartrelic.dev/assets/js/f22cf6c3.3fb896a1.js": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"html": "<html lang=\"en\" dir=\"ltr\" class=\"docs-wrapper plugin-docs plugin-id-default docs-version-1.0.0 docs-doc-page docs-doc-id-getting-started/hello-world-example\" data-has-hydrated=\"true\" data-theme=\"light\" data-theme-choice=\"system\" data-rh=\"lang,dir,class,data-has-hydrated\"><head>\n<meta charset=\"UTF-8\">\n<meta name=\"generator\" content=\"Docusaurus v3.9.2\">\n<title>Hello world | Relic</title><meta data-rh=\"true\" name=\"twitter:card\" content=\"summary_large_image\"><meta data-rh=\"true\" property=\"og:url\" content=\"https://docs.dartrelic.dev/getting-started/hello-world-example\"><meta data-rh=\"true\" property=\"og:locale\" content=\"en\"><meta data-rh=\"true\" name=\"docusaurus_locale\" content=\"en\"><meta data-rh=\"true\" name=\"docsearch:language\" content=\"en\"><link data-rh=\"true\" rel=\"icon\" href=\"/img/favicon.png\"><link data-rh=\"true\" rel=\"canonical\" href=\"https://docs.dartrelic.dev/getting-started/hello-world-example\"><link data-rh=\"true\" rel=\"alternate\" href=\"https://docs.dartrelic.dev/getting-started/hello-world-example\" hreflang=\"en\"><link data-rh=\"true\" rel=\"alternate\" href=\"https://docs.dartrelic.dev/getting-started/hello-world-example\" hreflang=\"x-default\"><link rel=\"preconnect\" href=\"https://www.google-analytics.com\">\n<link rel=\"preconnect\" href=\"https://www.googletagmanager.com\">\n<script async=\"\" src=\"https://www.googletagmanager.com/gtag/js?id=G-0EYLJMP04H\"></script>\n<script>function gtag(){dataLayer.push(arguments)}window.dataLayer=window.dataLayer||[],gtag(\"js\",new Date),gtag(\"config\",\"G-0EYLJMP04H\",{anonymize_ip:!0})</script><link rel=\"stylesheet\" href=\"/assets/css/styles.5c32dd38.css\">\n<script src=\"/assets/js/runtime~main.75ddcb03.js\" defer=\"defer\"></script>\n<script src=\"/assets/js/main.e1e75f7d.js\" defer=\"defer\"></script>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" data-rh=\"true\"><meta name=\"docusaurus_version\" content=\"1.0.0\" data-rh=\"true\"><meta name=\"docusaurus_tag\" content=\"docs-default-1.0.0\" data-rh=\"true\"><meta name=\"docsearch:version\" content=\"1.0.0\" data-rh=\"true\"><meta name=\"docsearch:docusaurus_tag\" content=\"docs-default-1.0.0\" data-rh=\"true\"><meta property=\"og:title\" content=\"Hello world | Relic\" data-rh=\"true\"><meta name=\"description\" content=\"Once you have Dart installed, it only takes a few lines of code to set up your Relic server. These are the steps you need to take to get a simple Hello world server up and running.\" data-rh=\"true\"><meta property=\"og:description\" content=\"Once you have Dart installed, it only takes a few lines of code to set up your Relic server. These are the steps you need to take to get a simple Hello world server up and running.\" data-rh=\"true\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/c678908c.c170f033.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"><link rel=\"prefetch\" href=\"/assets/js/a94703ab.055f41b9.js\"><link rel=\"prefetch\" href=\"/assets/js/17896441.35fb8100.js\"><link rel=\"prefetch\" href=\"/assets/js/0ca634c5.c40e5698.js\"><link rel=\"prefetch\" href=\"/assets/js/5e95c892.753674ac.js\"><link rel=\"prefetch\" href=\"/assets/js/aba21aa0.1d722264.js\"><link rel=\"prefetch\" href=\"/assets/js/a7bd4aaa.b870ce93.js\"><link rel=\"prefetch\" href=\"/assets/js/22dd74f7.32b10889.js\"Line truncated
|
||||||
|
"metadata": {
|
||||||
|
"description": "Once you have Dart installed, it only takes a few lines of code to set up your Relic server. These are the steps you need to take to get a simple Hello world server up and running.",
|
||||||
|
"docsearch:docusaurus_tag": "docs-default-1.0.0",
|
||||||
|
"docsearch:language": "en",
|
||||||
|
"docsearch:version": "1.0.0",
|
||||||
|
"docusaurus_locale": "en",
|
||||||
|
"docusaurus_tag": "docs-default-1.0.0",
|
||||||
|
"docusaurus_version": "1.0.0",
|
||||||
|
"generator": "Docusaurus v3.9.2",
|
||||||
|
"lang": "en",
|
||||||
|
"og:description": "Once you have Dart installed, it only takes a few lines of code to set up your Relic server. These are the steps you need to take to get a simple Hello world server up and running.",
|
||||||
|
"og:locale": "en",
|
||||||
|
"og:title": "Hello world | Relic",
|
||||||
|
"og:url": "https://docs.dartrelic.dev/getting-started/hello-world-example",
|
||||||
|
"twitter:card": "summary_large_image",
|
||||||
|
"viewport": "width=device-width, initial-scale=1.0"
|
||||||
|
},
|
||||||
|
"publishedTime": "Wed, 18 Feb 2026 09:05:14 GMT",
|
||||||
|
"title": "Hello world | Relic",
|
||||||
|
"url": "https://docs.dartrelic.dev/getting-started/hello-world-example",
|
||||||
|
"usage": {
|
||||||
|
"tokens": 21616
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"meta": {
|
||||||
|
"usage": {
|
||||||
|
"tokens": 21616
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": 20000
|
||||||
|
}
|
||||||
+11
-10
@@ -11,8 +11,8 @@ import 'package:objectbox/objectbox.dart';
|
|||||||
/// - isLocal = false
|
/// - isLocal = false
|
||||||
/// - homeServer contains the URL of user's home
|
/// - homeServer contains the URL of user's home
|
||||||
/// - publicKey cached for verification
|
/// - publicKey cached for verification
|
||||||
@Entity()
|
@Entity(uid: 3848231140411393897)
|
||||||
class User {
|
class ChatUser {
|
||||||
@Id()
|
@Id()
|
||||||
int id = 0;
|
int id = 0;
|
||||||
|
|
||||||
@@ -37,7 +37,8 @@ class User {
|
|||||||
|
|
||||||
// Server relationship
|
// Server relationship
|
||||||
bool isLocal; // true = this is their home server
|
bool isLocal; // true = this is their home server
|
||||||
String? homeServer; // if guest, where is their home? (e.g., "https://my.server.com")
|
String?
|
||||||
|
homeServer; // if guest, where is their home? (e.g., "https://my.server.com")
|
||||||
|
|
||||||
// Server-specific
|
// Server-specific
|
||||||
List<String> roles; // ["admin", "moderator", "member"]
|
List<String> roles; // ["admin", "moderator", "member"]
|
||||||
@@ -48,7 +49,7 @@ class User {
|
|||||||
@Property(type: PropertyType.date)
|
@Property(type: PropertyType.date)
|
||||||
DateTime? lastSyncedAt; // When profile was last refreshed from home
|
DateTime? lastSyncedAt; // When profile was last refreshed from home
|
||||||
|
|
||||||
User({
|
ChatUser({
|
||||||
required this.userId,
|
required this.userId,
|
||||||
required this.username,
|
required this.username,
|
||||||
required this.publicKey,
|
required this.publicKey,
|
||||||
@@ -68,8 +69,8 @@ class User {
|
|||||||
lastSyncedAt = lastSyncedAt;
|
lastSyncedAt = lastSyncedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity()
|
@Entity(uid: 2663861829934850300)
|
||||||
class Channel {
|
class ChatChannel {
|
||||||
@Id()
|
@Id()
|
||||||
int id = 0;
|
int id = 0;
|
||||||
|
|
||||||
@@ -81,15 +82,15 @@ class Channel {
|
|||||||
@Property(type: PropertyType.date)
|
@Property(type: PropertyType.date)
|
||||||
DateTime createdAt;
|
DateTime createdAt;
|
||||||
|
|
||||||
Channel({
|
ChatChannel({
|
||||||
required this.name,
|
required this.name,
|
||||||
this.description,
|
this.description,
|
||||||
DateTime? createdAt,
|
DateTime? createdAt,
|
||||||
}) : createdAt = createdAt ?? DateTime.now();
|
}) : createdAt = createdAt ?? DateTime.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Entity()
|
@Entity(uid: 2697867424319168785)
|
||||||
class Message {
|
class ChatMessage {
|
||||||
@Id()
|
@Id()
|
||||||
int id = 0;
|
int id = 0;
|
||||||
|
|
||||||
@@ -112,7 +113,7 @@ class Message {
|
|||||||
@Property(type: PropertyType.date)
|
@Property(type: PropertyType.date)
|
||||||
DateTime? editedAt;
|
DateTime? editedAt;
|
||||||
|
|
||||||
Message({
|
ChatMessage({
|
||||||
required this.channelId,
|
required this.channelId,
|
||||||
required this.authorLocalId,
|
required this.authorLocalId,
|
||||||
required this.authorUserId,
|
required this.authorUserId,
|
||||||
|
|||||||
+7
-19
@@ -1,5 +1,3 @@
|
|||||||
import 'package:chat_server/models.dart';
|
|
||||||
import 'package:chat_server/objectbox.g.dart';
|
|
||||||
import 'package:hotreloader/hotreloader.dart';
|
import 'package:hotreloader/hotreloader.dart';
|
||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
@@ -9,13 +7,7 @@ import 'src/handlers/auth_handlers.dart';
|
|||||||
import 'src/handlers/channel_handlers.dart';
|
import 'src/handlers/channel_handlers.dart';
|
||||||
import 'src/handlers/message_handlers.dart';
|
import 'src/handlers/message_handlers.dart';
|
||||||
import 'src/handlers/public_handlers.dart';
|
import 'src/handlers/public_handlers.dart';
|
||||||
import 'src/utils/extensions.dart';
|
import 'src/state/app_state.dart';
|
||||||
|
|
||||||
// Global ObjectBox store and boxes
|
|
||||||
late final Store store;
|
|
||||||
late final Box<User> userBox;
|
|
||||||
late final Box<Channel> channelBox;
|
|
||||||
late final Box<Message> messageBox;
|
|
||||||
|
|
||||||
RelicApp? _currentApp;
|
RelicApp? _currentApp;
|
||||||
|
|
||||||
@@ -31,8 +23,8 @@ Future<void> startServer() async {
|
|||||||
..post('/auth/join', joinServerHandler)
|
..post('/auth/join', joinServerHandler)
|
||||||
|
|
||||||
// Public identity verification (for cross-server)
|
// Public identity verification (for cross-server)
|
||||||
..get('/.well-known/users/<username>', publicUserHandler)
|
..get('/.well-known/users/:username', publicUserHandler)
|
||||||
..get('/.well-known/verify/<userId>', publicVerifyHandler)
|
..get('/.well-known/verify/:userId', publicVerifyHandler)
|
||||||
..get('/.well-known/server', publicServerInfoHandler)
|
..get('/.well-known/server', publicServerInfoHandler)
|
||||||
|
|
||||||
// ============ PROTECTED ENDPOINTS (requires auth) ============
|
// ============ PROTECTED ENDPOINTS (requires auth) ============
|
||||||
@@ -44,13 +36,13 @@ Future<void> startServer() async {
|
|||||||
// Channels
|
// Channels
|
||||||
..get('/api/channels', getChannelsHandler)
|
..get('/api/channels', getChannelsHandler)
|
||||||
..post('/api/channels', createChannelHandler)
|
..post('/api/channels', createChannelHandler)
|
||||||
..get('/api/channels/<channelId>', getChannelHandler)
|
..get('/api/channels/:channelId', getChannelHandler)
|
||||||
|
|
||||||
// Messages
|
// Messages
|
||||||
..get('/api/messages', getMessagesHandler)
|
..get('/api/messages', getMessagesHandler)
|
||||||
..post('/api/messages', sendMessageHandler)
|
..post('/api/messages', sendMessageHandler)
|
||||||
..put('/api/messages/<messageId>', editMessageHandler)
|
..put('/api/messages/:messageId', editMessageHandler)
|
||||||
..delete('/api/messages/<messageId>', deleteMessageHandler)
|
..delete('/api/messages/:messageId', deleteMessageHandler)
|
||||||
|
|
||||||
// ============ LOGGING & FALLBACK ============
|
// ============ LOGGING & FALLBACK ============
|
||||||
..use('/', logRequests())
|
..use('/', logRequests())
|
||||||
@@ -68,11 +60,7 @@ Future<void> startServer() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
// Initialize ObjectBox
|
initializeStore();
|
||||||
store = openStore();
|
|
||||||
userBox = store.box<User>();
|
|
||||||
channelBox = store.box<Channel>();
|
|
||||||
messageBox = store.box<Message>();
|
|
||||||
|
|
||||||
// Enable hot reload in development
|
// Enable hot reload in development
|
||||||
await HotReloader.create(
|
await HotReloader.create(
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
import '../../config/config.dart';
|
|
||||||
import '../utils/extensions.dart';
|
|
||||||
import 'crypto_service.dart';
|
import 'crypto_service.dart';
|
||||||
|
|
||||||
final userIdProperty = ContextProperty<String>('userId');
|
final userIdProperty = ContextProperty<String>('userId');
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
import 'dart:math';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:bcrypt/bcrypt.dart';
|
import 'package:bcrypt/bcrypt.dart';
|
||||||
import 'package:collection/collection.dart';
|
|
||||||
import 'package:crypto/crypto.dart';
|
import 'package:crypto/crypto.dart';
|
||||||
import 'package:crypton/crypton.dart';
|
import 'package:crypton/crypton.dart' as crypton;
|
||||||
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart';
|
import 'package:dart_jsonwebtoken/dart_jsonwebtoken.dart' as jwt;
|
||||||
|
|
||||||
import '../config/config.dart';
|
import '../../config/config.dart';
|
||||||
|
|
||||||
class KeyPair {
|
class KeyPair {
|
||||||
final String publicKey;
|
final String publicKey;
|
||||||
@@ -31,7 +31,7 @@ class KeyPair {
|
|||||||
class CryptoService {
|
class CryptoService {
|
||||||
/// Generate a new Ed25519 key pair
|
/// Generate a new Ed25519 key pair
|
||||||
static KeyPair generateKeyPair() {
|
static KeyPair generateKeyPair() {
|
||||||
final keyPair = ECKeypair.fromRandom();
|
final keyPair = crypton.ECKeypair.fromRandom();
|
||||||
return KeyPair(
|
return KeyPair(
|
||||||
publicKey: keyPair.publicKey.toString(),
|
publicKey: keyPair.publicKey.toString(),
|
||||||
privateKey: keyPair.privateKey.toString(),
|
privateKey: keyPair.privateKey.toString(),
|
||||||
@@ -40,17 +40,19 @@ class CryptoService {
|
|||||||
|
|
||||||
/// Sign data with private key
|
/// Sign data with private key
|
||||||
static String sign(String data, String privateKey) {
|
static String sign(String data, String privateKey) {
|
||||||
final privKey = ECPrivateKey.fromString(privateKey);
|
final privKey = crypton.ECPrivateKey.fromString(privateKey);
|
||||||
final signature = privKey.createSignature(data);
|
final message = Uint8List.fromList(utf8.encode(data));
|
||||||
return signature.toString();
|
final signature = privKey.createSHA256Signature(message);
|
||||||
|
return base64Encode(signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Verify signature with public key
|
/// Verify signature with public key
|
||||||
static bool verify(String data, String signature, String publicKey) {
|
static bool verify(String data, String signature, String publicKey) {
|
||||||
try {
|
try {
|
||||||
final pubKey = ECPublicKey.fromString(publicKey);
|
final pubKey = crypton.ECPublicKey.fromString(publicKey);
|
||||||
final sig = ECSignature.fromString(signature);
|
final message = Uint8List.fromList(utf8.encode(data));
|
||||||
return pubKey.verifySignature(data, sig);
|
final signatureBytes = Uint8List.fromList(base64Decode(signature));
|
||||||
|
return pubKey.verifySHA256Signature(message, signatureBytes);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -118,6 +120,8 @@ class EncryptedKey {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class AuthService {
|
class AuthService {
|
||||||
|
static final _nonceRandom = Random.secure();
|
||||||
|
|
||||||
/// Generate JWT token for user
|
/// Generate JWT token for user
|
||||||
static String generateToken(String userId, String username) {
|
static String generateToken(String userId, String username) {
|
||||||
final payload = {
|
final payload = {
|
||||||
@@ -125,9 +129,9 @@ class AuthService {
|
|||||||
'username': username,
|
'username': username,
|
||||||
};
|
};
|
||||||
|
|
||||||
final jwt = JWT(payload);
|
final token = jwt.JWT(payload);
|
||||||
return jwt.sign(
|
return token.sign(
|
||||||
SecretKey(Config.jwtSecret),
|
jwt.SecretKey(Config.jwtSecret),
|
||||||
expiresIn: Config.tokenExpiry,
|
expiresIn: Config.tokenExpiry,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -135,8 +139,8 @@ class AuthService {
|
|||||||
/// Verify JWT token and return payload
|
/// Verify JWT token and return payload
|
||||||
static Map<String, dynamic>? verifyToken(String token) {
|
static Map<String, dynamic>? verifyToken(String token) {
|
||||||
try {
|
try {
|
||||||
final jwt = JWT.verify(token, SecretKey(Config.jwtSecret));
|
final verified = jwt.JWT.verify(token, jwt.SecretKey(Config.jwtSecret));
|
||||||
return Map<String, dynamic>.from(jwt.payload as Map);
|
return Map<String, dynamic>.from(verified.payload as Map);
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -154,8 +158,8 @@ class AuthService {
|
|||||||
|
|
||||||
/// Generate a nonce for signature verification
|
/// Generate a nonce for signature verification
|
||||||
static String generateNonce() {
|
static String generateNonce() {
|
||||||
final bytes = List<int>.generate(32, (_) => DateTime.now().microsecondsSinceEpoch % 256);
|
final bytes = List<int>.generate(32, (_) => _nonceRandom.nextInt(256));
|
||||||
final randomBytes = sha256.convert(bytes as Uint8List);
|
final hash = sha256.convert(bytes);
|
||||||
return randomBytes.toString().substring(0, 32);
|
return hash.toString().substring(0, 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,44 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:chat_server/models.dart';
|
import 'package:chat_server/models.dart';
|
||||||
import 'package:chat_server/objectbox.g.dart';
|
import 'package:chat_server/objectbox.g.dart';
|
||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
|
import '../../config/config.dart';
|
||||||
import '../auth/auth_middleware.dart';
|
import '../auth/auth_middleware.dart';
|
||||||
import '../auth/crypto_service.dart';
|
import '../auth/crypto_service.dart';
|
||||||
|
import '../state/app_state.dart';
|
||||||
import '../utils/extensions.dart';
|
import '../utils/extensions.dart';
|
||||||
|
|
||||||
|
class RemoteIdentity {
|
||||||
|
final String userId;
|
||||||
|
final String username;
|
||||||
|
final String publicKey;
|
||||||
|
final String? displayName;
|
||||||
|
final String? avatarUrl;
|
||||||
|
final String? bio;
|
||||||
|
|
||||||
|
RemoteIdentity({
|
||||||
|
required this.userId,
|
||||||
|
required this.username,
|
||||||
|
required this.publicKey,
|
||||||
|
this.displayName,
|
||||||
|
this.avatarUrl,
|
||||||
|
this.bio,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
class ParsedUserId {
|
||||||
|
final String username;
|
||||||
|
final String host;
|
||||||
|
|
||||||
|
ParsedUserId({
|
||||||
|
required this.username,
|
||||||
|
required this.host,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/// Register on HOME server
|
/// Register on HOME server
|
||||||
/// Creates user with keypair for identity
|
/// Creates user with keypair for identity
|
||||||
Future<Response> registerHandler(Request req) async {
|
Future<Response> registerHandler(Request req) async {
|
||||||
@@ -25,8 +58,12 @@ Future<Response> registerHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if username exists
|
// Check if username exists on this home server
|
||||||
final query = userBox.query(User_.username.equals(username)).build();
|
final query = userBox
|
||||||
|
.query(
|
||||||
|
ChatUser_.username.equals(username) & ChatUser_.isLocal.equals(true),
|
||||||
|
)
|
||||||
|
.build();
|
||||||
final existing = query.findFirst();
|
final existing = query.findFirst();
|
||||||
query.close();
|
query.close();
|
||||||
|
|
||||||
@@ -51,7 +88,7 @@ Future<Response> registerHandler(Request req) async {
|
|||||||
// Create user with userId format: "username@this.server"
|
// Create user with userId format: "username@this.server"
|
||||||
final userId = '${username}@${Config.serverHost}';
|
final userId = '${username}@${Config.serverHost}';
|
||||||
|
|
||||||
final user = User(
|
final user = ChatUser(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
username: username,
|
username: username,
|
||||||
publicKey: keyPair.publicKey,
|
publicKey: keyPair.publicKey,
|
||||||
@@ -93,7 +130,11 @@ Future<Response> loginHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final query = userBox.query(User_.username.equals(username)).build();
|
final query = userBox
|
||||||
|
.query(
|
||||||
|
ChatUser_.username.equals(username) & ChatUser_.isLocal.equals(true),
|
||||||
|
)
|
||||||
|
.build();
|
||||||
final user = query.findFirst();
|
final user = query.findFirst();
|
||||||
query.close();
|
query.close();
|
||||||
|
|
||||||
@@ -106,7 +147,8 @@ Future<Response> loginHandler(Request req) async {
|
|||||||
// Check if this is actually their home server
|
// Check if this is actually their home server
|
||||||
if (!user.isLocal) {
|
if (!user.isLocal) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
body: Body.fromString('This is not your home server. Login there instead.'),
|
body:
|
||||||
|
Body.fromString('This is not your home server. Login there instead.'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,12 +185,33 @@ Future<Response> joinServerHandler(Request req) async {
|
|||||||
final homeServer = body['homeServer'] as String?; // "https://homeserver.com"
|
final homeServer = body['homeServer'] as String?; // "https://homeserver.com"
|
||||||
final timestamp = body['timestamp'] as int?;
|
final timestamp = body['timestamp'] as int?;
|
||||||
final signature = body['signature'] as String?;
|
final signature = body['signature'] as String?;
|
||||||
final username = body['username'] as String?;
|
|
||||||
|
|
||||||
// Validate required fields
|
// Validate required fields
|
||||||
if (userId == null || homeServer == null || timestamp == null || signature == null) {
|
if (userId == null || timestamp == null || signature == null) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
body: Body.fromString('userId, homeServer, timestamp, and signature required'),
|
body: Body.fromString(
|
||||||
|
'userId, timestamp, and signature required (homeServer optional)'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final parsedUser = parseUserId(userId);
|
||||||
|
if (parsedUser == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Invalid userId format. Expected username@host'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final resolvedHomeServer = normalizeHomeServer(homeServer ?? parsedUser.host);
|
||||||
|
|
||||||
|
if (resolvedHomeServer == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Invalid homeServer URL'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!homeServerMatchesUserIdHost(resolvedHomeServer, parsedUser.host)) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('homeServer does not match userId host'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -160,14 +223,54 @@ Future<Response> joinServerHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Fetch current identity from home server
|
||||||
|
final identity = await fetchIdentityFromHomeServer(
|
||||||
|
resolvedHomeServer,
|
||||||
|
parsedUser.username,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (identity == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Could not verify identity with home server'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure fetched identity matches what caller claims
|
||||||
|
if (identity.userId != userId || identity.username != parsedUser.username) {
|
||||||
|
return Response.forbidden(
|
||||||
|
body: Body.fromString('Identity mismatch from home server'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verify signature
|
||||||
|
// Signature is over: "{userId}:{timestamp}"
|
||||||
|
final messageToVerify = '$userId:$timestamp';
|
||||||
|
final isValid =
|
||||||
|
CryptoService.verify(messageToVerify, signature, identity.publicKey);
|
||||||
|
|
||||||
|
if (!isValid) {
|
||||||
|
return Response.forbidden(
|
||||||
|
body: Body.fromString('Invalid signature'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if user already exists on this server
|
// Check if user already exists on this server
|
||||||
final existingQuery = userBox.query(User_.userId.equals(userId)).build();
|
final existingQuery = userBox.query(ChatUser_.userId.equals(userId)).build();
|
||||||
final existingUser = existingQuery.findFirst();
|
final existingUser = existingQuery.findFirst();
|
||||||
existingQuery.close();
|
existingQuery.close();
|
||||||
|
|
||||||
if (existingUser != null) {
|
if (existingUser != null) {
|
||||||
// User already joined - just return a new token
|
existingUser.username = identity.username;
|
||||||
final token = AuthService.generateToken(existingUser.userId, existingUser.username);
|
existingUser.displayName = identity.displayName;
|
||||||
|
existingUser.avatarUrl = identity.avatarUrl;
|
||||||
|
existingUser.bio = identity.bio;
|
||||||
|
existingUser.publicKey = identity.publicKey;
|
||||||
|
existingUser.homeServer = resolvedHomeServer;
|
||||||
|
existingUser.lastSyncedAt = DateTime.now();
|
||||||
|
userBox.put(existingUser);
|
||||||
|
|
||||||
|
final token =
|
||||||
|
AuthService.generateToken(existingUser.userId, existingUser.username);
|
||||||
userLocalIdProperty[req] = existingUser.id;
|
userLocalIdProperty[req] = existingUser.id;
|
||||||
|
|
||||||
return Response.ok(
|
return Response.ok(
|
||||||
@@ -181,34 +284,18 @@ Future<Response> joinServerHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch public key from home server
|
|
||||||
final publicKey = await fetchPublicKeyFromHomeServer(homeServer, username ?? userId.split('@').first);
|
|
||||||
|
|
||||||
if (publicKey == null) {
|
|
||||||
return Response.badRequest(
|
|
||||||
body: Body.fromString('Could not verify identity with home server'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Verify signature
|
|
||||||
// Signature is over: "{userId}:{timestamp}"
|
|
||||||
final messageToVerify = '$userId:$timestamp';
|
|
||||||
final isValid = CryptoService.verify(messageToVerify, signature, publicKey);
|
|
||||||
|
|
||||||
if (!isValid) {
|
|
||||||
return Response.forbidden(
|
|
||||||
body: Body.fromString('Invalid signature'),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create local shadow account
|
// Create local shadow account
|
||||||
final user = User(
|
final user = ChatUser(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
username: username ?? userId.split('@').first,
|
username: identity.username,
|
||||||
publicKey: publicKey,
|
displayName: identity.displayName,
|
||||||
|
avatarUrl: identity.avatarUrl,
|
||||||
|
bio: identity.bio,
|
||||||
|
publicKey: identity.publicKey,
|
||||||
isLocal: false,
|
isLocal: false,
|
||||||
homeServer: homeServer,
|
homeServer: resolvedHomeServer,
|
||||||
roles: ['member'],
|
roles: ['member'],
|
||||||
|
lastSyncedAt: DateTime.now(),
|
||||||
);
|
);
|
||||||
|
|
||||||
final localId = userBox.put(user);
|
final localId = userBox.put(user);
|
||||||
@@ -227,37 +314,130 @@ Future<Response> joinServerHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Fetch public key from user's home server
|
/// Fetch public identity from user's home server
|
||||||
Future<String?> fetchPublicKeyFromHomeServer(
|
Future<RemoteIdentity?> fetchIdentityFromHomeServer(
|
||||||
String homeServer,
|
String homeServer,
|
||||||
String username,
|
String username,
|
||||||
) async {
|
) async {
|
||||||
|
final client = HttpClient();
|
||||||
|
client.connectionTimeout = const Duration(seconds: 5);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Remove trailing slash
|
|
||||||
final baseUrl = homeServer.replaceAll(RegExp(r'/$'), '');
|
final baseUrl = homeServer.replaceAll(RegExp(r'/$'), '');
|
||||||
|
final endpoint = Uri.parse(
|
||||||
|
'$baseUrl/.well-known/users/${Uri.encodeComponent(username)}');
|
||||||
|
|
||||||
// Use http client to fetch
|
final request = await client.getUrl(endpoint);
|
||||||
// Endpoint: GET /.well-known/users/{username}
|
request.headers.set(HttpHeaders.acceptHeader, 'application/json');
|
||||||
// Returns: { publicKey, userId, ... }
|
final response = await request.close();
|
||||||
|
|
||||||
// For now, return null to indicate we need http client
|
|
||||||
// This will be implemented with actual HTTP client
|
|
||||||
print('Would fetch: $baseUrl/.well-known/users/$username');
|
|
||||||
|
|
||||||
// TODO: Implement actual HTTP request
|
|
||||||
// final response = await http.get(Uri.parse('$baseUrl/.well-known/users/$username'));
|
|
||||||
// if (response.statusCode == 200) {
|
|
||||||
// final data = jsonDecode(response.body);
|
|
||||||
// return data['publicKey'] as String;
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
if (response.statusCode != HttpStatus.ok) {
|
||||||
return null;
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
final responseBody = await utf8.decodeStream(response);
|
||||||
|
final dynamic decoded = jsonDecode(responseBody);
|
||||||
|
if (decoded is! Map) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
final data = Map<String, dynamic>.from(decoded);
|
||||||
|
final userId = data['userId'] as String?;
|
||||||
|
final fetchedUsername = data['username'] as String?;
|
||||||
|
final publicKey = data['publicKey'] as String?;
|
||||||
|
|
||||||
|
if (userId == null || fetchedUsername == null || publicKey == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return RemoteIdentity(
|
||||||
|
userId: userId,
|
||||||
|
username: fetchedUsername,
|
||||||
|
publicKey: publicKey,
|
||||||
|
displayName: data['displayName'] as String?,
|
||||||
|
avatarUrl: data['avatarUrl'] as String?,
|
||||||
|
bio: data['bio'] as String?,
|
||||||
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print('Error fetching public key: $e');
|
print('Error fetching public key: $e');
|
||||||
return null;
|
return null;
|
||||||
|
} finally {
|
||||||
|
client.close(force: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ParsedUserId? parseUserId(String userId) {
|
||||||
|
final parts = userId.split('@');
|
||||||
|
if (parts.length != 2) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
final username = parts[0].trim();
|
||||||
|
final host = parts[1].trim();
|
||||||
|
|
||||||
|
if (username.isEmpty || host.isEmpty) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return ParsedUserId(username: username, host: host);
|
||||||
|
}
|
||||||
|
|
||||||
|
String? normalizeHomeServer(String homeServerOrHost) {
|
||||||
|
final trimmed = homeServerOrHost.trim();
|
||||||
|
if (trimmed.isEmpty) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
final hasScheme = trimmed.contains('://');
|
||||||
|
final candidate =
|
||||||
|
hasScheme ? trimmed : '${defaultSchemeForHost(trimmed)}://$trimmed';
|
||||||
|
final uri = Uri.tryParse(candidate);
|
||||||
|
|
||||||
|
if (uri == null || uri.host.isEmpty) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return uri
|
||||||
|
.replace(path: '', query: null, fragment: null)
|
||||||
|
.toString()
|
||||||
|
.replaceAll(RegExp(r'/$'), '');
|
||||||
|
}
|
||||||
|
|
||||||
|
String defaultSchemeForHost(String host) {
|
||||||
|
final lowerHost = host.toLowerCase();
|
||||||
|
if (lowerHost.startsWith('localhost') ||
|
||||||
|
lowerHost.startsWith('127.') ||
|
||||||
|
lowerHost.startsWith('[::1]')) {
|
||||||
|
return 'http';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'https';
|
||||||
|
}
|
||||||
|
|
||||||
|
bool homeServerMatchesUserIdHost(String homeServerUrl, String userIdHost) {
|
||||||
|
final uri = Uri.tryParse(homeServerUrl);
|
||||||
|
if (uri == null || uri.host.isEmpty) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
final normalizedUserIdHost = userIdHost.trim().toLowerCase();
|
||||||
|
final urlHost = uri.host.toLowerCase();
|
||||||
|
final urlHostWithPort = uri.hasPort ? '$urlHost:${uri.port}' : urlHost;
|
||||||
|
|
||||||
|
if (normalizedUserIdHost == urlHostWithPort) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!uri.hasPort) {
|
||||||
|
final defaultPort = uri.scheme == 'http' ? 80 : 443;
|
||||||
|
if (normalizedUserIdHost == '$urlHost:$defaultPort') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/// Get current user's profile
|
/// Get current user's profile
|
||||||
Future<Response> getMeHandler(Request req) async {
|
Future<Response> getMeHandler(Request req) async {
|
||||||
final userId = userIdProperty[req];
|
final userId = userIdProperty[req];
|
||||||
@@ -268,7 +448,7 @@ Future<Response> getMeHandler(Request req) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final query = userBox.query(User_.userId.equals(userId)).build();
|
final query = userBox.query(ChatUser_.userId.equals(userId)).build();
|
||||||
final user = query.findFirst();
|
final user = query.findFirst();
|
||||||
query.close();
|
query.close();
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import 'package:chat_server/models.dart';
|
|||||||
import 'package:chat_server/objectbox.g.dart';
|
import 'package:chat_server/objectbox.g.dart';
|
||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
|
import '../state/app_state.dart';
|
||||||
import '../utils/extensions.dart';
|
import '../utils/extensions.dart';
|
||||||
|
|
||||||
/// Get all channels
|
/// Get all channels
|
||||||
@@ -25,7 +26,8 @@ Future<Response> getChannelsHandler(Request req) async {
|
|||||||
/// Create a channel (requires 'admin' role)
|
/// Create a channel (requires 'admin' role)
|
||||||
Future<Response> createChannelHandler(Request req) async {
|
Future<Response> createChannelHandler(Request req) async {
|
||||||
final body = await req.asJson();
|
final body = await req.asJson();
|
||||||
final name = (body['name'] as String?)?.trim().toLowerCase().replaceAll(' ', '-');
|
final name =
|
||||||
|
(body['name'] as String?)?.trim().toLowerCase().replaceAll(' ', '-');
|
||||||
final description = body['description'] as String?;
|
final description = body['description'] as String?;
|
||||||
|
|
||||||
if (name == null || name.isEmpty) {
|
if (name == null || name.isEmpty) {
|
||||||
@@ -35,14 +37,15 @@ Future<Response> createChannelHandler(Request req) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if channel exists
|
// Check if channel exists
|
||||||
final existing = channelBox.query(Channel_.name.equals(name)).build().findFirst();
|
final existing =
|
||||||
|
channelBox.query(ChatChannel_.name.equals(name)).build().findFirst();
|
||||||
if (existing != null) {
|
if (existing != null) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
body: Body.fromString('Channel already exists'),
|
body: Body.fromString('Channel already exists'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final channel = Channel(name: name, description: description);
|
final channel = ChatChannel(name: name, description: description);
|
||||||
final id = channelBox.put(channel);
|
final id = channelBox.put(channel);
|
||||||
|
|
||||||
return Response.ok(
|
return Response.ok(
|
||||||
@@ -56,7 +59,14 @@ Future<Response> createChannelHandler(Request req) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get channel by ID
|
/// Get channel by ID
|
||||||
Future<Response> getChannelHandler(Request req, String channelIdStr) async {
|
Future<Response> getChannelHandler(Request req) async {
|
||||||
|
final channelIdStr = req.rawPathParameters[#channelId];
|
||||||
|
if (channelIdStr == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Invalid channel ID'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
final channelId = int.tryParse(channelIdStr);
|
final channelId = int.tryParse(channelIdStr);
|
||||||
if (channelId == null) {
|
if (channelId == null) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import 'package:chat_server/objectbox.g.dart';
|
|||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
import '../auth/auth_middleware.dart';
|
import '../auth/auth_middleware.dart';
|
||||||
|
import '../state/app_state.dart';
|
||||||
import '../utils/extensions.dart';
|
import '../utils/extensions.dart';
|
||||||
|
|
||||||
/// Get messages for a channel
|
/// Get messages for a channel
|
||||||
@@ -36,11 +37,12 @@ Future<Response> getMessagesHandler(Request req) async {
|
|||||||
|
|
||||||
// Get messages
|
// Get messages
|
||||||
final query = messageBox
|
final query = messageBox
|
||||||
.query(Message_.channelId.equals(channelId))
|
.query(ChatMessage_.channelId.equals(channelId))
|
||||||
.order(Message_.createdAt, flags: Order.descending)
|
.order(ChatMessage_.createdAt, flags: Order.descending)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
final messages = query.find(limit: limit);
|
query.limit = limit;
|
||||||
|
final messages = query.find();
|
||||||
query.close();
|
query.close();
|
||||||
|
|
||||||
return Response.ok(
|
return Response.ok(
|
||||||
@@ -99,7 +101,7 @@ Future<Response> sendMessageHandler(Request req) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get user info for caching
|
// Get user info for caching
|
||||||
final userQuery = userBox.query(User_.userId.equals(userId)).build();
|
final userQuery = userBox.query(ChatUser_.userId.equals(userId)).build();
|
||||||
final user = userQuery.findFirst();
|
final user = userQuery.findFirst();
|
||||||
userQuery.close();
|
userQuery.close();
|
||||||
|
|
||||||
@@ -110,7 +112,7 @@ Future<Response> sendMessageHandler(Request req) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create message with cached author info
|
// Create message with cached author info
|
||||||
final message = Message(
|
final message = ChatMessage(
|
||||||
channelId: channelId,
|
channelId: channelId,
|
||||||
authorLocalId: user.id,
|
authorLocalId: user.id,
|
||||||
authorUserId: user.userId,
|
authorUserId: user.userId,
|
||||||
@@ -136,7 +138,7 @@ Future<Response> sendMessageHandler(Request req) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Edit a message
|
/// Edit a message
|
||||||
Future<Response> editMessageHandler(Request req, String messageIdStr) async {
|
Future<Response> editMessageHandler(Request req) async {
|
||||||
final userId = userIdProperty[req];
|
final userId = userIdProperty[req];
|
||||||
|
|
||||||
if (userId == null) {
|
if (userId == null) {
|
||||||
@@ -145,6 +147,13 @@ Future<Response> editMessageHandler(Request req, String messageIdStr) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final messageIdStr = req.rawPathParameters[#messageId];
|
||||||
|
if (messageIdStr == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Invalid message ID'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
final messageId = int.tryParse(messageIdStr);
|
final messageId = int.tryParse(messageIdStr);
|
||||||
if (messageId == null) {
|
if (messageId == null) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
@@ -160,7 +169,7 @@ Future<Response> editMessageHandler(Request req, String messageIdStr) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get user to verify ownership
|
// Get user to verify ownership
|
||||||
final userQuery = userBox.query(User_.userId.equals(userId)).build();
|
final userQuery = userBox.query(ChatUser_.userId.equals(userId)).build();
|
||||||
final user = userQuery.findFirst();
|
final user = userQuery.findFirst();
|
||||||
userQuery.close();
|
userQuery.close();
|
||||||
|
|
||||||
@@ -193,7 +202,7 @@ Future<Response> editMessageHandler(Request req, String messageIdStr) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Delete a message
|
/// Delete a message
|
||||||
Future<Response> deleteMessageHandler(Request req, String messageIdStr) async {
|
Future<Response> deleteMessageHandler(Request req) async {
|
||||||
final userId = userIdProperty[req];
|
final userId = userIdProperty[req];
|
||||||
|
|
||||||
if (userId == null) {
|
if (userId == null) {
|
||||||
@@ -202,6 +211,13 @@ Future<Response> deleteMessageHandler(Request req, String messageIdStr) async {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final messageIdStr = req.rawPathParameters[#messageId];
|
||||||
|
if (messageIdStr == null) {
|
||||||
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Invalid message ID'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
final messageId = int.tryParse(messageIdStr);
|
final messageId = int.tryParse(messageIdStr);
|
||||||
if (messageId == null) {
|
if (messageId == null) {
|
||||||
return Response.badRequest(
|
return Response.badRequest(
|
||||||
@@ -217,7 +233,7 @@ Future<Response> deleteMessageHandler(Request req, String messageIdStr) async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get user to verify ownership
|
// Get user to verify ownership
|
||||||
final userQuery = userBox.query(User_.userId.equals(userId)).build();
|
final userQuery = userBox.query(ChatUser_.userId.equals(userId)).build();
|
||||||
final user = userQuery.findFirst();
|
final user = userQuery.findFirst();
|
||||||
userQuery.close();
|
userQuery.close();
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import 'package:chat_server/models.dart';
|
|
||||||
import 'package:chat_server/objectbox.g.dart';
|
import 'package:chat_server/objectbox.g.dart';
|
||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
|
import '../../config/config.dart';
|
||||||
|
import '../state/app_state.dart';
|
||||||
import '../utils/extensions.dart';
|
import '../utils/extensions.dart';
|
||||||
|
|
||||||
/// Public endpoint for cross-server identity verification
|
/// Public endpoint for cross-server identity verification
|
||||||
@@ -9,10 +10,19 @@ import '../utils/extensions.dart';
|
|||||||
///
|
///
|
||||||
/// GET /.well-known/users/{username}
|
/// GET /.well-known/users/{username}
|
||||||
/// Returns: { userId, publicKey, username, displayName, avatarUrl }
|
/// Returns: { userId, publicKey, username, displayName, avatarUrl }
|
||||||
Future<Response> publicUserHandler(Request req, String username) async {
|
Future<Response> publicUserHandler(Request req) async {
|
||||||
final query = userBox.query(
|
final username = req.rawPathParameters[#username];
|
||||||
User_.username.equals(username) & User_.isLocal.equals(true),
|
if (username == null) {
|
||||||
).build();
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('Username required'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final query = userBox
|
||||||
|
.query(
|
||||||
|
ChatUser_.username.equals(username) & ChatUser_.isLocal.equals(true),
|
||||||
|
)
|
||||||
|
.build();
|
||||||
|
|
||||||
final user = query.findFirst();
|
final user = query.findFirst();
|
||||||
query.close();
|
query.close();
|
||||||
@@ -42,10 +52,19 @@ Future<Response> publicUserHandler(Request req, String username) async {
|
|||||||
///
|
///
|
||||||
/// GET /.well-known/verify/{userId}
|
/// GET /.well-known/verify/{userId}
|
||||||
/// Returns: { exists, userId, publicKey }
|
/// Returns: { exists, userId, publicKey }
|
||||||
Future<Response> publicVerifyHandler(Request req, String userId) async {
|
Future<Response> publicVerifyHandler(Request req) async {
|
||||||
final query = userBox.query(
|
final userId = req.rawPathParameters[#userId];
|
||||||
User_.userId.equals(userId) & User_.isLocal.equals(true),
|
if (userId == null) {
|
||||||
).build();
|
return Response.badRequest(
|
||||||
|
body: Body.fromString('userId required'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final query = userBox
|
||||||
|
.query(
|
||||||
|
ChatUser_.userId.equals(userId) & ChatUser_.isLocal.equals(true),
|
||||||
|
)
|
||||||
|
.build();
|
||||||
|
|
||||||
final user = query.findFirst();
|
final user = query.findFirst();
|
||||||
query.close();
|
query.close();
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import 'dart:convert';
|
|||||||
|
|
||||||
import 'package:relic/relic.dart';
|
import 'package:relic/relic.dart';
|
||||||
|
|
||||||
import '../config/config.dart';
|
|
||||||
|
|
||||||
extension RequestHelper on Request {
|
extension RequestHelper on Request {
|
||||||
/// Parses the request body as JSON
|
/// Parses the request body as JSON
|
||||||
Future<Map<String, dynamic>> asJson() async {
|
Future<Map<String, dynamic>> asJson() async {
|
||||||
|
|||||||
+597
@@ -0,0 +1,597 @@
|
|||||||
|
# Generated by pub
|
||||||
|
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||||
|
packages:
|
||||||
|
_fe_analyzer_shared:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: _fe_analyzer_shared
|
||||||
|
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "67.0.0"
|
||||||
|
adaptive_number:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: adaptive_number
|
||||||
|
sha256: "3a567544e9b5c9c803006f51140ad544aedc79604fd4f3f2c1380003f97c1d77"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
|
analyzer:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: analyzer
|
||||||
|
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "6.4.1"
|
||||||
|
args:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: args
|
||||||
|
sha256: d0481093c50b1da8910eb0bb301626d4d8eb7284aa739614d2b394ee09e3ea04
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.7.0"
|
||||||
|
asn1lib:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: asn1lib
|
||||||
|
sha256: "9a8f69025044eb466b9b60ef3bc3ac99b4dc6c158ae9c56d25eeccf5bc56d024"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.6.5"
|
||||||
|
async:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: async
|
||||||
|
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.13.0"
|
||||||
|
bcrypt:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: bcrypt
|
||||||
|
sha256: "6073a700cbbc59f1d4ab27cd532755e3de5e676c4941f535f351374df849270b"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.2.0"
|
||||||
|
boolean_selector:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: boolean_selector
|
||||||
|
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.2"
|
||||||
|
build:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build
|
||||||
|
sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.4.1"
|
||||||
|
build_config:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build_config
|
||||||
|
sha256: "4ae2de3e1e67ea270081eaee972e1bd8f027d459f249e0f1186730784c2e7e33"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.2"
|
||||||
|
build_daemon:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build_daemon
|
||||||
|
sha256: bf05f6e12cfea92d3c09308d7bcdab1906cd8a179b023269eed00c071004b957
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.1.1"
|
||||||
|
build_resolvers:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build_resolvers
|
||||||
|
sha256: "339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.4.2"
|
||||||
|
build_runner:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description:
|
||||||
|
name: build_runner
|
||||||
|
sha256: "028819cfb90051c6b5440c7e574d1896f8037e3c96cf17aaeb054c9311cfbf4d"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.4.13"
|
||||||
|
build_runner_core:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: build_runner_core
|
||||||
|
sha256: f8126682b87a7282a339b871298cc12009cb67109cfa1614d6436fb0289193e0
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "7.3.2"
|
||||||
|
built_collection:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: built_collection
|
||||||
|
sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "5.1.1"
|
||||||
|
built_value:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: built_value
|
||||||
|
sha256: "7931c90b84bc573fef103548e354258ae4c9d28d140e41961df6843c5d60d4d8"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "8.12.3"
|
||||||
|
checked_yaml:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: checked_yaml
|
||||||
|
sha256: "959525d3162f249993882720d52b7e0c833978df229be20702b33d48d91de70f"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.4"
|
||||||
|
clock:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: clock
|
||||||
|
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.2"
|
||||||
|
code_builder:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: code_builder
|
||||||
|
sha256: "6a6cab2ba4680d6423f34a9b972a4c9a94ebe1b62ecec4e1a1f2cba91fd1319d"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.11.1"
|
||||||
|
collection:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: collection
|
||||||
|
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.19.1"
|
||||||
|
convert:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: convert
|
||||||
|
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.1.2"
|
||||||
|
crypto:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: crypto
|
||||||
|
sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.0.7"
|
||||||
|
crypton:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: crypton
|
||||||
|
sha256: "17b6631fbf89e389d421b46629132287ed37d601b2ad1357445826ab85022271"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.1"
|
||||||
|
dart_jsonwebtoken:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: dart_jsonwebtoken
|
||||||
|
sha256: b268ff9bb87a16360a397f1accb50e7c781384e1119010b34f6d7c25820c44d8
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.1.1"
|
||||||
|
dart_style:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: dart_style
|
||||||
|
sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.3.6"
|
||||||
|
ed25519_edwards:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: ed25519_edwards
|
||||||
|
sha256: "6ce0112d131327ec6d42beede1e5dfd526069b18ad45dcf654f15074ad9276cd"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.3.1"
|
||||||
|
ffi:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: ffi
|
||||||
|
sha256: "6d7fd89431262d8f3125e81b50d3847a091d846eafcd4fdb88dd06f36d705a45"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.0"
|
||||||
|
file:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: file
|
||||||
|
sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "7.0.1"
|
||||||
|
fixnum:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: fixnum
|
||||||
|
sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.1"
|
||||||
|
flat_buffers:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: flat_buffers
|
||||||
|
sha256: "380bdcba5664a718bfd4ea20a45d39e13684f5318fcd8883066a55e21f37f4c3"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "23.5.26"
|
||||||
|
frontend_server_client:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: frontend_server_client
|
||||||
|
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.0.0"
|
||||||
|
glob:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: glob
|
||||||
|
sha256: c3f1ee72c96f8f78935e18aa8cecced9ab132419e8625dc187e1c2408efc20de
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.3"
|
||||||
|
graphs:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: graphs
|
||||||
|
sha256: "741bbf84165310a68ff28fe9e727332eef1407342fca52759cb21ad8177bb8d0"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.3.2"
|
||||||
|
hotreloader:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: hotreloader
|
||||||
|
sha256: bc167a1163807b03bada490bfe2df25b0d744df359227880220a5cbd04e5734b
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.3.0"
|
||||||
|
http:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: http
|
||||||
|
sha256: "87721a4a50b19c7f1d49001e51409bddc46303966ce89a65af4f4e6004896412"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.6.0"
|
||||||
|
http_multi_server:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: http_multi_server
|
||||||
|
sha256: aa6199f908078bb1c5efb8d8638d4ae191aac11b311132c3ef48ce352fb52ef8
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.2.2"
|
||||||
|
http_parser:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: http_parser
|
||||||
|
sha256: "178d74305e7866013777bab2c3d8726205dc5a4dd935297175b19a23a2e66571"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.1.2"
|
||||||
|
io:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: io
|
||||||
|
sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.5"
|
||||||
|
js:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: js
|
||||||
|
sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.7.2"
|
||||||
|
json_annotation:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: json_annotation
|
||||||
|
sha256: cb09e7dac6210041fad964ed7fbee004f14258b4eca4040f72d1234062ace4c8
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.11.0"
|
||||||
|
lints:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description:
|
||||||
|
name: lints
|
||||||
|
sha256: "12f842a479589fea194fe5c5a3095abc7be0c1f2ddfa9a0e76aed1dbd26a87df"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "6.1.0"
|
||||||
|
logging:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: logging
|
||||||
|
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.3.0"
|
||||||
|
matcher:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: matcher
|
||||||
|
sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.12.18"
|
||||||
|
meta:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: meta
|
||||||
|
sha256: "9f29b9bcc8ee287b1a31e0d01be0eae99a930dbffdaecf04b3f3d82a969f296f"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.18.1"
|
||||||
|
mime:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: mime
|
||||||
|
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.0"
|
||||||
|
objectbox:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: objectbox
|
||||||
|
sha256: "3d1cb5f9aa564f95c76ba251299f6cb1591c3dd8ff05fd76fa0549d899d9fe31"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.1.0"
|
||||||
|
objectbox_generator:
|
||||||
|
dependency: "direct dev"
|
||||||
|
description:
|
||||||
|
name: objectbox_generator
|
||||||
|
sha256: "777924e14daf18603a023b346333acac1c4fce9fe4a715b85d98cfcc723d9a1a"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "4.1.0"
|
||||||
|
package_config:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: package_config
|
||||||
|
sha256: f096c55ebb7deb7e384101542bfba8c52696c1b56fca2eb62827989ef2353bbc
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.0"
|
||||||
|
path:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: path
|
||||||
|
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.9.1"
|
||||||
|
pointycastle:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pointycastle
|
||||||
|
sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.9.1"
|
||||||
|
pool:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pool
|
||||||
|
sha256: "978783255c543aa3586a1b3c21f6e9d720eb315376a915872c61ef8b5c20177d"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.2"
|
||||||
|
pub_semver:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pub_semver
|
||||||
|
sha256: "5bfcf68ca79ef689f8990d1160781b4bad40a3bd5e5218ad4076ddb7f4081585"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.2.0"
|
||||||
|
pubspec_parse:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: pubspec_parse
|
||||||
|
sha256: "0560ba233314abbed0a48a2956f7f022cce7c3e1e73df540277da7544cad4082"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.0"
|
||||||
|
relic:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: relic
|
||||||
|
sha256: d87e88a2dd758b67a03bfbedd7f62ef81f44734a4851ec51547b51502cd2f114
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
|
relic_core:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: relic_core
|
||||||
|
sha256: caefeef3a85580357cf2d6f70c4a3f9de3e2375ec22196aa983b84c8f463c960
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
|
relic_io:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: relic_io
|
||||||
|
sha256: "9f2148ae0b8ca60e241c980e37216eb416e1342d51992266fcd5d18b8092b820"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.0"
|
||||||
|
shelf:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: shelf
|
||||||
|
sha256: e7dd780a7ffb623c57850b33f43309312fc863fb6aa3d276a754bb299839ef12
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.4.2"
|
||||||
|
shelf_web_socket:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: shelf_web_socket
|
||||||
|
sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.0.1"
|
||||||
|
source_gen:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: source_gen
|
||||||
|
sha256: "14658ba5f669685cd3d63701d01b31ea748310f7ab854e471962670abcf57832"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.5.0"
|
||||||
|
source_span:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: source_span
|
||||||
|
sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.10.2"
|
||||||
|
stack_trace:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: stack_trace
|
||||||
|
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.12.1"
|
||||||
|
stream_channel:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: stream_channel
|
||||||
|
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.4"
|
||||||
|
stream_transform:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: stream_transform
|
||||||
|
sha256: ad47125e588cfd37a9a7f86c7d6356dde8dfe89d071d293f80ca9e9273a33871
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "2.1.1"
|
||||||
|
string_scanner:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: string_scanner
|
||||||
|
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.4.1"
|
||||||
|
term_glyph:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: term_glyph
|
||||||
|
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.2.2"
|
||||||
|
test_api:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: test_api
|
||||||
|
sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.7.9"
|
||||||
|
timing:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: timing
|
||||||
|
sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.2"
|
||||||
|
typed_data:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: typed_data
|
||||||
|
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.4.0"
|
||||||
|
vm_service:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: vm_service
|
||||||
|
sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "15.0.2"
|
||||||
|
watcher:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: watcher
|
||||||
|
sha256: "1398c9f081a753f9226febe8900fce8f7d0a67163334e1c94a2438339d79d635"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.2.1"
|
||||||
|
web:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: web
|
||||||
|
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.1.1"
|
||||||
|
web_socket:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: web_socket
|
||||||
|
sha256: "34d64019aa8e36bf9842ac014bb5d2f5586ca73df5e4d9bf5c936975cae6982c"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.0.1"
|
||||||
|
web_socket_channel:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: web_socket_channel
|
||||||
|
sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.0.3"
|
||||||
|
yaml:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: yaml
|
||||||
|
sha256: b9da305ac7c39faa3f030eccd175340f968459dae4af175130b3fc47e40d76ce
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.1.3"
|
||||||
|
sdks:
|
||||||
|
dart: ">=3.9.0 <4.0.0"
|
||||||
+12
-12
@@ -3,19 +3,19 @@ description: A self-hosted chat server with home server identity model.
|
|||||||
version: 0.1.0
|
version: 0.1.0
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=3.0.0 <4.0.0'
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
relic: ^1.0.0
|
relic:
|
||||||
objectbox: ^4.0.0
|
objectbox:
|
||||||
dart_jsonwebtoken: ^2.14.0
|
dart_jsonwebtoken:
|
||||||
bcrypt: ^1.1.3
|
bcrypt:
|
||||||
crypton: ^2.2.1
|
crypton:
|
||||||
crypto: ^3.0.3
|
crypto:
|
||||||
collection: ^1.18.0
|
collection:
|
||||||
hotreloader: ^1.0.6
|
hotreloader:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
objectbox_generator: ^4.0.0
|
objectbox_generator:
|
||||||
build_runner: ^2.4.0
|
build_runner:
|
||||||
lints: ^4.0.0
|
lints:
|
||||||
Reference in new issue
Block a user