chore: use tabs (#46)
parent
c2ad89679f
commit
1aff065c9e
@ -0,0 +1,10 @@
|
|||||||
|
# https://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
indent_style = tab
|
||||||
|
tab_width = 2
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_style = space
|
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"printWidth": 120,
|
||||||
|
"singleQuote": false,
|
||||||
|
"semi": true,
|
||||||
|
"useTabs": true
|
||||||
|
}
|
@ -1,50 +1,38 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Direct Upload Demo | Cloudflare Pages</title>
|
<title>Direct Upload Demo | Cloudflare Pages</title>
|
||||||
<link href="style.css" rel="stylesheet" />
|
<link href="style.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h3>Example project</h3>
|
<h3>Example project</h3>
|
||||||
<h1>Welcome to Cloudflare Pages</h1>
|
<h1>Welcome to Cloudflare Pages</h1>
|
||||||
<p>
|
<p>
|
||||||
Upload your prebuilt assets directly to Pages and deploy <br />
|
Upload your prebuilt assets directly to Pages and deploy <br />
|
||||||
your project to the Cloudflare edge within seconds.
|
your project to the Cloudflare edge within seconds.
|
||||||
</p>
|
</p>
|
||||||
<p>Create new deployments using:</p>
|
<p>Create new deployments using:</p>
|
||||||
<section class="options">
|
<section class="options">
|
||||||
<img src="assets/terminal.svg" />
|
<img src="assets/terminal.svg" />
|
||||||
<a
|
<a href="https://dash.cloudflare.com/?to=/:account/pages/new/wrangler-guide" target="_blank"> Wrangler CLI</a>
|
||||||
href="https://dash.cloudflare.com/?to=/:account/pages/new/wrangler-guide"
|
<img src="assets/cloud-upload.svg" />
|
||||||
target="_blank"
|
<a href="https://dash.cloudflare.com/?to=/:account/pages/new/upload" target="_blank"> Dashboard</a>
|
||||||
> Wrangler CLI</a
|
</section>
|
||||||
>
|
</div>
|
||||||
<img src="assets/cloud-upload.svg" />
|
|
||||||
<a
|
|
||||||
href="https://dash.cloudflare.com/?to=/:account/pages/new/upload"
|
|
||||||
target="_blank"
|
|
||||||
> Dashboard</a
|
|
||||||
>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section class="learn-more">
|
<section class="learn-more">
|
||||||
<a
|
<a href="https://developers.cloudflare.com/pages/platform/direct-uploads">
|
||||||
href="https://developers.cloudflare.com/pages/platform/direct-uploads"
|
<button>Learn more</button>
|
||||||
>
|
</a>
|
||||||
<button>Learn more</button>
|
</section>
|
||||||
</a>
|
<div class="logo">
|
||||||
</section>
|
<a href="https://pages.cloudflare.com/" target="_blank"> <img src="assets/cloudflare-pages.svg" /></a>
|
||||||
<div class="logo">
|
</div>
|
||||||
<a href="https://pages.cloudflare.com/" target="_blank">
|
</div>
|
||||||
<img src="assets/cloudflare-pages.svg"
|
</body>
|
||||||
/></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,159 +1,159 @@
|
|||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
|
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial,
|
||||||
margin: auto;
|
sans-serif;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-image {
|
.bg-image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -88%;
|
bottom: -88%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 165px 0 124px;
|
padding: 165px 0 124px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border: #fbab40;
|
border: #fbab40;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-color: #242628;
|
background-color: #242628;
|
||||||
background-image: url(./assets/world.svg);
|
background-image: url(./assets/world.svg);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position-x: center;
|
background-position-x: center;
|
||||||
background-position-y: 70px;
|
background-position-y: 70px;
|
||||||
background-origin: padding-box;
|
background-origin: padding-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header h3 {
|
.header h3 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ff9e40;
|
color: #ff9e40;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header > h1 {
|
.header > h1 {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 48px;
|
font-size: 48px;
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header > p {
|
.header > p {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
margin: 16px 0px;
|
margin: 16px 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options {
|
.options {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options > a {
|
.options > a {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
margin: 0px 8px;
|
margin: 0px 8px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.options > a:first-of-type {
|
.options > a:first-of-type {
|
||||||
margin-right: 30px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
margin-top: 75px;
|
margin-top: 75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo > img {
|
.logo > img {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.learn-more > a > button {
|
.learn-more > a > button {
|
||||||
background: #f6821f;
|
background: #f6821f;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: none;
|
border: none;
|
||||||
width: 180px;
|
width: 180px;
|
||||||
margin-top: 78px;
|
margin-top: 78px;
|
||||||
height: 55px;
|
height: 55px;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 19px;
|
line-height: 19px;
|
||||||
background: rgba(246, 130, 31, 1);
|
background: rgba(246, 130, 31, 1);
|
||||||
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
|
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.25);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
.container {
|
.container {
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
background-position-y: center;
|
background-position-y: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 600px) {
|
@media screen and (max-width: 600px) {
|
||||||
|
.container {
|
||||||
.container{
|
background-size: contain;
|
||||||
background-size: contain;
|
background-position-y: center;
|
||||||
background-position-y: center;
|
}
|
||||||
}
|
pre {
|
||||||
pre {
|
font-size: 0.8rem;
|
||||||
font-size: 0.8rem;
|
padding: 8px 12px;
|
||||||
padding: 8px 12px;
|
width: 100%;
|
||||||
width: 100%;
|
}
|
||||||
}
|
|
||||||
|
body {
|
||||||
body {
|
width: 100vw;
|
||||||
width: 100vw;
|
}
|
||||||
}
|
|
||||||
|
.header img {
|
||||||
.header img {
|
margin-left: 0;
|
||||||
margin-left: 0;
|
}
|
||||||
}
|
|
||||||
|
.installation-steps {
|
||||||
.installation-steps {
|
width: 100%;
|
||||||
width: 100%;
|
box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
}
|
||||||
}
|
|
||||||
|
h1 {
|
||||||
h1 {
|
font-size: 1.6rem;
|
||||||
font-size: 1.6rem;
|
}
|
||||||
}
|
|
||||||
|
ol {
|
||||||
ol {
|
padding-left: 20px;
|
||||||
padding-left: 20px;
|
}
|
||||||
}
|
|
||||||
|
li {
|
||||||
li {
|
margin-bottom: 5px;
|
||||||
margin-bottom: 5px;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,37 +1,38 @@
|
|||||||
{
|
{
|
||||||
"name": "pages-action",
|
"name": "pages-action",
|
||||||
"version": "1.3.0",
|
"version": "1.3.0",
|
||||||
"description": "Publish to Cloudflare Pages",
|
"description": "Publish to Cloudflare Pages",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx esbuild src/index.ts --bundle --platform=node --target=es2021 --outfile=index.js",
|
"build": "npx esbuild src/index.ts --bundle --platform=node --target=es2021 --outfile=index.js",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install",
|
||||||
},
|
"prettify": "prettier . --write --ignore-unknown"
|
||||||
"repository": {
|
},
|
||||||
"type": "git",
|
"repository": {
|
||||||
"url": "git+https://github.com/cloudflare/pages-action.git"
|
"type": "git",
|
||||||
},
|
"url": "git+https://github.com/cloudflare/pages-action.git"
|
||||||
"keywords": [
|
},
|
||||||
"Cloudflare Pages",
|
"keywords": [
|
||||||
"GitHub Actions"
|
"Cloudflare Pages",
|
||||||
],
|
"GitHub Actions"
|
||||||
"license": "MIT",
|
],
|
||||||
"bugs": {
|
"license": "MIT",
|
||||||
"url": "https://github.com/cloudflare/pages-action/issues"
|
"bugs": {
|
||||||
},
|
"url": "https://github.com/cloudflare/pages-action/issues"
|
||||||
"homepage": "https://github.com/cloudflare/pages-action#readme",
|
},
|
||||||
"dependencies": {
|
"homepage": "https://github.com/cloudflare/pages-action#readme",
|
||||||
"@actions/core": "^1.10.0",
|
"dependencies": {
|
||||||
"@actions/github": "^5.1.1",
|
"@actions/core": "^1.10.0",
|
||||||
"@cloudflare/types": "^6.18.16",
|
"@actions/github": "^5.1.1",
|
||||||
"shellac": "^0.7.2",
|
"@cloudflare/types": "^6.18.16",
|
||||||
"undici": "^5.11.0"
|
"shellac": "^0.7.2",
|
||||||
},
|
"undici": "^5.11.0"
|
||||||
"devDependencies": {
|
},
|
||||||
"@types/node": "^18.11.3",
|
"devDependencies": {
|
||||||
"esbuild": "^0.15.12",
|
"@types/node": "^18.11.3",
|
||||||
"husky": "^8.0.1",
|
"esbuild": "^0.15.12",
|
||||||
"prettier": "^2.6.2",
|
"husky": "^8.0.1",
|
||||||
"typescript": "^4.6.4"
|
"prettier": "^2.8.1",
|
||||||
}
|
"typescript": "^4.6.4"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue