Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 업데이트 알림 추가 #18

Merged
merged 27 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
167e2be
feat: mode 추가
DevooKim Apr 6, 2024
0827d34
feat: env type 추가
DevooKim Apr 6, 2024
c6012da
feat: 버전 fetch 추가
DevooKim Apr 6, 2024
5199ad8
feat: 현재 앱 버전 추가
DevooKim Apr 6, 2024
c780737
feat: 업데이트 바 추가
DevooKim Apr 6, 2024
1584cef
refactor: 쿼리 리팩토링
DevooKim Apr 6, 2024
e0c57db
feat: 파일 다운로드 추가
DevooKim Apr 6, 2024
68c31af
fix: 버전 컴포넌트 수정
DevooKim Apr 6, 2024
9ea5c39
feat: 아이콘 추가
DevooKim Apr 10, 2024
5c20255
add githubaction ci
DevooKim Apr 10, 2024
a10ad74
v1.1.0
DevooKim Apr 10, 2024
e7c76c6
fix: action
DevooKim Apr 10, 2024
0ba4294
Merge branch 'update-notice' of github.com:DevooKim/Flex-time-extensi…
DevooKim Apr 10, 2024
fbe99d8
v1.2.0
DevooKim Apr 10, 2024
64b0349
fix: action2
DevooKim Apr 10, 2024
d9a464e
fix: action2
DevooKim Apr 10, 2024
d2f4878
Merge branch 'update-notice' of github.com:DevooKim/Flex-time-extensi…
DevooKim Apr 10, 2024
4dab795
v1.3.0
DevooKim Apr 10, 2024
3748682
fix: action
DevooKim Apr 10, 2024
7ab69c1
Merge branch 'update-notice' of github.com:DevooKim/Flex-time-extensi…
DevooKim Apr 10, 2024
01c6d29
v3.0.0
DevooKim Apr 10, 2024
64ad5d2
.github/workflows/
DevooKim Apr 10, 2024
f0da312
Merge branch 'develop' of github.com:DevooKim/Flex-time-extension int…
DevooKim Apr 28, 2024
ba91c1b
feat: 버전체크 유틸 추가
DevooKim Apr 28, 2024
1fd3458
fix: .env.sample 변경
DevooKim Apr 28, 2024
ca3cc6b
fix: build action 변경
DevooKim Apr 28, 2024
09ed6f4
chore: release 액션 비활성화
DevooKim Apr 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_GITHUB_OWNER=
VITE_GITHUB_REPO=
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@ on:
jobs:
build:
name: Build
timeout-minutes: 15
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'

- name: env setting
run: |
echo "VITE_GITHUB_OWNER=${{ github.repository_owner }}" >> .env
echo "VITE_GITHUB_REPO=${{ github.repository }}" >> .env

- name: Install dependencies
run: yarn

Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# name: Release

# on:
# workflow_dispatch:

# jobs:
# release:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# ref: develop

# - name: Create branch
# run: git checkout -b release/${{ github.run_number }} develop

# - name: Set git user
# run: |
# git config user.name github-actions
# git config user.email [email protected]

# - name: Setup Node.js environment
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'yarn'

# - name: Release version
# run: |
# yarn version --minor
# git push origin --tags

# - name: Merge branch
# run: |
# git fetch origin main
# git switch main
# git merge --no-ff release/${{ github.run_number }}
# git push origin main
6 changes: 2 additions & 4 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"env": {
"__DEV__": "true"
},
"env": {},
"watch": [
"src",
"utils",
Expand All @@ -12,5 +10,5 @@
],
"ext": "tsx,css,html,ts,json",
"ignore": ["src/**/*.spec.ts"],
"exec": "vite build"
"exec": "NODE_ENV=development vite build --mode development"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "unofficial-flex-extension",
"version": "1.0.0",
"version": "3.0.0",
"private": true,
"scripts": {
"_build": "rm -rf ./unofficial-flex-extension && rm -rf ./unofficial-flex-extension.zip && craco build && zip -r unofficial-flex-extension.zip ./unofficial-flex-extension",
"build": "vite build",
"build:dev": "NODE_ENV=development vite build --mode development",
"dev": "nodemon",
"prepare": "husky install"
},
Expand Down Expand Up @@ -52,7 +53,6 @@
"jest": "^28.1.0",
"jsdom": "^24.0.0",
"lint-staged": "^13.0.2",
"msw": "^2.2.13",
"nodemon": "^3.1.0",
"postcss": "^8.4.35",
"postcss-nested": "^6.0.1",
Expand Down
20 changes: 20 additions & 0 deletions src/icons/DownloadIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type DownloadIconProps = React.SVGProps<SVGSVGElement>

const DownloadIcon = (props: DownloadIconProps) => (
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M13.5 6.25H11V2H5V6.25H2.5L8 12.25L13.5 6.25ZM2.5 14.5H13.5V13.2H2.5V14.5Z"
/>
</svg>
)

export default DownloadIcon
20 changes: 20 additions & 0 deletions src/icons/StarFillIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
type StarFillIconProps = React.SVGProps<SVGSVGElement>

const StarFillIcon = (props: StarFillIconProps) => (
<svg
width="16"
height="16"
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M8 1.24121L10.055 5.77321L15 6.32721L11.325 9.68221L12.326 14.5562L8 12.0972L3.674 14.5562L4.675 9.68221L1 6.32721L5.945 5.77321L8 1.24121Z"
/>
</svg>
)

export default StarFillIcon
6 changes: 3 additions & 3 deletions src/mocks/browser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { setupWorker } from 'msw/browser'
// import { setupWorker } from 'msw/browser'

import { handlers } from './handlers'
// import { handlers } from './handlers'

export const worker = setupWorker(...handlers)
// export const worker = setupWorker(...handlers)
Loading
Loading