Skip to content

Commit

Permalink
fix: update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Nov 22, 2024
1 parent 0185056 commit cb31ff2
Show file tree
Hide file tree
Showing 8 changed files with 3,608 additions and 13,986 deletions.
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"arrowParens": "always",
"overrides": [
{
"files": "**/*.js",
"options": {
"tabWidth": 4
}
}
]
}
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ $ sudo chmod go-rw /etc/gotify/config.yml
```yml
server:
keepaliveperiodseconds: 0 # 0 = use Go default (15s); -1 = disable keepalive; set the interval in which keepalive packets will be sent. Only change this value if you know what you are doing.
listenaddr: "" # the address to bind on, leave empty to bind on all addresses. Prefix with "unix:" to create a unix socket. Example: "unix:/tmp/gotify.sock".
listenaddr: '' # the address to bind on, leave empty to bind on all addresses. Prefix with "unix:" to create a unix socket. Example: "unix:/tmp/gotify.sock".
port: 80 # the port the HTTP server will listen on

ssl:
enabled: false # if https should be enabled
redirecttohttps: true # redirect to https if site is accessed by http
listenaddr: "" # the address to bind on, leave empty to bind on all addresses. Prefix with "unix:" to create a unix socket. Example: "unix:/tmp/gotify.sock".
listenaddr: '' # the address to bind on, leave empty to bind on all addresses. Prefix with "unix:" to create a unix socket. Example: "unix:/tmp/gotify.sock".
port: 443 # the https port
certfile: # the cert file (leave empty when using letsencrypt)
certkey: # the cert key (leave empty when using letsencrypt)
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ docker run -p 80:80 -e TZ="Europe/Berlin" -v /var/gotify/data:/app/data gotify
<p>

```yml
version: "3"
version: '3'

services:
gotify:
Expand All @@ -43,7 +43,7 @@ services:
environment:
GOTIFY_DEFAULTUSER_PASS: 'admin'
volumes:
- "./gotify_data:/app/data"
- './gotify_data:/app/data'
# to run gotify as a dedicated user:
# sudo chown -R 1234:1234 ./gotify_data
# user: "1234:1234"
Expand Down
12 changes: 6 additions & 6 deletions docs/more-pushmsg.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ switch ($code) {
### JavaScript

```javascript
const axios = require("axios");
const axios = require('axios');

const url = "http://localhost:8008/message?token=<apptoken>";
const url = 'http://localhost:8008/message?token=<apptoken>';
const bodyFormData = {
title: "Hello from Javascript",
message: "Test Push Service from Node.js",
title: 'Hello from Javascript',
message: 'Test Push Service from Node.js',
priority: 5,
};

axios({
method: "post",
method: 'post',
headers: {
"Content-Type": "application/json",
'Content-Type': 'application/json',
},
url: url,
data: bodyFormData,
Expand Down
4 changes: 2 additions & 2 deletions docs/msgextras.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Some of the namespaces are used by official clients:
{
"extras": {
"client::notification": {
"click": { "url": "https://gotify.net" }
"click": {"url": "https://gotify.net"}
}
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ Some of the namespaces are used by official clients:
{
"extras": {
"android::action": {
"onReceive": { "intentUrl": "https://gotify.net" }
"onReceive": {"intentUrl": "https://gotify.net"}
}
}
}
Expand Down
11 changes: 0 additions & 11 deletions website/.prettierrc

This file was deleted.

Loading

0 comments on commit cb31ff2

Please sign in to comment.