Skip to content

Commit

Permalink
Merge pull request #15 from ShinichiShi/Shinichi
Browse files Browse the repository at this point in the history
basic templates
  • Loading branch information
ShinichiShi authored Aug 18, 2024
2 parents 524d5c9 + b57d6bf commit aec5c6e
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 8 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,46 @@ on:
- main

jobs:
lint:
client-lint:
name: Lint Client Code
runs-on: ubuntu-latest
continue-on-error: true

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js 18.x
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install dependencies
working-directory: ./client
run: npm install

- name: Run ESLint
working-directory: ./client
run: npm run lint

# server-lint:
# name: Lint Server Code
# runs-on: ubuntu-latest
# continue-on-error: true

# steps:
# - name: Checkout code
# uses: actions/checkout@v3

# - name: Use Node.js 18.x
# uses: actions/setup-node@v3
# with:
# node-version: 18.x

# - name: Install dependencies
# working-directory: ./server
# run: npm install

# - name: Run ESLint
# working-directory: ./server
# run: npm run lint
6 changes: 3 additions & 3 deletions client/src/App.jsx → client/src/Landing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import reactLogo from './assets/react.svg';
import viteLogo from '/vite.svg';
import './App.css';

function App() {
function Landing() {
const [count, setCount] = useState(0);

return (
<>
<div className="flex items-center justify-center">
<div className="flex items-center justify-center p-3">
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
Expand All @@ -32,4 +32,4 @@ function App() {
);
}

export default App;
export default Landing;
9 changes: 9 additions & 0 deletions client/src/components/Buyer/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default function Dashboard(){
return(
<>
<div>
Hello
</div>
</>
)
}
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
4 changes: 2 additions & 2 deletions client/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.jsx';
import Landing from './Landing.jsx';
import './index.css';

createRoot(document.getElementById('root')).render(
<StrictMode>
<App />
<Landing />
</StrictMode>
);

0 comments on commit aec5c6e

Please sign in to comment.