Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
dashboard
Commits
ae37fb6c
Commit
ae37fb6c
authored
2 years ago
by
Konrad Mohrfeldt
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove remaining uses of var-declared variables
parent
00330aee
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/filemanager/Files.vue
+1
-1
1 addition, 1 deletion
src/components/filemanager/Files.vue
src/components/filemanager/Playlists.vue
+1
-1
1 addition, 1 deletion
src/components/filemanager/Playlists.vue
src/mixins/timeslotSort.js
+8
-8
8 additions, 8 deletions
src/mixins/timeslotSort.js
with
10 additions
and
10 deletions
src/components/filemanager/Files.vue
+
1
−
1
View file @
ae37fb6c
...
...
@@ -309,7 +309,7 @@ export default {
// temporary data (which will be used to check if anything changed) and
// then open the editing modal
editFile
:
function
(
id
)
{
var
file
=
this
.
getFileById
(
id
)
const
file
=
this
.
getFileById
(
id
)
this
.
filemeta
.
id
=
file
.
id
this
.
filemeta
.
artist
=
file
.
metadata
.
artist
this
.
filemeta
.
album
=
file
.
metadata
.
album
...
...
This diff is collapsed.
Click to expand it.
src/components/filemanager/Playlists.vue
+
1
−
1
View file @
ae37fb6c
...
...
@@ -137,7 +137,7 @@ export default {
methods
:
{
playlistToolTip
(
entries
)
{
let
text
=
'
<div style="white-space: nowrap;" align="left">
'
for
(
var
i
in
entries
)
{
for
(
const
i
of
entries
)
{
text
+=
i
+
'
:
'
+
entries
[
i
].
uri
+
'
<br>
'
}
text
+=
'
</div>
'
...
...
This diff is collapsed.
Click to expand it.
src/mixins/timeslotSort.js
+
8
−
8
View file @
ae37fb6c
function
compareEpisodesByDate
(
a
,
b
)
{
var
dateA
=
new
Date
(
a
.
start
)
var
dateB
=
new
Date
(
b
.
start
)
const
dateA
=
new
Date
(
a
.
start
)
const
dateB
=
new
Date
(
b
.
start
)
if
(
dateA
<
dateB
)
{
return
-
1
}
else
if
(
dateA
>
dateB
)
{
...
...
@@ -13,9 +13,9 @@ function compareEpisodesByDate(a, b) {
export
default
{
computed
:
{
timeslotsPast
:
function
()
{
var
eps
=
[]
var
now
=
new
Date
()
for
(
var
x
in
this
.
timeslotsSortedDate
)
{
const
eps
=
[]
const
now
=
new
Date
()
for
(
const
x
of
this
.
timeslotsSortedDate
)
{
if
(
new
Date
(
this
.
timeslots
[
x
].
start
)
<
now
)
{
eps
.
push
(
this
.
timeslots
[
x
])
}
...
...
@@ -23,9 +23,9 @@ export default {
return
eps
},
timeslotsFuture
:
function
()
{
var
eps
=
[]
var
now
=
new
Date
()
for
(
var
x
in
this
.
timeslotsSortedDate
)
{
const
eps
=
[]
const
now
=
new
Date
()
for
(
const
x
of
this
.
timeslotsSortedDate
)
{
if
(
new
Date
(
this
.
timeslots
[
x
].
start
)
>=
now
)
{
eps
.
push
(
this
.
timeslots
[
x
])
}
...
...
This diff is collapsed.
Click to expand it.
Konrad Mohrfeldt
@kmohrf
mentioned in commit
e4083e66
·
2 years ago
mentioned in commit
e4083e66
mentioned in commit e4083e669e544ac950c1919834ba663c84f8282c
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment