github.com/machinebox/remoto@v0.1.2-0.20191024144331-eff21a7d321f/console/www/templates/index.plush.html (about) 1 <% contentFor("head") { %> 2 <title>Remoto - The simplest RPC ecosystem built for right now</title> 3 <meta itemprop="name" content="Remoto"> 4 <meta name="og:title" content="Remoto"> 5 <meta name="twitter:title" content="Remoto"> 6 <style type="text/css" media="screen"> 7 #editor { 8 width: 100%; 9 height: 500px; 10 } 11 .console { 12 background-color: #272822; 13 border-top: 1px dashed #43443F; 14 color: #ddd; 15 padding: 5px; 16 text-align: right; 17 } 18 .console a { 19 color: #ddd; 20 text-decoration: underline; 21 } 22 .console a:hover { 23 color: white; 24 } 25 small { 26 line-height: 1em; 27 } 28 </style> 29 <% } %> 30 <% contentFor("body") { %> 31 <div class='container-fluid'> 32 <form method='post' action='definition'> 33 <div class='row'> 34 <div class='col-sm'> 35 <div id='editor' name='definition'> 36 // Welcome to Remoto 37 38 // Paste your Remoto Definition file here 39 // For more information, check out https://github.com/machinebox/remoto 40 41 package remoto 42 43 // Greeter is a friendly service. 44 type Greeter interface { 45 // Greet makes a greeting. 46 Greet(*GreetRequest) *GreetResponse 47 } 48 49 // GreetRequest is the request object for Greeter.Greet. 50 type GreetRequest struct { 51 // Name is the person to greet. 52 Name string 53 } 54 55 // GreetResponse is the response object for Greeter.Greet. 56 type GreetResponse struct { 57 // Greeting is a personalized message 58 Greeting string 59 } 60 </div> 61 <div data-definition-valid='true'> 62 </div> 63 <div class='console'> 64 <a data-definition-valid-error></a> 65 66 </div> 67 </div> 68 <div class='col-sm-3'> 69 <p> 70 Docs: <a href='https://github.com/machinebox/remoto#remoto-definition-files' target='_blank'>Remoto definition files</a> 71 </p> 72 <hr> 73 <button disabled='disabled' data-definition-invalid='disabled' class='btn btn-primary'>Save and continue</button> 74 <div data-definition-valid='false'> 75 <small class='text-muted'>Fix the problems in the definition to continue</small> 76 </div> 77 </div> 78 </div> 79 <textarea data-editor='true' name='definition' class='d-none'></textarea> 80 </form> 81 </div> 82 <% } %> 83 <% contentFor("scripts") { %> 84 <script src='/static/js/editor.js'></script> 85 <% } %> 86 <% contentFor("navbar") {} %>