-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from Booda-YAMYAM/feature/sw/makeDynamicRouter
Feature/sw/make dynamic router
- Loading branch information
Showing
6 changed files
with
185 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const filterTag = (arr, tagList) => { | ||
return arr.filter((item) => tagList.includes(item.tag)); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export const findCategory = (category) => { | ||
switch (category) { | ||
case "korea": | ||
return "한식"; | ||
case "japan": | ||
return "일식"; | ||
case "china": | ||
return "중식"; | ||
case "western": | ||
return "양식"; | ||
case "snack": | ||
return "분식"; | ||
case "fastfood": | ||
return "패스트푸드"; | ||
case "bakery": | ||
return "베이커리"; | ||
case "cafe": | ||
return "카페"; | ||
case "restaurant": | ||
return "레스토랑"; | ||
case "bar": | ||
return "바"; | ||
default: | ||
return "기타"; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export const getLocalStorage = (key) => { | ||
try { | ||
return JSON.parse(localStorage.getItem(key)); | ||
} catch (e) { | ||
return null; | ||
} | ||
}; | ||
export const setLocalStorage = (key, value) => { | ||
try { | ||
localStorage.setItem(key, JSON.stringify(value)); | ||
} catch (e) { | ||
return null; | ||
} | ||
}; | ||
export const removeLocalStorage = (key) => { | ||
try { | ||
localStorage.removeItem(key); | ||
} catch (e) { | ||
return null; | ||
} | ||
}; | ||
export const clearLocalStorage = () => { | ||
try { | ||
localStorage.clear(); | ||
} catch (e) { | ||
return null; | ||
} | ||
}; |
723cfa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
yamyma-webview – ./yam-view/public
yamyma-webview-booda.vercel.app
yamyma-webview-gamma.vercel.app
yamyma-webview-git-main-booda.vercel.app
723cfa5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
yamyma-webview2 – ./yam-view
yamyma-webview2-git-main-booda.vercel.app
yamyma-webview2.vercel.app
yamyma-webview2-booda.vercel.app