Skip to content

Commit

Permalink
Merge pull request #301 from woowacourse-teams/dev/fe
Browse files Browse the repository at this point in the history
3차 데모데이 - 인증인가, 카테고리, 태그 기능
  • Loading branch information
Hain-tain authored Aug 6, 2024
2 parents d774a7f + 0ce4fe8 commit 5cac478
Show file tree
Hide file tree
Showing 152 changed files with 5,400 additions and 1,176 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/frontend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
with:
node-version: 20

- name: Create .env.production file
run: |
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL }}" > ${{ env.frontend-directory }}/.env.production
echo "REACT_APP_BASE_URL=${{ secrets.REACT_APP_BASE_URL }}" >> ${{ env.frontend-directory }}/.env.production
- name: Set environment file permissions
run: chmod 644 ${{ env.frontend-directory }}/.env.production

- name: Install Dependencies
run: npm install
working-directory: ${{ env.frontend-directory }}
Expand Down Expand Up @@ -48,4 +56,3 @@ jobs:
run: |
aws s3 cp --recursive ${{ secrets.FRONT_DIRECTORY }} s3://techcourse-project-2024/code-zap
rm -rf ${{ secrets.FRONT_DIRECTORY }}
4 changes: 1 addition & 3 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@ node_modules

dist

.env
.env.development
.env.production
.env*
19 changes: 11 additions & 8 deletions frontend/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Preview } from '@storybook/react';
import GlobalStyles from '../src/style/GlobalStyles';
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import GlobalStyles from '../src/style/GlobalStyles';

const preview: Preview = {
parameters: {
Expand All @@ -16,14 +17,16 @@ const preview: Preview = {
(Story) => (
<>
<GlobalStyles />
<div style={{ display: 'flex', gap: '1.6rem', flexWrap: 'wrap' }}>
<div style={{ border: '0.2rem solid black', borderRadius: '8px', padding: '3.2rem', background: 'white' }}>
<Story />
</div>
<div style={{ border: '0.2rem solid black', borderRadius: '8px', padding: '3.2rem', background: 'black' }}>
<Story />
<MemoryRouter>
<div style={{ display: 'flex', gap: '1rem', flexWrap: 'wrap' }}>
<div style={{ border: '2px solid black', borderRadius: '8px', padding: '2rem', background: 'white' }}>
<Story />
</div>
<div style={{ border: '2px solid black', borderRadius: '8px', padding: '2rem', background: 'black' }}>
<Story />
</div>
</div>
</div>
</MemoryRouter>
</>
),
],
Expand Down
Loading

0 comments on commit 5cac478

Please sign in to comment.