mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 17:04:15 +00:00
Compare commits
No commits in common. "main" and "v2.2.0" have entirely different histories.
7 changed files with 31 additions and 63 deletions
19
CHANGELOG.md
19
CHANGELOG.md
|
|
@ -2,25 +2,6 @@
|
|||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## [2.4.0](https://github.com/remvze/moodist/compare/v2.3.0...v2.4.0) (2025-11-25)
|
||||
|
||||
|
||||
### ✨ Features
|
||||
|
||||
* add audio session type ([3a96d38](https://github.com/remvze/moodist/commit/3a96d38a774c7675811d5a3ea323a49d9d129bbc))
|
||||
|
||||
## [2.3.0](https://github.com/remvze/moodist/compare/v2.2.0...v2.3.0) (2025-11-24)
|
||||
|
||||
|
||||
### 🚚 Chores
|
||||
|
||||
* change silence ([b921629](https://github.com/remvze/moodist/commit/b921629ee33c4a18a86258ba204921f732f404ff))
|
||||
|
||||
|
||||
### ✨ Features
|
||||
|
||||
* turn links into buttons ([d016076](https://github.com/remvze/moodist/commit/d0160763eeb66ba47dd06098b1f2a84e234fca36))
|
||||
|
||||
## [2.2.0](https://github.com/remvze/moodist/compare/v2.1.0...v2.2.0) (2025-11-24)
|
||||
|
||||
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "moodist",
|
||||
"version": "2.4.0",
|
||||
"version": "2.2.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "moodist",
|
||||
"version": "2.4.0",
|
||||
"version": "2.2.0",
|
||||
"dependencies": {
|
||||
"@astrojs/react": "3.6.0",
|
||||
"@floating-ui/react": "0.26.0",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "moodist",
|
||||
"type": "module",
|
||||
"version": "2.4.0",
|
||||
"version": "2.2.0",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"start": "astro dev",
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -18,6 +18,10 @@
|
|||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
& a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
|
||||
& .icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -25,8 +29,6 @@
|
|||
width: 48px;
|
||||
height: 48px;
|
||||
font-size: var(--font-md);
|
||||
color: var(--color-foreground);
|
||||
cursor: pointer;
|
||||
background: linear-gradient(
|
||||
var(--color-neutral-50),
|
||||
var(--color-neutral-100)
|
||||
|
|
@ -44,4 +46,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,6 @@ import { Tooltip } from '@/components/tooltip';
|
|||
export default function CategoryIcons() {
|
||||
const categories = useMemo(() => sounds.categories, []);
|
||||
|
||||
const goto = (id: string) => {
|
||||
const category = document.getElementById(`category-${id}`);
|
||||
category?.scrollIntoView();
|
||||
};
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<div className={styles.wrapper}>
|
||||
|
|
@ -20,18 +15,11 @@ export default function CategoryIcons() {
|
|||
<Tooltip.Provider delayDuration={0}>
|
||||
{categories.map(category => {
|
||||
return (
|
||||
<Tooltip
|
||||
content={category.title}
|
||||
key={category.id}
|
||||
placement="bottom"
|
||||
>
|
||||
<button
|
||||
className={styles.icon}
|
||||
onClick={() => goto(category.id)}
|
||||
>
|
||||
{category.icon}
|
||||
</button>
|
||||
<a href={`#category-${category.id}`} key={category.id}>
|
||||
<Tooltip content={category.title} placement="bottom">
|
||||
<div className={styles.icon}>{category.icon}</div>
|
||||
</Tooltip>
|
||||
</a>
|
||||
);
|
||||
})}
|
||||
</Tooltip.Provider>
|
||||
|
|
|
|||
|
|
@ -47,10 +47,6 @@ export function useSound(
|
|||
preload: options.preload ?? false,
|
||||
src: src,
|
||||
});
|
||||
|
||||
if (window.navigator.audioSession) {
|
||||
window.navigator.audioSession.type = 'playback';
|
||||
}
|
||||
}
|
||||
|
||||
return sound;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue