Delete commented lines and ununsed functions
This commit is contained in:
parent
24ad6603ed
commit
19521fac2c
|
@ -40,7 +40,7 @@ export default {
|
|||
return {
|
||||
user: {
|
||||
email: 'fbianca_miky@yahoo.ro',
|
||||
password: '1Proiect??',
|
||||
password: 'proiect1?',
|
||||
},
|
||||
};
|
||||
},
|
||||
|
|
|
@ -24,9 +24,6 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
// goToThread(index) {
|
||||
// this.$router.push(`/${index}`);
|
||||
// },
|
||||
...mapActions('news', ['getAllNews'])
|
||||
},
|
||||
|
||||
|
|
|
@ -61,45 +61,10 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
/*item: {
|
||||
id: 1,
|
||||
title: 'Title1',
|
||||
url: 'http://google.com',
|
||||
comments: 22,
|
||||
user: 'Maria',
|
||||
time: '3',
|
||||
timeType: 'days',
|
||||
},*/
|
||||
form: {
|
||||
comment: '',
|
||||
},
|
||||
isFormSubmitted: false,
|
||||
/*comments: [
|
||||
{
|
||||
id: 1,
|
||||
user: 'Bianca',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '12',
|
||||
timeType: 'minutes',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
user: 'Mihai',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '1',
|
||||
timeType: 'hour',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
user: 'Lucica',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '10',
|
||||
timeType: 'hours',
|
||||
},
|
||||
],*/
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
@ -58,46 +58,10 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
/*item: {
|
||||
id: 1,
|
||||
title: 'Q1?',
|
||||
url: 'http://google.com',
|
||||
text: 'There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which dont look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isnt anything embarrassing hidden in the middle of text.',
|
||||
comments: 22,
|
||||
user: 'Ioana',
|
||||
time: '2',
|
||||
timeType: 'days',
|
||||
},*/
|
||||
form: {
|
||||
comment: '',
|
||||
},
|
||||
isFormSubmitted: false,
|
||||
/*comments: [
|
||||
{
|
||||
id: 1,
|
||||
user: 'Ilinca',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '5',
|
||||
timeType: 'minutes',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
user: 'Alex',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '1',
|
||||
timeType: 'day',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
user: 'Andreea',
|
||||
message:
|
||||
'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using Content here, content here, making it look like readable English. Many desktop publishing packages and web page ',
|
||||
time: '12',
|
||||
timeType: 'hours',
|
||||
},
|
||||
],*/
|
||||
};
|
||||
},
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ export default {
|
|||
form : {
|
||||
title: '',
|
||||
url: '',
|
||||
//message: '',
|
||||
author: '',
|
||||
description: '',
|
||||
email: '',
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
import axios from 'axios';
|
||||
// import NProgress from 'nprogress';
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: 'http://localhost:8000/',
|
||||
});
|
||||
|
||||
// const apiClient = axios.create({
|
||||
// baseURL: 'http://localhost:8000/',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
// });
|
||||
|
||||
apiClient.interceptors.request.use((config) => {
|
||||
// NProgress.start();
|
||||
return config;
|
||||
});
|
||||
|
||||
apiClient.interceptors.response.use((response) => {
|
||||
// NProgress.done();
|
||||
return response;
|
||||
});
|
||||
|
||||
|
|
|
@ -1,16 +1,7 @@
|
|||
import axios from 'axios';
|
||||
// import NProgress from 'nprogress';
|
||||
|
||||
let apiClient;
|
||||
|
||||
// const apiClient = axios.create({
|
||||
// baseURL: 'http://localhost:8000/',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
const deleteComm = (id, idComm) => {
|
||||
return apiClient.delete('delete_comment/' + id + '/' + idComm);
|
||||
};
|
||||
|
|
|
@ -1,24 +1,14 @@
|
|||
import axios from 'axios';
|
||||
// import NProgress from 'nprogress';
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: 'http://localhost:8000/',
|
||||
});
|
||||
|
||||
// const apiClient = axios.create({
|
||||
// baseURL: 'http://localhost:8000/',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
// });
|
||||
|
||||
apiClient.interceptors.request.use((config) => {
|
||||
// NProgress.start();
|
||||
return config;
|
||||
});
|
||||
|
||||
apiClient.interceptors.response.use((response) => {
|
||||
// NProgress.done();
|
||||
return response;
|
||||
});
|
||||
|
||||
|
|
|
@ -1,17 +1,14 @@
|
|||
import axios from 'axios';
|
||||
// import NProgress from 'nprogress';
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: 'http://localhost:8000/',
|
||||
});
|
||||
|
||||
apiClient.interceptors.request.use((config) => {
|
||||
// NProgress.start();
|
||||
return config;
|
||||
});
|
||||
|
||||
apiClient.interceptors.response.use((response) => {
|
||||
// NProgress.done();
|
||||
return response;
|
||||
});
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
import axios from 'axios';
|
||||
// import NProgress from 'nprogress';
|
||||
|
||||
let apiClient;
|
||||
|
||||
// const apiClient = axios.create({
|
||||
// baseURL: 'http://localhost:8000/',
|
||||
// headers: {
|
||||
// Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
||||
// }
|
||||
// });
|
||||
|
||||
const postSubmit = (data) => {
|
||||
return apiClient.post('submit_post', data);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue