@deneb-ui/create-template 2.0.5 → 2.0.7
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.
- package/README.md +1 -1
- package/bin/index.js +27 -8
- package/package.json +1 -1
- package/template/src/app/page.tsx +0 -72
- package/template/src/data/site-data.json +10 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **DENEB UI — Build beautiful interfaces, effortlessly.**
|
|
6
6
|
> The premier visual-first React component ecosystem.
|
|
7
|
-
>
|
|
7
|
+
> Proudly presented by **DENEB-UI Collaborate with FIVORA**.
|
|
8
8
|
|
|
9
9
|
[](https://github.com/chamikathereal)
|
|
10
10
|
[](https://opensource.org/licenses/MIT)
|
package/bin/index.js
CHANGED
|
@@ -7,14 +7,33 @@ const readline = require('node:readline');
|
|
|
7
7
|
const args = process.argv.slice(2);
|
|
8
8
|
let targetDirInput = args[0];
|
|
9
9
|
|
|
10
|
+
function stripAnsi(str) {
|
|
11
|
+
return str.replace(/\x1b\[[0-9;]*m/g, '');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function createBox(lines, width = 58) {
|
|
15
|
+
const cyan = '\x1b[36m';
|
|
16
|
+
const reset = '\x1b[0m';
|
|
17
|
+
const top = ` ${cyan}╔${'═'.repeat(width)}╗${reset}`;
|
|
18
|
+
const bottom = ` ${cyan}╚${'═'.repeat(width)}╝${reset}`;
|
|
19
|
+
|
|
20
|
+
const rows = lines.map((line) => {
|
|
21
|
+
const rawLen = stripAnsi(line).length;
|
|
22
|
+
const padTotal = Math.max(0, width - rawLen);
|
|
23
|
+
const padLeft = Math.floor(padTotal / 2);
|
|
24
|
+
const padRight = padTotal - padLeft;
|
|
25
|
+
return ` ${cyan}║${reset}${' '.repeat(padLeft)}${line}${' '.repeat(padRight)}${cyan}║${reset}`;
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
return [top, ...rows, bottom].join('\n');
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
function printBanner() {
|
|
11
|
-
console.log(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
╚═════════════════════════════════════════════════════════════╝\x1b[0m
|
|
17
|
-
`);
|
|
32
|
+
console.log('\n' + createBox([
|
|
33
|
+
'\x1b[1m\x1b[37mDENEB TEMPLATE CREATOR\x1b[0m',
|
|
34
|
+
'\x1b[90mScaffold a fast, compliant commerce template\x1b[0m',
|
|
35
|
+
'\x1b[90mPowered by DENEB-UI Collaborate with FIVORA\x1b[0m'
|
|
36
|
+
], 58) + '\n');
|
|
18
37
|
}
|
|
19
38
|
|
|
20
39
|
function copyFolderSync(src, dest) {
|
|
@@ -125,7 +144,7 @@ function runScaffolding(targetInput) {
|
|
|
125
144
|
console.log(` \x1b[36m${skipInstall ? '6' : '5'}. npm run zip\x1b[0m`);
|
|
126
145
|
console.log(` Package a clean, upload-ready \x1b[1mfivora-template.zip\x1b[0m.\n`);
|
|
127
146
|
|
|
128
|
-
console.log(`\x1b[
|
|
147
|
+
console.log(`\x1b[90mPowered by DENEB-UI Collaborate with FIVORA\x1b[0m`);
|
|
129
148
|
console.log(`\x1b[1m\x1b[36mHappy building with DENEB UI! 🚀\x1b[0m\n`);
|
|
130
149
|
}
|
|
131
150
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deneb-ui/create-template",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Scaffold a modern, pre-validated DENEB UI storefront template in seconds. Created by Chamika Gayashan & Induranga Kawishwara.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-deneb-template": "bin/index.js",
|
|
@@ -112,78 +112,6 @@ export default function HomePage() {
|
|
|
112
112
|
</div>
|
|
113
113
|
</section>
|
|
114
114
|
|
|
115
|
-
<section
|
|
116
|
-
className="page-section dev-guide-section"
|
|
117
|
-
data-design-section="home-developer-guide"
|
|
118
|
-
>
|
|
119
|
-
<div className="dev-guide-header">
|
|
120
|
-
<span className="dev-badge" data-preview-static="dev-guidance">
|
|
121
|
-
⚡ DENEB UI & Fivora Developer Guide
|
|
122
|
-
</span>
|
|
123
|
-
<h2 data-preview-static="dev-guidance">
|
|
124
|
-
How DENEB UI Configures with the Fivora Live Editor
|
|
125
|
-
</h2>
|
|
126
|
-
<p data-preview-static="dev-guidance">
|
|
127
|
-
DENEB UI components are visual-first React primitives engineered for live editing in the Fivora merchant platform:
|
|
128
|
-
</p>
|
|
129
|
-
</div>
|
|
130
|
-
|
|
131
|
-
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 my-8 text-left max-w-5xl mx-auto">
|
|
132
|
-
<div className="p-6 bg-white rounded-2xl border border-slate-200 shadow-sm">
|
|
133
|
-
<h4 data-preview-static="dev-card-title" className="font-bold text-slate-900 mb-2">1. Live Field Markers</h4>
|
|
134
|
-
<p data-preview-static="dev-card-desc" className="text-sm text-slate-500 leading-relaxed">
|
|
135
|
-
Every editable string connects to <code data-preview-static="dev-code">site-data.json</code> via <code data-preview-static="dev-code">fieldPath="home.title"</code>. Clicking in Fivora highlights the field in the sidebar.
|
|
136
|
-
</p>
|
|
137
|
-
</div>
|
|
138
|
-
<div className="p-6 bg-white rounded-2xl border border-slate-200 shadow-sm">
|
|
139
|
-
<h4 data-preview-static="dev-card-title" className="font-bold text-slate-900 mb-2">2. Auto-Balancing Grids</h4>
|
|
140
|
-
<p data-preview-static="dev-card-desc" className="text-sm text-slate-500 leading-relaxed">
|
|
141
|
-
Use <code data-preview-static="dev-code"><EditableGrid></code> and <code data-preview-static="dev-code"><EditableCard></code> from <code data-preview-static="dev-code">@deneb-ui/ui</code> to ensure card heights remain balanced regardless of merchant copy length.
|
|
142
|
-
</p>
|
|
143
|
-
</div>
|
|
144
|
-
<div className="p-6 bg-white rounded-2xl border border-slate-200 shadow-sm">
|
|
145
|
-
<h4 data-preview-static="dev-card-title" className="font-bold text-slate-900 mb-2">3. Add UI Components</h4>
|
|
146
|
-
<p data-preview-static="dev-card-desc" className="text-sm text-slate-500 leading-relaxed">
|
|
147
|
-
Install pre-built components into <code data-preview-static="dev-code">src/components/ui/</code> anytime using <code data-preview-static="dev-code">npx deneb add <name></code> (e.g. product-card, contact-actions, dialog).
|
|
148
|
-
</p>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
|
|
152
|
-
<div className="dev-command-grid">
|
|
153
|
-
<div className="dev-cmd-card">
|
|
154
|
-
<div className="cmd-header">
|
|
155
|
-
<span className="cmd-tag" data-preview-static="dev-tag">Development</span>
|
|
156
|
-
<code data-preview-static="dev-command">npm run dev</code>
|
|
157
|
-
</div>
|
|
158
|
-
<p data-preview-static="dev-description">Hot-reloading local development with Next.js & Tailwind CSS.</p>
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
<div className="dev-cmd-card">
|
|
162
|
-
<div className="cmd-header">
|
|
163
|
-
<span className="cmd-tag" data-preview-static="dev-tag">Simulate</span>
|
|
164
|
-
<code data-preview-static="dev-command">npm run lab</code>
|
|
165
|
-
</div>
|
|
166
|
-
<p data-preview-static="dev-description">Visual Editing Lab simulating merchant field clicks & edits.</p>
|
|
167
|
-
</div>
|
|
168
|
-
|
|
169
|
-
<div className="dev-cmd-card">
|
|
170
|
-
<div className="cmd-header">
|
|
171
|
-
<span className="cmd-tag" data-preview-static="dev-tag">Compliance</span>
|
|
172
|
-
<code data-preview-static="dev-command">npm run validate</code>
|
|
173
|
-
</div>
|
|
174
|
-
<p data-preview-static="dev-description">Runs Fivora preflight contract tests & empty states.</p>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
<div className="dev-cmd-card">
|
|
178
|
-
<div className="cmd-header">
|
|
179
|
-
<span className="cmd-tag" data-preview-static="dev-tag">1-Click Upload</span>
|
|
180
|
-
<code data-preview-static="dev-command">npm run zip</code>
|
|
181
|
-
</div>
|
|
182
|
-
<p data-preview-static="dev-description">Automatically packages clean ZIP excluding caches & junk files.</p>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</section>
|
|
186
|
-
|
|
187
115
|
<section
|
|
188
116
|
className="page-section"
|
|
189
117
|
data-design-section="home-introduction"
|
|
@@ -41,7 +41,13 @@
|
|
|
41
41
|
"contact": "Contact"
|
|
42
42
|
},
|
|
43
43
|
"footerHeading": "Build something extraordinary with Fivora.",
|
|
44
|
-
"copyright": "Fivora. All rights reserved."
|
|
44
|
+
"copyright": "Fivora. All rights reserved.",
|
|
45
|
+
"socialMedia": {
|
|
46
|
+
"twitter": "https://twitter.com",
|
|
47
|
+
"github": "https://github.com",
|
|
48
|
+
"linkedin": "https://linkedin.com",
|
|
49
|
+
"instagram": "https://instagram.com"
|
|
50
|
+
}
|
|
45
51
|
},
|
|
46
52
|
"home": {
|
|
47
53
|
"heroEyebrow": "⚡ Fivora Template Starter",
|
|
@@ -91,7 +97,9 @@
|
|
|
91
97
|
"email": "developer@fivora.lk",
|
|
92
98
|
"address": "Colombo, Sri Lanka",
|
|
93
99
|
"formTitle": "Send an enquiry",
|
|
94
|
-
"submitLabel": "Send Message"
|
|
100
|
+
"submitLabel": "Send Message",
|
|
101
|
+
"directMessageText": "Send us a direct message",
|
|
102
|
+
"whatsapp": "+94 77 123 4567"
|
|
95
103
|
}
|
|
96
104
|
},
|
|
97
105
|
"media": {},
|