├── .github
└── workflows
│ └── build-and-release.yaml
├── .gitignore
├── LICENSE
├── README.md
├── demo
├── BeatmapLists.gif
├── InstallLocation.gif
├── Library.gif
├── Search.gif
├── SongDownloading.gif
├── SongPreviewing.gif
└── VisualPreview.gif
├── electron-builder.yml
├── package.json
├── public
├── dark-theme.css
├── favicon.png
├── global.css
├── icons
│ ├── 360degree.svg
│ ├── 90degree.svg
│ ├── lawless.svg
│ ├── lightshow.svg
│ ├── noarrows.svg
│ ├── offline-internet.svg
│ ├── onesaber.svg
│ └── standard.svg
├── index.html
├── light-theme.css
├── moderncraft.png
└── tooltip.css
├── rollup.config.js
├── src
├── constants
│ ├── api-endpoints.js
│ ├── channelNames.js
│ └── storageKeys.js
├── electron.ts
├── main.js
├── main
│ ├── .eslintrc.json
│ ├── db
│ │ ├── connect.ts
│ │ ├── knexfile.ts
│ │ ├── migrations
│ │ │ ├── 20211224212423_create_library_table.ts
│ │ │ ├── 20211224214455_create_library_indexes.ts
│ │ │ └── 20211230163255_create_user_settings_table.ts
│ │ └── queries
│ │ │ ├── library.ts
│ │ │ └── userSettings.ts
│ ├── downloading
│ │ ├── beatmap_downloader.ts
│ │ └── downloadManager.ts
│ ├── library
│ │ └── libraryManager.ts
│ ├── previewing
│ │ └── previewManager.ts
│ ├── settings
│ │ └── settingsManager.ts
│ ├── updating
│ │ └── autoUpdate.ts
│ └── utils.ts
├── preload.ts
└── render
│ ├── App.svelte
│ ├── actions
│ ├── tooltip.css
│ └── tooltip.js
│ ├── components
│ ├── AudioPlayer.svelte
│ ├── Badge.svelte
│ ├── BeatmapKey.svelte
│ ├── BeatmapList.svelte
│ ├── BeatmapListItem.svelte
│ ├── BeatmapStat.svelte
│ ├── BeatmapStats.svelte
│ ├── CharacteristicChip.svelte
│ ├── CompletedDownloadsList.svelte
│ ├── Dialog.svelte
│ ├── Downloads.svelte
│ ├── DownloadsListItem.svelte
│ ├── Downvotes.svelte
│ ├── Drawer.svelte
│ ├── DrawerItem.svelte
│ ├── EasyChip.svelte
│ ├── ErrorNotificationBar.svelte
│ ├── ExpertChip.svelte
│ ├── ExpertPlusChip.svelte
│ ├── Fab.svelte
│ ├── FullPageCenteredLayout.svelte
│ ├── Grid.svelte
│ ├── HardChip.svelte
│ ├── InfiniteBeatmapList.svelte
│ ├── LinkButton.svelte
│ ├── List.svelte
│ ├── ListDivider.svelte
│ ├── LoadingScreen.svelte
│ ├── LoadingSpinner.svelte
│ ├── ModeChip.svelte
│ ├── NetworkStatusBanner.svelte
│ ├── NormalChip.svelte
│ ├── OfflineIcon.svelte
│ ├── PrimaryText.svelte
│ ├── QueuedDownloadsList.svelte
│ ├── Rating.svelte
│ ├── Scrollbar.svelte
│ ├── SecondaryText.svelte
│ ├── TabGroup.svelte
│ ├── TextButton.svelte
│ ├── Toast.svelte
│ ├── Tooltip.svelte
│ ├── Upvotes.svelte
│ └── VideoPreviewDialog.svelte
│ ├── constants
│ └── beatsaver-api.constants.js
│ ├── pages
│ ├── Downloads.svelte
│ ├── Library
│ │ ├── Artists
│ │ │ ├── Artist.svelte
│ │ │ └── Artists.svelte
│ │ ├── Library.svelte
│ │ ├── Songs
│ │ │ └── Songs.svelte
│ │ ├── Uploaders
│ │ │ ├── Uploader.svelte
│ │ │ └── Uploaders.svelte
│ │ └── _shared
│ │ │ ├── SongList.svelte
│ │ │ └── SongListItem.svelte
│ ├── NewSongs.svelte
│ ├── Search.svelte
│ ├── Settings.svelte
│ ├── TopRatedSongs.svelte
│ └── UpdateReadyDialog.svelte
│ ├── services
│ └── beatsaver-api.js
│ └── stores
│ ├── beatmap-preview.store.js
│ ├── beatmap-video-preview.store.js
│ ├── beatmap.store.js
│ ├── downloads.store.js
│ ├── errors.store.js
│ ├── library.store.js
│ ├── network.store.js
│ ├── search.store.js
│ ├── settings.store.js
│ ├── theme.store.js
│ ├── toast.store.js
│ └── update-ready-dialog.store.js
├── tsconfig.json
└── yarn.lock
/.github/workflows/build-and-release.yaml:
--------------------------------------------------------------------------------
1 | name: Build/release
2 |
3 | on:
4 | push:
5 | tags:
6 | - "*"
7 |
8 | jobs:
9 | release:
10 | runs-on: ${{ matrix.os }}
11 |
12 | strategy:
13 | matrix:
14 | os: [windows-latest]
15 |
16 | steps:
17 | - name: Check out Git repository
18 | uses: actions/checkout@v1
19 |
20 | - name: Install Node.js, NPM and Yarn
21 | uses: actions/setup-node@v1
22 | with:
23 | node-version: 16
24 |
25 | - name: Build/release Electron app
26 | uses: samuelmeuli/action-electron-builder@v1
27 | with:
28 | # GitHub token, automatically provided to the action
29 | # (No need to define this secret in the repo settings)
30 | github_token: ${{ secrets.github_token }}
31 | build_script_name: "ci:build"
32 |
33 | # If the commit is tagged with a version (e.g. "v1.0.0"),
34 | # release the app after building
35 | release: ${{ startsWith(github.ref, 'refs/tags/v') }}
36 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | public/bundle.*
4 | dist
5 | *.sqlite
6 | yarn-error.log
--------------------------------------------------------------------------------
/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 [yyyy] [name of copyright owner]
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.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # BeatHub
2 |
3 | 
4 |
5 | ## Description
6 |
7 | A tiny and fast song browser, downloader, and library manager for Beat Saber!
8 |
9 | ---
10 |
11 | ## Feature Overview
12 | - Discover Songs
13 | - [Search for songs](#search-for-songs)
14 | - [Browse song lists](#browse-song-lists)
15 | - Preview Songs
16 | - [Visual Preview](#visual-preview)
17 | - [Audio Preview](#audio-preview)
18 | - [Download Manager](#download-manager)
19 | - [Manage your library](#library-management)
20 | - [Change settings](#change-settings)
21 |
22 |
23 | ---
24 |
25 | ## Features
26 |
27 | ### Search for Songs
28 | - Search for beatmaps available through beatsaver.com
29 | - Search by artist, song name, or uploader name
30 |
31 | 
32 |
33 | ### Browse Song Lists
34 | - Browse the list of top-rated songs
35 | - Browse the list of newest songs
36 |
37 | 
38 |
39 | ### Visual Preview
40 | - Visually preview the songs before you download it
41 | - Scrub through the song
42 | - Change difficulty or mode and preview it
43 |
44 | 
45 |
46 | ### Audio Preview
47 | - Listen to a song before you download it or just to have some background music :)
48 |
49 | 
50 |
51 | ### Download Manager
52 | - Quickly download custom beatmaps directly to your Beat Saber install directory
53 | - Check progress of your downloads
54 | - Get an alert when your download has finished
55 |
56 | 
57 |
58 | ### Library Management
59 | - Downloaded songs will have a green check by them when you browse
60 | - View songs in your library by artist, uploader, or song name
61 | - Preview songs in your library
62 | - Delete a song from your library
63 |
64 | 
65 |
66 | ### Change Settings
67 | - Change your Beat Saber install folder
68 | - Change theme (light or dark)
69 |
70 | 
71 |
72 | ---
73 |
74 | ## How to get
75 |
76 | 1. [Go to releases](https://github.com/doughtnerd/BeatHub/releases) and download the latest version.
77 | 2. If Windows tells you something like "running this isn't safe" run it anyway, it's just saying that because I haven't set up "signing" the executable (next security update hopefully)
78 |
79 | ---
80 |
81 | ## Background
82 |
83 | I was inspired by [BeatDrop](https://github.com/StarGazer1258/BeatDrop), most of the credit goes to the developers
84 | working on that project for ideas on how to make the client work. The rest of the credit goes to the BeatSaver.com devs for their API docs and their online site.
85 |
86 | I started working on this because I was having a bit of an unreliable experience with the BeatDrop (not to knock that project, it's still an excellent mod & map manager) software and felt a more simplified client for browsing & downloading songs would be nice. I also at the time was playing around with [Svelte 3](https://svelte.dev/) & [Electron](https://electronjs.org/) and reeeeally wanted to
87 | build a real world project to learn Svelte 3 with.
88 |
89 | ---
90 |
91 | ## Planned Features
92 |
93 | 1. Mod installation support
94 | 2. Signed binary, to avoid security/antivirus issues
95 |
96 | ---
97 |
98 | ## Contributing
99 |
100 | If anyone wants to, feel free to contribute to the project.
101 |
--------------------------------------------------------------------------------
/demo/BeatmapLists.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/BeatmapLists.gif
--------------------------------------------------------------------------------
/demo/InstallLocation.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/InstallLocation.gif
--------------------------------------------------------------------------------
/demo/Library.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/Library.gif
--------------------------------------------------------------------------------
/demo/Search.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/Search.gif
--------------------------------------------------------------------------------
/demo/SongDownloading.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/SongDownloading.gif
--------------------------------------------------------------------------------
/demo/SongPreviewing.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/SongPreviewing.gif
--------------------------------------------------------------------------------
/demo/VisualPreview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/demo/VisualPreview.gif
--------------------------------------------------------------------------------
/electron-builder.yml:
--------------------------------------------------------------------------------
1 | appId: "beathub"
2 | # Package app code into a asar archive. Set to false to debug issues.
3 | asar: true
4 | # Mac OS configuration
5 | mac:
6 | icon: "public/icons/my_app.icns"
7 | category: "public.app-category.utilities"
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "beathub",
3 | "description": "Beat Saber custom song browser and downloader",
4 | "author": {
5 | "name": "Christopher Carlson",
6 | "email": "doughtnerd@gmail.com",
7 | "url": "https://github.com/Doughtnerd"
8 | },
9 | "version": "2.7.8",
10 | "main": "./public/dist/electron.js",
11 | "license": "(MIT OR Apache-2.0)",
12 | "repository": {
13 | "type": "git",
14 | "url": "https://github.com/doughtnerd/beathub.git"
15 | },
16 | "devDependencies": {
17 | "@rollup/plugin-node-resolve": "^13.1.1",
18 | "chokidar": "^3.2.1",
19 | "electron": "^16.0.4",
20 | "electron-builder": "^22.14.5",
21 | "eslint": "^8.6.0",
22 | "npm-run-all": "^4.1.5",
23 | "rollup": "^2.62.0",
24 | "rollup-plugin-commonjs": "^10.1.0",
25 | "rollup-plugin-livereload": "^1.0.0",
26 | "rollup-plugin-postcss": "~2.0.3",
27 | "rollup-plugin-svelte": "^7.1.0",
28 | "rollup-plugin-terser": "^5.3.1",
29 | "sirv-cli": "^0.4.4",
30 | "svelte": "^3.44.3",
31 | "svelte-preprocess": "^4.10.1",
32 | "typescript": "^4.5.4"
33 | },
34 | "dependencies": {
35 | "adm-zip": "~0.4.13",
36 | "electron-log": "^4.0.3",
37 | "electron-updater": "^4.2.0",
38 | "folder-hash": "^4.0.1",
39 | "knex": "^0.95.15",
40 | "request": "^2.88.0",
41 | "sanitize-filename": "^1.6.3",
42 | "sqlite3": "^5.0.2",
43 | "svelte-awesome": "~2.2.1",
44 | "svelte-infinite-scroll": "~0.1.0",
45 | "svelte-spa-router": "^3.2.0"
46 | },
47 | "scripts": {
48 | "ts-build": "tsc --project tsconfig.json",
49 | "ci:build": "tsc --project tsconfig.json",
50 | "autobuild": "rollup -c -w",
51 | "build": "yarn ts-build",
52 | "build:full": "yarn ts-build && electron-builder build",
53 | "electron-dev": "yarn ts-build && run-p autobuild pure-electron-dev",
54 | "windows:electron-dev": "yarn ts-build && run-p autobuild windows:pure-electron-dev",
55 | "pure-electron-dev": "NODE_ENV=development electron --inspect=3000 .",
56 | "windows:pure-electron-dev": "set NODE_ENV=development&&set ROLLUP_WATCH=true&&electron --inspect=3000 .",
57 | "publish": "electron-builder --win -p always --projectDir=.",
58 | "postinstall": "install-app-deps",
59 | "knex:migrate:make": "knex --knexfile ./src/main/db/knexfile.js migrate:make",
60 | "knex:seed:make": "knex --knexfile ./src/main/db/knexfile.js seed:make",
61 | "knex:seed:run": "knex --knexfile ./src/main/db/knexfile.js seed:run",
62 | "knex:migrate:latest": "knex --knexfile ./src/main/db/knexfile.js migrate:latest",
63 | "knex": "knex --knexfile ./src/main/db/knexfile.js"
64 | },
65 | "build": {
66 | "publish": [
67 | {
68 | "provider": "github",
69 | "owner": "doughtnerd",
70 | "repo": "beathub"
71 | }
72 | ]
73 | }
74 | }
--------------------------------------------------------------------------------
/public/dark-theme.css:
--------------------------------------------------------------------------------
1 | body {
2 | color: var(--backgroundText);
3 | }
4 |
5 | button {
6 | color: #333;
7 | background-color: #f4f4f4;
8 | outline: none;
9 | }
10 |
11 | button:hover {
12 | background-color: #bebebe;
13 | }
14 |
15 | button:active {
16 | background-color: #ddd;
17 | }
18 |
19 | button:focus {
20 | border-color: #666;
21 | }
22 |
23 | button.primary {
24 | background-color: var(--primary);
25 | color: white;
26 | }
27 |
28 | :root {
29 | --background: #111111;
30 | --foreground: #252525;
31 | --backgroundText: #f0f0f0;
32 | --foregroundText: #b3b3b3;
33 |
34 | --primary: #1598ef;
35 | --secondary: #ff6347;
36 | --error: #d42d44;
37 |
38 | --listDividerColor: rgba(255, 255, 255, 0.75);
39 |
40 | --tooltipBackgroundColor: var(--background);
41 |
42 | --modeChipBackgroundColor: #d8d8d8;
43 | --modeChipTextColor: rgb(0, 0, 0);
44 |
45 | --easyChipBackgroundColor: #2cc973;
46 | --easyChipTextColor: white;
47 |
48 | --normalChipBackgroundColor: #1598ef;
49 | --normalChipTextColor: white;
50 |
51 | --hardChipBackgroundColor: #ff6347;
52 | --hardChipTextColor: white;
53 |
54 | --expertChipBackgroundColor: #d42d44;
55 | --expertChipTextColor: white;
56 |
57 | --expertPlusChipBackgroundColor: #8f47db;
58 | --expertPlusChipTextColor: white;
59 |
60 | --scrollbarPrimaryColor: var(--primary);
61 | --scrollbarSecondaryColor: var(--secondary);
62 |
63 | --beatmapKeyIconColor: gold;
64 | --beatmapUpvotesIconColor: #2cc973;
65 | --beatmapDownvotesIconColor: #d42d44;
66 | --beatmapDownloadsIconColor: #1598ef;
67 | --beatmapRatingIconColor: #ff6347;
68 |
69 | --beatmapListItemCoverImgSize: 158px;
70 |
71 | --toastBackgroundColor: var(--primary);
72 | --toastTextColor: white;
73 |
74 | --buttonHoverColor: #1598ef6c;
75 | }
76 |
--------------------------------------------------------------------------------
/public/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/doughtnerd/BeatHub/5e525efc50aa78faac38bc0faee820a0b98b7444/public/favicon.png
--------------------------------------------------------------------------------
/public/global.css:
--------------------------------------------------------------------------------
1 | html,
2 | body {
3 | position: relative;
4 | }
5 |
6 | body {
7 | margin: 0;
8 | padding: 0;
9 | box-sizing: border-box;
10 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
11 | Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
12 | overflow: hidden;
13 | font-size: 16px;
14 | }
15 |
16 | body::-webkit-scrollbar {
17 | display: none;
18 | }
19 |
20 | a {
21 | color: rgb(0, 100, 200);
22 | text-decoration: none;
23 | }
24 |
25 | a:hover {
26 | text-decoration: underline;
27 | }
28 |
29 | a:visited {
30 | color: rgb(0, 80, 160);
31 | }
32 |
33 | label {
34 | display: block;
35 | }
36 |
37 | input,
38 | button,
39 | select,
40 | textarea {
41 | font-family: inherit;
42 | font-size: inherit;
43 | padding: 0.4em;
44 | margin: 0 0 0.5em 0;
45 | box-sizing: border-box;
46 | border: 1px solid #ccc;
47 | border-radius: 2px;
48 | }
49 |
50 | input:disabled {
51 | color: #ccc;
52 | }
53 |
54 | input[type="range"] {
55 | height: 0;
56 | }
57 |
58 | button {
59 | box-shadow: 0 0 2px rgba(0, 0, 0, 0.75);
60 | }
61 |
62 | button:hover {
63 | cursor: pointer;
64 | }
65 |
--------------------------------------------------------------------------------
/public/icons/360degree.svg:
--------------------------------------------------------------------------------
1 |
2 |
24 |
--------------------------------------------------------------------------------
/public/icons/90degree.svg:
--------------------------------------------------------------------------------
1 |
2 |
17 |
--------------------------------------------------------------------------------
/public/icons/lawless.svg:
--------------------------------------------------------------------------------
1 |
2 |
22 |
--------------------------------------------------------------------------------
/public/icons/lightshow.svg:
--------------------------------------------------------------------------------
1 |
2 |
20 |
--------------------------------------------------------------------------------
/public/icons/noarrows.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
--------------------------------------------------------------------------------
/public/icons/offline-internet.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/icons/onesaber.svg:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/public/icons/standard.svg:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |