Skip to content

Commit ca225e7

Browse files
committed
Initial commit
0 parents  commit ca225e7

File tree

154 files changed

+9164
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+9164
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
labels: ["bug"]
4+
body:
5+
- type: textarea
6+
id: describe-the-bug
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
- type: markdown
13+
attributes:
14+
value: |
15+
# The following fields are *optional*
16+
17+
...but may be useful for debugging
18+
- type: textarea
19+
attributes:
20+
label: Steps to reproduce
21+
placeholder: |
22+
1. Go to '...'
23+
2. Click on '....'
24+
3. Scroll down to '....'
25+
4. See error
26+
validations:
27+
required: false
28+
- type: textarea
29+
id: logs
30+
attributes:
31+
label: Logs
32+
description: Logs of the application when running.
33+
placeholder: Logs of the application when running.
34+
render: shell
35+
validations:
36+
required: false
37+
38+
- type: textarea
39+
id: expected-behavior
40+
attributes:
41+
label: Expected behavior
42+
description: A clear and concise description of what you expected to happen.
43+
validations:
44+
required: false
45+
46+
- type: markdown
47+
attributes:
48+
value: |
49+
Development Environment
50+
51+
- type: input
52+
id: env-os
53+
attributes:
54+
label: OS
55+
placeholder: iOS, Web (Chrome) etc...
56+
validations:
57+
required: false
58+
59+
- type: textarea
60+
id: additional-context
61+
attributes:
62+
label: Additional context
63+
description: Add any other context about the problem here.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature Request
2+
description: Suggest an idea for this project
3+
labels: ["enhancement"]
4+
body:
5+
- type: textarea
6+
id: problem-description
7+
attributes:
8+
label: Is your feature request related to a problem? Please describe.
9+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
id: desired-solution
15+
attributes:
16+
label: Describe the solution you'd like
17+
description: A clear and concise description of what you want to happen.
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: alternative-solutions
23+
attributes:
24+
label: Describe alternatives you've considered
25+
description: A clear and concise description of any alternative solutions or features you've considered.
26+
validations:
27+
required: false
28+
29+
- type: textarea
30+
id: additional-context
31+
attributes:
32+
label: Additional context
33+
description: Add any other context or screenshots about the feature request here.
34+
validations:
35+
required: false

.github/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Configuration for welcome - https://github.com/behaviorbot/welcome
2+
# Configuration for new-issue-welcome - https://github.com/behaviorbot/new-issue-welcome
3+
# Comment to be posted to on first time issues
4+
newIssueWelcomeComment: >
5+
Hi! Thanks for opening your first issue here! :smile:
6+
# Configuration for new-pr-welcome - https://github.com/behaviorbot/new-pr-welcome
7+
# Comment to be posted to on PRs from first time contributors in your repository
8+
newPRWelcomeComment: >
9+
Hi! Thanks for opening this pull request! :smile:
10+
# Configuration for first-pr-merge - https://github.com/behaviorbot/first-pr-merge
11+
# Comment to be posted to on pull requests merged by a first time user
12+
firstPRMergeComment: >
13+
Hi! Congrats on merging your first pull request! :tada:
14+
# It is recommended to include as many gifs and emojis as possible!

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
pre-build:
15+
name: Pre-Build
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4

.github/workflows/gh-pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Documentation
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
generate:
7+
runs-on: ubuntu-latest
8+
env:
9+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
14+
# Install dependencies
15+
- name: Install dependencies
16+
run: |
17+
pip install mkdocs-material
18+
19+
# Build documentation
20+
- name: Build documentation
21+
run: |
22+
mkdocs build -d _build
23+
24+
# Publish documentation
25+
- name: Publish documentation
26+
uses: peaceiris/actions-gh-pages@v3
27+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
28+
with:
29+
publish_branch: gh-pages
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: _build
32+
force_orphan: true

.github/workflows/qc.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Quality Control
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
branches:
10+
- main
11+
- master
12+
13+
jobs:
14+
protobuf-check:
15+
name: Protobuf Linting
16+
runs-on: ubuntu-latest
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Install Protoc
22+
uses: arduino/setup-protoc@v3
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
- uses: dart-lang/setup-dart@v1
26+
- name: Activate Dart Protoc
27+
run: dart pub global activate protoc_plugin
28+
- name: Validate protobufs
29+
run: |
30+
protoc --proto_path=protos --dart_out=grpc:client/lib/generated protos/common/*.proto protos/api/*.proto protos/db/*.proto
31+
32+
rust-check:
33+
runs-on: ubuntu-latest
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Install Protoc
39+
uses: arduino/setup-protoc@v3
40+
with:
41+
repo-token: ${{ secrets.GITHUB_TOKEN }}
42+
- uses: actions-rust-lang/setup-rust-toolchain@v1
43+
with:
44+
components: rustfmt, clippy
45+
- name: Format check
46+
run: cargo fmt --check
47+
- name: Clippy
48+
run: cargo clippy --all-targets -- -D warnings
49+
50+
flutter-check:
51+
runs-on: ubuntu-latest
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
steps:
55+
- uses: actions/checkout@v4
56+
- uses: subosito/flutter-action@v2
57+
with:
58+
channel: stable
59+
- run: flutter --version
60+
- name: Get dependencies
61+
working-directory: client
62+
run: flutter pub get
63+
- name: Analyze
64+
working-directory: client
65+
run: flutter analyze
66+
67+
pre-commit:
68+
name: Pre-commit Checks
69+
runs-on: ubuntu-latest
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
steps:
73+
- uses: actions/checkout@v4
74+
- uses: actions/setup-python@v5
75+
with:
76+
python-version: "3.x"
77+
- name: Run pre-commit
78+
uses: pre-commit/action@v3.0.1

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# For references, check https://github.com/github/gitignore
2+
# And use selected language templates for the root ignore
3+
4+
# User Specific Ignore
5+
logs/
6+
tk.db/
7+
8+
# Generated by Cargo
9+
# will have compiled files and executables
10+
debug/
11+
target/
12+
13+
# These are backup files generated by rustfmt
14+
**/*.rs.bk
15+
16+
# MSVC Windows builds of rustc generate these, which store debugging information
17+
*.pdb

.pre-commit-config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
ci:
2+
autofix_commit_msg: "style: auto-fixes from pre-commit.ci hooks"
3+
autofix_prs: true
4+
autoupdate_commit_msg: "chore: pre-commit autoupdate"
5+
autoupdate_schedule: weekly
6+
7+
default_install_hook_types:
8+
- pre-commit
9+
- commit-msg
10+
11+
repos:
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v4.5.0
14+
hooks:
15+
# Whitespace and formatting
16+
- id: trailing-whitespace
17+
- id: check-yaml
18+
- id: end-of-file-fixer
19+
- id: mixed-line-ending
20+
args: ["--fix=lf"]
21+
22+
# File checks
23+
- id: check-added-large-files
24+
args: ["--maxkb=1000"]
25+
- id: check-case-conflict
26+
- id: check-merge-conflict
27+
28+
# Syntax validation
29+
- id: check-yaml
30+
- id: check-json
31+
- id: check-toml
32+
33+
# Security
34+
- id: detect-private-key
35+
36+
# Git
37+
- id: check-symlinks
38+
- id: destroyed-symlinks
39+
- repo: https://github.com/crate-ci/typos
40+
rev: v1.40.0
41+
hooks:
42+
- id: typos
43+
args: []
44+
stages: [pre-commit]
45+
exclude: ^client/(ios|macos|android|windows|linux)/|client/lib/generated/.*\.(pb|pbjson)\.dart$
46+
- id: typos
47+
name: commit-msg-typos
48+
stages: [commit-msg]

0 commit comments

Comments
 (0)