mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
v1.3.1
- Fixed theme css path - Fixed slider thumbs initializing in the wrong position
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
|
"cli": {
|
||||||
|
"analytics": false
|
||||||
|
},
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bridge",
|
"name": "bridge",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bridge",
|
"name": "bridge",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"description": "A Clone Hero library management tool with built in chart searching and downloading.",
|
"description": "A Clone Hero library management tool with built in chart searching and downloading.",
|
||||||
"homepage": "https://github.com/Geomitron/Bridge",
|
"homepage": "https://github.com/Geomitron/Bridge",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export class SearchBarComponent implements AfterViewInit {
|
|||||||
isError = false
|
isError = false
|
||||||
showAdvanced = false
|
showAdvanced = false
|
||||||
searchSettings = getDefaultSearch()
|
searchSettings = getDefaultSearch()
|
||||||
|
private sliderInitialized = false
|
||||||
|
|
||||||
constructor(public searchService: SearchService) { }
|
constructor(public searchService: SearchService) { }
|
||||||
|
|
||||||
@@ -37,17 +38,6 @@ export class SearchBarComponent implements AfterViewInit {
|
|||||||
this.searchSettings.similarity = value as 'similar' | 'exact'
|
this.searchSettings.similarity = value as 'similar' | 'exact'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$(this.diffSlider.nativeElement).slider({
|
|
||||||
min: 0,
|
|
||||||
max: 6,
|
|
||||||
start: 0,
|
|
||||||
end: 6,
|
|
||||||
step: 1,
|
|
||||||
onChange: (_length: number, min: number, max: number) => {
|
|
||||||
this.searchSettings.minDiff = min
|
|
||||||
this.searchSettings.maxDiff = max
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSearch(query: string) {
|
onSearch(query: string) {
|
||||||
@@ -59,6 +49,23 @@ export class SearchBarComponent implements AfterViewInit {
|
|||||||
|
|
||||||
onAdvancedSearchClick() {
|
onAdvancedSearchClick() {
|
||||||
this.showAdvanced = !this.showAdvanced
|
this.showAdvanced = !this.showAdvanced
|
||||||
|
|
||||||
|
if (!this.sliderInitialized) {
|
||||||
|
setTimeout(() => { // Initialization requires this element to not be collapsed
|
||||||
|
$(this.diffSlider.nativeElement).slider({
|
||||||
|
min: 0,
|
||||||
|
max: 6,
|
||||||
|
start: 0,
|
||||||
|
end: 6,
|
||||||
|
step: 1,
|
||||||
|
onChange: (_length: number, min: number, max: number) => {
|
||||||
|
this.searchSettings.minDiff = min
|
||||||
|
this.searchSettings.maxDiff = max
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, 50)
|
||||||
|
this.sliderInitialized = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isLoading() {
|
isLoading() {
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export class SettingsService {
|
|||||||
const link = document.createElement('link')
|
const link = document.createElement('link')
|
||||||
link.type = 'text/css'
|
link.type = 'text/css'
|
||||||
link.rel = 'stylesheet'
|
link.rel = 'stylesheet'
|
||||||
link.href = `./assets/themes/${theme}.css`
|
link.href = `./assets/themes/${theme.toLowerCase()}.css`
|
||||||
this.currentThemeLink = document.head.appendChild(link)
|
this.currentThemeLink = document.head.appendChild(link)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user