mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Merge pull request #1331 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
f2ff1c584b
3 changed files with 4 additions and 9 deletions
2
public/js/activity.js
vendored
2
public/js/activity.js
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"/js/activity.js": "/js/activity.js?id=3118f76a4259805903d8",
|
"/js/activity.js": "/js/activity.js?id=eb8c6f89120b93ddec71",
|
||||||
"/js/app.js": "/js/app.js?id=1f05f00eec0e86f49dd4",
|
"/js/app.js": "/js/app.js?id=1f05f00eec0e86f49dd4",
|
||||||
"/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
|
"/css/app.css": "/css/app.css?id=3a974ff74b6b5905a73c",
|
||||||
"/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
|
"/css/appdark.css": "/css/appdark.css?id=107806a000e2ca675a3c",
|
||||||
|
|
|
@ -113,11 +113,7 @@ export default {
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
fetchNotifications() {
|
fetchNotifications() {
|
||||||
axios.get('/api/v1/notifications', {
|
axios.get('/api/v1/notifications')
|
||||||
params: {
|
|
||||||
pg: false
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(res => {
|
.then(res => {
|
||||||
let data = res.data.filter(n => {
|
let data = res.data.filter(n => {
|
||||||
if(n.type == 'share' && !status) {
|
if(n.type == 'share' && !status) {
|
||||||
|
@ -140,8 +136,7 @@ export default {
|
||||||
}
|
}
|
||||||
axios.get('/api/v1/notifications', {
|
axios.get('/api/v1/notifications', {
|
||||||
params: {
|
params: {
|
||||||
page: this.notificationCursor,
|
page: this.notificationCursor
|
||||||
pg: false
|
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.data.length > 0) {
|
if(res.data.length > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue