Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nextcloud-app-radio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
onny
nextcloud-app-radio
Commits
bc261edf
Commit
bc261edf
authored
Nov 23, 2020
by
onny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dashboard requesttoken
parent
95283827
Pipeline
#225
failed with stages
in 17 minutes and 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
appinfo/info.xml
appinfo/info.xml
+1
-1
src/components/Dashboard.vue
src/components/Dashboard.vue
+3
-0
src/components/Main.vue
src/components/Main.vue
+2
-16
No files found.
appinfo/info.xml
View file @
bc261edf
...
...
@@ -5,7 +5,7 @@
<name>
Radio
</name>
<summary>
Radio listening app
</summary>
<description>
Listening to your favorite radio stations in Nextcloud
</description>
<version>
1.0.
0
</version>
<version>
1.0.
1
</version>
<licence>
AGPL
</licence>
<author
mail=
"onny@project-insanity.org"
>
Jonas Heinrich
</author>
<namespace>
Radio
</namespace>
...
...
src/components/Dashboard.vue
View file @
bc261edf
...
...
@@ -22,6 +22,8 @@ import { showError } from '@nextcloud/dialogs'
import
{
DashboardWidget
}
from
'
@nextcloud/vue-dashboard
'
import
EmptyContent
from
'
@nextcloud/vue/dist/Components/EmptyContent
'
const
requesttoken
=
axios
.
defaults
.
headers
.
requesttoken
export
default
{
name
:
'
Dashboard
'
,
...
...
@@ -84,6 +86,7 @@ export default {
methods
:
{
fetchNotifications
()
{
const
req
=
{}
axios
.
defaults
.
headers
.
requesttoken
=
requesttoken
axios
.
get
(
generateUrl
(
'
/apps/radio/api/favorites
'
),
req
).
then
((
response
)
=>
{
this
.
processNotifications
(
response
.
data
)
this
.
state
=
'
ok
'
...
...
src/components/Main.vue
View file @
bc261edf
...
...
@@ -23,13 +23,10 @@
</
template
>
</EmptyContent>
</AppContent>
<
<<<<<<
HEAD
=
======
<Sidebar
:show-sidebar=
"showSidebar"
:sidebar-station=
"sidebarStation"
@
toggleSidebar=
"toggleSidebar"
/>
>>>>>>> nc20
</Content>
</template>
...
...
@@ -37,23 +34,15 @@
import
Content
from
'
@nextcloud/vue/dist/Components/Content
'
import
AppContent
from
'
@nextcloud/vue/dist/Components/AppContent
'
import
EmptyContent
from
'
@nextcloud/vue/dist/Components/EmptyContent
'
<<<<<<<
HEAD
import
Navigation
from
'
./Navigation
'
import
Table
from
'
./Table
'
import
{
Howl
}
from
'
howler
'
import
Sidebar
from
'
./Sidebar
'
import
{
Howl
,
Howler
}
from
'
howler
'
=======
>>>>>>>
nc20
import
{
generateUrl
}
from
'
@nextcloud/router
'
import
{
showError
}
from
'
@nextcloud/dialogs
'
import
axios
from
'
@nextcloud/axios
'
import
Navigation
from
'
./Navigation
'
import
Table
from
'
./Table
'
import
Sidebar
from
'
./Sidebar
'
import
{
Howl
,
Howler
}
from
'
howler
'
let
audioPlayer
=
null
const
requesttoken
=
axios
.
defaults
.
headers
.
requesttoken
...
...
@@ -65,10 +54,7 @@ export default {
AppContent
,
Table
,
EmptyContent
,
<<<<<<<
HEAD
=======
Sidebar
,
>>>>>>>
nc20
},
data
:
()
=>
({
tableData
:
[],
...
...
Write
Preview
Markdown
is supported
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