Skip to content

Commit d247a5d

Browse files
committed
cleanup
1 parent f33c5f2 commit d247a5d

11 files changed

Lines changed: 17 additions & 31 deletions

File tree

otoroshi/javascript/src/components/Drafts/DraftEditor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ export function PublisDraftButton(props) {
211211
if (isFirstRender.current) {
212212
isFirstRender.current = false;
213213
} else {
214-
console.log('reset after pathname changed', pathname);
215214
resetDraftSignal();
216215
}
217216
}, [pathname]);

otoroshi/javascript/src/components/inputs/Table.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,8 @@ function ColumnsSelector({ fields, onChange, fetchTemplate, addField, removeFiel
7474
<>
7575
<div
7676
className={`wizard ${!open ? 'wizard--hidden' : ''}`}
77-
style={{
78-
background: 'none',
79-
}}
80-
onClick={closeTab}
81-
>
77+
style={{ background: 'none' }}
78+
onClick={closeTab}>
8279
<div
8380
className={`wizard-container ${!open ? 'wizard--hidden' : ''}`}
8481
style={{

otoroshi/javascript/src/pages/ApiEditor/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function Subscriptions(props) {
219219
const deleteItem = item => client.delete(item)
220220
.then(() => window.location.reload())
221221

222-
if (rawSubscriptions.isLoading || !item)
222+
if (rawSubscriptions.isLoading)
223223
return <SimpleLoader />
224224

225225
return <Table
@@ -1900,7 +1900,7 @@ function NewAPI(props) {
19001900
.then(() => historyPush(history, location, `/apis/${value.id}`));
19011901
}
19021902

1903-
if (!value || !item)
1903+
if (!value)
19041904
return <SimpleLoader />
19051905

19061906
return <>

otoroshi/javascript/src/pages/RouteDesigner/Designer.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,10 +1837,10 @@ const UnselectedNode = ({
18371837
ports,
18381838
}) => {
18391839
if (route && route.frontend && route.backend && !hideText) {
1840-
const frontend = route.frontend;
1841-
const backend = route.backend;
1840+
const frontend = route.frontend
1841+
const backend = route.backend
18421842

1843-
const rawMethods = (frontend.methods || []).filter((m) => m.length);
1843+
const rawMethods = (frontend.methods || []).filter((m) => m.length)
18441844

18451845
const allMethods =
18461846
rawMethods && rawMethods.length > 0
@@ -1853,18 +1853,18 @@ const UnselectedNode = ({
18531853
{m}
18541854
</span>
18551855
))
1856-
: [<span className="badge bg-success">ALL</span>];
1856+
: [<span className="badge bg-success">ALL</span>]
18571857

18581858
const copy = (value, setCopyIconName) => {
18591859
if (window.isSecureContext && navigator.clipboard) {
1860-
navigator.clipboard.writeText(value);
1860+
navigator.clipboard.writeText(value)
18611861
} else {
1862-
unsecuredCopyToClipboard(value);
1862+
unsecuredCopyToClipboard(value)
18631863
}
1864-
setCopyIconName('fas fa-check');
1864+
setCopyIconName('fas fa-check')
18651865

18661866
setTimeout(() => {
1867-
setCopyIconName('fas fa-copy');
1867+
setCopyIconName('fas fa-copy')
18681868
}, 2000);
18691869
};
18701870

otoroshi/javascript/src/pages/RouteDesigner/Sidebar.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export default ({ route }) => {
7272
const params = new URLSearchParams(window.location.search);
7373
const onTryIt = window.location.search.includes('showTryIt') ? 'showTryIt' : '';
7474
const queryTab = params.get('tab');
75-
// console.log(currentTab, tab, onTryIt, queryTab)
7675

7776
if (onTryIt) {
7877
return onTryIt === tab ? 'active' : '';

otoroshi/javascript/src/pages/RouteDesigner/TryIt.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,6 @@ export default function ({ route, hide }) {
279279

280280
const { clientId, clientSecret } = apikey || request.apikey;
281281

282-
console.log(format, apikey, apikeyHeader);
283-
284282
return {
285283
...Object.fromEntries(
286284
Object.entries(request.headers).filter(
@@ -858,9 +856,7 @@ const ReportView = ({ report, search, setSearch, unit, setUnit, sort, setSort, f
858856
else if (unit === 'ns') return value;
859857
else return roundNsTo(value);
860858
}
861-
};
862-
863-
console.log(selectedStep, selectedPlugin);
859+
}
864860

865861
const spaces = range(0, 50)
866862
.map((i) => ' ')

otoroshi/javascript/src/pages/SimpleLoginPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export class SimpleLoginPage extends Component {
1717
e.preventDefault();
1818

1919
const loginPage = this.getLink(this.state.email);
20-
console.log(loginPage);
2120
try {
2221
fetch(loginPage, {
2322
credentials: 'include',

otoroshi/javascript/src/pages/U2FLoginPage.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ export class U2FLoginPage extends Component {
220220
})
221221
.then((r) => r.json(), this.handleError('Authentication error, sorry ...'))
222222
.then((data) => {
223-
console.log(data);
224223
this.setState(
225224
{ error: null, email: '', password: '', message: `Login successfully` },
226225
() => {

otoroshi/javascript/tests/playwright/.auth/admin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"cookies": [
33
{
44
"name": "otoroshi-session",
5-
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiNHVFOGxJcE1aM284YUF4ckhjTGQwdmJlWWdBM1dTbklPZHZxak51cURyWUVJeE1CdVhuZ21ONWVkNzhraXlLYyJ9LCJleHAiOjE3NDMzMzE1MTQsIm5iZiI6MTc0MzA3MjMxNCwiaWF0IjoxNzQzMDcyMzE0fQ.2GcNvKBe5dbrea2zXCZIPSoGD8p7-MFBN5xAUH9qOfw",
5+
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiZmNaM01DWFR3eHRXQnFVQW83anZjSFplelh0YjhYOEF5Uk4xYzA1V1BwVklwTnM3a1RBV3A3b2l5NnA1RTE2TyJ9LCJleHAiOjE3NDM0MjA5MTUsIm5iZiI6MTc0MzE2MTcxNSwiaWF0IjoxNzQzMTYxNzE1fQ.-jZx627WCcE4DbfLSCHKqEdRkdvO13_bYLPU9FXDrU8",
66
"domain": ".oto.tools",
77
"path": "/",
8-
"expires": 1743331514.856809,
8+
"expires": 1743420915.546233,
99
"httpOnly": true,
1010
"secure": false,
1111
"sameSite": "Lax"

otoroshi/javascript/tests/playwright/.auth/tester.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"cookies": [
33
{
44
"name": "otoroshi-session",
5-
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoieXJ2M3ZYS09MRExCanhuV1dIRWltTFFPRGQ4dmxMUUY2QkN0TWFjb0FKMVVZVGdRdmxJVnY2ajMzSEFyb3RzVyJ9LCJleHAiOjE3NDMzMzE1MTMsIm5iZiI6MTc0MzA3MjMxMywiaWF0IjoxNzQzMDcyMzEzfQ.YJtUtCm9BXpXd4yZdyQ6sR9jmgmnWTqj3QV8AESC5RQ",
5+
"value": "eyJhbGciOiJIUzI1NiJ9.eyJkYXRhIjp7ImJvdXNyIjoiZ1RhUHc2T3lFbjduMnhBNjZkMFk4NFRxNFNySnpoZ2ttYmZJRWdVR3pvUHEwdWZtVnlNenNrRk5uaEdlbHNIUSJ9LCJleHAiOjE3NDM0MjA5MTQsIm5iZiI6MTc0MzE2MTcxNCwiaWF0IjoxNzQzMTYxNzE0fQ.J1y4gFOxGO15_Gvkc6diXM-gDDMU41WHgvecXUANwXQ",
66
"domain": ".oto.tools",
77
"path": "/",
8-
"expires": 1743331513.893576,
8+
"expires": 1743420914.599008,
99
"httpOnly": true,
1010
"secure": false,
1111
"sameSite": "Lax"

0 commit comments

Comments
 (0)