[add] drone

This commit is contained in:
Andy Bunce 2021-05-23 21:41:41 +01:00
parent 1080533e6c
commit dec787c6b7
84 changed files with 42 additions and 16 deletions

10
.drone.yml Normal file
View File

@ -0,0 +1,10 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: run
image: quodatum/basexhttp:BaseX951
commands:
- echo done drone

View File

@ -1,5 +1,5 @@
WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND
defaultDestination=C\:/Program Files (x86)/basex/webapp
defaultDestination=C\:/Users/andy/basex.home/webapp
defaultVariables=
eclipse.preferences.version=1
includeTeamPrivateFiles=false

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
# docker file to create graphxq
# @created 2021-04
# author="Andy Bunce"
FROM quodatum/basexhttp
USER root
RUN apt-get update && apt-get install -y graphviz
COPY ./src/webapp/ /srv/basex/webapp/
COPY ./src/repo/ /srv/basex/repo/
COPY ./src/custom /srv/basex/lib/custom
USER 1000
WORKDIR /srv
EXPOSE 8984
# Run BaseX HTTP server by default
CMD ["/srv/basex/bin/basexhttp"]

View File

@ -1,13 +1,21 @@
# graphxq
An interface to Graphviz for BaseX 8.0
An interface to Graphviz for BaseX 9.5+
## Local Install
## Install
copy the contents of the `src` folder to your `webapp` folder
## Requires
### Requires
1. Graphviz intallation with `dot` on the path
1. restxq default config with (static)
## Docker
```
docker build --tag=graphxq .
docker run -p 8999:8984 graphxq
```
## other
* includes dotML
* BaseX RestXQ interface

Binary file not shown.

View File

@ -1,5 +1,5 @@
<package abbrev="graphxq" name="https://github.com/apb2006/graphxq"
version="0.7.2" spec="1.0" xmlns="http://expath.org/ns/pkg">
version="0.8.0" spec="1.0" xmlns="http://expath.org/ns/pkg">
<title>Graphxq</title>
<dependency name="twitter-bootstrap" version="3.3.6" />
<dependency name="svg-pan-zoom" version="3.2.8" />

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -12,6 +12,7 @@ import module namespace dotml = 'http://www.martin-loetzsch.de/DOTML' at "dotml.
import module namespace dotui = 'apb.graphxq.dotui' at "dotui.xqm";
import module namespace txq = 'quodatum.txq' at "lib/txq.xqm";
import module namespace request = "http://exquery.org/ns/request";
import module namespace web = 'http://basex.org/modules/web';
declare namespace svg= "http://www.w3.org/2000/svg";
declare namespace restxq = 'http://exquery.org/ns/restxq';
@ -19,6 +20,7 @@ declare namespace restxq = 'http://exquery.org/ns/restxq';
(:~ shared page wrapper :)
declare variable $grxq:layout:=fn:resolve-uri("views/layout.xq");
declare variable $grxq:version as xs:string:=fn:doc("expath-pkg.xml")/*/@version/fn:string();
(:~
: Home page for app
:)
@ -26,7 +28,7 @@ declare
%restxq:GET %restxq:path("graphxq")
%output:method("html") %output:version("5.0")
function home(){
<restxq:redirect>/graphxq/about</restxq:redirect>
web:redirect("/graphxq/about")
};
(:~

View File

@ -30,16 +30,7 @@ declare variable $active-link external :=function($_){$_};
<script src="/static/graphxq/svg-pan-zoom2.js"></script>
<script type="text/javascript"><![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34544921-1']);
_gaq.push(['_setDomainName', 'rhcloud.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// todo
]]></script>
</head>
<body class="{$bodyclass}">

View File

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

Before

Width:  |  Height:  |  Size: 880 B

After

Width:  |  Height:  |  Size: 880 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 880 B

After

Width:  |  Height:  |  Size: 880 B

View File

Before

Width:  |  Height:  |  Size: 880 B

After

Width:  |  Height:  |  Size: 880 B

View File

Before

Width:  |  Height:  |  Size: 985 B

After

Width:  |  Height:  |  Size: 985 B

View File

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 339 B

After

Width:  |  Height:  |  Size: 339 B

View File

Before

Width:  |  Height:  |  Size: 737 KiB

After

Width:  |  Height:  |  Size: 737 KiB

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 288 B

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB