refactor(frontend): get open collective key from env (#36)

* removed daiyui from config

* updated to tailwind4 and daisyui 5

* changed embedded mode handling

* get open collective api key from .env

* linting
This commit is contained in:
Anton Tranelis 2025-04-17 14:41:23 +01:00 committed by GitHub
parent 0b3b615dec
commit 823d8c2c82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 18 additions and 7 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
VITE_OPEN_COLLECTIVE_API_KEY=your_key

15
package-lock.json generated
View File

@ -3021,9 +3021,15 @@
}
},
"node_modules/@tanstack/query-core": {
<<<<<<< HEAD
"version": "5.74.4",
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.4.tgz",
"integrity": "sha512-YuG0A0+3i9b2Gfo9fkmNnkUWh5+5cFhWBN0pJAHkHilTx6A0nv8kepkk4T4GRt4e5ahbtFj2eTtkiPcVU1xO4A==",
=======
"version": "5.74.3",
"resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.74.3.tgz",
"integrity": "sha512-Mqk+5o3qTuAiZML248XpNH8r2cOzl15+LTbUsZQEwvSvn1GU4VQhvqzAbil36p+MBxpr/58oBSnRzhrBevDhfg==",
>>>>>>> 0b3b615dec2d07e3d8a3995743096155bcb5dcaa
"license": "MIT",
"funding": {
"type": "github",
@ -3031,12 +3037,21 @@
}
},
"node_modules/@tanstack/react-query": {
<<<<<<< HEAD
"version": "5.74.4",
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.4.tgz",
"integrity": "sha512-mAbxw60d4ffQ4qmRYfkO1xzRBPUEf/72Dgo3qqea0J66nIKuDTLEqQt0ku++SDFlMGMnB6uKDnEG1xD/TDse4Q==",
"license": "MIT",
"dependencies": {
"@tanstack/query-core": "5.74.4"
=======
"version": "5.74.3",
"resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.74.3.tgz",
"integrity": "sha512-QrycUn0wxjVPzITvQvOxFRdhlAwIoOQSuav7qWD4SWCoKCdLbyRZ2vji2GuBq/glaxbF4wBx3fqcYRDOt8KDTA==",
"license": "MIT",
"dependencies": {
"@tanstack/query-core": "5.74.3"
>>>>>>> 0b3b615dec2d07e3d8a3995743096155bcb5dcaa
},
"funding": {
"type": "github",

View File

@ -1,6 +0,0 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

View File

@ -143,6 +143,7 @@ function App() {
assetsApi={new assetsApi('https://api.utopia-lab.org/assets/')}
appName={map.name}
embedded={embedded}
openCollectiveApiKey={import.meta.env.VITE_OPEN_COLLECTIVE_API_KEY}
>
<Permissions
api={permissionsApiInstance}

View File

@ -5,4 +5,4 @@
@theme {
--animate-fade: fadeOut 1s ease-in-out;
}
}