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

Logerrors - Logo Added #9

Merged
merged 4 commits into from
Jan 2, 2025
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
2 changes: 1 addition & 1 deletion lwr.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"id": "example",
"path": "/",
"layoutTemplate":"$layoutsDir/index.html",
"layoutTemplate": "$layoutsDir/index.html",
"rootComponent": "my/app",
"bootstrap": {
"syntheticShadow": true
Expand Down
14 changes: 7 additions & 7 deletions scripts/copy-slds.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from "fs";
import fs from 'fs';
fs.cp(
"./node_modules/@salesforce-ux/design-system/assets/",
"./src/assets",
{ recursive: true },
() => {
console.log("Done copying SLDS resources");
}
'./node_modules/@salesforce-ux/design-system/assets/',
'./src/assets',
{ recursive: true },
() => {
console.log('Done copying SLDS resources');
}
);
33 changes: 21 additions & 12 deletions src/layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DebugForce</title>
<link rel="stylesheet" href="$assetsDir/styles/salesforce-lightning-design-system.css" />
</head>
<body>
{{{body}}}
{{{lwr_resources}}}
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DebugForce</title>

<link
rel="icon"
href="https://res.cloudinary.com/dxnxpimpv/image/upload/v1735788146/DebugForce_rpqubu.svg"
type="image/x-icon"
/>

<link
rel="stylesheet"
href="$assetsDir/styles/salesforce-lightning-design-system.css"
/>
</head>
<body>
{{{body}}} {{{lwr_resources}}}
</body>
</html>
22 changes: 11 additions & 11 deletions src/modules/main/logFileProcessor/logFileProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ export default class LogFileProcessor extends LightningElement {
const RegexMap = eventsRegexMain.get(lineEvent);
for (let [key, value] of RegexMap) {
if (key.test(line)) {
console.log(
value,
'=>',
key.test(line),
'=>',
line
);
// console.log(
// value,
// '=>',
// key.test(line),
// '=>',
// line
// );
this.createCodeUnit(line, value, idx + 1);
break;
}
Expand Down Expand Up @@ -171,12 +171,12 @@ export default class LogFileProcessor extends LightningElement {
'EXCEPTION_THROWN',
errStr
);
console.log('Exception Thrown: ', errStr);
// console.log('Exception Thrown: ', errStr);
}
} else if (lineEvent === 'FATAL_ERROR') {
if (fatalErrRegex.test(line)) {
let errStr = line.split('|').pop().trim();
console.log('Fatal Error: ', errStr);
// console.log('Fatal Error: ', errStr);
this.createErrorObject(
idx + 1,
'FATAL_ERROR',
Expand Down Expand Up @@ -216,7 +216,7 @@ export default class LogFileProcessor extends LightningElement {
*/
createCodeUnit(line, type, index) {
let enteredCondition = false;
console.log('Type: ', type);
// console.log('Type: ', type);
let cu = {};
cu.unitDuration = index;
if (type === 'Class-Action') {
Expand Down Expand Up @@ -418,7 +418,7 @@ export default class LogFileProcessor extends LightningElement {
if (this.codeUnitsStack.length !== 0) {
// console.log('Entered length condition');
let CUTop = this.currentCU();
console.log(CUTop.childUnitsandLines);
// console.log(CUTop.childUnitsandLines);
if (
CUTop.childUnitsandLines === null ||
CUTop.childUnitsandLines === undefined
Expand Down
5 changes: 5 additions & 0 deletions src/modules/my/appNavigation/appNavigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<div>
<div class="slds-context-bar">
<div class="slds-context-bar__primary navLeft">
<img
src="https://res.cloudinary.com/dxnxpimpv/image/upload/v1735788146/DebugForce_rpqubu.svg"
class="slds-m-right_medium"
alt=""
/>
<h1
class="appName slds-context-bar__label-action slds-context-bar__app-name"
>
Expand Down