Changeset - 0a11698fecc4
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-05-30 06:37:08
drewp@bigasterisk.com
2 files changed with 4 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/homepage/ServiceButtonRow.ts
Show inline comments
 
import { LitElement, html, css } from "lit";
 
import { customElement, property } from "lit/decorators.js";
 
export { StatsLine } from "./StatsLine";
 

	
 
@customElement("service-button-row")
 
export class ServiceButtonRow extends LitElement {
 
  @property() name: string = "?";
 
  @property({ attribute: "metrics" }) hasMetrics: boolean = false;
 
  @property({ type:Boolean, attribute: "metrics" }) hasMetrics: boolean = false;
 
  static styles = [
 
    css`
 
      :host {
 
        padding-bottom: 10px;
 
        border-bottom: 1px solid #333;
 
      }
 
      a {
 
        color: #7d7dec;
 
      }
 
      div {
 
        display: flex;
 
        justify-content: space-between;
light9/web/ResourceDisplay.ts
Show inline comments
 
@@ -67,26 +67,27 @@ export class ResourceDisplay extends Lit
 
    //     <div class="buttons">
 
    //       <paper-button dialog-dismiss>Cancel</paper-button>
 
    //       <paper-button dialog-confirm>OK</paper-button>
 
    //     </div>
 
    //   </paper-dialog>
 
    // </template>
 
    //    `;
 
  }
 
  // callers might set this as string or pass a NamedNode.
 
  @property() uri?: NamedNode | string;
 

	
 
  @state() label: string = "";
 
  @property() rename: boolean = false;
 
  @property() minor: boolean = false;
 
  
 
  @property({type: Boolean}) rename: boolean = false;
 
  @property({type: Boolean}) minor: boolean = false;
 
  // @state() renameTo: String; notify: true };
 

	
 
  constructor() {
 
    super();
 
    getTopGraph().then((g) => {
 
      this.graph = g;
 
      this.runUriHandler();
 
    });
 
  }
 

	
 
  realUri(): NamedNode {
 
    if (!this.uri) {
0 comments (0 inline, 0 general)