-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into wip/akirathan/strip-native-libs
- Loading branch information
Showing
259 changed files
with
8,401 additions
and
6,511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,3 +191,9 @@ test-results/ | |
test-traces/ | ||
playwright-report/ | ||
playwright/.cache/ | ||
|
||
######### | ||
## Git ## | ||
######### | ||
|
||
/.mailmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<script setup lang="ts"> | ||
import '@/assets/base.css' | ||
import TooltipDisplayer from '@/components/TooltipDisplayer.vue' | ||
import ProjectView from '@/ProjectView.vue' | ||
import { provideAppClassSet } from '@/providers/appClass' | ||
import { provideGuiConfig } from '@/providers/guiConfig' | ||
import { provideTooltipRegistry } from '@/providers/tooltipRegistry' | ||
import { registerAutoBlurHandler } from '@/util/autoBlur' | ||
import { baseConfig, configValue, mergeConfig, type ApplicationConfigValue } from '@/util/config' | ||
import { urlParams } from '@/util/urlParams' | ||
import { useQueryClient } from '@tanstack/vue-query' | ||
import { applyPureReactInVue } from 'veaury' | ||
import { computed, onMounted } from 'vue' | ||
import { ComponentProps } from 'vue-component-type-helpers' | ||
import ReactRoot from './ReactRoot' | ||
const _props = defineProps<{ | ||
// Used in Project View integration tests. Once both test projects will be merged, this should be | ||
// removed | ||
projectViewOnly?: { options: ComponentProps<typeof ProjectView> } | null | ||
onAuthenticated?: (accessToken: string | null) => void | ||
}>() | ||
const classSet = provideAppClassSet() | ||
const appTooltips = provideTooltipRegistry() | ||
const appConfig = computed(() => { | ||
const config = mergeConfig(baseConfig, urlParams(), { | ||
onUnrecognizedOption: (p) => console.warn('Unrecognized option:', p), | ||
}) | ||
return config | ||
}) | ||
const appConfigValue = computed((): ApplicationConfigValue => configValue(appConfig.value)) | ||
const ReactRootWrapper = applyPureReactInVue(ReactRoot) | ||
const queryClient = useQueryClient() | ||
provideGuiConfig(appConfigValue) | ||
registerAutoBlurHandler() | ||
onMounted(() => { | ||
if (appConfigValue.value.window.vibrancy) { | ||
document.body.classList.add('vibrancy') | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div :class="['App', ...classSet.keys()]"> | ||
<ProjectView v-if="projectViewOnly" v-bind="projectViewOnly.options" /> | ||
<ReactRootWrapper | ||
v-else | ||
:config="appConfigValue" | ||
:queryClient="queryClient" | ||
@authenticated="onAuthenticated ?? (() => {})" | ||
/> | ||
</div> | ||
<TooltipDisplayer :registry="appTooltips" /> | ||
</template> | ||
|
||
<style> | ||
.App { | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
/* | ||
TODO [ao]: Veaury adds a wrapping elements which have `style="all: unset"`, which in turn breaks our layout. | ||
See https://github.com/gloriasoft/veaury/issues/158 | ||
*/ | ||
[__use_react_component_wrap], | ||
[data-use-vue-component-wrap] { | ||
display: contents !important; | ||
} | ||
</style> |
Oops, something went wrong.