-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
166 additions
and
115 deletions.
There are no files selected for viewing
Submodule internal
updated
from e49dfd to 4d3506
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
NEXT_PUBLIC_PROJECT=Master CSS | ||
NEXT_PUBLIC_VERSION=2.0.0-rc.40 | ||
NEXT_PUBLIC_VERSION=2.0.0-rc.41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
112 changes: 55 additions & 57 deletions
112
site/app/[locale]/guide/installation/(tabs)/cdn/components/CDNCodes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,58 @@ | ||
import CodeTabs from 'internal/components/CodeTabs' | ||
|
||
export default () => <CodeTabs> | ||
{[ | ||
{ | ||
name: 'iife.html', | ||
lang: 'html', | ||
code: ` | ||
<!DOCTYPE html> | ||
<html lang="en" style="display: none"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="preload" as="script" href="https://cdn.master.co/css-runtime@rc"> | ||
<link rel="preload" as="style" href="https://cdn.master.co/normal.css"> | ||
<link rel="stylesheet" href="https://cdn.master.co/normal.css"> | ||
<script> | ||
window.masterCSSConfig = { | ||
variables: { | ||
primary: '#000000' | ||
} | ||
export default () => <CodeTabs children={[ | ||
{ | ||
name: 'iife.html', | ||
lang: 'html', | ||
children: ` | ||
<!DOCTYPE html> | ||
<html lang="en" style="display: none"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="preload" as="script" href="https://cdn.master.co/css-runtime@rc"> | ||
<link rel="preload" as="style" href="https://cdn.master.co/normal.css"> | ||
<link rel="stylesheet" href="https://cdn.master.co/normal.css"> | ||
<script> | ||
window.masterCSSConfig = { | ||
variables: { | ||
primary: '#000000' | ||
} | ||
</script> | ||
+ <script src="https://cdn.master.co/css-runtime@rc"></script> | ||
</head> | ||
<body> | ||
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1> | ||
</body> | ||
</html> | ||
` | ||
}, | ||
{ | ||
name: 'esm.html', | ||
lang: 'html', | ||
code: ` | ||
<!DOCTYPE html> | ||
<html lang="en" style="display: none"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdn.master.co/normal.css"> | ||
<link rel="preload" as="style" href="https://cdn.master.co/normal.css"> | ||
<link rel="modulepreload" href="https://cdn.master.co/css-runtime@rc/+esm"> | ||
+ <script type="module"> | ||
+ import { initCSSRuntime } from 'https://cdn.master.co/css-runtime@rc/+esm' | ||
+ initCSSRuntime({ | ||
+ variables: { | ||
+ primary: '#000000' | ||
+ } | ||
+ }) | ||
+ </script> | ||
</head> | ||
<body> | ||
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1> | ||
</body> | ||
</html> | ||
` | ||
} | ||
]} | ||
</CodeTabs> | ||
} | ||
</script> | ||
+ <script src="https://cdn.master.co/css-runtime@rc"></script> | ||
</head> | ||
<body> | ||
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1> | ||
</body> | ||
</html> | ||
` | ||
}, | ||
{ | ||
name: 'esm.html', | ||
lang: 'html', | ||
children: ` | ||
<!DOCTYPE html> | ||
<html lang="en" style="display: none"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://cdn.master.co/normal.css"> | ||
<link rel="preload" as="style" href="https://cdn.master.co/normal.css"> | ||
<link rel="modulepreload" href="https://cdn.master.co/css-runtime@rc/+esm"> | ||
+ <script type="module"> | ||
+ import { initCSSRuntime } from 'https://cdn.master.co/css-runtime@rc/+esm' | ||
+ initCSSRuntime({ | ||
+ variables: { | ||
+ primary: '#000000' | ||
+ } | ||
+ }) | ||
+ </script> | ||
</head> | ||
<body> | ||
<h1 class="**fg:primary** **font:40** **font:heavy** **italic** **m:12x** **text:center**">Hello World</h1> | ||
</body> | ||
</html> | ||
` | ||
} | ||
]} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.