Compare commits
3 commits
35120067fa
...
ca6a57957b
| Author | SHA1 | Date | |
|---|---|---|---|
| ca6a57957b | |||
| a92883f75c | |||
| bc4d813eff |
4 changed files with 114 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.app_data(Data::new(app_state.pool.clone()))
|
||||
.service(sample)
|
||||
})
|
||||
.bind(("127.0.0.1", 8080))?
|
||||
.bind(("127.0.0.1", 4320))?
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,11 +13,13 @@
|
|||
"@astrojs/solid-js": "^5.1.0",
|
||||
"@itsmatteomanf/astro-robots-txt": "^0.2.0",
|
||||
"@nanostores/solid": "^1.1.1",
|
||||
"@supabase/supabase-js": "^2.57.0",
|
||||
"astro": "^5.13.3",
|
||||
"astro-compressor": "^1.1.2",
|
||||
"lightningcss": "^1.30.1",
|
||||
"nanostores": "^1.0.1",
|
||||
"sharp": "^0.34.3",
|
||||
"solid-icons": "^1.1.0",
|
||||
"solid-js": "^1.9.9"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
105
pnpm-lock.yaml
generated
105
pnpm-lock.yaml
generated
|
|
@ -17,6 +17,9 @@ importers:
|
|||
'@nanostores/solid':
|
||||
specifier: ^1.1.1
|
||||
version: 1.1.1(nanostores@1.0.1)(solid-js@1.9.9)
|
||||
'@supabase/supabase-js':
|
||||
specifier: ^2.57.0
|
||||
version: 2.57.0
|
||||
astro:
|
||||
specifier: ^5.13.3
|
||||
version: 5.13.3(@types/node@24.3.0)(lightningcss@1.30.1)(rollup@4.41.1)(sass-embedded@1.91.0)(sass@1.91.0)(typescript@5.8.3)
|
||||
|
|
@ -32,6 +35,9 @@ importers:
|
|||
sharp:
|
||||
specifier: ^0.34.3
|
||||
version: 0.34.3
|
||||
solid-icons:
|
||||
specifier: ^1.1.0
|
||||
version: 1.1.0(solid-js@1.9.9)
|
||||
solid-js:
|
||||
specifier: ^1.9.9
|
||||
version: 1.9.9
|
||||
|
|
@ -794,6 +800,28 @@ packages:
|
|||
'@shikijs/vscode-textmate@10.0.2':
|
||||
resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
|
||||
|
||||
'@supabase/auth-js@2.71.1':
|
||||
resolution: {integrity: sha512-mMIQHBRc+SKpZFRB2qtupuzulaUhFYupNyxqDj5Jp/LyPvcWvjaJzZzObv6URtL/O6lPxkanASnotGtNpS3H2Q==}
|
||||
|
||||
'@supabase/functions-js@2.4.5':
|
||||
resolution: {integrity: sha512-v5GSqb9zbosquTo6gBwIiq7W9eQ7rE5QazsK/ezNiQXdCbY+bH8D9qEaBIkhVvX4ZRW5rP03gEfw5yw9tiq4EQ==}
|
||||
|
||||
'@supabase/node-fetch@2.6.15':
|
||||
resolution: {integrity: sha512-1ibVeYUacxWYi9i0cf5efil6adJ9WRyZBLivgjs+AUpewx1F3xPi7gLgaASI2SmIQxPoCEjAsLAzKPgMJVgOUQ==}
|
||||
engines: {node: 4.x || >=6.0.0}
|
||||
|
||||
'@supabase/postgrest-js@1.21.3':
|
||||
resolution: {integrity: sha512-rg3DmmZQKEVCreXq6Am29hMVe1CzemXyIWVYyyua69y6XubfP+DzGfLxME/1uvdgwqdoaPbtjBDpEBhqxq1ZwA==}
|
||||
|
||||
'@supabase/realtime-js@2.15.4':
|
||||
resolution: {integrity: sha512-e/FYIWjvQJHOCNACWehnKvg26zosju3694k0NMUNb+JGLdvHJzEa29ZVVLmawd2kvx4hdbv8mxSqfttRnH3+DA==}
|
||||
|
||||
'@supabase/storage-js@2.11.0':
|
||||
resolution: {integrity: sha512-Y+kx/wDgd4oasAgoAq0bsbQojwQ+ejIif8uczZ9qufRHWFLMU5cODT+ApHsSrDufqUcVKt+eyxtOXSkeh2v9ww==}
|
||||
|
||||
'@supabase/supabase-js@2.57.0':
|
||||
resolution: {integrity: sha512-h9ttcL0MY4h+cGqZl95F/RuqccuRBjHU9B7Qqvw0Da+pPK2sUlU1/UdvyqUGj37UsnSphr9pdGfeXjesYkBcyA==}
|
||||
|
||||
'@swc/helpers@0.5.17':
|
||||
resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==}
|
||||
|
||||
|
|
@ -833,9 +861,15 @@ packages:
|
|||
'@types/node@24.3.0':
|
||||
resolution: {integrity: sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==}
|
||||
|
||||
'@types/phoenix@1.6.6':
|
||||
resolution: {integrity: sha512-PIzZZlEppgrpoT2QgbnDU+MMzuR6BbCjllj0bM70lWoejMeNJAxCchxnv7J3XFkI8MpygtRpzXrIlmWUBclP5A==}
|
||||
|
||||
'@types/unist@3.0.3':
|
||||
resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
|
||||
|
||||
'@types/ws@8.18.1':
|
||||
resolution: {integrity: sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==}
|
||||
|
||||
'@ungap/structured-clone@1.3.0':
|
||||
resolution: {integrity: sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==}
|
||||
|
||||
|
|
@ -1851,6 +1885,11 @@ packages:
|
|||
resolution: {integrity: sha512-CxdwHXyYTONGHThDbq5XdwbFsuY4wlClRGejfE2NtwUtiHYsP1QtNsHb/hnj31jKYSchztJsaA8pSQoVzkfCFg==}
|
||||
engines: {node: '>= 18'}
|
||||
|
||||
solid-icons@1.1.0:
|
||||
resolution: {integrity: sha512-IesTfr/F1ElVwH2E1110s2RPXH4pujKfSs+koT8rwuTAdleO5s26lNSpqJV7D1+QHooJj18mcOiz2PIKs0ic+A==}
|
||||
peerDependencies:
|
||||
solid-js: '*'
|
||||
|
||||
solid-js@1.9.9:
|
||||
resolution: {integrity: sha512-A0ZBPJQldAeGCTW0YRYJmt7RCeh5rbFfPZ2aOttgYnctHE7HgKeHCBB/PVc2P7eOfmNXqMFFFoYYdm3S4dcbkA==}
|
||||
|
||||
|
|
@ -2152,6 +2191,18 @@ packages:
|
|||
resolution: {integrity: sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==}
|
||||
engines: {node: '>=18'}
|
||||
|
||||
ws@8.18.3:
|
||||
resolution: {integrity: sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==}
|
||||
engines: {node: '>=10.0.0'}
|
||||
peerDependencies:
|
||||
bufferutil: ^4.0.1
|
||||
utf-8-validate: '>=5.0.2'
|
||||
peerDependenciesMeta:
|
||||
bufferutil:
|
||||
optional: true
|
||||
utf-8-validate:
|
||||
optional: true
|
||||
|
||||
xxhash-wasm@1.1.0:
|
||||
resolution: {integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==}
|
||||
|
||||
|
|
@ -2824,6 +2875,48 @@ snapshots:
|
|||
|
||||
'@shikijs/vscode-textmate@10.0.2': {}
|
||||
|
||||
'@supabase/auth-js@2.71.1':
|
||||
dependencies:
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
|
||||
'@supabase/functions-js@2.4.5':
|
||||
dependencies:
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
|
||||
'@supabase/node-fetch@2.6.15':
|
||||
dependencies:
|
||||
whatwg-url: 5.0.0
|
||||
|
||||
'@supabase/postgrest-js@1.21.3':
|
||||
dependencies:
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
|
||||
'@supabase/realtime-js@2.15.4':
|
||||
dependencies:
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
'@types/phoenix': 1.6.6
|
||||
'@types/ws': 8.18.1
|
||||
ws: 8.18.3
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- utf-8-validate
|
||||
|
||||
'@supabase/storage-js@2.11.0':
|
||||
dependencies:
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
|
||||
'@supabase/supabase-js@2.57.0':
|
||||
dependencies:
|
||||
'@supabase/auth-js': 2.71.1
|
||||
'@supabase/functions-js': 2.4.5
|
||||
'@supabase/node-fetch': 2.6.15
|
||||
'@supabase/postgrest-js': 1.21.3
|
||||
'@supabase/realtime-js': 2.15.4
|
||||
'@supabase/storage-js': 2.11.0
|
||||
transitivePeerDependencies:
|
||||
- bufferutil
|
||||
- utf-8-validate
|
||||
|
||||
'@swc/helpers@0.5.17':
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
|
|
@ -2877,8 +2970,14 @@ snapshots:
|
|||
dependencies:
|
||||
undici-types: 7.10.0
|
||||
|
||||
'@types/phoenix@1.6.6': {}
|
||||
|
||||
'@types/unist@3.0.3': {}
|
||||
|
||||
'@types/ws@8.18.1':
|
||||
dependencies:
|
||||
'@types/node': 24.3.0
|
||||
|
||||
'@ungap/structured-clone@1.3.0': {}
|
||||
|
||||
acorn@8.14.1: {}
|
||||
|
|
@ -4236,6 +4335,10 @@ snapshots:
|
|||
|
||||
smol-toml@1.4.1: {}
|
||||
|
||||
solid-icons@1.1.0(solid-js@1.9.9):
|
||||
dependencies:
|
||||
solid-js: 1.9.9
|
||||
|
||||
solid-js@1.9.9:
|
||||
dependencies:
|
||||
csstype: 3.1.3
|
||||
|
|
@ -4484,6 +4587,8 @@ snapshots:
|
|||
string-width: 7.2.0
|
||||
strip-ansi: 7.1.0
|
||||
|
||||
ws@8.18.3: {}
|
||||
|
||||
xxhash-wasm@1.1.0: {}
|
||||
|
||||
yallist@3.1.1: {}
|
||||
|
|
|
|||
6
src/interface/db/supabase.js
Normal file
6
src/interface/db/supabase.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { createClient } from '@supabase/supabase-js'
|
||||
|
||||
const supabaseUrl = import.meta.env.SUPABASE_URL
|
||||
const supabaseKey = import.meta.env.SUPABASE_KEY
|
||||
|
||||
export const supabase = createClient(supabaseUrl, supabaseKey)
|
||||
Loading…
Add table
Add a link
Reference in a new issue