Skip to content

Commit

Permalink
Merge pull request #52 from gaia-charge/feature/cleanup
Browse files Browse the repository at this point in the history
Feature/cleanup
  • Loading branch information
suda authored Aug 1, 2024
2 parents 21f5120 + ab83a47 commit 2012635
Show file tree
Hide file tree
Showing 45 changed files with 1,305 additions and 934 deletions.
3 changes: 3 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('prettier-plugin-svelte')],
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ npm run prettier
```

Otherwise, the [GitHub Action](.github/workflows/ci.yaml) will create a commit in your branch with a cleanup.

## Setting the CORS

### Troubleshooting `aws`

```
ls /opt/homebrew/Cellar/awscli/
/opt/homebrew/Cellar/awscli/${VERSION}/libexec/bin/python3 -m ensurepip --upgrade
/opt/homebrew/Cellar/awscli/${VERSION}/libexec/bin/python3 -m pip install awscli-plugin-endpoint
```

Update `~/.aws/config` with `cli_legacy_plugin_path = /opt/homebrew/Cellar/awscli/${VERSION}/libexec/lib/python3.11/site-packages`
2 changes: 1 addition & 1 deletion cors-rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"https://staging.gaiacharge.com",
"https://partner.gaiacharge.com",
"https://partner.staging.gaiagreen.dev",
"https://website-go7pwvgrd-gaia-charge.vercel.app",
"https://website-mlhicv43r-gaia-charge.vercel.app",
"https://41ce7c90fae7.ngrok.app"
],
"AllowedHeaders": [
Expand Down
141 changes: 119 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
"cy:run": "cypress run",
"cy:open": "cypress open",
"test": "run-p --race dev cy:run",
"prettier": "prettier --write **/*.{js,md,svelte}",
"prettier": "prettier --write **/*.{css,js,md,svelte}",
"i18n:extract": "svelte-i18n extract 'src/**/*.svelte' > src/services/messages/en.json"
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.4",
"@sentry/browser": "^8.7.0",
"@sentry/sveltekit": "^8.7.0",
"@sentry/tracing": "^7.71.0",
"aos": "^2.3.4",
"axios": "^1.5.0",
"negotiator": "^0.6.3",
"siema": "^1.5.1",
Expand All @@ -26,14 +27,15 @@
},
"devDependencies": {
"@accuser/svelte-plausible-analytics": "^1.0.0",
"@beyonk/gdpr-cookie-consent-banner": "^10.2.1",
"@beyonk/svelte-hubspot": "^0.5.0",
"@beyonk/gdpr-cookie-consent-banner": "^12.1.4",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.16",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.30",
"postcss-import": "^16.1.0",
"postcss-nesting": "^12.1.5",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"svelte": "^4.2.1",
Expand All @@ -46,4 +48,4 @@
"last 2 versions",
"not ie < 10"
]
}
}
2 changes: 2 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
'postcss-import': {},
'postcss-nesting': {},
},
}
45 changes: 3 additions & 42 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,43 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import "./styles/_main.css";
@import "./styles/dots.css";
@import "./styles/cookies.css";

body {
background: theme(colors.gray);
overflow-x: hidden;
}

section {
scroll-margin-block-start: 6rem;
}

@media only screen and (max-width: 431px) {
body{
width: 100vw;
}
.w-full {
height: 100vh;
}
h1{
font-size: 40px !important;
line-height: 48px !important;
}
p{
font-size: 18px !important;
line-height: 28px !important;
}
#svelte{
overflow: hidden;
}
.contact{
width: 190px !important;
height: 60px;
margin-block-start: 48px !important;
padding: 16px 26px !important;;
font-size: 18px !important;;
line-height: 28px !important;
}
.contact img {
width: 16px !important;
}
}
2 changes: 2 additions & 0 deletions src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png">

<script> (function(ss,ex){ window.ldfdr=window.ldfdr||function(){(ldfdr._q=ldfdr._q||[]).push([].slice.call(arguments));}; (function(d,s){ fs=d.getElementsByTagName(s)[0]; function ce(src){ var cs=d.createElement(s); cs.src=src; cs.async=1; fs.parentNode.insertBefore(cs,fs); }; ce('https://sc.lfeeder.com/lftracker_v1_'+ss+(ex?'_'+ex:'')+'.js'); })(document,'script'); })('p1e024BKMYWaGB6d'); </script>

%sveltekit.head%
</head>
<body>
Expand Down
Loading

0 comments on commit 2012635

Please sign in to comment.