Skip to content

Commit

Permalink
Make all demos standalone by removing the shared directory
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Sep 19, 2023
1 parent 992c7b4 commit 2d598bd
Show file tree
Hide file tree
Showing 53 changed files with 319 additions and 91 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ To add a new demo:

1. Edit the code (such as `index.html` or `style.css`) in the new directory. Add any files you need.

1. Use the shared CSS, JS, and images from the `shared` directory.

The template demo already links to the shared CSS, JS, and images. This avoids having to repeat basic styling and typography CSS code, or having to create your own images.

1. Add a link to your demo in this `README.md` file, in a new row in one of the tables.


Expand Down
6 changes: 2 additions & 4 deletions css-mirroring-sourcemaps-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>React Demo App for CSS Mirroring</title>
<link rel="icon" type="image/png" sizes="32x32" href="../shared/img/logo.png">
<link rel="stylesheet" href="../shared/css/shared.css">
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Demo app to test sourcemap support of the VS Code Edge DevTools extension</h1>
<img src="../shared/img/logo.png" alt="The Microsoft Edge logo">
<img src="./logo.png" alt="The Microsoft Edge logo">
<a>This is a basic app to test the sourcemap support for CSS mirroring in <a href="https://aka.ms/devtools-for-code">the Edge DevTools extension for Visual studio code</a>.</p>

<img alt="screenshot of the app inside VS code" src="sourcemaps-demo.png">
Expand All @@ -28,7 +27,6 @@ <h1>Demo app to test sourcemap support of the VS Code Edge DevTools extension</h
</ol>

<p>We have an <a href="https://github.com/microsoft/vscode-edge-devtools/issues/965">issue open in the Extension repository</a> and we'd love to get your feedback there!</p>
<script src="../shared/js/shared.js"></script>
<script src="script.js"></script>
</body>
</html>
File renamed without changes
23 changes: 23 additions & 0 deletions css-mirroring-sourcemaps-demo/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
* {
box-sizing: border-box;
}

html,
input,
textarea,
button {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
font-size: 16px;
font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;
font-weight: 400;
}

html {
min-height: 100vh;
}

img {
float: left;
margin: 1rem;
Expand Down
7 changes: 1 addition & 6 deletions custom-highlight-api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Custom Highlight API demo</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../shared/img/logo.png"
/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="style.css" />
</head>
<body>
Expand Down
8 changes: 1 addition & 7 deletions devtools-3d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
<head>
<title>3D View demo</title>
<meta charset="utf-8" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../shared/img/logo.png"
/>
<link rel="stylesheet" href="../shared/css/shared.css" />
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="style.css" />
</head>
<body>
Expand Down
20 changes: 20 additions & 0 deletions devtools-3d/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
* {
box-sizing: border-box;
}

html,
input,
textarea,
button {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
font-size: 16px;
font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;
font-weight: 400;
}

html {
min-height: 100vh;
margin: 0;
font-size: 18pt;
}
Expand Down
2 changes: 1 addition & 1 deletion devtools-a11y-testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/light-theme.css" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)">
<link rel="stylesheet" href="css/dark-theme.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="css/styles.css">
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
</head>
<body>
<header>
Expand Down
8 changes: 1 addition & 7 deletions devtools-animated-property-issue/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DevTools issue: animating a CSS property that requires layout</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="../shared/img/logo.png"
/>
<link rel="stylesheet" href="../shared/css/shared.css" />
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="style.css" />
</head>
<body>
Expand Down
Binary file added devtools-animated-property-issue/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 28 additions & 3 deletions devtools-animated-property-issue/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
* {
box-sizing: border-box;
}

html,
input,
textarea,
button {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
font-size: 16px;
font-family: Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif;
font-weight: 400;
}

html {
min-height: 100vh;
}

.wrapper {
display: grid;
gap: .75rem;
Expand All @@ -24,7 +47,7 @@
.spinner {
width: 50px;
height: 50px;
background: url(../shared/img/logo.png) no-repeat center center;
background: url(./logo.png) no-repeat center center;
background-size: contain;
}

Expand All @@ -41,6 +64,7 @@
width: 50px;
height: 50px;
}

100% {
width: 100px;
height: 100px;
Expand All @@ -49,9 +73,10 @@

@keyframes good {
0% {
transform:scale(1);
transform: scale(1);
}

100% {
transform: scale(2);
}
}
}
2 changes: 1 addition & 1 deletion devtools-console/error-assert.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Creating error reports and assertions in Console</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript error reported in the Console tool</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/live-expressions.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console Live Expressions</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="../shared/img/logo.png" />
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<style>
h1 {
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: log, info, error and warn</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: log, info, error and warn</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-types.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: logging different types</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-with-groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: grouping logs</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-with-specifiers.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: Logging with specifiers</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/logging-with-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: Using table</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
</head>
<body>
<h1>Console demos: Using table</h1>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/mousemove-no-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mouse movement without logging</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
</head>
<body>
<h1>Console demos: no logging</h1>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/mousemove.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Console messages examples: Using table</title>
<link rel="stylesheet" href="styles.css">
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
</head>
<body>
<h1>Console demos: Logging lots of information</h1>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/network-error-fixed.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fixed network error reported in Console</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/network-error-reported.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Network error reporting in Console and UI</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/network-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Network error reported in Console</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-console/trace.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Creating traces in Console</title>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion devtools-contrast-bugfix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<title>Testing all badges in DevTools for contrast issues</title>
<style>
html {
Expand Down
2 changes: 1 addition & 1 deletion devtools-inspect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Inspector Demonstration</title>
<link rel="stylesheet" href="styles.css" />
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
</head>
<body>
<h1>Inspect Demo</h1>
Expand Down
2 changes: 1 addition & 1 deletion devtools-js-get-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!doctype html>
<html>
<head>
<link rel="shortcut icon" href="../shared/img/logo.png"/>
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<title>Demo: Debugging JavaScript with Microsoft Edge DevTools</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
Expand Down
2 changes: 1 addition & 1 deletion devtools-performance-get-started/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>Sluggish Animation</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" sizes="32x32" href="../shared/img/logo.png">
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>

Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion devtools-performance-get-started/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ button {
left: 0;
width: 32px;
height: 32px;
background: url(../shared/img/logo1024.png);
background: url(./logo1024.png);
background-size: contain;
}
2 changes: 1 addition & 1 deletion devtools-target-pseudo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta charset="utf-8">
<title>CSS :target pseudo-class demo</title>
<link rel="icon" type="image/png" sizes="32x32" href="../shared/img/logo.png">
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<style>
:root {
--foreground: #111;
Expand Down
3 changes: 1 addition & 2 deletions email-client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Email inbox</title>
<link rel="icon" type="image/png" sizes="32x32" href="../shared/img/logo.png">
<link rel="stylesheet" href="../shared/css/shared.css">
<link rel="icon" type="image/png" href="https://edgestatic.azureedge.net/welcome/static/favicon.png">
<link rel="stylesheet" href="./style.css">
<link rel="manifest" href="./manifest.json">
</head>
Expand Down
Loading

0 comments on commit 2d598bd

Please sign in to comment.