Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feat/70-ui-refactor' into feat/#69
Browse files Browse the repository at this point in the history
  • Loading branch information
faddishcorn committed Nov 13, 2024
2 parents cee0889 + 44dfc3c commit ed6e9f5
Show file tree
Hide file tree
Showing 17 changed files with 1,689 additions and 274 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
parserOptions: {
project: "./tsconfig.json",
},
ignorePatterns: ["dist", ".eslintrc.cjs"],
ignorePatterns: ["dist", ".eslintrc.cjs", "firebase-messaging-sw.js"],
parser: "@typescript-eslint/parser",
plugins: [
"react-refresh",
Expand All @@ -36,7 +36,7 @@ module.exports = {
"react/jsx-props-no-spreading": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": "off",
'@typescript-eslint/no-unused-vars': 'off',
"@typescript-eslint/no-unused-vars": "off",
"jsx-a11y/click-events-have-key-events": "off",
"no-underscore-dangle": "off",
"no-alert": "off",
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ dist-ssr
*.sln
*.sw?

*storybook.log
*storybook.log

.env .development
27 changes: 27 additions & 0 deletions firebase-messaging-sw.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
importScripts(
"https://www.gstatic.com/firebasejs/9.6.1/firebase-messaging-compat.js",
);

firebase.initializeApp({
apiKey: "AIzaSyAInigygScRLDilnWcnArBN8LMbQRpDZVk",
authDomain: "splanet-cef14.firebaseapp.com",
projectId: "splanet-cef14",
storageBucket: "splanet-cef14.appspot.com",
messagingSenderId: "995362943401",
appId: "1:995362943401:web:cef434d0e3f51d31a4d4b8",
measurementId: "G-LZJKRYBSJV",
});

const messaging = firebase.messaging();

// ์•Œ๋ฆผ ์ˆ˜์‹  ๋Œ€๊ธฐ
messaging.onBackgroundMessage((payload) => {
console.log("Received background message ", payload);
// Customize notification
const notificationTitle = payload.notification.title;
const notificationOptions = {
body: payload.notification.body,
};

self.registration.showNotification(notificationTitle, notificationOptions);
});
Loading

0 comments on commit ed6e9f5

Please sign in to comment.