-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ftr/measure-label-handling
# Conflicts: # add/data/xql/getMeasures.xql
- Loading branch information
Showing
57 changed files
with
1,421 additions
and
3,942 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
labels: | ||
- 'gh actions dependencies' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
name: Docker build PR | ||
name: Build | ||
|
||
on: | ||
# push: | ||
# branches: [ main ] | ||
push: | ||
branches: [ develop ] | ||
pull_request: | ||
types: [opened, edited, reopened] | ||
types: [ opened, synchronize, reopened ] | ||
branches: [ develop, main ] | ||
|
||
env: | ||
|
@@ -13,26 +13,29 @@ env: | |
jobs: | ||
|
||
build: | ||
|
||
name: Build Edirom Online | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Edirom Online from ${{ GITHUB_REF }} | ||
run: docker run --rm -v `pwd`:/app -w /app --entrypoint ./build.sh bwbohl/sencha-cmd | ||
- uses: actions/upload-artifact@v2 | ||
- name: Chekout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get short sha | ||
uses: benjlevesque/[email protected] | ||
id: short-sha | ||
with: | ||
name: EdiromOnline_${{ GITHUB_REF }}.zip | ||
path: build-xar/EdiromOnline*.xar | ||
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` | ||
length: 7 | ||
|
||
- name: Build Edirom Online from ${{ github.ref }} at ${{ github.sha }} | ||
run: docker run --rm -v $(pwd):/app -w /app --entrypoint ./build.sh bwbohl/sencha-cmd | ||
|
||
# deploy: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: deploy | ||
# uses: jaapio/keelsh-deploy@master | ||
# with: | ||
# keelBaseUrl: http://keel.euryanthe.de | ||
# image: 'bazga/existdb' | ||
# tag: 'latest' | ||
- name: Upload Artifacts to action run | ||
if: github.repository == 'Edirom/Edirom-Online' | ||
uses: actions/[email protected] | ||
with: | ||
# The name that the artifact will be made available under | ||
name: EdiromOnline_${{ steps.short-sha.outputs.sha }}.zip | ||
# The path to retrieve the artifact | ||
path: ${{ github.workspace }}/build-xar/Edirom-Online-*.xar | ||
if-no-files-found: warn # 'warn' or 'ignore' are also available, defaults to `warn` | ||
#optional retention-days: 1 to 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ Thumbs.db | |
/tmp | ||
*.xpr | ||
local.properties | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Edirom Online Contributing Guidelines | ||
|
||
# General Guidelines | ||
|
||
* do not combine code-linting and content work in one commit | ||
|
||
## Whitespace handling | ||
|
||
1. Use whitespaces, not tabs to indent code | ||
2. Close file with a newline character | ||
|
||
|
||
# XQuery | ||
|
||
## xqDoc | ||
|
||
We use [xqDoc](https://xqdoc.org) for documenting the XQueries in this repository. Please refer to the section [xqDoc Comments](https://xqdoc.org/xqdoc_comments_doc.html) of the xqDoc-website for details on formatting the documentation comment blocks. | ||
|
||
* XQuery modules must have a library module xqDoc comment preceding the module declaration. | ||
* Function declarations must have a library module xqDoc function comment preceding the function. | ||
|
||
## XQuery document structure | ||
|
||
### XQuery version | ||
|
||
```xquery | ||
xquery version 3.1; | ||
``` | ||
|
||
### License Statement | ||
|
||
```xquery | ||
(: | ||
For LICENSE-Details please refer to the LICENSE file in the root directory of this repository. | ||
:) | ||
``` | ||
|
||
### File Header | ||
|
||
1. `declare namespace` statements | ||
* sort alphabetically by prefix | ||
2. `import module namespace` statements of registered modules | ||
* sort alphabetically by prefix | ||
3. `import module namespace` statements of custom modules | ||
* sort alphabetically by prefix | ||
* Always use relative URIs for `import module namespace` statements that import for modules not registered with eXist-db. | ||
|
||
### Declare variables | ||
|
||
* Use `declare variable` statements for all required external parameters | ||
|
||
### Function declarations | ||
|
||
* functions have to be preceded by an xqDoc comment | ||
|
||
### XQuery body | ||
|
||
* Strings: escape with U+00027 APOSTROPHE: `'` | ||
|
||
|
||
# Javascript | ||
|
||
## AJAX calls | ||
|
||
The class `EdiromOnline.controller.AJAXController` provides a central method `doAJAXRequest` for performing AJAX requests. The method is provided globally as `window.doAJAXRequest`. | ||
|
||
`doAJAXRequest` takes the following arguments: | ||
|
||
* `url`: The URL of the requestet site or end point. | ||
* `method`: The HTTP method like `PUT`, `GET`, `POST`. | ||
* `params`: An object containing key-value-pairs of parameters for the request. | ||
* `successFn`: A callback function which is called when the AJAX request was successfull. | ||
* `retryNo`: The number of retries, if the requests fails. Standard is 2 retries. | ||
* `async`: Defines the async parameter for AJAX calls. Default is 'true'. | ||
|
||
An example of using the function would be: | ||
|
||
```javascript | ||
window.doAJAXRequest('data/xql/getAnnotationMeta.xql', | ||
'GET', | ||
{ | ||
uri: uri, | ||
lang: lang | ||
}, | ||
Ext.bind(function(response){ | ||
view.setMeta(response.responseText); | ||
}, this) | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.