Skip to content

Commit

Permalink
streaming api tool
Browse files Browse the repository at this point in the history
  • Loading branch information
dufoli committed May 21, 2024
1 parent 7535f3a commit 9a552d5
Show file tree
Hide file tree
Showing 6 changed files with 1,072 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/manifest-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"popup.html",
"apex-runner.html",
"log.html",
"streaming.html",
"data-export.html",
"data-import.html",
"inspect.html",
Expand Down
1 change: 1 addition & 0 deletions addon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"popup.html",
"apex-runner.html",
"log.html",
"streaming.html",
"data-export.html",
"data-import.html",
"inspect.html",
Expand Down
161 changes: 161 additions & 0 deletions addon/streaming.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-Light.woff2);
font-weight:300
}
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-LightItalic.woff2);
font-style:italic;
font-weight:300
}
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-Regular.woff2);
font-weight:400
}
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-Italic.woff2);
font-style:italic;
font-weight:400
}
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-Bold.woff2);
font-weight:700
}
@font-face {
font-family:'Salesforce Sans';
src:url(fonts/SalesforceSans-BoldItalic.woff2);
font-style:italic;
font-weight:700
}
* {
box-sizing: border-box;
vertical-align: middle;
}
html {
height: 100%;
}
body {
font-family: "Salesforce Sans", Arial, sans-serif;
font-size: .8125rem;
overflow: hidden;
margin: 0;
height: 100%;
display: flex;
background-color: #B0C4DF !important;
background-image: url('chrome-extension://__MSG_@@extension_id__/images/lightning_blue_background.png') !important;
background-repeat: no-repeat !important;
background-size: contain !important;
background-position: 0px 48px !important;
}
#root {
display: flex;
flex-grow: 1;
width: 100%;
}
[data-reactroot] {
display: flex;
flex-grow: 1;
flex-direction: column;
width: 100%;
}
[hidden] {
display: none !important;
}

#user-info {
background: #f7f9fb;
min-height: 48px;
display: flex;
align-items: center;
padding: 0 12px;
flex-wrap: wrap;
}

#user-info h1 {
padding: 0 6px 0 10px;
}

#user-info span {
font-size: 1em;
}

.sf-link {
background-color: rgb(6, 28, 63);
border-radius: 3px;
line-height: 1.8em;
text-decoration: none;
display: inline-block;
padding: 2px;
color: white;
padding-right: 1em;
}

.sf-link svg {
width: 1.8em;
height: 1.8em;
display: block;
margin-left: 1px;
margin-right: 1em;
float: left;
background-color: #ef7ead;
border-radius: 2px;
fill: white;
}

.flex-right {
margin-left: auto;
display: flex;
align-items: center;
}

.prod {
background-color: #e0a4b5 !important;
background-image: url('chrome-extension://__MSG_@@extension_id__/images/lightning_red_background.png') !important;
background-repeat: no-repeat !important;
background-size: contain !important;
background-position: 0px 48px !important;
}
#user-info {
background: #f7f9fb;
height: 48px;
display: flex;
align-items: center;
padding: 0 12px;
flex-wrap: wrap;
}

#user-info h1 {
padding: 0 6px 0 10px;
}

#user-info span {
font-size: 1em;
}
.sf-link {
background-color: rgb(6, 28, 63);
border-radius: 3px;
line-height: 1.8em;
text-decoration: none;
display: inline-block;
padding: 2px;
color: white;
padding-right: 1em;
}

.sf-link svg {
width: 1.8em;
;
height: 1.8em;
;
display: block;
margin-left: 1px;
margin-right: 1em;
float: left;
background-color: #ef7ead;
border-radius: 2px;
fill: white;
}
19 changes: 19 additions & 0 deletions addon/streaming.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>...</title>
<link rel="stylesheet" href="button.css">
<link rel="stylesheet" href="slds-spinner.css">
<link rel="stylesheet" href="styles/slds/slds.css">

<link rel="stylesheet" href="streaming.css">
</head>
<body>
<div id="root"></div>
<script src="react.js"></script>
<script src="react-dom.js"></script>
<script src="button.js"></script>
<script type="module" src="streaming.js"></script>
</body>
</html>
Loading

0 comments on commit 9a552d5

Please sign in to comment.