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.
63 lines
1.8 KiB
PSL
Executable File
63 lines
1.8 KiB
PSL
Executable File
<process>
|
|
|
|
<if value1="$[name:0]" value2="" type="eq">
|
|
<error field="name" message="You must enter a name!">
|
|
</if>
|
|
<if value1="$[email:0]" value2="" type="eq">
|
|
<error field="email" message="You must enter an e-mail address!">
|
|
</if>
|
|
<if value1="$[password:0]" value2="" type="eq">
|
|
<error field="password" message="You must enter a password!">
|
|
</if>
|
|
<if value1="$[password:0]" value2="$[verifypassword:0]" type="ne">
|
|
<error field="verifypassword" message="The password verification does not match the entered password!">
|
|
</if>
|
|
|
|
<ifnoerror>
|
|
<sql>
|
|
select created from users where email = '$[email:0]'
|
|
</sql>$[sqlerror]
|
|
|
|
<ifrow>
|
|
<error field="email" message="This e-mail address already has a registered account!">
|
|
<else>
|
|
<set name="name" value="$[name:0]" format="binary">
|
|
<set name="email" value="$[email:0]" format="binary">
|
|
<set name="password" value="$[password:0]" format="binary">
|
|
|
|
<sql>
|
|
insert into users
|
|
set name='$[name]',
|
|
company_name='$[company_name]',
|
|
email='$[email]',
|
|
secret='$[password]',
|
|
last_login=null,
|
|
uuid=uuid(),
|
|
created=now(),
|
|
status='CONFIRM',
|
|
type='user'
|
|
</sql>$[sqlerror]
|
|
|
|
<sql>select last_insert_id() as id</sql>$[sqlerror]
|
|
<set name="id" value="$[.id]">
|
|
|
|
<set name="link" value="<linkbutton class='button' process='resendconfirmationemail'>Confirm E-Mail</linkbutton>">
|
|
|
|
<sql>insert into user_messages set user_id=$[id],
|
|
message_id='confirmemail',
|
|
created=now(),
|
|
message='E-mail address is not verified.',
|
|
link="$[link]"</sql>$[sqlerror]
|
|
|
|
<set name="login_email" value="$[email]">
|
|
<set name="login_password" value="$[password]">
|
|
|
|
<include file="login.method">
|
|
<include file="sendemailconfirm.email">
|
|
|
|
</ifrow>
|
|
|
|
</ifnoerror>
|
|
|
|
</process>
|