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
+77
@@ -0,0 +1,77 @@
|
||||
<page template="mainpagetemplate">
|
||||
<heading>
|
||||
<title>The Digital Gods - The MP3 Music Store</title>
|
||||
</heading>
|
||||
<contents>
|
||||
<h1>My Music Collections</h1>
|
||||
<p>Musical tracks are arranged into collections or albums. In order to
|
||||
upload your musical tracks you need to define the collection first. To
|
||||
create a new collection then click <linkbutton page="newcollection">here</linkbutton>.</p>
|
||||
|
||||
<database host="$[host]" name="$[database]" user="$[user]" password="$[password]" sessionid="2">
|
||||
|
||||
<sql>
|
||||
select * from collections where member_id=$[login_id]
|
||||
</sql>
|
||||
|
||||
<ifrow>
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0">
|
||||
<whilerow>
|
||||
<tr><td colspan="2"><hr></td></tr>
|
||||
<tr>
|
||||
<td valign="top" width="100">
|
||||
<image src="images/blank_collection_cover.png" border="1">
|
||||
</td>
|
||||
<td valign="top">
|
||||
<table cellpadding="3" cellspacing="0" width="100%">
|
||||
<tr><td class="collection_heading">$[.name]</td></tr>
|
||||
<tr><td class="collection_text">$[.description]</td></tr>
|
||||
<tr><td class="collection_text">Price <b>$$[.price]</b></td></tr>
|
||||
<tr><td class="collection_text">
|
||||
<abutton page="add_track" name="collection_id" value="$[.id]">Add Track</abutton>
|
||||
<abutton page="edit_collection" name="collection_id" value="$[.id]">Edit</abutton>
|
||||
<abutton page="delete_collection" name="collection_id" value="$[.id]">Delete</abutton>
|
||||
|
||||
<sql sessionid="2">
|
||||
select id,
|
||||
name,
|
||||
description,
|
||||
price
|
||||
from tracks
|
||||
where member_id=$[login_id]
|
||||
and collection_id="$[.id]"
|
||||
</sql>
|
||||
|
||||
<ifrow sessionid="2">
|
||||
|
||||
<br><br>
|
||||
<table cellpadding="3" cellspacing="0">
|
||||
<tr><td class="collection_tracks_background">
|
||||
<b>Tracks</b>
|
||||
<table cellpadding="3" cellspacing="1">
|
||||
<whilerow sessionid="2">
|
||||
<tr bgcolor="#10 007F">
|
||||
<td class="collection_text">$[2.id].</td>
|
||||
<td class="collection_text" width="300">$[2.name]</td>
|
||||
<td class="collection_text">$$[2.price]</td>
|
||||
</tr>
|
||||
</whilerow>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
|
||||
</ifrow>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</whilerow>
|
||||
</table>
|
||||
<else>
|
||||
<p>You current have not defined any collections.</p>
|
||||
</ifrow>
|
||||
|
||||
</database>
|
||||
|
||||
</contents>
|
||||
</page>
|
||||
Reference in new issue
Block a user