-
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.
feat: add action to paw wd-402 (#403)
* feat: replace grid flow with flex wd-391 (#392) * chore: release-1.23.0 (#393) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: add sticker to logo wd-390 (#394) * chore: release-1.24.0 (#395) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: replace hex with hsl colors wd-396 (#397) * feat: replace hex with hsl colors wd-396 * refactor: change style of css vars wd-396 * chore: release-1.25.0 (#398) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * feat: add action to paw wd-402 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e8aacf9
commit 9317767
Showing
32 changed files
with
281 additions
and
218 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
".": "1.22.0", | ||
".": "1.25.0", | ||
"apps/careers-whatislove-dev": "1.6.1", | ||
"apps/certifications-whatislove-dev": "1.7.0", | ||
"apps/whatislove-dev": "1.20.0", | ||
"apps/whatislove-dev": "1.23.0", | ||
"packages/shared": "1.7.0" | ||
} |
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 |
---|---|---|
@@ -1,5 +1,26 @@ | ||
# Changelog | ||
|
||
## [1.23.0](https://github.com/what1s1ove/whatislove.dev/compare/@whatislove.dev/[email protected]/whatislove-dev-v1.23.0) (2024-04-24) | ||
|
||
|
||
### Features | ||
|
||
* replace hex with hsl colors wd-396 ([#397](https://github.com/what1s1ove/whatislove.dev/issues/397)) ([b3e8ce3](https://github.com/what1s1ove/whatislove.dev/commit/b3e8ce3dd2b3701c55c1bc0b449ed12de9d110fa)) | ||
|
||
## [1.22.0](https://github.com/what1s1ove/whatislove.dev/compare/@whatislove.dev/[email protected]/whatislove-dev-v1.22.0) (2024-04-23) | ||
|
||
|
||
### Features | ||
|
||
* add sticker to logo wd-390 ([#394](https://github.com/what1s1ove/whatislove.dev/issues/394)) ([43ccd92](https://github.com/what1s1ove/whatislove.dev/commit/43ccd92adbbe0c30fb2722d89d409ac0a3dcf22c)) | ||
|
||
## [1.21.0](https://github.com/what1s1ove/whatislove.dev/compare/@whatislove.dev/[email protected]/whatislove-dev-v1.21.0) (2024-04-23) | ||
|
||
|
||
### Features | ||
|
||
* replace grid flow with flex wd-391 ([#392](https://github.com/what1s1ove/whatislove.dev/issues/392)) ([4f926cb](https://github.com/what1s1ove/whatislove.dev/commit/4f926cbd6bfd18d807c9aee8c69378ae22b82aff)) | ||
|
||
## [1.20.0](https://github.com/what1s1ove/whatislove.dev/compare/@whatislove.dev/[email protected]/whatislove-dev-v1.20.0) (2024-04-23) | ||
|
||
|
||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
1 change: 1 addition & 0 deletions
1
apps/whatislove-dev/src/scripts/libs/enums/notification-message.enum.js
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
let NotificationMessage = /** @type {const} */ ({ | ||
LOVE: `You found something... maybe you should turn down the sound (or maybe add) ❤️`, | ||
PAW: `Lapka to Lapka 🐾 🐾`, | ||
}) | ||
|
||
export { NotificationMessage } |
1 change: 1 addition & 0 deletions
1
apps/whatislove-dev/src/scripts/pages/main/libs/components/components.js
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export { EasterEgg } from './easter-egg/easter-egg.js' | ||
export { Navigation } from './navigation/navigation.js' | ||
export { Paw } from './paw/paw.js' | ||
export { Settings } from './settings/settings.js' | ||
export { Timeline } from './timeline/timeline.js' | ||
export { TimelineForm } from './timeline-form/timeline-form.js' |
3 changes: 3 additions & 0 deletions
3
apps/whatislove-dev/src/scripts/pages/main/libs/components/paw/libs/constants/constants.js
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 @@ | ||
let NOTIFICATION_DELAY = /** @type {const} */ (2500) | ||
|
||
export { NOTIFICATION_DELAY } |
55 changes: 55 additions & 0 deletions
55
apps/whatislove-dev/src/scripts/pages/main/libs/components/paw/paw.js
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,55 @@ | ||
import { NotificationMessage } from '~/libs/enums/enums.js' | ||
import { ToastMessagePayload } from '~/libs/types/types.js' | ||
|
||
import { NOTIFICATION_DELAY } from './libs/constants/constants.js' | ||
|
||
class Paw { | ||
/** @type {() => void} */ | ||
#handlePawButtonClick | ||
|
||
/** @type {(payload: ToastMessagePayload) => void} */ | ||
#onNotificationAdd | ||
|
||
/** @type {HTMLButtonElement | undefined} */ | ||
#pawButtonNode | ||
|
||
/** | ||
* @param {{ | ||
* onNotificationAdd: (payload: ToastMessagePayload) => void | ||
* }} constructor | ||
*/ | ||
constructor({ onNotificationAdd }) { | ||
this.#onNotificationAdd = onNotificationAdd | ||
|
||
this.#pawButtonNode = undefined | ||
|
||
this.#handlePawButtonClick = this.#clickPawButtonHandler.bind(this) | ||
} | ||
|
||
/** @returns {void} */ | ||
#clickPawButtonHandler() { | ||
this.#onNotificationAdd({ | ||
duration: NOTIFICATION_DELAY, | ||
message: NotificationMessage.PAW, | ||
}) | ||
} | ||
|
||
/** @returns {void} */ | ||
#initListeners() { | ||
let pawButtonNode = /** @type {HTMLElement} */ (this.#pawButtonNode) | ||
|
||
pawButtonNode.addEventListener(`click`, this.#handlePawButtonClick) | ||
} | ||
|
||
/** | ||
* @param {HTMLButtonElement} pawButtonNode | ||
* @returns {void} | ||
*/ | ||
init(pawButtonNode) { | ||
this.#pawButtonNode = pawButtonNode | ||
|
||
this.#initListeners() | ||
} | ||
} | ||
|
||
export { Paw } |
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
Oops, something went wrong.