Skip to content

Commit

Permalink
Removed v1
Browse files Browse the repository at this point in the history
  • Loading branch information
zonia3000 committed Jan 7, 2025
1 parent a19d9c4 commit d115752
Show file tree
Hide file tree
Showing 62 changed files with 20 additions and 8,257 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ LOG_FILE=/tmp/fractal-web.log
LOG_LEVEL_FILE=info
LOG_LEVEL_CONSOLE=warn

FRACTAL_API_V1_MODE=include
FRACTAL_RUNNER_BACKEND=local
#WARNING_BANNER_PATH=/path/to/banner.txt
1 change: 0 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ LOG_FILE=./fractal-web.log
LOG_LEVEL_FILE=debug
LOG_LEVEL_CONSOLE=info

FRACTAL_API_V1_MODE=include
FRACTAL_RUNNER_BACKEND=local
#WARNING_BANNER_PATH=/path/to/banner.txt
27 changes: 0 additions & 27 deletions __tests__/selected_api_version.test.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ The following environment variables can be used to configure fractal-web.
* `LOG_FILE`: the path of the file where logs will be written; by default is unset and no file will be created;
* `LOG_LEVEL_FILE`: the log level of logs that will be written to the file; the default value is `info`;
* `LOG_LEVEL_CONSOLE`: the log level of logs that will be written to the console; the default value is `warn`;
* `FRACTAL_API_V1_MODE`: include/exclude V1 pages and version switcher; supported values are: `include`, `include_read_only`, `exclude`; the default value is `include`;
* `FRACTAL_RUNNER_BACKEND`: specifies which runner backend is used; supported values are: `local`, `local_experimental`, `slurm`, `slurm_ssh`; setting this variable is mandatory;
* `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);
* `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.
Expand Down
1 change: 0 additions & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export LOG_FILE=fractal-web.log
# export LOG_LEVEL_FILE=info
# export LOG_LEVEL_CONSOLE=warn

export FRACTAL_API_V1_MODE=include
export FRACTAL_RUNNER_BACKEND=local

#export PUBLIC_FRACTAL_VIZARR_VIEWER_URL=
Expand Down
2 changes: 1 addition & 1 deletion src/hooks.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function handle({ event, resolve }) {
}

// Admin area check
if (event.url.pathname.startsWith('/v1/admin') || event.url.pathname.startsWith('/v2/admin')) {
if (event.url.pathname.startsWith('/v2/admin')) {
if (!(/** @type {import('$lib/types').User} */ (userInfo).is_superuser)) {
error(403, `Only superusers can access the admin area`);
}
Expand Down
14 changes: 0 additions & 14 deletions src/lib/common/selected_api_version.js

This file was deleted.

89 changes: 0 additions & 89 deletions src/lib/components/v1/jobs/JobInfoModal.svelte

This file was deleted.

171 changes: 0 additions & 171 deletions src/lib/components/v1/jobs/JobLogsModal.svelte

This file was deleted.

Loading

0 comments on commit d115752

Please sign in to comment.