Changeset - 05248a7c2c51
[Not reviewed]
default
0 3 0
drewp@bigasterisk.com - 7 years ago 2018-05-04 01:27:39
drewp@bigasterisk.com
coffee maps. attempt at resource-display update for polymer2
Ignore-this: 178c4147db8048043c1feb38ac0c8d11
3 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/web/index.html
Show inline comments
 
<!doctype html>
 
<html>
 
  <head>
 
    <title>light9 home</title>
 
    <meta charset="utf-8" />
 
    <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
 
    <link rel="stylesheet" href="/style.css">
 
    <link rel="import" href="/node_modules/@polymer/polymer/polymer.html">
 
    <link rel="import" href="/lib/polymer/polymer.html">
 
  </head>
 
  <body>
 
    <dom-module id="service-button-row">
 
      <template>
 
        <style>
 
         a {
 
             color: #7d7dec;
 
         }
 
         div {
 
             display: flex;
 
             justify-content: space-between;
 
             padding: 2px 3px;
light9/web/resource-display.html
Show inline comments
 
@@ -45,25 +45,25 @@
 
           uri: { type: Object }, // Use .value for the string
 
           label: { type: String },
 
           rename: { type: Boolean },
 
           minor: { type: Boolean },
 
           resClasses: { type: String, computed: '_resClasses(minor)', value: 'resource' },
 
           renameTo: { type: String, notify: true },
 
       },
 
       observers: ['onUri(graph, uri)'],
 
       _resClasses: function(minor) {
 
           return minor ? 'resource minor' : 'resource';
 
       },
 
       onUri: function(graph, uri) {
 
           if (!this.graph) return;
 
           if (!this.graph || !this.uri) return;
 
           this.graph.runHandler(this.setLabel.bind(this), `label ${this.uri.value}`);
 
       },
 
       setLabel: function() {
 
           if (!this.uri) {
 
               this.label = "<no uri>";
 
               return;
 
           }
 
           try {
 
               this.label = this.graph.stringValue(this.uri,
 
                                                   this.graph.Uri('rdfs:label'));
 
           } catch(e) {
 
               this.label = null;
makefile
Show inline comments
 
@@ -66,25 +66,25 @@ tkdnd_build:
 
	cd tkdnd/trunk
 
	./configure
 
	make
 

	
 
env-mypy/bin/mypy:
 
	mkdir -p env-mypy
 
	virtualenv -p /usr/bin/python3  env-mypy/
 
	env-mypy/bin/pip install mypy==0.590 lxml==4.2.1
 

	
 
### build ###
 

	
 
coffee:
 
	zsh -c 'coffee -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
 
	zsh -c 'coffee --map -cw light9/web/{.,live,timeline,paint,effects}/*.coffee'
 

	
 
mypy-collector: env-mypy/bin/mypy
 
	env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep bin/collector light9/collector/*.py
 

	
 
mypy-paint: env-mypy/bin/mypy
 
	env-mypy/bin/mypy --py2 --ignore-missing-imports --strict-optional --custom-typeshed-dir stubs --html-report /tmp/rep light9/paint/*.py
 

	
 
### show ###
 

	
 
darcs_show_checkpoint:
 
	darcs add --quiet --recursive ${LIGHT9_SHOW} 
 
	darcs rec -a -m "checkpoint show data" ${LIGHT9_SHOW}
0 comments (0 inline, 0 general)