diff --git a/.settings/de.loskutov.FileSync.prefs b/.settings/de.loskutov.FileSync.prefs index 6500af3..6201818 100644 --- a/.settings/de.loskutov.FileSync.prefs +++ b/.settings/de.loskutov.FileSync.prefs @@ -1,5 +1,5 @@ WARNING=DO NOT MODIFY THIS FILE IF YOU DON'T UNDERSTAND -defaultDestination=C\:/Users/andy/Desktop/basex.865b/webapp +defaultDestination=C\:/Users/andy/Desktop/basex.865/webapp defaultVariables= eclipse.preferences.version=1 includeTeamPrivateFiles=false diff --git a/src/vue-poc/components/core.js b/src/vue-poc/components/core.js index b59c66c..6be0fbe 100644 --- a/src/vue-poc/components/core.js +++ b/src/vue-poc/components/core.js @@ -21,6 +21,7 @@ const Auth={ }; Vue.use(Auth); +// read and write settings // https://vuejs.org/v2/guide/state-management.html var settings = { debug: true, @@ -60,7 +61,7 @@ Vue.config.errorHandler = function (err, vm, info) { }; - +// used by vue-ace var Events = new Vue({}); @@ -89,6 +90,7 @@ const router = new VueRouter({ { path: '/tasks', component: Task,meta:{title:"Runnable tasks"} }, { path: '/tasks/model', component: Model,meta:{title:"build model"} }, { path: '/tasks/xqdoc', component: Xqdoc,meta:{title:"build xqdoc"} }, + { path: '/tasks/vuecompile', component: Vuecompile,meta:{title:"vue compile"} }, { path: '/jobs', component: Job,meta:{title:"Jobs"} }, { path: '/timeline', component: Timeline,meta:{title:"timeline"} }, { path: '*', component: Notfound,meta:{title:"Page not found"} } @@ -123,6 +125,7 @@ const app = new Vue({ status:{}, drawer:true, mini: false, + alert:{show:false,msg:"Hello"}, items:[ {href: '/',text: 'Home', icon: 'home' }, { @@ -141,10 +144,25 @@ const app = new Vue({ model: false, children: [ {href: '/eval',text: 'Query',icon: 'play_circle_outline'}, - {href: '/jobs',text: 'Running jobs',icon: 'dashboard'}, {href: '/tasks',text: 'Tasks',icon: 'history'} ]}, - {href: '/logs',text: 'Server logs',icon: 'dns'}, + { + icon: 'cast_connected', + text: 'Server' , + model: false, + children: [ + {href: '/jobs',text: 'Running jobs',icon: 'dashboard'}, + {href: '/logs',text: 'Server logs',icon: 'dns'}, + {href: '/ping',text: 'ping',icon: 'update'} + ]}, + { + icon: 'camera_roll', + text: 'Images' , + model: false, + children: [ + {href: '/images',text: 'Collection',icon: 'photo_camera'}, + {href: '/thumbnail',text: 'thumbnail',icon: 'touch_app'} + ]}, { icon: 'more_horiz', text: 'More' , @@ -152,12 +170,9 @@ const app = new Vue({ children: [ {href: '/session',text: 'Session',icon: 'person'}, {href: '/select',text: 'select',icon: 'extension'}, - {href: '/puzzle',text: 'Puzzle',icon: 'extension'}, - {href: '/images',text: 'Images',icon: 'camera_roll'}, + {href: '/puzzle',text: 'Puzzle',icon: 'extension'}, {href: '/tabs',text: 'tabs',icon: 'switch_camera'}, - {href: '/ping',text: 'ping',icon: 'update'}, - {href: '/timeline',text: 'time line',icon: 'timelapse'}, - {href: '/thumbnail',text: 'thumbnail',icon: 'touch_app'} + {href: '/timeline',text: 'time line',icon: 'timelapse'} ]}, {href: '/settings',text: 'settings',icon: 'settings' } ] @@ -173,12 +188,28 @@ const app = new Vue({ logout(){ HTTP.get("logout").then(r=>{ alert("logout") - }) - + }) + }, + showAlert(msg){ + this.alert.msg=msg + this.alert.show=true } }, created(){ console.log("create-----------") + // Add a response interceptor + + HTTP.interceptors.response.use( + (response)=> { + // Do something with response data + return response; + }, + (error) =>{ + // Do something with response error + this.showAlert("http error:\n"+error.response.data) + return Promise.reject(error); + }); + HTTP.get("status") .then(r=>{ console.log("status",r.data) diff --git a/src/vue-poc/components/qd-navlist.vue b/src/vue-poc/components/qd-navlist.vue index 06ca721..8aa911f 100644 --- a/src/vue-poc/components/qd-navlist.vue +++ b/src/vue-poc/components/qd-navlist.vue @@ -42,7 +42,7 @@ for nav drawer - {{ child.text }} +  {{ child.text }} diff --git a/src/vue-poc/data/vue-poc/all_well.xml b/src/vue-poc/data/vue-poc/samples/all_well.xml similarity index 100% rename from src/vue-poc/data/vue-poc/all_well.xml rename to src/vue-poc/data/vue-poc/samples/all_well.xml diff --git a/src/vue-poc/data/vue-poc/ch4d1.xml b/src/vue-poc/data/vue-poc/samples/ch4d1.xml similarity index 100% rename from src/vue-poc/data/vue-poc/ch4d1.xml rename to src/vue-poc/data/vue-poc/samples/ch4d1.xml diff --git a/src/vue-poc/data/vue-poc/shaks200.zip b/src/vue-poc/data/vue-poc/samples/shaks200.zip similarity index 100% rename from src/vue-poc/data/vue-poc/shaks200.zip rename to src/vue-poc/data/vue-poc/samples/shaks200.zip diff --git a/src/vue-poc/data/vue-poc/tasks/taskdefs.xml b/src/vue-poc/data/vue-poc/tasks/taskdefs.xml new file mode 100644 index 0000000..ea12854 --- /dev/null +++ b/src/vue-poc/data/vue-poc/tasks/taskdefs.xml @@ -0,0 +1,12 @@ + + +tasks/xqdoc + + + +tasks/vue-compile + + +tasks/model + + \ No newline at end of file diff --git a/src/vue-poc/data/vue-poc/xproc-enrich.xpl b/src/vue-poc/data/vue-poc/xproc/xproc-enrich.xpl similarity index 100% rename from src/vue-poc/data/vue-poc/xproc-enrich.xpl rename to src/vue-poc/data/vue-poc/xproc/xproc-enrich.xpl diff --git a/src/vue-poc/data/vue-poc/xproc/xproc-steps-lib.xpl b/src/vue-poc/data/vue-poc/xproc/xproc-steps-lib.xpl new file mode 100644 index 0000000..bc567c4 --- /dev/null +++ b/src/vue-poc/data/vue-poc/xproc/xproc-steps-lib.xpl @@ -0,0 +1,393 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/vue-poc/features/about.vue b/src/vue-poc/features/about.vue index 60486e4..6bef888 100644 --- a/src/vue-poc/features/about.vue +++ b/src/vue-poc/features/about.vue @@ -1,5 +1,5 @@ - diff --git a/src/vue-poc/features/adminlog/logs.vue b/src/vue-poc/features/adminlog/logs.vue index bfa4c89..8e31209 100644 --- a/src/vue-poc/features/adminlog/logs.vue +++ b/src/vue-poc/features/adminlog/logs.vue @@ -31,11 +31,11 @@ > @@ -52,11 +52,11 @@ left: true, value: 'time' }, - { text: 'address', value: 'address' }, { text: 'user', value: 'user' }, { text: 'Type', value: 'type' }, { text: 'ms', value: 'ms' }, - { text: 'text', value: 'text' } + { text: 'text', value: 'text' }, + { text: 'address', value: 'address' }, ], items:[], pagination:{sortBy: 'time',descending:true,rowsPerPage:25}, diff --git a/src/vue-poc/features/collection/collections.xqm b/src/vue-poc/features/collection/collections.xqm index de248a6..c081c22 100644 --- a/src/vue-poc/features/collection/collections.xqm +++ b/src/vue-poc/features/collection/collections.xqm @@ -6,8 +6,11 @@ module namespace vue-api = 'quodatum:vue.api.collection'; import module namespace rest = "http://exquery.org/ns/restxq"; import module namespace ufile = 'vue-poc/file' at "../../lib/file.xqm"; -declare namespace c="http://www.w3.org/ns/xproc-step"; +import module namespace entity = 'quodatum.models.generated' at "../../models.gen.xqm"; +import module namespace dice = 'quodatum.web.dice/v4' at "../../lib/dice.xqm"; +import module namespace web = 'quodatum.web.utils4' at "../../lib/webutils.xqm"; +declare namespace c="http://www.w3.org/ns/xproc-step"; (:~ : history list @@ -18,15 +21,10 @@ declare %output:method("json") function vue-api:history( ) { - let $h:=doc("history.xml")/history/entry - return - - {$h!(<_ type="object"> - {@url/string()} - {@mode/string()} - )} - - + let $entity:=$entity:list("filehistory") + let $items:= $entity("data")() + let $d:=trace($items,"66666") + return dice:response($items,$entity,web:dice()) }; diff --git a/src/vue-poc/features/collection/files.vue b/src/vue-poc/features/collection/files.vue index ba5a5ba..5555972 100644 --- a/src/vue-poc/features/collection/files.vue +++ b/src/vue-poc/features/collection/files.vue @@ -18,9 +18,7 @@ - - info - + view_module @@ -42,7 +40,7 @@ modified: {{ item.modified | formatDate}} size: {{ item.size | readablizeBytes}} - + info @@ -68,12 +66,15 @@ - - test + + {{selected.name}} highlight_off - - blah blah protocol: + + Things to do with + + runrun + @@ -129,6 +130,9 @@ info(item){ this.selected=item this.showInfo=true + }, + doit(){ + alert("doit") } }, diff --git a/src/vue-poc/features/collection/history.xml b/src/vue-poc/features/collection/history.xml deleted file mode 100644 index 6bd91bb..0000000 --- a/src/vue-poc/features/collection/history.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/vue-poc/features/home.vue b/src/vue-poc/features/home.vue index d38b8db..089e422 100644 --- a/src/vue-poc/features/home.vue +++ b/src/vue-poc/features/home.vue @@ -1,12 +1,12 @@ - diff --git a/src/vue-poc/features/tasks/model.build/model.vue b/src/vue-poc/features/tasks/model.build/model.vue index f5b3475..7efb8cb 100644 --- a/src/vue-poc/features/tasks/model.build/model.vue +++ b/src/vue-poc/features/tasks/model.build/model.vue @@ -7,6 +7,11 @@ Generate model.gen.xqm + + + play_circle_outline + Run @@ -30,12 +35,7 @@ - - - play_circle_outline - Run - + + + + Generate + <code>model.gen.xqm</code> + + + + Folder containing model definitions as xml + Path to xqm file to generate + + + \ No newline at end of file diff --git a/src/vue-poc/features/tasks/tasks.vue b/src/vue-poc/features/tasks/tasks.vue index 3ef3a1f..ca89eb9 100644 --- a/src/vue-poc/features/tasks/tasks.vue +++ b/src/vue-poc/features/tasks/tasks.vue @@ -9,6 +9,9 @@
  • xqdoc
  • +
  • + vue compile +
  • diff --git a/src/vue-poc/features/tasks/vue-compile/rxq-vue-compile.xqm b/src/vue-poc/features/tasks/vue-compile/rxq-vue-compile.xqm new file mode 100644 index 0000000..5d1b0f5 --- /dev/null +++ b/src/vue-poc/features/tasks/vue-compile/rxq-vue-compile.xqm @@ -0,0 +1,23 @@ +(:~ + : compile + :) +module namespace vue-rest = 'quodatum:vue.rest'; +import module namespace vue = 'quodatum:vue.compile' at "../../../lib/vue-compile/vue-compile.xqm"; + + + +(:~ + : run compile task. + :) +declare +%rest:POST %rest:path("/vue-poc/api/tasks/vue-compile") +%rest:form-param("proj", "{$proj}") +%rest:produces("application/json") +%output:method("json") +%updating +function vue-rest:vue($proj ) +{ + let $op:=vue:compile($proj) + return db:output( { $proj }.) +}; + diff --git a/src/vue-poc/features/tasks/vue-compile/vuecompile.vue b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue new file mode 100644 index 0000000..9909139 --- /dev/null +++ b/src/vue-poc/features/tasks/vue-compile/vuecompile.vue @@ -0,0 +1,76 @@ + + + + diff --git a/src/vue-poc/features/tasks/xqdoc/rxq-xqdoc.xqm b/src/vue-poc/features/tasks/xqdoc/rxq-xqdoc.xqm index 9f8f999..57ff9c7 100644 --- a/src/vue-poc/features/tasks/xqdoc/rxq-xqdoc.xqm +++ b/src/vue-poc/features/tasks/xqdoc/rxq-xqdoc.xqm @@ -5,13 +5,13 @@ : $target:="file:///C:/Users/andy/workspace/app-doc/src/doc/generated/models.xqm" :) module namespace vue-api = 'quodatum:vue.api'; +import module namespace xqd = 'quodatum:build.xqdoc' at "../../../lib/xqdoc/xqdoc-proj.xqm"; import module namespace fw="quodatum:file.walker"; declare namespace c="http://www.w3.org/ns/xproc-step"; -declare variable $vue-api:HTML5:=map{"method": "html","version":"5.0"}; -declare variable $vue-api:mod-xslt external :="html-module.xsl"; + (:~ - : Returns a file content. + : run xqdoc task. :) declare %rest:POST %rest:path("/vue-poc/api/tasks/xqdoc") @@ -21,37 +21,9 @@ declare %output:method("json") %updating function vue-api:model($efolder ,$target ) -{( - let $files:= fw:directory-list($efolder,map{"include-filter":".*\.xqm"})//c:file - let $op:=vue-api:save-xq($files,$target) - return db:output( {$target}, {count($files)} files written.) -)}; +{ + let $files:= fw:directory-list($efolder,map{"include-filter":".*\.xqm"}) + let $op:=xqd:save-xq($files,$target) + return db:output( {$target}, {count($files//c:file)} files processed.) +}; - -declare function vue-api:save-xq($files,$target) - { - let $params:=map{ - "project":"BCH", - "source":"Not available", - "cache":true() } - return for $f in $files - let $ip:=$f/@name/resolve-uri(.,base-uri(.)) - let $op:=$f/ancestor-or-self::*/@name=>string-join("/") - let $xq:=inspect:xqdoc(trace($ip,"iiii")) - let $dest:=file:resolve-path($op,$target) - return ( - vue-api:write2($xq,$dest || ".xml",map{}), - vue-api:write2($xq=>xslt:transform($vue-api:mod-xslt,$params),$dest || ".html",$vue-api:HTML5) - ) - }; - - declare function vue-api:write2($data,$url as xs:string,$opts as map(*)) - { - let $p:=file:parent($url) - return ( - if(file:is-dir($p)) then () else file:create-dir($p), - file:write($url,$data) - ) - }; - - diff --git a/src/vue-poc/features/tasks/xqdoc/xqdoc.vue b/src/vue-poc/features/tasks/xqdoc/xqdoc.vue index 6ffd9c2..3f6daf9 100644 --- a/src/vue-poc/features/tasks/xqdoc/xqdoc.vue +++ b/src/vue-poc/features/tasks/xqdoc/xqdoc.vue @@ -7,6 +7,11 @@ Task: Generate xqdoc + + + play_circle_outline + Run @@ -28,18 +33,13 @@ - - - play_circle_outline - Run - + - {{alert.msg}} + {{alert.timestamp}}:{{alert.msg}} - {{alert.msg}} + {{alert.timestamp}}:{{alert.msg}} {{code}} @@ -60,6 +60,7 @@ methods:{ submit(){ this.waiting=true + this.alert={msg:"Loading..",success:false,error:false} HTTP.post("tasks/xqdoc",Qs.stringify(this.params)) .then(r=>{ this.waiting=false diff --git a/src/vue-poc/features/timeline.vue b/src/vue-poc/features/timeline.vue index 799a36e..c046715 100644 --- a/src/vue-poc/features/timeline.vue +++ b/src/vue-poc/features/timeline.vue @@ -23,7 +23,7 @@ vueState: { data1: [ - { id: 1, content: 'item 1', start: '2013-04-20' }, + { id: 1, content: 'item 1', start: '2013-04-20 23:06:15.304' }, { id: 2, content: 'item 2', start: '2013-04-14' }, { id: 3, content: 'item 3', start: '2013-04-18' }, { id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19' }, diff --git a/src/vue-poc/history.xml b/src/vue-poc/history.xml new file mode 100644 index 0000000..c783244 --- /dev/null +++ b/src/vue-poc/history.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/vue-poc/lib/dbtools.xqm b/src/vue-poc/lib/dbtools.xqm new file mode 100644 index 0000000..5a02ccf --- /dev/null +++ b/src/vue-poc/lib/dbtools.xqm @@ -0,0 +1,75 @@ +(:~ +: tools for databases.. +: @author andy bunce +: @since mar 2013 +:) + +module namespace dbtools = 'quodatum.dbtools'; + + +(: trailing slash :) +declare variable $dbtools:webpath:= db:system()/globaloptions/webpath/fn:string() + || file:dir-separator(); + +(:~ +: save all in db to zip +: no binary yet +:) +declare function dbtools:zip($dbname as xs:string) +as xs:base64Binary{ + let $files:=db:list($dbname) + let $zip := archive:create( + $files ! element archive:entry { . }, + $files ! fn:serialize(db:open($dbname, .)) + ) +return $zip +}; + +(:~ +: update or create database from file path +: @param $dbname name of database +: @param $path file path contain files +:) +declare %updating function dbtools:sync-from-path($dbname as xs:string,$path as xs:string){ + dbtools:sync-from-files($dbname, + $path, + file:list($path,fn:true()), + hof:id#1) +}; + +(:~ +: update or create database from file list. After this the database will have a +: matching copy of the files on the file system +: @param $dbname name of database +: @param $path base file path where files are relative to en +: @param $files file names from base +: @param $ingest function to apply f(fullsrcpath)->anotherpath or xml nodes +:) +declare %updating +function dbtools:sync-from-files($dbname as xs:string, + $path as xs:string, + $files as xs:string*, + $ingest as function(*)) +{ +let $path:=$path ||"/" +let $files:=$files!fn:translate(.,"\","/") +let $files:=fn:filter($files,function($f){file:is-file(fn:concat($path,$f))}) +return if(db:exists($dbname)) then + ( + for $d in db:list($dbname) + where fn:not($d=$files) + return db:delete($dbname,$d), + + for $f in $files + let $_:=fn:trace($path || $f,"file:") + let $content:=$ingest($path || $f) + return db:replace($dbname,$f,$content), + + db:optimize($dbname) + ) + else + let $full:=$files!fn:concat($path,.) + let $content:=$full!$ingest(.) + return (db:create($dbname,$content,$files)) +}; + diff --git a/tools/html5parse.xqm b/src/vue-poc/lib/vue-compile/html5parse.xqm similarity index 100% rename from tools/html5parse.xqm rename to src/vue-poc/lib/vue-compile/html5parse.xqm diff --git a/tools/compile.xq b/src/vue-poc/lib/vue-compile/vue-compile.xqm similarity index 52% rename from tools/compile.xq rename to src/vue-poc/lib/vue-compile/vue-compile.xqm index 5265c4f..5eb854c 100644 --- a/tools/compile.xq +++ b/src/vue-poc/lib/vue-compile/vue-compile.xqm @@ -1,6 +1,8 @@ (:~ - : create app-gen.js from vue files + : compile vue files to js :) +module namespace vue = 'quodatum:vue.compile'; + import module namespace html5="text.html5" at "html5parse.xqm"; import module namespace fw="quodatum:file.walker"; declare namespace c="http://www.w3.org/ns/xproc-step"; @@ -9,36 +11,42 @@ declare namespace Element="java:ch.digitalfondue.jfiveparse.Element"; declare namespace Node="java:ch.digitalfondue.jfiveparse.Node"; declare namespace functx = "http://www.functx.com"; -declare variable $PROJ:="C:/Users/andy/git/vue-poc/src/vue-poc/"; -declare variable $FEATURES:="features/"=>file:resolve-path($PROJ); -declare variable $COMPONENTS:="components/"=>file:resolve-path($PROJ); -declare variable $CORE:="components/core.js"=>file:resolve-path($PROJ); -declare variable $FILTERS:="components/filters.js"=>file:resolve-path($PROJ); -declare variable $DEST:="static/app-gen.js"=>file:resolve-path($PROJ); +declare variable $vue:PROJ:="C:/Users/andy/git/vue-poc/src/vue-poc/"; +declare variable $vue:FEATURES:="features/"; +declare variable $vue:COMPONENTS:="components/"; +declare variable $vue:CORE:="components/core.js"; +declare variable $vue:FILTERS:="components/filters.js"; +declare variable $vue:DEST:="static/app-gen.js"; (:~ : generate javascript vue call from vue files in source folder and core.js + : @param $doc url for vue file :) -declare function local:feature($doc,$isComp as xs:boolean) +declare function vue:feature($doc,$isComp as xs:boolean) +as xs:string { -let $p:=local:vue-parse($doc) +let $p:=vue:parse($doc) let $script:= $p?script=>substring-after("{") return if(empty($p?id)) then () else if($isComp) then - ``[Vue.component('`{$p?id}`',{template:` `{$p?template}` `, + ``[Vue.component('`{ $p?id }`',{template:` `{ $p?template }` `, `{$script}` ); ]`` else - ``[const `{functx:capitalize-first($p?id)}`=Vue.extend({template:` `{$p?template}` `, - `{$script}` + ``[const `{ vue:capitalize-first($p?id) }`=Vue.extend({template:` `{ $p?template }` `, + `{ $script }` ); ]`` }; -declare function local:vue-parse($doc) +(:~ + : parse a vue file to extract template and script + : @return map{"id":$id,"template":$template,"script":$script} + :) +declare function vue:parse($doc) as map(*) { let $tempNode:= html5:getElementFirstByTagName($doc,"template") @@ -50,23 +58,36 @@ as map(*) return map{"id":$id,"template":$template,"script":$script} }; -declare function functx:capitalize-first +declare function vue:capitalize-first ( $arg as xs:string? ) as xs:string? { concat(upper-case(substring($arg,1,1)), substring($arg,2)) }; +(:~ + : compile vue code to "static/app-gen.js" + : @param $proj root folder e.g "C:/Users/andy/git/vue-poc/src/vue-poc/" + :) +declare function vue:compile($proj as xs:string) +{ +let $FEATURES:="features/"=>file:resolve-path($proj) +let $COMPONENTS:="components/"=>file:resolve-path($proj) +let $CORE:="components/core.js"=>file:resolve-path($proj) +let $FILTERS:="components/filters.js"=>file:resolve-path($proj) +let $DEST:="static/app-gen.js"=>file:resolve-path($proj) + let $files:= fw:directory-list($FEATURES,map{"include-filter":".*\.vue"}) //c:file/@name/resolve-uri(.,base-uri(.)) -let $feats:=$files!(fetch:text(.)=>html5:doc()=>local:feature(false())) +let $feats:=$files!(fetch:text(.)=>html5:doc()=>vue:feature(false())) let $files:= fw:directory-list($COMPONENTS,map{"include-filter":".*\.vue"}) //c:file/@name/resolve-uri(.,base-uri(.)) -let $comps:=$files!(fetch:text(.)=>html5:doc()=>local:feature(true())) +let $comps:=$files!(fetch:text(.)=>html5:doc()=>vue:feature(true())) let $comment:="// generated " || current-dateTime() || " " return file:write-text($DEST,string-join(($comment, $comps, fetch:text($FILTERS), $feats, - fetch:text($CORE)))) \ No newline at end of file + fetch:text($CORE)))) +}; \ No newline at end of file diff --git a/src/vue-poc/lib/xqdoc/html-index.xsl b/src/vue-poc/lib/xqdoc/html-index.xsl new file mode 100644 index 0000000..dcd1395 --- /dev/null +++ b/src/vue-poc/lib/xqdoc/html-index.xsl @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + <xsl:value-of select="'Index'" /> + - xqDoc + + + + + + + + + + + + +
    +

    + XQDoc for +

    +
      + +
    + + +
    + + + + +
    + + +
  • + + + +
  • +
    + +
    diff --git a/src/vue-poc/features/tasks/xqdoc/html-module.xsl b/src/vue-poc/lib/xqdoc/html-module.xsl similarity index 67% rename from src/vue-poc/features/tasks/xqdoc/html-module.xsl rename to src/vue-poc/lib/xqdoc/html-module.xsl index a034f3f..1b89a7b 100644 --- a/src/vue-poc/features/tasks/xqdoc/html-module.xsl +++ b/src/vue-poc/lib/xqdoc/html-module.xsl @@ -2,50 +2,62 @@ - + xmlns:qd="http://www.quodatum.com/ns/xsl" exclude-result-prefixes="xs doc fn" + version="2.0"> + + + - + + + + content="xqdoc-r - https://github.com/quodatum/xqdoc-r" /> <xsl:value-of select="$docuri" /> - xqDoc - - - + + + + - + - - + +
    + +
    -

    Original Source Code

    +

    Original Source Code

     							
     						
    @@ -55,7 +67,13 @@