Skip to content

Commit 0101f62

Browse files
committed
changed confing import
1 parent 56e3fc8 commit 0101f62

10 files changed

Lines changed: 20 additions & 19 deletions

File tree

example/react-sqlitecloud-chat/src/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import Grid from '@mui/material/Unstable_Grid2';
1111
import Alert from '@mui/material/Alert';
1212
import Stack from '@mui/material/Stack';
1313
//SqliteCloud
14-
const config = require('./config').config;
15-
import { logThis } from './utils'
14+
import { config } from './config';
15+
import { logThis } from './utils';
16+
//SqliteCloud Context
1617
import { StateProvider } from './context/StateContext';
1718
//SqliteCloud components
1819
import ChannelsList from "./ChannelsList"

example/react-sqlitecloud-chat/src/ChannelElement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import Avatar from '@mui/material/Avatar';
1414
import Badge from '@mui/material/Badge';
1515
import { green } from '@mui/material/colors';
1616
//SqliteCloud
17-
const config = require('./config').config;
18-
import { logThis } from './utils'
17+
import { config } from './config';
18+
import { logThis } from './utils';
1919
//SqliteCloud context
2020
import { StateContext } from "./context/StateContext"
2121

example/react-sqlitecloud-chat/src/ChannelsList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import Grid from '@mui/material/Unstable_Grid2';
66
import Paper from '@mui/material/Paper';
77
import Stack from '@mui/material/Stack';
88
//SqliteCloud
9-
const config = require('./config').config;
10-
import { logThis } from './utils'
9+
import { config } from './config';
10+
import { logThis } from './utils';
1111
//SqliteCloute Components
1212
import ChannelElement from './ChannelElement'
1313

example/react-sqlitecloud-chat/src/MessageEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import Paper from '@mui/material/Paper';
88
import InputBase from '@mui/material/InputBase';
99
import IconButton from '@mui/material/IconButton';
1010
//SqliteCloud
11-
const config = require('./config').config;
12-
import { logThis } from './utils'
11+
import { config } from './config';
12+
import { logThis } from './utils';
1313
//SqliteCloud context
1414

1515
const MessageEditor = ({ liter }) => {

example/react-sqlitecloud-chat/src/Messages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import React, { useContext } from "react";
44
import Grid from '@mui/material/Unstable_Grid2';
55
import Drawer from '@mui/material/Drawer';
66
//SqliteCloud
7-
const config = require('./config').config;
8-
import { logThis } from './utils'
7+
import { config } from './config';
8+
import { logThis } from './utils';
99
//SqliteCloud context
1010
import { StateContext } from "./context/StateContext"
1111
//SqliteCloud componets

example/react-sqlitecloud-chat/src/MessagesBar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import IconButton from '@mui/material/IconButton';
1212
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
1313
import { green } from '@mui/material/colors';
1414
//SqliteCloud
15-
const config = require('./config').config;
16-
import { logThis } from './utils'
15+
import { config } from './config';
16+
import { logThis } from './utils';
1717
//SqliteCloud context
1818
import { StateContext } from "./context/StateContext"
1919
//SqliteCloud componets

example/react-sqlitecloud-chat/src/MessagesPresentation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { useSearchParams } from 'react-router-dom';
66
import Grid from '@mui/material/Unstable_Grid2';
77
import { green } from '@mui/material/colors';
88
//SqliteCloud
9-
const config = require('./config').config;
10-
import { logThis } from './utils'
9+
import { config } from './config';
10+
import { logThis } from './utils';
1111
//SqliteCloud context
1212
import { StateContext } from "./context/StateContext"
1313
//SqliteCloud componets

example/react-sqlitecloud-chat/src/SingleMessage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Avatar from '@mui/material/Avatar';
1111
import Divider from '@mui/material/Divider';
1212
import { green, red, blue, cyan, teal } from '@mui/material/colors';
1313
//SqliteCloud
14-
const config = require('./config').config;
15-
import { logThis } from './utils'
14+
import { config } from './config';
15+
import { logThis } from './utils';
1616
//SqliteCloud context
1717

1818
function NewlineText({ text }) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const config = {
22
debug: {
3-
renderingProcess: false,
3+
renderingProcess: true,
44
},
55
credential: {
66
projectId: "f9cdd1d5-7d16-454b-8cc0-548dc1712c26",
@@ -10,4 +10,4 @@ const config = {
1010
prefix: "/app",
1111
},
1212
}
13-
module.exports.config = config;
13+
export { config };

example/react-sqlitecloud-chat/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createRoot } from 'react-dom/client';
44
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
55
import App from "./App.js";
66
//sqlitecloud
7-
const config = require('./config').config;
7+
import { config } from './config';
88

99
const container = document.getElementById('root');
1010
const root = createRoot(container); // createRoot(container!) if you use TypeScript

0 commit comments

Comments
 (0)