simple-module-dashboard 0.0.26__tar.gz → 0.0.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/.gitignore +1 -0
  2. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/PKG-INFO +5 -5
  3. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/module.py +1 -0
  4. simple_module_dashboard-0.0.28/dashboard/styles.css +18 -0
  5. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/package.json +1 -1
  6. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/pyproject.toml +5 -5
  7. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/tsconfig.json +0 -1
  8. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/LICENSE +0 -0
  9. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/README.md +0 -0
  10. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/__init__.py +0 -0
  11. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/endpoints/__init__.py +0 -0
  12. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/endpoints/api.py +0 -0
  13. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/endpoints/views.py +0 -0
  14. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/locales/en.json +0 -0
  15. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/locales/es.json +0 -0
  16. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/pages/Doctor.tsx +0 -0
  17. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/pages/Home.tsx +0 -0
  18. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/pages/components/DemoPlaceholders.tsx +0 -0
  19. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/pages/components/doctor-data.ts +0 -0
  20. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/py.typed +0 -0
  21. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/dashboard/stats.py +0 -0
  22. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/tests/test_dashboard.py +0 -0
  23. {simple_module_dashboard-0.0.26 → simple_module_dashboard-0.0.28}/tests/test_view_routes.py +0 -0
@@ -45,6 +45,7 @@ docs/.vitepress/dist/
45
45
  host/client_app/modules.manifest.json
46
46
  host/client_app/modules.generated.ts
47
47
  host/client_app/modules.generated.css
48
+ host/client_app/modules.assets.json
48
49
 
49
50
  # Worktrees
50
51
  .worktrees/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: simple_module_dashboard
3
- Version: 0.0.26
3
+ Version: 0.0.28
4
4
  Summary: Admin landing page and sidebar menu host for authenticated users of a simple_module app
5
5
  Project-URL: Homepage, https://github.com/antosubash/simple_module_python
6
6
  Project-URL: Repository, https://github.com/antosubash/simple_module_python
@@ -21,10 +21,10 @@ Classifier: Topic :: Internet :: WWW/HTTP
21
21
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
22
22
  Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.12
24
- Requires-Dist: simple-module-core==0.0.26
25
- Requires-Dist: simple-module-db==0.0.26
26
- Requires-Dist: simple-module-hosting==0.0.26
27
- Requires-Dist: simple-module-users==0.0.26
24
+ Requires-Dist: simple-module-core==0.0.28
25
+ Requires-Dist: simple-module-db==0.0.28
26
+ Requires-Dist: simple-module-hosting==0.0.28
27
+ Requires-Dist: simple-module-users==0.0.28
28
28
  Description-Content-Type: text/markdown
29
29
 
30
30
  # simple_module_dashboard
@@ -22,6 +22,7 @@ class DashboardModule(ModuleBase):
22
22
  route_prefix="/api/dashboard",
23
23
  view_prefix="/dashboard",
24
24
  depends_on=[_MODULE_USERS],
25
+ i18n_audience="admin",
25
26
  )
26
27
 
27
28
  def register_routes(self, api_router: APIRouter, view_router: APIRouter) -> None:
@@ -0,0 +1,18 @@
1
+ /* Dashboard module component styles.
2
+ *
3
+ * Picked up automatically by `smpy host gen-pages`, which emits
4
+ * @import "#module/dashboard/styles.css" layer(components);
5
+ * into host/client_app/modules.generated.css. Nothing needs to be added to
6
+ * the host's styles.css by hand.
7
+ *
8
+ * Rules here live in layer(components) and therefore always lose to a
9
+ * Tailwind utility, so a consuming app can still override any of this with
10
+ * a class on the element. Design tokens belong in theme.css instead — a
11
+ * @theme block is inert inside a cascade layer.
12
+ */
13
+ @layer components {
14
+ .dashboard-stat-grid {
15
+ display: grid;
16
+ gap: var(--spacing, 0.25rem);
17
+ }
18
+ }
@@ -13,6 +13,6 @@
13
13
  "@simple-module-py/tsconfig": "*"
14
14
  },
15
15
  "dependencies": {
16
- "lucide-react": "^1.8.0"
16
+ "lucide-react": "^1.28.0"
17
17
  }
18
18
  }
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "simple_module_dashboard"
3
- version = "0.0.26"
3
+ version = "0.0.28"
4
4
  description = "Admin landing page and sidebar menu host for authenticated users of a simple_module app"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -21,10 +21,10 @@ classifiers = [
21
21
  "Typing :: Typed",
22
22
  ]
23
23
  dependencies = [
24
- "simple_module_core==0.0.26",
25
- "simple_module_db==0.0.26",
26
- "simple_module_hosting==0.0.26",
27
- "simple_module_users==0.0.26",
24
+ "simple_module_core==0.0.28",
25
+ "simple_module_db==0.0.28",
26
+ "simple_module_hosting==0.0.28",
27
+ "simple_module_users==0.0.28",
28
28
  ]
29
29
 
30
30
  [project.entry-points.simple_module]
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "@simple-module-py/tsconfig/base.json",
3
3
  "compilerOptions": {
4
- "baseUrl": ".",
5
4
  "paths": {
6
5
  "@/*": ["./dashboard/*"],
7
6
  "@simple-module-py/ui/*": ["../../packages/ui/src/*"]