|
|
@ -103,14 +103,7 @@ |
|
|
<account-avatar></account-avatar> |
|
|
<account-avatar></account-avatar> |
|
|
<account-user-info></account-user-info> |
|
|
<account-user-info></account-user-info> |
|
|
<account-group></account-group> |
|
|
<account-group></account-group> |
|
|
<div class="green card" @click="privacyModal" style="cursor: pointer"> |
|
|
|
|
|
<div class="content"> |
|
|
|
|
|
<div class="header">My Privacy Setting</div> |
|
|
|
|
|
<div class="description"> |
|
|
|
|
|
Get your privacy settings |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<account-privacy></account-privacy> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -140,23 +133,6 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- Modal UserPrivacy --> |
|
|
|
|
|
<div class="ui small modal" id="modalUserPrivacy"> |
|
|
|
|
|
<i class="close icon"></i> |
|
|
|
|
|
<div class="header"> |
|
|
|
|
|
My Privacy |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="content"> |
|
|
|
|
|
<ol v-if="data_privacy != null"> |
|
|
|
|
|
<li>Who can add Group : <b>[[ data_privacy.group_add ]]</b></li> |
|
|
|
|
|
<li>Who can see my Last Seen : <b>[[ data_privacy.last_seen ]]</b></li> |
|
|
|
|
|
<li>Who can see my Status : <b>[[ data_privacy.status ]]</b></li> |
|
|
|
|
|
<li>Who can see my Profile : <b>[[ data_privacy.profile ]]</b></li> |
|
|
|
|
|
<li>Read Receipts : <b>[[ data_privacy.read_receipts ]]</b></li> |
|
|
|
|
|
</ol> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<script> |
|
|
<script> |
|
|
window.TYPEGROUP = "g.us"; |
|
|
window.TYPEGROUP = "g.us"; |
|
|
@ -202,6 +178,7 @@ |
|
|
import AccountAvatar from "./components/AccountAvatar.js"; |
|
|
import AccountAvatar from "./components/AccountAvatar.js"; |
|
|
import AccountUserInfo from "./components/AccountUserInfo.js"; |
|
|
import AccountUserInfo from "./components/AccountUserInfo.js"; |
|
|
import AccountGroup from "./components/AccountGroup.js"; |
|
|
import AccountGroup from "./components/AccountGroup.js"; |
|
|
|
|
|
import AccountPrivacy from "./components/AccountPrivacy"; |
|
|
|
|
|
|
|
|
const showErrorInfo = (message) => { |
|
|
const showErrorInfo = (message) => { |
|
|
$('body').toast({ |
|
|
$('body').toast({ |
|
|
@ -324,45 +301,11 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const userPrivacy = { |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
data_privacy: null |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
methods: { |
|
|
|
|
|
async privacyModal() { |
|
|
|
|
|
try { |
|
|
|
|
|
await this.privacyApi(); |
|
|
|
|
|
$('#modalUserPrivacy').modal('show'); |
|
|
|
|
|
showSuccessInfo("Privacy fetched") |
|
|
|
|
|
} catch (err) { |
|
|
|
|
|
showErrorInfo(err) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
privacyApi() { |
|
|
|
|
|
return new Promise(async (resolve, reject) => { |
|
|
|
|
|
try { |
|
|
|
|
|
let response = await http.get(`/user/my/privacy`) |
|
|
|
|
|
this.data_privacy = response.data.results; |
|
|
|
|
|
resolve() |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
if (error.response) { |
|
|
|
|
|
reject(error.response.data.message) |
|
|
|
|
|
} else { |
|
|
|
|
|
reject(error.message) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Vue.createApp({ |
|
|
Vue.createApp({ |
|
|
components: { |
|
|
components: { |
|
|
SendMessage, SendImage, SendFile, SendVideo, SendContact, SendLocation, SendAudio, SendPoll, |
|
|
SendMessage, SendImage, SendFile, SendVideo, SendContact, SendLocation, SendAudio, SendPoll, |
|
|
MessageUpdate, MessageReact, MessageRevoke, |
|
|
MessageUpdate, MessageReact, MessageRevoke, |
|
|
AccountAvatar, AccountUserInfo, AccountGroup, |
|
|
|
|
|
|
|
|
AccountAvatar, AccountUserInfo, AccountGroup, AccountPrivacy |
|
|
}, |
|
|
}, |
|
|
delimiters: ['[[', ']]'], |
|
|
delimiters: ['[[', ']]'], |
|
|
data() { |
|
|
data() { |
|
|
@ -372,8 +315,6 @@ |
|
|
app_name: 'Whatsapp API Multi Device ({{ .AppVersion }})', |
|
|
app_name: 'Whatsapp API Multi Device ({{ .AppVersion }})', |
|
|
is_logged_in: false, |
|
|
is_logged_in: false, |
|
|
connected_devices: null, |
|
|
connected_devices: null, |
|
|
type_group: "g.us", |
|
|
|
|
|
type_user: "s.whatsapp.net" |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
@ -411,7 +352,6 @@ |
|
|
}, |
|
|
}, |
|
|
mixins: [ |
|
|
mixins: [ |
|
|
login, logout, reconnect, |
|
|
login, logout, reconnect, |
|
|
userPrivacy |
|
|
|
|
|
] |
|
|
] |
|
|
}).mount('#app') |
|
|
}).mount('#app') |
|
|
</script> |
|
|
</script> |
|
|
|