Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump components and build #173

Merged
merged 3 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6,149 changes: 3,396 additions & 2,753 deletions reactExamples/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions reactExamples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"test": "cross-env NODE_ENV=test jest"
},
"dependencies": {
"@labkey/components": "2.344.0"
"@labkey/components": "3.0.0"
},
"devDependencies": {
"@labkey/build": "6.12.0",
"@labkey/build": "7.0.0",
"@types/jest": "29.2.0",
"@types/react": "16.14.34",
"jest": "29.2.2",
Expand Down
16 changes: 2 additions & 14 deletions reactExamples/src/client/FileAttachmentPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';

import { App } from './FileAttachmentForm';

const render = () => {
ReactDOM.render(
<AppContainer>
<App />
</AppContainer>,
document.getElementById('app')
)
ReactDOM.render(<App />, document.getElementById('app'));
};

declare const module: any;

if (module.hot) {
module.hot.accept();
}

render();
render();
16 changes: 2 additions & 14 deletions reactExamples/src/client/HelloWorldPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';

import { App } from './HelloWorld';
import './helloWorld.scss';

const render = () => {
ReactDOM.render(
<AppContainer>
<App />
</AppContainer>,
document.getElementById('app')
)
ReactDOM.render(<App />, document.getElementById('app'));
};

declare const module: any;

if (module.hot) {
module.hot.accept();
}

render();
render();
16 changes: 2 additions & 14 deletions reactExamples/src/client/QueryModelPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';

import { App } from './QueryModelExample';
import './queryModelExample.scss';

const render = () => {
ReactDOM.render(
<AppContainer>
<App />
</AppContainer>,
document.getElementById('app')
)
ReactDOM.render(<App />, document.getElementById('app'));
};

declare const module: any;

if (module.hot) {
module.hot.accept();
}

render();
render();
16 changes: 2 additions & 14 deletions reactExamples/src/client/ToDoListPage/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';

import { ToDoListPage } from './ToDoListPage';

const render = () => {
ReactDOM.render(
<AppContainer>
<ToDoListPage />
</AppContainer>,
document.getElementById('app')
)
ReactDOM.render(<ToDoListPage />, document.getElementById('app'))
};

declare const module: any;

if (module.hot) {
module.hot.accept();
}

render();
render();
10 changes: 1 addition & 9 deletions reactExamples/src/client/ToDoListPage/webpart/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { App } from '@labkey/api';

import { ToDoListPage } from "../ToDoListPage";

App.registerApp<any>('demoWebpart', (target: string) => {
ReactDOM.render(
<AppContainer>
<ToDoListPage />
</AppContainer>,
document.getElementById(target)
);
ReactDOM.render(<ToDoListPage />, document.getElementById(target));
}, true /* hot */);

declare const module: any;