mirror of
				https://github.com/Quodatum/graphxq.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	update browser libraries
This commit is contained in:
		
							parent
							
								
									0b197567dc
								
							
						
					
					
						commit
						144f9a2ccd
					
				
					 7 changed files with 95 additions and 58 deletions
				
			
		
							
								
								
									
										7
									
								
								src/graphxq/expath-pkg.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/graphxq/expath-pkg.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
 | 
				
			||||||
 | 
						version="0.1" spec="1.0" xmlns="http://expath.org/ns/pkg">
 | 
				
			||||||
 | 
						<title>Graphxq</title>
 | 
				
			||||||
 | 
						<dependency name="twitter-bootstrap" version="3.3.1" />
 | 
				
			||||||
 | 
						<dependency name="jquery" version="2.0.2" />
 | 
				
			||||||
 | 
						<dependency name="ace" version="1.1.8" />
 | 
				
			||||||
 | 
					</package>
 | 
				
			||||||
							
								
								
									
										13
									
								
								src/graphxq/repo.xml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/graphxq/repo.xml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
 | 
					<meta xmlns="http://basex.org/xquery/repo">
 | 
				
			||||||
 | 
					    <description>Restxq interface for Graphviz for BaseX 8.0.</description>
 | 
				
			||||||
 | 
					    <author>Andy Bunce</author>
 | 
				
			||||||
 | 
					    <website>https://github.com/apb2006/graphxq</website>
 | 
				
			||||||
 | 
					    <status>alpha</status>
 | 
				
			||||||
 | 
					    <license>Apache 2</license>
 | 
				
			||||||
 | 
					    <copyright>true</copyright>
 | 
				
			||||||
 | 
					    <type>application</type>
 | 
				
			||||||
 | 
					    <target>graphxq</target>
 | 
				
			||||||
 | 
					    <prepare></prepare>
 | 
				
			||||||
 | 
					    <finish/>
 | 
				
			||||||
 | 
					</meta>
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
    <p>Return SVG generated from dot syntax passed in the <code>data</code> parameter.</p>
 | 
					    <p>Return SVG generated from dot syntax passed in the <code>data</code> parameter.</p>
 | 
				
			||||||
    <h3>Syntax</h3>
 | 
					    <h3>Syntax</h3>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
        <code>restxq/graphxq/api/dot</code> <span class="label">application/x-www-form-urlencoded</span>
 | 
					        <code>/graphxq/api/dot</code> <span class="label">application/x-www-form-urlencoded</span>
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
    <table class="table table-bordered">
 | 
					    <table class="table table-bordered">
 | 
				
			||||||
        <thead>
 | 
					        <thead>
 | 
				
			||||||
| 
						 | 
					@ -40,7 +40,7 @@
 | 
				
			||||||
    <p>Return SVG generated from dotML syntax passed in the <code>data</code> parameter.</p>
 | 
					    <p>Return SVG generated from dotML syntax passed in the <code>data</code> parameter.</p>
 | 
				
			||||||
    <h3>Syntax</h3>
 | 
					    <h3>Syntax</h3>
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
        <code>restxq/graphxq/api/dotml</code> <span class="label">application/x-www-form-urlencoded</span>
 | 
					        <code>/graphxq/api/dotml</code> <span class="label">application/x-www-form-urlencoded</span>
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
    <table class="table table-bordered">
 | 
					    <table class="table table-bordered">
 | 
				
			||||||
        <thead>
 | 
					        <thead>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,13 +3,13 @@ declare variable $toolbar external :="{tooolbar}";
 | 
				
			||||||
declare variable $dot external :="{dot}";
 | 
					declare variable $dot external :="{dot}";
 | 
				
			||||||
declare variable $svgwidget external :="{svg}";
 | 
					declare variable $svgwidget external :="{svg}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="row-fluid">		
 | 
					<div class="row">		
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<div class="row-fluid" style="height:24px">
 | 
						<div class="row" style="height:24px">
 | 
				
			||||||
		{$toolbar}
 | 
							{$toolbar}
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<div class="row-fluid">
 | 
						<div class="row">
 | 
				
			||||||
		<div class="span6  " id="leftPane">	
 | 
							<div class="col-md-6" id="leftPane">	
 | 
				
			||||||
           <div id="dsrc" class="extend ace-container" >
 | 
					           <div id="dsrc" class="extend ace-container" >
 | 
				
			||||||
            <div  id="acedata" class="ace " data-mode="dot" ></div>
 | 
					            <div  id="acedata" class="ace " data-mode="dot" ></div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
| 
						 | 
					@ -26,7 +26,7 @@ node[shape=circle,style=filled,fillcolor=lightblue]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}}</textarea>	
 | 
					}}</textarea>	
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="span6" id="rightPane">
 | 
							<div class="col-md-6" id="rightPane">
 | 
				
			||||||
			<div id="svgdiv" class="extend"
 | 
								<div id="svgdiv" class="extend"
 | 
				
			||||||
				style="width:100%;height:30em;border: 1px solid #E3E3E3;min-height:10em;">{$svgwidget}</div>
 | 
									style="width:100%;height:30em;border: 1px solid #E3E3E3;min-height:10em;">{$svgwidget}</div>
 | 
				
			||||||
             <div id="svgsrc" class="extend ace-container" style="display: none">
 | 
					             <div id="svgsrc" class="extend ace-container" style="display: none">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,12 +2,12 @@ declare variable $toolbar external :="{tooolbar}";
 | 
				
			||||||
declare variable $dotml external :="{dotml}";
 | 
					declare variable $dotml external :="{dotml}";
 | 
				
			||||||
declare variable $svgwidget external :="{svg}";
 | 
					declare variable $svgwidget external :="{svg}";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="row-fluid">		
 | 
					<div class="row">		
 | 
				
			||||||
	<div class="row-fluid" style="height:24px">
 | 
						<div class="row" style="height:24px">
 | 
				
			||||||
		{$toolbar}
 | 
							{$toolbar}
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<div class="row-fluid">
 | 
						<div class="row">
 | 
				
			||||||
		<div class="span6" 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" >
 | 
				
			||||||
            <div  id="acedata" class="ace " data-mode="xml" ></div>
 | 
					            <div  id="acedata" class="ace " data-mode="xml" ></div>
 | 
				
			||||||
            </div>
 | 
					            </div>
 | 
				
			||||||
| 
						 | 
					@ -21,7 +21,7 @@ declare variable $svgwidget external :="{svg}";
 | 
				
			||||||
  <node id="test"/>
 | 
					  <node id="test"/>
 | 
				
			||||||
</graph></textarea>   
 | 
					</graph></textarea>   
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div class="span6" id="rightPane">
 | 
							<div class="col-md-6" id="rightPane">
 | 
				
			||||||
			<div id="svgdiv" class="extend"
 | 
								<div id="svgdiv" class="extend"
 | 
				
			||||||
				style="width:100%;height:30em;border: 1px solid #E3E3E3;min-height:10em;">{$svgwidget}</div>
 | 
									style="width:100%;height:30em;border: 1px solid #E3E3E3;min-height:10em;">{$svgwidget}</div>
 | 
				
			||||||
			<div id="svgsrc" class="extend ace-container" style="display: none">
 | 
								<div id="svgsrc" class="extend ace-container" style="display: none">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,18 +11,15 @@ declare  variable $active-link external :=function($_){$_};
 | 
				
			||||||
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
							<meta name="viewport" content="width=device-width, initial-scale=1.0" />
 | 
				
			||||||
		<meta name="description" content="graphviz tool" />
 | 
							<meta name="description" content="graphviz tool" />
 | 
				
			||||||
		<meta name="author" content="andy bunce" />
 | 
							<meta name="author" content="andy bunce" />
 | 
				
			||||||
		<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/css/bootstrap.css" rel="stylesheet"
 | 
							<link
 | 
				
			||||||
			type="text/css" />
 | 
					            href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css"
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/css/bootstrap-responsive.min.css"
 | 
					 | 
				
			||||||
            rel="stylesheet" type="text/css" />
 | 
					            rel="stylesheet" type="text/css" />
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		<!-- Le fav and touch icons -->
 | 
							<!-- Le fav and touch icons -->
 | 
				
			||||||
		<link rel="shortcut icon" href="/static/graphxq/graphxq2.png" />
 | 
							<link rel="shortcut icon" href="/static/graphxq/graphxq2.png" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
 | 
							<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.2/jquery.min.js" type="text/javascript"></script>
 | 
				
			||||||
		<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js" type="text/javascript"></script>
 | 
							<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js" type="text/javascript"></script>
 | 
				
			||||||
        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.8/ace.js" type="text/javascript" charset="utf-8"></script>
 | 
					        <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.8/ace.js" type="text/javascript" charset="utf-8"></script>
 | 
				
			||||||
        <link href="/static/graphxq/app.css" rel="stylesheet" type="text/css" />
 | 
					        <link href="/static/graphxq/app.css" rel="stylesheet" type="text/css" />
 | 
				
			||||||
        <script src="/static/graphxq/app.js" type="text/javascript"></script>
 | 
					        <script src="/static/graphxq/app.js" type="text/javascript"></script>
 | 
				
			||||||
| 
						 | 
					@ -40,27 +37,33 @@ declare  variable $active-link external :=function($_){$_};
 | 
				
			||||||
        ]]></script>
 | 
					        ]]></script>
 | 
				
			||||||
	</head>
 | 
						</head>
 | 
				
			||||||
	<body class="{$bodyclass}">
 | 
						<body class="{$bodyclass}">
 | 
				
			||||||
		<div class="navbar navbar-fixed-top navbar-inverse" data-dropdown="dropdown">
 | 
						<nav class="navbar navbar-default">
 | 
				
			||||||
			<div class="navbar-inner">
 | 
					  <div class="container-fluid">
 | 
				
			||||||
				<div class="container">
 | 
					    <!-- Brand and toggle get grouped for better mobile display -->
 | 
				
			||||||
					<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
 | 
					    <div class="navbar-header">
 | 
				
			||||||
 | 
					      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
 | 
				
			||||||
 | 
					        <span class="sr-only">Toggle navigation</span>
 | 
				
			||||||
        <span class="icon-bar"></span>
 | 
					        <span class="icon-bar"></span>
 | 
				
			||||||
        <span class="icon-bar"></span>
 | 
					        <span class="icon-bar"></span>
 | 
				
			||||||
        <span class="icon-bar"></span>
 | 
					        <span class="icon-bar"></span>
 | 
				
			||||||
					</a>
 | 
					      </button>
 | 
				
			||||||
					<a href="about" class="brand" title="Version 0.5.0">
 | 
					 | 
				
			||||||
						<img src="/static/graphxq/graphxq2.png" />
 | 
					 | 
				
			||||||
						graphXQ
 | 
					 | 
				
			||||||
					</a>
 | 
					 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
					 <div class="nav-collapse collapse">
 | 
					    </div>
 | 
				
			||||||
            <ul class="nav">               
 | 
					
 | 
				
			||||||
 | 
					    <!-- Collect the nav links, forms, and other content for toggling -->
 | 
				
			||||||
 | 
					    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 | 
				
			||||||
 | 
					      <ul class="nav navbar-nav">
 | 
				
			||||||
 | 
					        <li> <a href="/graphxq" class="brand" title="Version 0.5.0">
 | 
				
			||||||
 | 
					                        <img src="/static/graphxq/graphxq2.png" />
 | 
				
			||||||
 | 
					                        GraphXQ
 | 
				
			||||||
 | 
					                    </a>
 | 
				
			||||||
 | 
					        </li> 
 | 
				
			||||||
         <li class="{$active-link('dot')}">
 | 
					         <li class="{$active-link('dot')}">
 | 
				
			||||||
                    <a href="dot" rel="tooltip" title="Define a graph in Dot notation" ><i class="icon-edit"></i> Dot</a>
 | 
					                    <a href="dot" rel="tooltip" title="Define a graph in Dot notation" ><i class="glyphicon glyphicon-edit"></i> Dot</a>
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                <li class="{$active-link('dotml')}">
 | 
					                <li class="{$active-link('dotml')}">
 | 
				
			||||||
                    <a href="dotml"><i class="icon-align-center"
 | 
					                    <a href="dotml"><i class="glyphicon glyphicon-align-center"
 | 
				
			||||||
                    title="Define a graph using DotML XML"
 | 
					                    title="Define a graph using DotML XML"
 | 
				
			||||||
                    ></i> DotML</a>
 | 
					                    ></i> DotML</a>
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
| 
						 | 
					@ -68,26 +71,42 @@ declare  variable $active-link external :=function($_){$_};
 | 
				
			||||||
               <li class="{$active-link('library')}">
 | 
					               <li class="{$active-link('library')}">
 | 
				
			||||||
                <a href="library"
 | 
					                <a href="library"
 | 
				
			||||||
                title="Examples"
 | 
					                title="Examples"
 | 
				
			||||||
                ><i class="icon-book"></i> Library</a>
 | 
					                ><i class="glyphicon glyphicon-book"></i> Library</a>
 | 
				
			||||||
              </li> 
 | 
					              </li> 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <li class="{$active-link('api')}">
 | 
					 | 
				
			||||||
                  <a href="api"  title="About the API"
 | 
					 | 
				
			||||||
                  ><i class="icon-wrench"></i> API</a>
 | 
					 | 
				
			||||||
              </li>
 | 
					 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            <li class="{$active-link('ace')}">
 | 
					 | 
				
			||||||
                  <a href="ace"  title="Xquery editor (just for fun)"
 | 
					 | 
				
			||||||
                  ><i class="icon-wrench"></i> Ace</a>
 | 
					 | 
				
			||||||
              </li>                  
 | 
					 | 
				
			||||||
      </ul>
 | 
					      </ul>
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
 | 
					      <form class="navbar-form navbar-left" role="search">
 | 
				
			||||||
 | 
					        <div class="form-group">
 | 
				
			||||||
 | 
					          <input type="text" class="form-control" placeholder="Search"/>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
 | 
					        <button type="submit" class="btn btn-default">Submit</button>
 | 
				
			||||||
 | 
					      </form>
 | 
				
			||||||
      
 | 
					      
 | 
				
			||||||
 | 
					      <ul class="nav navbar-nav navbar-right">
 | 
				
			||||||
 | 
					          <li class="{$active-link('ace')}">
 | 
				
			||||||
 | 
					                  <a href="ace"  title="Xquery editor (just for fun)"
 | 
				
			||||||
 | 
					                  ><i class="glyphicon glyphicon-wrench"></i> Ace</a>
 | 
				
			||||||
 | 
					              </li>    
 | 
				
			||||||
 | 
					        <li class="dropdown">
 | 
				
			||||||
 | 
					          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">About <span class="caret"></span></a>
 | 
				
			||||||
 | 
					          <ul class="dropdown-menu" role="menu">
 | 
				
			||||||
 | 
					            <li><a href="#">Action</a></li>
 | 
				
			||||||
 | 
					            <li><a href="#">Another action</a></li>
 | 
				
			||||||
 | 
					             <li class="{$active-link('api')}">
 | 
				
			||||||
 | 
					                  <a href="api"  title="About the API"
 | 
				
			||||||
 | 
					                  ><i class="glyphicon glyphicon-wrench"></i> API</a>
 | 
				
			||||||
 | 
					              </li> 
 | 
				
			||||||
 | 
					            <li class="divider"></li>
 | 
				
			||||||
 | 
					            <li><a href="#about">About</a></li>
 | 
				
			||||||
 | 
					          </ul>
 | 
				
			||||||
 | 
					        </li>
 | 
				
			||||||
 | 
					      </ul>
 | 
				
			||||||
 | 
					    </div><!-- /.navbar-collapse -->
 | 
				
			||||||
 | 
					  </div><!-- /.container-fluid -->
 | 
				
			||||||
 | 
					</nav>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				</div>
 | 
					 | 
				
			||||||
			</div>
 | 
					 | 
				
			||||||
		</div>
 | 
					 | 
				
			||||||
       <!-- Modal http://jsfiddle.net/matt_hwy1/hRq82/1/ -->
 | 
					       <!-- Modal http://jsfiddle.net/matt_hwy1/hRq82/1/ -->
 | 
				
			||||||
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 | 
					<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 | 
				
			||||||
  <div class="modal-header">
 | 
					  <div class="modal-header">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,5 @@
 | 
				
			||||||
/* app.css */
 | 
					/* app.css */
 | 
				
			||||||
body {
 | 
					
 | 
				
			||||||
    padding-top: 50px;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@media (max-width: 979px) {
 | 
					@media (max-width: 979px) {
 | 
				
			||||||
    body {
 | 
					    body {
 | 
				
			||||||
      padding-top: 0;
 | 
					      padding-top: 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue