Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.217.230.80
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-test /
resources /
js /
Delete
Unzip
Name
Size
Permission
Date
Action
components
[ DIR ]
drwxr-xr-x
2018-12-04 21:08
app.js
2.52
KB
-rw-r--r--
2021-02-09 19:47
bootstrap.js
1.69
KB
-rw-r--r--
2021-02-09 19:47
Save
Rename
/** * First we will load all of this project's JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ require('./bootstrap'); window.Vue = require('vue'); /** * The following block of code may be used to automatically register your * Vue components. It will recursively scan this directory for the Vue * components and automatically register them with their "basename". * * Eg. ./components/ExampleComponent.vue -> <example-component></example-component> */ const files = require.context('./', true, /\.vue$/i) files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key))) /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin adding components to this application * or customize the JavaScript scaffolding to fit your unique needs. */ const app = new Vue({ el: '#app', data: { messages: [], users: [], }, created() { this.fetchMessages(); Echo.join('chat') .here(users => { this.users = users; }) .joining(user => { this.users.push(user); }) .leaving(user => { this.users = this.users.filter(u => u.id !== user.id); }) .listenForWhisper('typing', ({id, name}) => { this.users.forEach((user, index) => { if (user.id === id) { user.typing = true; this.$set(this.users, index, user); } }); }) .listen('MessageSent', (event) => { this.messages.push({ message: event.message.message, user: event.user }); this.users.forEach((user, index) => { if (user.id === event.user.id) { user.typing = false; this.$set(this.users, index, user); } }); }); }, methods: { fetchMessages() { axios.get('/messages').then(response => { this.messages = response.data; }); }, addMessage(message) { this.messages.push(message); axios.post('/messages', message).then(response => { console.log(response.data); }); } } });