view index.html @ 18:6f38aa08408d

starting over: make a web page that draws a streamed graph from collector, with plans for services to scrape the data that collector will subscribe to
author drewp@bigasterisk.com
date Sun, 09 Jan 2022 00:21:41 -0800
parents a0d9679c4f4a
children
line wrap: on
line source

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>reposync</title>
    <style>
      body {
        background: #1f1f1f;
        color: white;
      }
    </style>
    <script type="module" src="https://bigasterisk.com/lib/bigast/v1/loginBar.js"></script>
    <script type="module" src="/view/index.ts"></script>
  </head>
  <body>
    <reposync-page></reposync-page>
    <bigast-loginbar></bigast-loginbar>
    <pre>
      notes: 

      repo1 clean                     synced to github   github up to date  [sync now]
            dirty [msg____] [commit]

      repo1 is a link to my hgserve

      GET /status/events

      GET /recent?repo=/my/dir
      GET /recent?all
      GET /recent/events?repo=/my/dir|all

      POST /githubSync?all
      POST /githubSync?repo=/my/dir

      GET /homepage -> a CE table of all changes using /recent
    
      each event are a json message:
        key: string
        update: replace the data for that key
      Here, keys are repo paths.
    
    </pre>

  </body>
</html>
<!--
  before streamed-graph version:
  template: `<div id="top">
       <table>
        <tr :for="repo in this.repos">
         <th>{repo.path}</th>
         <td> {repo.status.error || ''}
           <span :if="repo.status.changed==0 && repo.status.unknown==0">
             clean
           </span>
           <span :else>
             changed {repo.status.changed}, unknown {repo.status.unknown}
           </span>
         </td>
         <td :class="github: true; on: repo.github">
           <span class="check" :if="repo.github">☑</span>
           <span class="check" :else>☐</span> github
           <span :if="repo.github">
           <table style="display: inline-block">
             <tr><td>github latest</td><td>{repo.githubLatest.t}</td></tr>
             <tr><td>home latest</td><td>{repo.hgLatest.t}</td></tr>
             </table>
           </span>
         </td>
         </tr>
       </table>
-->