Changeset 107:490381ffb008 in iovar


Ignore:
Timestamp:
Feb 21, 2018, 12:05:08 AM (8 months ago)
Author:
Shawn Wilson <shawn@…>
Branch:
default
Phase:
public
Message:

saw_022118_1 - Minimalistic shell interface for 1.0 release.

Files:
1 added
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r103 r107  
    1 Copyright (C) 2016-2017 Virgo Venture, Inc.
     1Copyright (C) 2016-2018 Virgo Venture, Inc.
    22Copyright (C) 2011-2015 Lannocc Technologies
    33@%@~LICENSE~@%@
     4
     5saw_022118_1 - Minimalistic shell interface for 1.0 release.
    46
    57saw_091117_1 - Add Utils.hexToBytes().
  • src/win/iovar/web/bin/shell/Interactive.java

    r76 r107  
    11/*
    2  * Copyright (C) 2016-2017 Virgo Venture, Inc.
     2 * Copyright (C) 2016-2018 Virgo Venture, Inc.
    33 * Copyright (C) 2011-2015 Lannocc Technologies
    44 * @%@~LICENSE~@%@
     
    2323
    2424/**
    25  * Interactive shell.
     25 * Front-end interface for the web shell.
    2626 *
    2727 * @author  shawn@lannocc.com
     
    224224            final PrintWriter out = resp.getWriter ();
    225225
     226            out.println ("<!DOCTYPE html>");
    226227            out.println ("<html>");
    227228            out.println ("  <head>");
    228             out.println ("      <title>interactive shell</title>");
    229             out.println ("      <link rel=\"stylesheet\" type=\"text/css\" href=\"usr/include/iovar/ui/interactive.css\">");
     229            out.println ("      <title>$ # iovar shell</title>");
     230            out.println ("      <link rel=\"shortcut icon\" sizes=\"16x16\" href=\"usr/include/iovar/favicon/favicon-16.png\">");
     231            out.println ("      <link rel=\"icon\" sizes=\"16x16\" href=\"usr/include/iovar/favicon/favicon-16.png\">");
     232            out.println ("      <link rel=\"stylesheet\" type=\"text/css\" href=\"usr/include/iovar/shell.css\">");
    230233            out.println ("  </head>");
    231             out.println ("  <body onload=\"document.forms[0].elements['input'].focus()\">");
     234            out.println ("  <body onload=\"document.forms[0].elements['"+Shell.PARAM_CMD+"'].focus()\">");
     235           
     236            out.println ("      <h1><span title=\""+Interactive.class.getName ()+"\">iovar "+Shell.VERSION+"</span> | <a href=\"/var/log/shell\" target=\"log\">log</a></h1>");
    232237
    233238            out.println ("      <form target=\"output\" method=\"GET\">");
    234 
    235             out.println ("          <div id=\"session\">");
    236             out.println ("              <label>session: <input type=\"text\" name=\""+Shell.PARAM_SESSION+"\" value=\""+shell.getPath ()+"\"></label>");
    237             out.println ("              <br><a href=\"$/dev/log\" target=\"log\">log</a>");
    238             out.println ("          </div>");
    239             out.println ("          <p>"+Interactive.class.getName ());
    240             out.println ("          <br>"+Shell.class.getName ()+" version: "+Shell.VERSION);
    241             out.println ();
    242 
    243             out.println ("          <br><br>");
    244             //out.println ("      <iframe name=\"log\" width=\"800\" height=\"200\" src=\"dev/log\" scrolling=\"yes\" style=\"overflow:scroll; white-space:nowrap\"> </iframe>");
    245             //out.println ("      <br><a href=\"javascript:window.frames[0].location.reload()\" style=\"float:right\">refresh log</a>");
    246             out.println ();
    247 
     239            out.println ("          <input type=\"hidden\" name=\""+Shell.PARAM_SESSION+"\" value=\""+shell.getPath ()+"\">");
    248240            out.println ("          <input id=\"cmd_exec\" type=\"submit\" value=\"exec\">");
    249241            out.println ("          <label id=\"cmd\">$ <input type=\"text\" id=\"cmd_in\" name=\""+Shell.PARAM_CMD+"\" size=\"60\"></label>");
  • src/win/iovar/web/bin/shell/Shell.java

    r76 r107  
    11/*
    2  * Copyright (C) 2016-2017 Virgo Venture, Inc.
     2 * Copyright (C) 2016-2018 Virgo Venture, Inc.
    33 * Copyright (C) 2011-2015 Lannocc Technologies
    44 * @%@~LICENSE~@%@
     
    3131{
    3232    public static final String VERSION = "1.0";
    33     public static final String SHELL = "shell";
    3433   
    3534    //static final String INIT_PARAM_PARSER = "parser";
  • usr/include/iovar/shell.css

    r44 r107  
     1/*
     2 * Copyright (C) 2018 Virgo Venture, Inc.
     3 * @%@~LICENSE~@%@
     4 */
    15
    2 #session {
    3     float: right;
    4     text-align: right;
     6body, html {
     7    margin: 0;
     8    padding: 0;
     9    height: 100%;
    510}
    611
    7 #session input {
    8     width: 20em;
     12body {
     13    display: flex;
     14    flex-direction: column;
     15}
     16
     17h1 {
     18    text-align: center;
     19    font-size: small;
     20    margin: 0;
     21    padding: 0;
    922}
    1023
     
    1326    white-space: nowrap;
    1427    margin-right: 5em;
     28    padding-left: 26px;
     29    background: url(favicon/favicon-16.png) no-repeat 5px center;
    1530}
    1631
     
    2641
    2742#output {
    28     position: absolute;
    29     top: 6em;
    30     left: 0;
    31     right: 0;
    32     bottom: 0;
    33     clear: both;
     43    flex-grow: 1;
    3444}
    3545
     
    3848    height: 100%;
    3949    border: none;
     50    margin: 0;
     51    padding: 0;
    4052}
    4153
     54.legacy {
     55    display: none;
     56}
     57
Note: See TracChangeset for help on using the changeset viewer.