Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main-variants' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
orlinmalkja committed Oct 30, 2024
2 parents d0ff499 + 9d4b9e3 commit 39ed6e6
Show file tree
Hide file tree
Showing 39 changed files with 2,855 additions and 555 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Node.js CI

on:
push:
branches: [ "develop" ]
branches: [ "develop", "main-variants" ]
pull_request:
branches: [ "develop", "main" ]
branches: [ "develop", "main", "main-variants" ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -37,13 +37,16 @@ jobs:
restore-keys: |
cypress-${{ runner.os }}-cypress-node${{ matrix.node-version }}-
- name: Install dependencies
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run Linting
run: npm run lint
- name: Run tests
run: |
npm ci
npm run start:mock-api &
npm run test
# - name: Save test video folder
Expand Down
193 changes: 94 additions & 99 deletions README.md

Large diffs are not rendered by default.

31 changes: 18 additions & 13 deletions examples/ahiqar-arabic-karshuni-local.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"manifest": "Manuscript"
},
"colors": {
"forceMode": "light"
"forceMode": "light",
"primary": "#1a3771"
},
"panels": [
{
Expand Down Expand Up @@ -86,10 +87,7 @@
"connector": {
"id": 4,
"options": {
"type": "transcription",
"default_font_size": 16,
"min_font_size": 14,
"max_font_size": 28
"type": "transcription"
}
}
},
Expand All @@ -100,8 +98,8 @@
"id": 4,
"options": {
"type": "transliteration"
}
}
}
}
]
},
Expand All @@ -117,19 +115,19 @@
"types": [
{
"name": "Person",
"icon": "biPersonFill"
"icon": "person"
},
{
"name": "Place",
"icon": "biGeoAltFill"
"icon": "marker"
},
{
"name": "Editorial Comment",
"icon": "biChatFill"
"icon": "chat"
},
{
"name": "Reference",
"icon": "biBoxArrowUpRight"
"icon": "externalLink"
}
]
}
Expand All @@ -144,11 +142,18 @@
"types": [
{
"name": "Motif",
"icon": "biPenFill"
"icon": "pen"
}
]
}
}
},
{
"id": "annotations3",
"label": "Variants",
"connector": {
"id": 6
}
}
]
}
Expand All @@ -161,10 +166,10 @@
"next_manifest": "Next Manuscript",
"previous_manifest": "Previous Manuscript",
"item": "Sheet"
},
}
}
});
});
</script>
</body>
</html>
</html>
174 changes: 174 additions & 0 deletions examples/ahiqar-arabic-karshuni-with-variants-local.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<!DOCTYPE html>
<html>
<head><title>TIDO</title>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="initial-scale=1,maximum-scale=5,minimum-scale=1,width=device-width">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="dist/tido.css">
<style>
html, body {
margin: 0;
}
#app {
height: 100vh;
}
</style>
</head>
<body>
<noscript><strong>We're sorry but TIDO doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong></noscript>

<div id="app"></div>
<script src="dist/tido.js"></script>
<script>
window.addEventListener('load', function () {
window.tido = new window.Tido({
"collection": "http://localhost:8181/ahiqar/textapi/ahiqar/arabic-karshuni/collection.json",
"labels": {
"item": "Sheet",
"manifest": "Manuscript"
},
"colors": {
"forceMode": "light"
},
"panels": [
{
"label": "contents_and_metadata",
"views": [
{
"id": "tree",
"label": "contents",
"connector": {
"id": 1
}
},
{
"id": "metadata",
"label": "metadata",
"connector": {
"id": 2,
"options": {
"collection": {
"all": true
},
"manifest": {
"all": true
},
"item": {
"all": true
}
}
}
}
]
},
{
"label": "image",
"views": [
{
"id": "image",
"label": "Image",
"connector": {
"id": 3
}
}]
},
{
"label": "text",
"views": [
{
"id": "text1",
"label": "Transcription",
"default": true,
"connector": {
"id": 4,
"options": {
"type": "transcription"
}
}
},
{
"id": "text2",
"label": "Transliteration",
"connector": {
"id": 4,
"options": {
"type": "transliteration"
}
}
}
]
},
{
"label": "annotations",
"views": [
{
"id": "annotations1",
"label": "Editorial",
"connector": {
"id": 5,
"options": {
"types": [
{
"name": "Person",
"icon": "person"
},
{
"name": "Place",
"icon": "marker"
},
{
"name": "Editorial Comment",
"icon": "chat"
},
{
"name": "Reference",
"icon": "externalLink"
}
]
}
}
},
{
"id": "annotations2",
"label": "Motif",
"connector": {
"id": 5,
"options": {
"types": [
{
"name": "Motif",
"icon": "pen"
}
]
}
}
},
{
"id": "annotations3",
"label": "Variants",
"connector": {
"id": 6
}
}
]
}
],
"translations": {
"en": {
"contents_and_metadata": "Contents & Metadata",
"next_item": "Next Sheet",
"previous_item": "Previous Sheet",
"next_manifest": "Next Manuscript",
"previous_manifest": "Previous Manuscript",
"item": "Sheet"
}
}
});
});
</script>
</body>
</html>
33 changes: 23 additions & 10 deletions examples/ahiqar-arabic-karshuni.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Coming soon.</h1>
<script src="dist/tido.js"></script>
<script>
window.addEventListener('load', function () {

const select = document.getElementById('nav-select');
const pathArr = window.location.pathname.split('/')

Expand All @@ -47,13 +47,14 @@ <h1>Coming soon.</h1>

const tido = new Tido({
"collection": "https://api.dev.ahiqar.sub.uni-goettingen.de/textapi/ahiqar/arabic-karshuni/collection.json",
colors: {
primary: "#1a3771"
},
"labels": {
"item": "Sheet",
"manifest": "Manuscript"
},
"colors": {
"forceMode": "light",
"primary": "#1a3771"
},
"panels": [
{
"label": "contents_and_metadata",
Expand Down Expand Up @@ -134,19 +135,19 @@ <h1>Coming soon.</h1>
"types": [
{
"name": "Person",
"icon": "biPersonFill"
"icon": "person"
},
{
"name": "Place",
"icon": "biGeoAltFill"
"icon": "marker"
},
{
"name": "Editorial Comment",
"icon": "biChatFill"
"icon": "chat"
},
{
"name": "Reference",
"icon": "biBoxArrowUpRight"
"icon": "externalLink"
}
]
}
Expand All @@ -161,18 +162,30 @@ <h1>Coming soon.</h1>
"types": [
{
"name": "Motif",
"icon": "biPenFill"
"icon": "pen"
}
]
}
}
},
{
"id": "annotations3",
"label": "Variants",
"connector": {
"id": 6
}
}
]
}
],
"translations": {
"en": {
"contents_and_metadata": "Contents & Metadata"
"contents_and_metadata": "Contents & Metadata",
"next_item": "Next Sheet",
"previous_item": "Previous Sheet",
"next_manifest": "Next Manuscript",
"previous_manifest": "Previous Manuscript",
"item": "Sheet"
}
}
});
Expand Down
Loading

0 comments on commit 39ed6e6

Please sign in to comment.