Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wesjdj committed Nov 24, 2023
1 parent 1085d57 commit c765548
Show file tree
Hide file tree
Showing 257 changed files with 1,298 additions and 1,263 deletions.
2 changes: 1 addition & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
8 changes: 6 additions & 2 deletions client/public/static/public/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
font-family: "Inter";
font-style: normal;
font-weight: 400;
src: local("Inter Regular"), local("Inter-Regular"),
src:
local("Inter Regular"),
local("Inter-Regular"),
url("./fonts/Inter/static/Inter-Regular.ttf") format("truetype");
font-display: swap;
}
Expand All @@ -11,7 +13,9 @@
font-family: "Inter";
font-style: normal;
font-weight: 600;
src: local("Inter Bold"), local("Inter-Bold"),
src:
local("Inter Bold"),
local("Inter-Bold"),
url("./fonts/Inter/static/Inter-Bold.ttf") format("truetype");
font-display: swap;
}
Expand Down
8 changes: 4 additions & 4 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ function CentralContentContainer(props) {
datasetCoordinator={
new DatasetCoordinator(
props.client,
props.model.subModel("dataset")
props.model.subModel("dataset"),
)
}
logged={props.user.logged}
Expand Down Expand Up @@ -306,7 +306,7 @@ function App(props) {
const notificationManager = new NotificationsManager(
props.model,
props.client,
getLocation
getLocation,
);
setNotifications(notificationManager);

Expand All @@ -325,8 +325,8 @@ function App(props) {
props.model,
getLocation,
props.client,
notificationManager
)
notificationManager,
),
);
}, []); // eslint-disable-line

Expand Down
4 changes: 2 additions & 2 deletions client/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("rendering", () => {
params={params}
/>
</Router>
</Provider>
</Provider>,
);
});
});
Expand All @@ -64,7 +64,7 @@ describe("rendering", () => {
params={params}
/>
</Router>
</Provider>
</Provider>,
);
});
});
Expand Down
10 changes: 5 additions & 5 deletions client/src/api-client/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function addDatasetMethods(client) {
thenCallback,
onErrorCallback,
setController,
onFileUploadEnd
onFileUploadEnd,
) => {
const data = createFileUploadFormData(file);
data.append("processData", false);
Expand Down Expand Up @@ -95,7 +95,7 @@ export default function addDatasetMethods(client) {
client.uploadSingleFile = async (
file,
unpack_archive = false,
versionUrl = null
versionUrl = null,
) => {
const headers = new Headers(uploadFileHeaders);
const data = createFileUploadFormData(file);
Expand Down Expand Up @@ -134,7 +134,7 @@ export default function addDatasetMethods(client) {
client.listProjectDatasetsFromCoreService = (
git_url,
versionUrl = null,
defaultBranch
defaultBranch,
) => {
let headers = client.getBasicHeaders();
headers.append("Content-Type", "application/json");
Expand All @@ -152,7 +152,7 @@ export default function addDatasetMethods(client) {
.then((response) => {
if (response.data.result && response.data.result.datasets.length > 0) {
response.data.result.datasets.map((d) =>
addMarqueeImageToDataset(git_url, cleanDatasetId(d), defaultBranch)
addMarqueeImageToDataset(git_url, cleanDatasetId(d), defaultBranch),
);
}

Expand All @@ -166,7 +166,7 @@ export default function addDatasetMethods(client) {
client.fetchDatasetFilesFromCoreService = (
name,
git_url,
versionUrl = null
versionUrl = null,
) => {
let headers = client.getBasicHeaders();
headers.append("Content-Type", "application/json");
Expand Down
6 changes: 3 additions & 3 deletions client/src/api-client/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ function alertAPIErrors(error) {
switch (error.case) {
case API_ERRORS.forbiddenError:
throw Error(
"You don't have the necessary permission to view this information or perform this action."
"You don't have the necessary permission to view this information or perform this action.",
);
case API_ERRORS.notFoundError:
throw Error("We could not find the requested resource on the server.");
case API_ERRORS.internalServerError:
throw Error(
"There is a problem with the server - please try again later."
"There is a problem with the server - please try again later.",
);
case API_ERRORS.networkError:
throw Error(
"There seems to be problem with your network connection. Please check and try again."
"There seems to be problem with your network connection. Please check and try again.",
);
default:
// No alert on default exception
Expand Down
14 changes: 7 additions & 7 deletions client/src/api-client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class APIClient {
this.baseUrl = apiUrl;
this.uiserverUrl = uiserverUrl;
this.coreApiVersionedUrlHelper = new CoreApiVersionedUrlHelper(
coreApiVersionedUrlConfig
coreApiVersionedUrlConfig,
);
this.returnTypes = RETURN_TYPES;

Expand Down Expand Up @@ -96,7 +96,7 @@ class APIClient {
returnType = FETCH_DEFAULT.returnType,
alertOnErr = FETCH_DEFAULT.alertOnErr,
reLogin = FETCH_DEFAULT.reLogin,
anonymousLogin = FETCH_DEFAULT.anonymousLogin
anonymousLogin = FETCH_DEFAULT.anonymousLogin,
) {
return renkuFetch(url, options)
.catch((error) => {
Expand Down Expand Up @@ -158,7 +158,7 @@ class APIClient {
reLogin = FETCH_DEFAULT.reLogin,
anonymousLogin = FETCH_DEFAULT.anonymousLogin,
maxIterations = FETCH_DEFAULT.maxIterations,
} = {}
} = {},
) {
let iterations = 1,
page = 1;
Expand All @@ -176,11 +176,11 @@ class APIClient {
returnType,
alertOnErr,
reLogin,
anonymousLogin
anonymousLogin,
);
if (!response.pagination)
throw new Error(
"Invoked API doesn't return structured data, making pagination unusable."
"Invoked API doesn't return structured data, making pagination unusable.",
);
page = response.pagination.nextPage;
response.pagination.progress =
Expand Down Expand Up @@ -235,7 +235,7 @@ class APIClient {
versionedCoreUrl(endpoint, metadataVersion) {
const path = this.coreApiVersionedUrlHelper.urlForEndpoint(
endpoint,
metadataVersion
metadataVersion,
);
return `${this.baseUrl}/renku${path}`;
}
Expand All @@ -247,7 +247,7 @@ class APIClient {
uploadFileURL(versionUrl) {
return this.versionedCoreUrl(
"cache.files_upload?override_existing=true",
versionUrl
versionUrl,
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/api-client/instance.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function addInstanceMethods(client) {
{
method: "GET",
headers: new Headers({ Accept: "application/json" }),
}
},
);
const data = await response.json();
return data?.isIframeValid ?? false;
Expand Down
12 changes: 6 additions & 6 deletions client/src/api-client/notebook-servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function addNotebookServersMethods(client) {
project,
branch,
commit,
anonymous = false
anonymous = false,
) => {
const headers = client.getBasicHeaders();
const url = `${client.baseUrl}/notebooks/servers`;
Expand All @@ -42,7 +42,7 @@ function addNotebookServersMethods(client) {
FETCH_DEFAULT.returnType,
FETCH_DEFAULT.alertOnErr,
FETCH_DEFAULT.reLogin,
anonymous
anonymous,
)
.then((resp) => {
return { data: resp.data.servers };
Expand All @@ -63,7 +63,7 @@ function addNotebookServersMethods(client) {
headers,
queryParams: parameters,
},
"text"
"text",
)
.then(() => {
return true;
Expand All @@ -81,7 +81,7 @@ function addNotebookServersMethods(client) {
FETCH_DEFAULT.returnType,
FETCH_DEFAULT.alertOnErr,
FETCH_DEFAULT.reLogin,
anonymous
anonymous,
)
.then((resp) => {
let { data } = resp;
Expand All @@ -106,7 +106,7 @@ function addNotebookServersMethods(client) {
commitId,
image,
options,
env_variables = {}
env_variables = {},
) => {
const headers = client.getBasicHeaders();
headers.append("Content-Type", "application/json");
Expand Down Expand Up @@ -209,7 +209,7 @@ function addNotebookServersMethods(client) {
const response = await client.clientFetch(
url,
{ method: "DELETE", headers },
RETURN_TYPES.full
RETURN_TYPES.full,
);
if (response.status >= 200 && response.status < 400) return true;
return false;
Expand Down
2 changes: 1 addition & 1 deletion client/src/api-client/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function addPipelineMethods(client) {
body: JSON.stringify({
ref: defaultBranch,
}),
}
},
);
};

Expand Down
Loading

0 comments on commit c765548

Please sign in to comment.