File tree 20 files changed +1444
-1135
lines changed
20 files changed +1444
-1135
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"servers" : {
3
3
"localhost" : {
4
- "server" : " http ://localhost:8080 /exist" ,
4
+ "server" : " https ://127.0.0.1:8443 /exist" ,
5
5
"user" : " admin" ,
6
6
"password" : " " ,
7
7
"root" : " /db/apps/tuttle"
Original file line number Diff line number Diff line change 27
27
services :
28
28
# Label used to access the service container
29
29
exist :
30
- env :
31
- tuttle_token_tuttle_sample_data : ${{ secrets.TUTTLE_TEST_TOKEN }}
30
+ env :
31
+ tuttle_token_tuttle_sample_data : ${{ secrets.TUTTLE_TEST_TOKEN }}
32
+ tuttle_token_tuttle_sample_gitlab : ${{ secrets.GITLAB_READ_TOKEN }}
32
33
image : existdb/existdb:${{ matrix.exist-version }}
33
34
ports :
34
35
- 8443:8443
Original file line number Diff line number Diff line change @@ -19,7 +19,14 @@ const packageUri = existJSON.package.namespace
19
19
const serverInfo = existJSON . servers . localhost
20
20
const target = serverInfo . root
21
21
22
+ const url = new URL ( serverInfo . server )
23
+ // console.log(url)
24
+
25
+ // FIXME read from .existdb.json
22
26
const connectionOptions = {
27
+ host : url . hostname ,
28
+ port : url . port ,
29
+ secure : url . protocol === 'https:' ,
23
30
basic_auth : {
24
31
user : serverInfo . user ,
25
32
pass : serverInfo . password
Original file line number Diff line number Diff line change 3
3
"version" : " 1.2.0" ,
4
4
"description" : " tuttle - a Git-integration for eXist-db" ,
5
5
"scripts" : {
6
+ "start" : " gulp" ,
6
7
"test" : " gulp install && mocha --exit" ,
7
8
"test:watch" : " mocha --watch" ,
8
9
"test:build" : " gulp test:install" ,
17
18
},
18
19
"license" : " GPL-3.0" ,
19
20
"devDependencies" : {
20
- "@existdb/gulp-exist" : " ^4.0 .0" ,
21
- "@existdb/gulp-replace-tmpl" : " ^1.0.0 " ,
21
+ "@existdb/gulp-exist" : " ^4.4 .0" ,
22
+ "@existdb/gulp-replace-tmpl" : " ^1.0.4 " ,
22
23
"@semantic-release/exec" : " ^5.0.0" ,
23
24
"@semantic-release/git" : " ^9.0.0" ,
24
25
"@semantic-release/github" : " ^7.2.0" ,
Original file line number Diff line number Diff line change 8
8
"servers" : [
9
9
{
10
10
"description" : " Endpoint for testing on localhost" ,
11
- "url" : " http://localhost:8080 /exist/apps/tuttle"
11
+ "url" : " /exist/apps/tuttle"
12
12
}
13
13
],
14
14
"components" : {
19
19
},
20
20
"cookieAuth" : {
21
21
"type" : " apiKey" ,
22
- "name" : " teipublisher.com .login" ,
22
+ "name" : " eeditiones.org .login" ,
23
23
"in" : " cookie"
24
24
}
25
25
}
109
109
"x-constraints" : {
110
110
"user" : " admin"
111
111
},
112
- "operationId" : " api:git-pull" ,
112
+ "operationId" : " api:git-pull-default " ,
113
113
"parameters" : [
114
114
{
115
115
"name" : " hash" ,
143
143
"x-constraints" : {
144
144
"user" : " admin"
145
145
},
146
- "operationId" : " api:git-deploy" ,
146
+ "operationId" : " api:git-deploy" ,
147
147
"responses" : {
148
148
"200" :{
149
149
"description" : " JSON dump of request" ,
184
184
"in" : " query" ,
185
185
"required" : false ,
186
186
"schema" :{
187
- "type" : " boolean"
187
+ "type" : " boolean" ,
188
+ "default" : false
188
189
}
189
190
}
190
191
],
223
224
"in" : " query" ,
224
225
"required" : false ,
225
226
"schema" :{
226
- "type" : " boolean"
227
+ "type" : " boolean" ,
228
+ "default" : false
227
229
}
228
230
}
229
231
],
230
232
"responses" : {
231
233
"200" :{
232
- "description" : " JSON dump of request " ,
234
+ "description" : " result of the update " ,
233
235
"content" : {
234
236
"application/json" : {
235
237
"schema" : {
268
270
],
269
271
"responses" : {
270
272
"200" : {
271
- "description" : " GIT Hash " ,
273
+ "description" : " git hashes " ,
272
274
"content" : {
273
275
"application/json" : {
274
276
"schema" : {
333
335
"x-constraints" : {
334
336
"user" : " admin"
335
337
},
336
- "operationId" : " api:get-commit " ,
338
+ "operationId" : " api:get-commits " ,
337
339
"parameters" : [
338
340
{
339
341
"name" : " count" ,
340
342
"in" : " query" ,
341
343
"required" : false ,
342
344
"schema" :{
343
- "type" : " integer"
345
+ "type" : " integer" ,
346
+ "default" : 20
344
347
}
345
348
},
346
349
{
372
375
"x-constraints" : {
373
376
"user" : " admin"
374
377
},
375
- "operationId" : " api:get-commit " ,
378
+ "operationId" : " api:get-commits-default " ,
376
379
"parameters" : [
377
380
{
378
381
"name" : " count" ,
379
382
"in" : " query" ,
380
383
"required" : false ,
381
384
"schema" :{
382
- "type" : " integer"
385
+ "type" : " integer" ,
386
+ "default" : 20
383
387
}
384
388
}
385
389
],
Original file line number Diff line number Diff line change 4
4
<default >true</default >
5
5
<type >github</type >
6
6
<baseurl >https://api.github.com/</baseurl >
7
- <repo >tuttle-sample-data</repo >
8
7
<owner >eeditiones</owner >
8
+ <repo >tuttle-sample-data</repo >
9
9
<token >XXX</token >
10
- <ref >main </ref >
10
+ <ref >next </ref >
11
11
<hookuser >admin</hookuser >
12
12
<hookpasswd ></hookpasswd >
13
13
</collection >
14
14
15
15
<collection name =" tuttle-sample-gitlab" >
16
16
<type >gitlab</type >
17
17
<baseurl >https://gitlab.com/api/v4/</baseurl >
18
- <project-id >tuttle-sample-data</project-id >
18
+ <owner >line-o</owner >
19
+ <repo >tuttle-sample-data</repo >
20
+ <project-id >50872175</project-id >
19
21
<token >XXX</token >
20
- <ref >master </ref >
22
+ <ref >main </ref >
21
23
<hookuser >admin</hookuser >
22
24
<hookpasswd ></hookpasswd >
23
25
</collection >
34
36
</blacklist >
35
37
36
38
37
- <config prefix =" /db/apps" suffix =" -stage" lock =" git-lock.xml" apikeys =" /db/system/auth/tuttle-token.xml" >
39
+ <config prefix =" /db/apps/ " suffix =" -stage" lock =" git-lock.xml" apikeys =" /db/system/auth/tuttle-token.xml" >
38
40
<sm user =" nobody" group =" nogroup" mode =" rw-r--r--" />
39
41
</config >
40
-
41
-
42
42
</tuttle >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
1
2
< html lang ="en ">
2
3
< head >
3
4
< meta charset ="UTF-8 "/>
4
5
5
6
< title > Tuttle Dashboard</ title >
6
- < link rel ="stylesheet " href ="resources/css/fore.css ">
7
- < link rel ="stylesheet " href ="resources/css/vars.css ">
8
- < link rel ="stylesheet " href ="resources/css/styles.css ">
7
+ < link rel ="stylesheet " href ="resources/css/fore.css " / >
8
+ < link rel ="stylesheet " href ="resources/css/vars.css " / >
9
+ < link rel ="stylesheet " href ="resources/css/styles.css " / >
9
10
10
11
</ head >
11
12
< body >
@@ -158,11 +159,11 @@ <h1><img class="tuttle" src="resources/images/HPTuttle-1866.png"></img>
158
159
< section class ="login ">
159
160
< fx-control ref ="instance('auth')/user " update-event ="enter ">
160
161
< label > User</ label >
161
- < input type ="text " autofocus autocomplete ="false ">
162
+ < input type ="text " autofocus =" autofocus " autocomplete ="false " / >
162
163
</ fx-control >
163
164
< fx-control ref ="instance('auth')/password " update-event ="enter ">
164
165
< label > Password</ label >
165
- < input type ="password ">
166
+ < input type ="password " / >
166
167
</ fx-control >
167
168
168
169
< fx-trigger >
@@ -205,8 +206,6 @@ <h3>Git Repositories</h3>
205
206
</ fx-switch >
206
207
</ fx-fore >
207
208
< script type ="module " src ="./js/fore-all.js "> </ script >
208
-
209
-
210
209
</ div >
211
210
</ body >
212
211
</ html >
You can’t perform that action at this time.
0 commit comments