Skip to content

Commit 13973c9

Browse files
committed
chore: initialize configuration files and set up project structure
0 parents  commit 13973c9

File tree

304 files changed

+30268
-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.

304 files changed

+30268
-0
lines changed

.eslintrc.cjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
root: true,
3+
// This tells ESLint to load the config from the package `eslint-config-custom`
4+
extends: ['@haptic/eslint-config/index.js']
5+
};

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: chroxify
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Bug Report
2+
description: Report a bug
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please fill out the sections below to help everyone identify and fix the bug
9+
- type: textarea
10+
id: description
11+
attributes:
12+
label: Describe your issue
13+
placeholder: When I click here this happens
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: steps
18+
attributes:
19+
label: Steps to reproduce
20+
placeholder: |
21+
1. Go to page X
22+
2. Click here
23+
3. Click there
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: What was the expected result?
30+
placeholder: I expected this to happen
31+
- type: textarea
32+
id: screenshots
33+
attributes:
34+
label: Put here any screenshots or videos (optional)
35+
- type: dropdown
36+
id: assign
37+
attributes:
38+
label: "Would you like to work on this issue?"
39+
options:
40+
- "Yes"
41+
- type: markdown
42+
attributes:
43+
value: |
44+
Thanks for reporting this issue! We will get back to you as soon as possible.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: New feature
2+
description: Suggest or request a new feature
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Please fill out the sections below to properly describe the new feature you are suggesting.
9+
- type: textarea
10+
id: description
11+
attributes:
12+
label: Describe the feature
13+
placeholder: A button in the screen X that allows to do Y
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: rationale
18+
attributes:
19+
label: It should be implemented because
20+
placeholder: It will allow to do Y that is needed for Z
21+
- type: textarea
22+
id: context
23+
attributes:
24+
label: Additional context
25+
placeholder: |
26+
Add any other context or screenshots about the feature request here.
27+
- type: dropdown
28+
id: assign
29+
attributes:
30+
label: "Would you like to work on this issue?"
31+
options:
32+
- "Yes"
33+
- type: markdown
34+
attributes:
35+
value: |
36+
Thanks for your suggestion! Let's see together if it can be implemented.

.github/assets/haptic-dark.png

228 KB
Loading

.github/assets/haptic-light.png

241 KB
Loading

.github/assets/icon.svg

Lines changed: 37 additions & 0 deletions
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 'dockerize-on-release'
2+
3+
on:
4+
release:
5+
types: [published]
6+
branches: ['main']
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Check out the repo
16+
uses: actions/checkout@v3
17+
18+
- name: Log in to Docker Hub
19+
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
20+
with:
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_PASSWORD }}
23+
24+
- name: Extract metadata (tags, labels) for Docker
25+
id: meta
26+
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
27+
with:
28+
images: chroxify/haptic-web
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
32+
with:
33+
context: .
34+
file: ./apps/web/Dockerfile
35+
push: true
36+
tags: ${{ steps.meta.outputs.tags }}
37+
labels: ${{ steps.meta.outputs.labels }}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: 'publish'
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
# This workflow will build and publish the app on every release.
8+
jobs:
9+
publish-tauri:
10+
permissions:
11+
contents: write
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
18+
args: '--target aarch64-apple-darwin'
19+
rust_targets: 'aarch64-apple-darwin'
20+
- platform: 'macos-latest' # for Intel based macs.
21+
args: '--target x86_64-apple-darwin'
22+
rust_targets: 'x86_64-apple-darwin'
23+
- platform: 'ubuntu-22.04' # for Linux
24+
args: ''
25+
rust_targets: ''
26+
27+
runs-on: ${{ matrix.platform }}
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: install dependencies (ubuntu only)
33+
if: matrix.platform == 'ubuntu-22.04'
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
37+
38+
- name: setup node
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: lts/*
42+
43+
- name: install pnpm
44+
run: npm install -g pnpm
45+
46+
- name: install Rust stable
47+
uses: dtolnay/rust-toolchain@stable
48+
49+
- name: add Rust targets
50+
if: matrix.rust_targets != ''
51+
run: rustup target add ${{ matrix.rust_targets }}
52+
53+
- name: install frontend dependencies
54+
run: cd apps/desktop && pnpm install
55+
56+
- uses: tauri-apps/tauri-action@v0
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
60+
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
61+
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
62+
APPLE_ID: ${{ secrets.APPLE_ID }}
63+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
64+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
65+
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
66+
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
67+
with:
68+
projectPath: apps/desktop
69+
tagName: ${{ github.event.release.tag_name }}
70+
releaseName: ${{ github.event.release.name }}
71+
releaseBody: ${{ github.event.release.body }}
72+
releaseDraft: false
73+
prerelease: ${{ github.event.release.prerelease }}
74+
args: ${{ matrix.args }}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: 'test-on-pr'
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'apps/desktop/**'
7+
- 'packages/ui/**'
8+
9+
# This workflow will build the app without publishing
10+
jobs:
11+
test-tauri:
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
17+
args: '--target aarch64-apple-darwin'
18+
rust_targets: 'aarch64-apple-darwin'
19+
- platform: 'macos-latest' # for Intel based macs.
20+
args: '--target x86_64-apple-darwin'
21+
rust_targets: 'x86_64-apple-darwin'
22+
- platform: 'ubuntu-22.04' # for Linux
23+
args: ''
24+
rust_targets: ''
25+
26+
runs-on: ${{ matrix.platform }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: install dependencies (ubuntu only)
31+
if: matrix.platform == 'ubuntu-22.04'
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
35+
36+
- name: setup node
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: lts/*
40+
41+
- name: install pnpm
42+
run: npm install -g pnpm
43+
44+
- name: install Rust stable
45+
uses: dtolnay/rust-toolchain@stable
46+
47+
- name: add Rust targets
48+
if: matrix.rust_targets != ''
49+
run: rustup target add ${{ matrix.rust_targets }}
50+
51+
- name: install frontend dependencies
52+
run: cd apps/desktop && pnpm install
53+
54+
- uses: tauri-apps/tauri-action@v0
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
58+
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
59+
with:
60+
projectPath: apps/desktop
61+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)