web/satellite: add feature flag for new browser

Change-Id: If3773b9df7f79d4c5e094140448d60ec060cdaeb
This commit is contained in:
Monty Anderson 2021-10-21 16:17:53 +01:00 committed by Egon Elbre
parent f82b696858
commit 3989107031
4 changed files with 10 additions and 1 deletions

View File

@ -93,6 +93,7 @@ type Config struct {
PathwayOverviewEnabled bool `help:"indicates if the overview onboarding step should render with pathways" default:"true"`
NewOnboarding bool `help:"indicates if new onboarding flow should be rendered" default:"true"`
NewNavigation bool `help:"indicates if new navigation structure should be rendered" default:"false"`
NewBrowser bool `help:"indicates if new browser should be used" default:"false"`
// RateLimit defines the configuration for the IP and userID rate limiters.
RateLimit web.RateLimiterConfig
@ -375,6 +376,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
DefaultPaidStorageLimit memory.Size
DefaultPaidBandwidthLimit memory.Size
NewNavigation bool
NewBrowser bool
}
data.ExternalAddress = server.config.ExternalAddress
@ -404,6 +406,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
data.RecaptchaSiteKey = server.config.Recaptcha.SiteKey
data.NewOnboarding = server.config.NewOnboarding
data.NewNavigation = server.config.NewNavigation
data.NewBrowser = server.config.NewBrowser
if server.templates.index == nil {
server.log.Error("index template is not set")

View File

@ -127,6 +127,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0
# url link for linksharing requests
# console.linksharing-url: https://link.us1.storjshare.io
# indicates if new browser should be used
# console.new-browser: false
# indicates if new navigation structure should be rendered
# console.new-navigation: false

View File

@ -29,6 +29,7 @@
<meta name="default-paid-storage-limit" content="{{ .DefaultPaidStorageLimit }}">
<meta name="default-paid-bandwidth-limit" content="{{ .DefaultPaidBandwidthLimit }}">
<meta name="new-navigation-structure" content="{{ .NewNavigation }}">
<meta name="new-browser" content="{{ .NewBrowser }}">
<title>{{ .SatelliteName }}</title>
<link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrG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+V0FeZBdTtpSQRvgAoKtuMqmBdpKxvKYjXJ+o+cx0WBRPFO6ABHuesMheLghIdePiutc7AoqBLchZchVMSFgUr9HTS8sEgL1C0E1XBRNGUeeV6OlFONjbqSjY2Nv7mKjnzMyXqYQrW2OsYS8smLkOE5OpsFSkdQ6PlUAU9EgtXq6MFdZ3EkpVKNVAFc8TKW6QbURVMFK1slOyGuSFdUkLOoQtZwSRXaRmpKLgj1y1eMjdIImguTMHCCAnvGcuXQhIMPMl1O8hnrOy31GtfnaNi3oRIcohEu7ZY20DZK0DGTCV7NVKi5UVK40vDJVatU/dfgCTEw8AsgsSdLx+TKjUdOeMAsycnMr/BzrIcmc8ByrycuDMvByM4f7PyCmLL/gK8LEBJALYsGEdXEyupAAAAAElFTkSuQmCC" type="image/x-icon">
<link rel="dns-prefetch" href="https://js.stripe.com">

View File

@ -12,7 +12,7 @@
</template>
<script lang="ts">
import { FileBrowser } from 'browser';
import * as browser from 'browser';
import { Component, Vue } from 'vue-property-decorator';
import UploadCancelPopup from '@/components/objects/UploadCancelPopup.vue';
@ -24,6 +24,8 @@ import { AccessGrant, GatewayCredentials } from '@/types/accessGrants';
import { AnalyticsEvent } from '@/utils/constants/analyticsEventNames';
import { MetaUtils } from '@/utils/meta';
const FileBrowser = MetaUtils.getMetaContent('new-browser') === "true" ? Vue : browser.FileBrowser;
// @vue/component
@Component({
components: {