mirror of
https://github.com/Quodatum/graphxq.git
synced 2025-04-19 07:02:24 +01:00
fixes
This commit is contained in:
parent
c7d97490c6
commit
922e1066ef
9 changed files with 19 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
||||||
<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
|
<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
|
||||||
version="0.1" spec="1.0" xmlns="http://expath.org/ns/pkg">
|
version="0.6" spec="1.0" xmlns="http://expath.org/ns/pkg">
|
||||||
<title>Graphxq</title>
|
<title>Graphxq</title>
|
||||||
<dependency name="twitter-bootstrap" version="3.3.1" />
|
<dependency name="twitter-bootstrap" version="3.3.1" />
|
||||||
<dependency name="jquery" version="2.0.2" />
|
<dependency name="jquery" version="2.0.2" />
|
||||||
|
|
|
@ -18,7 +18,7 @@ declare namespace restxq = 'http://exquery.org/ns/restxq';
|
||||||
|
|
||||||
(:~ shared page wrapper :)
|
(:~ shared page wrapper :)
|
||||||
declare variable $grxq:layout:=fn:resolve-uri("views/layout.xq");
|
declare variable $grxq:layout:=fn:resolve-uri("views/layout.xq");
|
||||||
|
declare variable $grxq:version:=fn:doc("expath-pkg.xml")/*/@version;
|
||||||
(:~
|
(:~
|
||||||
: Home page for app
|
: Home page for app
|
||||||
:)
|
:)
|
||||||
|
@ -204,7 +204,8 @@ declare function render($template as xs:string,$locals){
|
||||||
let $path:=request:path()
|
let $path:=request:path()
|
||||||
let $default:=map{ "title": request:path(),
|
let $default:=map{ "title": request:path(),
|
||||||
"active-link": active-link($path,?), (: *** FAILS IF request:path() :)
|
"active-link": active-link($path,?), (: *** FAILS IF request:path() :)
|
||||||
"bodyclass": ""}
|
"bodyclass": "",
|
||||||
|
"version":$grxq:version}
|
||||||
let $locals:=map:merge(($default,$locals))
|
let $locals:=map:merge(($default,$locals))
|
||||||
return txq:render(fn:resolve-uri($template),$locals,$grxq:layout)
|
return txq:render(fn:resolve-uri($template),$locals,$grxq:layout)
|
||||||
};
|
};
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<meta xmlns="http://basex.org/xquery/repo">
|
<meta xmlns="http://basex.org/xquery/repo">
|
||||||
<description>Restxq interface for Graphviz for BaseX 8.0.</description>
|
<description>Restxq interface for Graphviz for BaseX.</description>
|
||||||
<author>Andy Bunce</author>
|
<author>Andy Bunce</author>
|
||||||
<website>https://github.com/apb2006/graphxq</website>
|
<website>https://github.com/apb2006/graphxq</website>
|
||||||
<status>alpha</status>
|
<status>alpha</status>
|
||||||
|
|
|
@ -4,10 +4,7 @@ declare variable $dot external :="{dot}";
|
||||||
declare variable $svgwidget external :="{svg}";
|
declare variable $svgwidget external :="{svg}";
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="row" style="height:24px">
|
|
||||||
{$toolbar}
|
{$toolbar}
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6" id="leftPane">
|
<div class="col-md-6" id="leftPane">
|
||||||
<div id="dsrc" class="extend ace-container" >
|
<div id="dsrc" class="extend ace-container" >
|
||||||
|
|
|
@ -3,9 +3,7 @@ declare variable $dotml external :="{dotml}";
|
||||||
declare variable $svgwidget external :="{svg}";
|
declare variable $svgwidget external :="{svg}";
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="row" style="height:24px">
|
|
||||||
{$toolbar}
|
{$toolbar}
|
||||||
</div>
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6" id="leftPane" style="position:relative;height:100%">
|
<div class="col-md-6" id="leftPane" style="position:relative;height:100%">
|
||||||
<div id="dsrc" class="extend ace-container" >
|
<div id="dsrc" class="extend ace-container" >
|
||||||
|
|
|
@ -5,7 +5,7 @@ declare variable $url external;
|
||||||
<a href="{$url($item)}" class="thumbnail"
|
<a href="{$url($item)}" class="thumbnail"
|
||||||
style="height:128px;width:20em; background-color:#EEEEEE">
|
style="height:128px;width:20em; background-color:#EEEEEE">
|
||||||
<div class="pull-left media-object" style="height:120px;width:120px;">
|
<div class="pull-left media-object" style="height:120px;width:120px;">
|
||||||
<img src="/static/graphxq/data/thumbs/{$item/url}.gif"
|
<img src="/static/graphxq/thumbs/{$item/url}.gif"
|
||||||
style="max-height:100%; max-width:100%;" />
|
style="max-height:100%; max-width:100%;" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
declare variable $body external :="{body}";
|
declare variable $body external :="{body}";
|
||||||
declare variable $title external :="{title}";
|
declare variable $title external :="{title}";
|
||||||
|
(:~ version e.g "0.5" :)
|
||||||
|
declare variable $version external :="?todo";
|
||||||
declare variable $bodyclass external :="{$bodyclass}";
|
declare variable $bodyclass external :="{$bodyclass}";
|
||||||
declare variable $active-link external :=function($_){$_};
|
declare variable $active-link external :=function($_){$_};
|
||||||
|
|
||||||
|
@ -53,7 +55,7 @@ declare variable $active-link external :=function($_){$_};
|
||||||
<!-- Collect the nav links, forms, and other content for toggling -->
|
<!-- Collect the nav links, forms, and other content for toggling -->
|
||||||
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li> <a href="/graphxq" class="brand" title="Version 0.5.0">
|
<li> <a href="/graphxq" class="brand" title="Version {$version}">
|
||||||
<img src="/static/graphxq/graphxq2.png" />
|
<img src="/static/graphxq/graphxq2.png" />
|
||||||
GraphXQ
|
GraphXQ
|
||||||
</a>
|
</a>
|
||||||
|
@ -99,7 +101,7 @@ declare variable $active-link external :=function($_){$_};
|
||||||
><i class="glyphicon glyphicon-wrench"></i> API</a>
|
><i class="glyphicon glyphicon-wrench"></i> API</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li><a href="#about">About</a></li>
|
<li><a href="about">About</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -3,7 +3,7 @@ declare variable $partial external ;
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<h2>Samples ({fn:count($items/item )})</h2>
|
<h2>Samples ({fn:count($items/item )})</h2>
|
||||||
<ul class=" thumbnails media-list">
|
<ul class=" thumbnails media-list list-inline">
|
||||||
{$partial("item1.xq","item",$items/item)}
|
{$partial("item1.xq","item",$items/item)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
<div>
|
<div class="row">
|
||||||
|
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button id="bnRefresh" class="btn btn-mini"
|
<button id="bnRefresh" class="btn btn-mini"
|
||||||
|
@ -27,15 +27,15 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- http://stackoverflow.com/questions/12101781/splitter-for-twitter-bootstrap -->
|
<!-- http://stackoverflow.com/questions/12101781/splitter-for-twitter-bootstrap -->
|
||||||
<div class="btn-group " data-toggle="buttons-radio">
|
<div class="btn-group " data-toggle="buttons-radio">
|
||||||
<a rel="tooltip" title="Show only the editor" class="btn btn-mini"
|
<a rel="tooltip" title="Show only the editor" class="btn btn-mini btn-default"
|
||||||
data-action="lDom" data-placement="left">
|
data-action="lDom" data-placement="left">
|
||||||
<i class="glyphicon glyphicon-indent-left"></i>
|
<i class="glyphicon glyphicon-indent-left"></i>
|
||||||
</a>
|
</a>
|
||||||
<a rel="tooltip" title="Make both sides equal" class="btn btn-mini"
|
<a rel="tooltip" title="Make both sides equal" class="btn btn-mini btn-default"
|
||||||
data-placement="left" data-action="equality">
|
data-placement="left" data-action="equality">
|
||||||
<i class="glyphicon glyphicon-resize-horizontal"></i>
|
<i class="glyphicon glyphicon-resize-horizontal"></i>
|
||||||
</a>
|
</a>
|
||||||
<a rel="tooltip" title="Show only the result" class="btn btn-mini"
|
<a rel="tooltip" title="Show only the result" class="btn btn-mini btn-default"
|
||||||
data-placement="left" data-action="rDom">
|
data-placement="left" data-action="rDom">
|
||||||
<i class="glyphicon glyphicon-indent-right"></i>
|
<i class="glyphicon glyphicon-indent-right"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -43,20 +43,20 @@
|
||||||
<a id="infotip" data-original-title="Status from Ajax"
|
<a id="infotip" data-original-title="Status from Ajax"
|
||||||
class="btn btn-mini" rel="popover" data-placement="bottom" data-content="nothing yet."
|
class="btn btn-mini" rel="popover" data-placement="bottom" data-content="nothing yet."
|
||||||
title="Ajax request status">
|
title="Ajax request status">
|
||||||
<i class="glyphicon glyphicon-info-sign" title="Request status, click for more.">></i>
|
<i class="glyphicon glyphicon-info-sign" title="Request status, click for more."></i>
|
||||||
</a>
|
</a>
|
||||||
<div class="btn-group pull-right">
|
<div class="btn-group pull-right">
|
||||||
<button id="bnsvg" class="btn btn-mini" title="Show SVG standalone.">
|
<button id="bnsvg" class="btn btn-mini btn-default" title="Show SVG standalone.">
|
||||||
<i class="glyphicon glyphicon-fullscreen"></i>
|
<i class="glyphicon glyphicon-fullscreen"></i>
|
||||||
SVG
|
SVG
|
||||||
</button>
|
</button>
|
||||||
<button id="bndn" class="btn btn-mini" title="Download SVG file">
|
<button id="bndn" class="btn btn-mini btn-default" title="Download SVG file">
|
||||||
<i class="glyphicon glyphicon-download-alt"></i>
|
<i class="glyphicon glyphicon-download-alt"></i>
|
||||||
download
|
download
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group pull-right">
|
<div class="btn-group pull-right">
|
||||||
<button id="bnxml" class="btn btn-mini" data-toggle="button" title="Toggle SVG graphic and text">
|
<button id="bnxml" class="btn btn-mini btn-default" data-toggle="button" title="Toggle SVG graphic and text">
|
||||||
<i class="glyphicon glyphicon-eye-close"></i>
|
<i class="glyphicon glyphicon-eye-close"></i>
|
||||||
SVG text
|
SVG text
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Add table
Reference in a new issue