Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { ChangeEvent, FC, memo, useCallback, useState } from 'react';
import { Modal } from '@labkey/components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020 LabKey Corporation
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, memo, useCallback } from 'react';
import { FileAttachmentForm } from '@labkey/components';
import { Map } from 'immutable';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, memo, useCallback, useEffect, useState } from 'react';
import { Draft, produce } from "immer";
import { ActionURL } from '@labkey/api';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/FileAttachmentPage/actions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import { ActionURL } from "@labkey/api";
import { getWebDavFiles, uploadWebDavFile, WebDavFile } from "@labkey/components";

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/FileAttachmentPage/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/FileAttachmentPage/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
export const MY_ATTACHMENTS_DIR = 'MyAttachments';
5 changes: 5 additions & 0 deletions reactExamples/src/client/FileAttachmentPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/FileAttachmentPage/models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import { immerable } from "immer";
import { Map } from "immutable";

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/HelloWorldPage/HelloWorld.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { render } from '@testing-library/react';
import { App } from './HelloWorld';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/HelloWorldPage/HelloWorld.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { PureComponent } from 'react';

export class App extends PureComponent {
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/HelloWorldPage/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/HelloWorldPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { PureComponent } from 'react';
import { DetailPanelWithModel, QueryConfig, SchemaQuery } from '@labkey/components';
import { getServerContext } from '@labkey/api';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/QueryModelPage/ExampleGridPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { PureComponent } from 'react';
import { GridPanel, InjectedQueryModels, withQueryModels } from '@labkey/components';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/QueryModelPage/QueryModelExample.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, PureComponent } from 'react';
import { Query, getServerContext } from '@labkey/api';
import { SchemaQuery, ServerContextProvider, withAppUser, AppContextProvider } from '@labkey/components';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/QueryModelPage/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/QueryModelPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/ToDoForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, memo, useCallback, ChangeEvent } from 'react';

interface Props {
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/ToDoList.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, memo, useCallback } from 'react';
import { getServerContext } from '@labkey/api';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/ToDoListPage.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React, { FC, memo, useCallback, useState } from 'react';
import './todolist.scss';
import { ToDoForm } from './ToDoForm';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';

Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
export interface Item {
id: number;
isComplete: boolean;
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/webpart/app.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import { App } from '@labkey/api';
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/src/client/ToDoListPage/webpart/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import React from 'react';
import { createRoot } from 'react-dom/client';
import { App } from '@labkey/api';
Expand Down
2 changes: 1 addition & 1 deletion reactExamples/src/client/entryPoints.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019 LabKey Corporation
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
Expand Down
5 changes: 5 additions & 0 deletions reactExamples/test/jest.setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
import '@testing-library/jest-dom'; // add custom jest matchers from jest-dom
5 changes: 5 additions & 0 deletions reactExamples/test/styleMock.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/


export {};
5 changes: 5 additions & 0 deletions sourdough/resources/queries/lists/RisesQuery.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
SELECT Rises.X,
Rises.starter1,
Rises.starter2,
Expand Down
15 changes: 15 additions & 0 deletions sourdough/resources/reports/schemas/lists/Rises/risesgraph.r
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
##
# Copyright (c) 2023-2026 LabKey Corporation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why we're using different length license blocks in different file types.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a judgement call. The tool configures renderers for each license and chooses long or short depending on file type. For some reason, ehrModules and oconnor use different rules; I can't remember why. Anyway, I recently switched js, jsx, sql, ts, and tsx to use short licenses, since these can be very short files. We could switch r or others to short. But maybe the right heuristic is choose long vs. short based on file size, not file type.

#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##
png(filename="${imgout:a}", width=900);
plot(labkey.data$x, labkey.data$starter1, type = "b", frame = FALSE, col = "red", xlab = "time elapsed (hrs)", ylab = "volume increase (%)");
lines(labkey.data$x, labkey.data$starter2, col = "blue", type = "b");
Expand Down
5 changes: 5 additions & 0 deletions sourdough/resources/web/dailylog/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
const init = () => {
// Renders QueryWebPart
const qwp = new LABKEY.QueryWebPart({
Expand Down
5 changes: 5 additions & 0 deletions sourdough/resources/web/dashboard/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
const init = () => {
LABKEY.Report.execute({
reportName: 'risesgraph',
Expand Down
5 changes: 5 additions & 0 deletions sourdough/resources/web/overview/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
const uploadDailyLogData = async () => {
const urlToFile = async imageName => {
const response = await fetch(LABKEY.ActionURL.getContextPath() + '/images/' + imageName);
Expand Down
5 changes: 5 additions & 0 deletions sourdough/resources/web/styling/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* Copyright (c) 2023-2026 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
// The following calls are for illustrative demoing purposes. Note that calling the below endpoints directly is not
// usual practice.

Expand Down