Skip to content

Commit d115752

Browse files
committed
Removed v1
1 parent a19d9c4 commit d115752

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+20
-8257
lines changed

.env

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ LOG_FILE=/tmp/fractal-web.log
1818
LOG_LEVEL_FILE=info
1919
LOG_LEVEL_CONSOLE=warn
2020

21-
FRACTAL_API_V1_MODE=include
2221
FRACTAL_RUNNER_BACKEND=local
2322
#WARNING_BANNER_PATH=/path/to/banner.txt

.env.development

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ LOG_FILE=./fractal-web.log
1717
LOG_LEVEL_FILE=debug
1818
LOG_LEVEL_CONSOLE=info
1919

20-
FRACTAL_API_V1_MODE=include
2120
FRACTAL_RUNNER_BACKEND=local
2221
#WARNING_BANNER_PATH=/path/to/banner.txt

__tests__/selected_api_version.test.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/environment-variables.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ The following environment variables can be used to configure fractal-web.
1616
* `LOG_FILE`: the path of the file where logs will be written; by default is unset and no file will be created;
1717
* `LOG_LEVEL_FILE`: the log level of logs that will be written to the file; the default value is `info`;
1818
* `LOG_LEVEL_CONSOLE`: the log level of logs that will be written to the console; the default value is `warn`;
19-
* `FRACTAL_API_V1_MODE`: include/exclude V1 pages and version switcher; supported values are: `include`, `include_read_only`, `exclude`; the default value is `include`;
2019
* `FRACTAL_RUNNER_BACKEND`: specifies which runner backend is used; supported values are: `local`, `local_experimental`, `slurm`, `slurm_ssh`; setting this variable is mandatory;
2120
* `PUBLIC_FRACTAL_VIZARR_VIEWER_URL`: URL to [fractal-vizarr-viewer](https://github.com/fractal-analytics-platform/fractal-vizarr-viewer) service (e.g. http://localhost:3000/vizarr for testing);
2221
* `WARNING_BANNER_PATH`: specifies the path to a text file containing the warning banner message displayed on the site; the banner is used to inform users about important issues, such as external resources downtime or maintenance alerts; if the variable is empty or unset no banner is displayed.

docs/quickstart.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export LOG_FILE=fractal-web.log
5555
# export LOG_LEVEL_FILE=info
5656
# export LOG_LEVEL_CONSOLE=warn
5757

58-
export FRACTAL_API_V1_MODE=include
5958
export FRACTAL_RUNNER_BACKEND=local
6059

6160
#export PUBLIC_FRACTAL_VIZARR_VIEWER_URL=

src/hooks.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function handle({ event, resolve }) {
8585
}
8686

8787
// Admin area check
88-
if (event.url.pathname.startsWith('/v1/admin') || event.url.pathname.startsWith('/v2/admin')) {
88+
if (event.url.pathname.startsWith('/v2/admin')) {
8989
if (!(/** @type {import('$lib/types').User} */ (userInfo).is_superuser)) {
9090
error(403, `Only superusers can access the admin area`);
9191
}

src/lib/common/selected_api_version.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/lib/components/v1/jobs/JobInfoModal.svelte

Lines changed: 0 additions & 89 deletions
This file was deleted.

src/lib/components/v1/jobs/JobLogsModal.svelte

Lines changed: 0 additions & 171 deletions
This file was deleted.

0 commit comments

Comments
 (0)