Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a55281b1aa | ||
|
|
b236d40053 | ||
|
|
ad518ad2a6 | ||
|
|
33626aaf55 | ||
|
|
7481fbf711 | ||
|
|
42735005b1 | ||
|
|
22606e7f79 |
No files matched your search
@@ -30,7 +30,7 @@ Open the local web address shown by Vite. Choose a dance template or add a sound
|
||||
|
||||
## Mobile downloads
|
||||
|
||||
- [Android / e/OS debug APK](downloads/BeatHound-Android-eOS-1.0.0-debug.apk) — installable on Android API 24 or newer. The same APK is intended for compatible e/OS 4+ devices.
|
||||
- [Android / e/OS debug APK 0.1.0](downloads/BeatHound-Android-eOS-0.1.0-debug.apk) — installable on Android API 24 or newer. The same APK is intended for compatible e/OS 4+ devices.
|
||||
|
||||
The Android file is a debug-signed build for testing. It is not a Google Play release package. No iOS app or download is currently supported because of financial constraints.
|
||||
|
||||
@@ -42,7 +42,7 @@ The mobile prototype uses Capacitor for Android.
|
||||
npm run android:debug
|
||||
```
|
||||
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-1.0.0-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-0.1.0-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
|
||||
## Project checks
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "com.ninosaurier.beathound"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0.0"
|
||||
versionCode 4
|
||||
versionName "0.1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "beat-hound",
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "beat-hound",
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^8.6.2",
|
||||
"@capacitor/core": "^8.6.2",
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "beat-hound",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
@@ -11,7 +11,7 @@
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs --host 0.0.0.0",
|
||||
"cap:sync": "npm run build:mobile && cap sync",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-1.0.0-debug.apk",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-0.1.0-debug.apk",
|
||||
"ios:sync": "npm run build:mobile && cap sync ios",
|
||||
"ios:open": "cap open ios",
|
||||
"test": "vitest run",
|
||||
|
||||
@@ -12,7 +12,6 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
const popover = usePopoverDisclosure();
|
||||
|
||||
function selectView(view: AppView): void {
|
||||
popover.close();
|
||||
onNavigate(view);
|
||||
}
|
||||
|
||||
@@ -36,9 +35,9 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<div className="app-header-actions">
|
||||
<IonButton
|
||||
id={popover.triggerId}
|
||||
className="app-menu-trigger"
|
||||
fill="clear"
|
||||
onClick={(event) => popover.open(event.nativeEvent)}
|
||||
aria-label="Open app menu"
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
@@ -49,11 +48,13 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<IonPopover
|
||||
className="app-menu-popover"
|
||||
isOpen={popover.isOpen}
|
||||
event={popover.event}
|
||||
reference="event"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="auto"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
<nav className="app-menu-options" aria-label="App navigation">
|
||||
|
||||
@@ -17,7 +17,6 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
const selectedTemplate = BEAT_TEMPLATES.find((template) => template.id === selectedTemplateId);
|
||||
|
||||
function selectTemplate(template: BeatTemplate): void {
|
||||
popover.close();
|
||||
setSelectedTemplateId(template.id);
|
||||
onSelectTemplate(template);
|
||||
}
|
||||
@@ -25,9 +24,9 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
return (
|
||||
<div className="beat-template-selector">
|
||||
<IonButton
|
||||
id={popover.triggerId}
|
||||
className="beat-template-trigger"
|
||||
fill="solid"
|
||||
onClick={(event) => popover.open(event.nativeEvent)}
|
||||
aria-label={`Dance template: ${selectedTemplate?.label ?? 'Select a template'}`}
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
@@ -40,12 +39,13 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
|
||||
<IonPopover
|
||||
className="beat-template-popover"
|
||||
isOpen={popover.isOpen}
|
||||
event={popover.event}
|
||||
reference="event"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="center"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
<div className="beat-template-options" role="group" aria-label="Dance templates">
|
||||
|
||||
@@ -24,10 +24,10 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id={popover.triggerId}
|
||||
className="sound-ring-selector-trigger"
|
||||
fill="clear"
|
||||
disabled={soundIds.length === 0}
|
||||
onClick={(event) => popover.open(event.nativeEvent)}
|
||||
aria-label={focusedSound ? `Selected ring: ${focusedSound.label}` : 'Select a sound ring'}
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
@@ -46,12 +46,13 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
|
||||
<IonPopover
|
||||
className="sound-ring-popover"
|
||||
isOpen={popover.isOpen}
|
||||
event={popover.event}
|
||||
reference="event"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
<div className="sound-ring-options" role="group" aria-label="Sound rings">
|
||||
@@ -64,7 +65,6 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
fill={selected ? 'solid' : 'clear'}
|
||||
aria-pressed={selected}
|
||||
onClick={() => {
|
||||
popover.close();
|
||||
onSelectSound(soundId);
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -22,9 +22,9 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id={popover.triggerId}
|
||||
className="tempo-trigger"
|
||||
fill="solid"
|
||||
onClick={(event) => popover.open(event.nativeEvent)}
|
||||
aria-label={`Change tempo, currently ${tempoBpm} BPM`}
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
@@ -37,11 +37,12 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
|
||||
<IonPopover
|
||||
className="tempo-popover"
|
||||
isOpen={popover.isOpen}
|
||||
event={popover.event}
|
||||
reference="event"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="top"
|
||||
alignment="start"
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
<div className="tempo-popover-content">
|
||||
|
||||
@@ -19,9 +19,9 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id={popover.triggerId}
|
||||
className="meter-trigger"
|
||||
fill="solid"
|
||||
onClick={(event) => popover.open(event.nativeEvent)}
|
||||
aria-label={`Change time signature, currently ${beatsPerBar}/4`}
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
@@ -34,12 +34,13 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
|
||||
<IonPopover
|
||||
className="meter-popover"
|
||||
isOpen={popover.isOpen}
|
||||
event={popover.event}
|
||||
reference="event"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="start"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
<div className="meter-popover-content" role="group" aria-label="Time signature">
|
||||
@@ -50,7 +51,6 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
fill={option === beatsPerBar ? 'solid' : 'clear'}
|
||||
aria-pressed={option === beatsPerBar}
|
||||
onClick={() => {
|
||||
popover.close();
|
||||
onChange(option);
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -1,25 +1,17 @@
|
||||
import { useCallback, useState } from 'react';
|
||||
import { useCallback, useId, useState } from 'react';
|
||||
|
||||
export interface PopoverDisclosure {
|
||||
event: MouseEvent | undefined;
|
||||
triggerId: string;
|
||||
isOpen: boolean;
|
||||
open: (event: MouseEvent) => void;
|
||||
close: () => void;
|
||||
onDidPresent: () => void;
|
||||
onDidDismiss: () => void;
|
||||
}
|
||||
|
||||
export function usePopoverDisclosure(): PopoverDisclosure {
|
||||
const triggerId = useId();
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const [event, setEvent] = useState<MouseEvent>();
|
||||
const onDidPresent = useCallback(() => setIsOpen(true), []);
|
||||
const onDidDismiss = useCallback(() => setIsOpen(false), []);
|
||||
|
||||
const open = useCallback((popoverEvent: MouseEvent) => {
|
||||
setEvent(popoverEvent);
|
||||
setIsOpen(true);
|
||||
}, []);
|
||||
const close = useCallback(() => {
|
||||
setIsOpen(false);
|
||||
setEvent(undefined);
|
||||
}, []);
|
||||
|
||||
return { event, isOpen, open, close, onDidDismiss: close };
|
||||
return { triggerId, isOpen, onDidPresent, onDidDismiss };
|
||||
}
|
||||
+11
-6
@@ -347,6 +347,7 @@ ion-content.app-content-studio {
|
||||
--background-activated: #3b3944;
|
||||
--border-radius: 9px;
|
||||
--border-width: 0;
|
||||
width: min(230px, calc(100vw - 32px));
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
@@ -372,7 +373,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.beat-template-popover {
|
||||
--width: 230px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -471,6 +471,7 @@ ion-content.app-content-studio {
|
||||
--color: var(--muted);
|
||||
--border-radius: 7px;
|
||||
height: 30px;
|
||||
min-width: 160px;
|
||||
margin: 0;
|
||||
font-family: var(--mono);
|
||||
font-size: 8px;
|
||||
@@ -506,7 +507,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.sound-ring-popover {
|
||||
--width: 160px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -585,6 +585,8 @@ ion-content.app-content-studio {
|
||||
|
||||
.timeline-orbit-hit-area {
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: r 720ms cubic-bezier(0.22, 1.15, 0.36, 1);
|
||||
}
|
||||
|
||||
@@ -605,7 +607,7 @@ ion-content.app-content-studio {
|
||||
|
||||
.timeline-tick text {
|
||||
fill: var(--muted);
|
||||
font: 9px var(--mono);
|
||||
font: 14px var(--mono);
|
||||
}
|
||||
|
||||
.timeline-playhead line {
|
||||
@@ -1109,7 +1111,6 @@ ion-content.instrument-picker-content {
|
||||
|
||||
/* Popover contents */
|
||||
.tempo-popover {
|
||||
--width: var(--tempo-control-width);
|
||||
--height: 226px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
@@ -1197,13 +1198,16 @@ ion-content.instrument-picker-content {
|
||||
}
|
||||
|
||||
.meter-popover {
|
||||
--width: 96px;
|
||||
--height: 224px;
|
||||
--height: 250px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.2);
|
||||
}
|
||||
|
||||
.meter-popover::part(content) {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.meter-popover-content {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
@@ -1222,6 +1226,7 @@ ion-content.instrument-picker-content {
|
||||
--border-radius: 7px;
|
||||
width: 100%;
|
||||
height: 31px;
|
||||
min-height: 31px;
|
||||
flex: 0 0 31px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
|
||||
Reference in new issue
Block a user