Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

chore: add eslint, prettier and env example

Timothy Yinfac94e01538f
diff --git a/.env.example b/.env.example
new file mode 100644
index 00000000..69c50684
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,7 @@
+NUXT_S3_ENDPOINT=
+NUXT_S3_BUCKET=
+NUXT_S3_REGION=auto
+NUXT_S3_ACCESS_KEY_ID=
+NUXT_S3_SECRET_ACCESS_KEY=
+NUXT_S3_PREFIX=photos/
+NUXT_S3_CDN_URL=
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 00000000..77129cfc
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,7 @@
+{
+ "semi": false,
+ "singleQuote": true,
+ "trailingComma": "all",
+ "bracketSameLine": false,
+ "singleAttributePerLine": true
+}
\ No newline at end of file
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 934c3a1d..da068308 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -1,6 +1,18 @@
// @ts-check
+import prettier from 'prettier'
import withNuxt from './.nuxt/eslint.config.mjs'
-export default withNuxt(
- // Your custom configs here
-)
+export default withNuxt({
+ rules: {
+ 'vue/html-self-closing': 'off',
+ 'vue/no-v-html': 'off',
+ 'vue/singleline-html-element-content-newline': 'off',
+ '@stylistic/brace-style': 'off',
+ '@stylistic/arrow-parens': 'off',
+ '@stylistic/operator-linebreak': 'off',
+ '@typescript-eslint/no-empty-object-type': 'off',
+ },
+ plugins: {
+ prettier,
+ },
+})
diff --git a/nuxt.config.ts b/nuxt.config.ts
index ec28b644..618e7368 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -9,5 +9,20 @@ export default defineNuxtConfig({
'@nuxt/icon',
'@nuxt/image',
'@nuxt/test-utils'
- ]
+ ],
+
+ runtimeConfig: {
+ S3_ENDPOINT: '',
+ S3_BUCKET: '',
+ S3_REGION: '',
+ S3_ACCESS_KEY_ID: '',
+ S3_SECRET_ACCESS_KEY: '',
+ S3_PREFIX: '',
+ S3_CDN_URL: '',
+ },
+
+ nitro: {},
+
+
+ vite: {},
})
\ No newline at end of file
diff --git a/package.json b/package.json
index c31a4737..418e441c 100644
--- a/package.json
+++ b/package.json
@@ -20,5 +20,10 @@
"vue": "^3.5.18",
"vue-router": "^4.5.1"
},
- "packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a"
+ "packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
+ "devDependencies": {
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-prettier": "^5.5.4",
+ "prettier": "^3.6.2"
+ }
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 18818c66..f9a7e2e2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -35,6 +35,16 @@ importers:
vue-router:
specifier: ^4.5.1
+ devDependencies:
+ eslint-config-prettier:
+ specifier: ^10.1.8
+ eslint-plugin-prettier:
+ specifier: ^5.5.4
+ prettier:
+ specifier: ^3.6.2
+ version: 3.6.2
packages:
@@ -1202,6 +1212,10 @@ packages:
resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}
engines: {node: '>=14'}
+ resolution: {integrity: sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+
resolution: {integrity: sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww==}
@@ -2472,6 +2486,12 @@ packages:
peerDependencies:
eslint: ^9.5.0
+ resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+
resolution: {integrity: sha512-K8eaPkBemHkfbYsZH7z4lZ/tt6gNSsVh535Wh9W9gQBS2WjvfUbbVr2NZR3L1yiRCLuOEimYfPxCxODczD4Opg==}
@@ -2518,6 +2538,20 @@ packages:
peerDependencies:
eslint: ^7.0.0 || ^8.0.0 || ^9.0.0
+ resolution: {integrity: sha512-swNtI95SToIz05YINMA6Ox5R057IMAmWZ26GqPxusAp1TZzj+IdY9tXNWWD3vkF/wEqydCONcwjTFpxybBqZsg==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ '@types/eslint': '>=8.0.0'
+ eslint: '>=8.0.0'
+ eslint-config-prettier: '>= 7.0.0 <10.0.0 || >=10.1.0'
+ prettier: '>=3.0.0'
+ peerDependenciesMeta:
+ '@types/eslint':
+ optional: true
+ eslint-config-prettier:
+ optional: true
+
resolution: {integrity: sha512-ovzQT8ESVn5oOe5a7gIDPD5v9bCSjIFJu57sVPDqgPRXicQzOnYfFN21WoQBQF18vrhT5o7UMKFwJQVVjyJ0ng==}
engines: {node: ^18 || >=20}
@@ -2640,6 +2674,9 @@ packages:
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+ resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==}
+
resolution: {integrity: sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==}
@@ -3870,6 +3907,15 @@ packages:
resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
engines: {node: '>= 0.8.0'}
+ resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==}
+ engines: {node: '>=6.0.0'}
+
+ resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
+ engines: {node: '>=14'}
+ hasBin: true
+
resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==}
engines: {node: ^14.13.1 || >=16.0.0}
@@ -4282,6 +4328,10 @@ packages:
engines: {node: '>=16'}
hasBin: true
+ resolution: {integrity: sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+
resolution: {integrity: sha512-ulAk51I9UVUyJgxlv9M6lFot2WP3e7t8Kz9+IS6D4rVba1tR9kON+Ey69f+1R4Q8cd45Lod6a4IcJIxnzGc/zA==}
engines: {node: '>=18'}
@@ -6157,6 +6207,8 @@ snapshots:
optional: true
+ '@pkgr/[email protected]': {}
+
'@polka/[email protected]': {}
'@poppinss/[email protected]':
@@ -7465,6 +7517,10 @@ snapshots:
'@eslint/compat': 1.3.2([email protected]([email protected]))
eslint: 9.33.0([email protected])
+ dependencies:
+ eslint: 9.33.0([email protected])
+
dependencies:
pathe: 2.0.3
@@ -7521,6 +7577,15 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ dependencies:
+ eslint: 9.33.0([email protected])
+ prettier: 3.6.2
+ prettier-linter-helpers: 1.0.0
+ synckit: 0.11.11
+ optionalDependencies:
+ eslint-config-prettier: 10.1.8([email protected]([email protected]))
+
dependencies:
'@eslint-community/eslint-utils': 4.7.0([email protected]([email protected]))
@@ -7692,6 +7757,8 @@ snapshots:
+
@@ -9152,6 +9219,12 @@ snapshots:
+ dependencies:
+ fast-diff: 1.3.0
+
+
@@ -9615,6 +9688,10 @@ snapshots:
picocolors: 1.1.1
sax: 1.4.1
+ dependencies:
+ '@pkgr/core': 0.2.9
+