├── app ├── fonts │ ├── .gitkeep │ ├── fa-solid-900.ttf │ ├── fa-brands-400.ttf │ └── fa-regular-400.ttf ├── assets │ ├── audio │ │ ├── A3_e.mp3 │ │ ├── A3_o.mp3 │ │ ├── B3_o.mp3 │ │ ├── C4_o.mp3 │ │ ├── D3_o.mp3 │ │ ├── D4_o.mp3 │ │ ├── E3_e.mp3 │ │ ├── E3_o.mp3 │ │ ├── F3_e.mp3 │ │ ├── F3_o.mp3 │ │ ├── G3_o.mp3 │ │ ├── p_A#2.mp3 │ │ ├── p_A2.mp3 │ │ ├── p_A3.mp3 │ │ ├── p_B2.mp3 │ │ ├── p_C#3.mp3 │ │ ├── p_C3.mp3 │ │ ├── p_D#3.mp3 │ │ ├── p_D3.mp3 │ │ ├── p_E3.mp3 │ │ ├── p_F#2.mp3 │ │ ├── p_F#3.mp3 │ │ ├── p_F2.mp3 │ │ ├── p_F3.mp3 │ │ ├── p_G#2.mp3 │ │ ├── p_G#3.mp3 │ │ ├── p_G2.mp3 │ │ ├── p_G3.mp3 │ │ └── slide.mp3 │ └── images │ │ ├── car.png │ │ ├── dog.jpg │ │ ├── track.png │ │ └── NativeScript-Vue.png ├── App_Resources │ ├── iOS │ │ ├── Assets.xcassets │ │ │ ├── Contents.json │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── icon-29.png │ │ │ │ ├── icon-40.png │ │ │ │ ├── icon-76.png │ │ │ │ ├── icon-1024.png │ │ │ │ ├── icon-29@2x.png │ │ │ │ ├── icon-29@3x.png │ │ │ │ ├── icon-40@2x.png │ │ │ │ ├── icon-40@3x.png │ │ │ │ ├── icon-60@2x.png │ │ │ │ ├── icon-60@3x.png │ │ │ │ ├── icon-76@2x.png │ │ │ │ ├── icon-83.5@2x.png │ │ │ │ └── Contents.json │ │ │ ├── LaunchImage.launchimage │ │ │ │ ├── Default.png │ │ │ │ ├── Default@2x.png │ │ │ │ ├── Default-1125h.png │ │ │ │ ├── Default-568h@2x.png │ │ │ │ ├── Default-667h@2x.png │ │ │ │ ├── Default-736h@3x.png │ │ │ │ ├── Default-Landscape.png │ │ │ │ ├── Default-Portrait.png │ │ │ │ ├── Default-Landscape-X.png │ │ │ │ ├── Default-Landscape@2x.png │ │ │ │ ├── Default-Landscape@3x.png │ │ │ │ ├── Default-Portrait@2x.png │ │ │ │ └── Contents.json │ │ │ ├── LaunchScreen.Center.imageset │ │ │ │ ├── LaunchScreen-Center.png │ │ │ │ ├── LaunchScreen-Center@2x.png │ │ │ │ └── Contents.json │ │ │ └── LaunchScreen.AspectFill.imageset │ │ │ │ ├── LaunchScreen-AspectFill.png │ │ │ │ ├── LaunchScreen-AspectFill@2x.png │ │ │ │ └── Contents.json │ │ ├── build.xcconfig │ │ ├── Info.plist │ │ └── LaunchScreen.storyboard │ └── Android │ │ ├── src │ │ └── main │ │ │ ├── res │ │ │ ├── values-v21 │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ ├── drawable-hdpi │ │ │ │ ├── cart.png │ │ │ │ ├── cat.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── path.png │ │ │ │ └── background.png │ │ │ ├── drawable-ldpi │ │ │ │ ├── cart.png │ │ │ │ ├── cat.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── track.png │ │ │ │ └── background.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── cart.png │ │ │ │ ├── cat.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── track.png │ │ │ │ └── background.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── cat.png │ │ │ │ ├── cart.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── track.png │ │ │ │ └── background.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── cart.png │ │ │ │ ├── cat.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── track.png │ │ │ │ └── background.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── cart.png │ │ │ │ ├── cat.png │ │ │ │ ├── icon.png │ │ │ │ ├── logo.png │ │ │ │ ├── track.png │ │ │ │ └── background.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── styles.xml │ │ │ └── drawable-nodpi │ │ │ │ └── splash_screen.xml │ │ │ └── AndroidManifest.xml │ │ └── app.gradle ├── package.json ├── utils │ ├── Config.js │ ├── Constants.js │ └── Utils.js ├── components │ ├── Loading.vue │ ├── UIControls │ │ ├── SpectraTextView.vue │ │ ├── SpectraMinorButton.vue │ │ ├── SpectraMajorButton.vue │ │ ├── SpectraProgressBox.vue │ │ ├── ExerciseProgressRow.vue │ │ └── SpectraActionButton.vue │ ├── ExerciseScreens │ │ ├── PitchPerfectComponents │ │ │ ├── IntroNotePickerButton.vue │ │ │ ├── PitchPerfectIndicatorRow.vue │ │ │ ├── MicRecorder.vue │ │ │ └── IntroNotePicker.vue │ │ ├── BDSD.vue │ │ ├── PitchPerfect.vue │ │ ├── BDSDInfo.vue │ │ ├── HoldThatNote.vue │ │ ├── ConvoVizComponents │ │ │ └── PitchDetectionWorker.js │ │ ├── Slides.vue │ │ └── Convo.vue │ ├── OnboardingScreens │ │ ├── Disclaimer.vue │ │ ├── Welcome.vue │ │ ├── VocalHealthWarnings.vue │ │ ├── SetAGoal.vue │ │ └── SpecificPitchPicker.vue │ ├── AudioRecorder.vue │ ├── Settings.vue │ ├── App.vue │ ├── ActiveExercises.vue │ └── ChangeGoal.vue ├── app.scss ├── main.js └── store.js ├── .gitignore ├── babel.config.js ├── .vscode └── launch.json ├── .migration_backup ├── package.json └── webpack.config.js ├── package.json ├── README.md ├── CODE_OF_CONDUCT.md └── LICENSE /app/fonts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/assets/audio/A3_e.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/A3_e.mp3 -------------------------------------------------------------------------------- /app/assets/audio/A3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/A3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/B3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/B3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/C4_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/C4_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/D3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/D3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/D4_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/D4_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/E3_e.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/E3_e.mp3 -------------------------------------------------------------------------------- /app/assets/audio/E3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/E3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/F3_e.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/F3_e.mp3 -------------------------------------------------------------------------------- /app/assets/audio/F3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/F3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/G3_o.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/G3_o.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_A#2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_A#2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_A2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_A2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_A3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_A3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_B2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_B2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_C#3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_C#3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_C3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_C3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_D#3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_D#3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_D3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_D3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_E3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_E3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_F#2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_F#2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_F#3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_F#3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_F2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_F2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_F3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_F3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_G#2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_G#2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_G#3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_G#3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_G2.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_G2.mp3 -------------------------------------------------------------------------------- /app/assets/audio/p_G3.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/p_G3.mp3 -------------------------------------------------------------------------------- /app/assets/audio/slide.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/audio/slide.mp3 -------------------------------------------------------------------------------- /app/assets/images/car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/images/car.png -------------------------------------------------------------------------------- /app/assets/images/dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/images/dog.jpg -------------------------------------------------------------------------------- /app/fonts/fa-solid-900.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/fonts/fa-solid-900.ttf -------------------------------------------------------------------------------- /app/assets/images/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/images/track.png -------------------------------------------------------------------------------- /app/fonts/fa-brands-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/fonts/fa-brands-400.ttf -------------------------------------------------------------------------------- /app/fonts/fa-regular-400.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/fonts/fa-regular-400.ttf -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /app/assets/images/NativeScript-Vue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/assets/images/NativeScript-Vue.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # JetBrains project files 2 | .idea 3 | 4 | # NPM 5 | node_modules 6 | 7 | # NativeScript application 8 | hooks 9 | platforms 10 | -------------------------------------------------------------------------------- /app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "android": { 3 | "v8Flags": "--expose_gc" 4 | }, 5 | "main": "main", 6 | "name": "nv-test", 7 | "version": "1.0.0" 8 | } 9 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values-v21/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3d5afe 4 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function (api) { 2 | api.cache(true) 3 | 4 | return { 5 | presets: [['@babel/env', { targets: { esmodules: true } }]], 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/path.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/track.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/track.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/track.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/track.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/cart.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/cat.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/track.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/track.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-hdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-ldpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-mdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png -------------------------------------------------------------------------------- /app/utils/Config.js: -------------------------------------------------------------------------------- 1 | 2 | export const Config = { 3 | //'#A7C6BE', //Muted green 4 | primaryColor: '#72C8B2', //Bright green 5 | accentColor: '#F7AF51', //Orange 6 | mutedColor: '#E8E8E8' //Gray 7 | }; 8 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Project Spectra 4 | Project Spectra 5 | 6 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/project-spectra/test-app/HEAD/app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values-v21/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Project Spectra 4 | Project Spectra 5 | 6 | -------------------------------------------------------------------------------- /app/App_Resources/Android/app.gradle: -------------------------------------------------------------------------------- 1 | // Add your native dependencies here: 2 | 3 | android { 4 | defaultConfig { 5 | generatedDensities = [] 6 | applicationId = "org.nativescript.application" 7 | } 8 | aaptOptions { 9 | additionalParameters "--no-version-vectors" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #F5F5F5 4 | #53ba82 5 | #33B5E5 6 | #272734 7 | 8 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-Center.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-Center@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchScreen-AspectFill.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchScreen-AspectFill@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /app/App_Resources/iOS/build.xcconfig: -------------------------------------------------------------------------------- 1 | // You can add custom settings here 2 | // for example you can uncomment the following line to force distribution code signing 3 | // CODE_SIGN_IDENTITY = iPhone Distribution 4 | // To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html 5 | // DEVELOPMENT_TEAM = YOUR_TEAM_ID; 6 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 7 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 8 | -------------------------------------------------------------------------------- /app/components/Loading.vue: -------------------------------------------------------------------------------- 1 | // https://www.nativescript.org/blog/renderless-components-in-nativescript-vue 2 | // A component that checks whether the app has previously been initialized and returns the correct screen otherwise. 3 | 8 | 22 | -------------------------------------------------------------------------------- /app/app.scss: -------------------------------------------------------------------------------- 1 | // NativeScript core theme 2 | // @see https://docs.nativescript.org/ui/theme 3 | @import '~nativescript-theme-core/scss/grey'; 4 | 5 | // Override variables here 6 | 7 | @import '~nativescript-theme-core/scss/index'; 8 | 9 | // Global SCSS styling 10 | // @see https://docs.nativescript.org/ui/styling 11 | 12 | // https://medium.com/@JCAguilera/fontawesome-5-and-nativescript-22653f2b3bac 13 | 14 | .far { 15 | font-family: Font Awesome 5 Free, fa-regular-400; 16 | } 17 | 18 | .fab { 19 | font-family: Font Awesome 5 Brands, fa-brands-400; 20 | } 21 | 22 | .fas { 23 | font-family: Font Awesome 5 Free, fa-solid-900; 24 | } 25 | -------------------------------------------------------------------------------- /app/components/UIControls/SpectraTextView.vue: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 27 | 28 | 29 | 34 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | 14 | 15 | 16 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /app/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'nativescript-vue' 2 | import Vuex from 'vuex'; 3 | import App from './components/App' 4 | 5 | import VueDevtools from 'nativescript-vue-devtools' 6 | import { store } from './store.js' 7 | import Welcome from "./components/OnboardingScreens/Welcome"; 8 | 9 | import RadDataForm from 'nativescript-ui-dataform/vue'; 10 | 11 | Vue.use(RadDataForm); 12 | 13 | 14 | if(TNS_ENV !== 'production') { 15 | Vue.use(VueDevtools) 16 | } 17 | Vue.use(Vuex); 18 | // Prints Vue logs when --env.production is *NOT* set while building 19 | // Vue.config.silent = (TNS_ENV === 'production') 20 | Vue.config.silent = false; 21 | 22 | // https://github.com/nstudio/nativescript-checkbox 23 | Vue.registerElement('CheckBox', () => require('@nstudio/nativescript-checkbox').CheckBox, { 24 | model: { 25 | prop: 'checked', 26 | event: 'checkedChange' 27 | } 28 | }); 29 | 30 | new Vue({ 31 | store, 32 | // https://github.com/vuejs-templates/webpack-simple/issues/29 33 | // creates a root frame element; each frame has its own navigation hierarchy 34 | render: h => { 35 | store.commit("load"); 36 | console.log(store.state.firstLoad); 37 | return h('Frame', [h(store.state.firstLoad ? Welcome : App)]) 38 | } 39 | }).$start(); 40 | -------------------------------------------------------------------------------- /app/utils/Constants.js: -------------------------------------------------------------------------------- 1 | export const AVAILABLE_GOALS = [{ 2 | id: 'select_a_goal', 3 | name: 'Select a goal...', 4 | }, 5 | { 6 | id: 'more_masc_sound', 7 | name: 'More Masculine Sound' 8 | 9 | }, { 10 | id: 'more_fem_sound', 11 | name: 'More Feminine Sound' 12 | }, { 13 | id: 'androgyn_sound', 14 | name: 'More Androgynous Sound' 15 | }, { 16 | id: 'explore_voice', 17 | name: 'Exploring my voice' 18 | }]; 19 | 20 | export const PITCHPERFECT_NOTES = [{ 21 | id: 'low_1', 22 | name: 'D3', 23 | }, 24 | { 25 | id: 'low_2', 26 | name: 'E3', 27 | }, 28 | { 29 | id: 'low_3', 30 | name: 'F3', 31 | }, 32 | { 33 | id: 'low_4', 34 | name: 'G3', 35 | }, 36 | { 37 | id: 'low_5', 38 | name: 'A3', 39 | }, 40 | { 41 | id: 'med_1', 42 | name: 'F3', 43 | }, 44 | { 45 | id: 'med_2', 46 | name: 'G3', 47 | }, 48 | { 49 | id: 'med_3', 50 | name: 'A3', 51 | }, 52 | { 53 | id: 'med_4', 54 | name: 'B3', 55 | }, 56 | { 57 | id: 'med_5', 58 | name: 'C4', 59 | }, 60 | { 61 | id: 'high_1', 62 | name: 'G3', 63 | }, 64 | { 65 | id: 'high_2', 66 | name: 'A3', 67 | }, 68 | { 69 | id: 'high_3', 70 | name: 'B3', 71 | }, 72 | { 73 | id: 'high_4', 74 | name: 'C4', 75 | }, 76 | { 77 | id: 'high_5', 78 | name: 'D4', 79 | }]; 80 | 81 | export const PITCH_PERFECT_RUNG_HEIGHT_DP = 40; 82 | -------------------------------------------------------------------------------- /app/components/UIControls/SpectraMinorButton.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 38 | 39 | 42 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/components/UIControls/SpectraMajorButton.vue: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 39 | 40 | 43 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | NativeScript-Vue Application 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0.0 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiresFullScreen 28 | 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /app/utils/Utils.js: -------------------------------------------------------------------------------- 1 | // All credits go to https://gist.github.com/stuartmemo/3766449 -Transfusion 2 | export const getFrequency = function (note) { 3 | let notes = ['A', 'A#', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#'], 4 | octave, 5 | keyNumber; 6 | 7 | if (note.length === 3) { 8 | octave = note.charAt(2); 9 | } else { 10 | octave = note.charAt(1); 11 | } 12 | 13 | keyNumber = notes.indexOf(note.slice(0, -1)); 14 | 15 | if (keyNumber < 3) { 16 | keyNumber = keyNumber + 12 + ((octave - 1) * 12) + 1; 17 | } else { 18 | keyNumber = keyNumber + ((octave - 1) * 12) + 1; 19 | } 20 | 21 | // Return frequency of note 22 | return 440 * Math.pow(2, (keyNumber- 49) / 12); 23 | }; 24 | 25 | let noteStrings = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]; 26 | 27 | // todo: refactor with divmod 28 | export function noteFromPitch( frequency ) { 29 | let noteNum = 12 * (Math.log(frequency / 440) / Math.log(2)); 30 | let note = Math.round( noteNum ) + 69; 31 | return noteStrings[note % 12] + (Math.floor(note / 12) - 1) 32 | } 33 | 34 | export const MathUtils = { 35 | interpolateLinear: (X1, X2, Y1, Y2) => { 36 | let slope = (Y2 - Y1) / (X2 - X1); 37 | let intercept = Y1 - slope * X1; 38 | return (x) => { 39 | return slope * x + intercept; 40 | } 41 | } 42 | }; 43 | 44 | export function truncateDecimal(val, places) { 45 | return +((val).toFixed(places)); 46 | } 47 | 48 | export const median = arr => { 49 | const mid = Math.floor(arr.length / 2), 50 | nums = [...arr].sort((a, b) => a - b); 51 | return arr.length % 2 !== 0 ? nums[mid] : (nums[mid - 1] + nums[mid]) / 2; 52 | }; 53 | -------------------------------------------------------------------------------- /app/components/UIControls/SpectraProgressBox.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 52 | -------------------------------------------------------------------------------- /app/App_Resources/Android/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 17 | 18 | 20 | 21 | 22 | 29 | 30 | 32 | 33 | 34 | 39 | 40 | 42 | 43 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Launch on iOS", 9 | "type": "nativescript", 10 | "request": "launch", 11 | "platform": "ios", 12 | "appRoot": "${workspaceRoot}", 13 | "sourceMaps": true, 14 | "watch": true, 15 | "sourceMapPathOverrides": { 16 | "webpack:///*": "${workspaceRoot}/src/*" 17 | } 18 | }, 19 | { 20 | "name": "Attach on iOS", 21 | "type": "nativescript", 22 | "request": "attach", 23 | "platform": "ios", 24 | "appRoot": "${workspaceRoot}", 25 | "sourceMaps": true, 26 | "watch": false, 27 | "sourceMapPathOverrides": { 28 | "webpack:///*": "${workspaceRoot}/src/*" 29 | } 30 | }, 31 | { 32 | "name": "Launch on Android", 33 | "type": "nativescript", 34 | "request": "launch", 35 | "platform": "android", 36 | "appRoot": "${workspaceRoot}", 37 | "sourceMaps": true, 38 | "watch": true, 39 | "tnsArgs": ["--bundle"], 40 | "sourceMapPathOverrides": { 41 | "webpack:///*": "${workspaceRoot}/src/*" 42 | } 43 | }, 44 | { 45 | "name": "Attach on Android", 46 | "type": "nativescript", 47 | "request": "attach", 48 | "platform": "android", 49 | "appRoot": "${workspaceRoot}", 50 | "sourceMaps": true, 51 | "watch": false, 52 | "sourceMapPathOverrides": { 53 | "webpack:///*": "${workspaceRoot}/src/*" 54 | } 55 | } 56 | ] 57 | } -------------------------------------------------------------------------------- /app/components/ExerciseScreens/PitchPerfectComponents/IntroNotePickerButton.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 55 | -------------------------------------------------------------------------------- /.migration_backup/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nv-test", 3 | "version": "1.0.0", 4 | "description": "A native application built with NativeScript-Vue", 5 | "author": "ozzmotic ", 6 | "license": "MIT", 7 | "nativescript": { 8 | "id": "org.nativescript.application", 9 | "tns-ios": { 10 | "version": "4.2.0" 11 | }, 12 | "tns-android": { 13 | "version": "5.0.0" 14 | } 15 | }, 16 | "dependencies": { 17 | "@vue/devtools": "^5.1.0", 18 | "ajv": "^6.6.1", 19 | "ajv-keywords": "^3.2.0", 20 | "electron": "^3.0.6", 21 | "nativescript-audio": "^5.0.1", 22 | "nativescript-checkbox": "^3.0.3", 23 | "nativescript-permissions": "^1.3.6", 24 | "nativescript-socket.io": "^0.9.0", 25 | "nativescript-spectra-pitch-perfect-plugin": "file:../spectra-pitch-perfect-plugin/src", 26 | "nativescript-theme-core": "^1.0.4", 27 | "nativescript-toast": "^1.4.6", 28 | "nativescript-ui-dataform": "^4.0.0", 29 | "nativescript-vue": "^2.0.0", 30 | "nativescript-vue-devtools": "^1.0.0", 31 | "timer-machine": "^1.1.0", 32 | "tns-android": "^5.0.0", 33 | "tns-core-modules": "^5.0.5", 34 | "vuex": "^3.0.1" 35 | }, 36 | "devDependencies": { 37 | "@babel/core": "^7.0.0", 38 | "@babel/preset-env": "^7.0.0", 39 | "babel-loader": "^8.0.2", 40 | "babel-traverse": "6.26.0", 41 | "babel-types": "6.26.0", 42 | "babylon": "6.18.0", 43 | "clean-webpack-plugin": "^0.1.19", 44 | "copy-webpack-plugin": "^4.5.2", 45 | "css-loader": "^1.0.0", 46 | "lazy": "1.0.11", 47 | "nativescript-dev-webpack": "^1.0.3", 48 | "nativescript-vue-template-compiler": "^2.0.0", 49 | "nativescript-worker-loader": "~0.9.0", 50 | "node-sass": "^4.12.0", 51 | "sass-loader": "^7.1.0", 52 | "terser-webpack-plugin": "^1.1.0", 53 | "typescript": "^3.5.3", 54 | "uglifyjs-webpack-plugin": "^2.1.2", 55 | "vue-loader": "^15.2.6", 56 | "webpack": "^4.27.1", 57 | "webpack-bundle-analyzer": "^3.4.1", 58 | "webpack-cli": "^3.1.0" 59 | } 60 | } -------------------------------------------------------------------------------- /app/components/ExerciseScreens/PitchPerfectComponents/PitchPerfectIndicatorRow.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 59 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "icon-29.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "icon-29@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "icon-29@3x.png", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "icon-40@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "40x40", 29 | "idiom" : "iphone", 30 | "filename" : "icon-40@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "icon-60@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "iphone", 42 | "filename" : "icon-60@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "icon-29.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "29x29", 53 | "idiom" : "ipad", 54 | "filename" : "icon-29@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "icon-40.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "40x40", 65 | "idiom" : "ipad", 66 | "filename" : "icon-40@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "icon-76.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "76x76", 77 | "idiom" : "ipad", 78 | "filename" : "icon-76@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "83.5x83.5", 83 | "idiom" : "ipad", 84 | "filename" : "icon-83.5@2x.png", 85 | "scale" : "2x" 86 | }, 87 | { 88 | "size" : "1024x1024", 89 | "idiom" : "ios-marketing", 90 | "filename" : "icon-1024.png", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /app/components/OnboardingScreens/Disclaimer.vue: -------------------------------------------------------------------------------- 1 | 2 | 17 | 18 | 19 | 43 | 44 | 70 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nv-test", 3 | "version": "1.0.0", 4 | "description": "A native application built with NativeScript-Vue", 5 | "author": "ozzmotic ", 6 | "license": "MIT", 7 | "nativescript": { 8 | "id": "org.nativescript.application", 9 | "tns-ios": { 10 | "version": "6.0.2" 11 | }, 12 | "tns-android": { 13 | "version": "6.0.2" 14 | } 15 | }, 16 | "dependencies": { 17 | "@nstudio/nativescript-checkbox": "^1.0.0", 18 | "@vue/devtools": "^5.1.1", 19 | "ajv": "^6.6.1", 20 | "ajv-keywords": "^3.2.0", 21 | "electron": "^3.0.6", 22 | "moment": "^2.24.0", 23 | "music-fns": "^0.1.3", 24 | "nativescript-audio": "^5.0.1", 25 | "nativescript-checkbox": "^3.0.3", 26 | "nativescript-nodeify": "^0.8.0", 27 | "nativescript-permissions": "^1.3.6", 28 | "nativescript-socketio": "^3.3.1", 29 | "nativescript-spectra-audio-recorder-plugin": "file:../spectra-audio-recorder-plugin/src", 30 | "nativescript-spectra-bdsd-plugin": "file:../spectra-bdsd-plugin/src", 31 | "nativescript-spectra-pitch-perfect-plugin": "file:../spectra-pitch-perfect-plugin/src", 32 | "nativescript-texttospeech": "^2.0.3", 33 | "nativescript-theme-core": "^1.0.4", 34 | "nativescript-toast": "^2.0.0", 35 | "nativescript-ui-dataform": "5.0.0", 36 | "nativescript-vue": "^2.0.0", 37 | "nativescript-vue-devtools": "^1.2.0", 38 | "pitchfinder": "^2.1.0", 39 | "timer-machine": "^1.1.0", 40 | "tns-android": "^5.0.0", 41 | "tns-core-modules": "^6.0.1", 42 | "vuex": "^3.0.1", 43 | "wav-decoder": "^1.3.0" 44 | }, 45 | "devDependencies": { 46 | "@babel/core": "^7.0.0", 47 | "@babel/preset-env": "^7.0.0", 48 | "babel-loader": "^8.0.2", 49 | "babel-traverse": "6.26.0", 50 | "babel-types": "6.26.0", 51 | "babylon": "6.18.0", 52 | "clean-webpack-plugin": "^0.1.19", 53 | "copy-webpack-plugin": "^4.5.2", 54 | "css-loader": "^1.0.0", 55 | "lazy": "1.0.11", 56 | "nativescript-dev-webpack": "^1.0.3", 57 | "nativescript-toasty": "^2.0.1", 58 | "nativescript-vue-template-compiler": "^2.0.0", 59 | "nativescript-worker-loader": "~0.9.0", 60 | "node-sass": "^4.12.0", 61 | "sass-loader": "^7.1.0", 62 | "terser-webpack-plugin": "^1.1.0", 63 | "typescript": "^3.5.3", 64 | "uglifyjs-webpack-plugin": "^2.1.2", 65 | "vue-loader": "^15.2.6", 66 | "webpack": "^4.27.1", 67 | "webpack-bundle-analyzer": "^3.4.1", 68 | "webpack-cli": "^3.1.0" 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /app/components/UIControls/ExerciseProgressRow.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 63 | 64 | 67 | -------------------------------------------------------------------------------- /app/components/UIControls/SpectraActionButton.vue: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 60 | 61 | 88 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/BDSD.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 68 | 69 | 70 | 89 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/PitchPerfect.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 58 | 59 | 86 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/PitchPerfectComponents/MicRecorder.vue: -------------------------------------------------------------------------------- 1 | 22 | 23 | 24 | 80 | 81 | 82 | 94 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/BDSDInfo.vue: -------------------------------------------------------------------------------- 1 | 2 | 41 | 42 | 43 | 72 | 73 | 91 | -------------------------------------------------------------------------------- /app/components/AudioRecorder.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 101 | -------------------------------------------------------------------------------- /app/components/OnboardingScreens/Welcome.vue: -------------------------------------------------------------------------------- 1 | 2 | 28 | 29 | 30 | 60 | 61 | 87 | -------------------------------------------------------------------------------- /app/store.js: -------------------------------------------------------------------------------- 1 | import Vue from 'nativescript-vue' 2 | import Vuex from 'vuex'; 3 | import * as ApplicationSettings from "tns-core-modules/application-settings"; 4 | 5 | Vue.use(Vuex); 6 | 7 | export const store = new Vuex.Store({ 8 | state: { 9 | name: "", 10 | firstLoad: true, 11 | goal: "", 12 | pitchPerfectCompleted: 0, 13 | slideCompleted: 0, 14 | bdsdCompleted: 0, 15 | lastOpened: 0, 16 | hz: 0 17 | }, 18 | mutations: { 19 | load(state) { 20 | if(ApplicationSettings.getString("store")) { 21 | this.replaceState( 22 | Object.assign(state, JSON.parse(ApplicationSettings.getString("store"))) 23 | ); 24 | } 25 | }, 26 | save(state) { 27 | // Object.assign(state, data); 28 | ApplicationSettings.setString("store", JSON.stringify(state)); 29 | }, 30 | setName(state, name) { 31 | state.name = name; 32 | }, 33 | setGoal(state, goal) { 34 | state.goal = goal; 35 | }, 36 | setSpecificPitchGoal(state, hz) { 37 | state.hz = hz; 38 | }, 39 | //Set how many times an exercise has been completed for daily tracking 40 | setFirstLoad(state, firstLoad) { 41 | state.firstLoad = firstLoad; 42 | }, 43 | setLastOpened(state, lastOpened) { 44 | state.lastOpened = lastOpened; 45 | }, 46 | setPitchPerfectCompletion(state, value) { 47 | if (value > 2) { 48 | state.pitchPerfectCompleted = 2; 49 | } else { 50 | state.pitchPerfectCompleted = value; 51 | } 52 | }, 53 | setBdsdCompletion(state, value) { 54 | if (value > 2) { 55 | state.bdsdCompleted = 2; 56 | } else { 57 | state.bdsdCompleted = value; 58 | } 59 | }, 60 | setSlideCompletion(state, value) { 61 | if (value > 2) { 62 | state.slideCompleted = 2; 63 | } else { 64 | state.slideCompleted = value; 65 | } 66 | } 67 | }, 68 | 69 | getters: { 70 | // 71 | }, 72 | 73 | actions: { 74 | setName(context, name) { 75 | context.commit('setName', name); 76 | context.commit('save'); 77 | }, 78 | setGoal(context, goal) { 79 | context.commit('setGoal', goal); 80 | context.commit('save'); 81 | }, 82 | setFirstLoad(context, firstLoad) { 83 | context.commit('setFirstLoad', firstLoad); 84 | context.commit('save'); 85 | }, 86 | setLastOpened(context, lastOpened) { 87 | context.commit('setLastOpened', lastOpened); 88 | context.commit('save'); 89 | }, 90 | setSpecificPitchGoal(context, hz) { 91 | context.commit('setSpecificPitchGoal', hz); 92 | context.commit('save'); 93 | }, 94 | //Exercise completion 95 | setPitchPerfectCompletion(context, value) { 96 | context.commit('setPitchPerfectCompletion', value); 97 | context.commit('save'); 98 | }, 99 | setBdsdCompletion(context, value) { 100 | context.commit('setBdsdCompletion', value); 101 | context.commit('save'); 102 | }, 103 | setSlideCompletion(context, value) { 104 | context.commit('setSlideCompletion', value); 105 | context.commit('save'); 106 | } 107 | } 108 | }); 109 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/PitchPerfectComponents/IntroNotePicker.vue: -------------------------------------------------------------------------------- 1 | 2 | 29 | 30 | 31 | 98 | 99 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /app/components/Settings.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 96 | 97 | 123 | -------------------------------------------------------------------------------- /app/components/OnboardingScreens/VocalHealthWarnings.vue: -------------------------------------------------------------------------------- 1 | 2 | 40 | 41 | 42 | 88 | 89 | 90 | 115 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Spectra 2 | 3 | > Our goal is to work with trans people, clinical speech therapists, and trans voice experts to build a voice training app that doesn’t suck. 4 | 5 | ## Development Environment Setup 6 | 7 | These steps have been tested on macOS 10.14.6 and Ubuntu 18.04.3 LTS. 8 | 1. Ensure you have `node` installed. [Node Version Manager](https://github.com/nvm-sh/nvm) can help with having an isolated `node` environment rather than that of your system. `lts/dubnium` or Node.js 10 and above should work. 9 | 10 | 2. Make an empty directory to put the sources in, then clone the [main repo](https://github.com/project-spectra/test-app.git) as well as the NativeScript plugins required for voice analysis, into said empty directory. As of the time of writing, the available plugins are: 11 | 1. [Pitch Perfect Plugin](https://github.com/project-spectra/spectra-pitch-perfect-plugin) 12 | 2. [BDSD Plugin](https://github.com/project-spectra/spectra-bdsd-plugin) 13 | 14 | For convenience, the `.jar`s that these libraries depend on are already checked into git to make working on the frontend easier. If you're interested on working on algorithms and audio processing, please visit [Native Plugin Development](http://tbd). 15 | 16 | 3. Ensure that you have the Android P (API 28) SDK Platform and build tools and/or Xcode 10.2 (mandatory, some of the libraries use Swift 5) or above installed. Set your Android SDK environment variables appropriately, e.g.: 17 | ``` 18 | export ANDROID_HOME=~/Library/Android/sdk/ 19 | export PATH=$ANDROID_HOME/platform-tools:$PATH 20 | ``` 21 | 22 | 4. 23 | npm install -g nativescript 24 | cd test-app 25 | npm install 26 | cd .. 27 | cd spectra-bdsd-plugin 28 | npm install 29 | cd .. 30 | # `cd` into every other plugin folder and do npm install 31 | 32 | 33 | 34 | Please refer to the NativeScript tutorial for more details as it is a very fast-moving platform: https://nativescript-vue.org/en/docs/getting-started/installation/ 35 | 36 | ## Usage 37 | 38 | ``` bash 39 | # Before performing any of these commands, you must cd into the src folder within every plugin and run the typescript transpiler, and *leave the terminal window open*: 40 | 41 | cd spectra-*-plugin/src/ 42 | npm run plugin.tscwatch 43 | 44 | # is {android,ios} 45 | # Build for production 46 | tns build --bundle 47 | 48 | # Build, watch for changes and debug the application 49 | tns debug --bundle 50 | 51 | # Build, watch for changes and run the application 52 | tns run --bundle 53 | ``` 54 | 55 | # How you can help 56 | 57 | ## Algorithm Research 58 | - Help us document common techniques or algorithms used in speech analysis and which are **relevant to our exercises** in the Wiki or by opening a new issue for discussion. 59 | - One such example is [here](https://github.com/project-spectra/test-app/wiki/Formants-and-their-extraction). 60 | - Even if you do not implement it yourself (which may often be the case), your contributions are extremely valuable - others interested in the implementation will get a head start where you left off and avoid "barking up the wrong tree" especially if you manage to document the pros and cons of various approaches. 61 | - The documentation should strive to be as self-contained as possible to lower the entry barrier for contributors. 62 | - Documenting algorithms which we implement by simply making use of other open source libraries is also appreciated; at the very least references to some papers would help shed light on their inner workings (e.g. the YIN algorithm for F0 detection.) 63 | - "Ten Physical Elements of the Voice and Two Cultural Elements of Speech that Are Relevant to Gender" can be found [here](https://docs.google.com/document/d/1fiWuHP2-scY6n1bJ5N4MYtnMJL5xyql7fKsbujmpCYE/view). 64 | 65 | ## iOS 66 | - Achieve full feature parity and consistent UX with the Android version. 67 | - This involves filling out the `.ios.js` files in the plugin repos as well as researching alternatives that behave similarly to the Android version. For instance, we may use TarsosDSP on Android for F0 detection, but CoreAudio on iOS instead. 68 | 69 | ## Other coding-related tasks 70 | - Unit testing 71 | - Documentation 72 | - Vue component names of certain reusable design elements such as buttons, controls, etc. 73 | - Making existing documentation more accessible and user friendly by adding table of contents, examples, etc. 74 | 75 | 76 | To get in touch with us and learn more about our procedures, practices, and history, please read our [Onboarding Guide](https://docs.google.com/document/d/1-poyIcIj0BSHoWMEc8NA--XnNl2zCiyEonpMrjRFFVU/view) and [Contributor's Covenant](http://tbd). 77 | 78 | # Planned features 79 | 80 | 'Big Dog Small Dog' voice training exercise 81 | 82 | Conversational practice exercise 83 | 84 | Customizable goals and feedback, with an emphasis on user empowerment and agency -------------------------------------------------------------------------------- /app/components/ExerciseScreens/HoldThatNote.vue: -------------------------------------------------------------------------------- 1 | 30 | 88 | 89 | 122 | -------------------------------------------------------------------------------- /app/App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "2436h", 7 | "filename" : "Default-1125h.png", 8 | "minimum-system-version" : "11.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "orientation" : "landscape", 14 | "idiom" : "iphone", 15 | "extent" : "full-screen", 16 | "filename" : "Default-Landscape-X.png", 17 | "minimum-system-version" : "11.0", 18 | "subtype" : "2436h", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "736h", 25 | "filename" : "Default-736h@3x.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "3x" 29 | }, 30 | { 31 | "extent" : "full-screen", 32 | "idiom" : "iphone", 33 | "subtype" : "736h", 34 | "filename" : "Default-Landscape@3x.png", 35 | "minimum-system-version" : "8.0", 36 | "orientation" : "landscape", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "extent" : "full-screen", 41 | "idiom" : "iphone", 42 | "subtype" : "667h", 43 | "filename" : "Default-667h@2x.png", 44 | "minimum-system-version" : "8.0", 45 | "orientation" : "portrait", 46 | "scale" : "2x" 47 | }, 48 | { 49 | "orientation" : "portrait", 50 | "idiom" : "iphone", 51 | "filename" : "Default@2x.png", 52 | "extent" : "full-screen", 53 | "minimum-system-version" : "7.0", 54 | "scale" : "2x" 55 | }, 56 | { 57 | "extent" : "full-screen", 58 | "idiom" : "iphone", 59 | "subtype" : "retina4", 60 | "filename" : "Default-568h@2x.png", 61 | "minimum-system-version" : "7.0", 62 | "orientation" : "portrait", 63 | "scale" : "2x" 64 | }, 65 | { 66 | "orientation" : "portrait", 67 | "idiom" : "ipad", 68 | "filename" : "Default-Portrait.png", 69 | "extent" : "full-screen", 70 | "minimum-system-version" : "7.0", 71 | "scale" : "1x" 72 | }, 73 | { 74 | "orientation" : "landscape", 75 | "idiom" : "ipad", 76 | "filename" : "Default-Landscape.png", 77 | "extent" : "full-screen", 78 | "minimum-system-version" : "7.0", 79 | "scale" : "1x" 80 | }, 81 | { 82 | "orientation" : "portrait", 83 | "idiom" : "ipad", 84 | "filename" : "Default-Portrait@2x.png", 85 | "extent" : "full-screen", 86 | "minimum-system-version" : "7.0", 87 | "scale" : "2x" 88 | }, 89 | { 90 | "orientation" : "landscape", 91 | "idiom" : "ipad", 92 | "filename" : "Default-Landscape@2x.png", 93 | "extent" : "full-screen", 94 | "minimum-system-version" : "7.0", 95 | "scale" : "2x" 96 | }, 97 | { 98 | "orientation" : "portrait", 99 | "idiom" : "iphone", 100 | "filename" : "Default.png", 101 | "extent" : "full-screen", 102 | "scale" : "1x" 103 | }, 104 | { 105 | "orientation" : "portrait", 106 | "idiom" : "iphone", 107 | "filename" : "Default@2x.png", 108 | "extent" : "full-screen", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "orientation" : "portrait", 113 | "idiom" : "iphone", 114 | "filename" : "Default-568h@2x.png", 115 | "extent" : "full-screen", 116 | "subtype" : "retina4", 117 | "scale" : "2x" 118 | }, 119 | { 120 | "orientation" : "portrait", 121 | "idiom" : "ipad", 122 | "extent" : "to-status-bar", 123 | "scale" : "1x" 124 | }, 125 | { 126 | "orientation" : "portrait", 127 | "idiom" : "ipad", 128 | "filename" : "Default-Portrait.png", 129 | "extent" : "full-screen", 130 | "scale" : "1x" 131 | }, 132 | { 133 | "orientation" : "landscape", 134 | "idiom" : "ipad", 135 | "extent" : "to-status-bar", 136 | "scale" : "1x" 137 | }, 138 | { 139 | "orientation" : "landscape", 140 | "idiom" : "ipad", 141 | "filename" : "Default-Landscape.png", 142 | "extent" : "full-screen", 143 | "scale" : "1x" 144 | }, 145 | { 146 | "orientation" : "portrait", 147 | "idiom" : "ipad", 148 | "extent" : "to-status-bar", 149 | "scale" : "2x" 150 | }, 151 | { 152 | "orientation" : "portrait", 153 | "idiom" : "ipad", 154 | "filename" : "Default-Portrait@2x.png", 155 | "extent" : "full-screen", 156 | "scale" : "2x" 157 | }, 158 | { 159 | "orientation" : "landscape", 160 | "idiom" : "ipad", 161 | "extent" : "to-status-bar", 162 | "scale" : "2x" 163 | }, 164 | { 165 | "orientation" : "landscape", 166 | "idiom" : "ipad", 167 | "filename" : "Default-Landscape@2x.png", 168 | "extent" : "full-screen", 169 | "scale" : "2x" 170 | } 171 | ], 172 | "info" : { 173 | "version" : 1, 174 | "author" : "xcode" 175 | } 176 | } -------------------------------------------------------------------------------- /app/components/ExerciseScreens/ConvoVizComponents/PitchDetectionWorker.js: -------------------------------------------------------------------------------- 1 | require('globals'); // necessary to bootstrap tns modules on the new thread 2 | 3 | 4 | export const REQUEST_MSG_TYPES = { 5 | ANALYZE_WAV_FILE: 'ANALYZE_WAV_FILE', 6 | ANALYZE_FLOAT32_ARRAY: 'ANALYZE_FLOAT32_ARRAY', 7 | ANALYZE_PITCH_ARRAY: 'ANALYZE_PITCH_ARRAY', 8 | }; 9 | 10 | export const RESPONSE_MSG_TYPES = { 11 | WAV_FILE_ANALYZED: 'WAV_FILE_ANALYZED', 12 | FLOAT32_ARRAY_ANALYZED: 'FLOAT32_ARRAY_ANALYZED', 13 | PITCH_ARRAY_ANALYZED: 'PITCH_ARRAY' 14 | }; 15 | 16 | const fs = require("tns-core-modules/file-system"); 17 | const WavDecoder = require("wav-decoder"); 18 | const Pitchfinder = require("pitchfinder"); 19 | 20 | global.onmessage = function(msg) { 21 | console.log("Received this message from the main thread: " + JSON.stringify(msg.data)); 22 | let payload = msg.data; 23 | 24 | switch(payload.type) { 25 | case REQUEST_MSG_TYPES.ANALYZE_WAV_FILE: 26 | let recPath = payload.data; 27 | 28 | console.log('recpath', recPath); 29 | //Load recording file 30 | let recFile = fs.File.fromPath(recPath); 31 | let source = recFile.readSync((err) => { 32 | console.log(err); 33 | }); 34 | console.log('src!!!', source); 35 | // https://stackoverflow.com/questions/41346769/nativescript-is-there-a-way-to-retrieve-the-binary-data-and-process-it-after-be 36 | let typedBuffer = new Uint8Array(source); 37 | 38 | const decoded = WavDecoder.decode.sync(typedBuffer.buffer); 39 | 40 | console.log('decode successful'); 41 | let float32Array = decoded.channelData[0]; 42 | 43 | let frequencies = Pitchfinder.frequencies(Pitchfinder.YIN(), float32Array, { 44 | tempo: 130, // in BPM, defaults to 120 45 | quantization: 4, // samples per beat, defaults to 4 (i.e. 16th notes) 46 | }); 47 | 48 | frequencies = frequencies.filter(item => !!item && item > 50 && item < 1000).sort(function(a, b){ 49 | return a - b; 50 | }); 51 | 52 | console.log('pitches ', frequencies); 53 | let mid = Math.floor(frequencies.length / 2); 54 | let median = frequencies.length % 2 !== 0 ? frequencies[mid] : 55 | (frequencies[mid - 1] + frequencies[mid]) / 2; 56 | 57 | // setTimeout(() => { 58 | postMessage( {type: RESPONSE_MSG_TYPES.WAV_FILE_ANALYZED, data: { 59 | min: frequencies[0] || NaN, 60 | max: frequencies[frequencies.length - 1] || NaN, 61 | avg: frequencies.reduce((a,b) => a + b, 0) / frequencies.length || NaN, 62 | median: median || NaN 63 | }}); 64 | 65 | close(); 66 | return; 67 | 68 | case REQUEST_MSG_TYPES.ANALYZE_FLOAT32_ARRAY: 69 | float32Array = payload.data; 70 | frequencies = Pitchfinder.frequencies(Pitchfinder.YIN(), float32Array, { 71 | tempo: 130, // in BPM, defaults to 120 72 | quantization: 4, // samples per beat, defaults to 4 (i.e. 16th notes) 73 | }); 74 | 75 | frequencies = frequencies.filter(item => !!item).sort(function(a, b){ 76 | return a - b; 77 | }); 78 | 79 | console.log('pitches ', frequencies); 80 | 81 | mid = Math.floor(frequencies.length / 2); 82 | median = frequencies.length % 2 !== 0 ? frequencies[mid] : 83 | (frequencies[mid - 1] + frequencies[mid]) / 2; 84 | 85 | // setTimeout(() => { 86 | postMessage( {type: RESPONSE_MSG_TYPES.FLOAT32_ARRAY_ANALYZED, data: { 87 | min: frequencies[0], 88 | max: frequencies[frequencies.length - 1], 89 | avg: frequencies.reduce((a,b) => a + b, 0) / frequencies.length, 90 | median: median 91 | }}); 92 | close(); 93 | return; 94 | case REQUEST_MSG_TYPES.ANALYZE_PITCH_ARRAY: 95 | frequencies = payload.data; 96 | 97 | frequencies = frequencies.filter(item => !!item && item > 50 && item < 1000).sort(function(a, b){ 98 | return a - b; 99 | }); 100 | 101 | console.log('pitches ', frequencies); 102 | 103 | mid = Math.floor(frequencies.length / 2); 104 | median = frequencies.length % 2 !== 0 ? frequencies[mid] : 105 | (frequencies[mid - 1] + frequencies[mid]) / 2; 106 | 107 | // setTimeout(() => { 108 | postMessage( {type: RESPONSE_MSG_TYPES.PITCH_ARRAY_ANALYZED, data: { 109 | min: frequencies[0], 110 | max: frequencies[frequencies.length - 1], 111 | avg: frequencies.reduce((a,b) => a + b, 0) / frequencies.length, 112 | median: median 113 | }}); 114 | close(); 115 | return; 116 | } 117 | 118 | // perform some crazy cpu-intensive task here! 119 | 120 | // send a message back to the main thread 121 | // postMessage("Hello main thread!"); 122 | 123 | close(); 124 | }; 125 | 126 | global.onerror = function(e) { 127 | console.log("Oh no! Worker thread error: " + e); 128 | return true; 129 | }; 130 | -------------------------------------------------------------------------------- /app/components/App.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 36 | 37 | 121 | 122 | 146 | -------------------------------------------------------------------------------- /app/components/ActiveExercises.vue: -------------------------------------------------------------------------------- 1 | 2 | 42 | 43 | 122 | 123 | 144 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/Slides.vue: -------------------------------------------------------------------------------- 1 | 33 | 131 | 132 | 156 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # NativeScript Community Code of Conduct 2 | 3 | Our community members come from all walks of life and are all at different stages of their personal and professional journeys. To support everyone, we've prepared a short code of conduct. Our mission is best served in an environment that is friendly, safe, and accepting; free from intimidation or harassment. 4 | 5 | Towards this end, certain behaviors and practices will not be tolerated. 6 | 7 | ## tl;dr 8 | 9 | - Be respectful. 10 | - We're here to help. 11 | - Abusive behavior is never tolerated. 12 | - Violations of this code may result in swift and permanent expulsion from the NativeScript community channels. 13 | 14 | ## Administrators 15 | 16 | - Dan Wilson (@DanWilson on Slack) 17 | - Jen Looper (@jen.looper on Slack) 18 | - TJ VanToll (@tjvantoll on Slack) 19 | 20 | ## Scope 21 | 22 | We expect all members of the NativeScript community, including administrators, users, facilitators, and vendors to abide by this Code of Conduct at all times in our community venues, online and in person, and in one-on-one communications pertaining to NativeScript affairs. 23 | 24 | This policy covers the usage of the NativeScript Slack community, as well as the NativeScript support forums, NativeScript GitHub repositories, the NativeScript website, and any NativeScript-related events. This Code of Conduct is in addition to, and does not in any way nullify or invalidate, any other terms or conditions related to use of NativeScript. 25 | 26 | The definitions of various subjective terms such as "discriminatory", "hateful", or "confusing" will be decided at the sole discretion of the NativeScript administrators. 27 | 28 | ## Friendly, Harassment-Free Space 29 | 30 | We are committed to providing a friendly, safe, and welcoming environment for all, regardless of gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics. 31 | 32 | We ask that you please respect that people have differences of opinion regarding technical choices, and acknowledge that every design or implementation choice carries a trade-off and numerous costs. There is seldom a single right answer. A difference of technology preferences is never a license to be rude. 33 | 34 | Any spamming, trolling, flaming, baiting, or other attention-stealing behaviour is not welcome, and will not be tolerated. 35 | 36 | Harassing other users of NativeScript is never tolerated, whether via public or private media. 37 | 38 | Avoid using offensive or harassing package names, nicknames, or other identifiers that might detract from a friendly, safe, and welcoming environment for all. 39 | 40 | Harassment includes, but is not limited to: harmful or prejudicial verbal or written comments related to gender identity, sexual orientation, disability, ethnicity, religion, age, physical appearance, body size, race, or similar personal characteristics; inappropriate use of nudity, sexual images, and/or sexually explicit language in public spaces; threats of physical or non-physical harm; deliberate intimidation, stalking or following; harassing photography or recording; sustained disruption of talks or other events; inappropriate physical contact; and unwelcome sexual attention. 41 | 42 | ## Acceptable Content 43 | 44 | The NativeScript administrators reserve the right to make judgement calls about what is and isn't appropriate in published content. These are guidelines to help you be successful in our community. 45 | 46 | Content must contain something applicable to the previously stated goals of the NativeScript community. "Spamming", that is, publishing any form of content that is not applicable, is not allowed. 47 | 48 | Content must not contain illegal or infringing content. You should only publish content to NativeScript properties if you have the right to do so. This includes complying with all software license agreements or other intellectual property restrictions. For example, redistributing an MIT-licensed module with the copyright notice removed, would not be allowed. You will be responsible for any violation of laws or others’ intellectual property rights. 49 | 50 | Content must not be malware. For example, content (code, video, pictures, words, etc.) which is designed to maliciously exploit or damage computer systems, is not allowed. 51 | 52 | Content name, description, and other visible metadata must not include abusive, inappropriate, or harassing content. 53 | 54 | ## Reporting Violations of this Code of Conduct 55 | 56 | If you believe someone is harassing you or has otherwise violated this Code of Conduct, please contact the administrators and send us an abuse report. If this is the initial report of a problem, please include as much detail as possible. It is easiest for us to address issues when we have more context. 57 | 58 | ## Consequences 59 | 60 | All content published to the NativeScript community channels is hosted at the sole discretion of the NativeScript administrators. 61 | 62 | Unacceptable behavior from any community member, including sponsors, employees, customers, or others with decision-making authority, will not be tolerated. 63 | 64 | Anyone asked to stop unacceptable behavior is expected to comply immediately. 65 | 66 | If a community member engages in unacceptable behavior, the NativeScript administrators may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event or service). 67 | 68 | ## Addressing Grievances 69 | 70 | If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify the administrators. We will do our best to ensure that your grievance is handled appropriately. 71 | 72 | In general, we will choose the course of action that we judge as being most in the interest of fostering a safe and friendly community. 73 | 74 | ## Contact Info 75 | Please contact Dan Wilson @DanWilson if you need to report a problem or address a grievance related to an abuse report. 76 | 77 | You are also encouraged to contact us if you are curious about something that might be "on the line" between appropriate and inappropriate content. We are happy to provide guidance to help you be a successful part of our community. 78 | 79 | ## Credit and License 80 | 81 | This Code of Conduct borrows heavily from the WADE Code of Conduct, which is derived from the NodeBots Code of Conduct, which in turn borrows from the npm Code of Conduct, which was derived from the Stumptown Syndicate Citizen's Code of Conduct, and the Rust Project Code of Conduct. 82 | 83 | This document may be reused under a Creative Commons Attribution-ShareAlike License. -------------------------------------------------------------------------------- /app/components/ChangeGoal.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 35 | 144 | 145 | 146 | 173 | -------------------------------------------------------------------------------- /app/components/OnboardingScreens/SetAGoal.vue: -------------------------------------------------------------------------------- 1 | 2 | 3 | 35 | 36 | 37 | 146 | 147 | 148 | 175 | -------------------------------------------------------------------------------- /app/components/ExerciseScreens/Convo.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 153 | 154 | 187 | -------------------------------------------------------------------------------- /.migration_backup/webpack.config.js: -------------------------------------------------------------------------------- 1 | const { relative, resolve, sep } = require("path"); 2 | 3 | const webpack = require("webpack"); 4 | const CleanWebpackPlugin = require("clean-webpack-plugin"); 5 | const CopyWebpackPlugin = require("copy-webpack-plugin"); 6 | const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); 7 | const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); 8 | 9 | const VueLoaderPlugin = require('vue-loader/lib/plugin'); 10 | const NsVueTemplateCompiler = require("nativescript-vue-template-compiler"); 11 | 12 | const nsWebpack = require("nativescript-dev-webpack"); 13 | const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target"); 14 | const { NativeScriptWorkerPlugin } = require("nativescript-worker-loader/NativeScriptWorkerPlugin"); 15 | 16 | module.exports = env => { 17 | // Add your custom Activities, Services and other android app components here. 18 | const appComponents = [ 19 | "tns-core-modules/ui/frame", 20 | "tns-core-modules/ui/frame/activity", 21 | ]; 22 | 23 | const platform = env && (env.android && "android" || env.ios && "ios"); 24 | if (!platform) { 25 | throw new Error("You need to provide a target platform!"); 26 | } 27 | 28 | const platforms = ["ios", "android"]; 29 | const projectRoot = __dirname; 30 | 31 | // Default destination inside platforms//... 32 | const dist = resolve(projectRoot, nsWebpack.getAppPath(platform, projectRoot)); 33 | const appResourcesPlatformDir = platform === "android" ? "Android" : "iOS"; 34 | 35 | const { 36 | // The 'appPath' and 'appResourcesPath' values are fetched from 37 | // the nsconfig.json configuration file 38 | // when bundling with `tns run android|ios --bundle`. 39 | appPath = "app", 40 | appResourcesPath = "app/App_Resources", 41 | 42 | // You can provide the following flags when running 'tns run android|ios' 43 | snapshot, // --env.snapshot 44 | production, // --env.production 45 | report, // --env.report 46 | hmr, // --env.hmr 47 | } = env; 48 | 49 | const externals = (env.externals || []).map((e) => { // --env.externals 50 | return new RegExp(e + ".*"); 51 | }); 52 | 53 | const mode = production ? "production" : "development" 54 | 55 | const appFullPath = resolve(projectRoot, appPath); 56 | const appResourcesFullPath = resolve(projectRoot, appResourcesPath); 57 | 58 | const entryModule = nsWebpack.getEntryModule(appFullPath); 59 | const entryPath = `.${sep}${entryModule}.js`; 60 | console.log(`Bundling application for entryPath ${entryPath}...`); 61 | 62 | const config = { 63 | mode: mode, 64 | context: appFullPath, 65 | externals, 66 | watchOptions: { 67 | ignored: [ 68 | appResourcesFullPath, 69 | // Don't watch hidden files 70 | "**/.*", 71 | ], 72 | }, 73 | target: nativescriptTarget, 74 | // target: nativeScriptVueTarget, 75 | entry: { 76 | bundle: entryPath, 77 | }, 78 | output: { 79 | pathinfo: false, 80 | path: dist, 81 | libraryTarget: "commonjs2", 82 | filename: "[name].js", 83 | globalObject: "global", 84 | }, 85 | resolve: { 86 | extensions: [".vue", ".js", ".scss", ".css"], 87 | // Resolve {N} system modules from tns-core-modules 88 | modules: [ 89 | resolve(__dirname, "node_modules/tns-core-modules"), 90 | resolve(__dirname, "node_modules"), 91 | "node_modules/tns-core-modules", 92 | "node_modules", 93 | ], 94 | alias: { 95 | '~': appFullPath, 96 | '@': appFullPath, 97 | 'vue': 'nativescript-vue' 98 | }, 99 | // don't resolve symlinks to symlinked modules 100 | symlinks: false, 101 | }, 102 | resolveLoader: { 103 | // don't resolve symlinks to symlinked loaders 104 | symlinks: false, 105 | }, 106 | node: { 107 | // Disable node shims that conflict with NativeScript 108 | "http": false, 109 | "timers": false, 110 | "setImmediate": false, 111 | "fs": "empty", 112 | "__dirname": false, 113 | }, 114 | devtool: "none", 115 | optimization: { 116 | splitChunks: { 117 | cacheGroups: { 118 | vendor: { 119 | name: "vendor", 120 | chunks: "all", 121 | test: (module) => { 122 | const moduleName = module.nameForCondition ? module.nameForCondition() : ''; 123 | return /[\\/]node_modules[\\/]/.test(moduleName) || 124 | appComponents.some(comp => comp === moduleName); 125 | 126 | }, 127 | enforce: true, 128 | }, 129 | }, 130 | }, 131 | minimize: Boolean(production), 132 | minimizer: [ 133 | new UglifyJsPlugin({ 134 | parallel: true, 135 | cache: true, 136 | uglifyOptions: { 137 | output: { 138 | comments: false, 139 | }, 140 | compress: { 141 | // The Android SBG has problems parsing the output 142 | // when these options are enabled 143 | 'collapse_vars': platform !== "android", 144 | sequences: platform !== "android", 145 | }, 146 | }, 147 | }), 148 | ], 149 | }, 150 | module: { 151 | rules: [{ 152 | test: new RegExp(entryPath), 153 | use: [ 154 | // Require all Android app components 155 | platform === "android" && { 156 | loader: "nativescript-dev-webpack/android-app-components-loader", 157 | options: { modules: appComponents }, 158 | }, 159 | 160 | { 161 | loader: "nativescript-dev-webpack/bundle-config-loader", 162 | options: { 163 | registerPages: true, // applicable only for non-angular apps 164 | loadCss: !snapshot, // load the application css if in debug mode 165 | }, 166 | }, 167 | ].filter(loader => Boolean(loader)), 168 | }, 169 | { 170 | test: /\.css$/, 171 | use: [ 172 | 'nativescript-dev-webpack/style-hot-loader', 173 | 'nativescript-dev-webpack/apply-css-loader.js', 174 | { loader: "css-loader", options: { minimize: false, url: false } }, 175 | ], 176 | }, 177 | { 178 | test: /\.scss$/, 179 | use: [ 180 | 'nativescript-dev-webpack/style-hot-loader', 181 | 'nativescript-dev-webpack/apply-css-loader.js', 182 | { loader: "css-loader", options: { minimize: false, url: false } }, 183 | "sass-loader", 184 | ], 185 | }, 186 | { 187 | test: /\.js$/, 188 | loader: 'babel-loader', 189 | }, 190 | { 191 | test: /\.vue$/, 192 | loader: "vue-loader", 193 | options: { 194 | compiler: NsVueTemplateCompiler, 195 | }, 196 | }, 197 | ], 198 | }, 199 | plugins: [ 200 | // ... Vue Loader plugin omitted 201 | // make sure to include the plugin! 202 | new VueLoaderPlugin(), 203 | // Define useful constants like TNS_WEBPACK 204 | new webpack.DefinePlugin({ 205 | "global.TNS_WEBPACK": "true", 206 | "TNS_ENV": JSON.stringify(mode) 207 | }), 208 | // Remove all files from the out dir. 209 | new CleanWebpackPlugin([`${dist}/**/*`]), 210 | // Copy native app resources to out dir. 211 | new CopyWebpackPlugin([{ 212 | from: `${appResourcesFullPath}/${appResourcesPlatformDir}`, 213 | to: `${dist}/App_Resources/${appResourcesPlatformDir}`, 214 | context: projectRoot, 215 | }]), 216 | // Copy assets to out dir. Add your own globs as needed. 217 | new CopyWebpackPlugin([ 218 | { from: "fonts/**" }, 219 | { from: "**/*.+(jpg|png)" }, 220 | { from: "assets/**/*" }, 221 | ], { ignore: [`${relative(appPath, appResourcesFullPath)}/**`] }), 222 | // Generate a bundle starter script and activate it in package.json 223 | new nsWebpack.GenerateBundleStarterPlugin([ 224 | "./vendor", 225 | "./bundle", 226 | ]), 227 | // For instructions on how to set up workers with webpack 228 | // check out https://github.com/nativescript/worker-loader 229 | new NativeScriptWorkerPlugin(), 230 | new nsWebpack.PlatformFSPlugin({ 231 | platform, 232 | platforms, 233 | }), 234 | // Does IPC communication with the {N} CLI to notify events when running in watch mode. 235 | new nsWebpack.WatchStateLoggerPlugin(), 236 | ], 237 | }; 238 | 239 | if (report) { 240 | // Generate report files for bundles content 241 | config.plugins.push(new BundleAnalyzerPlugin({ 242 | analyzerMode: "static", 243 | openAnalyzer: false, 244 | generateStatsFile: true, 245 | reportFilename: resolve(projectRoot, "report", `report.html`), 246 | statsFilename: resolve(projectRoot, "report", `stats.json`), 247 | })); 248 | } 249 | 250 | if (snapshot) { 251 | config.plugins.push(new nsWebpack.NativeScriptSnapshotPlugin({ 252 | chunk: "vendor", 253 | requireModules: [ 254 | "tns-core-modules/bundle-entry-points", 255 | ], 256 | projectRoot, 257 | webpackConfig: config, 258 | })); 259 | } 260 | 261 | if (hmr) { 262 | config.plugins.push(new webpack.HotModuleReplacementPlugin()); 263 | } 264 | 265 | return config; 266 | }; -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright (c) 2015-2018 Telerik EAD 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /app/components/OnboardingScreens/SpecificPitchPicker.vue: -------------------------------------------------------------------------------- 1 | 68 | 69 | 242 | 243 | 244 | 284 | --------------------------------------------------------------------------------