-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(improvement) Prettier code formatting (#69)
* set up prettier code formatting * formatted code * lint/prettier fix
- Loading branch information
Showing
97 changed files
with
1,824 additions
and
1,371 deletions.
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 |
---|---|---|
|
@@ -31,3 +31,6 @@ jobs: | |
|
||
- name: Lint validation | ||
run: npm run lint | ||
|
||
- name: Code formatting validation | ||
run: npm run format |
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,3 @@ | ||
node_modules | ||
build | ||
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,13 @@ | ||
module.exports = { | ||
printWidth: 120, // max 120 chars in line, code is easy to read | ||
useTabs: false, // use spaces instead of tabs | ||
tabWidth: 2, // "visual width" of of the "tab" | ||
trailingComma: 'all', // add trailing commas in objects, arrays, etc. | ||
semi: false, // Only add semicolons at the beginning of lines that may introduce ASI failures | ||
singleQuote: true, // '' for stings instead of "" | ||
bracketSpacing: true, // import { some } ... instead of import {some} ... | ||
arrowParens: 'always', // braces even for single param in arrow functions (a) => { } | ||
jsxSingleQuote: true, // '' for react props | ||
bracketSameLine: false, // pretty JSX | ||
endOfLine: 'lf', // 'lf' for linux, 'crlf' for windows, we need to use 'lf' for git | ||
} |
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 |
---|---|---|
@@ -1 +1,131 @@ | ||
body{height:100%;margin:0;padding:0;width:100%;-webkit-font-smoothing:antialiased}.loader.available{opacity:0}.loader{background-color:#f9fafb;width:100%;height:100%;position:fixed;opacity:1;pointer-events:none;-webkit-transition:opacity cubic-bezier(.4,0,.2,1) 436ms;-moz-transition:opacity cubic-bezier(.4,0,.2,1) 436ms;transition:opacity cubic-bezier(.4,0,.2,1) 436ms;z-index:9999}.logo-frame{display:-webkit-flex;display:-moz-flex;display:flex;-webkit-flex-direction:column;-moz-flex-direction:column;flex-direction:column;-webkit-justify-content:center;-moz-justify-content:center;justify-content:center;-webkit-animation:fadein 436ms;-moz-animation:fadein 436ms;animation:fadein 436ms;height:98%}.logo-frame-img{font-size:30px;padding-left:10px;padding-right:10px;-webkit-align-self:center;-moz-align-self:center;align-self:center}.loader-head{background-color:#c6dafc;height:4px;overflow:hidden;position:relative}.loader .first,.loader .second{background-color:#4f46e5;bottom:0;left:0;right:0;top:0;position:absolute;-webkit-transform-origin:left center;-moz-transform-origin:left center;transform-origin:left center;-webkit-transform:scaleX(0);-moz-transform:scaleX(0);transform:scaleX(0)}.loader .first{-webkit-animation:first 2s linear infinite;-moz-animation:first 2s linear infinite;animation:first 2s linear infinite}.loader .second{-webkit-animation:second 2s linear infinite;-moz-animation:second 2s linear infinite;animation:second 2s linear infinite}@-webkit-keyframes fadein{from{opacity:0}to{opacity:1}}@-moz-keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes fadein{from{opacity:0}to{opacity:1}}@keyframes first{0%{transform:translate(0) scaleX(0)}25%{transform:translate(0) scaleX(.5)}50%{transform:translate(25%) scaleX(.75)}75%{transform:translate(100%) scaleX(0)}100%{transform:translate(100%) scaleX(0)}}@keyframes second{0%{transform:translate(0) scaleX(0)}60%{transform:translate(0) scaleX(0)}80%{transform:translate(0) scaleX(.6)}100%{transform:translate(100%) scaleX(.1)}} | ||
body { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
-webkit-font-smoothing: antialiased; | ||
} | ||
.loader.available { | ||
opacity: 0; | ||
} | ||
.loader { | ||
background-color: #f9fafb; | ||
width: 100%; | ||
height: 100%; | ||
position: fixed; | ||
opacity: 1; | ||
pointer-events: none; | ||
-webkit-transition: opacity cubic-bezier(0.4, 0, 0.2, 1) 436ms; | ||
-moz-transition: opacity cubic-bezier(0.4, 0, 0.2, 1) 436ms; | ||
transition: opacity cubic-bezier(0.4, 0, 0.2, 1) 436ms; | ||
z-index: 9999; | ||
} | ||
.logo-frame { | ||
display: -webkit-flex; | ||
display: -moz-flex; | ||
display: flex; | ||
-webkit-flex-direction: column; | ||
-moz-flex-direction: column; | ||
flex-direction: column; | ||
-webkit-justify-content: center; | ||
-moz-justify-content: center; | ||
justify-content: center; | ||
-webkit-animation: fadein 436ms; | ||
-moz-animation: fadein 436ms; | ||
animation: fadein 436ms; | ||
height: 98%; | ||
} | ||
.logo-frame-img { | ||
font-size: 30px; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
-webkit-align-self: center; | ||
-moz-align-self: center; | ||
align-self: center; | ||
} | ||
.loader-head { | ||
background-color: #c6dafc; | ||
height: 4px; | ||
overflow: hidden; | ||
position: relative; | ||
} | ||
.loader .first, | ||
.loader .second { | ||
background-color: #4f46e5; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
position: absolute; | ||
-webkit-transform-origin: left center; | ||
-moz-transform-origin: left center; | ||
transform-origin: left center; | ||
-webkit-transform: scaleX(0); | ||
-moz-transform: scaleX(0); | ||
transform: scaleX(0); | ||
} | ||
.loader .first { | ||
-webkit-animation: first 2s linear infinite; | ||
-moz-animation: first 2s linear infinite; | ||
animation: first 2s linear infinite; | ||
} | ||
.loader .second { | ||
-webkit-animation: second 2s linear infinite; | ||
-moz-animation: second 2s linear infinite; | ||
animation: second 2s linear infinite; | ||
} | ||
@-webkit-keyframes fadein { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
@-moz-keyframes fadein { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
@keyframes fadein { | ||
from { | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
} | ||
} | ||
@keyframes first { | ||
0% { | ||
transform: translate(0) scaleX(0); | ||
} | ||
25% { | ||
transform: translate(0) scaleX(0.5); | ||
} | ||
50% { | ||
transform: translate(25%) scaleX(0.75); | ||
} | ||
75% { | ||
transform: translate(100%) scaleX(0); | ||
} | ||
100% { | ||
transform: translate(100%) scaleX(0); | ||
} | ||
} | ||
@keyframes second { | ||
0% { | ||
transform: translate(0) scaleX(0); | ||
} | ||
60% { | ||
transform: translate(0) scaleX(0); | ||
} | ||
80% { | ||
transform: translate(0) scaleX(0.6); | ||
} | ||
100% { | ||
transform: translate(100%) scaleX(0.1); | ||
} | ||
} |
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,47 +1,45 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Swetrix Marketplace</title> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#818cf8" /> | ||
<!-- <meta name="description" content="Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<!-- <meta name="twitter:title" content="Swetrix | Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<!-- <meta name="twitter:description" | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Swetrix Marketplace</title> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#818cf8" /> | ||
<!-- <meta name="description" content="Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<!-- <meta name="twitter:title" content="Swetrix | Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<!-- <meta name="twitter:description" | ||
content="Swetrix is a cookie-less privacy-first web analytics service which provides a huge variety of services" /> --> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta property="og:title" content="Swetrix Marketplace" /> | ||
<!-- <meta property="og:description" content="Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<meta property="og:image" content="https://swetrix.com/assets/og_image.png" /> | ||
<meta property="og:site_name" content="Swetrix Marketplace" /> | ||
<meta property="og:url" content="https://swetrix.com"> | ||
<meta property="og:type" content="website"> | ||
<meta name="google" content="notranslate" /> | ||
<meta name="apple-mobile-web-app-title" content="Swetrix Marketplace"> | ||
<meta name="application-name" content="Swetrix Marketplace"> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta property="og:title" content="Swetrix Marketplace" /> | ||
<!-- <meta property="og:description" content="Ultimate open-source analytics to satisfy all your needs" /> --> | ||
<meta property="og:image" content="https://swetrix.com/assets/og_image.png" /> | ||
<meta property="og:site_name" content="Swetrix Marketplace" /> | ||
<meta property="og:url" content="https://swetrix.com" /> | ||
<meta property="og:type" content="website" /> | ||
<meta name="google" content="notranslate" /> | ||
<meta name="apple-mobile-web-app-title" content="Swetrix Marketplace" /> | ||
<meta name="application-name" content="Swetrix Marketplace" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
|
||
<link rel="preconnect" href="https://fonts.bunny.net"> | ||
<link href="https://fonts.bunny.net/css?family=inter:300,400,500,600,700,800" rel="stylesheet" /> | ||
<link rel="preconnect" href="https://fonts.bunny.net" /> | ||
<link href="https://fonts.bunny.net/css?family=inter:300,400,500,600,700,800" rel="stylesheet" /> | ||
|
||
<link href="/index.css" rel="stylesheet" /> | ||
</head> | ||
<link href="/index.css" rel="stylesheet" /> | ||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div class="loader" id="loader"> | ||
<div class="loader-head"> | ||
<div class="first"></div> | ||
<div class="second"></div> | ||
</div> | ||
<div class="logo-frame"> | ||
<img class="logo-frame-img" src="/assets/logo_blue.png" alt="" /> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div class="loader" id="loader"> | ||
<div class="loader-head"> | ||
<div class="first"></div> | ||
<div class="second"></div> | ||
</div> | ||
<div class="logo-frame"> | ||
<img class="logo-frame-img" src="/assets/logo_blue.png" alt="" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="root"></div> | ||
</body> | ||
|
||
<div id="root"></div> | ||
</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
Oops, something went wrong.