PageSourceSearch

https://www.ababbb.com/wp-content/themes/b2/Assets/fontend/message.js?ver=4.2.6

js ababbb.com collected 2026-10-06 13:15:43 UTC 2,579 bytes, 76 lines download raw bytes

1var b2MessagePage = new Vue({
2    el:'#message-page',
3    data:{
4        opt:{
5            paged:1,
6            to:0,
7            count:20,
8            pages:0,
9            read_clean:1
10        },
11        data:'',
12        api:'getUserMessage'
13    },
14    computed:{
15        userData(){
16            return this.$store.state.userData
17        }
18    },
19    mounted(){
20        if(this.$refs.msgNav){
21
22            const currentURL = window.location.href
23            if(currentURL.indexOf('/page/') !== -1){
24                this.opt.paged = window.location.pathname.match(/[0-9]*$/)
25            }
26    
27            this.opt.to = b2GetQueryVariable('uid') || 0
28            this.$refs.msgNav.go(this.opt.paged,'comment',true,true)
29        }
30    },
31    methods:{
32        get(data){
33
34            this.data = data
35            this.opt.pages = data.pages
36        },
37        msg(item){
38            let from = '',post = '',gold = '',count = 1,request = ''
39            if(item.msg.indexOf('${from}') !== -1){
40               if(item.from.length > 0){
41                    for (let i = 0; i < item.from.length; i++) {
42                        if(item.from[i].link){
43                            from += '<a href="'+item.from[i].link+'" target="_blank">'+item.from[i].name+'</a>、'
44                        }else{
45                            from += item.from[i].name+'、'
46                        }
47                    }
48
49                    from = from.substring(0, from.length - 1)
50
51                    if(item.count > 3){
52                        from += ' '+b2_global.js_text.global.more_people
53                    }
54                }
55            }
56
57            if(item.msg.indexOf('${post_id}') !== -1 && item.post?.link){
58                post = '<a href="'+item.post.link+'" target="_blank">'+item.post.title+'</a>'
59            }
60
61            if(item.msg.indexOf('${gold_page}') !== -1){
62                gold = '<a href="'+b2_global.home_url+'/gold" target="_blank">'+b2_global.js_text.global.my_gold+'</a>'
63            }
64
65            if(item.msg.indexOf('${count}') !== -1){
66                count = item.cont
67            }
68
69            if(item.msg.indexOf('${request_page}') !== -1){
70                request = '<a href="'+b2_global.home_url+'/requests" target="_blank">'+b2_global.js_text.global.my_requests+'</a>'
71            }
72
73            return item.msg.replace('${from}',from+' ').replace('${post_id}',post).replace('${gold_page}',gold).replace('${request_page}',request).replace('${count}',count)
74        }
75    }
76})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.