Refactor Docker configuration and development setup
- Update .dockerignore with comprehensive ignore patterns for API and client - Modify docker-compose files to improve service configurations - Enhance Nginx configuration for development and production environments - Refactor Dockerfile.api with improved build process - Add docker-setup.sh script for simplified Docker deployment - Update update-credentials.vue page with improved UI - Remove hCaptcha dependency from package-lock.json - Update PHP configuration and entrypoint scripts
This commit is contained in:
6
client/stores/featureFlags.js
vendored
6
client/stores/featureFlags.js
vendored
@@ -3,11 +3,15 @@ import { ref } from 'vue'
|
||||
|
||||
export const useFeatureFlagsStore = defineStore('feature_flags', () => {
|
||||
const flags = ref({})
|
||||
const isLoaded = ref(false)
|
||||
|
||||
async function fetchFlags() {
|
||||
if (isLoaded.value) return
|
||||
|
||||
try {
|
||||
const { data } = await useOpnApi('content/feature-flags')
|
||||
flags.value = data.value
|
||||
isLoaded.value = true
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch feature flags:', error)
|
||||
}
|
||||
@@ -20,5 +24,5 @@ export const useFeatureFlagsStore = defineStore('feature_flags', () => {
|
||||
}, flags.value)
|
||||
}
|
||||
|
||||
return { flags, fetchFlags, getFlag }
|
||||
return { flags, isLoaded, fetchFlags, getFlag }
|
||||
})
|
||||
Reference in New Issue
Block a user