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.
- jac_client/examples/all-in-one/button.jac +4 -3
- jac_client/examples/all-in-one/components/CategoryFilter.jac +36 -24
- jac_client/examples/all-in-one/components/Header.jac +12 -8
- jac_client/examples/all-in-one/components/ProfitOverview.jac +49 -35
- jac_client/examples/all-in-one/components/Summary.jac +59 -36
- jac_client/examples/all-in-one/components/TransactionForm.jac +142 -112
- jac_client/examples/all-in-one/components/TransactionItem.jac +37 -30
- jac_client/examples/all-in-one/components/TransactionList.jac +33 -26
- jac_client/examples/all-in-one/components/button.jac +4 -3
- jac_client/examples/all-in-one/components/navigation.jac +111 -117
- jac_client/examples/all-in-one/constants/categories.jac +23 -24
- jac_client/examples/all-in-one/constants/clients.jac +7 -8
- jac_client/examples/all-in-one/context/BudgetContext.jac +9 -6
- jac_client/examples/all-in-one/hooks/useBudget.jac +18 -12
- jac_client/examples/all-in-one/hooks/useLocalStorage.jac +14 -13
- jac_client/examples/all-in-one/main.jac +542 -0
- jac_client/examples/all-in-one/pages/BudgetPlanner.jac +26 -12
- jac_client/examples/all-in-one/pages/FeaturesTest.jac +43 -12
- jac_client/examples/all-in-one/pages/LandingPage.jac +113 -90
- jac_client/examples/all-in-one/pages/budget_planner_ui.cl.jac +65 -0
- jac_client/examples/all-in-one/pages/features_test_ui.cl.jac +675 -0
- jac_client/examples/all-in-one/pages/loginPage.jac +114 -119
- jac_client/examples/all-in-one/pages/nestedDemo.jac +44 -51
- jac_client/examples/all-in-one/pages/notFound.jac +15 -21
- jac_client/examples/all-in-one/pages/signupPage.jac +113 -119
- jac_client/examples/all-in-one/utils/formatters.jac +5 -8
- jac_client/examples/asset-serving/css-with-image/main.jac +92 -0
- jac_client/examples/asset-serving/image-asset/main.jac +56 -0
- jac_client/examples/asset-serving/import-alias/main.jac +109 -0
- jac_client/examples/basic/main.jac +23 -0
- jac_client/examples/basic-auth/main.jac +363 -0
- jac_client/examples/basic-auth-with-router/main.jac +451 -0
- jac_client/examples/basic-full-stack/main.jac +362 -0
- jac_client/examples/css-styling/js-styling/main.jac +63 -0
- jac_client/examples/css-styling/material-ui/main.jac +122 -0
- jac_client/examples/css-styling/pure-css/main.jac +55 -0
- jac_client/examples/css-styling/sass-example/main.jac +55 -0
- jac_client/examples/css-styling/styled-components/main.jac +62 -0
- jac_client/examples/css-styling/tailwind-example/main.jac +74 -0
- jac_client/examples/full-stack-with-auth/main.jac +696 -0
- jac_client/examples/little-x/main.jac +681 -0
- jac_client/examples/little-x/src/submit-button.jac +15 -14
- jac_client/examples/nested-folders/nested-advance/main.jac +26 -0
- jac_client/examples/nested-folders/nested-advance/src/ButtonRoot.jac +4 -6
- jac_client/examples/nested-folders/nested-advance/src/level1/ButtonSecondL.jac +9 -13
- jac_client/examples/nested-folders/nested-advance/src/level1/Card.jac +29 -32
- jac_client/examples/nested-folders/nested-advance/src/level1/level2/ButtonThirdL.jac +12 -18
- jac_client/examples/nested-folders/nested-basic/{src/app.jac → main.jac} +7 -5
- jac_client/examples/nested-folders/nested-basic/src/button.jac +4 -3
- jac_client/examples/nested-folders/nested-basic/src/components/button.jac +4 -3
- jac_client/examples/ts-support/main.jac +35 -0
- jac_client/examples/with-router/main.jac +286 -0
- jac_client/plugin/cli.jac +491 -411
- jac_client/plugin/client.jac +25 -0
- jac_client/plugin/client_runtime.cl.jac +10 -4
- jac_client/plugin/impl/client.impl.jac +96 -55
- jac_client/plugin/impl/client_runtime.impl.jac +155 -1
- jac_client/plugin/plugin_config.jac +211 -29
- jac_client/plugin/src/__init__.jac +0 -2
- jac_client/plugin/src/compiler.jac +0 -1
- jac_client/plugin/src/config_loader.jac +1 -0
- jac_client/plugin/src/desktop_config.jac +31 -0
- jac_client/plugin/src/impl/compiler.impl.jac +49 -17
- jac_client/plugin/src/impl/config_loader.impl.jac +8 -0
- jac_client/plugin/src/impl/desktop_config.impl.jac +191 -0
- jac_client/plugin/src/impl/jac_to_js.impl.jac +5 -1
- jac_client/plugin/src/impl/package_installer.impl.jac +20 -20
- jac_client/plugin/src/impl/vite_bundler.impl.jac +191 -64
- jac_client/plugin/src/targets/desktop/sidecar/main.py +144 -0
- jac_client/plugin/src/targets/desktop_target.jac +37 -0
- jac_client/plugin/src/targets/impl/desktop_target.impl.jac +2347 -0
- jac_client/plugin/src/targets/impl/registry.impl.jac +64 -0
- jac_client/plugin/src/targets/impl/web_target.impl.jac +157 -0
- jac_client/plugin/src/targets/register.jac +21 -0
- jac_client/plugin/src/targets/registry.jac +87 -0
- jac_client/plugin/src/targets/web_target.jac +35 -0
- jac_client/plugin/src/vite_bundler.jac +6 -0
- jac_client/plugin/utils/__init__.jac +3 -0
- jac_client/plugin/utils/bun_installer.jac +16 -0
- jac_client/plugin/utils/impl/bun_installer.impl.jac +99 -0
- jac_client/templates/client.jacpack +72 -0
- jac_client/templates/fullstack.jacpack +61 -0
- jac_client/tests/conftest.py +103 -47
- jac_client/tests/fixtures/spawn_test/app.jac +49 -52
- jac_client/tests/fixtures/with-ts/app.jac +27 -27
- jac_client/tests/test_cli.py +182 -71
- jac_client/tests/test_e2e.py +232 -0
- jac_client/tests/test_helpers.py +58 -0
- jac_client/tests/test_it.py +91 -135
- jac_client/tests/test_it_desktop.py +891 -0
- {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/METADATA +6 -6
- jac_client-0.2.11.dist-info/RECORD +113 -0
- {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/WHEEL +1 -1
- jac_client/examples/all-in-one/app.jac +0 -573
- jac_client/examples/all-in-one/pages/BudgetPlanner.cl.jac +0 -70
- jac_client/examples/all-in-one/pages/FeaturesTest.cl.jac +0 -552
- jac_client/examples/asset-serving/css-with-image/src/app.jac +0 -88
- jac_client/examples/asset-serving/image-asset/src/app.jac +0 -55
- jac_client/examples/asset-serving/import-alias/src/app.jac +0 -111
- jac_client/examples/basic/src/app.jac +0 -21
- jac_client/examples/basic-auth/src/app.jac +0 -371
- jac_client/examples/basic-auth-with-router/src/app.jac +0 -464
- jac_client/examples/basic-full-stack/src/app.jac +0 -359
- jac_client/examples/css-styling/js-styling/src/app.jac +0 -84
- jac_client/examples/css-styling/material-ui/src/app.jac +0 -122
- jac_client/examples/css-styling/pure-css/src/app.jac +0 -64
- jac_client/examples/css-styling/sass-example/src/app.jac +0 -64
- jac_client/examples/css-styling/styled-components/src/app.jac +0 -71
- jac_client/examples/css-styling/tailwind-example/src/app.jac +0 -63
- jac_client/examples/full-stack-with-auth/src/app.jac +0 -722
- jac_client/examples/little-x/src/app.jac +0 -719
- jac_client/examples/nested-folders/nested-advance/src/app.jac +0 -35
- jac_client/examples/ts-support/src/app.jac +0 -35
- jac_client/examples/with-router/src/app.jac +0 -323
- jac_client/plugin/src/babel_processor.jac +0 -18
- jac_client/plugin/src/impl/babel_processor.impl.jac +0 -89
- jac_client-0.2.8.dist-info/RECORD +0 -97
- {jac_client-0.2.8.dist-info → jac_client-0.2.11.dist-info}/entry_points.txt +0 -0
- {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
|
|
4
|
+
cl import from "@jac/runtime" {
|
|
5
5
|
Link,
|
|
6
|
-
|
|
7
6
|
}
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
8
|
cl {
|
|
12
|
-
def:pub LandingPage
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
+
# />
|