-
Notifications
You must be signed in to change notification settings - Fork 280
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
Create Vercel app for onefetch with ASCII preview #701
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
651ccf2
Create folder for vercel app
spenserblack d28934c
Ignore vercel directory for CI
spenserblack fe0a333
Merge remote-tracking branch 'upstream/main'
o2sh 3bdc8c2
Merge remote-tracking branch 'upstream/main'
o2sh d9e3cb2
Exclude contents of vercel folder from package
spenserblack 434866b
Merge remote and local
spenserblack c95a586
Initialize Svelte+TS project
spenserblack add2e43
Add API endpoint for getting all languages
spenserblack d0f920b
Convert YAML to JSON in build
spenserblack 0d19df7
Add API endpoint for getting a single language
spenserblack 74a9edd
Don't stringify JSON before responding
spenserblack 53d597e
Add function to get language data
spenserblack 39ebcc5
Pluralize API
spenserblack 4ddabac
Add some styling with a simple navbar
spenserblack 3fa609c
Add route to ASCII preview
spenserblack dc22780
Colorize ASCII previews
spenserblack e90fda9
Create Vercel app with ASCII preview
spenserblack fedbb77
Reduce vertical spacing in ASCII previews
spenserblack f30ebed
Add installation instructions to homepage
spenserblack 1a11f9b
Set type of key parameter
spenserblack 9f354a6
Fix incorrect response value
spenserblack b399750
Darken background of dark preview
spenserblack ad93cdf
Display colored chip next to name in preview
spenserblack 0fe081e
Move chip out of `<h3>`
spenserblack 819d88f
Add language count to preview header
spenserblack ff57618
Fix chip on different line than title
spenserblack 4cc5d65
remove unused div
o2sh 58601d0
fix hyperlink
o2sh 0f104be
remove useless css class
o2sh 655e148
remove bg color of nav
o2sh 083f871
remove unused div
o2sh ddc0850
remove app.css
o2sh 85c975a
try to fix build
o2sh 020c51e
bump sakura.css dep
o2sh f5ce56e
revert change on tsconfig.ts
o2sh 959acbb
update tsconfig
o2sh d30407a
remove api
o2sh f36f610
directly read from yaml
o2sh 2b75854
revert change on tsconfig
o2sh 135589c
bg set to white when dark checkbox is false
o2sh 6eb4443
remove yarn.lock
o2sh c054891
reorganize folders
o2sh 16fde81
link sakura.css from HTML
o2sh e25e3d6
switch to black if not dark and color is white
o2sh aaaa764
only default to terminal fg color when ansi
o2sh b0a0f28
add .gitattributes file to exclude vercel from stats
o2sh 1f7aed9
switch to language-documentation
o2sh b5ef4af
fix ally warning + type
o2sh 16d1516
simplify logic for true color checkbox
o2sh 22f00a9
run prettier on all files
o2sh 770c70a
added eslint
o2sh 8d29b9d
run prettier
o2sh 63b7544
run prettier
o2sh 486568d
static assets are served from root path
o2sh 7b8a2ea
prettier on .svelte files
o2sh c93ef82
Resolve type error on YAML
spenserblack 4001e80
Ignore `dist/`
spenserblack 8edb82f
Make `languages.yaml` module pattern more specific
spenserblack 0179115
use sakura earthly theme
o2sh 9ce8e13
Add Vercel Deployment CI
spenserblack 558ccdb
Fix labels for preview checkboxes
spenserblack 506c9c0
Fix check step
spenserblack b64d590
Fix styling of labels
spenserblack 7625a4a
Update vercel deployment (#148)
spenserblack d69c8f9
Make svelte-check more strict in CI
spenserblack dd02212
Rename main vercel CI job
spenserblack bdba257
Register Vercel subproject for dependabot
spenserblack 90fcea0
fix alignement of label + checkbox
o2sh 9a59136
add entry for vercel/ in CODEOWNERS
o2sh 75c6e0c
fix svelte check
o2sh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 @@ | ||
vercel/** linguist-documentation |
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Vercel Deployment CI | ||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- "vercel/**" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "vercel/**" | ||
|
||
jobs: | ||
check: | ||
name: Check Vercel Code Quality | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: vercel | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: npm | ||
cache-dependency-path: vercel/package-lock.json | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
# NOTE Since build is automated by vercel, it's probably | ||
# redundant to test it here, too | ||
- name: Svelte Check | ||
run: npm run check -- --fail-on-warnings --fail-on-hints |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 2019, | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["svelte3"], | ||
"extends": ["eslint:recommended"], | ||
"overrides": [ | ||
{ | ||
"files": ["**/*.svelte"], | ||
"processor": "svelte3/svelte3" | ||
} | ||
] | ||
} |
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,6 @@ | ||
.DS_Store | ||
/node_modules | ||
/build | ||
/.vercel_build_output | ||
.vercel | ||
dist/ |
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,10 @@ | ||
{ | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"bracketSameLine": true, | ||
"singleAttributePerLine": false, | ||
"quoteProps": "consistent" | ||
} |
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,12 @@ | ||
# Onefetch Web | ||
|
||
## Development | ||
|
||
```bash | ||
# setup | ||
## install dependencies | ||
npm i | ||
|
||
# run server with hot reloading | ||
npm run dev | ||
``` |
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,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" href="/onefetch.ico" /> | ||
<link rel="stylesheet" href="/sakura.css" type="text/css" /> | ||
<title>Onefetch - ASCII Preview</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/routes/ascii-preview/main.ts"></script> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="icon" href="/onefetch.ico" /> | ||
<link rel="stylesheet" href="/sakura.css" type="text/css" /> | ||
<title>Onefetch</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/routes/main.ts"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This folder may need to be added to the
exclude
section of theCargo.toml
file.