mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
- Update API
- Add Chart Preview - Add Drum Type dropdown when the "drums" instrument is selected - Add Min/Max Year to advanced search - Add Track Hash to advanced search - Add "Download Video Backgrounds" setting - Updated and improved detected chart issues
This commit is contained in:
@@ -71,13 +71,21 @@ export class ChartSidebarMenutComponent implements OnInit {
|
||||
breadcrumbs.push({ name: version.driveFileName!, link: driveLink(version.driveFileId) })
|
||||
|
||||
if (version.driveChartIsPack) {
|
||||
breadcrumbs.push({ name: this.joinPaths(version.archivePath!, version.chartFileName ?? ''), link: null })
|
||||
breadcrumbs.push({ name: this.removeFirstPathSegment(version.internalPath), link: null })
|
||||
}
|
||||
}
|
||||
|
||||
return breadcrumbs
|
||||
}
|
||||
|
||||
private removeFirstPathSegment(path: string) {
|
||||
const segments = path.split('/').filter(p => p.length > 0)
|
||||
if (segments.length > 1) {
|
||||
return segments.slice(1).join('/')
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
isFalseReportOption() {
|
||||
switch (this.reportOption.value) {
|
||||
case 'No notes / chart ends immediately': return true
|
||||
@@ -91,12 +99,6 @@ export class ChartSidebarMenutComponent implements OnInit {
|
||||
window.electron.emit.openUrl(url)
|
||||
}
|
||||
|
||||
joinPaths(...args: string[]) {
|
||||
return args.join('/')
|
||||
.replace(/\/+/g, '/')
|
||||
.replace(/^\/|\/$/g, '')
|
||||
}
|
||||
|
||||
copyLink(hash: string) {
|
||||
navigator.clipboard.writeText(`https://enchor.us/?hash=${hash}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user