Skip to content

Commit

Permalink
Merge pull request #19 from cpadlab/main
Browse files Browse the repository at this point in the history
Test Vite
  • Loading branch information
cpadlab authored Jan 10, 2025
2 parents 627ee71 + bce78aa commit a61983b
Show file tree
Hide file tree
Showing 202 changed files with 9,384 additions and 92 deletions.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_BREVO_API_KEY=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
VITE_BREVO_CONVERSATIONS_API_KEY=your_brevo_conversations_api_key
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Build
run: npm run build
env:
VITE_BREVO_API_KEY: ${{ secrets.REACT_APP_BREVO_API_KEY }}
VITE_BREVO_CONVERSATIONS_API_KEY: ${{ secrets.REACT_APP_BREVO_CONVERSATIONS_API_KEY }}

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: build
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
#
79 changes: 0 additions & 79 deletions assets/index-DQP4wVNg.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/index-iFAT9sDP.css

This file was deleted.

38 changes: 38 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'

export default [
{ ignores: ['dist'] },
{
files: ['**/*.{js,jsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
settings: { react: { version: '18.3' } },
plugins: {
react,
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...js.configs.recommended.rules,
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
...reactHooks.configs.recommended.rules,
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
]
3 changes: 1 addition & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@
<link rel="manifest" href="/site.webmanifest">


<script type="module" crossorigin src="/assets/index-DQP4wVNg.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-iFAT9sDP.css">
</head>
<body class="bg-black-950 font-inter">

<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PF6QGCGJ"
Expand Down
Loading

0 comments on commit a61983b

Please sign in to comment.