Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
interfect
funkwhale
Commits
c7d6ad95
Verified
Commit
c7d6ad95
authored
Jan 07, 2018
by
Eliot Berriot
Browse files
Merge branch 'release/0.3.5'
parents
440c04b5
b5ba6d62
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
c7d6ad95
...
...
@@ -6,6 +6,12 @@ Changelog
------------------
0.3.5 (2018-01-07)
------------------
- Smarter BACKEND_URL in frontend
0.3.4 (2018-01-07)
------------------
...
...
api/funkwhale_api/__init__.py
View file @
c7d6ad95
# -*- coding: utf-8 -*-
__version__
=
'0.3.
4
'
__version__
=
'0.3.
5
'
__version_info__
=
tuple
([
int
(
num
)
if
num
.
isdigit
()
else
num
for
num
in
__version__
.
replace
(
'-'
,
'.'
,
1
).
split
(
'.'
)])
front/src/components/library/radios/Filter.vue
View file @
c7d6ad95
...
...
@@ -112,9 +112,8 @@ export default {
selector
.
push
(
'
.autocomplete
'
)
settings
.
fields
=
f
.
autocomplete_fields
settings
.
minCharacters
=
1
let
backendUrl
=
config
.
BACKEND_URL
||
window
.
location
.
protocol
+
'
//
'
+
window
.
location
.
hostname
+
'
:
'
+
window
.
location
.
port
settings
.
apiSettings
=
{
url
:
backendUrl
+
f
.
autocomplete
+
'
?
'
+
f
.
autocomplete_qs
,
url
:
config
.
BACKEND_URL
+
f
.
autocomplete
+
'
?
'
+
f
.
autocomplete_qs
,
beforeXHR
:
function
(
xhrObject
)
{
xhrObject
.
setRequestHeader
(
'
Authorization
'
,
self
.
$store
.
getters
[
'
auth/header
'
])
return
xhrObject
...
...
front/src/config.js
View file @
c7d6ad95
class
Config
{
constructor
()
{
this
.
BACKEND_URL
=
process
.
env
.
BACKEND_URL
if
(
this
.
BACKEND_URL
===
'
/
'
)
{
this
.
BACKEND_URL
=
window
.
location
.
protocol
+
'
//
'
+
window
.
location
.
hostname
+
'
:
'
+
window
.
location
.
port
}
if
(
!
this
.
BACKEND_URL
.
endsWith
(
'
/
'
))
{
this
.
BACKEND_URL
+=
'
/
'
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment