jac-client 0.2.8__py3-none-any.whl → 0.2.11__py3-none-any.whl

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 (119) hide show
  1. jac_client/examples/all-in-one/button.jac +4 -3
  2. jac_client/examples/all-in-one/components/CategoryFilter.jac +36 -24
  3. jac_client/examples/all-in-one/components/Header.jac +12 -8
  4. jac_client/examples/all-in-one/components/ProfitOverview.jac +49 -35
  5. jac_client/examples/all-in-one/components/Summary.jac +59 -36
  6. jac_client/examples/all-in-one/components/TransactionForm.jac +142 -112
  7. jac_client/examples/all-in-one/components/TransactionItem.jac +37 -30
  8. jac_client/examples/all-in-one/components/TransactionList.jac +33 -26
  9. jac_client/examples/all-in-one/components/button.jac +4 -3
  10. jac_client/examples/all-in-one/components/navigation.jac +111 -117
  11. jac_client/examples/all-in-one/constants/categories.jac +23 -24
  12. jac_client/examples/all-in-one/constants/clients.jac +7 -8
  13. jac_client/examples/all-in-one/context/BudgetContext.jac +9 -6
  14. jac_client/examples/all-in-one/hooks/useBudget.jac +18 -12
  15. jac_client/examples/all-in-one/hooks/useLocalStorage.jac +14 -13
  16. jac_client/examples/all-in-one/main.jac +542 -0
  17. jac_client/examples/all-in-one/pages/BudgetPlanner.jac +26 -12
  18. jac_client/examples/all-in-one/pages/FeaturesTest.jac +43 -12
  19. jac_client/examples/all-in-one/pages/LandingPage.jac +113 -90
  20. jac_client/examples/all-in-one/pages/budget_planner_ui.cl.jac +65 -0
  21. jac_client/examples/all-in-one/pages/features_test_ui.cl.jac +675 -0
  22. jac_client/examples/all-in-one/pages/loginPage.jac +114 -119
  23. jac_client/examples/all-in-one/pages/nestedDemo.jac +44 -51
  24. jac_client/examples/all-in-one/pages/notFound.jac +15 -21
  25. jac_client/examples/all-in-one/pages/signupPage.jac +113 -119
  26. jac_client/examples/all-in-one/utils/formatters.jac +5 -8
  27. jac_client/examples/asset-serving/css-with-image/main.jac +92 -0
  28. jac_client/examples/asset-serving/image-asset/main.jac +56 -0
  29. jac_client/examples/asset-serving/import-alias/main.jac +109 -0
  30. jac_client/examples/basic/main.jac +23 -0
  31. jac_client/examples/basic-auth/main.jac +363 -0
  32. jac_client/examples/basic-auth-with-router/main.jac +451 -0
  33. jac_client/examples/basic-full-stack/main.jac +362 -0
  34. jac_client/examples/css-styling/js-styling/main.jac +63 -0
  35. jac_client/examples/css-styling/material-ui/main.jac +122 -0
  36. jac_client/examples/css-styling/pure-css/main.jac +55 -0
  37. jac_client/examples/css-styling/sass-example/main.jac +55 -0
  38. jac_client/examples/css-styling/styled-components/main.jac +62 -0
  39. jac_client/examples/css-styling/tailwind-example/main.jac +74 -0
  40. jac_client/examples/full-stack-with-auth/main.jac +696 -0
  41. jac_client/examples/little-x/main.jac +681 -0
  42. jac_client/examples/little-x/src/submit-button.jac +15 -14
  43. jac_client/examples/nested-folders/nested-advance/main.jac +26 -0
  44. jac_client/examples/nested-folders/nested-advance/src/ButtonRoot.jac +4 -6
  45. jac_client/examples/nested-folders/nested-advance/src/level1/ButtonSecondL.jac +9 -13
  46. jac_client/examples/nested-folders/nested-advance/src/level1/Card.jac +29 -32
  47. jac_client/examples/nested-folders/nested-advance/src/level1/level2/ButtonThirdL.jac +12 -18
  48. jac_client/examples/nested-folders/nested-basic/{src/app.jac → main.jac} +7 -5
  49. jac_client/examples/nested-folders/nested-basic/src/button.jac +4 -3
  50. jac_client/examples/nested-folders/nested-basic/src/components/button.jac +4 -3
  51. jac_client/examples/ts-support/main.jac +35 -0
  52. jac_client/examples/with-router/main.jac +286 -0
  53. jac_client/plugin/cli.jac +491 -411
  54. jac_client/plugin/client.jac +25 -0
  55. jac_client/plugin/client_runtime.cl.jac +10 -4
  56. jac_client/plugin/impl/client.impl.jac +96 -55
  57. jac_client/plugin/impl/client_runtime.impl.jac +155 -1
  58. jac_client/plugin/plugin_config.jac +211 -29
  59. jac_client/plugin/src/__init__.jac +0 -2
  60. jac_client/plugin/src/compiler.jac +0 -1
  61. jac_client/plugin/src/config_loader.jac +1 -0
  62. jac_client/plugin/src/desktop_config.jac +31 -0
  63. jac_client/plugin/src/impl/compiler.impl.jac +49 -17
  64. jac_client/plugin/src/impl/config_loader.impl.jac +8 -0
  65. jac_client/plugin/src/impl/desktop_config.impl.jac +191 -0
  66. jac_client/plugin/src/impl/jac_to_js.impl.jac +5 -1
  67. jac_client/plugin/src/impl/package_installer.impl.jac +20 -20
  68. jac_client/plugin/src/impl/vite_bundler.impl.jac +191 -64
  69. jac_client/plugin/src/targets/desktop/sidecar/main.py +144 -0
  70. jac_client/plugin/src/targets/desktop_target.jac +37 -0
  71. jac_client/plugin/src/targets/impl/desktop_target.impl.jac +2347 -0
  72. jac_client/plugin/src/targets/impl/registry.impl.jac +64 -0
  73. jac_client/plugin/src/targets/impl/web_target.impl.jac +157 -0
  74. jac_client/plugin/src/targets/register.jac +21 -0
  75. jac_client/plugin/src/targets/registry.jac +87 -0
  76. jac_client/plugin/src/targets/web_target.jac +35 -0
  77. jac_client/plugin/src/vite_bundler.jac +6 -0
  78. jac_client/plugin/utils/__init__.jac +3 -0
  79. jac_client/plugin/utils/bun_installer.jac +16 -0
  80. jac_client/plugin/utils/impl/bun_installer.impl.jac +99 -0
  81. jac_client/templates/client.jacpack +72 -0
  82. jac_client/templates/fullstack.jacpack +61 -0
  83. jac_client/tests/conftest.py +103 -47
  84. jac_client/tests/fixtures/spawn_test/app.jac +49 -52
  85. jac_client/tests/fixtures/with-ts/app.jac +27 -27
  86. jac_client/tests/test_cli.py +182 -71
  87. jac_client/tests/test_e2e.py +232 -0
  88. jac_client/tests/test_helpers.py +58 -0
  89. jac_client/tests/test_it.py +91 -135
  90. jac_client/tests/test_it_desktop.py +891 -0
  91. {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/METADATA +6 -6
  92. jac_client-0.2.11.dist-info/RECORD +113 -0
  93. {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/WHEEL +1 -1
  94. jac_client/examples/all-in-one/app.jac +0 -573
  95. jac_client/examples/all-in-one/pages/BudgetPlanner.cl.jac +0 -70
  96. jac_client/examples/all-in-one/pages/FeaturesTest.cl.jac +0 -552
  97. jac_client/examples/asset-serving/css-with-image/src/app.jac +0 -88
  98. jac_client/examples/asset-serving/image-asset/src/app.jac +0 -55
  99. jac_client/examples/asset-serving/import-alias/src/app.jac +0 -111
  100. jac_client/examples/basic/src/app.jac +0 -21
  101. jac_client/examples/basic-auth/src/app.jac +0 -371
  102. jac_client/examples/basic-auth-with-router/src/app.jac +0 -464
  103. jac_client/examples/basic-full-stack/src/app.jac +0 -359
  104. jac_client/examples/css-styling/js-styling/src/app.jac +0 -84
  105. jac_client/examples/css-styling/material-ui/src/app.jac +0 -122
  106. jac_client/examples/css-styling/pure-css/src/app.jac +0 -64
  107. jac_client/examples/css-styling/sass-example/src/app.jac +0 -64
  108. jac_client/examples/css-styling/styled-components/src/app.jac +0 -71
  109. jac_client/examples/css-styling/tailwind-example/src/app.jac +0 -63
  110. jac_client/examples/full-stack-with-auth/src/app.jac +0 -722
  111. jac_client/examples/little-x/src/app.jac +0 -719
  112. jac_client/examples/nested-folders/nested-advance/src/app.jac +0 -35
  113. jac_client/examples/ts-support/src/app.jac +0 -35
  114. jac_client/examples/with-router/src/app.jac +0 -323
  115. jac_client/plugin/src/babel_processor.jac +0 -18
  116. jac_client/plugin/src/impl/babel_processor.impl.jac +0 -89
  117. jac_client-0.2.8.dist-info/RECORD +0 -97
  118. {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/entry_points.txt +0 -0
  119. {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/top_level.txt +0 -0
@@ -1,101 +1,124 @@
1
1
  # Landing Page - Ledgerly Brand
2
2
  # Professional landing page with hero, features, and CTA sections
3
3
  # Demonstrates: routing with Link, dark theme design, responsive layout
4
- cl import from "@jac-client/utils" {
4
+ cl import from "@jac/runtime" {
5
5
  Link,
6
-
7
6
  }
8
7
 
9
-
10
-
11
8
  cl {
12
- def:pub LandingPage() -> any {
13
- return <div className="landing-container">
14
- <section className="hero-section">
15
- <h1 className="brand-name">Ledgerly</h1>
16
- <p className="tagline">Know your real income</p>
17
-
18
- <h2 className="headline">
19
- Track Business & Personal Finances Separately
20
- </h2>
21
- <p className="subheadline">
22
- Built for freelancers who need to see their true income
23
- after taxes and business expenses.
24
- </p>
25
-
26
- <div style={{"display": "flex", "gap": "15px", "justifyContent": "center"}}>
27
- <Link to="/app">
28
- <button className="cta-button">
29
- Let's Plan
30
- </button>
31
- </Link>
32
- <Link to="/features">
33
- <button className="cta-button" style={{
34
- "backgroundColor": "#8b5cf6",
35
- "border": "2px solid #8b5cf6"
36
- }}>
37
- Test Features
38
- </button>
39
- </Link>
40
- </div>
41
- </section>
42
-
43
- <section className="features-section">
44
- <h2 className="features-title">Built for Freelancers</h2>
45
-
46
- <div className="features-grid">
47
- <div className="feature-card">
48
- <div className="feature-icon">💼</div>
49
- <h3 className="feature-title">Business vs Personal</h3>
50
- <p className="feature-description">
51
- Tag every transaction as business or personal.
52
- See your income streams separately and understand where your money really comes from.
9
+ def:pub LandingPage -> any {
10
+ return
11
+ <div className="landing-container">
12
+ <section className="hero-section">
13
+ <h1 className="brand-name">
14
+ Ledgerly
15
+ </h1>
16
+ <p className="tagline">
17
+ Know your real income
53
18
  </p>
54
- </div>
55
-
56
- <div className="feature-card">
57
- <div className="feature-icon">📊</div>
58
- <h3 className="feature-title">Auto Tax Reserve</h3>
59
- <p className="feature-description">
60
- Automatically calculate 20% tax reserve on business income.
61
- Know your true net profit after taxes without surprises.
19
+ <h2 className="headline">
20
+ Track Business & Personal Finances Separately
21
+ </h2>
22
+ <p className="subheadline">
23
+ Built for freelancers who need to see their true incomeafter taxes and business expenses.
62
24
  </p>
63
- </div>
64
-
65
- <div className="feature-card">
66
- <div className="feature-icon">🏷️</div>
67
- <h3 className="feature-title">Client Tagging</h3>
68
- <p className="feature-description">
69
- Tag business income by client name. Track which clients
70
- are generating the most revenue for your business.
25
+ <div
26
+ style={{
27
+ "display": "flex",
28
+ "gap": "15px",
29
+ "justifyContent": "center"
30
+ }}
31
+ >
32
+ <Link to="/app">
33
+ <button className="cta-button">
34
+ Let's Plan
35
+ </button>
36
+ </Link>
37
+ <Link to="/features">
38
+ <button
39
+ className="cta-button"
40
+ style={{
41
+ "backgroundColor": "#8b5cf6",
42
+ "border": "2px solid #8b5cf6"
43
+ }}
44
+ >
45
+ Test Features
46
+ </button>
47
+ </Link>
48
+ </div>
49
+ </section>
50
+ <section className="features-section">
51
+ <h2 className="features-title">
52
+ Built for Freelancers
53
+ </h2>
54
+ <div className="features-grid">
55
+ <div className="feature-card">
56
+ <div className="feature-icon">
57
+ 💼
58
+ </div>
59
+ <h3 className="feature-title">
60
+ Business vs Personal
61
+ </h3>
62
+ <p className="feature-description">
63
+ Tag every transaction as business or personal.See your income streams separately and understand where your money really comes from.
64
+ </p>
65
+ </div>
66
+ <div className="feature-card">
67
+ <div className="feature-icon">
68
+ 📊
69
+ </div>
70
+ <h3 className="feature-title">
71
+ Auto Tax Reserve
72
+ </h3>
73
+ <p className="feature-description">
74
+ Automatically calculate 20% tax reserve on business income.Know your true net profit after taxes without surprises.
75
+ </p>
76
+ </div>
77
+ <div className="feature-card">
78
+ <div className="feature-icon">
79
+ 🏷️
80
+ </div>
81
+ <h3 className="feature-title">
82
+ Client Tagging
83
+ </h3>
84
+ <p className="feature-description">
85
+ Tag business income by client name. Track which clientsare generating the most revenue for your business.
86
+ </p>
87
+ </div>
88
+ </div>
89
+ </section>
90
+ <section className="cta-section">
91
+ <h2 className="cta-section-title">
92
+ Ready to know your real income?
93
+ </h2>
94
+ <p className="cta-section-text">
95
+ Start tracking your freelance finances the smart way.
71
96
  </p>
72
- </div>
73
- </div>
74
- </section>
75
-
76
- <section className="cta-section">
77
- <h2 className="cta-section-title">Ready to know your real income?</h2>
78
- <p className="cta-section-text">
79
- Start tracking your freelance finances the smart way.
80
- </p>
81
-
82
- <div style={{"display": "flex", "gap": "15px", "justifyContent": "center"}}>
83
- <Link to="/app">
84
- <button className="cta-button">
85
- Get Started Free
86
- </button>
87
- </Link>
88
- <Link to="/features">
89
- <button className="cta-button" style={{
90
- "backgroundColor": "#8b5cf6",
91
- "border": "2px solid #8b5cf6"
92
- }}>
93
- Explore Features
94
- </button>
95
- </Link>
96
- </div>
97
- </section>
98
- </div>;
99
- }
100
-
97
+ <div
98
+ style={{
99
+ "display": "flex",
100
+ "gap": "15px",
101
+ "justifyContent": "center"
102
+ }}
103
+ >
104
+ <Link to="/app">
105
+ <button className="cta-button">
106
+ Get Started Free
107
+ </button>
108
+ </Link>
109
+ <Link to="/features">
110
+ <button
111
+ className="cta-button"
112
+ style={{
113
+ "backgroundColor": "#8b5cf6",
114
+ "border": "2px solid #8b5cf6"
115
+ }}
116
+ >
117
+ Explore Features
118
+ </button>
119
+ </Link>
120
+ </div>
121
+ </section>
122
+ </div>;
123
+ }
101
124
  }
@@ -0,0 +1,65 @@
1
+ # Budget Planner Page
2
+ # Main application page with budget tracking features
3
+
4
+ # Local JAC file imports
5
+ cl import from ..context.BudgetContext { useBudgetContext }
6
+ cl import from ..components.Header { Header }
7
+ cl import from ..components.Summary { Summary }
8
+ cl import from ..components.ProfitOverview { ProfitOverview }
9
+ cl import from ..components.TransactionForm { TransactionForm }
10
+ cl import from ..components.TransactionList { TransactionList }
11
+ cl import from ..components.CategoryFilter { CategoryFilter }
12
+ cl import from ..constants.categories { CATEGORY_COLORS }
13
+
14
+ # cl import from "..components.PieChart.tsx" { PieChart }
15
+ cl def:pub BudgetPlanner -> any {
16
+ [filter, setFilter] = useState("ALL");
17
+ budget = useBudgetContext();
18
+
19
+ # Filter transactions based on selected category
20
+ filtered = budget["transactions"];
21
+ if filter != "ALL" {
22
+ filtered = filtered.filter(
23
+ lambda tx: dict -> bool { return tx["category"] == filter; }
24
+ );
25
+ }
26
+
27
+ # Sort by date (newest first)
28
+ sorted = filtered.slice().sort(
29
+ lambda a: dict , b: dict -> int { return Reflect.construct(Date, [b["date"]]).getTime() - Reflect.construct(
30
+ Date, [a["date"]]
31
+ ).getTime(); }
32
+ );
33
+
34
+ # Prepare chart data with colors
35
+ chartData = budget["expensesByCategory"].map(
36
+ lambda item: dict -> dict { return {
37
+ "name": item["name"],
38
+ "value": item["value"],
39
+ "color": CATEGORY_COLORS[item["name"]]
40
+ }; }
41
+ );
42
+
43
+ return
44
+ <div className="app-container">
45
+ <Header />
46
+ <main className="main-content">
47
+ <div className="left-panel">
48
+ <Summary />
49
+ <ProfitOverview />
50
+ <TransactionForm />
51
+ <CategoryFilter selectedCategory={filter} onSelect={setFilter} />
52
+ <TransactionList
53
+ transactions={sorted}
54
+ onDelete={budget["deleteTransaction"]}
55
+ />
56
+ </div>
57
+ <div className="right-panel"></div>
58
+ </main>
59
+ </div>;
60
+ }
61
+ # <PieChart
62
+ # data={chartData}
63
+ # title="Expense Breakdown"
64
+ # colors={CATEGORY_COLORS}
65
+ # />