mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:51:43 +00:00
svelte: Enable repo routes by default (#62374)
This commit enables the following routes via the `web-next-rollout` flag: - repo home - blob - file - branches - tags - commits - commit
This commit is contained in:
parent
467adad037
commit
c8cb66a400
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg RepoRoot
|
||||
// @sg RepoRoot EnableRollout
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
import { sidebarOpen } from '$lib/repo/stores'
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<svelte:options immutable />
|
||||
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
import { SVELTE_LOGGER, SVELTE_TELEMETRY_EVENTS } from '$lib/telemetry'
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { mdiMapSearch } from '@mdi/js'
|
||||
|
||||
import Icon from '$lib/Icon.svelte'
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import LoadingSpinner from '$lib/LoadingSpinner.svelte'
|
||||
import GitReference from '$lib/repo/GitReference.svelte'
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
import { navigating } from '$app/stores'
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
import { navigating } from '$app/stores'
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
import { navigating } from '$app/stores'
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
// @sg EnableRollout
|
||||
import { get } from 'svelte/store'
|
||||
|
||||
import { navigating } from '$app/stores'
|
||||
|
||||
@ -21,37 +21,37 @@ var svelteKitRoutes = []svelteKitRoute{
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/(code)",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/?$"),
|
||||
Tag: tags.EnableOptIn | tags.RepoRoot,
|
||||
Tag: tags.EnableOptIn | tags.RepoRoot | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/(code)/-/blob/[...path]",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/blob(?:/.*)?/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/(code)/-/tree/[...path]",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/tree(?:/.*)?/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/branches",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/branches/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/branches/all",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/branches/all/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/commit/[...revspec]",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/commit(?:/.*)?/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/commits/[...path]",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/commits(?:/.*)?/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/stats/contributors",
|
||||
@ -61,7 +61,7 @@ var svelteKitRoutes = []svelteKitRoute{
|
||||
{
|
||||
Id: "/[...repo=reporev]/(validrev)/-/tags",
|
||||
Pattern: regexp.MustCompile("^/(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,})))(?:@(?:(?:(?:[^@/-]|(?:[^/@]{2,}))/)*(?:[^@/-]|(?:[^/@]{2,}))))?/-/tags/?$"),
|
||||
Tag: tags.EnableOptIn,
|
||||
Tag: tags.EnableOptIn | tags.EnableRollout,
|
||||
},
|
||||
{
|
||||
Id: "/search",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user