Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Sep 3, 2022
0 parents commit 3c791e6
Show file tree
Hide file tree
Showing 461 changed files with 49,647 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Editor configuration, see https://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
78 changes: 78 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"cypress/tsconfig.json"
],
"createDefaultProgram": true
},
"plugins": [
"unicorn"
],
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:unicorn/recommended"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": [
"Component",
"Page"
]
}
],
"@angular-eslint/component-selector": [
"error",
{
"prefix": "app",
"style": "kebab-case",
"type": "element"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"prefix": "app",
"style": "camelCase",
"type": "attribute"
}
],
"unicorn/no-null": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"allowList": {
"changeDetectorRef": true
}
}
],
"@typescript-eslint/no-floating-promises": [
"error"
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
name: Bug report
about: Create a report to help us improve
title: 'bug: '
labels: ''
assignees: ''
---

# Bug report

**Current behavior:**

<!--
Describe how the bug manifests. Be specific.
-->

**Expected behavior:**

<!--
Describe what the behavior should be.
-->

**Steps to reproduce:**

<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. See error
-->

Steps to reproduce the behavior:

1.

**Platform(s):**

<!--
List the platforms that this bug affects.
-->

- [ ] Android
- [ ] iOS

**Screenshots:**

<!--
If applicable, add screenshots to help explain your problem.
-->

**Additional context:**

<!--
Add any other context about the problem here.
-->
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'feat: '
labels: ''
assignees: ''
---

# Feature request

**Is your feature request related to a problem? Please describe:**

<!--
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
-->

**Describe the solution you'd like:**

<!--
A clear and concise description of what you want to happen.
-->

**Describe alternatives you've considered:**

<!--
A clear and concise description of any alternative solutions or features you've considered.
-->

**Additional context:**

<!--
Add any other context or screenshots about the feature request here.
-->
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/support_question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Support question
about: Question on how to use this project
title: 'support: '
labels: ''
assignees: ''
---

# Support question
159 changes: 159 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
name: CI

on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:

env:
NODE_VERSION: 14
JAVA_VERSION: 8
JAVA_DISTRIBUTION: "adopt"
RUBY_VERSION: 2.7

jobs:
build-web:
name: Build web assets
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Build web assets
run: npm run build -- --prod
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: www
path: www
build-android:
name: Build Android platform
runs-on: macos-latest
needs: [build-web]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: www
path: www
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v2
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Set up Ruby ${{ env.RUBY_VERSION }} and install dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- name: Copy web assets to native platform
run: npx ionic capacitor copy android --no-build
- name: Update native platform
run: npx ionic capacitor update android
- name: Add keystore files
run: |
echo "${{ secrets.KEYSTORE_PROPERTIES_BASE64 }}" | base64 --decode > android/keystore.properties
echo "${{ secrets.DHBW_VS_KEYSTORE_BASE64 }}" | base64 --decode > android/DHBW-VS.keystore
- name: Build native platform
run: bundle exec fastlane android build release:false
build-ios:
name: Build iOS platform
runs-on: macos-latest
needs: [build-web]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: www
path: www
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Set up Ruby ${{ env.RUBY_VERSION }} and install dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true
- name: Copy web assets to native platform
run: npx ionic capacitor copy ios --no-build
- name: Update native platform
run: npx ionic capacitor update ios
- name: Download iOS certificates and provisioning profiles
run: bundle exec fastlane ios sync_certificates type:development
env:
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
- name: Build native platform
run: bundle exec fastlane ios build release:false
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Run ESLint and Prettier
run: npm run lint
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Run unit tests
run: npm run test:ci
e2e:
name: E2E
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install Node.js dependencies
run: npm ci
- name: Run end-to-end tests
run: npm run e2e:ci
- name: Upload artifacts
uses: actions/upload-artifact@v2
if: failure()
with:
name: screenshots
path: cypress/screenshots
Loading

0 comments on commit 3c791e6

Please sign in to comment.