Skip to content

Commit

Permalink
style(eslint): run
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 31, 2023
1 parent 13979db commit 3e96765
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ Mafl is an intuitive service for organizing your homepage. Customize Mafl to you
This Docker image is published to both Docker Hub and the GitHub container registry. Depending on your preferences and needs, you can reference both `hywax/mafl` as well as `ghcr.io/hywax/mafl`.

```yaml
version: "3.8"
version: '3.8'

services:
mafl:
image: hywax/mafl
restart: unless-stopped
ports:
- "3000:3000"
- '3000:3000'
volumes:
- ./config.yml:/app/data/config.yml
- ./icons:/app/public/icons
Expand Down
8 changes: 4 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default defineNuxtConfig({
storage: {
data: {
driver: 'fs',
base: './data'
}
}
}
base: './data',
},
},
},
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
"lint-staged": {
"*.ts": "yarn run lint"
}
}
}
5 changes: 3 additions & 2 deletions server/plugins/0.update-checker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import currentPackage from '~/package.json'

export default defineNitroPlugin(async () => {
Expand All @@ -7,10 +8,10 @@ export default defineNitroPlugin(async () => {

try {
const latestPackage = await $fetch<typeof currentPackage>('https://raw.githubusercontent.com/hywax/mafl/main/package.json', {
parseResponse: (json) => JSON.parse(json)
parseResponse: (json) => JSON.parse(json),
})

const parseVersion = (version: string): number => parseInt(version.replace(/\./g, ''), 10);
const parseVersion = (version: string): number => Number.parseInt(version.replace(/\./g, ''), 10)
const difference = parseVersion(latestPackage.version) - parseVersion(currentPackage.version)

if (difference > 0) {
Expand Down

0 comments on commit 3e96765

Please sign in to comment.