SC Arguments: [Name:SC_ACTION Type:uint64 Value:'0' Name:SC_ID Type:hash Value:'93269397111df2cbe48bc8fe03f9bb35574f38ae3ce7d611445e39392551d4c2' Name:content Type:string Value:'<style>main input,main textarea,main button,main select{margin:5px 0 10px}@media only screen and (min-width: 600px){.inputs{display:flex}.inputs>div,button#deployDoc{margin:5px}.inputs_fields{display:flex;flex-direction:column;max-width:50%}}.inputs_fields label{display:flex;flex-direction:column}.inputs_fields textarea{max-width:100%}.inputs>div.preview{display:flex;flex-grow:1;flex-direction:column}.inputs textarea{display:flex;flex-grow:1}</style>
<main>
<h1>Tela-Site Installer</h1>
<p>This installer only installs Tela Sites, editing will have to be done somewhere else if desired. For more info, visit: <a href="https://github.com/civilware/tela/blob/main/TELA-DOC-1/README.md" target="_blank">Tela-Docs</a> and <a href="https://github.com/civilware/tela/blob/main/TELA-INDEX-1/README.md" target="_blank">Tela-Indexes</a>.</p>
<h2>Step 1 - Install Docs</h2>
<p>Install all of the Tela-Docs by filling out the required fields and uploading a content file and a corresponding .signed file for every document. A list will be generated for use with the Index-Installation which is done last. <i>IMPORTANT NOTE! Make sure not to leave this page until you have completed installing unless you know what you are doing of course lol</i> </p>
<div class="inputs">
<div class="inputs_fields">
<div>Select Tela-doc type template for install</div>
<select id="doc_type">
<option>Choose Doc Type</option>
<option value="TELA-HTML-1">html</option>
<option value="TELA-JS-1">js</option>
<option value="TELA-CSS-1">css</option>
</select><br>
<label>Name*<br><input id="docNameHdr" type="text" placeholder="nameHdr" disabled="disabled"></label><br>
<label>Description*<br><textarea id="docDescrHdr" placeholder="descrHdr"></textarea></label><br>
<label>Icon<br><input id="docIconURLHdr" type="text" placeholder="iconURLHdr"></label><br>
<label>D-URL*<br><input id="docDURL" type="text" placeholder="*dURL"></label><br>
<label>Subdirectory<br><input id="docSubDir" type="text" placeholder="subDir"></label><br>
<label>Document / file content only - Max 18kb (Automatically added inside multi-line comment "/**/")<br>
<input id="open_file" type="file"></label><br>
<label>Signed document file for the content / document, created by wallet (.signed)<br>
<input id="open_signed_file" type="file"><br></label>
<label>Selected Tela-Doc contents<br>
<textarea id="document"></textarea><br></label>
</div>
<div class="preview">
Doc SC Preview<br>
<textarea id="smartcontract"></textarea><br>
</div>
</div>
<button id="deployDoc" disabled="disabled">Deploy Doc</button>
<hr>
<div>List of installed docs:</div>
<div id="output" style="color:#fff">No Tela-Docs installed yet.</div>
<h2>Step 2 - Install Index</h2>
<p>After installing all documents, fill in the template to generate a Tela-Index smart contract. Make sure to copy install or save it somewhere before leaving this page so it won't be lost.</p>
<div class="inputs">
<div class="inputs_fields">
<label>Name*<br><input id="indexNameHdr" type="text" placeholder="nameHdr"></label><br>
<label>Description*<br><textarea id="indexDescrHdr" placeholder="descrHdr"></textarea></label><br>
<label>Icon<br><input id="indexIconURLHdr" type="text" placeholder="iconURLHdr"></label><br>
<label>D-URL*<br><input id="indexDURL" type="text" placeholder="*dURL"></label><br>
</div>
<div class="preview">
<textarea id="indexSCCode"></textarea><br>
</div>
</div>
<button id="deployIndex">Deploy Index</button><br>
<div>Make sure to replace the values for <nameHdr>, <descrHdr>, <iconURLHdr> and <dURL> with the appropriate info. If the iconURLHdr doesn't apply you can leave that blank.</div><br>
<div id="indexscid" style="color:#fff">Tela-Index not installed yet.</div>
<br><br>
</main>' Name:entrypoint Type:string Value:'StoreItem' Name:name Type:string Value:'siteinstaller.html'] |