mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19: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:
@@ -162,9 +162,9 @@
|
||||
</td>
|
||||
<td>
|
||||
<div class="flex flex-nowrap items-center">
|
||||
{{ version.chartMd5.substring(0, 7) }}
|
||||
{{ version.chartHash.substring(0, 7) }}
|
||||
<div class="tooltip tooltip-accent" data-tip="Copy full hash">
|
||||
<button class="btn btn-circle btn-ghost btn-xs" (click)="copyHash(version.chartMd5)">
|
||||
<button class="btn btn-circle btn-ghost btn-xs" (click)="copyHash(version.chartHash)">
|
||||
<i class="bi bi-copy text-xs"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -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