mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-03-12 09:42:27 +00:00
refactor: move app to monorepo
This commit is contained in:
12
frontend/app/.browserslistrc
Normal file
12
frontend/app/.browserslistrc
Normal file
@@ -0,0 +1,12 @@
|
||||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
||||
# For additional information regarding the format and rule options, please see:
|
||||
# https://github.com/browserslist/browserslist#queries
|
||||
|
||||
# You can see what browsers were selected by your queries by running:
|
||||
# npx browserslist
|
||||
|
||||
> 0.5%
|
||||
last 2 versions
|
||||
Firefox ESR
|
||||
not dead
|
||||
not IE 9-11 # For IE 9-11 support, remove 'not'.
|
||||
17
frontend/app/.editorconfig
Normal file
17
frontend/app/.editorconfig
Normal file
@@ -0,0 +1,17 @@
|
||||
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# We recommend you to keep these unchanged
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
1
frontend/app/.eslintignore
Normal file
1
frontend/app/.eslintignore
Normal file
@@ -0,0 +1 @@
|
||||
src/app/_helpers/data
|
||||
74
frontend/app/.eslintrc.json
Normal file
74
frontend/app/.eslintrc.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"root": true,
|
||||
"ignorePatterns": ["projects/**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts"],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020,
|
||||
"sourceType": "module",
|
||||
"project": ["tsconfig.json", "e2e/tsconfig.e2e.json"],
|
||||
"createDefaultProgram": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@angular-eslint/recommended",
|
||||
"plugin:@angular-eslint/template/process-inline-templates",
|
||||
"plugin:jsdoc/recommended",
|
||||
"plugin:unicorn/recommended",
|
||||
"prettier"
|
||||
],
|
||||
"plugins": ["eslint-plugin-unicorn", "eslint-plugin-jsdoc"],
|
||||
"settings": {
|
||||
"jsdoc": {
|
||||
"mode": "typescript"
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"unicorn/filename-case": "error",
|
||||
"unicorn/no-array-reduce": "off",
|
||||
"unicorn/no-array-callback-reference": "off",
|
||||
"unicorn/no-await-expression-member": "off",
|
||||
"unicorn/prefer-object-from-entries": "off",
|
||||
"unicorn/prefer-node-protocol": "off",
|
||||
"unicorn/no-process-exit": "off",
|
||||
"unicorn/prevent-abbreviations": [
|
||||
"warn",
|
||||
{
|
||||
"replacements": {
|
||||
"ref": false,
|
||||
"i": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"unicorn/no-nested-ternary": "off",
|
||||
"unicorn/better-regex": "off",
|
||||
|
||||
"jsdoc/no-types": "error",
|
||||
"jsdoc/require-param": "off",
|
||||
"jsdoc/require-param-description": "error",
|
||||
"jsdoc/check-param-names": "error",
|
||||
"jsdoc/require-returns": "off",
|
||||
"jsdoc/require-param-type": "off",
|
||||
"jsdoc/require-returns-type": "off",
|
||||
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"args": "after-used",
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/lines-between-class-members": ["error", "always"],
|
||||
"@typescript-eslint/no-explicit-any": "error",
|
||||
"@angular-eslint/use-lifecycle-interface": "error"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["*.html"],
|
||||
"extends": ["plugin:@angular-eslint/template/recommended", "prettier"]
|
||||
}
|
||||
]
|
||||
}
|
||||
45
frontend/app/.gitignore
vendored
Normal file
45
frontend/app/.gitignore
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# Specifies intentionally untracked files to ignore when using Git
|
||||
# http://git-scm.com/docs/gitignore
|
||||
|
||||
*~
|
||||
*.sw[mnpcod]
|
||||
*.log
|
||||
*.tmp
|
||||
*.tmp.*
|
||||
log.txt
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.vscode/*
|
||||
npm-debug.log*
|
||||
|
||||
# This file is sometimes created automatically, even though
|
||||
# we actually use the capacitor.config.ts
|
||||
capacitor.config.json
|
||||
|
||||
.idea/
|
||||
.ionic/
|
||||
.angular/
|
||||
.sourcemaps/
|
||||
.sass-cache/
|
||||
.tmp/
|
||||
.versions/
|
||||
coverage/
|
||||
www/
|
||||
node_modules/
|
||||
tmp/
|
||||
temp/
|
||||
platforms/
|
||||
/plugins/
|
||||
$RECYCLE.BIN/
|
||||
dist/
|
||||
# ignore generated resources
|
||||
resources/*/icon/
|
||||
resources/*/splash/
|
||||
android/app/src/main/res/**/*.png
|
||||
ios/App/App/Assets.xcassets/**/*.png
|
||||
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
UserInterfaceState.xcuserstate
|
||||
|
||||
docs
|
||||
226
frontend/app/.gitlab-ci.yml
Normal file
226
frontend/app/.gitlab-ci.yml
Normal file
@@ -0,0 +1,226 @@
|
||||
image: registry.gitlab.com/openstapps/app
|
||||
|
||||
before_script:
|
||||
- npm ci
|
||||
|
||||
default:
|
||||
tags:
|
||||
- performance
|
||||
interruptible: true
|
||||
|
||||
stages:
|
||||
- setup
|
||||
- build
|
||||
- test
|
||||
- publish
|
||||
- deploy
|
||||
- ui test
|
||||
|
||||
setup:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
stage: setup
|
||||
only:
|
||||
- schedules
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
|
||||
- docker build -t registry.gitlab.com/openstapps/app .
|
||||
- docker push registry.gitlab.com/openstapps/app
|
||||
cache: {} # disable irrelevant cache for this job
|
||||
before_script: [] # do not run irrelevant before script for this job
|
||||
tags:
|
||||
- dind
|
||||
interruptible: false
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
artifacts:
|
||||
paths:
|
||||
- www
|
||||
except:
|
||||
- schedules
|
||||
|
||||
scheduled-build:
|
||||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
only:
|
||||
- schedules
|
||||
|
||||
lint:
|
||||
stage: build
|
||||
script:
|
||||
- npm run lint
|
||||
|
||||
format:
|
||||
stage: build
|
||||
script:
|
||||
- npm run format:check
|
||||
|
||||
unit:
|
||||
stage: test
|
||||
script:
|
||||
- npm run check-icons
|
||||
- npm run test -- --watch=false --no-progress --code-coverage
|
||||
coverage: '/Statements[^:]*\:[^:]*\s+([\d\.]+)%/'
|
||||
artifacts:
|
||||
paths:
|
||||
- coverage
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: coverage/cobertura-coverage.xml
|
||||
|
||||
.e2e-chrome:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/cypress
|
||||
stage: test
|
||||
script:
|
||||
- npm run e2e -- --watch=false --headless=true --browser=chrome
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- cypress/videos
|
||||
- cypress/screenshots
|
||||
|
||||
.e2e-firefox:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/cypress
|
||||
stage: test
|
||||
script:
|
||||
- npm run e2e -- --watch=false --headless=true --browser=firefox
|
||||
artifacts:
|
||||
when: on_failure
|
||||
paths:
|
||||
- cypress/videos
|
||||
- cypress/screenshots
|
||||
|
||||
ui-chrome:
|
||||
extends: .e2e-chrome
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main")
|
||||
when: always
|
||||
allow_failure: false
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main")
|
||||
when: never
|
||||
|
||||
ui-firefox:
|
||||
extends: .e2e-firefox
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main")
|
||||
when: always
|
||||
allow_failure: false
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main")
|
||||
when: never
|
||||
|
||||
e2e-chrome:
|
||||
extends: .e2e-chrome
|
||||
stage: ui test
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main")
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main")
|
||||
when: manual
|
||||
allow_failure: false
|
||||
|
||||
e2e-firefox:
|
||||
extends: .e2e-firefox
|
||||
stage: ui test
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME == "develop" || $CI_COMMIT_REF_NAME == "main")
|
||||
when: never
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main")
|
||||
when: manual
|
||||
allow_failure: false
|
||||
|
||||
audit:
|
||||
stage: test
|
||||
script:
|
||||
- npm audit
|
||||
allow_failure: true
|
||||
except:
|
||||
- schedules
|
||||
|
||||
scheduled-audit:
|
||||
stage: test
|
||||
script:
|
||||
- npm audit --production
|
||||
only:
|
||||
- schedules
|
||||
|
||||
pages:
|
||||
stage: publish
|
||||
script:
|
||||
- npm run documentation
|
||||
- mv docs public
|
||||
only:
|
||||
- main
|
||||
except:
|
||||
- schedules
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
||||
review:
|
||||
stage: deploy
|
||||
script:
|
||||
- npm run build:prod
|
||||
- .gitlab/ci/enableGitlabReviewToolbar.sh www/index.html "$CI_PROJECT_ID" "$CI_OPEN_MERGE_REQUESTS"
|
||||
- cp www/index.html www/200.html
|
||||
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh/
|
||||
environment:
|
||||
name: review/$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_NAME
|
||||
url: https://$CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh/
|
||||
on_stop: stop_review
|
||||
rules:
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web"))
|
||||
|
||||
stop_review:
|
||||
stage: deploy
|
||||
script:
|
||||
- ./node_modules/.bin/surge teardown $CI_PROJECT_PATH_SLUG-$CI_ENVIRONMENT_SLUG.surge.sh
|
||||
when: manual
|
||||
environment:
|
||||
name: review/$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_NAME
|
||||
action: stop
|
||||
rules:
|
||||
- if: ($CI_COMMIT_REF_NAME != "develop" && $CI_COMMIT_REF_NAME != "main" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web"))
|
||||
|
||||
staging:
|
||||
stage: deploy
|
||||
script:
|
||||
- npm run build:prod
|
||||
- cp www/index.html www/200.html
|
||||
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG-staging.surge.sh/
|
||||
environment:
|
||||
name: staging
|
||||
url: https://$CI_PROJECT_PATH_SLUG-staging.surge.sh/
|
||||
only:
|
||||
- develop
|
||||
except:
|
||||
- schedules
|
||||
|
||||
production_demo:
|
||||
stage: deploy
|
||||
script:
|
||||
- npm run build:prod
|
||||
- cp www/index.html www/200.html
|
||||
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG.surge.sh/
|
||||
environment:
|
||||
name: production
|
||||
url: https://$CI_PROJECT_PATH_SLUG.surge.sh/
|
||||
only:
|
||||
- main
|
||||
except:
|
||||
- schedules
|
||||
15
frontend/app/.gitlab/ci/enableGitlabReviewToolbar.sh
Normal file
15
frontend/app/.gitlab/ci/enableGitlabReviewToolbar.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Adds a preedefined script tag including the merge current request id to the angular web app index.html.
|
||||
# This enables the interactive gitlab review toolbar.
|
||||
|
||||
MERGE_REQUEST_ID=""
|
||||
if echo -n $3 | grep -Eq '[0-9]+$'; then
|
||||
MERGE_REQUEST_ID="$(echo -n "$3" | grep -Eo '[0-9]+$')"
|
||||
fi
|
||||
|
||||
INDEX_PATH=$(dirname $1)
|
||||
SCRIPT_TAG="<script defer data-project-id=\"$2\" data-project-path=\"openstapps/app\" data-merge-request-id=\"$MERGE_REQUEST_ID\" data-mr-url=\"https://gitlab.com\" id=\"review-app-toolbar-script\" src=\"visual_review_toolbar.js\"></script>"
|
||||
|
||||
curl https://gitlab.com/assets/webpack/visual_review_toolbar.js --output "$INDEX_PATH/visual_review_toolbar.js" --silent
|
||||
sed -i -e "\@</head>@i\\$SCRIPT_TAG" $1
|
||||
4
frontend/app/.gitlab/ci/getRegistryBranch.sh
Normal file
4
frontend/app/.gitlab/ci/getRegistryBranch.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# script returns string with everything after the last colon of $1 input
|
||||
echo -n $1 | grep -oE '[^:]+$'
|
||||
8
frontend/app/.gitlab/ci/getRegistryTag.sh
Normal file
8
frontend/app/.gitlab/ci/getRegistryTag.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# script returns semantical versioning string like 2.0.0 (if $1 is v2.0.0) or $1
|
||||
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
|
||||
echo $(echo -n "$1" | cut -c 2-);
|
||||
else
|
||||
echo $1;
|
||||
fi
|
||||
7
frontend/app/.gitlab/ci/pushAsLatestVersion.sh
Normal file
7
frontend/app/.gitlab/ci/pushAsLatestVersion.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# If this is a pipeline of a version tag, also push this version
|
||||
# as latest to the registry alias $2:latest
|
||||
if echo -n $1 | grep -Eq 'v[0-9]+\.[0-9]+\.[0-9]+'; then
|
||||
docker push $2:latest;
|
||||
fi
|
||||
29
frontend/app/.gitlab/ci/testCIScripts.sh
Normal file
29
frontend/app/.gitlab/ci/testCIScripts.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# test all CI scripts
|
||||
|
||||
SCRIPT_DIR=$(dirname "$0")
|
||||
|
||||
TAG_VERSION=$(sh $SCRIPT_DIR/getRegistryTag.sh "v1.0.0")
|
||||
TAG_TEST=$(sh $SCRIPT_DIR/getRegistryTag.sh "TEST")
|
||||
BRANCH_NAME=$(sh $SCRIPT_DIR/getRegistryBranch.sh "very:first:test")
|
||||
|
||||
# Leaving out pushAsLatestVersion.sh as its control flow
|
||||
# is based on the same condition as getRegistryTag.sh
|
||||
|
||||
if [ $TAG_VERSION != "1.0.0" ]; then
|
||||
echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryTag.sh"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ $TAG_TEST != "TEST" ]; then
|
||||
echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryTag.sh"
|
||||
return 2
|
||||
fi
|
||||
|
||||
if [ $BRANCH_NAME != "test" ]; then
|
||||
echo "ERROR in CI SCRIPT: $SCRIPT_DIR/getRegistryBranch.sh"
|
||||
return 3
|
||||
fi
|
||||
|
||||
return 0
|
||||
32
frontend/app/.gitlab/issue_templates/bug.md
Normal file
32
frontend/app/.gitlab/issue_templates/bug.md
Normal file
@@ -0,0 +1,32 @@
|
||||
## Summary
|
||||
|
||||
(Summarize the bug encountered concisely)
|
||||
|
||||
## Steps to reproduce
|
||||
|
||||
(How one can reproduce the issue - this is very important)
|
||||
|
||||
## Example Project
|
||||
|
||||
(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)
|
||||
|
||||
(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)
|
||||
|
||||
## What is the current bug behavior?
|
||||
|
||||
(What actually happens)
|
||||
|
||||
## What is the expected correct behavior?
|
||||
|
||||
(What you should see instead)
|
||||
|
||||
## Relevant logs and/or screenshots
|
||||
|
||||
(Paste any relevant logs - please use code blocks (```) to format console output,
|
||||
logs, and code as it's very hard to read otherwise.)
|
||||
|
||||
## Possible fixes
|
||||
|
||||
(If you can, link to the line of code that might be responsible for the problem)
|
||||
|
||||
/label ~bug ~meeting
|
||||
17
frontend/app/.gitlab/issue_templates/feature.md
Normal file
17
frontend/app/.gitlab/issue_templates/feature.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## Description
|
||||
|
||||
(Describe the feature that you're requesting concisely)
|
||||
|
||||
## Explanation
|
||||
|
||||
(Explain why the feature is necessary)
|
||||
|
||||
## Mockups/Screenshots
|
||||
|
||||
(If possible, provide mockups or screenshots, which demonstrate the feature)
|
||||
|
||||
## Dependencies, issues to be resolved beforehand
|
||||
|
||||
(List issues or dependencies that need to be resolved before this feature can be implemented)
|
||||
|
||||
/label ~feature ~meeting
|
||||
17
frontend/app/.gitlab/issue_templates/improvement.md
Normal file
17
frontend/app/.gitlab/issue_templates/improvement.md
Normal file
@@ -0,0 +1,17 @@
|
||||
## What needs to be changed?
|
||||
|
||||
??? - Describe use case!
|
||||
|
||||
## How is the current state not sufficient?
|
||||
|
||||
???
|
||||
|
||||
## Which changes are necessary?
|
||||
|
||||
???
|
||||
|
||||
## Do the proposed changes impact current use cases?
|
||||
|
||||
???
|
||||
|
||||
/label ~improvement ~meeting
|
||||
11
frontend/app/.npmignore
Normal file
11
frontend/app/.npmignore
Normal file
@@ -0,0 +1,11 @@
|
||||
# Ignore all files/folders by default
|
||||
# See https://stackoverflow.com/a/29932318
|
||||
/*
|
||||
# Except these files/folders
|
||||
!docs
|
||||
!lib
|
||||
!LICENSE
|
||||
!package.json
|
||||
!package-lock.json
|
||||
!README.md
|
||||
!src
|
||||
1
frontend/app/.npmrc
Normal file
1
frontend/app/.npmrc
Normal file
@@ -0,0 +1 @@
|
||||
engine-strict=true
|
||||
48
frontend/app/.prettierignore
Normal file
48
frontend/app/.prettierignore
Normal file
@@ -0,0 +1,48 @@
|
||||
# Specifies intentionally untracked files to ignore when using Git
|
||||
# http://git-scm.com/docs/gitignore
|
||||
|
||||
*~
|
||||
*.sw[mnpcod]
|
||||
*.log
|
||||
*.tmp
|
||||
*.tmp.*
|
||||
log.txt
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.vscode/*
|
||||
npm-debug.log*
|
||||
|
||||
# This file is sometimes created automatically, even though
|
||||
# we actually use the capacitor.config.ts
|
||||
capacitor.config.json
|
||||
|
||||
.idea/
|
||||
.ionic/
|
||||
.angular/
|
||||
.sourcemaps/
|
||||
.sass-cache/
|
||||
.tmp/
|
||||
.versions/
|
||||
coverage/
|
||||
www/
|
||||
node_modules/
|
||||
tmp/
|
||||
temp/
|
||||
platforms/
|
||||
/plugins/
|
||||
$RECYCLE.BIN/
|
||||
dist/
|
||||
# ignore generated resources
|
||||
resources/*/icon/
|
||||
resources/*/splash/
|
||||
android/app/src/main/res/**/*.png
|
||||
ios/App/App/Assets.xcassets/**/*.png
|
||||
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
UserInterfaceState.xcuserstate
|
||||
|
||||
android/
|
||||
ios/
|
||||
|
||||
docs
|
||||
26
frontend/app/.prettierrc.js
Normal file
26
frontend/app/.prettierrc.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
...require('@openstapps/prettier-config'),
|
||||
overrides: [
|
||||
{
|
||||
files: 'src/**/*.html',
|
||||
options: {
|
||||
parser: 'angular',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
114
frontend/app/Dockerfile
Normal file
114
frontend/app/Dockerfile
Normal file
@@ -0,0 +1,114 @@
|
||||
### Set base image
|
||||
FROM ubuntu:20.04
|
||||
|
||||
LABEL version="2.0.0" \
|
||||
description="Build environment for the StApps app." \
|
||||
maintainer="Jovan Krunić <krunic@uni-frankfurt.de>"
|
||||
|
||||
### Configure versions to install
|
||||
ENV ANDROID_APIS="android-30" \
|
||||
ANDROID_BUILD_TOOLS_VERSION="30.0.2" \
|
||||
NPM_VERSION="^6.0.0" \
|
||||
IONIC_VERSION="^6.0.0" \
|
||||
CORDOVA_RES_VERSION="latest" \
|
||||
### Configure download URLs
|
||||
ANDROID_SDK_TOOLS_DOWNLOAD_URL="https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip" \
|
||||
GOOGLE_SIGNING_KEY_URL="https://dl-ssl.google.com/linux/linux_signing_key.pub" \
|
||||
GOOGLE_CHROME_REPOSITORY_URL="http://dl.google.com/linux/chrome/deb/" \
|
||||
### Android SDK path
|
||||
ANDROID_SDK_ROOT="/opt/android-sdk" \
|
||||
### Installation files
|
||||
SCRIPTS_DIRECTORY="scripts" \
|
||||
NODE_SETUP_SCRIPT="node_setup.sh" \
|
||||
TMP_PROJECT_NAME="tmp-project"
|
||||
|
||||
### Set $PATH
|
||||
#ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/:$ANDROID_SDK_ROOT/cmdline-tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH
|
||||
ENV PATH=$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$ANDROID_SDK_ROOT/platform-tools:$ANDROID_SDK_ROOT/build-tools/$ANDROID_BUILD_TOOLS_VERSION:$PATH
|
||||
|
||||
### Replace shell with bash
|
||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh && \
|
||||
### Set debconf to run non-interactively
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
### Install locales and base dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
locales \
|
||||
apt-transport-https \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
curl \
|
||||
libssl-dev \
|
||||
git \
|
||||
gradle \
|
||||
ca-certificates-java \
|
||||
python \
|
||||
python3-pip \
|
||||
software-properties-common \
|
||||
ssh \
|
||||
unzip \
|
||||
wget \
|
||||
gpg-agent \
|
||||
jq \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
### Install Java Development Kit 11
|
||||
RUN add-apt-repository -y ppa:openjdk-r/ppa && apt-get update && \
|
||||
apt-get install --no-install-recommends -y openjdk-11-jdk \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
### Setup the locale
|
||||
RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||
locale-gen en_US.UTF-8
|
||||
ENV LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US \
|
||||
LC_ALL=en_US.UTF-8
|
||||
RUN dpkg-reconfigure --frontend noninteractive locales
|
||||
|
||||
### add chrome repository
|
||||
RUN wget -q -O - $GOOGLE_SIGNING_KEY_URL | apt-key add -
|
||||
RUN echo "deb $GOOGLE_CHROME_REPOSITORY_URL stable main" >> /etc/apt/sources.list.d/google.list
|
||||
|
||||
### Install Chrome
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
### Install chrome and virtual frame buffer
|
||||
google-chrome-stable xvfb && \
|
||||
### Clear apt cache
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
### Workaround to fix cacerts problem (Ubuntu):
|
||||
### https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty
|
||||
RUN rm /etc/ssl/certs/java/cacerts && \
|
||||
update-ca-certificates -f
|
||||
|
||||
### Install android
|
||||
RUN curl $ANDROID_SDK_TOOLS_DOWNLOAD_URL > /tmp/android-sdk.zip && \
|
||||
unzip /tmp/android-sdk.zip && \
|
||||
mkdir -p $ANDROID_SDK_ROOT/cmdline-tools && \
|
||||
mv cmdline-tools $ANDROID_SDK_ROOT/cmdline-tools/tools && \
|
||||
### Add licences (for "auto-accept licenses")
|
||||
yes | sdkmanager --licenses && \
|
||||
### Install platform tools
|
||||
sdkmanager "platforms;$ANDROID_APIS" "build-tools;$ANDROID_BUILD_TOOLS_VERSION"
|
||||
|
||||
### Copy scripts directory into the tmp folder, so it's available to the following commands
|
||||
COPY $SCRIPTS_DIRECTORY/$NODE_SETUP_SCRIPT /tmp/
|
||||
|
||||
RUN bash /tmp/$NODE_SETUP_SCRIPT && apt-get install -y nodejs && \
|
||||
### Install wanted npm version
|
||||
npm install -g --unsafe-perm npm@$NPM_VERSION && \
|
||||
### Install needed global npm packages
|
||||
npm install -g --unsafe-perm @ionic/cli@$IONIC_VERSION cordova-res@$CORDOVA_RES_VERSION
|
||||
|
||||
RUN cd / && ionic start $TMP_PROJECT_NAME blank --type=angular --capacitor --no-git --no-interactive && \
|
||||
cd $TMP_PROJECT_NAME && ionic capacitor add android && export NG_CLI_ANALYTICS=ci && ionic capacitor build android --no-open && \
|
||||
cd android && ./gradlew assembleDebug && \
|
||||
cd / && rm -rf $TMP_PROJECT_NAME
|
||||
|
||||
### Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
CMD [""]
|
||||
20
frontend/app/Dockerfile.Executable
Normal file
20
frontend/app/Dockerfile.Executable
Normal file
@@ -0,0 +1,20 @@
|
||||
# Creates a docker image with only the app as an executable unit
|
||||
# Dependencies need to be installed beforehand
|
||||
# Needs to be build beforehand
|
||||
# docker build -t registry.gitlab.com/openstapps/app/executable:core-x.y -f Dockerfile.Executable .
|
||||
FROM node:14-alpine
|
||||
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
# To use ng directly
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
|
||||
EXPOSE 8100
|
||||
|
||||
# Because the dependencies were installed from the builder-Image,
|
||||
# or locally, we need to rebuild node-sass library
|
||||
RUN npm rebuild node-sass
|
||||
|
||||
# Starts the app
|
||||
CMD ng run app:serve --host=0.0.0.0 --port=8100
|
||||
78
frontend/app/ICONS.md
Normal file
78
frontend/app/ICONS.md
Normal file
@@ -0,0 +1,78 @@
|
||||
# Icons
|
||||
|
||||
A few notes to our icon set, for users and future maintainers.
|
||||
|
||||
## Usage
|
||||
|
||||
To find icon names, visit the
|
||||
[Google Material Symbols Page](https://fonts.google.com/icons?icon.style=Rounded)
|
||||
|
||||
We have extended the `ion-icon` element via a directive. **Make sure your
|
||||
module imports the `IonIconModule`**, you can then proceed using `ion-icon`s
|
||||
as usual.
|
||||
|
||||
The modified `ion-icon` comes with a few extra features:
|
||||
|
||||
- `[fill]` controls the fill color of the icon.
|
||||
- `[weight]` controls the font weight of the icon.
|
||||
- `[size]` controls the font size of the icon.
|
||||
- `[grade]` controls the font grade of the icon.
|
||||
|
||||
All of these attributes are animated as described
|
||||
[here](https://developers.google.com/fonts/docs/material_symbols).
|
||||
|
||||

|
||||
|
||||
You can also control these attributes via css:
|
||||
|
||||
```scss
|
||||
ion-icon ::ng-deep stapps-icon {
|
||||
--fill: 1;
|
||||
--grade: 0;
|
||||
--weight: 400;
|
||||
}
|
||||
```
|
||||
|
||||
Sometimes icon code points cannot be determined automatically, for whatever
|
||||
reason. In this case, you will need to specify the code point manually in
|
||||
the config file.
|
||||
|
||||
### Icon Font Minification
|
||||
|
||||
Icon font minification is done automatically, but requires you to
|
||||
follow a few simple rules:
|
||||
|
||||
1. Use the tagged template literal for referencing icon names in
|
||||
TypeScript files and code
|
||||
|
||||
```ts
|
||||
SCIcon`icon_name`;
|
||||
```
|
||||
|
||||
2. When using `ion-icon` in HTML, reference either icons that went through
|
||||
the `SCIcon` tag or write them as one of the following:
|
||||
|
||||
```html
|
||||
<!-- do -->
|
||||
<ion-icon name="icon_name"></ion-icon>
|
||||
<ion-icon [name]="'icon_name'"></ion-icon>
|
||||
<!-- don't -->
|
||||
<ion-icon name="icon_name" />
|
||||
<!-- self-closing -->
|
||||
<ion-icon [name]="condition ? 'icon_name' : 'other_icon_name'"></ion-icon>
|
||||
```
|
||||
|
||||
Icons that are unknown at compile time can be specified in the
|
||||
`additionalIcons` property of the `icons.config.ts` file.
|
||||
|
||||
The minification can then be done by running
|
||||
|
||||
```shell
|
||||
npm run minify-icons
|
||||
```
|
||||
|
||||
Unfortunately, I was unable to find a JS package that could to the job,
|
||||
and had to rely on the Python module [fonttools](https://github.com/fonttools/fonttools).
|
||||
|
||||
That means that you might run into additional issues when running the
|
||||
above-mentioned command.
|
||||
200
frontend/app/LICENSE
Normal file
200
frontend/app/LICENSE
Normal file
@@ -0,0 +1,200 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.
|
||||
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
|
||||
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".
|
||||
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||
13. Use with the GNU Affero General Public License.
|
||||
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||
14. Revised Versions of this License.
|
||||
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
16. Limitation of Liability.
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/ licenses/why-not-lgpl.html>.
|
||||
44
frontend/app/PITFALLS.md
Normal file
44
frontend/app/PITFALLS.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Pitfalls
|
||||
|
||||
This file is used to document problems, that occurred during development and how to fix them.
|
||||
|
||||
## Ionic Framework
|
||||
|
||||
### Build platform Android
|
||||
|
||||
#### Problem
|
||||
|
||||
After calling `ionic cordova build android` the gradle version is not set correctly (4.1 instead of 4.6)
|
||||
|
||||
#### Solution
|
||||
|
||||
- Go to folder `APP_FOLDER/platforms/android/cordova/lib/builders/`
|
||||
- Open file `GradleBuilder.js` and change gradle version to `gradle-4.6-all.zip`
|
||||
in line `var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'https\\://services.gradle.org/distributions/gradle-4.1-all.zip';`
|
||||
- Repeat this for file `StudioBuilder.js`
|
||||
|
||||
#### Problem
|
||||
|
||||
`android.support... not found` on build
|
||||
|
||||
#### Solution
|
||||
|
||||
```
|
||||
npm install jetifier
|
||||
npx jetify
|
||||
npx cap sync android
|
||||
```
|
||||
|
||||
[more here](https://stackoverflow.com/questions/62195760/ionic-capacitor-build-cannot-find-symbol-android-support-v4-app-activitycompat)
|
||||
|
||||
### Run platform iOS
|
||||
|
||||
#### Problem
|
||||
|
||||
Currently, the iOS project build with cordova uses the old build system.
|
||||
The command `ionic cordova run ios` runs into the error `/platforms/ios/build/emulator/StApps.app/Info.plist file not found.`
|
||||
|
||||
#### Solution
|
||||
|
||||
- Either use the command: `ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"`
|
||||
- Or open the iOS project in Xcode and change build system in workspace settings to `Lagacy Build System`. Then the normal run command works also.
|
||||
135
frontend/app/README.md
Normal file
135
frontend/app/README.md
Normal file
@@ -0,0 +1,135 @@
|
||||
# @openstapps/app
|
||||
|
||||
[](https://gitlab.com/openstapps/app/commits/main)
|
||||
[](https://openstapps.gitlab.io/app)
|
||||
|
||||
This is a hybrid mobile app which is built using [Ionic](https://github.com/ionic-team/ionic) and [Angular] (https://angular.io/).
|
||||
|
||||
### Why not refactoring legacy app?
|
||||
|
||||
The StApps 1.x.x (legacy app, but current app in stores) is written using Ionic 1 framework (AngularJS). For StApps 2.x.x project (this repository) we want to use the latest version of Ionic (Ionic 2+ which uses Angular 2+; at the time of writing of the documentation current versions are: Ionic 4, Angular 6), which introduces significant changes. That said, simple refactoring of the app 1.x.x was not viable solution and this project was created with goal of coding of the existing and new features, defined by in new requirements (details available in internal documents).
|
||||
|
||||
## How to quickly start running the app?
|
||||
|
||||
There are (`npm`) scripts defined to get the app running as quickly as possible. Those scripts (shortcuts for docker commands) are called using the syntax `npm run + <script-name>`. So we have the following commands available:
|
||||
|
||||
```
|
||||
npm run docker:pull
|
||||
```
|
||||
|
||||
which pulls the up-to-date image ([Dockerfile](Dockerfile)) which contains all the tools needed for building, serving and deploying the app.
|
||||
|
||||
```
|
||||
npm run docker:enter
|
||||
```
|
||||
|
||||
which enters the container on docker builder image, where we can run `npm install` (to install the required npm packages) and `npm build` (to build the app: convert into executable files), but also any other arbitrary commands with the tools available in the docker image.
|
||||
|
||||
```
|
||||
npm run docker:build
|
||||
```
|
||||
|
||||
which runs `npm install` (to install the required npm packages) and `npm build` (to build the app: convert into executable files) in the docker container which runs on the docker builder image.
|
||||
|
||||
```
|
||||
npm run docker:serve
|
||||
```
|
||||
|
||||
which serves the app for running it in the browser. It basically runs `ionic serve` in the docker container (in the docker builder image).
|
||||
|
||||
## How to build and start the app using the default backend?
|
||||
|
||||
```
|
||||
npm run build
|
||||
npm run start
|
||||
```
|
||||
|
||||
will build and serve the app using the configuration for a default backend.
|
||||
|
||||
## Further explanation of npm scripts
|
||||
|
||||
All the npm scripts are defined in `package.json` [file](package.json). It is recommended to open the file and check what these scripts exactly do.
|
||||
|
||||
## Most useful commands
|
||||
|
||||
### Running the app
|
||||
|
||||
Install the npm packages needed for running the app (as for any other node project which uses npm):
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
Check the code for linter issues:
|
||||
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
Automatically fix linter issues (those where autofix is possible):
|
||||
|
||||
```
|
||||
npm run lint:fix
|
||||
```
|
||||
|
||||
Build the app (transpile etc.):
|
||||
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
Open the app in the browser:
|
||||
|
||||
```
|
||||
ionic serve
|
||||
```
|
||||
|
||||
### Android
|
||||
|
||||
Run the app for testing on an android device (with live reload in the webview / device, when files are changed):
|
||||
|
||||
```
|
||||
npm run build # if needed
|
||||
npm run resources:android # generate needed resources (icons and splashscreens)
|
||||
npm run docker:run:android # runs "ionic capacitor run android --livereload --external" on a selected device
|
||||
```
|
||||
|
||||
**Troubleshooting**: The device should be listed as the docker container where the run happens gets access to the USB devices. In case your device is not listed, it is possible that Chrome is blocking the access to it. Make sure `chrome://inspect` is not opened in your Chrome or any other program, which would block access to the device by using it on the host.
|
||||
|
||||
After the app is running on the android device you can use an IDE or Chrome to debug the WebView (JavaScript / Typescript) of the app (set breakpoints, watch variables, look at the call stack etc.).
|
||||
|
||||
For example in Chrome:
|
||||
|
||||
1. Open `chrome://inspect`
|
||||
2. Click the App's WebView which is listed there (you can recognize it by the app's ID)
|
||||
3. Go to `Sources` and add the app's folder to the `FileSystem`
|
||||
|
||||
Besides that, it is possible to monitor processes (and so the processes related to the app itself, using its ID) using [adb logcat](https://developer.android.com/studio/command-line/logcat), which you can run inside of the running container.
|
||||
|
||||
Build the (debug) app for testing on an android device (creates an APK file in the android's build outputs path):
|
||||
|
||||
```
|
||||
npm run docker:build:android
|
||||
```
|
||||
|
||||
The mentioned `docker:*:android` npm commands are executed in a docker container, so it is not mandatory to have the android (command line) tools installed on the host computer. Alternatively, you can install the tools and additionally Android Studio on the host machine and then run and build the app on the host (without using docker).
|
||||
|
||||
### Executing tests
|
||||
|
||||
Execute unit tests:
|
||||
|
||||
```
|
||||
npm test
|
||||
```
|
||||
|
||||
Execute e2e tests:
|
||||
|
||||
```
|
||||
npm run e2e
|
||||
```
|
||||
|
||||
As mentioned, we can always check the [package.json](package.json) for details on each npm script/command.
|
||||
|
||||
## Using Gitlab CI as a reference
|
||||
|
||||
As we use GitLab CI for building the app, running tests and deployment of the app, we can always refer to [.gitlab-ci.yml](.gitlab-ci.yml), file which shows us which commands (`script` part) should be run for each phase of the development process. We can use these commands to reproduce the same thing on our local computers in a docker container (as we can use the same docker image GitLab CI is using).
|
||||
77
frontend/app/__mocks__/@capacitor/geolocation.ts
Normal file
77
frontend/app/__mocks__/@capacitor/geolocation.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
export interface Position {
|
||||
timestamp: number;
|
||||
coords: {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
accuracy: number;
|
||||
altitudeAccuracy: number | null | undefined;
|
||||
altitude: number | null;
|
||||
speed: number | null;
|
||||
heading: number | null;
|
||||
};
|
||||
}
|
||||
|
||||
const samplePosition: Position = {
|
||||
coords: {
|
||||
heading: 123,
|
||||
latitude: 34.12,
|
||||
longitude: 12.34,
|
||||
accuracy: 1,
|
||||
altitude: 123,
|
||||
altitudeAccuracy: 1,
|
||||
speed: 1,
|
||||
},
|
||||
timestamp: 1_565_275_805_901,
|
||||
} as Position;
|
||||
|
||||
export class GeolocationMock {
|
||||
// @ts-ignore
|
||||
checkPermissions(): Promise<PermissionStatus> {
|
||||
// @ts-ignore
|
||||
return Promise.resolve({});
|
||||
}
|
||||
|
||||
clearWatch(_options: any): Promise<void> {
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
getCurrentPosition(_options?: any): Promise<Position> {
|
||||
return Promise.resolve(samplePosition);
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
requestPermissions(permissions?: any): Promise<PermissionStatus> {
|
||||
// @ts-ignore
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
watchPosition(
|
||||
_options: PositionOptions,
|
||||
callback: (position: Position, error?: any) => void,
|
||||
): Promise<string> {
|
||||
callback(samplePosition);
|
||||
return Promise.resolve('');
|
||||
}
|
||||
}
|
||||
|
||||
export interface PermissionStatus {
|
||||
location: PermissionState;
|
||||
coarseLocation: PermissionState;
|
||||
}
|
||||
|
||||
export const Geolocation = new GeolocationMock();
|
||||
8
frontend/app/additional-licenses.json
Normal file
8
frontend/app/additional-licenses.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"barlow": {
|
||||
"repository": "https://github.com/jpt/barlow",
|
||||
"licenses": "OFL-1.1",
|
||||
"licenseFile": "./src/assets/fonts/barlow/OFL.txt",
|
||||
"publisher": "JPT"
|
||||
}
|
||||
}
|
||||
96
frontend/app/android/.gitignore
vendored
Normal file
96
frontend/app/android/.gitignore
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
# Using Android gitignore template: https://github.com/github/gitignore/blob/HEAD/Android.gitignore
|
||||
|
||||
# Built application files
|
||||
*.apk
|
||||
*.aar
|
||||
*.ap_
|
||||
*.aab
|
||||
|
||||
# Files for the ART/Dalvik VM
|
||||
*.dex
|
||||
|
||||
# Java class files
|
||||
*.class
|
||||
|
||||
# Generated files
|
||||
bin/
|
||||
gen/
|
||||
out/
|
||||
# Uncomment the following line in case you need and you don't have the release build type files in your app
|
||||
# release/
|
||||
|
||||
# Gradle files
|
||||
.gradle/
|
||||
build/
|
||||
|
||||
# Local configuration file (sdk path, etc)
|
||||
local.properties
|
||||
|
||||
# Proguard folder generated by Eclipse
|
||||
proguard/
|
||||
|
||||
# Log Files
|
||||
*.log
|
||||
|
||||
# Android Studio Navigation editor temp files
|
||||
.navigation/
|
||||
|
||||
# Android Studio captures folder
|
||||
captures/
|
||||
|
||||
# IntelliJ
|
||||
*.iml
|
||||
.idea/workspace.xml
|
||||
.idea/tasks.xml
|
||||
.idea/gradle.xml
|
||||
.idea/assetWizardSettings.xml
|
||||
.idea/dictionaries
|
||||
.idea/libraries
|
||||
# Android Studio 3 in .gitignore file.
|
||||
.idea/caches
|
||||
.idea/modules.xml
|
||||
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
|
||||
.idea/navEditor.xml
|
||||
|
||||
# Keystore files
|
||||
# Uncomment the following lines if you do not want to check your keystore files in.
|
||||
#*.jks
|
||||
#*.keystore
|
||||
|
||||
# External native build folder generated in Android Studio 2.2 and later
|
||||
.externalNativeBuild
|
||||
.cxx/
|
||||
|
||||
# Google Services (e.g. APIs or Firebase)
|
||||
# google-services.json
|
||||
|
||||
# Freeline
|
||||
freeline.py
|
||||
freeline/
|
||||
freeline_project_description.json
|
||||
|
||||
# fastlane
|
||||
fastlane/report.xml
|
||||
fastlane/Preview.html
|
||||
fastlane/screenshots
|
||||
fastlane/test_output
|
||||
fastlane/readme.md
|
||||
|
||||
# Version control
|
||||
vcs.xml
|
||||
|
||||
# lint
|
||||
lint/intermediates/
|
||||
lint/generated/
|
||||
lint/outputs/
|
||||
lint/tmp/
|
||||
# lint/reports/
|
||||
|
||||
# Android Profiling
|
||||
*.hprof
|
||||
|
||||
# Cordova plugins for Capacitor
|
||||
capacitor-cordova-android-plugins
|
||||
|
||||
# Copied web assets
|
||||
app/src/main/assets/public
|
||||
2
frontend/app/android/app/.gitignore
vendored
Normal file
2
frontend/app/android/app/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/build/*
|
||||
!/build/.npmkeep
|
||||
53
frontend/app/android/app/build.gradle
Normal file
53
frontend/app/android/app/build.gradle
Normal file
@@ -0,0 +1,53 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
defaultConfig {
|
||||
applicationId "de.anyschool.app"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
// Default: https://android.googlesource.com/platform/frameworks/base/+/282e181b58cf72b6ca770dc7ca5f91f135444502/tools/aapt/AaptAssets.cpp#61
|
||||
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir{
|
||||
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
||||
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
|
||||
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
|
||||
implementation project(':capacitor-android')
|
||||
testImplementation "junit:junit:$junitVersion"
|
||||
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
||||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
||||
implementation project(':capacitor-cordova-android-plugins')
|
||||
}
|
||||
|
||||
apply from: 'capacitor.build.gradle'
|
||||
|
||||
try {
|
||||
def servicesJSON = file('google-services.json')
|
||||
if (servicesJSON.text) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
}
|
||||
} catch(Exception e) {
|
||||
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
|
||||
}
|
||||
35
frontend/app/android/app/capacitor.build.gradle
Normal file
35
frontend/app/android/app/capacitor.build.gradle
Normal file
@@ -0,0 +1,35 @@
|
||||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
|
||||
android {
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_11
|
||||
targetCompatibility JavaVersion.VERSION_11
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
implementation project(':capacitor-app')
|
||||
implementation project(':capacitor-browser')
|
||||
implementation project(':capacitor-device')
|
||||
implementation project(':capacitor-dialog')
|
||||
implementation project(':capacitor-filesystem')
|
||||
implementation project(':capacitor-geolocation')
|
||||
implementation project(':capacitor-haptics')
|
||||
implementation project(':capacitor-keyboard')
|
||||
implementation project(':capacitor-local-notifications')
|
||||
implementation project(':capacitor-network')
|
||||
implementation project(':capacitor-preferences')
|
||||
implementation project(':capacitor-share')
|
||||
implementation project(':capacitor-splash-screen')
|
||||
implementation project(':capacitor-status-bar')
|
||||
implementation project(':hugotomazi-capacitor-navigation-bar')
|
||||
implementation project(':transistorsoft-capacitor-background-fetch')
|
||||
implementation project(':capacitor-secure-storage-plugin')
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (hasProperty('postBuildExtras')) {
|
||||
postBuildExtras()
|
||||
}
|
||||
21
frontend/app/android/app/proguard-rules.pro
vendored
Normal file
21
frontend/app/android/app/proguard-rules.pro
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.getcapacitor.myapp;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import android.content.Context;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
|
||||
@Test
|
||||
public void useAppContext() throws Exception {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
|
||||
assertEquals("com.getcapacitor.app", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
58
frontend/app/android/app/src/main/AndroidManifest.xml
Normal file
58
frontend/app/android/app/src/main/AndroidManifest.xml
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="de.anyschool.app">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:usesCleartextTraffic="true">
|
||||
|
||||
<activity
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:name="de.anyschool.app.MainActivity"
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true"
|
||||
android:windowSoftInputMode="adjustPan">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:scheme="@string/custom_url_scheme" />
|
||||
</intent-filter>
|
||||
<intent-filter android:autoVerify="true">
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
<data android:host="@string/app_host" android:scheme="https" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths"></meta-data>
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
<!-- Permissions -->
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-feature android:name="android.hardware.location.gps" />
|
||||
</manifest>
|
||||
@@ -0,0 +1,70 @@
|
||||
[
|
||||
{
|
||||
"pkg": "@capacitor/app",
|
||||
"classpath": "com.capacitorjs.plugins.app.AppPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/browser",
|
||||
"classpath": "com.capacitorjs.plugins.browser.BrowserPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/device",
|
||||
"classpath": "com.capacitorjs.plugins.device.DevicePlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/dialog",
|
||||
"classpath": "com.capacitorjs.plugins.dialog.DialogPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/filesystem",
|
||||
"classpath": "com.capacitorjs.plugins.filesystem.FilesystemPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/geolocation",
|
||||
"classpath": "com.capacitorjs.plugins.geolocation.GeolocationPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/haptics",
|
||||
"classpath": "com.capacitorjs.plugins.haptics.HapticsPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/keyboard",
|
||||
"classpath": "com.capacitorjs.plugins.keyboard.KeyboardPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/local-notifications",
|
||||
"classpath": "com.capacitorjs.plugins.localnotifications.LocalNotificationsPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/network",
|
||||
"classpath": "com.capacitorjs.plugins.network.NetworkPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/preferences",
|
||||
"classpath": "com.capacitorjs.plugins.preferences.PreferencesPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/share",
|
||||
"classpath": "com.capacitorjs.plugins.share.SharePlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/splash-screen",
|
||||
"classpath": "com.capacitorjs.plugins.splashscreen.SplashScreenPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/status-bar",
|
||||
"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@hugotomazi/capacitor-navigation-bar",
|
||||
"classpath": "br.com.tombus.capacitor.plugin.navigationbar.NavigationBarPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@transistorsoft/capacitor-background-fetch",
|
||||
"classpath": "com.transistorsoft.bgfetch.capacitor.BackgroundFetchPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "capacitor-secure-storage-plugin",
|
||||
"classpath": "com.whitestein.securestorage.SecureStoragePluginPlugin"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
package de.anyschool.app;
|
||||
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
|
||||
public class MainActivity extends BridgeActivity {}
|
||||
@@ -0,0 +1,34 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1" />
|
||||
</vector>
|
||||
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillColor="#26A69A"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
</vector>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<WebView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_launcher_background"/>
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#FFFFFF</color>
|
||||
</resources>
|
||||
8
frontend/app/android/app/src/main/res/values/strings.xml
Normal file
8
frontend/app/android/app/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<resources>
|
||||
<string name="app_name">StApps</string>
|
||||
<string name="title_activity_main">StApps</string>
|
||||
<string name="package_name">de.anyschool.app</string>
|
||||
<string name="custom_url_scheme">de.anyschool.app</string>
|
||||
<string name="app_host">mobile.app.uni-frankfurt.de</string>
|
||||
</resources>
|
||||
24
frontend/app/android/app/src/main/res/values/styles.xml
Normal file
24
frontend/app/android/app/src/main/res/values/styles.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:background">@null</item>
|
||||
<item name="android:windowBackground">#FFFFFF</item>
|
||||
<item name="android:windowLightNavigationBar" tools:targetApi="o_mr1">true</item>
|
||||
</style>
|
||||
|
||||
|
||||
<style name="AppTheme.NoActionBarLaunch" parent="Theme.SplashScreen">
|
||||
<item name="android:background">@drawable/splash</item>
|
||||
</style>
|
||||
</resources>
|
||||
13
frontend/app/android/app/src/main/res/xml/config.xml
Normal file
13
frontend/app/android/app/src/main/res/xml/config.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<access origin="*" />
|
||||
|
||||
<feature name="Calendar">
|
||||
<param name="android-package" value="nl.xservices.plugins.Calendar"/>
|
||||
</feature>
|
||||
|
||||
|
||||
<preference name="AndroidXEnabled" value="true" />
|
||||
<preference name="android-minSdkVersion" value="22" />
|
||||
<preference name="BackupWebStorage" value="none" />
|
||||
</widget>
|
||||
5
frontend/app/android/app/src/main/res/xml/file_paths.xml
Normal file
5
frontend/app/android/app/src/main/res/xml/file_paths.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<paths xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<external-path name="my_images" path="." />
|
||||
<cache-path name="my_cache_images" path="." />
|
||||
</paths>
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.getcapacitor.myapp;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
public class ExampleUnitTest {
|
||||
|
||||
@Test
|
||||
public void addition_isCorrect() throws Exception {
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
33
frontend/app/android/build.gradle
Normal file
33
frontend/app/android/build.gradle
Normal file
@@ -0,0 +1,33 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
classpath 'com.google.gms:google-services:4.3.13'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
apply from: "variables.gradle"
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
// https://github.com/transistorsoft/capacitor-background-fetch/blob/master/example/android/build.gradle
|
||||
maven {
|
||||
url("${project(':transistorsoft-capacitor-background-fetch').projectDir}/libs")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
54
frontend/app/android/capacitor.settings.gradle
Normal file
54
frontend/app/android/capacitor.settings.gradle
Normal file
@@ -0,0 +1,54 @@
|
||||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':capacitor-app'
|
||||
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
|
||||
|
||||
include ':capacitor-browser'
|
||||
project(':capacitor-browser').projectDir = new File('../node_modules/@capacitor/browser/android')
|
||||
|
||||
include ':capacitor-device'
|
||||
project(':capacitor-device').projectDir = new File('../node_modules/@capacitor/device/android')
|
||||
|
||||
include ':capacitor-dialog'
|
||||
project(':capacitor-dialog').projectDir = new File('../node_modules/@capacitor/dialog/android')
|
||||
|
||||
include ':capacitor-filesystem'
|
||||
project(':capacitor-filesystem').projectDir = new File('../node_modules/@capacitor/filesystem/android')
|
||||
|
||||
include ':capacitor-geolocation'
|
||||
project(':capacitor-geolocation').projectDir = new File('../node_modules/@capacitor/geolocation/android')
|
||||
|
||||
include ':capacitor-haptics'
|
||||
project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android')
|
||||
|
||||
include ':capacitor-keyboard'
|
||||
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
|
||||
|
||||
include ':capacitor-local-notifications'
|
||||
project(':capacitor-local-notifications').projectDir = new File('../node_modules/@capacitor/local-notifications/android')
|
||||
|
||||
include ':capacitor-network'
|
||||
project(':capacitor-network').projectDir = new File('../node_modules/@capacitor/network/android')
|
||||
|
||||
include ':capacitor-preferences'
|
||||
project(':capacitor-preferences').projectDir = new File('../node_modules/@capacitor/preferences/android')
|
||||
|
||||
include ':capacitor-share'
|
||||
project(':capacitor-share').projectDir = new File('../node_modules/@capacitor/share/android')
|
||||
|
||||
include ':capacitor-splash-screen'
|
||||
project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android')
|
||||
|
||||
include ':capacitor-status-bar'
|
||||
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
|
||||
|
||||
include ':hugotomazi-capacitor-navigation-bar'
|
||||
project(':hugotomazi-capacitor-navigation-bar').projectDir = new File('../node_modules/@hugotomazi/capacitor-navigation-bar/android')
|
||||
|
||||
include ':transistorsoft-capacitor-background-fetch'
|
||||
project(':transistorsoft-capacitor-background-fetch').projectDir = new File('../node_modules/@transistorsoft/capacitor-background-fetch/android')
|
||||
|
||||
include ':capacitor-secure-storage-plugin'
|
||||
project(':capacitor-secure-storage-plugin').projectDir = new File('../node_modules/capacitor-secure-storage-plugin/android')
|
||||
24
frontend/app/android/gradle.properties
Normal file
24
frontend/app/android/gradle.properties
Normal file
@@ -0,0 +1,24 @@
|
||||
# Project-wide Gradle settings.
|
||||
|
||||
# IDE (e.g. Android Studio) users:
|
||||
# Gradle settings configured through the IDE *will override*
|
||||
# any settings specified in this file.
|
||||
|
||||
# For more details on how to configure your build environment visit
|
||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||
|
||||
# Specifies the JVM arguments used for the daemon process.
|
||||
# The setting is particularly useful for tweaking memory settings.
|
||||
org.gradle.jvmargs=-Xmx1536m
|
||||
|
||||
# When configured, Gradle will run in incubating parallel mode.
|
||||
# This option should only be used with decoupled projects. More details, visit
|
||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||
# org.gradle.parallel=true
|
||||
|
||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||
# Android operating system, and which are packaged with your app's APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=true
|
||||
# Automatically convert third-party libraries to use AndroidX
|
||||
android.enableJetifier=true
|
||||
BIN
frontend/app/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
frontend/app/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
frontend/app/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
frontend/app/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
234
frontend/app/android/gradlew
vendored
Normal file
234
frontend/app/android/gradlew
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Copyright © 2015-2021 the original authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
||||
# noncompliant, but you have some other compliant shell such as ksh or
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
# * functions;
|
||||
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
||||
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
||||
# * compound commands having a testable exit status, especially «case»;
|
||||
# * various built-in commands including «command», «set», and «ulimit».
|
||||
#
|
||||
# Important for patching:
|
||||
#
|
||||
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
||||
# by Bash, Ksh, etc; in particular arrays are avoided.
|
||||
#
|
||||
# The "traditional" practice of packing multiple parameters into a
|
||||
# space-separated string is a well documented source of bugs and security
|
||||
# problems, so this is (mostly) avoided, by progressively accumulating
|
||||
# options in "$@", and eventually passing that to Java.
|
||||
#
|
||||
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
||||
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
||||
# see the in-line comments for details.
|
||||
#
|
||||
# There are tweaks for specific operating systems such as AIX, CygWin,
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
|
||||
# Resolve links: $0 may be a link
|
||||
app_path=$0
|
||||
|
||||
# Need this for daisy-chained symlinks.
|
||||
while
|
||||
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
||||
[ -h "$app_path" ]
|
||||
do
|
||||
ls=$( ls -ld "$app_path" )
|
||||
link=${ls#*' -> '}
|
||||
case $link in #(
|
||||
/*) app_path=$link ;; #(
|
||||
*) app_path=$APP_HOME$link ;;
|
||||
esac
|
||||
done
|
||||
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=${0##*/}
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
} >&2
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
} >&2
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "$( uname )" in #(
|
||||
CYGWIN* ) cygwin=true ;; #(
|
||||
Darwin* ) darwin=true ;; #(
|
||||
MSYS* | MINGW* ) msys=true ;; #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD=$JAVA_HOME/jre/sh/java
|
||||
else
|
||||
JAVACMD=$JAVA_HOME/bin/java
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD=java
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command, stacking in reverse order:
|
||||
# * args from the command line
|
||||
# * the main class name
|
||||
# * -classpath
|
||||
# * -D...appname settings
|
||||
# * --module-path (only if needed)
|
||||
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if "$cygwin" || "$msys" ; then
|
||||
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
||||
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
||||
|
||||
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
||||
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
for arg do
|
||||
if
|
||||
case $arg in #(
|
||||
-*) false ;; # don't mess with options #(
|
||||
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
||||
[ -e "$t" ] ;; #(
|
||||
*) false ;;
|
||||
esac
|
||||
then
|
||||
arg=$( cygpath --path --ignore --mixed "$arg" )
|
||||
fi
|
||||
# Roll the args list around exactly as many times as the number of
|
||||
# args, so each arg winds up back in the position where it started, but
|
||||
# possibly modified.
|
||||
#
|
||||
# NB: a `for` loop captures its iteration list before it begins, so
|
||||
# changing the positional parameters here affects neither the number of
|
||||
# iterations, nor the values presented in `arg`.
|
||||
shift # remove old arg
|
||||
set -- "$@" "$arg" # push replacement arg
|
||||
done
|
||||
fi
|
||||
|
||||
# Collect all arguments for the java command;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
# double quotes to make sure that they get re-expanded; and
|
||||
# * put everything else in single quotes, so that it's not re-expanded.
|
||||
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
"$@"
|
||||
|
||||
# Use "xargs" to parse quoted args.
|
||||
#
|
||||
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
||||
#
|
||||
# In Bash we could simply go:
|
||||
#
|
||||
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
||||
# set -- "${ARGS[@]}" "$@"
|
||||
#
|
||||
# but POSIX shell has neither arrays nor command substitution, so instead we
|
||||
# post-process each arg (as a line of input to sed) to backslash-escape any
|
||||
# character that might be a shell metacharacter, then use eval to reverse
|
||||
# that process (while maintaining the separation between arguments), and wrap
|
||||
# the whole thing up as a single "set" statement.
|
||||
#
|
||||
# This will of course break if any of these variables contains a newline or
|
||||
# an unmatched quote.
|
||||
#
|
||||
|
||||
eval "set -- $(
|
||||
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
||||
xargs -n1 |
|
||||
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
||||
tr '\n' ' '
|
||||
)" '"$@"'
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
89
frontend/app/android/gradlew.bat
vendored
Normal file
89
frontend/app/android/gradlew.bat
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
5
frontend/app/android/settings.gradle
Normal file
5
frontend/app/android/settings.gradle
Normal file
@@ -0,0 +1,5 @@
|
||||
include ':app'
|
||||
include ':capacitor-cordova-android-plugins'
|
||||
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')
|
||||
|
||||
apply from: 'capacitor.settings.gradle'
|
||||
16
frontend/app/android/variables.gradle
Normal file
16
frontend/app/android/variables.gradle
Normal file
@@ -0,0 +1,16 @@
|
||||
ext {
|
||||
minSdkVersion = 22
|
||||
compileSdkVersion = 32
|
||||
targetSdkVersion = 32
|
||||
androidxActivityVersion = '1.4.0'
|
||||
androidxAppCompatVersion = '1.4.2'
|
||||
androidxCoordinatorLayoutVersion = '1.2.0'
|
||||
androidxCoreVersion = '1.8.0'
|
||||
androidxFragmentVersion = '1.4.1'
|
||||
coreSplashScreenVersion = '1.0.0-rc01'
|
||||
androidxWebkitVersion = '1.4.0'
|
||||
junitVersion = '4.13.2'
|
||||
androidxJunitVersion = '1.1.3'
|
||||
androidxEspressoCoreVersion = '3.4.0'
|
||||
cordovaAndroidVersion = '10.1.1'
|
||||
}
|
||||
217
frontend/app/angular.json
Normal file
217
frontend/app/angular.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
|
||||
"version": 1,
|
||||
"defaultProject": "app",
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"app": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"prefix": "app",
|
||||
"schematics": {},
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"outputPath": "www",
|
||||
"index": "src/index.html",
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "tsconfig.app.json",
|
||||
"assets": [
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "src/assets",
|
||||
"output": "assets"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "./node_modules/leaflet/dist/images",
|
||||
"output": "assets/"
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
{
|
||||
"input": "src/theme/variables.scss",
|
||||
"inject": true
|
||||
},
|
||||
{
|
||||
"input": "src/global.scss",
|
||||
"inject": true
|
||||
},
|
||||
"./node_modules/leaflet/dist/leaflet.css",
|
||||
"./node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css"
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.production.ts"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all",
|
||||
"subresourceIntegrity": true,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"buildOptimizer": false,
|
||||
"optimization": false,
|
||||
"vendorChunk": true,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true
|
||||
},
|
||||
"ci": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
],
|
||||
"progress": false
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "app:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "app:build:production"
|
||||
},
|
||||
"development": {
|
||||
"browserTarget": "app:build:development"
|
||||
},
|
||||
"ci": {
|
||||
"progress": false,
|
||||
"browserTarget": "app:build"
|
||||
},
|
||||
"fake": {
|
||||
"browserTarget": "app:build:fake"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "app:build"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"main": "src/test.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "tsconfig.spec.json",
|
||||
"karmaConfig": "karma.conf.js",
|
||||
"styles": [],
|
||||
"scripts": [],
|
||||
"assets": [
|
||||
{
|
||||
"glob": "favicon.ico",
|
||||
"input": "src/",
|
||||
"output": "/"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "src/assets",
|
||||
"output": "/assets"
|
||||
},
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "./node_modules/leaflet/dist/images",
|
||||
"output": "assets/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"configurations": {
|
||||
"ci": {
|
||||
"progress": false,
|
||||
"watch": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
|
||||
"eslintConfig": ".eslintrc.json",
|
||||
"ignorePath": ".eslintignore"
|
||||
}
|
||||
},
|
||||
"ionic-cordova-build": {
|
||||
"builder": "@ionic/angular-toolkit:cordova-build",
|
||||
"options": {
|
||||
"browserTarget": "app:build"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "app:build:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cypress-run": {
|
||||
"builder": "@cypress/schematic:cypress",
|
||||
"options": {
|
||||
"devServerTarget": "app:serve"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"devServerTarget": "app:serve:production"
|
||||
}
|
||||
}
|
||||
},
|
||||
"cypress-open": {
|
||||
"builder": "@cypress/schematic:cypress",
|
||||
"options": {
|
||||
"watch": true,
|
||||
"headless": false
|
||||
}
|
||||
},
|
||||
"e2e": {
|
||||
"builder": "@cypress/schematic:cypress",
|
||||
"options": {
|
||||
"devServerTarget": "app:serve",
|
||||
"watch": true,
|
||||
"headless": false
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"devServerTarget": "app:serve:production"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"defaultCollection": "@ionic/angular-toolkit",
|
||||
"analytics": false
|
||||
},
|
||||
"schematics": {
|
||||
"@ionic/angular-toolkit:component": {
|
||||
"styleext": "scss"
|
||||
},
|
||||
"@ionic/angular-toolkit:page": {
|
||||
"styleext": "scss"
|
||||
}
|
||||
}
|
||||
}
|
||||
39
frontend/app/capacitor.config.ts
Normal file
39
frontend/app/capacitor.config.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
import {CapacitorConfig} from '@capacitor/cli';
|
||||
|
||||
const config: CapacitorConfig = {
|
||||
appId: 'de.anyschool.app',
|
||||
appName: 'StApps',
|
||||
webDir: 'www',
|
||||
bundledWebRuntime: false,
|
||||
cordova: {
|
||||
preferences: {
|
||||
'AndroidXEnabled': 'true',
|
||||
'android-minSdkVersion': '22',
|
||||
'BackupWebStorage': 'none',
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
SplashScreen: {
|
||||
launchShowDuration: 6000,
|
||||
launchAutoHide: false,
|
||||
backgroundColor: '#ffffff',
|
||||
androidSplashResourceName: 'splash',
|
||||
androidScaleType: 'FIT_CENTER',
|
||||
showSpinner: false,
|
||||
androidSpinnerStyle: 'large',
|
||||
iosSpinnerStyle: 'small',
|
||||
spinnerColor: '#999999',
|
||||
splashFullScreen: false,
|
||||
splashImmersive: false,
|
||||
useDialog: false,
|
||||
},
|
||||
LocalNotifications: {
|
||||
// TODO
|
||||
},
|
||||
CapacitorHttp: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
32
frontend/app/config.xml
Normal file
32
frontend/app/config.xml
Normal file
@@ -0,0 +1,32 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="de.anyschool.app" version="2.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>StApps</name>
|
||||
<description>An awesome Ionic/Cordova app.</description>
|
||||
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
|
||||
<content src="index.html" />
|
||||
<access origin="*" />
|
||||
<allow-intent href="http://*/*" />
|
||||
<allow-intent href="https://*/*" />
|
||||
<allow-intent href="tel:*" />
|
||||
<allow-intent href="sms:*" />
|
||||
<allow-intent href="mailto:*" />
|
||||
<allow-intent href="geo:*" />
|
||||
<preference name="AndroidXEnabled" value="true" />
|
||||
<preference name="ScrollEnabled" value="false" />
|
||||
<preference name="android-minSdkVersion" value="22" />
|
||||
<preference name="BackupWebStorage" value="none" />
|
||||
<preference name="SplashMaintainAspectRatio" value="true" />
|
||||
<preference name="FadeSplashScreenDuration" value="300" />
|
||||
<preference name="SplashShowOnlyFirstTime" value="false" />
|
||||
<preference name="SplashScreen" value="screen" />
|
||||
<preference name="SplashScreenDelay" value="3000" />
|
||||
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
|
||||
<plugin name="cordova-plugin-geolocation" spec="4.0.1">
|
||||
<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="The app will use your location to provide features for navigation or distances information." />
|
||||
</plugin>
|
||||
<engine name="ios" spec="6.2.0" />
|
||||
<engine name="browser" spec="6.0.0" />
|
||||
<engine name="android" spec="9.0.0" />
|
||||
<plugin name="cordova.plugins.diagnostic" spec="6.1.0" />
|
||||
<preference name="cordova.plugins.diagnostic.modules" value="LOCATION CALENDAR" />
|
||||
</widget>
|
||||
36
frontend/app/cypress.config.ts
Normal file
36
frontend/app/cypress.config.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import {defineConfig} from 'cypress';
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
baseUrl: 'http://localhost:4200',
|
||||
supportFile: 'cypress/support/index.ts',
|
||||
videosFolder: 'cypress/videos',
|
||||
screenshotsFolder: 'cypress/screenshots',
|
||||
fixturesFolder: 'cypress/fixtures',
|
||||
defaultCommandTimeout: 20_000,
|
||||
specPattern: 'cypress/integration/**/*.spec.ts',
|
||||
/*setupNodeEvents(on, config) {
|
||||
on('task', {
|
||||
log(message) {
|
||||
console.log(message);
|
||||
return null;
|
||||
},
|
||||
});
|
||||
},*/
|
||||
},
|
||||
});
|
||||
2
frontend/app/cypress/.gitignore
vendored
Normal file
2
frontend/app/cypress/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
screenshots/
|
||||
videos/
|
||||
5
frontend/app/cypress/fixtures/example.json
Normal file
5
frontend/app/cypress/fixtures/example.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Using fixtures to represent data",
|
||||
"email": "hello@cypress.io",
|
||||
"body": "Fixtures are a great way to mock data for responses to routes"
|
||||
}
|
||||
464
frontend/app/cypress/fixtures/search/multi-result.json
Normal file
464
frontend/app/cypress/fixtures/search/multi-result.json
Normal file
@@ -0,0 +1,464 @@
|
||||
{
|
||||
"0": {
|
||||
"data": [],
|
||||
"facets": [],
|
||||
"pagination": {
|
||||
"count": 0,
|
||||
"offset": 0,
|
||||
"total": 0
|
||||
},
|
||||
"stats": {
|
||||
"time": 17
|
||||
}
|
||||
},
|
||||
"1": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "0c7b1108-5af1-5142-802a-b3cb8c53423a",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "770563"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-02T10:09:30.199Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Proseminar",
|
||||
"dates": [
|
||||
"2021-10-18T10:00:00+02:00",
|
||||
"2021-10-25T10:00:00+02:00",
|
||||
"2021-11-01T10:00:00+01:00",
|
||||
"2021-11-08T10:00:00+01:00",
|
||||
"2021-11-15T10:00:00+01:00",
|
||||
"2021-11-22T10:00:00+01:00",
|
||||
"2021-11-29T10:00:00+01:00",
|
||||
"2021-12-06T10:00:00+01:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "333284"
|
||||
},
|
||||
"name": "Vertiefung Forschungstechnik: Quantitative Text Analysis",
|
||||
"originalCategory": "Proseminar",
|
||||
"type": "academic event",
|
||||
"uid": "8150cab0-8c53-5cfa-a751-cdc2c550fd09"
|
||||
},
|
||||
"type": "date series"
|
||||
},
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "29942a12-3e9d-5f2a-8b5a-67f3411cc344",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "770564"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-02T10:09:30.201Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Proseminar",
|
||||
"dates": [
|
||||
"2021-10-20T10:00:00+02:00",
|
||||
"2021-10-27T10:00:00+02:00",
|
||||
"2021-11-03T10:00:00+01:00",
|
||||
"2021-11-10T10:00:00+01:00",
|
||||
"2021-11-17T10:00:00+01:00",
|
||||
"2021-11-24T10:00:00+01:00",
|
||||
"2021-12-01T10:00:00+01:00",
|
||||
"2021-12-08T10:00:00+01:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "333284"
|
||||
},
|
||||
"name": "Vertiefung Forschungstechnik: Quantitative Text Analysis",
|
||||
"originalCategory": "Proseminar",
|
||||
"type": "academic event",
|
||||
"uid": "8150cab0-8c53-5cfa-a751-cdc2c550fd09"
|
||||
},
|
||||
"type": "date series"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "seminar"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 2,
|
||||
"offset": 0,
|
||||
"total": 2
|
||||
},
|
||||
"stats": {
|
||||
"time": 20
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "6cd69d5b-457d-54fe-9c9d-f2d964f922bb",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "795424"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-02T10:09:17.000Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Seminar",
|
||||
"dates": [
|
||||
"2022-04-25T10:00:00+02:00",
|
||||
"2022-05-02T10:00:00+02:00",
|
||||
"2022-05-09T10:00:00+02:00",
|
||||
"2022-05-16T10:00:00+02:00",
|
||||
"2022-05-23T10:00:00+02:00",
|
||||
"2022-05-30T10:00:00+02:00",
|
||||
"2022-06-13T10:00:00+02:00",
|
||||
"2022-06-20T10:00:00+02:00",
|
||||
"2022-06-27T10:00:00+02:00",
|
||||
"2022-07-04T10:00:00+02:00",
|
||||
"2022-07-11T10:00:00+02:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "336255"
|
||||
},
|
||||
"name": "Integrations-Seminar: Die Pest – eine Geißel Gottes?",
|
||||
"originalCategory": "Seminar",
|
||||
"type": "academic event",
|
||||
"uid": "5218f814-f112-5f0d-a686-0ad32f5458d7"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["NG 701", "Seminarraum, Belegungspräferenz Fb 6, Fb 7 und Fb 9"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.66986, 50.12624],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.669566065073013, 50.12599504439663],
|
||||
[8.669351488351822, 50.12621170950345],
|
||||
[8.669488281011581, 50.12626501584762],
|
||||
[8.66951510310173, 50.12624094202212],
|
||||
[8.669930845499039, 50.12641633675929],
|
||||
[8.66990938782692, 50.12643525183961],
|
||||
[8.670027405023577, 50.1264851188337],
|
||||
[8.670236617326736, 50.12627361363954],
|
||||
[8.669566065073013, 50.12599504439663]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "818"
|
||||
},
|
||||
"name": "NG 701 (Vorbelegungsrecht Fb 06, 07, 09)",
|
||||
"type": "room",
|
||||
"uid": "c2832ca4-4db1-57a9-869b-29e556a574e1"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "seminar"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 19
|
||||
}
|
||||
},
|
||||
"3": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "92ea4c39-e6d9-5b3e-8c8a-08d2406daf2b",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "775246"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-02T10:09:22.176Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Seminar",
|
||||
"dates": [
|
||||
"2022-04-11T16:00:00+02:00",
|
||||
"2022-04-25T16:00:00+02:00",
|
||||
"2022-05-02T16:00:00+02:00",
|
||||
"2022-05-09T16:00:00+02:00",
|
||||
"2022-05-16T16:00:00+02:00",
|
||||
"2022-05-23T16:00:00+02:00",
|
||||
"2022-05-30T16:00:00+02:00",
|
||||
"2022-06-13T16:00:00+02:00",
|
||||
"2022-06-20T16:00:00+02:00",
|
||||
"2022-06-27T16:00:00+02:00",
|
||||
"2022-07-04T16:00:00+02:00",
|
||||
"2022-07-11T16:00:00+02:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "334591"
|
||||
},
|
||||
"name": "Konstruktion der Wirklichkeit. Siegfried Kracauers Text-Mosaik",
|
||||
"originalCategory": "Seminar",
|
||||
"type": "academic event",
|
||||
"uid": "9d019d9e-d26e-52a0-bf3e-56e7950784af"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["SH 4.101"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.66836, 50.12927],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.668371140956877, 50.12907297255887],
|
||||
[8.668247759342194, 50.12942717952356],
|
||||
[8.668864667415619, 50.129513151692436],
|
||||
[8.668977320194244, 50.1291692620903],
|
||||
[8.668371140956877, 50.12907297255887]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "7378"
|
||||
},
|
||||
"name": "SH 4.101",
|
||||
"type": "room",
|
||||
"uid": "7d603157-54a8-5a1a-94a3-a575a6cc5b47"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "seminar"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 19
|
||||
}
|
||||
},
|
||||
"4": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "9c36d466-5e59-5e45-92db-d3e50e9617ce",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "763069"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-02T10:09:47.309Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Tutorium",
|
||||
"dates": [
|
||||
"2021-10-25T14:00:00+02:00",
|
||||
"2021-11-01T14:00:00+01:00",
|
||||
"2021-11-08T14:00:00+01:00",
|
||||
"2021-11-15T14:00:00+01:00",
|
||||
"2021-11-22T14:00:00+01:00",
|
||||
"2021-11-29T14:00:00+01:00",
|
||||
"2021-12-06T14:00:00+01:00",
|
||||
"2021-12-13T14:00:00+01:00",
|
||||
"2022-01-10T14:00:00+01:00",
|
||||
"2022-01-17T14:00:00+01:00",
|
||||
"2022-01-24T14:00:00+01:00",
|
||||
"2022-01-31T14:00:00+01:00",
|
||||
"2022-02-07T14:00:00+01:00",
|
||||
"2022-02-14T14:00:00+01:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["tutorial"],
|
||||
"identifiers": {
|
||||
"LSF": "329884"
|
||||
},
|
||||
"name": "Einführung in Text Mining mit R",
|
||||
"originalCategory": "Tutorium",
|
||||
"type": "academic event",
|
||||
"uid": "7c1c016f-49f5-51b5-971b-9307fe1fed4f"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["SH 1.105"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.66836, 50.12927],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.668371140956877, 50.12907297255887],
|
||||
[8.668247759342194, 50.12942717952356],
|
||||
[8.668864667415619, 50.129513151692436],
|
||||
[8.668977320194244, 50.1291692620903],
|
||||
[8.668371140956877, 50.12907297255887]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "7337"
|
||||
},
|
||||
"name": "SH 1.105 (Vorbelegungsrecht FB 04, gültig für WS 22/23)",
|
||||
"type": "room",
|
||||
"uid": "ee1de899-2e25-5680-b7ed-e8fcad6c5408"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "tutorial"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 21
|
||||
}
|
||||
}
|
||||
}
|
||||
12
frontend/app/cypress/fixtures/search/no-results.json
Normal file
12
frontend/app/cypress/fixtures/search/no-results.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"data": [],
|
||||
"facets": [],
|
||||
"pagination": {
|
||||
"count": 0,
|
||||
"offset": 0,
|
||||
"total": 0
|
||||
},
|
||||
"stats": {
|
||||
"time": 4
|
||||
}
|
||||
}
|
||||
631
frontend/app/cypress/fixtures/search/test-2.json
Normal file
631
frontend/app/cypress/fixtures/search/test-2.json
Normal file
File diff suppressed because one or more lines are too long
2910
frontend/app/cypress/fixtures/search/test.json
Normal file
2910
frontend/app/cypress/fixtures/search/test.json
Normal file
File diff suppressed because one or more lines are too long
@@ -0,0 +1,208 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336",
|
||||
"identifiers": {
|
||||
"LSF": "336024"
|
||||
},
|
||||
"catalogs": [
|
||||
{
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "85523"
|
||||
},
|
||||
"level": 2,
|
||||
"name": "Fremdsprachen",
|
||||
"type": "catalog",
|
||||
"uid": "004a2be2-efad-5d14-8b6b-88701651c3fd"
|
||||
}
|
||||
],
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:10:13.841Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "UNIcert (Test)",
|
||||
"organizers": [
|
||||
{
|
||||
"familyName": "Guzmán",
|
||||
"gender": "female",
|
||||
"givenName": "Evelyn",
|
||||
"identifiers": {
|
||||
"LSF": "15239"
|
||||
},
|
||||
"jobTitles": ["ISZ-Bereich Fremdsprachen - Wissenschaftliche Mitarbeiter*innen"],
|
||||
"name": "Evelyn Guzmán",
|
||||
"type": "person",
|
||||
"uid": "6cd47b1f-485a-50be-8ca6-7ebe71729b7d"
|
||||
}
|
||||
],
|
||||
"originalCategory": "Übung",
|
||||
"categories": ["exercise"],
|
||||
"type": "academic event",
|
||||
"academicTerms": [
|
||||
{
|
||||
"acronym": "WiSe 2058/59",
|
||||
"alternateNames": ["Winter 2058/59"],
|
||||
"endDate": "2059-03-31T21:59:59.999Z",
|
||||
"eventsEndDate": "2059-02-18T22:59:59.999Z",
|
||||
"eventsStartDate": "2021-10-17T22:00:00.000Z",
|
||||
"name": "Wintersemester 2021/22",
|
||||
"startDate": "2021-09-30T22:00:00.000Z",
|
||||
"type": "semester",
|
||||
"uid": "049ab143-8b77-5dcc-95e9-8bb6755f3db4"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e",
|
||||
"identifiers": {
|
||||
"LSF": "333339"
|
||||
},
|
||||
"catalogs": [
|
||||
{
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "90887"
|
||||
},
|
||||
"level": 3,
|
||||
"name": "Empirische Forschungsmethoden II - Vertiefung (EW-BA 7)",
|
||||
"type": "catalog",
|
||||
"uid": "cc509f14-1a54-5500-a48e-57c1965aac09"
|
||||
},
|
||||
{
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "88474"
|
||||
},
|
||||
"level": 3,
|
||||
"name": "Empirische Forschungsverfahren und ihre Anwendung (alt) / Empirische Foschungsmethoden II - Vertiefung (neu) (EW-BA 7)",
|
||||
"type": "catalog",
|
||||
"uid": "6d7018f8-8a7c-50ff-9504-c5ec3c978e8b"
|
||||
},
|
||||
{
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "91137"
|
||||
},
|
||||
"level": 1,
|
||||
"name": "Pädagogik der Elementar- und Primarstufe",
|
||||
"type": "catalog",
|
||||
"uid": "991c01fa-674f-58c1-add8-54317fee2c27"
|
||||
}
|
||||
],
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:08:49.850Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion",
|
||||
"organizers": [
|
||||
{
|
||||
"familyName": "Jurecka",
|
||||
"gender": "female",
|
||||
"givenName": "Astrid",
|
||||
"honorificPrefix": "Dr.",
|
||||
"identifiers": {
|
||||
"LSF": "10608"
|
||||
},
|
||||
"jobTitles": [
|
||||
"Institut für Pädagogik der Elementar- und Primarstufe (WE II) - Wissenschaftliche Mitarbeiter*innen"
|
||||
],
|
||||
"name": "Astrid Jurecka",
|
||||
"type": "person",
|
||||
"uid": "92ad2023-5c9d-5fcf-8c42-58b476ae24ba"
|
||||
}
|
||||
],
|
||||
"originalCategory": "Seminar",
|
||||
"categories": ["seminar"],
|
||||
"type": "academic event",
|
||||
"academicTerms": [
|
||||
{
|
||||
"acronym": "SoSe 2059",
|
||||
"alternateNames": ["Sommer 2059"],
|
||||
"endDate": "2059-09-30T21:59:59.999Z",
|
||||
"eventsEndDate": "2059-07-15T21:59:59.999Z",
|
||||
"eventsStartDate": "2059-04-10T22:00:00.000Z",
|
||||
"name": "Sommersemester 2059",
|
||||
"startDate": "2059-03-31T22:00:00.000Z",
|
||||
"type": "semester",
|
||||
"uid": "4b2766cb-e16d-5698-b5b3-e650613d497a"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "academic event"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "WiSe 2058/59"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "SoSe 2059"
|
||||
}
|
||||
],
|
||||
"field": "academicTerms.acronym",
|
||||
"onlyOnType": "academic event"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "university events"
|
||||
}
|
||||
],
|
||||
"field": "catalogs.categories",
|
||||
"onlyOnType": "academic event"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 17,
|
||||
"key": "seminar"
|
||||
},
|
||||
{
|
||||
"count": 3,
|
||||
"key": "exercise"
|
||||
},
|
||||
{
|
||||
"count": 3,
|
||||
"key": "practicum"
|
||||
},
|
||||
{
|
||||
"count": 2,
|
||||
"key": "special"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "lecture"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "tutorial"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "academic event"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 2,
|
||||
"offset": 0,
|
||||
"total": 2
|
||||
},
|
||||
"stats": {
|
||||
"time": 69
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666987121105194, 50.12725203226799],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "86464b64-da1e-5578-a5c4-eec23457f596",
|
||||
"alternateNames": ["Alfredo Anbau Casino"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T18:45:04.280Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Alfredo Anbau Casino",
|
||||
"openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"categories": ["cafe"],
|
||||
"type": "room"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "room"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "cafe"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "room"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,323 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666987121105194, 50.12725203226799],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "86464b64-da1e-5578-a5c4-eec23457f596",
|
||||
"alternateNames": ["Alfredo Anbau Casino"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.173Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Alfredo Anbau Casino",
|
||||
"openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"categories": ["cafe"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.6441518, 50.131335],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "c77576af-1633-5465-ba12-6089d1d8919d",
|
||||
"alternateNames": ["Cafe Hochform"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60487",
|
||||
"streetAddress": "Institut für Sportwissenschaften Ginnheimer Landstrasse 39"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.173Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Cafe Hochform",
|
||||
"openingHours": "Mo-Fr 09:00-16:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 09:00-15:30; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.651551008224486, 50.11935877057829],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "7a3270e5-6af1-58cd-b2d9-6bce2bf8fffb",
|
||||
"alternateNames": ["Cafeteria Bockenheim"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60325",
|
||||
"streetAddress": "Sozialzentrum Bockenheimer Landstrasse 133"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.168Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Cafeteria Bockenheim",
|
||||
"openingHours": "Mo-Fr 08:00-16:00; Sa-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.6266007, 50.172658],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "9d7596b1-102b-5003-91d8-aa0b411cc0e8",
|
||||
"alternateNames": ["Cafeteria Darwins"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60438",
|
||||
"streetAddress": "Biologicum Max-von-Laue-Str. 13"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.174Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Cafeteria Darwins",
|
||||
"openingHours": "Mo-Fr 08:30-17:00; Sa-Su off; 2021 Oct 15 - 2022 Apr 08 Mo-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.6285375, 50.1743717],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "2da7eb88-768f-5881-9e84-8dc0d767c8b7",
|
||||
"alternateNames": ["Cafeteria LEVEL"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60438",
|
||||
"streetAddress": "Otto-Stern-Zentrum Ruth-Moufang-Straße 2"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.174Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Cafeteria LEVEL",
|
||||
"openingHours": "Mo-Fr 09:00-16:00; Sa-Su off; 2021 Dec 20 - 2022 Jan 07 Mo-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666908666491508, 50.12685997940193],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "01d3e4fb-779a-5ee5-8067-d77a44a33e1a",
|
||||
"alternateNames": ["Casino Cafeteria"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Cafeteria Casino Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.174Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Casino Cafeteria",
|
||||
"openingHours": "Mo-Th 11:00-17:00; Fr 11:00-14:30; Sa-Su off; 2020 May 18 - 2022 Oct 14 Mo-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.668776154518127, 50.12844708588227],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "74e6a230-56fe-5c0e-b529-1c126df98595",
|
||||
"alternateNames": ["DASEIN"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "PEG Theodor-W.-Adorno-Platz 6"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.174Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "DASEIN",
|
||||
"openingHours": "Mo-Fr 07:30-17:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 08:00-16:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666871786117554, 50.127181531770134],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "41f2bac9-ea46-5643-a354-49b1d5539a09",
|
||||
"alternateNames": ["Mensa Anbau Casino"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Anbau Casino Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.173Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Mensa Anbau Casino",
|
||||
"openingHours": "Mo-Fr 11:00-15:30; Sa-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.667021989822388, 50.12683762541366],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "254b10c1-8a79-53ad-98dc-3e0e30d92a88",
|
||||
"alternateNames": ["Mensa Casino"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Casinogebäude Theodor-W.-Adorno-Platz 2a"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.173Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Mensa Casino",
|
||||
"openingHours": "Mo-Fr 12:00-15:00; Sa-Su off; 2022 Mar 24 - 2022 Apr 14 Mo-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.6300707, 50.17189],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "a307c74a-40c1-57bb-a065-15bb9c505b9d",
|
||||
"alternateNames": ["Mensa Pi x Gaumen"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60438",
|
||||
"streetAddress": "Max-von-Laue-Str. 9"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.174Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Mensa Pi x Gaumen",
|
||||
"openingHours": "Mo-Fr 11:00-15:00; Sa-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
},
|
||||
{
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666126132011412, 50.1266751288006],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"uid": "be3f4727-5ed2-5470-aa45-6bf7eb7e30d4",
|
||||
"alternateNames": ["Sommergarten Westend"],
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Sommergarten Theodor-W.-Adorno-Platz 2a"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-07-07T08:15:04.173Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Sommergarten Westend",
|
||||
"openingHours": "Mo-Fr 15:30-22:00; Sa-Su off; 2021 Sep 27 - 2022 Apr 14 Mo-Su off",
|
||||
"categories": ["restaurant"],
|
||||
"type": "room"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 11,
|
||||
"key": "room"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "restaurant"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "cafe"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "room"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 11,
|
||||
"offset": 0,
|
||||
"total": 11
|
||||
},
|
||||
"stats": {
|
||||
"time": 4
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"uid": "ae3cf884-4dc4-526b-9213-6850135591ab",
|
||||
"superCatalogs": [
|
||||
{
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "88418"
|
||||
},
|
||||
"level": 0,
|
||||
"name": "FB 1 - Rechtswissenschaft",
|
||||
"type": "catalog",
|
||||
"uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e",
|
||||
"description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge."
|
||||
}
|
||||
],
|
||||
"level": 1,
|
||||
"academicTerm": {
|
||||
"acronym": "SoSe 2022",
|
||||
"alternateNames": ["Sommer 2022"],
|
||||
"endDate": "2022-09-30T21:59:59.999Z",
|
||||
"eventsEndDate": "2022-07-15T21:59:59.999Z",
|
||||
"eventsStartDate": "2022-04-10T22:00:00.000Z",
|
||||
"name": "Sommersemester 2022",
|
||||
"startDate": "2022-03-31T22:00:00.000Z",
|
||||
"type": "semester",
|
||||
"uid": "4b2766cb-e16d-5698-b5b3-e650613d497a"
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "88412"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-03T10:08:42.803Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Studium der Pflichtfächer (1. bis 5. Semester)",
|
||||
"categories": ["university events"],
|
||||
"type": "catalog",
|
||||
"superCatalog": {
|
||||
"categories": ["university events"],
|
||||
"identifiers": {
|
||||
"LSF": "88418"
|
||||
},
|
||||
"level": 0,
|
||||
"name": "FB 1 - Rechtswissenschaft",
|
||||
"type": "catalog",
|
||||
"uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e",
|
||||
"description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge."
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "catalog"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "SoSe 2022"
|
||||
}
|
||||
],
|
||||
"field": "academicTerm.acronym",
|
||||
"onlyOnType": "catalog"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "university events"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "catalog"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "university events"
|
||||
}
|
||||
],
|
||||
"field": "superCatalog.categories",
|
||||
"onlyOnType": "catalog"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "university events"
|
||||
}
|
||||
],
|
||||
"field": "superCatalogs.categories",
|
||||
"onlyOnType": "catalog"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"uid": "401169e8-92d8-575b-8fa9-bf49ede63b0e",
|
||||
"level": 0,
|
||||
"academicTerm": {
|
||||
"acronym": "SoSe 2022",
|
||||
"alternateNames": ["Sommer 2022"],
|
||||
"endDate": "2022-09-30T21:59:59.999Z",
|
||||
"eventsEndDate": "2022-07-15T21:59:59.999Z",
|
||||
"eventsStartDate": "2022-04-10T22:00:00.000Z",
|
||||
"name": "Sommersemester 2022",
|
||||
"startDate": "2022-03-31T22:00:00.000Z",
|
||||
"type": "semester",
|
||||
"uid": "4b2766cb-e16d-5698-b5b3-e650613d497a"
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "88418"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-03T10:08:42.796Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "FB 1 - Rechtswissenschaft",
|
||||
"description": "Das stets aktuelle Vorlesungsverzeichnis des Fachbereichs Rechtswissenschaft finden Sie hier! Ein Ausdruck mit allen aktuellen Änderungen hängt außerdem vor dem Dekanat des Fachbereichs (1. OG, Gebäude RuW) aus. Nähere Informationen über den Aufbau des Studiums der Rechtswissenschaft erhalten Sie über unsere Studien- und Prüfungsordnung, die Sie im Dekanat bekommen. Das gedruckte VORLESUNGSVERZEICHNIS kann zudem während der Öffnungszeiten im Hörsaalgebäude am Verkaufsstand der Buchhandlung Hector erworben werden.\n\nDas Veranstaltungsangebot orientiert sich am Studienplan des Fachbereichs Rechtswissenschaft. Die Lehrveranstaltungen beginnen in der ersten Vorlesungswoche. Die Pflichtveranstaltungen enden an unserem Fachbereich\neine Woche vor Vorlesungsende\n, anschließend beginnt die zweiwöchige Klausurenphase.\n\nDie wöchentlichen Veranstaltungen im Schwerpunktbereichsstudium enden bereits zwei Wochen vor dem allgemeinen Vorlesungsende der Universität. Anschließend werden Blockveranstaltungen angeboten.\n\nAchtung:\nIm Schwerpunktbereichsstudium dürfen insgesamt nur maximal zwei rechtsmedizinische und arztrechtliche Veranstaltungen des Insituts für Rechtsmedizin zur Erbringung des Pflichtprogramms gem. § 25 Abs. 3 genutzt werden!\n\n\n\n\n \n\nFür Studienanfänger wird eine spezielle dreitägige Orientierungsveranstaltung in der Woche vor Vorlesungsbeginn angeboten; Einzelheiten hierzu werden brieflich mitgeteilt. Für Fragen und Sorgen steht die Studienberatung des Fachbereichs für Studierende aller Semester zur Verfügung und zwar während der Vorlesungszeit Mo, Di, Do, 9.30-11.30 Uhr und Mi, 9.30-11.30 und 13.30-15.30 Uhr in den Räumen des Dekanats, für Berufstätige nach Vereinbarung.\nIn der vorlesungsfreien Zeit ausschließlich Mi 9.30-11.30 Uhr!\n\nDer Fachbereich bietet einen Aufbaustudiengang für im Ausland graduierte Juristinnen und Juristen (LL.M.), einen Aufbaustudiengang \"Europäisches und Internationales Wirtschaftsrecht\" (LL.M. Eur.), einen Weiterbildungsstudiengang \"Law and Finance\" (LL.M. Finance), ein Masterprogramm \"LL.M. Legal Theory\" sowie zusammen mit der Universität Lumière Lyon II das Studienprogramm zum französischen Recht \"Diplôme Universitaire de Droit Français\" (DUDF) an. Veranstaltungen zu den Studiengängen siehe Vorlesungsverzeichnis und Aushänge.",
|
||||
"categories": ["university events"],
|
||||
"type": "catalog"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "catalog"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "SoSe 2022"
|
||||
}
|
||||
],
|
||||
"field": "academicTerm.acronym",
|
||||
"onlyOnType": "catalog"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "university events"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "catalog"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT1H0M0S",
|
||||
"uid": "c010f7d6-5a32-522a-8316-045e032ea25e",
|
||||
"identifiers": {
|
||||
"LSF": "779352"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:10:13.842Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Übung",
|
||||
"dates": ["2059-01-19T14:00:00+01:00"],
|
||||
"event": {
|
||||
"categories": ["exercise"],
|
||||
"identifiers": {
|
||||
"LSF": "336024"
|
||||
},
|
||||
"name": "UNIcert (Test)",
|
||||
"originalCategory": "Übung",
|
||||
"type": "academic event",
|
||||
"uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["H I", "Hörsaal I"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.64988, 50.11825],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.650173693895338, 50.11768192973537],
|
||||
[8.649645298719406, 50.1177214866573],
|
||||
[8.649690896272658, 50.11794334878755],
|
||||
[8.649795502424238, 50.11793646935709],
|
||||
[8.649822324514389, 50.11810845482188],
|
||||
[8.64978477358818, 50.118110174673404],
|
||||
[8.649827688932419, 50.11833375484596],
|
||||
[8.650490194559096, 50.11828559920474],
|
||||
[8.650428503751753, 50.11806029895402],
|
||||
[8.65011468529701, 50.11808265704158],
|
||||
[8.650082498788832, 50.11792615020954],
|
||||
[8.650203198194502, 50.117914111201316],
|
||||
[8.650173693895338, 50.11768192973537]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "706"
|
||||
},
|
||||
"name": "H I (Vorbelegungsrecht Kunstgeschichte)",
|
||||
"type": "room",
|
||||
"uid": "07ccd06f-2f58-52ce-bcdd-2341f79b5893"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "exercise"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 5
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,297 @@
|
||||
{
|
||||
"1": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "f50aab9a-ce14-57e2-a3f1-e0d2da600bb7",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "797371"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:08:50.850Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Seminar",
|
||||
"dates": [
|
||||
"2059-04-14T12:00:00+02:00",
|
||||
"2059-04-21T12:00:00+02:00",
|
||||
"2059-04-28T12:00:00+02:00",
|
||||
"2059-05-05T12:00:00+02:00",
|
||||
"2059-05-12T12:00:00+02:00",
|
||||
"2059-05-19T12:00:00+02:00",
|
||||
"2059-06-02T12:00:00+02:00",
|
||||
"2059-06-09T12:00:00+02:00",
|
||||
"2059-06-23T12:00:00+02:00",
|
||||
"2059-06-30T12:00:00+02:00",
|
||||
"2059-07-07T12:00:00+02:00",
|
||||
"2059-07-14T12:00:00+02:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "333339"
|
||||
},
|
||||
"name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion",
|
||||
"originalCategory": "Seminar",
|
||||
"type": "academic event",
|
||||
"uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["SH 1.106"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.66836, 50.12927],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.668371140956877, 50.12907297255887],
|
||||
[8.668247759342194, 50.12942717952356],
|
||||
[8.668864667415619, 50.129513151692436],
|
||||
[8.668977320194244, 50.1291692620903],
|
||||
[8.668371140956877, 50.12907297255887]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "7340"
|
||||
},
|
||||
"name": "SH 1.106",
|
||||
"type": "room",
|
||||
"uid": "56e6632a-415a-542f-93a1-69adf34d5d0c"
|
||||
}
|
||||
},
|
||||
{
|
||||
"duration": "PT2H0M0S",
|
||||
"uid": "b572671f-c713-5f1e-ab2b-d0e6b54091a8",
|
||||
"repeatFrequency": "P1W",
|
||||
"identifiers": {
|
||||
"LSF": "770743"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:08:50.848Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Seminar",
|
||||
"dates": [
|
||||
"2059-04-14T12:00:00+02:00",
|
||||
"2059-04-21T12:00:00+02:00",
|
||||
"2059-04-28T12:00:00+02:00",
|
||||
"2059-05-05T12:00:00+02:00",
|
||||
"2059-05-12T12:00:00+02:00",
|
||||
"2059-05-19T12:00:00+02:00",
|
||||
"2059-06-02T12:00:00+02:00",
|
||||
"2059-06-09T12:00:00+02:00",
|
||||
"2059-06-23T12:00:00+02:00",
|
||||
"2059-06-30T12:00:00+02:00",
|
||||
"2059-07-07T12:00:00+02:00",
|
||||
"2059-07-14T12:00:00+02:00"
|
||||
],
|
||||
"event": {
|
||||
"categories": ["seminar"],
|
||||
"identifiers": {
|
||||
"LSF": "333339"
|
||||
},
|
||||
"name": "EW-BA7-quantitativ: Test- und Fragebogenkonstruktion",
|
||||
"originalCategory": "Seminar",
|
||||
"type": "academic event",
|
||||
"uid": "d65576a9-da8a-5c3f-828d-ef8fb749b47e"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["PEG 2G 089", "PC-Pool / Seminar"],
|
||||
"categories": ["computer"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.66919, 50.12834],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.66911545395851, 50.128080835212074],
|
||||
[8.668997436761854, 50.128419574192236],
|
||||
[8.668603152036665, 50.1283851845574],
|
||||
[8.668450266122816, 50.128827089483565],
|
||||
[8.669802099466322, 50.129014510963145],
|
||||
[8.670357316732405, 50.128266540127555],
|
||||
[8.66911545395851, 50.128080835212074]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "6086"
|
||||
},
|
||||
"name": "PEG 2.G 089",
|
||||
"type": "room",
|
||||
"uid": "25dbedd7-0471-536d-8e48-e9d21ccea172"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 2,
|
||||
"key": "seminar"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "computer"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 2,
|
||||
"offset": 0,
|
||||
"total": 2
|
||||
},
|
||||
"stats": {
|
||||
"time": 17
|
||||
}
|
||||
},
|
||||
"0": {
|
||||
"data": [
|
||||
{
|
||||
"duration": "PT1H0M0S",
|
||||
"uid": "c010f7d6-5a32-522a-8316-045e032ea25e",
|
||||
"identifiers": {
|
||||
"LSF": "779352"
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2059-06-03T10:10:13.842Z",
|
||||
"name": "Goethe-Uni QIS / LSF",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Übung",
|
||||
"dates": ["2059-01-19T14:00:00+01:00"],
|
||||
"event": {
|
||||
"categories": ["exercise"],
|
||||
"identifiers": {
|
||||
"LSF": "336024"
|
||||
},
|
||||
"name": "UNIcert (Test)",
|
||||
"originalCategory": "Übung",
|
||||
"type": "academic event",
|
||||
"uid": "2ae9f707-c9d3-5bc6-bfbc-734dbd148336"
|
||||
},
|
||||
"type": "date series",
|
||||
"inPlace": {
|
||||
"alternateNames": ["H I", "Hörsaal I"],
|
||||
"categories": ["learn", "education"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.64988, 50.11825],
|
||||
"type": "Point"
|
||||
},
|
||||
"polygon": {
|
||||
"coordinates": [
|
||||
[
|
||||
[8.650173693895338, 50.11768192973537],
|
||||
[8.649645298719406, 50.1177214866573],
|
||||
[8.649690896272658, 50.11794334878755],
|
||||
[8.649795502424238, 50.11793646935709],
|
||||
[8.649822324514389, 50.11810845482188],
|
||||
[8.64978477358818, 50.118110174673404],
|
||||
[8.649827688932419, 50.11833375484596],
|
||||
[8.650490194559096, 50.11828559920474],
|
||||
[8.650428503751753, 50.11806029895402],
|
||||
[8.65011468529701, 50.11808265704158],
|
||||
[8.650082498788832, 50.11792615020954],
|
||||
[8.650203198194502, 50.117914111201316],
|
||||
[8.650173693895338, 50.11768192973537]
|
||||
]
|
||||
],
|
||||
"type": "Polygon"
|
||||
}
|
||||
},
|
||||
"identifiers": {
|
||||
"LSF": "706"
|
||||
},
|
||||
"name": "H I (Vorbelegungsrecht Kunstgeschichte)",
|
||||
"type": "room",
|
||||
"uid": "07ccd06f-2f58-52ce-bcdd-2341f79b5893"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "date series"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "exercise"
|
||||
}
|
||||
],
|
||||
"field": "event.categories",
|
||||
"onlyOnType": "date series"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 1,
|
||||
"key": "education"
|
||||
},
|
||||
{
|
||||
"count": 1,
|
||||
"key": "learn"
|
||||
}
|
||||
],
|
||||
"field": "inPlace.categories",
|
||||
"onlyOnType": "date series"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
129
frontend/app/cypress/fixtures/search/types/dish/dish-1.json
Normal file
129
frontend/app/cypress/fixtures/search/types/dish/dish-1.json
Normal file
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"2022-06-08T18:56:17.052Z": {
|
||||
"data": [
|
||||
{
|
||||
"offers": [
|
||||
{
|
||||
"availability": "in stock",
|
||||
"availabilityRange": {
|
||||
"gte": "2022-06-08T06:30:00.000Z",
|
||||
"lte": "2022-06-08T20:00:00.000Z"
|
||||
},
|
||||
"inPlace": {
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"alternateNames": ["Alfredo Anbau Casino"],
|
||||
"categories": ["cafe"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666987121105194, 50.12725203226799],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"name": "Alfredo Anbau Casino",
|
||||
"openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"type": "room",
|
||||
"uid": "86464b64-da1e-5578-a5c4-eec23457f596"
|
||||
},
|
||||
"prices": {
|
||||
"default": 4.4,
|
||||
"employee": 1.1,
|
||||
"guest": 2.2,
|
||||
"student": 3.3
|
||||
},
|
||||
"provider": {
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "organization",
|
||||
"uid": "b7b50ecd-2c33-5a62-adb0-2a7c6c0ab04c"
|
||||
}
|
||||
}
|
||||
],
|
||||
"uid": "d8a0b68b-4bfc-5780-9d33-a29b2ac0fae2",
|
||||
"nutrition": {
|
||||
"calories": 863,
|
||||
"carbohydrateContent": 103.5,
|
||||
"fatContent": 39,
|
||||
"proteinContent": 33.1,
|
||||
"saltContent": 4.1,
|
||||
"saturatedFatContent": 3.1,
|
||||
"sugarContent": 11.8
|
||||
},
|
||||
"additives": [
|
||||
"preserved (2)",
|
||||
"with antioxidants (3)",
|
||||
"gluten (A)",
|
||||
"milk (G)",
|
||||
"celery (I)",
|
||||
"sulphur dioxide / sulphite (L)"
|
||||
],
|
||||
"translations": {
|
||||
"de": {
|
||||
"additives": [
|
||||
"konserviert (2)",
|
||||
"mit Antioxidationsmittel (3)",
|
||||
"Glutenhaltige Getreide (A)",
|
||||
"Milch u. Milcherzeugnisse (G)",
|
||||
"Sellerie u. Sellerieerzeugnisse (I)",
|
||||
"Schwefeldioxid / Sulfit (L)"
|
||||
],
|
||||
"description": "Pizza Antipasti (2,3,A,G,I,L,A1)",
|
||||
"name": "Pizza Antipasti"
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T18:45:04.736Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Antipasti pizza",
|
||||
"description": "Antipasti pizza (2,3,A,G,I,L,A1)",
|
||||
"categories": ["main dish"],
|
||||
"type": "dish"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "dish"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "main dish"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "dish"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "cafe"
|
||||
}
|
||||
],
|
||||
"field": "offers.inPlace.categories",
|
||||
"onlyOnType": "dish"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
369
frontend/app/cypress/fixtures/search/types/dish/dish-2.json
Normal file
369
frontend/app/cypress/fixtures/search/types/dish/dish-2.json
Normal file
@@ -0,0 +1,369 @@
|
||||
{
|
||||
"2022-06-08T18:56:17.052Z": {
|
||||
"data": [
|
||||
{
|
||||
"offers": [
|
||||
{
|
||||
"availability": "in stock",
|
||||
"availabilityRange": {
|
||||
"gte": "2022-06-08T06:30:00.000Z",
|
||||
"lte": "2022-06-08T20:00:00.000Z"
|
||||
},
|
||||
"inPlace": {
|
||||
"address": {
|
||||
"addressCountry": "Deutschland",
|
||||
"addressLocality": "Frankfurt am Main",
|
||||
"addressRegion": "Hessen",
|
||||
"postalCode": "60323",
|
||||
"streetAddress": "Kaffeebar Alfredo/Cocktailbar Theodor-W.-Adorno-Platz 2"
|
||||
},
|
||||
"alternateNames": ["Alfredo Anbau Casino"],
|
||||
"categories": ["cafe"],
|
||||
"geo": {
|
||||
"point": {
|
||||
"coordinates": [8.666987121105194, 50.12725203226799],
|
||||
"type": "Point"
|
||||
}
|
||||
},
|
||||
"name": "Alfredo Anbau Casino",
|
||||
"openingHours": "Mo-Fr 08:30-22:00; Sa-Su off; 2022 Feb 21 - 2022 Apr 08 Mo-Fr 10:00-21:00; 2022 Feb 21 - 2022 Apr 08 Sa-Su off",
|
||||
"type": "room",
|
||||
"uid": "86464b64-da1e-5578-a5c4-eec23457f596"
|
||||
},
|
||||
"prices": {
|
||||
"default": 4.4,
|
||||
"employee": 1.1,
|
||||
"guest": 2.2,
|
||||
"student": 3.3
|
||||
},
|
||||
"provider": {
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "organization",
|
||||
"uid": "b7b50ecd-2c33-5a62-adb0-2a7c6c0ab04c"
|
||||
}
|
||||
}
|
||||
],
|
||||
"uid": "d8a0b68b-4bfc-5780-9d33-a29b2ac0fae2",
|
||||
"nutrition": {
|
||||
"calories": 863,
|
||||
"carbohydrateContent": 103.5,
|
||||
"fatContent": 39,
|
||||
"proteinContent": 33.1,
|
||||
"saltContent": 4.1,
|
||||
"saturatedFatContent": 3.1,
|
||||
"sugarContent": 11.8
|
||||
},
|
||||
"additives": [
|
||||
"preserved (2)",
|
||||
"with antioxidants (3)",
|
||||
"gluten (A)",
|
||||
"milk (G)",
|
||||
"celery (I)",
|
||||
"sulphur dioxide / sulphite (L)"
|
||||
],
|
||||
"translations": {
|
||||
"de": {
|
||||
"additives": [
|
||||
"konserviert (2)",
|
||||
"mit Antioxidationsmittel (3)",
|
||||
"Glutenhaltige Getreide (A)",
|
||||
"Milch u. Milcherzeugnisse (G)",
|
||||
"Sellerie u. Sellerieerzeugnisse (I)",
|
||||
"Schwefeldioxid / Sulfit (L)"
|
||||
],
|
||||
"description": "Pizza Antipasti (2,3,A,G,I,L,A1)",
|
||||
"name": "Pizza Antipasti"
|
||||
}
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T18:45:04.736Z",
|
||||
"name": "Studentenwerk Frankfurt am Main",
|
||||
"type": "remote"
|
||||
},
|
||||
"name": "Antipasti pizza",
|
||||
"description": "Antipasti pizza (2,3,A,G,I,L,A1)",
|
||||
"categories": ["main dish"],
|
||||
"type": "dish"
|
||||
},
|
||||
{
|
||||
"type": "dish",
|
||||
"name": "Pizza mit Geflügelsalami und Champignons",
|
||||
"categories": ["main dish"],
|
||||
"characteristics": [],
|
||||
"additives": [
|
||||
"konserviert",
|
||||
"Antioxidationsmittel",
|
||||
"Farbstoff",
|
||||
"Weizen",
|
||||
"Milch(Laktose; Milcheiweiß)",
|
||||
"Nitritpökelsalz",
|
||||
"Hefe"
|
||||
],
|
||||
"offers": [
|
||||
{
|
||||
"availability": "in stock",
|
||||
"availabilityRange": {
|
||||
"gte": "2017-01-30T00:00:00.000Z",
|
||||
"lte": "2017-01-30T23:59:59.999Z"
|
||||
},
|
||||
"prices": {
|
||||
"default": 4.85,
|
||||
"student": 2.85,
|
||||
"employee": 3.85,
|
||||
"guest": 4.85
|
||||
},
|
||||
"provider": {
|
||||
"name": "Studentenwerk",
|
||||
"type": "organization",
|
||||
"uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634"
|
||||
},
|
||||
"inPlace": {
|
||||
"geo": {
|
||||
"point": {
|
||||
"type": "Point",
|
||||
"coordinates": [13.32612, 52.50978]
|
||||
}
|
||||
},
|
||||
"type": "building",
|
||||
"categories": ["restaurant"],
|
||||
"openingHours": "Mo-Fr 11:00-14:30",
|
||||
"name": "TU-Mensa",
|
||||
"alternateNames": ["MensaHardenberg"],
|
||||
"uid": "72fbc8a3-ebd1-58f9-9526-ad65cba2e402",
|
||||
"address": {
|
||||
"addressCountry": "Germany",
|
||||
"addressLocality": "Berlin",
|
||||
"addressRegion": "Berlin",
|
||||
"postalCode": "10623",
|
||||
"streetAddress": "Hardenbergstraße 34"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"uid": "c9f32915-8ed5-5960-b850-3f7375a89922",
|
||||
"origin": {
|
||||
"indexed": "2018-09-11T12:30:00Z",
|
||||
"name": "Dummy",
|
||||
"type": "remote"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "dish",
|
||||
"name": "Sahne-Bärlauchsauce",
|
||||
"description": "Nudelauswahl",
|
||||
"categories": ["main dish"],
|
||||
"offers": [
|
||||
{
|
||||
"prices": {
|
||||
"default": 3.45,
|
||||
"student": 2.45,
|
||||
"employee": 3.45
|
||||
},
|
||||
"provider": {
|
||||
"name": "Studentenwerk",
|
||||
"type": "organization",
|
||||
"uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634"
|
||||
},
|
||||
"availability": "in stock",
|
||||
"availabilityRange": {
|
||||
"gte": "2017-01-30T00:00:00.000Z",
|
||||
"lte": "2017-01-30T23:59:59.999Z"
|
||||
},
|
||||
"inPlace": {
|
||||
"geo": {
|
||||
"point": {
|
||||
"type": "Point",
|
||||
"coordinates": [13.32612, 52.50978]
|
||||
}
|
||||
},
|
||||
"type": "building",
|
||||
"categories": ["restaurant"],
|
||||
"openingHours": "Mo-Fr 11:00-14:30",
|
||||
"name": "TU-Mensa",
|
||||
"alternateNames": ["MensaHardenberg"],
|
||||
"uid": "072db1e5-e479-5040-88e0-4a98d731e443",
|
||||
"address": {
|
||||
"addressCountry": "Germany",
|
||||
"addressLocality": "Berlin",
|
||||
"addressRegion": "Berlin",
|
||||
"postalCode": "10623",
|
||||
"streetAddress": "Hardenbergstraße 34"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"characteristics": [
|
||||
{
|
||||
"name": "bad"
|
||||
},
|
||||
{
|
||||
"name": "vegetarian",
|
||||
"image": "https://backend/res/img/characteristic_small_vegetarian.png"
|
||||
}
|
||||
],
|
||||
"additives": ["Weizen", "Milch(Laktose; Milcheiweiß)"],
|
||||
"uid": "3222631f-82b3-5faf-a8e8-9c10719cc95b",
|
||||
"origin": {
|
||||
"indexed": "2018-09-11T12:30:00Z",
|
||||
"name": "Dummy",
|
||||
"type": "remote"
|
||||
}
|
||||
},
|
||||
{
|
||||
"additives": [
|
||||
"1 = mit Farbstoff",
|
||||
"2 = konserviert",
|
||||
"3 = mit Antioxidationsmittel",
|
||||
"9 = mit Süßungsmittel",
|
||||
"A = Glutenhaltige Getreide",
|
||||
"G = Milch u. Milcherzeugnisse"
|
||||
],
|
||||
"offers": [
|
||||
{
|
||||
"availability": "in stock",
|
||||
"availabilityRange": {
|
||||
"gte": "2017-03-27T00:00:00.000Z",
|
||||
"lte": "2017-03-27T23:59:59.000Z"
|
||||
},
|
||||
"inPlace": {
|
||||
"type": "room",
|
||||
"name": "Cafeteria LEVEL",
|
||||
"categories": ["cafe"],
|
||||
"uid": "e5492c9c-064e-547c-8633-c8fc8955cfcf",
|
||||
"alternateNames": ["Cafeteria LEVEL"],
|
||||
"openingHours": "Mo-Fr 08:30-17:00",
|
||||
"geo": {
|
||||
"point": {
|
||||
"type": "Point",
|
||||
"coordinates": [8.6285375, 50.1743717]
|
||||
}
|
||||
}
|
||||
},
|
||||
"prices": {
|
||||
"default": 6.5,
|
||||
"student": 4.9,
|
||||
"employee": 6.5
|
||||
},
|
||||
"provider": {
|
||||
"name": "Studentenwerk",
|
||||
"type": "organization",
|
||||
"uid": "3b9b3df6-3a7a-58cc-922f-c7335c002634"
|
||||
}
|
||||
}
|
||||
],
|
||||
"categories": ["main dish"],
|
||||
"characteristics": [
|
||||
{
|
||||
"name": "Rind",
|
||||
"image": "https://backend/res/img/characteristic_small_rind.png"
|
||||
}
|
||||
],
|
||||
"description": "Salsa Burger (1,2,3,9,A,G)",
|
||||
"name": "Salsa Burger",
|
||||
"dishAddOns": [
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"name": "Vegan",
|
||||
"image": "https://backend/res/img/characteristic_small_vegan.png"
|
||||
}
|
||||
],
|
||||
"description": "Pommes frites",
|
||||
"type": "dish",
|
||||
"uid": "db0caac1-062c-5333-9fcb-cfaf0ff7d799",
|
||||
"nutrition": {
|
||||
"calories": 106,
|
||||
"fatContent": 5.4,
|
||||
"saturatedFatContent": 1.8,
|
||||
"carbohydrateContent": 6.8,
|
||||
"sugarContent": 6.1,
|
||||
"proteinContent": 6.9,
|
||||
"saltContent": 3.7
|
||||
},
|
||||
"additives": ["3 = mit Antioxidationsmittel", "5 = geschwefelt"],
|
||||
"name": "Pommes frites",
|
||||
"categories": ["side dish"]
|
||||
},
|
||||
{
|
||||
"characteristics": [
|
||||
{
|
||||
"name": "Vegan",
|
||||
"image": "https://backend/res/img/characteristic_small_vegan.png"
|
||||
}
|
||||
],
|
||||
"description": "Glasierte Karotten",
|
||||
"type": "dish",
|
||||
"uid": "f702fd43-1551-53b2-b35a-b5916e1cf9a1",
|
||||
"nutrition": {
|
||||
"calories": 106,
|
||||
"fatContent": 5.4,
|
||||
"saturatedFatContent": 1.8,
|
||||
"carbohydrateContent": 6.8,
|
||||
"sugarContent": 6.1,
|
||||
"proteinContent": 6.9,
|
||||
"saltContent": 3.7
|
||||
},
|
||||
"additives": ["F = Soja u. Sojaerzeugnisse"],
|
||||
"name": "Glasierte Karotten",
|
||||
"categories": ["side dish", "salad"]
|
||||
}
|
||||
],
|
||||
"type": "dish",
|
||||
"uid": "1c99689c-c6ec-551f-8ad8-f13c5fa812c2",
|
||||
"nutrition": {
|
||||
"calories": 600,
|
||||
"fatContent": 30.5,
|
||||
"saturatedFatContent": 9.9,
|
||||
"carbohydrateContent": 42.2,
|
||||
"sugarContent": 5.7,
|
||||
"proteinContent": 38.6,
|
||||
"saltContent": 3.5
|
||||
},
|
||||
"origin": {
|
||||
"indexed": "2018-09-11T12:30:00Z",
|
||||
"name": "Dummy",
|
||||
"type": "remote"
|
||||
}
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "dish"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "main dish"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "dish"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 10,
|
||||
"key": "cafe"
|
||||
}
|
||||
],
|
||||
"field": "offers.inPlace.categories",
|
||||
"onlyOnType": "dish"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 1,
|
||||
"offset": 0,
|
||||
"total": 1
|
||||
},
|
||||
"stats": {
|
||||
"time": 8
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"datePublished": "2022-06-07T09:42:00.000Z",
|
||||
"uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93",
|
||||
"messageBody": "DE for Students and Employees",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.640Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "DE for Students and Employees",
|
||||
"image": "https://robohash.org/de_for_students_and_employees?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["students", "employees"],
|
||||
"inLanguage": "de",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273"
|
||||
},
|
||||
{
|
||||
"datePublished": "2022-06-03T06:45:00.000Z",
|
||||
"uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838",
|
||||
"messageBody": "DE for Students",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.645Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "DE for Students",
|
||||
"image": "https://robohash.org/de_for_students?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["students"],
|
||||
"inLanguage": "de",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258"
|
||||
},
|
||||
{
|
||||
"datePublished": "2022-06-03T06:45:00.000Z",
|
||||
"uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838",
|
||||
"messageBody": "DE for Employees",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.645Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "DE for Employees",
|
||||
"image": "https://robohash.org/de_for_employees?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["employees"],
|
||||
"inLanguage": "de",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258"
|
||||
},
|
||||
{
|
||||
"datePublished": "2022-06-07T09:42:00.000Z",
|
||||
"uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93",
|
||||
"messageBody": "EN for Students and Employees",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.640Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "EN for Students and Employees",
|
||||
"image": "https://robohash.org/en_for_students_and_employees?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["students", "employees"],
|
||||
"inLanguage": "en",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273"
|
||||
},
|
||||
{
|
||||
"datePublished": "2022-06-03T06:45:00.000Z",
|
||||
"uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838",
|
||||
"messageBody": "EN for Students",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.645Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "EN for Students",
|
||||
"image": "https://robohash.org/en_for_students?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["students"],
|
||||
"inLanguage": "en",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258"
|
||||
},
|
||||
{
|
||||
"datePublished": "2022-06-03T06:45:00.000Z",
|
||||
"uid": "5de64e1a-e0d1-5a18-bdb9-f31af54ec838",
|
||||
"messageBody": "EN for Employees",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.645Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "EN for Employees",
|
||||
"image": "https://robohash.org/en_for_employees?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["employees"],
|
||||
"inLanguage": "en",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59258"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 85,
|
||||
"key": "message"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 85,
|
||||
"key": "news"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "message"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 10,
|
||||
"offset": 0,
|
||||
"total": 85
|
||||
},
|
||||
"stats": {
|
||||
"time": 2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"datePublished": "2022-06-07T09:42:00.000Z",
|
||||
"uid": "c90c7d30-410f-5aea-a67b-ea1f98929b93",
|
||||
"messageBody": "DE for Students and Employees",
|
||||
"origin": {
|
||||
"indexed": "2022-06-08T19:30:08.640Z",
|
||||
"name": "Goethe-Uni Online",
|
||||
"type": "remote",
|
||||
"url": "https://aktuelles.uni-frankfurt.de/feed"
|
||||
},
|
||||
"name": "DE for Students and Employees",
|
||||
"image": "https://robohash.org/de_for_students_and_employees?size=264x183&set=set4&bgset=bg1",
|
||||
"audiences": ["students", "employees"],
|
||||
"inLanguage": "de",
|
||||
"categories": ["news"],
|
||||
"type": "message",
|
||||
"sameAs": "https://aktuelles.uni-frankfurt.de/?p=59273"
|
||||
}
|
||||
],
|
||||
"facets": [
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 85,
|
||||
"key": "message"
|
||||
}
|
||||
],
|
||||
"field": "type"
|
||||
},
|
||||
{
|
||||
"buckets": [
|
||||
{
|
||||
"count": 85,
|
||||
"key": "news"
|
||||
}
|
||||
],
|
||||
"field": "categories",
|
||||
"onlyOnType": "message"
|
||||
}
|
||||
],
|
||||
"pagination": {
|
||||
"count": 10,
|
||||
"offset": 0,
|
||||
"total": 85
|
||||
},
|
||||
"stats": {
|
||||
"time": 2
|
||||
}
|
||||
}
|
||||
28
frontend/app/cypress/integration/app.spec.ts
Normal file
28
frontend/app/cypress/integration/app.spec.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
describe('App', () => {
|
||||
it('should have a proper title', () => {
|
||||
cy.visit('/');
|
||||
|
||||
cy.title().should('equal', 'StApps');
|
||||
});
|
||||
|
||||
it('should have a proper working navigation', () => {
|
||||
cy.visit('/');
|
||||
|
||||
cy.contains('Einstellungen').click();
|
||||
cy.get('ion-title').contains('Einstellungen');
|
||||
});
|
||||
});
|
||||
37
frontend/app/cypress/integration/assessments.spec.ts
Normal file
37
frontend/app/cypress/integration/assessments.spec.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('assessments', function () {
|
||||
/*it('should have default back navigation', function () {
|
||||
// TODO: Implement this
|
||||
cy.visit(
|
||||
'assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock',
|
||||
);
|
||||
cy.get('ion-back-button').click();
|
||||
});*/
|
||||
|
||||
it('should always have a path', function () {
|
||||
cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock');
|
||||
|
||||
cy.get('stapps-data-path').should('contain', 'Basismodule').should('contain', 'Modellierung');
|
||||
});
|
||||
|
||||
it('should have a collapsed path', function () {
|
||||
cy.visit('/assessments/detail/02f065a6-6c02-58ab-97d9-a3febdbc91a1?token=mock');
|
||||
|
||||
cy.get('.breadcrumb-collapsed').click();
|
||||
cy.get('ion-breadcrumb').should('have.length', 3);
|
||||
});
|
||||
});
|
||||
57
frontend/app/cypress/integration/canteen.spec.ts
Normal file
57
frontend/app/cypress/integration/canteen.spec.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('canteen', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/canteen/canteen-1.json',
|
||||
}).as('search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/dish/dish-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should not utilize the default price', function () {
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
cy.contains('4,40 €').should('not.exist');
|
||||
});
|
||||
|
||||
it('should have a student price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Studierende').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
cy.contains('3,30 €').should('exist');
|
||||
});
|
||||
|
||||
it('should have an employee price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Angestellte').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
cy.contains('1,10 €').should('exist');
|
||||
});
|
||||
|
||||
it('should have a guest price', function () {
|
||||
cy.visit('/settings');
|
||||
cy.contains('stapps-settings-item', 'Gruppe').find('ion-select').should('be.visible').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Gäste').click();
|
||||
cy.wait(2000);
|
||||
cy.visit('/data-detail/86464b64-da1e-5578-a5c4-eec23457f596');
|
||||
cy.contains('2,20 €').should('exist');
|
||||
});
|
||||
});
|
||||
27
frontend/app/cypress/integration/catalog.spec.ts
Normal file
27
frontend/app/cypress/integration/catalog.spec.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
describe('catalog', function () {
|
||||
it('should have path', function () {
|
||||
cy.visit('/data-detail/ae3cf884-4dc4-526b-9213-6850135591ab');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/catalog/catalog-1.json',
|
||||
});
|
||||
|
||||
cy.get('stapps-data-path').within(() => {
|
||||
cy.get('ion-breadcrumb').first().should('contain', 'FB 1 - Rechtswissenschaft');
|
||||
cy.get('ion-breadcrumb').last().should('contain', 'Studium der Pflichtfächer (1. bis 5. Semester)');
|
||||
});
|
||||
});
|
||||
});
|
||||
70
frontend/app/cypress/integration/context-menu.spec.ts
Normal file
70
frontend/app/cypress/integration/context-menu.spec.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('context menu', function () {
|
||||
beforeEach(function () {
|
||||
cy.visit('/search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/test.json',
|
||||
}).as('search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/multi-result.json',
|
||||
});
|
||||
cy.get('ion-searchbar').type('test');
|
||||
cy.wait('@search');
|
||||
cy.get('ion-searchbar > ion-menu-button').click();
|
||||
});
|
||||
|
||||
it('should sort', function () {
|
||||
cy.get('stapps-context').within(() => {
|
||||
cy.contains('ion-item', 'Name').click();
|
||||
cy.wait('@search');
|
||||
});
|
||||
});
|
||||
|
||||
it('should filter', function () {
|
||||
cy.get('stapps-context').within(() => {
|
||||
cy.contains('ion-item', '(27) Akademische Veranstaltung').click();
|
||||
cy.wait('@search');
|
||||
});
|
||||
});
|
||||
|
||||
it('should have a working delete button', function () {
|
||||
cy.get('stapps-context').within(() => {
|
||||
cy.contains('ion-item', '(27) Akademische Veranstaltung').click();
|
||||
|
||||
cy.get('.checkbox-checked').should('have.length', 1);
|
||||
cy.contains('ion-list-header', 'Filter').find('ion-button').click();
|
||||
cy.wait('@search');
|
||||
cy.get('.checkbox-checked').should('have.length', 0);
|
||||
});
|
||||
});
|
||||
|
||||
it('should truncate categories', function () {
|
||||
cy.get('stapps-context').within(() => {
|
||||
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('not.exist');
|
||||
cy.get('.context-filter > ion-button').click();
|
||||
cy.contains('ion-item', '(4) Universitätsveranstaltung').should('exist');
|
||||
});
|
||||
});
|
||||
|
||||
it('should truncate long category items', function () {
|
||||
cy.contains('ion-list', 'Kategorien | Akademische Veranstaltung').within(() => {
|
||||
cy.contains('ion-item', '(1) Tutorium').should('not.exist');
|
||||
cy.get('div > ion-button').click();
|
||||
cy.contains('ion-item', '(1) Tutorium').should('exist');
|
||||
});
|
||||
});
|
||||
});
|
||||
182
frontend/app/cypress/integration/dashboard.spec.ts
Normal file
182
frontend/app/cypress/integration/dashboard.spec.ts
Normal file
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
//import {ScheduleProvider} from '../../src/app/modules/calendar/schedule.provider';
|
||||
|
||||
describe('dashboard', async function () {
|
||||
describe('schedule section', function () {
|
||||
it('should lead to the schedule', function () {
|
||||
cy.visit('/overview');
|
||||
cy.get('.schedule').contains('a', 'Stundenplan').click();
|
||||
cy.url().should('include', '/schedule/recurring');
|
||||
|
||||
cy.visit('/overview');
|
||||
cy.get('.schedule').contains('a', 'Kein Eintrag gefunden').click();
|
||||
cy.url().should('include', '/schedule/recurring');
|
||||
});
|
||||
|
||||
// TODO: Reenable and stabilize tests
|
||||
//it('should display the next unit', function () {
|
||||
// let angular: any;
|
||||
// cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
// fixture: 'search/types/date-series/date-series-1.json',
|
||||
// }).as('search');
|
||||
// cy.visit('/overview');
|
||||
// cy.get('.schedule-item-button').should('exist');
|
||||
// cy.window()
|
||||
// .then(win => (angular = (win as any).ng))
|
||||
// .then(() =>
|
||||
// cy.get('app-dashboard').then($dashboard => {
|
||||
// const appComponent = angular.getComponent($dashboard[0]);
|
||||
// const scheduleProvider =
|
||||
// appComponent.scheduleProvider as ScheduleProvider;
|
||||
|
||||
// scheduleProvider.restore(['abc']);
|
||||
// }),
|
||||
// );
|
||||
// cy.wait('@search');
|
||||
// cy.visit('/overview');
|
||||
// cy.get('.schedule-item-button').should('contain', 'UNIcert (Test)');
|
||||
//});
|
||||
});
|
||||
|
||||
describe('mensa section', function () {
|
||||
it('should have info when nothing is added', function () {
|
||||
cy.visit('/overview');
|
||||
|
||||
cy.get('stapps-mensa-section').within(() => {
|
||||
cy.get('swiper').should('not.exist');
|
||||
cy.get('.nothing-selected > ion-label > a').should('have.text', 'Übersicht der Mensen');
|
||||
});
|
||||
});
|
||||
|
||||
it('should add a mensa', function () {
|
||||
cy.clock(new Date('2022-06-08'), ['Date']);
|
||||
cy.visit('/overview');
|
||||
cy.get('stapps-mensa-section').find('.nothing-selected > ion-label > a').click();
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/canteen/canteen-search-result.json',
|
||||
});
|
||||
cy.get('stapps-favorite-button').first().click();
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/dish/dish-2.json',
|
||||
});
|
||||
cy.get('ion-back-button').click();
|
||||
cy.get('stapps-mensa-section').find('simple-swiper > *').should('have.length.greaterThan', 1);
|
||||
});
|
||||
});
|
||||
|
||||
describe('news section', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/message/message-1.json',
|
||||
}).as('search');
|
||||
});
|
||||
|
||||
// TODO: Cypress has no real way of setting the presence of a pointing device,
|
||||
// which means the behavior is undefined and depends on the testing device
|
||||
// it('should have desktop navigation buttons', function () {
|
||||
// cy.visit('/overview');
|
||||
//
|
||||
// cy.get('stapps-news-section').within(function () {
|
||||
// cy.get('.swiper-button').should('not.have.css', 'display: none');
|
||||
// });
|
||||
// });
|
||||
|
||||
// it('should not have desktop navigation buttons on mobile', function () {
|
||||
// cy.visit('/overview');
|
||||
//
|
||||
// cy.get('stapps-news-section').within(function () {
|
||||
// cy.get('.swiper-button').should('have.css', 'display: none');
|
||||
// });
|
||||
// });
|
||||
|
||||
it('should have working desktop navigation', function () {
|
||||
cy.visit('/overview');
|
||||
|
||||
cy.get('stapps-news-section').within(function () {
|
||||
cy.get('simple-swiper > *').eq(0).should('be.visible');
|
||||
|
||||
// TODO: see tests above, button will be visible or invisible
|
||||
// depending on the testing device
|
||||
cy.get('.swiper-button > ion-button').eq(1).click({scrollBehavior: false, force: true});
|
||||
|
||||
cy.get('simple-swiper > *').eq(0).should('not.be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
it('should have a link to the news page', function () {
|
||||
cy.visit('/overview');
|
||||
cy.wait('@search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/message/single-message.json',
|
||||
}).as('search');
|
||||
|
||||
cy.get('stapps-news-section').contains('ion-item', 'Mehr Nachrichten').click();
|
||||
cy.url().should('include', '/news');
|
||||
});
|
||||
});
|
||||
|
||||
// TODO: Reenable tests after update of component
|
||||
// describe('navigation section', function () {
|
||||
// it('should have editable dashboard sections', function () {
|
||||
// cy.visit('/overview');
|
||||
|
||||
// const section = 'Vorlesungsv.';
|
||||
|
||||
// cy.get('stapps-navigation-section').within(() => {
|
||||
// cy.get('.card').should('contain.text', section);
|
||||
|
||||
// cy.get('ion-icon[name=edit_square]').click();
|
||||
// });
|
||||
|
||||
// cy.get('stapps-dashboard-edit-modal').within(() => {
|
||||
// cy.contains('ion-item', section).find('ion-toggle').click();
|
||||
|
||||
// cy.contains('ion-button', 'Bestätigen').click();
|
||||
// });
|
||||
|
||||
// cy.get('stapps-navigation-section').within(() => {
|
||||
// cy.get('.card').should('not.contain.text', section);
|
||||
|
||||
// cy.get('ion-icon[name=edit_square]').click({scrollBehavior: false});
|
||||
// });
|
||||
|
||||
// cy.get('stapps-dashboard-edit-modal').within(() => {
|
||||
// cy.contains('ion-item', section).find('ion-toggle').click();
|
||||
|
||||
// cy.contains('ion-button', 'Bestätigen').click();
|
||||
// });
|
||||
|
||||
// cy.get('stapps-navigation-section')
|
||||
// .find('.card')
|
||||
// .should('contain.text', section);
|
||||
// });
|
||||
// });
|
||||
|
||||
describe('search section', function () {
|
||||
it('should go to search', function () {
|
||||
cy.visit('/overview');
|
||||
|
||||
cy.get('ion-searchbar').click({scrollBehavior: 'center'});
|
||||
cy.url().should('eq', Cypress.config().baseUrl + '/search');
|
||||
cy.get('ion-searchbar').should('not.have.value');
|
||||
cy.get('ion-searchbar input.searchbar-input').should('have.focus');
|
||||
|
||||
cy.get('stapps-data-list-item').should('have.length', 0);
|
||||
});
|
||||
});
|
||||
});
|
||||
46
frontend/app/cypress/integration/favorites.spec.ts
Normal file
46
frontend/app/cypress/integration/favorites.spec.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('favorites', function () {
|
||||
it('should add a favorite', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/test.json',
|
||||
}).as('search');
|
||||
|
||||
cy.visit('/search');
|
||||
cy.get('ion-searchbar').type('test');
|
||||
let text!: string;
|
||||
cy.get('stapps-data-list-item')
|
||||
.first()
|
||||
.within(() => {
|
||||
cy.get('.title')
|
||||
.invoke('text')
|
||||
.then(it => {
|
||||
text = it;
|
||||
});
|
||||
cy.get('stapps-favorite-button').click();
|
||||
cy.get('stapps-favorite-button > ion-button > ion-icon')
|
||||
.invoke('attr', 'ng-reflect-fill')
|
||||
.should('eq', 'true');
|
||||
});
|
||||
cy.visit('/favorites');
|
||||
cy.get('stapps-data-list-item').within(() => {
|
||||
cy.get('.title').should('contain', text);
|
||||
cy.get('stapps-favorite-button').click();
|
||||
});
|
||||
cy.get('cdk-virtual-scroll-viewport').should('be.not.visible');
|
||||
cy.get('stapps-data-list').contains('Keine Ergebnisse').should('be.visible');
|
||||
});
|
||||
});
|
||||
33
frontend/app/cypress/integration/feedback.spec.ts
Normal file
33
frontend/app/cypress/integration/feedback.spec.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('feedback', function () {
|
||||
it('should send feedback', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/*').as('feedback');
|
||||
|
||||
cy.visit('/feedback');
|
||||
|
||||
cy.get('input[name=name]').type('test');
|
||||
cy.get('input[name=email]').type('aaa@bbb.com');
|
||||
cy.get('textarea[name=message]').type(Array.from({length: 50}, () => 'a').join(''));
|
||||
|
||||
cy.get('ion-button[type=submit]').should('have.attr', 'disabled');
|
||||
cy.get('ion-checkbox[name=termsAgree]').click();
|
||||
cy.get('ion-button[type=submit]').should('not.have.attr', 'disabled');
|
||||
|
||||
// cy.get('ion-button[type=submit]').click();
|
||||
// cy.wait('@feedback');
|
||||
});
|
||||
});
|
||||
43
frontend/app/cypress/integration/ical.spec.ts
Normal file
43
frontend/app/cypress/integration/ical.spec.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('ical', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/academic-event/event-1.json',
|
||||
}).as('search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/date-series/date-series-for-event-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should export a single event', function () {
|
||||
cy.visit('/search?query=test');
|
||||
cy.wait('@search');
|
||||
cy.contains('ion-chip', 'Termine Auswählen').first().click();
|
||||
|
||||
cy.get('ion-app > ion-modal').within(() => {
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should('have.attr', 'disabled');
|
||||
cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click();
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').should('not.have.attr', 'disabled');
|
||||
cy.get('ion-footer > ion-toolbar > ion-button').click();
|
||||
});
|
||||
|
||||
cy.get('add-event-review-modal').within(() => {
|
||||
cy.get('ion-item-group').should('contain', 'UNIcert (Test)');
|
||||
cy.contains('ion-item-group', /19. Jan. 2059, \d+:00/);
|
||||
});
|
||||
});
|
||||
});
|
||||
42
frontend/app/cypress/integration/news.spec.ts
Normal file
42
frontend/app/cypress/integration/news.spec.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('news', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/message/message-1.json',
|
||||
}).as('search');
|
||||
});
|
||||
|
||||
it('should show all articles by default', function () {
|
||||
cy.visit('/news');
|
||||
cy.get('stapps-news-item').should('have.length', 6);
|
||||
});
|
||||
|
||||
it('should reload on filter change', function () {
|
||||
cy.visit('/news');
|
||||
cy.get('stapps-news-item').should('have.length', 6);
|
||||
cy.get('stapps-news-settings-filter').first().click({force: true});
|
||||
cy.wait('@search');
|
||||
});
|
||||
|
||||
it('should have an external link indicator on detail pages', function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/message/single-message.json',
|
||||
}).as('search');
|
||||
cy.visit('/data-detail/c90c7d30-410f-5aea-a67b-ea1f98929b93');
|
||||
cy.contains('ion-card', 'Ursprünglicher Link').find('ion-icon[name="open_in_browser"]').should('exist');
|
||||
});
|
||||
});
|
||||
114
frontend/app/cypress/integration/schedule.spec.ts
Normal file
114
frontend/app/cypress/integration/schedule.spec.ts
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('schedule', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/types/academic-event/event-1.json',
|
||||
}).as('search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/types/date-series/date-series-for-event-1.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should respect the url', function () {
|
||||
cy.visit('/schedule/calendar/2022-01-19');
|
||||
cy.get('#date-select-button0').should('contain', '19.01.22');
|
||||
});
|
||||
|
||||
it('should navigate a full page', function () {
|
||||
cy.visit('/schedule/calendar/2022-01-19');
|
||||
|
||||
cy.get('.swiper-slide-active').should('contain', 'Mi');
|
||||
|
||||
cy.get('.left-button').click();
|
||||
cy.wait(2000);
|
||||
cy.get('.swiper-slide-active').should('contain', 'So');
|
||||
|
||||
cy.get('.right-button').click();
|
||||
cy.wait(2000);
|
||||
cy.get('.swiper-slide-active').should('contain', 'Mi');
|
||||
|
||||
cy.get('.right-button').click();
|
||||
cy.wait(2000);
|
||||
cy.get('.swiper-slide-active').should('contain', 'Sa');
|
||||
});
|
||||
|
||||
for (const [width, count] of [
|
||||
[760, 3],
|
||||
[770, 3],
|
||||
[1700, 7],
|
||||
]) {
|
||||
const slideMultiplier = 3;
|
||||
it(`should have ${count} slides for ${width}px`, function () {
|
||||
cy.visit('/schedule/calendar/2022-01-59');
|
||||
cy.viewport(width, 550);
|
||||
cy.get('.schedule-wrapper > .infinite-swiper-wrapper')
|
||||
.find('.swiper-slide')
|
||||
.should('have.length', slideMultiplier * count)
|
||||
.first()
|
||||
.invoke('outerWidth')
|
||||
.should('be.gt', 140);
|
||||
});
|
||||
}
|
||||
|
||||
it('should navigate to a specific date', function () {
|
||||
cy.visit('/schedule/calendar/2059-01-19');
|
||||
cy.contains('#date-select-button0', '19.01.59').click();
|
||||
cy.wait(2000);
|
||||
cy.get('button[data-day=1][data-month=1][data-year=2059]', {
|
||||
includeShadowDom: true,
|
||||
}).click();
|
||||
cy.wait(2000);
|
||||
cy.contains('#date-select-button0', '01.01.59').click();
|
||||
});
|
||||
|
||||
// TODO: Reenable and stabilize tests
|
||||
//it('should add events', function () {
|
||||
// cy.visit('/schedule/calendar/2059-01-19');
|
||||
// cy.get('stapps-schedule-card').should('not.exist');
|
||||
|
||||
// cy.get('ion-fab-button').click();
|
||||
// cy.wait(2000);
|
||||
// cy.get('ion-modal').within(() => {
|
||||
// cy.get('ion-searchbar').click().type('test');
|
||||
// cy.contains('ion-item', 'UNIcert (Test)')
|
||||
// .contains('stapps-add-event-action-chip', 'Termine Auswählen')
|
||||
// .click();
|
||||
// cy.wait(2000);
|
||||
// });
|
||||
|
||||
// cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
// fixture: 'search/types/date-series/date-series-1.json',
|
||||
// });
|
||||
|
||||
// cy.get('ion-app > ion-modal').within(() => {
|
||||
// cy.contains('ion-item', /eine Stunde um 19. Jan. 2059, \d+:00/).click();
|
||||
// cy.wait(2000);
|
||||
// cy.contains('ion-button', 'Bestätigen').click();
|
||||
// cy.wait(2000);
|
||||
// });
|
||||
|
||||
// cy.get('ion-modal').within(() => {
|
||||
// cy.contains('ion-item', 'UNIcert (Test)')
|
||||
// .contains('stapps-add-event-action-chip', 'Hinzugefügt')
|
||||
// .should('exist');
|
||||
// cy.contains('ion-button', 'Schließen').click();
|
||||
// cy.wait(2000);
|
||||
// });
|
||||
|
||||
// cy.get('stapps-schedule-card').should('exist');
|
||||
//});
|
||||
});
|
||||
50
frontend/app/cypress/integration/search.spec.ts
Normal file
50
frontend/app/cypress/integration/search.spec.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
describe('search', function () {
|
||||
beforeEach(function () {
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/test.json',
|
||||
});
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search/multi', {
|
||||
fixture: 'search/multi-result.json',
|
||||
});
|
||||
});
|
||||
|
||||
it('should have search results', function () {
|
||||
cy.visit('/search');
|
||||
cy.get('ion-searchbar').type('test');
|
||||
cy.get('stapps-data-list-item').should('have.length.greaterThan', 1);
|
||||
});
|
||||
|
||||
it('should display an error message when no results are found', function () {
|
||||
cy.visit('/search');
|
||||
cy.intercept('POST', 'https://mobile.server.uni-frankfurt.de/search', {
|
||||
fixture: 'search/no-results.json',
|
||||
});
|
||||
cy.get('ion-searchbar').type(Array.from({length: 10}, () => 'a').join(''));
|
||||
cy.get('stapps-data-list-item').should('have.length', 0);
|
||||
cy.get('stapps-data-list').contains('Keine Ergebnisse');
|
||||
});
|
||||
|
||||
it('should have a working clear button', function () {
|
||||
cy.visit('/search');
|
||||
cy.get('ion-searchbar').type('test');
|
||||
cy.get('ion-searchbar').should('have.value', 'test');
|
||||
cy.get('stapps-data-list-item').should('have.length.greaterThan', 1);
|
||||
cy.get('.searchbar-clear-button').click();
|
||||
cy.get('ion-searchbar').should('have.value', '');
|
||||
});
|
||||
});
|
||||
32
frontend/app/cypress/integration/settings.spec.ts
Normal file
32
frontend/app/cypress/integration/settings.spec.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
describe('Settings Page', () => {
|
||||
it('should have a proper title', () => {
|
||||
cy.visit('/settings');
|
||||
|
||||
cy.get('ion-title').contains('Einstellungen');
|
||||
});
|
||||
|
||||
it('should change language', () => {
|
||||
cy.visit('/settings');
|
||||
cy.contains('ion-select', 'Deutsch').should('be.visible').click({force: true});
|
||||
cy.get('ion-popover').contains('ion-item', 'English').click();
|
||||
cy.get('ion-popover').should('not.exist');
|
||||
cy.get('ion-title').contains('Settings');
|
||||
cy.contains('ion-select', 'English').click();
|
||||
cy.get('ion-popover').contains('ion-item', 'Deutsch').click();
|
||||
cy.get('ion-title').contains('Einstellungen');
|
||||
});
|
||||
});
|
||||
84
frontend/app/cypress/integration/translations.spec.ts
Normal file
84
frontend/app/cypress/integration/translations.spec.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Something akin to a.b.c a.b.C but never a... or a.AbC
|
||||
*/
|
||||
const probablyBadTranslationPattern = /^\s*([a-z_]+|[A-Z_]+)\.(([a-z_]+|[A-Z_]+)\.)([a-z_]+|[A-Z_]+)$/;
|
||||
|
||||
// TODO: Reenable and stabilize tests
|
||||
//describe('translations', function () {
|
||||
// for (const path of [
|
||||
// 'settings',
|
||||
// 'news',
|
||||
// [
|
||||
// 'search',
|
||||
// () => {
|
||||
// cy.visit('/search');
|
||||
// cy.get('ion-searchbar').type('test');
|
||||
// cy.get('stapps-data-list-item').should('have.length.greaterThan', 1);
|
||||
// },
|
||||
// ],
|
||||
// [
|
||||
// 'context-menu',
|
||||
// () => {
|
||||
// cy.visit('/search');
|
||||
// cy.get('ion-searchbar').type('test');
|
||||
// cy.get('stapps-data-list-item').should('have.length.greaterThan', 1);
|
||||
// cy.get('ion-menu-button[menu=context]').click();
|
||||
// cy.get('stapps-context');
|
||||
// },
|
||||
// ],
|
||||
// 'map',
|
||||
// 'feedback',
|
||||
// 'about',
|
||||
// 'canteen',
|
||||
// 'catalog',
|
||||
// 'schedule',
|
||||
// 'dashboard',
|
||||
// [
|
||||
// 'schedule add modal',
|
||||
// () => {
|
||||
// cy.visit('/schedule');
|
||||
// cy.get('ion-fab').click();
|
||||
// cy.get('ion-modal');
|
||||
// },
|
||||
// ],
|
||||
// 'profile',
|
||||
// 'favorites',
|
||||
// ] as [string, () => void][]) {
|
||||
// const name = Array.isArray(path) ? path[0] : path;
|
||||
// const method = Array.isArray(path) ? path[1] : undefined;
|
||||
//
|
||||
// describe(name, function () {
|
||||
// it('should not contain failed translation paths', function () {
|
||||
// if (method) {
|
||||
// method();
|
||||
// } else {
|
||||
// cy.visit(`/${path}`);
|
||||
// }
|
||||
//
|
||||
// cy.wait(500);
|
||||
//
|
||||
// cy.get('ion-app *').each($element => {
|
||||
// const text = $element.text();
|
||||
// if (text) {
|
||||
// expect(text).not.to.match(probablyBadTranslationPattern);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
// }
|
||||
//});
|
||||
43
frontend/app/cypress/support/commands.ts
Normal file
43
frontend/app/cypress/support/commands.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
// ***********************************************
|
||||
// This example namespace declaration will help
|
||||
// with Intellisense and code completion in your
|
||||
// IDE or Text Editor.
|
||||
// ***********************************************
|
||||
// declare namespace Cypress {
|
||||
// interface Chainable<Subject = any> {
|
||||
// customCommand(param: any): typeof customCommand;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// function customCommand(param: any): void {
|
||||
// console.warn(param);
|
||||
// }
|
||||
//
|
||||
// NOTE: You can use it like so:
|
||||
// Cypress.Commands.add('customCommand', customCommand);
|
||||
//
|
||||
// ***********************************************
|
||||
// This example commands.js shows you how to
|
||||
// create various custom commands and overwrite
|
||||
// existing commands.
|
||||
//
|
||||
// For more comprehensive examples of custom
|
||||
// commands please read more here:
|
||||
// https://on.cypress.io/custom-commands
|
||||
// ***********************************************
|
||||
//
|
||||
//
|
||||
// -- This is a parent command --
|
||||
// Cypress.Commands.add("login", (email, password) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This is a child command --
|
||||
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This is a dual command --
|
||||
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
|
||||
//
|
||||
//
|
||||
// -- This will overwrite an existing command --
|
||||
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
|
||||
68
frontend/app/cypress/support/index.ts
Normal file
68
frontend/app/cypress/support/index.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright (C) 2023 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// When a command from ./commands is ready to use, import with `import './commands'` syntax
|
||||
// import './commands';
|
||||
|
||||
beforeEach(async function () {
|
||||
let databases: string[];
|
||||
if (window.indexedDB.databases) {
|
||||
databases = (await window.indexedDB.databases()).map(it => it.name);
|
||||
console.log('Trying to clear all databases');
|
||||
} else {
|
||||
console.log("Browser doesn't support database enumeration, deleting just ionic storage");
|
||||
databases = ['_ionicstorage'];
|
||||
}
|
||||
for (const database of databases) {
|
||||
if (database) {
|
||||
console.log(`Deleting database ${database}`);
|
||||
await new Promise(resolve => (window.indexedDB.deleteDatabase(database).onsuccess = resolve));
|
||||
console.log(`Deleted database ${database}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Cypress.on('window:before:load', window => {
|
||||
// Fake that user is using its browser in german language
|
||||
Object.defineProperty(window.navigator, 'language', {value: 'de-DE'});
|
||||
Object.defineProperty(window.navigator, 'languages', [{value: 'de-DE'}]);
|
||||
|
||||
// Fail tests on console error
|
||||
cy.stub(window.console, 'error').callsFake(message => {
|
||||
// log out to the terminal
|
||||
cy.now('task', 'error', message);
|
||||
// log to Command Log and fail the test
|
||||
throw new Error(message);
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.on('uncaught:exception', error => {
|
||||
return !error.message.includes('ResizeObserver loop limit exceeded');
|
||||
});
|
||||
8
frontend/app/cypress/tsconfig.json
Normal file
8
frontend/app/cypress/tsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"include": ["**/*.ts"],
|
||||
"compilerOptions": {
|
||||
"sourceMap": false,
|
||||
"types": ["cypress"]
|
||||
}
|
||||
}
|
||||
0
frontend/app/gradle.properties
Normal file
0
frontend/app/gradle.properties
Normal file
46
frontend/app/icons.config.ts
Normal file
46
frontend/app/icons.config.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* Copyright (C) 2022 StApps
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the Free
|
||||
* Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import type {IconConfig} from './scripts/icon-config';
|
||||
|
||||
const config: IconConfig = {
|
||||
inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2',
|
||||
outputPath: 'src/assets/icons.min.woff2',
|
||||
htmlGlob: 'src/**/*.html',
|
||||
scriptGlob: 'src/**/*.ts',
|
||||
additionalIcons: {
|
||||
about: ['copyright', 'campaign', 'policy', 'description', 'text_snippet'],
|
||||
navigation: [
|
||||
'home',
|
||||
'newspaper',
|
||||
'search',
|
||||
'calendar_month',
|
||||
'local_cafe',
|
||||
'local_library',
|
||||
'inventory_2',
|
||||
'map',
|
||||
'grade',
|
||||
'account_circle',
|
||||
'settings',
|
||||
'info',
|
||||
'rate_review',
|
||||
],
|
||||
},
|
||||
codePoints: {
|
||||
ios_share: 'e6b8',
|
||||
fact_check: 'f0c5',
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
8
frontend/app/ionic.config.json
Normal file
8
frontend/app/ionic.config.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "StApps",
|
||||
"integrations": {
|
||||
"cordova": {},
|
||||
"capacitor": {}
|
||||
},
|
||||
"type": "angular"
|
||||
}
|
||||
9
frontend/app/ios/.gitignore
vendored
Normal file
9
frontend/app/ios/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
App/build
|
||||
App/Pods
|
||||
App/Podfile.lock
|
||||
App/App/public
|
||||
DerivedData
|
||||
xcuserdata
|
||||
|
||||
# Cordova plugins for Capacitor
|
||||
capacitor-cordova-ios-plugins
|
||||
412
frontend/app/ios/App/App.xcodeproj/project.pbxproj
Normal file
412
frontend/app/ios/App/App.xcodeproj/project.pbxproj
Normal file
@@ -0,0 +1,412 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 48;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
|
||||
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
|
||||
504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
|
||||
504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
|
||||
504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
|
||||
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
|
||||
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
|
||||
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
|
||||
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
|
||||
504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
|
||||
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = "<group>"; };
|
||||
E2D249FB277CB255005492AC /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
|
||||
FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
504EC3011FED79650016851F /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
504EC2FB1FED79650016851F = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
504EC3061FED79650016851F /* App */,
|
||||
504EC3051FED79650016851F /* Products */,
|
||||
7F8756D8B27F46E3366F6CEA /* Pods */,
|
||||
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
504EC3051FED79650016851F /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
504EC3041FED79650016851F /* App.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
504EC3061FED79650016851F /* App */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E2D249FB277CB255005492AC /* App.entitlements */,
|
||||
50379B222058CBB4000EE86E /* capacitor.config.json */,
|
||||
504EC3071FED79650016851F /* AppDelegate.swift */,
|
||||
504EC30B1FED79650016851F /* Main.storyboard */,
|
||||
504EC30E1FED79650016851F /* Assets.xcassets */,
|
||||
504EC3101FED79650016851F /* LaunchScreen.storyboard */,
|
||||
504EC3131FED79650016851F /* Info.plist */,
|
||||
2FAD9762203C412B000D30F8 /* config.xml */,
|
||||
50B271D01FEDC1A000F3C39B /* public */,
|
||||
);
|
||||
path = App;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
7F8756D8B27F46E3366F6CEA /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */,
|
||||
AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */,
|
||||
);
|
||||
name = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
504EC3031FED79650016851F /* App */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
|
||||
buildPhases = (
|
||||
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */,
|
||||
504EC3001FED79650016851F /* Sources */,
|
||||
504EC3011FED79650016851F /* Frameworks */,
|
||||
504EC3021FED79650016851F /* Resources */,
|
||||
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = App;
|
||||
productName = App;
|
||||
productReference = 504EC3041FED79650016851F /* App.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
504EC2FC1FED79650016851F /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastSwiftUpdateCheck = 0920;
|
||||
LastUpgradeCheck = 0920;
|
||||
TargetAttributes = {
|
||||
504EC3031FED79650016851F = {
|
||||
CreatedOnToolsVersion = 9.2;
|
||||
LastSwiftMigration = 1100;
|
||||
ProvisioningStyle = Automatic;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
|
||||
compatibilityVersion = "Xcode 8.0";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 504EC2FB1FED79650016851F;
|
||||
productRefGroup = 504EC3051FED79650016851F /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
504EC3031FED79650016851F /* App */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
504EC3021FED79650016851F /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
|
||||
50B271D11FEDC1A000F3C39B /* public in Resources */,
|
||||
504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
|
||||
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
|
||||
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
|
||||
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
504EC3001FED79650016851F /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
504EC30B1FED79650016851F /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
504EC30C1FED79650016851F /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
504EC3111FED79650016851F /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
504EC3141FED79650016851F /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
504EC3151FED79650016851F /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
504EC3171FED79650016851F /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = QN788YUV45;
|
||||
INFOPLIST_FILE = App/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = de.anyschool.app;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
504EC3181FED79650016851F /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
DEVELOPMENT_TEAM = QN788YUV45;
|
||||
INFOPLIST_FILE = App/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = de.anyschool.app;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
|
||||
SWIFT_VERSION = 5.0;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
504EC3141FED79650016851F /* Debug */,
|
||||
504EC3151FED79650016851F /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
504EC3171FED79650016851F /* Debug */,
|
||||
504EC3181FED79650016851F /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 504EC2FC1FED79650016851F /* Project object */;
|
||||
}
|
||||
7
frontend/app/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
7
frontend/app/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:App.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
10
frontend/app/ios/App/App.xcworkspace/contents.xcworkspacedata
generated
Normal file
10
frontend/app/ios/App/App.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:App.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Pods/Pods.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user