Convert barant.com JET 1.4 marketing pages to jetc/.jtc (local, non-production)
Pulls .page files and shared template infrastructure (mainpagetemplate.temp, menu.bar, barant.tag, opensource.menu, cart.menu, login.menu) read-only from barant.com via SFTP into jetc/barant-site/src, then convert.py mechanically flattens them into self-contained .jet files: linkbutton becomes a plain anchor link (the old SESSIONCTL PAGE/PROCESS form-postback model has no equivalent here - each page is its own real #api route now, not a shared single-form state machine), sectionframe is expanded per its barant.tag definition, /images/* references are fetched and inlined as data URIs (APIServer has no static-file serving), and session-gated chrome (cart, account/admin, login.menu) is resolved to its anonymous-visitor default state, since no session/DB backend is wired into this conversion. 17 pages convert and serve cleanly end-to-end (verified via a local apiserver-barant-site.json instance on :8081, kept separate from the existing demo server on :8080 to avoid a /main route collision with the earlier hand-cloned barant.jet). Two pages deliberately out of scope for this pass: davidarant.page (whiledir filesystem iteration) and the per-topic sub-pages of jet.page (dispatches on an ARGS query param this conversion does not populate - only the default overview state converts). vst.page/modular1.page/modular1_patches.page also deferred - they pull live product rows via sql, a real backend dependency beyond "pages and their template" scope. Nothing was written back to barant.com - SFTP access was read-only throughout, per explicit instruction to convert locally without touching the original site.
This commit is contained in:
1 parent
b143b821de
commit
fde94acad6
191 files changed
+14997
No files matched your search
Executable
+41
@@ -0,0 +1,41 @@
|
||||
<page template="mainpagetemplate">
|
||||
<contents>
|
||||
|
||||
$[_project_header]
|
||||
|
||||
Request Id: $[_request_id]<br>
|
||||
<sql sessionid="projman">select *,
|
||||
request_priority.description as priority_description,
|
||||
author.name as author_name,
|
||||
owner.name as owner_name,
|
||||
owner.id as owner_id
|
||||
from requests
|
||||
join users as author on requests.creator_id=author.id
|
||||
join users as owner on requests.owner_id=owner.id
|
||||
join request_priority on requests.priority=request_priority.id
|
||||
where requests.id=$[_request_id]</sql>$[sqlerror]
|
||||
<entryform>
|
||||
|
||||
<tr><td class="fieldprompt">Created:</td><td>$[created_date]</td></tr>
|
||||
<tr><td class="fieldprompt">Author:</td><td>$[author_name]</td></tr>
|
||||
|
||||
<reffield prompt="Owner" name="owner_id" table="users" sortfield="name" value="projman.owner_id" valuefield="id" listfield="name" />
|
||||
<reffield prompt="Priority" name="priority" table="request_priority" sortfield="sequence" value="projman.priority" valuefield="id" listfield="description" />
|
||||
<reffield prompt="Target Release" name="release_id" table="releases" where="project_id=$[_project_id]" sortfield="releases.release" value="release_id" valuefield="id" listfield="release" />
|
||||
<field prompt="Title" type="text" name="text" size="50" maxlength="100" value="$[text]">
|
||||
<field prompt="Description" type="multiline" class="widgEditor" name="description" rows="5" cols="60" value="$[description]">
|
||||
|
||||
<buttonbay>
|
||||
<linkbutton process="updaterequest"><div class="button">Update</div></linkbutton>
|
||||
<linkbutton page="request"><div class="button">Cancel</div></linkbutton>
|
||||
<linkbutton process="deleterequest"><div class="button">Delete</div></linkbutton>
|
||||
</buttonbay>
|
||||
|
||||
</entryform>
|
||||
|
||||
<messages>
|
||||
|
||||
</sectionframe>
|
||||
|
||||
</contents>
|
||||
</page>
|
||||
Reference in new issue
Block a user