diff --git a/.env b/.env index ac0c1a85..d56a8566 100644 --- a/.env +++ b/.env @@ -25,5 +25,7 @@ NUXT_SESSION_PASSWORD=something_long_and_random_thats_at_least_32_characters NUXT_OAUTH_GITHUB_CLIENT_ID= NUXT_OAUTH_GITHUB_CLIENT_SECRET= +# Determines if the application should support multiple teams. +VUE_APP_SHOW_MULTIPLE_TEAMS=true # to use a corporate proxy # HTTP_PROXY=http://proxy.company.com:8080 diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 00000000..92138ba8 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,5 @@ +Always add code comments. + +Always use English for both code and comments. + +Always use Chinese for discussion in chat. diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..f1c1eb8a --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "github.copilot.nextEditSuggestions.enabled": true +} \ No newline at end of file diff --git a/README.md b/README.md index 46690d3b..62ed2217 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,14 @@ The `NUXT_PUBLIC_GITHUB_TEAM` environment variable filters metrics for a specifi NUXT_PUBLIC_GITHUB_TEAM= ```` +#### NUXT_PUBLIC_SHOW_MULTIPLE_TEAMS + +The `NUXT_PUBLIC_SHOW_MULTIPLE_TEAMS` environment variable is a boolean parameter that controls whether the application should support multiple teams. The default value is `true`. When it is set to `true` and `NUXT_PUBLIC_GITHUB_TEAM` is not set, the application will call the GitHub API to get the teams for the current organization or enterprise. + +```` +NUXT_PUBLIC_SHOW_MULTIPLE_TEAMS=true +```` + #### NUXT_PUBLIC_IS_DATA_MOCKED Variable is false by default. To view mocked data switch it to true or use query parameter `?mock=true`. diff --git a/app/components/MainComponent.vue b/app/components/MainComponent.vue index 8a70b76f..db8be0cc 100644 --- a/app/components/MainComponent.vue +++ b/app/components/MainComponent.vue @@ -1,83 +1,173 @@