Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix translations & update packages #55

Merged
merged 2 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://docs.expo.dev/guides/using-eslint/
module.exports = {
extends: 'expo',
};
}
34 changes: 34 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Normalize as LF in the repository, OS native locally
* text eol=lf

# These are explicitly windows files and should use crlf
*.bat text eol=crlf

*.html text diff=html

# These files are binary and should be left untouched
# (binary is a macro for -text -diff)
*.a binary
*.lib binary
*.icns binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.jar binary
*.tar binary
*.tar.gz binary
*.7z binary
*.ttf binary
*.pyc binary
*.gpg binary
*.bin binary
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,35 @@ This will start the app in development mode, and you can scan the QR code using
### Using functions:

```ts
const fetchUsers = async () => {
try {
const data = await functions.createExecution(
'user-endpoints',
'',
false,
'/getUsers',
ExecutionMethod.GET
)
setUsers(JSON.parse(data.responseBody))
} catch (error) {
console.error(error)
}
const fetchUsers = async () => {
try {
const data = await functions.createExecution(
'user-endpoints',
'',
false,
'/getUsers',
ExecutionMethod.GET
)
setUsers(JSON.parse(data.responseBody))
} catch (error) {
console.error(error)
}
}
```

### Using databases:

```ts
const fetchEvents = async () => {
try {
const data: EventsType = await database.listDocuments('hp_db', 'events')
setEvents(data)
} catch (error) {
console.error(error)
}
const fetchEvents = async () => {
try {
const data: EventsType = await database.listDocuments('hp_db', 'events')
setEvents(data)
} catch (error) {
console.error(error)
}
}
```

#### Notes:

You cannot use the database path to get the data using an API key, you need to use the functions path to get the data using an API key.
You cannot use the database path to get the data using an API key, you need to use the functions path to get the data using an API key.
10 changes: 2 additions & 8 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
"iosDisplayInForeground": true
},
"githubUrl": "https://github.com/Headpat-Community/headpat-app",
"assetBundlePatterns": [
"**/*"
],
"assetBundlePatterns": ["**/*"],
"ios": {
"entitlements": {
"aps-environment": "production"
Expand All @@ -34,11 +32,7 @@
},
"appStoreUrl": "https://apps.apple.com/app/headpat/id6502715063",
"infoPlist": {
"UIBackgroundModes": [
"fetch",
"remote-notification",
"processing"
],
"UIBackgroundModes": ["fetch", "remote-notification", "processing"],
"NSLocationWhenInUseUsageDescription": "This app requires access to your location to show you on the map.",
"NSLocationAlwaysAndWhenInUseUsageDescription": "This app requires access to your location to show you on the map.",
"NSLocationAlwaysUsageDescription": "This app requires access to your location to show you on the map.",
Expand Down
Loading
Loading